/* ==========================================================================
   CM Minimarket — "Gold & Gunmetal" (restored) + polish
   Dark metallic base, warm gold accents — the original brand identity.
   Kept: refined type (Rubik/Nunito Sans), block spacing, hover motion.
   Added: animated gold-shimmer hero band, trust badges, button sheen.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root {
  --ink:        #f3ecd9;
  --ink-soft:   #b9ae90;
  --bg:         #0b0b0a;
  --panel:      #1a1815;
  --panel-raised:#221f1a;
  --gold:       #d4af37;
  --gold-bright:#f2c94c;
  --gold-soft:  #f9e08a;
  --gold-deep:  #8a6a12;
  --tomato:     #e2543f;
  --danger:     #e2543f;
  --danger-tint:#33201c;
  --line:       #3a3327;
  --border:     #3a3327;
  --wa:         #25d366;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.72);
  --gold-grad: linear-gradient(135deg, #f9e08a 0%, #d4af37 45%, #8a6a12 100%);
  --black-grad:linear-gradient(160deg, #232220 0%, #0b0b0a 100%);
  --glow-gold: 0 0 0 1px rgba(212,175,55,0.35), 0 10px 30px rgba(212,175,55,0.18);

  --font-head: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; }

/* The HTML `hidden` attribute must beat rules like .cart-bar{display:flex},
   otherwise those elements never actually hide. */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .brand-text, .btn, .cat-chip, .price-tag, .cart-bar,
.stock-pill, .status-pill, .chip-filter, .order-label, .hero-title { font-family: var(--font-head); }

button { font: inherit; cursor: pointer; }
a { color: var(--gold-bright); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--black-grad);
  color: var(--ink);
  padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; row-gap: 0.5rem;
  box-shadow: 0 2px 0 var(--gold-deep);
}
/* Golden glass logo — the bull art sits inside a translucent gold bezel with a
   soft top highlight and gold glow, so it reads as a polished emblem. */
.logo-mark {
  width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; padding: 2px;
  background: linear-gradient(155deg, rgba(249,224,138,0.92), rgba(212,175,55,0.55) 55%, rgba(138,106,18,0.72));
  box-shadow: 0 0 0 1px rgba(212,175,55,0.45),
              inset 0 1px 2px rgba(255,255,255,0.55),
              0 5px 16px rgba(212,175,55,0.28);
}
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--bg); }
.brand-text { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--gold-bright); line-height: 1.12; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; color: var(--ink-soft); }

/* Brand lockup — matches the storefront sign: bull emblem | "CM minimarket".
   The wordmark sits on a frosted-glass gold chip; "CM" is a molten-gold gradient. */
.brand-divider { flex: 0 0 auto; width: 2px; height: 36px; border-radius: 2px;
  background: linear-gradient(var(--gold-bright), var(--gold-deep)); opacity: 0.8; }
.brand {
  display: flex; flex-direction: column; justify-content: center; line-height: 1;
  padding: 5px 12px 6px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,175,55,0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 5px 16px rgba(0,0,0,0.32);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.brand-wordmark {
  font-family: 'Poppins', var(--font-head);
  font-weight: 800; font-size: 1.34rem; letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 0.26em;
}
.brand-wordmark .wm-cm {
  font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(165deg, #fff6d8 0%, #f7d365 38%, #d4af37 68%, #8a6a12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}
.brand-wordmark .wm-rest { font-weight: 700; letter-spacing: 0;
  background: linear-gradient(165deg, #f9e08a 0%, #e6c25a 52%, #b98f22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.brand-tagline { display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.66rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.lang-toggle { display: flex; border: 1.5px solid var(--gold-deep); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.lang-toggle button { background: transparent; color: var(--ink-soft); border: 0; padding: 0.32rem 0.85rem; font-weight: 700; font-size: 0.85rem; }
.lang-toggle button[aria-pressed="true"] { background: var(--gold-grad); color: #0b0b0a; }
.share-btn { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; background: transparent; border: 1.5px solid var(--gold-deep); color: var(--gold-bright); border-radius: 999px; padding: 0.32rem 0.85rem; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.share-btn:hover { background: var(--panel-raised); }
.share-btn svg { width: 15px; height: 15px; }
.footer-line-wa { align-items: center; }
.footer-qr-inline { width: 52px; height: 52px; border-radius: 6px; background: #fff; padding: 3px; margin-left: auto; flex: 0 0 auto; }
.qr-modal-img { display: block; margin: 0.9rem auto; width: 220px; height: 220px; border-radius: 10px; background: #fff; padding: 10px; }
.qr-modal-url { color: var(--gold-bright); font-weight: 700; margin-bottom: 1rem; }
.qr-modal-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.qr-modal-status { margin-top: 0.8rem; font-size: 0.85rem; color: var(--gold-bright); min-height: 1.2em; }
.modal-close { position: absolute; top: 0.7rem; right: 0.9rem; background: transparent; border: 0; color: var(--ink-soft); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--gold-bright); }
#qr-modal { position: relative; }

/* --------------------------------------------------------------------------
   Hero band  (NEW) — animated gold-shimmer title + trust badges
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--black-grad);
  border-bottom: 1px solid var(--gold-deep);
  padding: 1.7rem 1rem 1.5rem;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto; height: 200px;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.18), transparent 70%);
  pointer-events: none;
}
.hero-title {
  position: relative; font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #8a6a12 0%, #f9e08a 25%, #f2c94c 50%, #f9e08a 75%, #8a6a12 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-shine 5s linear infinite;
}
@keyframes gold-shine { to { background-position: 220% center; } }
.hero-sub { position: relative; color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; }
.hero-badges { position: relative; display: flex; gap: 0.55rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(26,24,21,0.8); border: 1px solid var(--gold-deep); border-radius: 999px;
  padding: 0.38rem 0.85rem; font-size: 0.8rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.hero-badge:hover { border-color: var(--gold); background: rgba(212,175,55,0.16); transform: translateY(-2px); box-shadow: var(--glow-gold); }
.hero-badge:active { transform: translateY(0); box-shadow: none; }
.hero-badge:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.hero-badge svg { width: 16px; height: 16px; stroke: var(--gold-bright); flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Search + categories
   -------------------------------------------------------------------------- */
.toolbar { padding: 1rem 1rem 0.4rem; }
.search {
  width: 100%; padding: 0.82rem 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
}
.search::placeholder { color: var(--ink-soft); }
.search:focus { background: var(--panel-raised); border-color: var(--gold); outline: none; }

.cats { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.7rem 1rem; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 0.44rem 1rem; font-weight: 600; font-size: 0.9rem; color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cat-chip:hover { border-color: var(--gold); }
.cat-chip[aria-pressed="true"] { background: var(--gold-grad); border-color: var(--gold); color: #0b0b0a; }

/* --------------------------------------------------------------------------
   Quick category tiles — icon shortcuts under the hero (no promo copy,
   just an image/icon + label that jumps to that category in the grid)
   -------------------------------------------------------------------------- */
.quick-cats { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  padding: 1.1rem 1rem 1rem; background: var(--black-grad); border-bottom: 1px solid var(--gold-deep); }
.quick-cat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: transparent; border: 0; width: 76px; padding: 0; }
.quick-cat-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(249,224,138,0.14), rgba(212,175,55,0.06));
  border: 1.5px solid var(--gold-deep);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.quick-cat-icon svg { width: 28px; height: 28px; stroke: var(--gold-bright); flex: 0 0 auto; }
.quick-cat:hover .quick-cat-icon { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--glow-gold); }
.quick-cat:active .quick-cat-icon { transform: translateY(0); }
.quick-cat[aria-pressed="true"] .quick-cat-icon { background: var(--gold-grad); border-color: var(--gold); }
.quick-cat[aria-pressed="true"] .quick-cat-icon svg { stroke: #0b0b0a; }
.quick-cat-label { font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; color: var(--ink-soft); text-align: center; line-height: 1.15; }
.quick-cat[aria-pressed="true"] .quick-cat-label { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Full-screen landing — the logo is the focus + a welcome greeting.
   Fills the first screen (minus the sticky header) before any scrolling.
   -------------------------------------------------------------------------- */
.landing { position: relative; min-height: calc(100svh - 64px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2.4rem 1.2rem 4rem; overflow: hidden; background: var(--black-grad); }
.landing::before { content: ""; position: absolute; inset: -30% 0 auto; height: 75%;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.22), transparent 68%); pointer-events: none; }
.landing-logo { position: relative; width: min(58vw, 260px); aspect-ratio: 1; border-radius: 50%; padding: 4px;
  display: flex; overflow: hidden;
  background: linear-gradient(155deg, rgba(249,224,138,0.92), rgba(212,175,55,0.5) 55%, rgba(138,106,18,0.72));
  box-shadow: 0 0 0 1px rgba(212,175,55,0.5), inset 0 2px 4px rgba(255,255,255,0.5), 0 14px 44px rgba(212,175,55,0.3);
  animation: logo-float 5s ease-in-out infinite; }
.landing-logo img, .landing-logo svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: transparent; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.landing-welcome { position: relative; margin-top: 1.5rem; font-family: var(--font-body); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; color: var(--ink-soft); }
.landing-title { position: relative; font-family: var(--font-head); font-weight: 800; margin-top: 0.35rem;
  font-size: clamp(2rem, 9vw, 3.3rem); line-height: 1.04;
  background: linear-gradient(100deg, #8a6a12 0%, #f9e08a 25%, #f2c94c 50%, #f9e08a 75%, #8a6a12 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-shine 5s linear infinite; }
.landing-sub { position: relative; color: var(--ink-soft); font-size: 1rem; margin-top: 0.7rem; max-width: 34ch; }
.landing-cta { position: relative; display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.7rem; }
.landing-cta .btn { padding: 0.82rem 1.5rem; font-size: 1rem; }
.btn.wa { background: var(--wa); color: #04340f; box-shadow: 0 4px 0 #128c3e; display: inline-flex; align-items: center; gap: 0.45rem; }
.btn.wa svg { width: 18px; height: 18px; fill: #04340f; }
.landing-scroll { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; color: var(--ink-soft);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; background: transparent; border: 0;
  animation: bob 1.8s ease-in-out infinite; }
.landing-scroll svg { width: 22px; height: 22px; stroke: var(--gold-bright); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* --------------------------------------------------------------------------
   Section heading (shared by slideshow + category sections)
   -------------------------------------------------------------------------- */
.section-head { text-align: center; padding: 1.8rem 1rem 0.3rem; }
.section-head h2 { font-size: clamp(1.2rem, 4.5vw, 1.6rem); font-weight: 800; color: var(--gold-bright); letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.15rem; }

/* --------------------------------------------------------------------------
   Promotional slideshow — auto-rotating, each slide jumps to a category
   -------------------------------------------------------------------------- */
.promo { max-width: 900px; margin: 0.6rem auto 0; padding: 0 1rem; }
.promo-viewport { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--gold-deep); box-shadow: var(--shadow); }
.promo-track { display: flex; transition: transform .6s cubic-bezier(.6,.05,.2,1); }
.promo-slide { position: relative; flex: 0 0 100%; height: clamp(190px, 42vw, 300px); border: 0; padding: 0;
  cursor: pointer; background-size: cover; background-position: center; background-color: var(--panel-raised); display: block; text-align: left; }
.promo-slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,10,0.88) 0%, rgba(11,11,10,0.4) 55%, transparent 100%); }
.promo-caption { position: absolute; z-index: 1; left: 0; bottom: 0; padding: 1.1rem 1.35rem; max-width: 82%; }
.promo-tag { display: inline-block; background: var(--gold-grad); color: #241a02; font-family: var(--font-head);
  font-weight: 800; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.16rem 0.6rem; border-radius: 999px; }
.promo-caption h3 { font-size: clamp(1.15rem, 4.5vw, 1.7rem); color: #fff; margin-top: 0.5rem; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.65); }
.promo-caption p { color: #f3ecd9; font-size: 0.85rem; margin-top: 0.25rem; font-weight: 700; }
.promo-dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 0.75rem; }
.promo-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line); transition: width .2s ease, background .2s ease; }
.promo-dots button.on { background: var(--gold); width: 22px; border-radius: 999px; }

/* --------------------------------------------------------------------------
   Category cards — clean, clickable, with real product imagery.
   The gold gradient + icon sit behind the photo, so a failed image never
   looks broken — it gracefully falls back to the on-brand tile.
   -------------------------------------------------------------------------- */
.cat-cards { max-width: 900px; margin: 0 auto; display: grid; gap: 0.9rem; padding: 0.9rem 1rem 0.4rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cat-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--glow-gold); }
.cat-card-media { position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, rgba(249,224,138,0.16), rgba(212,175,55,0.05));
  display: flex; align-items: center; justify-content: center; }
.cat-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cat-card-media svg { width: 40px; height: 40px; stroke: var(--gold-bright); opacity: 0.9; }
.cat-card-label { position: relative; z-index: 2; padding: 0.6rem 0.8rem; font-family: var(--font-head);
  font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.cat-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: var(--glow-gold); }
.cat-card[aria-pressed="true"] .cat-card-label { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--black-grad); border-top: 1px solid var(--gold-deep); color: var(--ink-soft); margin-top: 2rem; padding: 2.2rem 1.2rem 7rem; }
.footer-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.footer-brand .logo-mark { width: 44px; height: 44px; }
.footer-brand-name { font-family: var(--font-head); font-weight: 800; color: var(--gold-bright); font-size: 1.05rem; }
.footer-about { font-size: 0.88rem; line-height: 1.5; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-head); color: var(--gold-bright); font-size: 0.95rem; font-weight: 800; margin-bottom: 0.7rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-cat { background: none; border: 0; color: var(--ink-soft); padding: 0; font: inherit; text-align: left; cursor: pointer; }
.footer-cat:hover { color: var(--gold-bright); }
.footer-line { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.7rem; font-size: 0.88rem; line-height: 1.4; }
.footer-line svg { width: 16px; height: 16px; stroke: var(--gold-bright); flex: 0 0 auto; margin-top: 3px; }
.footer-line a { color: var(--ink); text-decoration: none; }
.footer-line a:hover { color: var(--gold-bright); }
.footer-line b { color: var(--ink); font-weight: 700; display: block; }
.footer-bottom { max-width: 900px; margin: 1.6rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; text-align: center; }

/* --------------------------------------------------------------------------
   Product grid — dark cards with the signature gold price tag
   -------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; padding: 0.5rem 1rem 6rem; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--glow-gold); }
.card-img { aspect-ratio: 1; background: var(--panel-raised); display: flex; align-items: center; justify-content: center; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-initial {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 800;
  background: var(--black-grad); color: var(--gold);
}
.price-tag {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  background: var(--gold-grad); color: #241a02; font-weight: 800; font-size: 0.98rem;
  padding: 0.2rem 0.65rem; border-radius: var(--radius-sm); box-shadow: 0 3px 0 var(--gold-deep);
  transform: rotate(-2deg);
}
.oos-badge { position: absolute; right: 0.6rem; top: 0.6rem; background: var(--tomato); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 999px; }
.card.oos .card-img { filter: grayscale(0.7); opacity: 0.6; }
.card-body { padding: 0.7rem 0.8rem 0.85rem; }
.card-name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; color: var(--ink); }
.card-sub { color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.15rem; }
.empty { grid-column: 1/-1; text-align: center; color: var(--ink-soft); padding: 3.5rem 1rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Buttons — gold, with a sheen sweep on hover (NEW)
   -------------------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  border: 0; border-radius: var(--radius-sm); padding: 0.66rem 1.2rem; font-weight: 700;
  background: var(--gold-grad); color: #241a02; box-shadow: 0 4px 0 var(--gold-deep);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after { animation: btn-sheen .75s ease; }
@keyframes btn-sheen { from { left: -130%; } to { left: 160%; } }
.btn.secondary { background: var(--panel-raised); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.secondary:hover { border-color: var(--gold); filter: none; }
.btn.danger { background: var(--tomato); color: #fff; box-shadow: 0 4px 0 #922; }
.btn.small { padding: 0.4rem 0.8rem; font-size: 0.85rem; box-shadow: 0 3px 0 var(--gold-deep); }
.btn.secondary.small { box-shadow: 0 3px 0 var(--line); }
.btn.danger.small { box-shadow: 0 3px 0 #922; }
.btn.wide { width: 100%; padding: 0.9rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; box-shadow: none; }
.btn:disabled::after { display: none; }

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 1.2rem; }
.admin-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-bar h1 { font-size: 1.55rem; letter-spacing: -0.02em; color: var(--gold-bright); font-weight: 800; }
.admin-bar .spacer { flex: 1; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.5rem; background: var(--panel); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--gold-bright); font-weight: 700; display: inline-block; border-bottom: 3px solid var(--gold-deep); padding-bottom: 0.2rem; }

.form-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid label { font-size: 0.82rem; font-weight: 700; display: block; color: var(--ink-soft); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--panel-raised); color: var(--ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--gold); outline: none; }
.form-actions { margin-top: 1rem; display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); }

.prod-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prod-table th, .prod-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prod-table th { color: var(--gold-bright); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.prod-table img.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); }
.thumb-initial { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: #241a02; background: var(--gold-grad); }
.stock-pill { font-size: 0.74rem; font-weight: 700; padding: 0.18rem 0.6rem; border-radius: 999px; }
.stock-pill.in { background: #21301f; color: #8fd47a; }
.stock-pill.out { background: var(--danger-tint); color: #f28b7a; }

/* Category manager — add/remove the storefront category tabs */
.cat-count { display: inline-block; min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 0.78rem; color: var(--ink-soft); background: var(--panel-raised); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.5rem; }
.cat-hint { color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.6rem; }

.login-card { max-width: 380px; margin: 12vh auto; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--panel); }
.login-card h1 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--gold-bright); font-weight: 800; }
.login-card input { width: 100%; padding: 0.72rem 0.85rem; font: inherit; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.9rem; background: var(--panel-raised); color: var(--ink); }
.login-card input:focus { border-color: var(--gold); outline: none; }
.error { color: var(--tomato); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* --------------------------------------------------------------------------
   Cart bar, drawers, checkout
   -------------------------------------------------------------------------- */
.add-btn { width: 100%; padding: 0.5rem; font-size: 0.88rem; margin-top: 0.5rem; }
.qty-stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; background: var(--panel-raised); border: 1px solid var(--gold-deep); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { background: none; border: 0; color: var(--gold-bright); font-size: 1.2rem; font-weight: 800; padding: 0.28rem 0.75rem; }
.qty-stepper button:hover { background: rgba(212,175,55,0.12); }
.qty-stepper span { font-weight: 800; }

.cart-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30; max-width: 900px; margin: 0 auto;
  background: var(--gold-grad); color: #241a02; border: 0; border-radius: 999px; padding: 0.9rem 1.3rem;
  display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}
.cart-bar-total { margin-left: auto; }
.cart-bar-view { opacity: 0.75; font-weight: 700; font-size: 0.85rem; }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.62); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 90vh; overflow-y: auto; max-width: 560px; margin: 0 auto;
  background: var(--panel); border-top: 5px solid var(--gold); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6); padding-bottom: env(safe-area-inset-bottom, 0);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem 0.5rem; }
.sheet-head h2 { font-size: 1.2rem; color: var(--gold-bright); font-weight: 800; }
.sheet-close { background: var(--panel-raised); border: 1px solid var(--line); color: var(--ink); border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; }
.sheet-body { padding: 0 1.2rem; }
.sheet-foot { padding: 0.9rem 1.2rem 1.2rem; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.cart-line-name { font-size: 0.95rem; font-weight: 600; }
.cart-line .qty-stepper { width: 118px; margin-top: 0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; margin-bottom: 0.8rem; font-weight: 700; }
.cart-total-row strong { color: var(--gold-bright); font-family: var(--font-head); font-size: 1.3rem; }

.field { display: block; margin: 0.9rem 0; }
.field > span { font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); display: block; margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; padding: 0.65rem 0.8rem; font: inherit; background: var(--panel-raised); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }

.option-row { display: flex; gap: 0.6rem; margin-top: 0.3rem; }
.option-pill { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.7rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-raised); font-weight: 700; cursor: pointer; position: relative; }
.option-pill input { position: absolute; opacity: 0; }
.option-pill:has(input:checked) { border-color: var(--gold); background: rgba(212,175,55,0.14); color: var(--gold-bright); }

.location-status { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.location-status.ok { color: #8fd47a; font-weight: 700; }
.pickup-note { background: var(--panel-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem 0.85rem; font-size: 0.87rem; color: var(--ink-soft); margin: 0.9rem 0; }

.confirm-body { text-align: center; padding: 2.2rem 1.2rem 1.6rem; }
.confirm-mark { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 0.9rem; background: var(--gold-grad); color: #241a02; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; box-shadow: 0 6px 0 var(--gold-deep); }
.confirm-body h2 { color: var(--gold-bright); margin-bottom: 0.4rem; font-weight: 800; }
.confirm-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.confirm-number { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.03em; color: var(--gold-bright); margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   Admin — orders
   -------------------------------------------------------------------------- */
.status-filters { display: flex; gap: 0.45rem; overflow-x: auto; }
.chip-filter { flex: 0 0 auto; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; text-decoration: none; background: var(--panel); cursor: pointer; }
.chip-filter.on { background: var(--gold-grad); color: #241a02; border-color: var(--gold); }
.order-card { padding: 1.2rem; }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.status-pill { margin-left: 0.6rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--panel-raised); color: var(--ink-soft); letter-spacing: 0.03em; }
.status-pill.status-new { color: #f2c94c; background: #3a3320; }
.status-pill.status-called { color: #7fb8f0; background: #1e2a38; }
.status-pill.status-out_for_delivery, .status-pill.status-ready_for_pickup { color: #8fd47a; background: #21301f; }
.status-pill.status-completed { color: var(--ink-soft); background: var(--panel-raised); }
.status-pill.status-cancelled { color: #f28b7a; background: var(--danger-tint); }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; margin-bottom: 0.8rem; }
.order-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 0.15rem; font-weight: 700; }
.phone-link { display: inline-block; margin-top: 0.2rem; font-weight: 800; color: var(--gold-bright); }
.order-notes { background: var(--panel-raised); border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; font-size: 0.88rem; margin-bottom: 0.8rem; }
.order-items { margin-bottom: 0.9rem; font-size: 0.88rem; }
.order-items summary { cursor: pointer; color: var(--gold-bright); font-weight: 700; }
.order-items ul { margin: 0.5rem 0 0 1.1rem; color: var(--ink-soft); }
.order-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   WhatsApp contact points
   -------------------------------------------------------------------------- */
/* Icon-only circular WhatsApp button, pinned to the bottom-right corner.
   Its vertical position is nudged up in JS when the cart bar is visible so
   the two never overlap. */
.whatsapp-fab { position: fixed; right: 1.1rem; bottom: 1.4rem; z-index: 29; display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; background: var(--wa); color: #04340f; border-radius: 50%; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5); transition: transform .15s ease, bottom .2s ease; }
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 32px; height: 32px; fill: #04340f; }
.qr-fab { position: fixed; right: 1.1rem; bottom: 5.8rem; z-index: 29; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; background: var(--gold-grad); border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5); transition: transform .15s ease, bottom .2s ease; }
.qr-fab:hover { transform: scale(1.06); }
.qr-fab svg { width: 26px; height: 26px; }
.whatsapp-btn { background: var(--wa); color: #04340f; margin-bottom: 0.6rem; box-shadow: 0 4px 0 #128c3e; }
.whatsapp-link { display: inline-block; margin-top: 0.3rem; margin-left: 0.7rem; font-weight: 800; color: var(--wa); }

/* --------------------------------------------------------------------------
   Demo-only elements (used by demo.html; harmless in the Flask app)
   -------------------------------------------------------------------------- */
.store-main { max-width: 900px; margin: 0 auto; }
.demo-banner { background: var(--black-grad); border-bottom: 1px solid var(--gold-deep); color: var(--ink-soft); font-size: 0.82rem; padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.demo-banner b { color: var(--gold-bright); }
.demo-banner .spacer { flex: 1; }
.demo-banner button { background: var(--panel-raised); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 0.18rem 0.7rem; font-size: 0.76rem; font-weight: 700; }
.demo-banner button:hover { border-color: var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn.secondary { background: var(--panel-raised); color: var(--ink); border: 1px solid var(--gold-deep); box-shadow: none; }
.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.admin-tabs button { border: 1px solid var(--line); background: var(--panel); color: var(--ink-soft); border-radius: 999px; padding: 0.45rem 1.1rem; font-weight: 700; font-family: var(--font-head); }
.admin-tabs button.on { background: var(--gold-grad); color: #241a02; border-color: var(--gold); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 370px; width: 100%; padding: 1.6rem; text-align: center; }
.modal h2 { color: var(--gold-bright); margin-bottom: 0.3rem; font-weight: 800; }
.modal p { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 0.9rem; }
.qr-box { background: #fff; border-radius: var(--radius-sm); padding: 12px; display: inline-block; margin: 0.4rem 0 0.9rem; }
.qr-box img { width: 230px; height: 230px; }
.qr-url { width: 100%; padding: 0.55rem 0.65rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-raised); color: var(--ink); font-size: 0.82rem; margin-bottom: 0.7rem; text-align: center; }
.modal .btn { margin: 0.2rem; }
.login-card p.hint { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 1rem; }
.login-card p.hint b { color: var(--gold-bright); }
