:root {
  --bg-1: #f7f3ee;
  --bg-2: #efe2d1;
  --card: #f7f7f8;
  --white: #ffffff;
  --brown: #b1713b;
  --dark-brown: #4b2e19;
  --orange: #c98a55;
  --outline: #2f2116;
  --text-main: #332419;
  --text-muted: #8a7667;
  --stroke: #decfbe;
  --danger: #8b4a2b;
  --success: #6c4a30;
  --brown-soft: #f3e6d8;
  --brown-soft-2: #ead6c2;
  --brown-muted: #a58b76;
  --shell-gap: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text-main);
  overflow: hidden;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.small-icon {
  font-size: 16px;
  vertical-align: text-bottom;
}

.success-icon {
  font-size: 64px;
  color: var(--brown);
}

.background-layer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(177, 113, 59, 0.35), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(226, 139, 58, 0.28), transparent 38%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
}

.page-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--shell-gap);
}

.mobile-viewport {
  width: min(
    375px,
    calc(100vw - (var(--shell-gap) * 2)),
    calc((100dvh - (var(--shell-gap) * 2)) * (375 / 740))
  );
  max-height: calc(100dvh - (var(--shell-gap) * 2));
  height: auto;
  aspect-ratio: 375 / 740;
  border-radius: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 50px rgba(56, 44, 31, 0.26);
  backdrop-filter: blur(11px);
  overflow: hidden;
  background-clip: padding-box;
}

@supports not (height: 100dvh) {
  .page-shell {
    min-height: 100svh;
  }

  .mobile-viewport {
    width: min(
      375px,
      calc(100vw - (var(--shell-gap) * 2)),
      calc((100svh - (var(--shell-gap) * 2)) * (375 / 740))
    );
    max-height: calc(100svh - (var(--shell-gap) * 2));
  }
}

.app-root {
  position: relative;
  height: 100%;
  background: #ece9e4;
  border-radius: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.app-root::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-root.dragging {
  cursor: grabbing;
  user-select: none;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding-bottom: 6px;
}

.page-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.muted {
  color: var(--text-muted);
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(66, 51, 36, 0.1);
}

.login-card {
  margin-top: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(46, 41, 34, 0.16);
  padding: 24px 18px 18px;
}

.logo-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.logo-img {
  width: 114px;
  height: 114px;
  object-fit: contain;
}

.login-title {
  margin: 12px 0 8px;
  font-size: 1.78rem;
  text-align: center;
}

.login-subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 0 12px;
  background: #fff;
}

.input-shell:focus-within {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(177, 113, 59, 0.16);
}

.input-shell input,
.input-shell select,
.textarea {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 0.95rem;
  background: transparent;
  font-family: inherit;
}

.field-icon {
  width: 20px;
  text-align: center;
  color: #8a939e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.textarea {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  resize: vertical;
  min-height: 72px;
}

.error-text {
  margin: 0;
  min-height: 14px;
  color: var(--danger);
  font-size: 0.79rem;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(140deg, var(--brown), var(--orange));
  color: var(--white);
}

.btn-danger {
  background: var(--brown);
  color: var(--white);
}

.btn-ghost {
  background: var(--brown-soft);
  color: var(--dark-brown);
}

.inline-link {
  text-align: center;
  font-size: 0.9rem;
}

.inline-link a {
  color: var(--dark-brown);
  text-decoration: none;
  font-weight: 700;
}

.header-card {
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 18px;
}

.header-card > div:last-child {
  min-width: 0;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(226, 139, 58, 0.2);
  color: var(--brown);
  flex: 0 0 auto;
}

.badge-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-box {
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(47, 33, 22, 0.15);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.86rem;
  font-family: inherit;
}

.row-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px;
  min-height: 42px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  touch-action: pan-x;
}

.row-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.row-scroll.dragging-x {
  cursor: grabbing;
  user-select: none;
}

.chip {
  border: 1px solid var(--stroke);
  background: var(--white);
  border-radius: 10px;
  padding: 7px 11px;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}

.chip.active {
  border-color: var(--brown);
  background: var(--brown-soft);
  color: var(--dark-brown);
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 74px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  box-shadow: 0 8px 16px rgba(66, 51, 36, 0.08);
  width: 100%;
}

.product-card > div:last-child {
  min-width: 0;
}

.product-image {
  width: 92px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.product-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-top .icon-btn {
  flex: 0 0 auto;
}

.variant-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brown-soft-2);
  color: var(--dark-brown);
  font-size: 0.68rem;
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-muted);
}

.icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.icon-btn.active {
  color: var(--brown);
}

.price {
  color: var(--brown);
  font-weight: 800;
  font-size: 0.92rem;
}

.stock-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--brown-soft-2);
  color: var(--dark-brown);
  white-space: nowrap;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  background: #f3e6d0;
  border-radius: 16px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  z-index: 3;
}

.bottom-nav-docked {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  margin-top: 0;
  z-index: 22;
}

.app-root.has-docked-nav .home-view {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px calc(92px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-root.has-docked-nav .home-view::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-root.has-docked-nav {
  overflow: hidden;
  padding: 0;
}

.nav-btn {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 11px;
  padding: 7px 4px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--dark-brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-btn span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn .material-symbols-outlined {
  font-size: 17px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(66, 51, 36, 0.08);
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brown-soft);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card .head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.product-card .price {
  margin-left: auto;
  white-space: nowrap;
}

.product-card .head-row .small {
  white-space: nowrap;
}

.product-card .head-row .stock-pill {
  margin-left: auto;
  white-space: nowrap;
}

.product-card .small.muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small {
  font-size: 0.75rem;
}

.table-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snackbar {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%) translateY(-10px);
  background: var(--dark-brown);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1000;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.startup-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(58, 36, 22, 0.4);
  display: grid;
  place-items: center;
  padding: 20px;
}

.startup-popup.hidden {
  display: none;
}

.startup-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 30px rgba(58, 36, 22, 0.25);
  position: relative;
}

.startup-card h2 {
  margin: 0 0 6px;
}

.startup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: var(--brown-soft);
  color: var(--dark-brown);
  font-weight: 800;
  cursor: pointer;
}

.startup-cred {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f1ea;
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

@media (max-width: 820px) {
  .page-shell {
    padding: max(14px, env(safe-area-inset-top, 0px)) 14px max(14px, env(safe-area-inset-bottom, 0px));
    min-height: 100svh;
  }

  .mobile-viewport {
    width: min(
      390px,
      calc(100vw - 28px),
      calc((100svh - max(14px, env(safe-area-inset-top, 0px)) - max(14px, env(safe-area-inset-bottom, 0px))) * (375 / 740))
    );
    max-height: calc(100svh - max(14px, env(safe-area-inset-top, 0px)) - max(14px, env(safe-area-inset-bottom, 0px)));
    height: auto;
    aspect-ratio: 375 / 740;
    border-radius: 32px;
    padding: 12px;
    border: none;
    backdrop-filter: none;
    background: #efe6d8;
    box-shadow: 0 10px 24px rgba(75, 46, 25, 0.12);
  }

  @supports not (height: 100dvh) {
    .mobile-viewport {
      max-height: calc(100vh - max(14px, env(safe-area-inset-top, 0px)) - max(14px, env(safe-area-inset-bottom, 0px)));
    }
  }

  .app-root {
    border-radius: 24px;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #ece9e4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  .row-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    min-height: 42px;
  }
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}
.status-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-badge.status-paid {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.status-badge.status-processing {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}
.status-badge.status-shipped {
  background: #ccfbf1;
  color: #115e59;
  border: 1px solid #99f6e4;
}
.status-badge.status-completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.status-badge.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Info & Notice Banners */
.info-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.info-banner.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.info-banner.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* Tracking Timeline */
.tracking-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 8px 4px 8px 12px;
}
.timeline-item {
  display: flex;
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-connector {
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--stroke);
}
.timeline-item.completed .timeline-connector {
  background: var(--brown);
}
.timeline-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--stroke);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 1;
  font-size: 15px;
  transition: all 0.2s ease;
}
.timeline-item.active .timeline-marker {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(201, 138, 85, 0.25);
}
.timeline-item.completed .timeline-marker {
  border-color: var(--brown);
  background: var(--brown);
  color: #ffffff;
}
.timeline-content {
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}
.timeline-item.upcoming .timeline-title {
  color: var(--text-muted);
}
.timeline-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Confirmation Modal */
.confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(47, 33, 22, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 24px;
}
.confirm-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  width: 100%;
  max-width: 310px;
  box-shadow: 0 16px 36px rgba(47, 33, 22, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.confirm-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-brown);
}
.confirm-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.confirm-actions button {
  flex: 1;
}

/* Meta Data Box */
.order-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: var(--brown-soft);
  border-radius: 12px;
  margin-top: 6px;
}
.order-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.order-meta-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

/* ─── Docked Bottom Navigation ─────────────────────────────────── */
.docked-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(75, 46, 25, 0.14);
  padding: 6px 8px;
}
.docked-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.nav-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-muted);
  transition: background 0.15s ease, color 0.15s ease;
  font-size: 0;
}
.nav-icon-btn:hover,
.nav-icon-btn:active {
  background: var(--brown-soft);
  color: var(--brown);
}
.nav-icon-btn .material-symbols-outlined {
  font-size: 22px;
}

/* ─── Home View Layout ──────────────────────────────────────────── */
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 8px;
}
.logo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-brown);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon {
  font-size: 20px;
  color: var(--brown);
}

/* Product grid */
.grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 84px;
}

/* ─── Button Size Variants ──────────────────────────────────────── */
.btn.small,
.btn-ghost.small,
.btn-primary.small,
.btn-danger.small {
  padding: 7px 10px;
  font-size: 0.78rem;
  border-radius: 10px;
}

/* ─── Spin Keyframe (loading spinner) ──────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Modal & Dialog ──────────────────────────────────────────── */
.modal-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 41, 34, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}

.modal-card,
.confirm-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(46, 41, 34, 0.28);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-card {
  text-align: center;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Modal Form Controls ─────────────────────────────────────── */
.input-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fcfbfa;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.input-field:focus {
  border-color: var(--brown);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(163, 114, 76, 0.15);
}

textarea.input-field {
  resize: vertical;
  min-height: 60px;
}

/* ─── Stock Badges ────────────────────────────────────────────── */
.badge-stock {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-stock.in-stock {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-stock.low-stock {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-stock.out-of-stock {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  filter: grayscale(60%);
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

