/* =========================================================================
   Boba & Co. storefront styles
   Clean, light, BioPak-inspired layout. Mobile-first with simple breakpoints.
   ========================================================================= */

:root {
  --ink: #1b2330;
  --muted: #6b7280;
  --line: #e6e7ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --accent: #1f3a8a;        /* Sofnade navy blue */
  --accent-dark: #16296b;
  --accent-soft: #e8edf8;
  --gold: #ffc629;          /* Sofnade golden yellow */
  --gold-dark: #f0b41a;
  --danger: #c0492f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 36, 33, 0.08);
  --shadow-sm: 0 2px 8px rgba(31, 36, 33, 0.06);
  --maxw: 1180px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 36px; width: auto; display: block; }
.main-nav { display: flex; gap: 22px; margin-left: 18px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none; border: none; background: none; cursor: pointer; padding: 6px;
  color: var(--ink); border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 768px) {
  .site-header .wrap { position: relative; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 6px 20px 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  /* Shrink the hero so the first row of products is visible sooner */
  .hero .wrap { padding: 26px 20px; }
  .hero h1 { font-size: 28px; margin: 0 0 8px; }
  .hero p { font-size: 15px; line-height: 1.5; }
}

.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; padding: 9px 16px; border-radius: 999px;
  background: var(--gold); color: var(--accent);
}
.cart-link:hover { background: var(--gold-dark); }
.cart-badge {
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.cart-badge.is-empty { background: rgba(31, 58, 138, 0.35); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.hero .wrap { padding: 56px 20px; }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero p { font-size: 18px; max-width: 560px; opacity: 0.9; margin: 0; }

/* ---------- Search bar ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 2px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbar-icon { font-size: 16px; opacity: 0.6; line-height: 1; }
.searchbar-input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font: inherit; font-size: 16px; color: var(--ink);
}
.searchbar-input::placeholder { color: var(--muted); }
/* Hide the native clear control; we provide our own button. */
.searchbar-input::-webkit-search-cancel-button { display: none; }
.searchbar-clear {
  flex: 0 0 auto; border: none; cursor: pointer;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.searchbar-clear:hover { background: var(--line); color: var(--ink); }

.breadcrumb { color: var(--muted); font-size: 14px; padding: 18px 0; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Listing layout ---------- */
.shop-layout {
  display: grid; grid-template-columns: 248px 1fr; gap: 36px;
  padding: 32px 0 64px;
}
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; gap: 0; } }
/* Let grid columns shrink so a wide scroll row can't blow out the page width */
.shop-layout > * { min-width: 0; }

.sidebar { position: sticky; top: 92px; align-self: start; }
.filter-bar { display: flex; flex-direction: column; gap: 2px; }
.filter-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; color: var(--ink); padding: 9px 12px; border-radius: 10px; font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { background: var(--bg-soft); }
.filter-btn.active { background: var(--accent); color: #fff; font-weight: 600; }

/* Mobile: categories become a horizontal scroll bar of pills on a golden band,
   sitting flush right under the hero. */
@media (max-width: 860px) {
  .shop-layout { padding-top: 0; }
  /* Clear gap under the search bar, before the category ribbon */
  .searchbar { margin: 16px 0 14px; }
  /* Sit the category (gold) ribbon directly above the sub-category ribbon */
  .sidebar {
    position: sticky; top: 67px; z-index: 20; margin: 0;
    width: 100vw; margin-inline: calc(50% - 50vw);   /* full-bleed, no page overflow */
    background: var(--gold);
  }
  /* Breathing room before the product grid (in both ribbon states) */
  .listing-head { margin-top: 16px; }
  .filter-bar {
    flex-direction: row; gap: 8px; overflow-x: auto; padding: 12px 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn {
    width: auto; flex: 0 0 auto; white-space: nowrap;
    background: #fff; color: var(--accent); border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px; padding: 8px 16px; font-weight: 600;
  }
  .filter-btn:hover { background: #fff; }
  .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
}

.listing-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.listing-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.listing-head .count { color: var(--muted); font-size: 14px; }

/* ---------- Product grid + cards ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
/* Two columns on mobile (was one giant column) */
@media (max-width: 560px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: cardIn 0.26s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: #fff; color: var(--accent-dark); padding: 3px 9px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.tag-chip.cat { background: var(--accent); color: #fff; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.card-desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 16px; }
.price .from { color: var(--muted); font-weight: 500; font-size: 12px; }

/* Tighter cards for the two-column mobile grid */
@media (max-width: 560px) {
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 14px; }
  .card-desc { font-size: 12.5px; margin-bottom: 10px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .btn.ghost { text-align: center; padding: 8px 12px; }
  .tag-chip { font-size: 10px; padding: 2px 7px; }
}
.btn {
  font: inherit; cursor: pointer; border: none; border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: 14px;
  background: var(--gold); color: var(--accent); transition: background 0.15s ease;
}
.btn:hover { background: var(--gold-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: var(--gold); color: var(--accent); }
.btn.ghost:hover { background: var(--gold-dark); }
.btn.block { width: 100%; padding: 14px; font-size: 16px; }

/* Add-to-cart click feedback: quick press pop + "Added" success state */
@keyframes btn-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.94); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.btn.pop { animation: btn-pop 0.32s ease; }
.btn.added { background: var(--accent); color: #fff; }
.btn.danger { background: none; color: var(--danger); padding: 4px; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .big { font-size: 48px; }

/* ---------- Quantity selector ---------- */
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  font-size: 18px; color: var(--ink); line-height: 1;
}
.qty button:hover { background: var(--bg-soft); }
.qty input {
  width: 40px; text-align: center; border: none; font: inherit; font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Product detail page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px 0 56px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }

/* Desktop: keep the gallery in view while the details scroll */
.gallery { position: sticky; top: 92px; align-self: start; }
@media (max-width: 860px) { .gallery { position: static; } }

/* Mobile mini product card (slides in after the gallery scrolls away) */
.pdp-mini { display: none; }
@media (max-width: 860px) {
  .pdp-mini {
    display: flex; align-items: center; gap: 12px;
    position: fixed; top: 67px; left: 0; right: 0; z-index: 45;
    padding: 8px 16px; background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.25s ease; will-change: transform;
  }
  .pdp-mini.show { transform: translateY(0); }
  .pdp-mini img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
  .pdp-mini-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .pdp-mini-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-mini-price { font-weight: 800; font-size: 15px; }
}

.gallery-main {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.gallery-thumbs button {
  width: 78px; height: 78px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--bg-soft); cursor: pointer; padding: 0;
  transition: border-color 0.15s ease;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: 30px; margin: 4px 0 10px; letter-spacing: -0.02em; }
.pdp-labels { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pdp-price { font-size: 26px; font-weight: 800; margin: 6px 0 18px; }
.pdp-desc { color: #4b5563; margin-bottom: 22px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field select,
.field input[type=text],
.field input[type=tel],
.field input[type=email] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
/* Custom dropdown chevron so the arrow sits evenly inset from the right edge
   and stays vertically centred (equidistant top/right/bottom). */
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.option-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.option-row label { font-weight: 500; margin: 0; cursor: pointer; }
.add-row { display: flex; gap: 12px; align-items: center; margin: 24px 0; }

/* Custom option pills (size + toppings) — replaces native select/checkboxes */
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill {
  font: inherit; cursor: pointer; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.opt-pill small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.opt-pill:hover { border-color: var(--accent); }
.opt-pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.opt-pill.active small { color: var(--accent-dark); }
.opt-pill.disabled { opacity: 0.4; pointer-events: none; }
.field-note { font-weight: 500; font-size: 12px; color: var(--muted); }

/* Sub-navigation: dropdown on desktop, reversed-colour scroll row on mobile */
.subnav { margin: 0 0 20px; }
.subnav-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 40px 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.subnav-row { display: none; }
@media (max-width: 860px) {
  .subnav { width: 100vw; margin-inline: calc(50% - 50vw); margin-bottom: 0; background: var(--accent); }
  .subnav-select { display: none; }
  .subnav-row {
    display: flex; gap: 8px; overflow-x: auto; padding: 11px 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .subnav-row::-webkit-scrollbar { display: none; }
  .sub-pill {
    flex: 0 0 auto; white-space: nowrap; font: inherit; font-weight: 600; cursor: pointer;
    background: transparent; color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 7px 15px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .sub-pill.active { background: var(--gold); color: var(--accent); border-color: var(--gold); }
}

.info-accordion { border-top: 1px solid var(--line); margin-top: 22px; }
.info-accordion details { border-bottom: 1px solid var(--line); }
.info-accordion summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.info-accordion summary::-webkit-details-marker { display: none; }
.info-accordion summary::after { content: '+'; font-size: 20px; color: var(--muted); }
.info-accordion details[open] summary::after { content: '–'; }
.info-accordion .acc-body { padding: 0 0 16px; color: var(--muted); font-size: 15px; }
.info-accordion .acc-body p { margin: 0 0 10px; }
.info-accordion .acc-body p:last-child { margin-bottom: 0; }
.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-head .ic { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); }
.acc-accent { color: var(--accent); font-weight: 700; }

/* Trust badges */
.trust-badges { display: flex; gap: 14px; justify-content: center; margin: 28px 0 4px; flex-wrap: wrap; }
.trust-badge {
  width: 66px; height: 66px; border-radius: 50%; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; line-height: 1.1; letter-spacing: 0.04em; text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-badge.tb-teal { background: #13a3a3; }
.trust-badge.tb-purple { background: #5a3c86; }
.trust-badge.tb-dark { background: #22282c; }
.trust-badge.tb-dark span:last-child { color: #d8b25e; }
.trust-badge.tb-green { background: #2f6f3e; }

/* "All your questions answered" FAQ */
.faq { margin-top: 8px; }
.faq-title {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  color: var(--accent); font-size: 22px; margin: 36px 0 18px; letter-spacing: -0.01em;
}
.faq-title::before, .faq-title::after {
  content: ''; flex: 1; max-width: 200px; border-top: 2px dotted var(--gold);
}
.faq .acc-head .ic { color: var(--accent); }

/* Allergen badges */
.allergens { display: flex; gap: 26px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.allergen { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.allergen svg { width: 34px; height: 34px; }

.section { padding: 24px 0 40px; }
.section h2 { font-size: 22px; margin: 0 0 20px; letter-spacing: -0.02em; }

/* Mobile-only sticky add-to-cart bar */
.pdp-sticky { display: none; }
@media (max-width: 860px) {
  .pdp-sticky {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 22px rgba(31, 36, 33, 0.12);
  }
  .pdp-sticky .info { flex: 1; min-width: 0; line-height: 1.25; }
  .pdp-sticky .info .title {
    font-weight: 600; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pdp-sticky .info .price { font-weight: 800; font-size: 18px; }
  .pdp-sticky .btn { flex: 0 0 auto; padding: 13px 22px; }
  /* keep the footer / page content clear of the fixed bar */
  body { padding-bottom: 80px; }
}

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 920px) { .checkout { grid-template-columns: 1fr; } }

/* Row: [square image] [title/meta] [qty] [price] [✕]
   The image is square and fills the card height with an equal margin on the
   top, bottom and left (the card's 14px padding). */
.cart-item {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  margin-bottom: 14px; background: #fff;
}
.cart-item .thumb {
  flex: 0 0 auto; width: 88px; height: 88px; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden; background: var(--bg-soft);
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item h4 { margin: 2px 0 4px; font-size: 16px; }
.cart-item .meta { color: var(--muted); font-size: 13px; }
.cart-item .qty { flex: 0 0 auto; }
.cart-item .line-price { flex: 0 0 auto; font-weight: 700; white-space: nowrap; min-width: 64px; text-align: right; }
.cart-item .remove {
  flex: 0 0 auto; border: none; background: none;
  cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px;
}
.cart-item .remove:hover { color: var(--danger); }
@media (max-width: 560px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item .info { flex: 1 1 calc(100% - 104px); }
  .cart-item .qty { order: 3; }
  .cart-item .line-price { order: 4; flex: 1; }
  .cart-item .remove { order: 5; }
}

/* Delivery method selector reuses the time-slot pill styling (.slots/.slot) */

.summary {
  position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--bg-soft);
}
.summary h3 { margin: 0 0 16px; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; margin: 10px 0; font-size: 15px; }
.summary-row.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.summary-row .muted { color: var(--muted); }
.discount-msg { font-size: 13px; margin-top: 8px; }
.discount-msg.ok { color: var(--accent); }
.discount-msg.err { color: var(--danger); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }

/* Free shipping progress bar */
.ship-bar { margin: 18px 0; }
.ship-bar .track { height: 8px; background: #e6e7ec; border-radius: 999px; overflow: hidden; }
.ship-bar .fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.3s ease; }
.ship-bar .label { font-size: 13px; margin-top: 8px; color: var(--muted); }
.ship-bar .label strong { color: var(--ink); }

/* ---------- Cart drawer (slide-over sidebar) ---------- */
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 130;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: #fff; box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 131; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
}
.cart-close {
  background: rgba(255, 255, 255, 0.15); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 9px; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.cart-close:hover { background: rgba(255, 255, 255, 0.28); }
.cart-ship { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.cart-body { flex: 1; overflow: auto; padding: 4px 20px; }
.cart-empty { color: var(--muted); text-align: center; padding: 48px 0; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); flex: 0 0 auto; }
.cl-main { flex: 1; min-width: 0; }
.cl-title { font-weight: 600; font-size: 14px; }
.cl-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cl-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cl-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1; }
.cl-qty button:hover { background: var(--bg-soft); }
.cl-qty .cl-rm { width: auto; padding: 0 8px; color: var(--danger); border: none; font-size: 12px; }
.cl-price { font-weight: 700; white-space: nowrap; font-size: 14px; }
.cart-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.cart-foot .btn { display: block; width: 100%; text-align: center; }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }

/* Shared free-delivery progress bar */
.fs-track { height: 8px; background: #e6e7ec; border-radius: 999px; overflow: hidden; }
.fs-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.3s ease; }
.fs-label { font-size: 13px; margin-top: 7px; color: var(--muted); }
.fs-label strong { color: var(--accent); }

/* Mobile free-delivery banner above the menu ribbons (hidden on desktop) */
.freeship-mobile { display: none; }
@media (max-width: 860px) {
  .freeship-mobile {
    display: block; width: 100vw; margin-inline: calc(50% - 50vw);
    padding: 10px 20px; background: var(--accent-soft); border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.slots { display: flex; gap: 10px; }
.slot {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center;
  cursor: pointer; font-size: 14px; background: #fff;
}
.slot.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.slot small { display: block; color: var(--muted); font-weight: 400; }
.slot.active small { color: var(--accent-dark); }

/* Your Details form */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.details-grid .field { margin-bottom: 14px; }
.details-grid .span-2 { grid-column: 1 / -1; }
.field input.invalid { border-color: var(--danger); }
@media (max-width: 560px) { .details-grid { grid-template-columns: 1fr; } }

.tnc { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: var(--muted); }
.tnc input { margin-top: 3px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all 0.25s ease;
  font-weight: 600; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Floating "Chat with us" WhatsApp button (site-wide) */
.wa-float {
  position: fixed; right: 20px; bottom: 24px; z-index: 120;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); color: #fff; }
.wa-float svg { flex: none; }
@media (max-width: 640px) {
  .wa-float { padding: 14px; }
  .wa-float-label { display: none; }
}

/* Order-confirmation action buttons */
.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }

.notice {
  background: var(--accent-soft); color: var(--accent-dark); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; margin: 14px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { padding: 36px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
