:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --surface-2: #f7f0e5;
  --ink: #2a1a0e;
  --ink-2: #5c4534;
  --muted: #8b6f5a;
  --line: rgba(42, 26, 14, 0.1);
  --line-strong: rgba(42, 26, 14, 0.16);
  --accent: #e8741a;
  --accent-dark: #d9660f;
  --accent-soft: rgba(232, 116, 26, 0.11);
  --green: #1e8e5a;
  --green-soft: #e7f5ee;
  --blue: #2c6fb7;
  --blue-soft: #e8f1fa;
  --amber: #a9701a;
  --amber-soft: #fdf3df;
  --red: #d64545;
  --red-soft: #fcebeb;
  --gray: #6b6259;
  --gray-soft: #f0ece6;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(42, 26, 14, 0.05);
  --shadow: 0 1px 2px rgba(42, 26, 14, 0.05), 0 14px 34px -18px rgba(42, 26, 14, 0.3);
  --shadow-lg: 0 2px 4px rgba(42, 26, 14, 0.05), 0 30px 60px -22px rgba(42, 26, 14, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

[hidden] { display: none !important; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { cursor: not-allowed; opacity: 0.55; }

:focus-visible {
  outline: 3px solid rgba(232, 116, 26, 0.35);
  outline-offset: 2px;
}

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 18px 140px;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -18px 18px;
  padding: 14px 18px;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(42, 26, 14, 0.06);
  box-shadow: 0 12px 28px -24px rgba(42, 26, 14, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(232, 116, 26, 0.7);
  flex: none;
}

.brand-mark.logo {
  background: #14100c;
  padding: 0;
  overflow: hidden;
}

.brand-mark.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark.lg {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(31, 22, 14, 0.08);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,232,220,0.82));
  color: #1f160f;
  box-shadow: 0 18px 30px -22px rgba(30, 20, 12, 0.7), inset 0 1px 0 rgba(255,255,255,1);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.header-icon-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(242,233,223,0.9));
  border-color: rgba(31, 22, 14, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 20px 30px -22px rgba(30, 20, 12, 0.78), inset 0 1px 0 rgba(255,255,255,1);
}

.header-icon-btn i {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.header-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ef8d34, #d86f1d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 18px -12px rgba(216, 111, 29, 0.9);
}

.store-status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding-inline: 12px;
}

.store-status-toggle.status-open {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, rgba(239, 253, 244, 0.96), rgba(216, 248, 227, 0.9));
  color: var(--green);
}

.store-status-toggle.status-closed {
  border-color: rgba(220, 38, 38, 0.2);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.96), rgba(254, 226, 226, 0.9));
  color: var(--red);
}

.store-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.7);
}

.store-status-dot.open {
  background: var(--green);
}

.store-status-dot.closed {
  background: var(--red);
}

.store-status-action {
  opacity: 0.8;
  font-size: 11px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active:not(:disabled) { transform: scale(0.98); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(232, 116, 26, 0.9);
}

.btn.primary:hover:not(:disabled) { background: var(--accent-dark); }

.btn.subtle {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn.subtle:hover:not(:disabled) { background: var(--surface-2); }

.btn.secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,239,232,0.9));
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.btn.secondary:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,231,221,0.96)); }

.btn.ghost { background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }

.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: #f8dcdc; }

.btn.ok { background: var(--green-soft); color: var(--green); }
.btn.ok:hover:not(:disabled) { background: #d8efe2; }

.btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.link { background: transparent; color: var(--accent-dark); padding: 0 4px; min-height: 0; font-size: 13px; }
.btn.link:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, #ffe6cf 0%, rgba(255, 230, 207, 0) 55%),
    radial-gradient(100% 120% at 0% 100%, #ffd9b5 0%, rgba(255, 217, 181, 0) 50%),
    linear-gradient(150deg, #fffaf2, #f7e9d7);
  border: 1px solid rgba(232, 116, 26, 0.14);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 14px 0 6px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 15px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 13px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.status-pill.open {
  background: var(--green-soft);
  color: var(--green);
  animation: statusPulse 1.9s ease-in-out infinite;
}

.status-pill.closed { background: var(--red-soft); color: var(--red); }

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(30, 142, 90, 0.24);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(30, 142, 90, 0);
    opacity: 0.96;
  }
}

.status-pill.open::before {
  animation: dotPulse 1.9s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.26); opacity: 0.9; }
}

/* ---------- chips ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 2px 10px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.chip:hover { background: var(--surface-2); }

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip-icon { font-size: 14px; line-height: 1; display: inline-block; }

.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: var(--accent); }

.offer-section { margin-top: 6px; }
.offer-title { font-size: 19px; letter-spacing: -0.02em; margin: 26px 2px 14px; }

/* ---------- ofertas ---------- */

.offer-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.old-price { text-decoration: line-through; color: var(--muted); font-size: 12px; font-weight: 600; margin-right: 6px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 2px 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.section-title span { color: var(--muted); font-size: 12.5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 14px;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.product-off { opacity: 0.6; filter: grayscale(0.7); }
.product-off:hover { transform: none; box-shadow: var(--shadow-sm); }

.product-flag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30, 20, 12, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-media {
  position: relative;
  height: 132px;
  background: linear-gradient(145deg, #fbe8d2, #f3d6b6);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-trigger .zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.7);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.product-image-trigger:hover .zoom-badge,
.product-image-trigger:focus-visible .zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.product-media .placeholder {
  font-size: 34px;
  font-weight: 800;
  color: rgba(232, 116, 26, 0.55);
  letter-spacing: -0.04em;
}

.product-image-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 0 18px 8px;
}

.product-image-frame {
  position: relative;
  width: min(100%, 560px);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(246,232,215,0.65));
  border: 1px solid rgba(122, 92, 54, 0.09);
  border-radius: 28px;
  padding: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 18px 30px -24px rgba(26,18,12,0.4);
}

.product-image-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(122, 92, 54, 0.08);
  pointer-events: none;
}

.product-image-preview img {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 18px 42px -28px rgba(26, 18, 12, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-image-frame:hover .product-image-preview img,
.product-image-frame:focus-within .product-image-preview img {
  box-shadow: 0 22px 48px -28px rgba(26, 18, 12, 0.78);
}

.product-image-modal {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.product-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
}

.product-image-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 18px;
}

.product-image-meta > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-image-meta strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.product-image-meta span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sheet-close--soft {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 18px -14px rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(10px);
}

.sheet-close--soft:hover {
  background: rgba(245, 243, 239, 0.95);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 14px 12px;
}

.product-name { font-size: 15px; font-weight: 800; letter-spacing: -0.015em; }

.product-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.price { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.qty-control button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.qty-control button:hover { background: var(--accent-soft); }

.qty-control span {
  min-width: 20px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.add-btn:hover { background: rgba(232, 116, 26, 0.18); }

/* ---------- cart bar ---------- */

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw - 24px));
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 22, 17, 0.98), rgba(20, 14, 10, 0.96));
  color: #fff;
  box-shadow: 0 24px 42px -18px rgba(32, 20, 12, 0.7);
  animation: rise 0.24s ease;
}

.cart-bar-info { min-width: 0; flex: 1; }

.cart-bar-info strong { display: block; font-size: 14px; letter-spacing: -0.01em; }
.cart-bar-info span { font-size: 12px; color: rgba(255, 255, 255, 0.68); }

.cart-bar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ef8d34, #d86f1d);
  color: #fff;
  box-shadow: 0 12px 20px -14px rgba(232, 116, 26, 0.9);
}

.cart-bar .btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- sheet / modal ---------- */

#modal-root { position: relative; z-index: 90; }

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(30, 18, 9, 0.28);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  animation: fade 0.18s ease;
}

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

.sheet {
  width: min(620px, calc(100vw - 24px));
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  background: rgba(253, 250, 247, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 30px;
  box-shadow: 0 24px 60px -28px rgba(33, 26, 18, 0.48);
  animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.sheet form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.sheet.wide { width: min(700px, 100%); }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
}

.sheet-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }

.sheet-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  flex: none;
  box-shadow: 0 8px 18px -14px rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(10px);
}

.sheet-close:hover {
  background: rgba(245, 243, 239, 0.95);
  color: var(--text);
}

.sheet-body {
  flex: 1 1 auto;
  padding: 4px 18px 18px;
  overflow-y: auto;
}

.sheet-foot {
  display: flex;
  gap: 10px;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(251, 246, 238, 0.6);
}

.sheet-foot .btn { flex: 1; }

/* ---------- forms ---------- */

.field { display: grid; gap: 6px; margin-bottom: 12px; }

.label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.input, .textarea, .select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 116, 26, 0.13);
}

.textarea { min-height: 84px; resize: vertical; line-height: 1.45; }

.cep-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cep-row .input { flex: 1; }

.cep-row .btn {
  min-width: 110px;
  min-height: 42px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-grid {
  display: grid;
  gap: 6px;
}

.field-grid.full-span { grid-column: 1 / -1; }

.hint { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.form-error {
  display: none;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.form-error.show { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.list-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(42, 26, 14, 0.32);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  transition: all 0.15s ease;
}

.list-row input[type="radio"]:checked {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 4px #fff;
}

.list-row.is-selected,
.list-row:has(input:checked) {
  border-color: rgba(44, 111, 183, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(232, 241, 250, 0.82));
  box-shadow: 0 10px 20px -20px rgba(44, 111, 183, 0.45);
}

.sheet-body > .field:last-child { margin-bottom: 0; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.switch-row:last-child { border-bottom: 0; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }

.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ddd2c4;
  transition: background 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- toasts ---------- */

.toasts {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(370px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 11px;
  padding: 13px 13px 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gray);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}

.toast.leaving { animation: toast-out 0.18s ease forwards; }

@keyframes toast-out {
  to { opacity: 0; transform: translateX(22px); }
}

.toast-success { border-left-color: var(--green); }
.toast-warning { border-left-color: var(--amber); }
.toast-error { border-left-color: var(--red); }
.toast-info { border-left-color: var(--blue); }

.toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--gray-soft);
  font-size: 14px;
  flex: none;
}

.toast-success .toast-icon { background: var(--green-soft); color: var(--green); }
.toast-warning .toast-icon { background: var(--amber-soft); color: var(--amber); }
.toast-error .toast-icon { background: var(--red-soft); color: var(--red); }
.toast-info .toast-icon { background: var(--blue-soft); color: var(--blue); }

.toast-body { min-width: 0; flex: 1; }
.toast-body strong { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.toast-body p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; white-space: pre-line; }

.toast-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}

.toast-link:hover { text-decoration: underline; }

.toast-x {
  align-self: flex-start;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.toast-x:hover { background: var(--surface-2); }

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--gray-soft);
  color: var(--gray);
  white-space: nowrap;
}

.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }

/* ---------- empty / skeleton ---------- */

.empty {
  padding: 42px 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.empty strong { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 15px; }
.empty p { margin: 0; font-size: 13px; }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f3e9dc 30%, #fbf4ea 50%, #f3e9dc 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
  min-height: 120px;
}

@keyframes shimmer {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- order / pix ---------- */

.pay-card {
  margin-top: 18px;
  padding: 22px;
  text-align: center;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pay-card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.02em; }
.pay-card .total { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 2px; }

.qr-wrap {
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  margin: 16px auto 10px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-wrap svg { width: 100%; height: 100%; display: block; }

.pix-code {
  width: 100%;
  min-height: 74px;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.4;
  resize: none;
  word-break: break-all;
}

.pay-steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}

.pay-steps li {
  display: flex;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}

.pay-steps b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  flex: none;
  margin-top: 1px;
}

.pin-card {
  margin-top: 18px;
  padding: 26px 20px;
  text-align: center;
  border-radius: 26px;
  background: linear-gradient(160deg, #fffaf2, #ffeeda);
  border: 1px solid rgba(232, 116, 26, 0.2);
  box-shadow: var(--shadow);
}

.pin-card .pin {
  display: block;
  margin: 10px 0;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-dark);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.timeline li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  flex: none;
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child::after { display: none; }

.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- admin ---------- */

.admin-shell { padding-bottom: 60px; }

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 110px);
  padding: 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 16px 44px -28px rgba(42, 26, 14, 0.38);
}

.admin-sidebar .brand {
  padding: 10px 12px 8px;
  border-radius: 18px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.admin-top h1 {
  margin: 4px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.03em;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-main {
  display: grid;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  overflow: visible;
}

.admin-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: all 0.15s ease;
}

.admin-tabs button:hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.admin-tabs button > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 15px;
}

.admin-tabs button > span:first-child i {
  display: block;
  font-size: 0.95rem;
  line-height: 1;
}

.admin-tabs button.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 229, 0.95));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(42, 26, 14, 0.04), var(--shadow-sm);
}

.admin-sidebar-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-actions .btn {
  width: 100%;
}

.admin-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

@media (max-width: 920px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-tabs button {
    min-width: 160px;
  }
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 78vh;
  padding: 20px;
}

.login-card {
  width: min(400px, 100%);
  padding: 30px 26px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.login-card h1 { margin: 16px 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.login-card p { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,240,229,0.74));
  border: 1px solid rgba(42, 26, 14, 0.08);
  box-shadow: 0 10px 22px -18px rgba(42, 26, 14, 0.2);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(232, 116, 26, 0.8), rgba(232, 116, 26, 0.15));
}

.stat span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -0.03em; }
.stat.amber strong { color: var(--amber); }
.stat.blue strong { color: var(--blue); }
.stat.green strong { color: var(--green); }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.orders { display: grid; gap: 12px; }

.order-card {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,246,242,0.88));
  border: 1px solid rgba(42, 26, 14, 0.08);
  border-left: 4px solid var(--line-strong);
  box-shadow: 0 12px 22px -18px rgba(42, 26, 14, 0.18);
}

.order-card.s-pendente { border-left-color: var(--amber); }
.order-card.s-preparando { border-left-color: var(--blue); }
.order-card.s-pronto { border-left-color: var(--green); }
.order-card.s-concluido { border-left-color: var(--gray); opacity: 0.8; }
.order-card.s-cancelado { border-left-color: var(--red); opacity: 0.75; }

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.order-code { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.order-time { color: var(--muted); font-size: 11.5px; }

.order-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.order-customer b { color: var(--ink); }

.order-items {
  margin: 0 0 10px;
  padding: 8px 10px;
  list-style: none;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--ink-2);
  display: grid;
  gap: 3px;
}

.order-items li { display: flex; justify-content: space-between; gap: 10px; }
.order-items li span:last-child { white-space: nowrap; color: var(--muted); }

.order-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-total { font-size: 15px; font-weight: 800; }

.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.panel {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(251,248,244,0.96));
  border: 1px solid rgba(42, 26, 14, 0.08);
  box-shadow: 0 12px 26px -18px rgba(42, 26, 14, 0.26);
  margin-bottom: 14px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 116, 26, 0.28), transparent 60%);
}

.panel--soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,240,229,0.72));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(232, 116, 26, 0.08);
  color: var(--accent-dark);
  font-size: 14px;
}

.panel h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.panel .sub { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; }

.list { display: grid; gap: 8px; }

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 26, 14, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,240,229,0.58));
  box-shadow: 0 8px 16px -18px rgba(42, 26, 14, 0.26);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.list-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -18px rgba(42, 26, 14, 0.32);
  border-color: rgba(42, 26, 14, 0.09);
}

.list-row .thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, #fbe8d2, #f3d6b6);
  color: rgba(232, 116, 26, 0.7);
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex: none;
}

.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow strong { display: block; font-size: 14px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .grow small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-row { padding: 12px 14px; }
.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.row-header strong {
  letter-spacing: -0.01em;
}
.row-header strong { display: block; }
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.02);
}
.mini-badge.good {
  background: rgba(31, 180, 117, 0.12);
  color: var(--green);
}
.mini-badge.muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}
.muted-line {
  margin-top: 2px;
  color: var(--muted);
}

.availability-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.overview-card {
  padding: 14px 16px;
  border: 1px solid rgba(42, 26, 14, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,240,229,0.64));
  box-shadow: 0 10px 18px -18px rgba(42, 26, 14, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.overview-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px -18px rgba(42, 26, 14, 0.32);
}

.overview-card--good { background: linear-gradient(180deg, rgba(231,245,238,0.9), rgba(255,255,255,0.82)); }
.overview-card--amber { background: linear-gradient(180deg, rgba(253,243,223,0.96), rgba(255,255,255,0.82)); }
.overview-card--muted { background: linear-gradient(180deg, rgba(240,236,230,0.98), rgba(255,255,255,0.82)); }

.overview-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.04em;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.compact-actions {
  justify-content: flex-end;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(42, 26, 14, 0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 14px;
  flex: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-btn:hover { background: rgba(247,240,229,0.9); border-color: rgba(42, 26, 14, 0.12); }
.icon-btn:active:not(:disabled) { transform: scale(0.98); }
.icon-btn.active { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #15803d; }
.icon-btn.muted-icon { color: var(--muted); }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { background: rgba(239, 68, 68, 0.08); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

.ops-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ops-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 26, 14, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(249,243,236,0.8));
  box-shadow: 0 12px 20px -18px rgba(42, 26, 14, 0.28);
}

.ops-card--accent {
  background: linear-gradient(180deg, rgba(255,243,232,0.98), rgba(251,246,240,0.84));
}

.ops-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(232, 116, 26, 0.1);
  font-size: 18px;
}

.ops-card__body {
  min-width: 0;
}

.ops-card__body span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-card__body strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(16px, 2vw, 26px);
  letter-spacing: -0.04em;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 118px;
  padding: 12px 8px 2px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247,240,229,0.6), rgba(255,255,255,0.4));
}

.mini-chart__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  height: 100%;
}

.mini-chart__bar {
  width: 100%;
  min-height: 16px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(232, 116, 26, 0.88), rgba(232, 116, 26, 0.42));
  box-shadow: inset 0 -8px 14px -12px rgba(0, 0, 0, 0.4);
}

.mini-chart__item small {
  color: var(--muted);
  font-size: 10px;
}

.activity-row {
  gap: 10px;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #35b56a, #1e8e5a);
  box-shadow: 0 0 0 5px rgba(30, 142, 90, 0.08);
  flex: none;
}

.ops-rail {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.ops-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(42, 26, 14, 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,241,234,0.72));
  box-shadow: 0 14px 22px -20px rgba(42, 26, 14, 0.32);
  min-width: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.ops-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px -20px rgba(42, 26, 14, 0.35);
  border-color: rgba(42, 26, 14, 0.09);
}

.ops-item .thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #fbe8d2, #f3d6b6);
  color: rgba(232, 116, 26, 0.7);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.ops-item .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ops-item .grow {
  flex: 1 1 auto;
  min-width: 0;
}

.ops-item .grow strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ops-item .grow small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.ops-item .muted-line {
  margin-top: 4px;
  color: var(--muted);
}

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

.ops-item .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.ops-item .row-actions .btn {
  min-height: 32px;
  padding-inline: 10px;
}

.note-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12.5px;
  line-height: 1.45;
}

.note-box.blue { background: var(--blue-soft); color: var(--blue); }
.note-box.green { background: var(--green-soft); color: var(--green); }

.confirm-details {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
}

.confirm-details div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.confirm-details dt { color: var(--muted); }
.confirm-details dd { margin: 0; font-weight: 700; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .page { padding: 24px 26px 150px; }
  .topbar, .admin-top { margin-left: -26px; margin-right: -26px; padding-left: 26px; padding-right: 26px; }
  .hero { padding: 38px 34px; }
}

@media (max-width: 560px) {
  .overlay { align-items: end; padding: 0; }
  .sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 26px 26px 0 0;
    animation: sheet-up 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes sheet-up {
    from { transform: translateY(40px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }
  .two-col { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .cart-bar { padding-left: 16px; }
  .admin-top { gap: 10px; }
  .admin-tabs { order: 3; width: 100%; }
  .admin-top-actions { margin-left: auto; }
  .product-media { height: 118px; }
}
