/* ==========================================================================
   Marché Atlas — design system
   Storefront + admin dashboard, FR/AR (RTL aware)
   ========================================================================== */

:root {
  --bg: #fbf7f7;
  --bg-2: #f6eded;
  --card: #ffffff;
  --ink: #1c1112;
  --ink-2: #3d2426;
  --muted: #7c6466;
  --line: #eedfe0;
  --brand: #c1121f;
  --brand-2: #e11d2e;
  --brand-ink: #7d0b13;
  --brand-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fdf1d8;
  --danger: #cf2c1e;
  --danger-soft: #fde7e4;
  --shadow-sm: 0 1px 2px rgba(60, 14, 18, 0.05);
  --shadow: 0 2px 4px rgba(60, 14, 18, 0.04), 0 14px 30px -18px rgba(60, 14, 18, 0.26);
  --shadow-lg: 0 30px 70px -24px rgba(50, 8, 12, 0.45);
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --topbar: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h2 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h3 { font-size: 1.02rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.danger { color: var(--danger); }
.grow { flex: 1; }
.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: 8px;
  border: 1px solid transparent; background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn.primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: 0 6px 16px -8px rgba(193, 18, 31, 0.7);
}
.btn.primary:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.block { width: 100%; }
.btn.big { padding: 14px 18px; font-size: 1rem; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 0.83rem; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.wa-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  flex: none;
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; font-size: 1rem;
  font-weight: 700; transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--bg-2); }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 247, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; gap: 14px; min-height: var(--topbar);
  padding-block: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  font-size: 1.25rem; box-shadow: 0 8px 18px -10px rgba(193, 18, 31, 0.85);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-txt small { color: var(--muted); font-size: 0.74rem; }

.search {
  position: relative; flex: 1 1 260px; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding-inline: 12px; min-height: 44px; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-ico { font-size: 0.95rem; opacity: 0.55; }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 10px 8px; min-width: 0; font-size: 0.95rem;
}
.search-clear {
  border: 0; background: var(--bg-2); color: var(--muted); width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem;
}
.search.small { flex: 1 1 220px; max-width: 380px; min-height: 40px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-btn { font-size: 1.05rem; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  height: 42px; padding-inline: 12px; font-size: 1rem;
}
.cart-count {
  min-width: 22px; height: 22px; border-radius: 999px; padding-inline: 5px;
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* -------------------------------------------------------------------- hero */
.hero-wrap { padding-top: 18px; }
.hero-slider {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(900px 260px at 85% -20%, #ffd9dc 0%, transparent 60%),
    linear-gradient(135deg, #7d0b13 0%, #c1121f 48%, #e63946 100%);
  color: #fff2f3; min-height: clamp(190px, 27vw, 320px);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  touch-action: pan-y;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateX(3%) scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease, visibility 0.5s;
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  padding: clamp(20px, 3vw, 38px);
}
.hero-slide.active { opacity: 1; visibility: visible; transform: none; z-index: 1; }
[dir="rtl"] .hero-slide { transform: translateX(-3%) scale(1.02); }
[dir="rtl"] .hero-slide.active { transform: none; }
.hero-slide.default::after {
  content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -8%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero-slide:not(.default)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(30, 4, 7, 0.72), rgba(30, 4, 7, 0.12) 65%);
}
[dir="rtl"] .hero-slide:not(.default)::before {
  background: linear-gradient(270deg, rgba(30, 4, 7, 0.72), rgba(30, 4, 7, 0.12) 65%);
}
.hero-cap { max-width: 62ch; position: relative; z-index: 2; }
.hero-cap h2,
.hero-cap h1 {
  color: #fff; font-size: clamp(1.35rem, 1.05rem + 1.6vw, 2.3rem);
  max-width: 24ch; text-shadow: 0 2px 18px rgba(30, 4, 7, 0.45);
}
.hero-cap p { color: #ffd9dc; margin-top: 8px; max-width: 46ch; }
.hero-art {
  display: grid; grid-template-columns: repeat(2, auto); gap: 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
  transform: rotate(-4deg);
}
.hero-art span:nth-child(2) { transform: translateY(12px); }
.hero-art span:nth-child(3) { transform: translateY(-8px); }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; padding-bottom: 4px;
  backdrop-filter: blur(6px); transition: background 0.15s ease;
}
.hero-nav:hover { background: rgba(255, 255, 255, 0.3); }
.hero-nav.prev { inset-inline-start: 12px; }
.hero-nav.next { inset-inline-end: 12px; }

.hero-dots {
  position: absolute; z-index: 3; inset-block-end: 14px; inset-inline-start: 16px;
  display: flex; gap: 6px;
}
.hero-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.45); transition: width 0.2s ease, background 0.2s ease;
}
.hero-dot.active { width: 22px; background: #fff; }

.hero-info {
  position: absolute; z-index: 3; inset-block-end: 12px; inset-inline-end: 14px;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(30, 4, 7, 0.42); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 11px; border-radius: 999px; font-size: 0.78rem; color: #fff;
  backdrop-filter: blur(6px);
}
.pill em { font-style: normal; color: #fff; font-weight: 700; }

.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

/* -------------------------------------------------------------------- chips */
.cats-wrap { position: sticky; top: var(--topbar); z-index: 30; padding-top: 14px; padding-bottom: 6px; }
.cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  padding: 8px 13px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.chip:hover { border-color: #e5b8bb; }
.chip.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 8px 18px -12px rgba(193, 18, 31, 0.9);
}
.chip.static { font-size: 0.74rem; padding: 4px 10px; cursor: default; background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }

/* -------------------------------------------------------------------- grid */
.main { padding-block: 6px 90px; }
.list-head { display: flex; align-items: baseline; gap: 10px; padding-block: 14px 12px; }
.list-head .muted { font-size: 0.85rem; }

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e9d7d8; }

.card-img {
  position: relative; aspect-ratio: 4 / 3; width: 100%; border: 0; padding: 0;
  display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background:
    radial-gradient(120% 90% at 20% 0%, #fdf5f5 0%, transparent 55%),
    linear-gradient(160deg, #f8f0f0, #f1e3e3);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { font-size: clamp(2rem, 4vw, 2.6rem); filter: drop-shadow(0 6px 10px rgba(20, 60, 40, 0.18)); }
.card-img .oos {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(2px);
  font-size: 0.78rem; font-weight: 700; color: var(--danger);
  text-align: center; padding: 8px;
}
.card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body h3 {
  font-size: 0.92rem; font-weight: 650; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.3em;
}
.card-body .unit { font-size: 0.75rem; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.price small { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.add {
  width: 34px; height: 34px; border-radius: 11px; border: 0; flex: none;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 1.15rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  transition: background 0.15s ease, transform 0.12s ease;
}
.add:hover { background: var(--brand); color: #fff; }
.add:active { transform: scale(0.92); }
.add:disabled { background: var(--bg-2); color: #c4a9ac; cursor: not-allowed; }

/* -------------------------------------------------------------------- empty */
.empty { text-align: center; padding: 48px 16px; display: grid; gap: 6px; place-items: center; }
.empty-ico { font-size: 2.6rem; }
.empty h3 { margin-top: 4px; }
.empty p { max-width: 34ch; }

/* ------------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 24px 90px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer strong { font-size: 0.95rem; }

/* -------------------------------------------------------------- sticky cart */
.sticky-cart {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 12px 10px 16px;
  box-shadow: var(--shadow-lg); animation: rise 0.3s ease both;
}
@keyframes rise { from { transform: translateY(120%); } to { transform: none; } }
.sticky-info { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-info small { color: #c99a9e; font-size: 0.7rem; }
.sticky-info strong { font-size: 1.02rem; }
@media (min-width: 820px) { .sticky-cart { display: none !important; } }

/* ------------------------------------------------------------------- modals */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(9, 26, 19, 0.5);
  backdrop-filter: blur(3px); animation: fade 0.2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative; z-index: 1; width: 100%; max-width: 620px; max-height: 92dvh;
  overflow: auto; background: var(--card); border-radius: 22px 22px 0 0;
  padding: 20px; box-shadow: var(--shadow-lg); animation: sheetUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  overscroll-behavior: contain;
}
@keyframes sheetUp { from { transform: translateY(28px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
  .modal { place-items: center; padding: 24px; }
  .sheet { border-radius: var(--r-xl); max-height: 88dvh; }
}
.x {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92); display: grid; place-items: center;
  font-size: 0.8rem; color: var(--ink-2);
}
.x:hover { background: var(--bg-2); }

/* --------------------------------------------------------------- product pop */
.product-sheet { padding: 0; max-width: 560px; overflow: hidden auto; }
.pm-img {
  aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 4.2rem;
  background:
    radial-gradient(120% 90% at 15% 0%, #fdf6f6 0%, transparent 55%),
    linear-gradient(160deg, #fbf3f3, #efdcdd);
}
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.pm-body h2 { font-size: 1.3rem; }
.pm-desc { font-size: 0.9rem; }
.pm-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.pm-price strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.stock-note { font-size: 0.8rem; font-weight: 600; color: var(--brand-ink); }
.stock-note.low { color: var(--amber); }
.stock-note.out { color: var(--danger); }
.pm-actions { display: flex; gap: 10px; margin-top: 8px; align-items: stretch; }

.stepper {
  display: inline-flex; align-items: center; gap: 2px; background: var(--bg-2);
  border-radius: 12px; padding: 4px; flex: none;
}
.stepper button {
  width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--card);
  font-size: 1.1rem; font-weight: 700; color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.stepper button:disabled { opacity: 0.4; }
.stepper span { min-width: 32px; text-align: center; font-weight: 700; font-size: 0.95rem; }

/* ------------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: flex-end; }
.drawer-panel {
  position: relative; z-index: 1; width: min(440px, 100%); height: 100%;
  background: var(--card); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0.7; } to { transform: none; opacity: 1; } }
[dir="rtl"] .drawer-panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-24px); opacity: 0.7; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: var(--card); z-index: 2;
}
.drawer-head h2 { font-size: 1.12rem; }
.drawer-head .x { position: static; }

.cart-items { flex: 1; overflow: auto; padding: 8px 18px; display: flex; flex-direction: column; }
.cart-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, #f8f0f0, #f0e2e2); font-size: 1.4rem; overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h4 { font-size: 0.88rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-info small { color: var(--muted); font-size: 0.76rem; }
.cart-line .stepper { padding: 3px; }
.cart-line .stepper button { width: 28px; height: 28px; font-size: 0.95rem; }
.cart-line .stepper span { min-width: 24px; font-size: 0.86rem; }
.cart-remove {
  border: 0; background: transparent; color: var(--muted); font-size: 0.95rem;
  width: 28px; height: 28px; border-radius: 8px;
}
.cart-remove:hover { background: var(--danger-soft); color: var(--danger); }

.cart-empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 30px; }
.cart-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--card); }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding-block: 3px; color: var(--ink-2); }
.row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; font-size: 1.02rem; color: var(--ink); }
.row.total b { font-size: 1.2rem; letter-spacing: -0.02em; }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.hint.danger { color: var(--danger); }
.cart-foot .btn { margin-top: 10px; }

/* --------------------------------------------------------------------- form */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: repeat(3, 1fr); } }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea, .select {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  background: #fff; font-size: 0.92rem; font-weight: 500; width: 100%;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus, .select:focus {
  border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft);
}
.form textarea { resize: vertical; min-height: 46px; }
.field-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.form .check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form .check.self-end { align-self: end; padding-bottom: 10px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 8px;
  font-size: 0.86rem; font-weight: 600; background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.seg-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }

.paybox {
  display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600;
  background: var(--bg-2); border-radius: 11px; padding: 10px 12px; color: var(--ink-2);
}
.checkout-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 2px;
  font-weight: 600;
}
.checkout-total strong { font-size: 1.25rem; letter-spacing: -0.02em; }

/* ------------------------------------------------------------------ success */
.success-sheet { text-align: center; max-width: 440px; display: grid; gap: 10px; justify-items: center; }
.success-ico {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 1.9rem; margin-top: 6px;
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
.code-box {
  width: 100%; background: var(--bg-2); border-radius: 14px; padding: 12px;
  display: grid; gap: 2px; margin-block: 4px;
}
.code-box small { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.code-box strong { font-size: 1.2rem; letter-spacing: 0.02em; }
.success-sheet .btn { width: 100%; }

/* -------------------------------------------------------------------- toast */
.toast {
  position: fixed; inset-inline: 0; bottom: 84px; z-index: 120; margin-inline: auto;
  width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease both;
}
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 820px) { .toast { bottom: 24px; } }

/* ==========================================================================
   ADMIN
   ========================================================================== */
body.admin { background: #faf5f5; }

/* gate */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background:
  radial-gradient(700px 300px at 50% -10%, #fbdcdd, transparent 70%), var(--bg); }
.gate-card {
  width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 28px 24px; display: grid; gap: 10px; justify-items: center;
  box-shadow: var(--shadow); text-align: center;
}
.gate-logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-2), var(--brand)); font-size: 1.6rem;
  margin-bottom: 4px;
}
.gate-card h1 { font-size: 1.25rem; }
.gate-card input {
  width: 100%; text-align: center; letter-spacing: 0.5em; font-size: 1.2rem; font-weight: 700;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; outline: none;
}
.gate-card input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.gate-card .btn { width: 100%; margin-top: 4px; }
.gate-card .hint { margin: 0; }

/* shell */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 236px 1fr; } }

.side {
  background: #2a0d11; color: #f6dedf; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px;
}
@media (max-width: 899px) {
  .side { position: sticky; top: 0; z-index: 50; padding: 10px 12px; gap: 10px;
    flex-direction: row; align-items: center; overflow-x: auto; }
  .side-foot { display: none; }
  .side-brand { display: none; }
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.side-brand .brand-mark { width: 38px; height: 38px; font-size: 1.1rem; }
.side-brand strong { display: block; font-size: 0.95rem; color: #fff; }
.side-brand small { font-size: 0.7rem; color: #c98f95; }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 899px) { .side-nav { flex-direction: row; gap: 6px; } }
.nav-btn {
  display: flex; align-items: center; gap: 9px; border: 0; background: transparent;
  color: #c69aa0; padding: 10px 12px; border-radius: 11px; font-size: 0.9rem;
  font-weight: 600; text-align: start; position: relative; white-space: nowrap;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-btn.active { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 899px) {
  .nav-btn { padding: 8px 11px; font-size: 0.84rem; }
  .nav-btn.active { background: #fff; color: var(--ink); }
}
.nav-badge {
  min-width: 19px; height: 19px; padding-inline: 5px; border-radius: 999px;
  background: #f59e0b; color: #3b2400; font-size: 0.68rem; font-weight: 800;
  display: grid; place-items: center; margin-inline-start: auto;
}
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.side-foot .btn { justify-content: flex-start; color: #f8dcdd; border-color: rgba(255, 255, 255, 0.12); }
.side-foot .btn:hover { background: rgba(255, 255, 255, 0.07); }

.admin-body { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; flex-wrap: wrap;
}
@media (max-width: 899px) { .admin-top { position: static; padding: 14px 16px; } }
.admin-top h1 { font-size: 1.25rem; }
.admin-top p { font-size: 0.82rem; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.badge {
  font-size: 0.7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
}
.badge.online { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }

.admin-main { padding: 18px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .admin-main { padding: 22px 24px 60px; } }

/* KPIs */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi span { font-size: 0.76rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi strong { font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); letter-spacing: -0.03em; }
.kpi small { font-size: 0.74rem; color: var(--muted); }
.kpi.accent { background: linear-gradient(160deg, #fff8e8, #fdf0d2); border-color: #f4e3bd; }
.kpi.accent strong { color: var(--amber); }

/* panels */
.dash-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1.15fr 1fr; } }
.dash-grid.two { grid-template-columns: 1fr; }
@media (min-width: 980px) { .dash-grid.two { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow-sm); min-width: 0;
}
.panel.flat { background: var(--bg); border-color: transparent; padding: 12px; box-shadow: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-head h3 { font-size: 0.95rem; }
.panel h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.panel.report { display: flex; flex-direction: column; }

/* bars */
.bars { display: flex; align-items: stretch; gap: 8px; height: 168px; padding-top: 6px; }
.bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-val { font-size: 0.68rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bar-track {
  flex: 1; width: 100%; display: flex; align-items: flex-end;
  background: var(--bg-2); border-radius: 8px; overflow: hidden;
}
.bar-fill {
  width: 100%; border-radius: 8px; min-height: 4px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  transition: height 0.4s ease;
}
.bar.today .bar-fill { background: linear-gradient(180deg, #fbbf24, #d97706); }
.bar-lab { font-size: 0.7rem; color: var(--muted); text-transform: capitalize; }

/* rank + low stock */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: r; }
.rank li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.rank li::before {
  counter-increment: r; content: counter(r);
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--bg-2); color: var(--muted); font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}
.rank li:nth-child(1)::before { background: var(--brand-soft); color: var(--brand-ink); }
.rank .r-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .r-qty { font-weight: 700; font-size: 0.8rem; }
.lowlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lowlist li { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; }
.lowlist .q { font-weight: 700; color: var(--amber); }
.lowlist .q.zero { color: var(--danger); }
.panel .empty-mini { font-size: 0.84rem; color: var(--muted); padding: 8px 0; }

.report-pre {
  margin: 0; flex: 1; background: var(--bg); border-radius: 12px; padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  max-height: 220px; overflow: auto;
}
.panel.report .btn-row { margin-top: 10px; }

/* toolbar + filters */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .btn { margin-inline-start: auto; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.toolbar-actions .btn { margin-inline-start: 0; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.fbtn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fbtn .n {
  background: rgba(0, 0, 0, 0.08); border-radius: 999px; padding: 0 6px;
  font-size: 0.7rem; min-width: 18px; text-align: center;
}
.fbtn.active .n { background: rgba(255, 255, 255, 0.2); }

/* order list */
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 13px; transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.order-row:hover { border-color: #e4cdcf; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.or-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.or-code { font-weight: 750; font-size: 0.84rem; letter-spacing: -0.01em; }
.or-main { flex: 1; min-width: 0; }
.or-main h4 { font-size: 0.9rem; font-weight: 650; margin: 1px 0; }
.or-main p { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-side { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.or-side strong { font-size: 0.95rem; }
.or-time { font-size: 0.7rem; color: var(--muted); }

.st-pill {
  font-size: 0.68rem; font-weight: 750; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; letter-spacing: 0.01em;
}
.st-new { background: #fef3c7; color: #92400e; }
.st-confirmed { background: #dbeafe; color: #1d4ed8; }
.st-delivering { background: #e0e7ff; color: #4338ca; }
.st-done { background: var(--brand-soft); color: var(--brand-ink); }
.st-cancelled { background: #f1f5f9; color: #64748b; text-decoration: line-through; }

/* product table */
.table-panel { padding: 0; overflow: hidden; }
.product-list { display: flex; flex-direction: column; }
.prow {
  display: grid; grid-template-columns: 46px 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.prow:last-child { border-bottom: 0; }
.prow.archived { opacity: 0.55; }
.prow-img {
  width: 46px; height: 46px; border-radius: 11px; overflow: hidden; display: grid;
  place-items: center; font-size: 1.25rem; background: linear-gradient(160deg, #f8f0f0, #f0e2e2);
}
.prow-img img { width: 100%; height: 100%; object-fit: cover; }
.prow-main { min-width: 0; }
.prow-main h4 { font-size: 0.9rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-main p { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-price { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.prow-price small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--muted); }
.prow-price small.low { color: var(--amber); font-weight: 700; }
.prow-price small.zero { color: var(--danger); font-weight: 700; }
.prow-actions { display: flex; gap: 4px; }
.ibtn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; font-size: 0.82rem;
}
.ibtn:hover { background: var(--bg-2); }
.ibtn.danger:hover { background: var(--danger-soft); border-color: transparent; }
@media (max-width: 560px) {
  .prow { grid-template-columns: 42px 1fr auto auto; padding: 9px 11px; gap: 8px; }
  .prow-img { width: 42px; height: 42px; }
  .prow-price { font-size: 0.8rem; }
  .ibtn { width: 30px; height: 30px; }
}

/* order modal */
.order-sheet { max-width: 720px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-inline-end: 34px; flex-wrap: wrap; }
.order-head h2 { font-size: 1.25rem; margin-top: 1px; }
.order-head p { font-size: 0.8rem; }
.status-select { display: block; }
.status-select .select { width: auto; min-width: 160px; font-weight: 650; }
.order-cols { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .order-cols { grid-template-columns: 0.85fr 1.15fr; } }
.kv { display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; }
.kv b { font-weight: 650; }
.om-items { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; }
.om-items .it { display: flex; justify-content: space-between; gap: 10px; }
.om-items .it span:first-child { min-width: 0; }
.om-items .it small { color: var(--muted); }
.totals { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 0.85rem; }
.totals .t { display: flex; justify-content: space-between; }
.totals .t.grand { font-weight: 800; font-size: 1rem; padding-top: 4px; }
.note-box { background: var(--amber-soft); border-radius: 11px; padding: 9px 12px; font-size: 0.85rem; margin-top: 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; }
.order-sheet .btn-row { margin-top: 14px; }

/* image field */
.img-field { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.img-preview {
  width: 84px; height: 84px; border-radius: 12px; overflow: hidden; display: grid;
  place-items: center; font-size: 1.7rem; background: linear-gradient(160deg, #f8f0f0, #f0e2e2);
  border: 1px solid var(--line);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-inputs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.file-btn { cursor: pointer; justify-content: center; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* settings: appearance */
.settings-grid { display: grid; gap: 16px; }
@media (min-width: 1200px) { .settings-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: start; } }
.logo-preview { background: #fff; border-style: dashed; }
.logo-preview img { object-fit: contain; }
.logo-empty { opacity: 0.5; }
.print-grid { margin-top: 6px; }
.print-grid .self-end { align-self: end; display: flex; }

.banner-editors { display: grid; gap: 10px; margin-top: 10px; }
.banner-editor {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px;
  background: var(--bg);
}
.banner-preview {
  width: 96px; height: 62px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(160deg, #f8f0f0, #f0e2e2); border: 1px solid var(--line);
}
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-empty { opacity: 0.5; }
.banner-fields { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.banner-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.banner-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.banner-fields .form-grid { gap: 8px; }
.banner-fields label span { font-size: 0.72rem; }
@media (max-width: 520px) {
  .banner-editor { grid-template-columns: 1fr; }
  .banner-preview { width: 100%; height: 110px; }
}

/* category manager */
.cat-sheet { max-width: 620px; }
.cat-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 16px; max-height: 42vh; overflow: auto; }
.cat-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.cat-emoji {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 1.1rem; flex: none;
}
.cat-names { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.cat-names strong { font-size: 0.92rem; }
.cat-names small { color: var(--muted); font-size: 0.76rem; }
.cat-count { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.cat-actions { display: flex; gap: 4px; flex: none; }
.cat-form { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 480px) {
  .cat-count { display: none; }
}

/* receipt */
.receipt { display: none; }
@media print {
  body > *:not(#receipt) { display: none !important; }
  #receipt {
    display: block !important; width: 72mm; margin: 0 auto; padding: 2mm 0;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5pt; color: #000;
  }
  #receipt h1 { font-size: 13pt; text-align: center; margin: 0 0 2mm; }
  #receipt.paper-58 { width: 48mm; font-size: 9pt; }
  #receipt.paper-58 h1 { font-size: 11pt; }
  #receipt.paper-58 .rc-logo { max-width: 15mm; max-height: 15mm; }
  #receipt.paper-58 .rc-total { font-size: 10.5pt; }
  #receipt.paper-80 { width: 72mm; }
  #receipt .rc-logo {
    display: block; margin: 0 auto 1.5mm; max-width: 20mm; max-height: 20mm;
    object-fit: contain; filter: grayscale(1);
  }
  #receipt .rc-sub { text-align: center; font-size: 9pt; margin-bottom: 3mm; }
  #receipt hr { border: 0; border-top: 1px dashed #000; margin: 2mm 0; }
  #receipt .rc-line { display: flex; justify-content: space-between; gap: 3mm; }
  #receipt .rc-line span:first-child { flex: 1; }
  #receipt .rc-total { font-weight: 700; font-size: 12pt; }
  #receipt .rc-foot { text-align: center; font-size: 9pt; margin-top: 3mm; }
  @page { margin: 4mm; }
}

/* RTL nudges */
[dir="rtl"] .hero-art { transform: rotate(4deg); }[dir="rtl"] .or-side { align-items: flex-start; text-align: start; }
[dir="rtl"] .om-items .it small { display: inline-block; }
[dir="rtl"] .rank li::before { font-family: var(--font); }
[dir="rtl"] .side-foot .btn { justify-content: flex-start; }
[dir="rtl"] .search input { text-align: right; }

/* small screens: keep the top bar on a single row so the sticky
   category strip keeps the right offset */
@media (max-width: 720px) {
  .topbar-in { gap: 10px; }
  .search { flex: 1 1 110px; min-width: 0; }
  .brand-txt small { display: none; }
}
@media (max-width: 640px) {
  .hero-art { display: none; }
  .hero-slider { min-height: 220px; }
  .hero-slide { padding: 18px 16px 58px; }
  .hero-cap h2 { font-size: 1.28rem; }
  .hero-cap h1 { font-size: 1.35rem; }
  .hero-cap p { font-size: 0.85rem; }
  .hero-nav { width: 32px; height: 32px; font-size: 1.15rem; }
  .hero-nav.prev { inset-inline-start: 8px; }
  .hero-nav.next { inset-inline-end: 8px; }
  .hero-dots { display: none; }
  .hero-info {
    inset-inline: 8px; inset-block-end: 8px; justify-content: center; gap: 4px;
  }
  .hero-info .pill { font-size: 0.68rem; padding: 4px 8px; }
}
@media (max-width: 430px) {
  .brand-txt { display: none; }
  .topbar-in { gap: 8px; }
  .cart-btn { padding-inline: 10px; }
  .admin-top { gap: 10px; }
  .admin-top-actions { width: 100%; justify-content: flex-end; }
}
