/* =====================================================================
   LIVE DELIVERY  -  Core design system
   Premium, mobile first, food focused ecommerce UI
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --red:          #B8321C;
  --burgundy:     #681C16;
  --orange:       #F39A24;
  --gold:         #FFD166;

  --cream:        #FFF8EF;
  --white:        #FFFFFF;
  --ink:          #1D1D1D;
  --muted:        #716C67;
  --border:       #EADFD3;
  --success:      #3C8D40;
  --danger:       #C62828;

  --surface:      var(--white);
  --surface-2:    #FFF3E6;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(104, 28, 22, .05);
  --sh-sm: 0 4px 14px rgba(104, 28, 22, .06);
  --sh-md: 0 10px 28px rgba(104, 28, 22, .08);
  --sh-lg: 0 18px 44px rgba(104, 28, 22, .12);
  --sh-red: 0 10px 26px rgba(184, 50, 28, .28);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 56px;

  --font: "Manrope", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 68px;
  --bottomnav-h: 66px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1320px;
}

/* ----------------------------- Reset ------------------------------ */
* { -webkit-tap-highlight-color: transparent; }

/* Author display rules outrank the UA [hidden] rule, so make it explicit -
   otherwise skeleton placeholders set with `hidden` stay on screen. */
[hidden] { display: none !important; }

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

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -.01em;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body { padding-bottom: 0; font-size: 15.5px; }
}

h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--gold); color: var(--burgundy); }

.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;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--burgundy); color: #fff; padding: 10px 18px;
  border-radius: var(--r-pill); transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; color: #fff; }

/* --------------------------- Layout ------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 18px;
}
@media (min-width: 768px)  { .wrap { padding-inline: 28px; } }
@media (min-width: 1280px) { .wrap { padding-inline: 40px; } }

.section { padding-block: 26px; }
@media (min-width: 768px) { .section { padding-block: 38px; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: 20px;
  letter-spacing: -.03em;
}
@media (min-width: 768px) { .section-title { font-size: 24px; } }

.section-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  padding: 6px 4px;
}
.section-link svg { width: 16px; height: 16px; }
.section-link:hover { gap: 6px; }

/* ---------------------------- Buttons ----------------------------- */
.btn {
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-size: 14.5px;
  letter-spacing: -.01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--burgundy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(104, 28, 22, .34);
}

.btn-accent {
  background: var(--orange);
  color: var(--burgundy);
  box-shadow: 0 10px 24px rgba(243, 154, 36, .34);
}
.btn-accent:hover { background: #e88b12; color: var(--burgundy); transform: translateY(-2px); }

.btn-dark { background: var(--burgundy); color: #fff; }
.btn-dark:hover { background: var(--ink); color: #fff; }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-white { background: #fff; color: var(--burgundy); }
.btn-white:hover { background: var(--gold); color: var(--burgundy); }

.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn[disabled], .btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 248, 239, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(104, 28, 22, .05);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: var(--sh-red);
}
.brand__text { display: flex; flex-direction: column; }
.brand__text b { font-size: 16px; display: block; }
.brand__text span { font-size: 9.5px; color: var(--muted); letter-spacing: .16em; font-weight: 700; }

/* desktop nav */
.desk-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.desk-nav a {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.desk-nav a:hover { background: rgba(184, 50, 28, .08); color: var(--red); }
.desk-nav a.is-active { background: var(--red); color: #fff; }
.desk-nav a.is-active:hover { background: var(--burgundy); color: #fff; }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* cart button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0 18px;
  height: 42px;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: var(--sh-red);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.cart-btn:hover { background: var(--burgundy); color: #fff; transform: translateY(-1px); }
.cart-btn:active { transform: scale(.96); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-btn__count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--burgundy);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-btn__label { display: none; }

.cart-btn.is-bump { animation: bump .42s var(--ease); }
@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.14); }
  70%  { transform: scale(.97); }
  100% { transform: scale(1); }
}

/* header search */
.header-search {
  position: relative;
  flex: 1;
  max-width: 320px;
  display: none;
}
.header-search input {
  width: 100%;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 0 42px 0 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.header-search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(184, 50, 28, .1);
}
.header-search__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.header-search__go {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-search__go svg { width: 15px; height: 15px; }

/* mobile menu button */
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-xs);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { background: var(--red); color: #fff; }
.icon-btn svg { width: 21px; height: 21px; }

/* mobile brand centering */
@media (max-width: 991.98px) {
  .header-inner { position: relative; justify-content: space-between; }
  .header-inner .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .header-right { margin-left: auto; }
}

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, .42);
  opacity: 0;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(300px, 84vw);
  background: var(--cream);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  padding: 22px 18px;
  transform: translateX(-102%);
  transition: transform .34s var(--ease);
  box-shadow: var(--sh-lg);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer__links { display: flex; flex-direction: column; gap: 4px; }
.drawer__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  background: var(--white);
  box-shadow: var(--sh-xs);
}
.drawer__links a svg { width: 19px; height: 19px; color: var(--red); }
.drawer__links a.is-active { background: var(--red); color: #fff; }
.drawer__links a.is-active svg { color: #fff; }
.drawer__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* --------------------- Mobile search bar (page) -------------------- */
.page-search {
  position: relative;
  margin-block: 4px 2px;
}
.page-search input {
  width: 100%;
  height: 50px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 0 52px 0 46px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--sh-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* only reserve room for the Clear button once it is actually shown */
.page-search:has(.page-search__clear:not([hidden])) input { padding-right: 96px; }
.page-search input::placeholder { color: #A8A29C; font-weight: 500; }
.page-search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(184, 50, 28, .1);
}
.page-search__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  color: var(--muted);
  pointer-events: none;
}
.page-search__clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
}
.page-search__clear[hidden] { display: none; }

/* live results dropdown */
.search-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 10px;
  max-height: 62vh;
  overflow-y: auto;
  z-index: 60;
  display: none;
  border: 1px solid var(--border);
}
.search-pop.is-open { display: block; }
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-md);
  transition: background-color .15s var(--ease);
}
.search-row:hover, .search-row:focus-visible { background: var(--surface-2); color: inherit; }
.search-row img {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.search-row__body { min-width: 0; flex: 1; }
.search-row__name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-row__meta { font-size: 12px; color: var(--muted); }
.search-row__price { font-weight: 800; color: var(--red); font-size: 14px; white-space: nowrap; }
.search-pop__foot {
  margin-top: 6px;
  padding: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--red);
}

/* ----------------------------- Hero ------------------------------- */
.hero { padding-top: 14px; position: relative; }

.hero-track {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-inline: -18px;
  padding-inline: 18px;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #F3A02B, #B8321C);
  box-shadow: var(--sh-md);
  min-height: 188px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(30, 12, 8, .72) 0%, rgba(30, 12, 8, .38) 52%, rgba(30, 12, 8, .08) 100%);
}

.hero-slide__body {
  padding: 20px 20px 20px 22px;
  width: 68%;
  color: #fff;
  position: relative;
  z-index: 2;
}
@media (min-width: 400px) {
  .hero-slide__body { width: 62%; }
}
@media (min-width: 768px) {
  .hero-slide { min-height: 0; }
  /* the grid column already sizes this - a second % would double-narrow it */
  .hero-slide__body { width: 100%; padding: 40px 44px; }
}

.hero-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  background: var(--gold);
  color: var(--burgundy);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.hero-title {
  color: #fff;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 6px;
  /* bounded so a long admin title can never push the layout around */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 400px) { .hero-title { font-size: 28px; } }
@media (min-width: 768px)  { .hero-title { font-size: 42px; } }
@media (min-width: 1200px) { .hero-title { font-size: 46px; } }

.hero-sub {
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 40ch;
}
@media (min-width: 768px) { .hero-sub { font-size: 15px; margin-bottom: 22px; } }

.hero-cta { font-size: 13.5px; padding: 11px 20px; }
@media (min-width: 768px) { .hero-cta { font-size: 15px; padding: 14px 28px; } }

/* desktop 2 column layout with a fade slider.
   The track has a fixed height so swapping banners never shifts layout. */
@media (min-width: 768px) {
  .hero-track {
    display: block;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    height: var(--hero-h, 380px);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-md);
  }
  .hero-track:has([data-hero-slide]:only-child) { height: auto; }

  .hero-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: opacity .45s var(--ease), visibility 0s linear 0s;
  }

  .hero-slide__media {
    position: relative;
    overflow: hidden;
    height: 100%;
    order: 2;
  }
  .hero-slide__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 6s linear;
  }
  .hero-slide.is-active .hero-slide__media img { transform: scale(1.08); }
}

/* ------------------------- hero navigation ------------------------ */
/* Prev/next arrows and the slide dots are intentionally hidden: the hero
   autoplays on its own. The markup and slider JS stay in place. */
.hero-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-xs);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.hero-arrow svg { width: 17px; height: 17px; }
.hero-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.06);
}
.hero-arrow:active { transform: scale(.94); }

.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hero-dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  transition: width .28s var(--ease), background-color .28s var(--ease);
}
.hero-dots button:hover { background: var(--orange); }
.hero-dots button.is-active { width: 22px; border-radius: var(--r-pill); background: var(--red); }

/* -------------------------- Categories ---------------------------- */
.cats-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 6px 18px 10px;
  margin-inline: -18px;
  scroll-padding-left: 18px;
}
.cats-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px)  { .cats-scroll { padding-inline: 0; margin-inline: 0; } }
@media (min-width: 1200px) {
  .cats-scroll {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
  }
}

.cat {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 0;
  border: 0;
  background: none;
}
.cat__ring {
  width: 74px; height: 74px;
  border-radius: 50%;
  padding: 3px;
  background: var(--border);
  display: grid;
  place-items: center;
  transition: background-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.cat__ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.cat:hover .cat__ring { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.cat__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.25;
  transition: color .2s var(--ease);
}
.cat.is-active .cat__ring {
  background: var(--red);
  box-shadow: 0 8px 20px rgba(184, 50, 28, .3);
}
.cat.is-active .cat__name { color: var(--red); font-weight: 800; }

@media (min-width: 768px) {
  .cat { width: auto; }
  .cat__ring { width: 88px; height: 88px; }
  .cat__name { font-size: 13px; }
}

/* ------------------------- Product cards -------------------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 560px)  { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 992px)  { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1400px) { .grid-products { gap: 22px; } }

.p-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  height: 100%;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.p-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}
.p-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.p-card:hover .p-card__media img { transform: scale(1.07); }

.p-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--burgundy);
  box-shadow: var(--sh-sm);
  z-index: 2;
}
.p-badge--best   { background: var(--gold); color: var(--burgundy); }
.p-badge--popular{ background: var(--red); color: #fff; }
.p-badge--new    { background: var(--burgundy); color: #fff; }
.p-badge--save   { background: var(--success); color: #fff; }

.p-card__veg {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  padding: 3px 7px;
  border-radius: var(--r-pill);
  z-index: 2;
}
.p-card__veg.is-veg { color: var(--success); }
.p-card__veg.is-nonveg { color: var(--red); }
.p-card__dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  border: 1.5px solid currentColor;
}
.p-card__veg.is-veg .p-card__dot { background: var(--success); }
.p-card__veg.is-nonveg .p-card__dot { background: var(--red); }

.p-card__body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
@media (min-width: 768px) { .p-card__body { padding: 14px 16px 16px; } }

.p-card__name {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
@media (min-width: 768px) { .p-card__name { font-size: 16.5px; } }
.p-card__name a:hover { color: var(--red); }

.p-card__desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
@media (min-width: 768px) { .p-card__desc { font-size: 13px; } }

.p-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.p-card__rating .star { color: var(--orange); font-size: 12px; }
.p-card__ratingval { font-weight: 800; color: var(--ink); }

.p-card__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p-card__price { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.p-card__price strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}
@media (min-width: 768px) { .p-card__price strong { font-size: 20px; } }
.p-card__price s { font-size: 12px; color: var(--muted); text-decoration-thickness: 1.5px; }

.add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-red);
  flex-shrink: 0;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
@media (min-width: 768px) { .add-btn { width: 42px; height: 42px; } }
.add-btn svg { width: 19px; height: 19px; }
.add-btn:hover { background: var(--burgundy); transform: scale(1.08); }
.add-btn:active { transform: scale(.9); }
.add-btn.is-done { background: var(--success); }
.add-btn.is-done svg { transform: rotate(0deg); }

/* horizontal rail on mobile */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 18px 10px;
  margin-inline: -18px;
  scroll-padding-left: 18px;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 992px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    margin-inline: 0;
    padding: 4px 0 0;
  }
}
@media (min-width: 1400px) { .rail { gap: 22px; } }

.p-card--rail {
  flex: 0 0 68%;
  max-width: 320px;
  scroll-snap-align: start;
}
@media (min-width: 420px) { .p-card--rail { flex-basis: 44%; } }
@media (min-width: 992px) { .p-card--rail { max-width: none; } }
.p-card--rail .p-card__media { aspect-ratio: 4 / 3; }

/* ----------------------------- Offers ----------------------------- */
.offer-card {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-md);
  margin-bottom: 12px;
}
.offer-card__body { padding: 18px 20px; width: 62%; position: relative; z-index: 2; }
@media (min-width: 768px) {
  .offer-card { margin-bottom: 0; }
  .offer-card__body { padding: 28px 32px; width: 55%; }
}
.offer-card__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  overflow: hidden;
}
.offer-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: .9;
}
@media (min-width: 768px) { .offer-card__media { width: 48%; } }

.offer-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold);
  color: var(--burgundy);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 9px;
}
.offer-card__tag svg { width: 13px; height: 13px; }
.offer-card__title {
  color: #fff;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 5px;
}
@media (min-width: 768px) { .offer-card__title { font-size: 23px; } }
.offer-card__sub { font-size: 11.5px; color: rgba(255, 255, 255, .88); margin-bottom: 12px; }
@media (min-width: 768px) { .offer-card__sub { font-size: 13.5px; } }

.offers-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .offers-grid .offer-card:first-child { grid-column: 1 / -1; }
}

/* -------------------------- Floating cart ------------------------- */
.float-cart {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--bottomnav-h) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--burgundy);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 9px 9px 9px 18px;
  box-shadow: 0 16px 40px rgba(104, 28, 22, .4);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .36s var(--ease), opacity .28s var(--ease);
}
.float-cart.is-visible { transform: translateY(0); opacity: 1; }

/* the floating bar would sit on top of the summary it duplicates */
.page-cart .float-cart,
.page-checkout .float-cart,
.page-order-success .float-cart { display: none; }
.float-cart__meta { display: flex; flex-direction: column; line-height: 1.2; }
.float-cart__count {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}
.float-cart__total { font-size: 17px; font-weight: 800; }
.float-cart__go {
  background: var(--gold);
  color: var(--burgundy);
  border: 0;
  border-radius: var(--r-pill);
  height: 42px;
  padding: 0 20px;
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.float-cart__go svg { width: 15px; height: 15px; }
.float-cart__go:hover { background: #fff; transform: translateX(2px); }
@media (min-width: 992px) {
  .float-cart { left: auto; right: 26px; bottom: 26px; min-width: 320px; }
}

/* --------------------------- Bottom nav --------------------------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 992px) { .bottom-nav { display: none; } }

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  transition: color .2s var(--ease);
}
.bn-item svg { width: 21px; height: 21px; transition: transform .22s var(--ease); }
.bn-item.is-active { color: var(--red); }
.bn-item.is-active svg { transform: translateY(-2px) scale(1.06); }

.bn-item--cart { color: var(--burgundy); }
.bn-item--cart .bn-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -18px;
  box-shadow: var(--sh-red);
  position: relative;
}
.bn-item--cart .bn-ico svg { width: 20px; height: 20px; }
.bn-item--cart.is-active .bn-ico { background: var(--burgundy); }
.bn-badge {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}
.bn-badge[hidden] { display: none; }

/* ------------------------- Category chips ------------------------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 18px 8px;
  margin-inline: -18px;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

.chip {
  flex: 0 0 auto;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}

/* --------------------------- Filters bar -------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.filter-bar__count {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

select.form-select, .form-control, .form-label {
  font-family: inherit;
}
.form-control, .form-select {
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  background-color: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(184, 50, 28, .1);
}
.form-label {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.invalid-feedback { font-size: 12.5px; font-weight: 700; }

/* --------------------------- Product page ------------------------- */
.pdp {
  display: grid;
  gap: 22px;
}
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}

.pdp__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  position: relative;
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
}
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pdp-title {
  font-size: 24px;
  letter-spacing: -.035em;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .pdp-title { font-size: 34px; } }

.pdp-crumb {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pdp-crumb a { color: var(--red); }
.pdp-crumb svg { width: 13px; height: 13px; }

.pdp-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pdp-rating .star { color: var(--orange); }

.pdp-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pdp-price strong { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
@media (min-width: 768px) { .pdp-price strong { font-size: 38px; } }
.pdp-price s { font-size: 17px; color: var(--muted); }
.pdp-price .save-tag {
  background: rgba(60, 141, 64, .12);
  color: var(--success);
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

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

.variants { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.variant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant__radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color .2s var(--ease);
}
.variant__radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.variant__name { font-weight: 800; font-size: 14.5px; flex: 1; }
.variant__price { font-weight: 800; color: var(--red); font-size: 15px; }
.variant:has(input:checked), .variant.is-selected {
  border-color: var(--red);
  background: rgba(184, 50, 28, .04);
}
.variant:has(input:checked) .variant__radio { border-color: var(--red); }
.variant:has(input:checked) .variant__radio::after { transform: scale(1); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  overflow: hidden;
}
.qty button {
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: var(--red);
  display: grid;
  place-items: center;
  transition: background-color .16s var(--ease);
}
.qty button:hover:not(:disabled) { background: var(--surface-2); }
.qty button:disabled { color: #CFC8C0; }
.qty button svg { width: 17px; height: 17px; }
.qty input {
  width: 44px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

.pdp-actions { display: flex; gap: 10px; margin-top: 22px; }
.pdp-actions .btn { flex: 1; }

.pdp-meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}
.pdp-meta__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pdp-meta__row svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

.cod-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(60, 141, 64, .08);
  border: 1.5px solid rgba(60, 141, 64, .22);
  border-radius: var(--r-md);
  padding: 14px 15px;
  margin-top: 22px;
  font-size: 13px;
  color: #2C6B2F;
  font-weight: 700;
}
.cod-note svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--success); }

/* ----------------------------- Cart ------------------------------- */
.cart-grid { display: grid; gap: 26px; }
@media (min-width: 992px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; } }

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

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 13px;
  padding: 13px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  position: relative;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (min-width: 560px) { .cart-item { grid-template-columns: 92px 1fr; gap: 16px; padding: 15px; } }

.cart-item.is-removing { opacity: 0; transform: translateX(-24px); }

.cart-item__img {
  width: 78px; height: 78px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--surface-2);
}
@media (min-width: 560px) { .cart-item__img { width: 92px; height: 92px; } }

.cart-item__name { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.cart-item__var { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.cart-item__price { font-size: 14px; font-weight: 800; color: var(--red); margin-top: 4px; }

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.qty--sm { border-width: 1.5px; }
.qty--sm button { width: 34px; height: 34px; }
.qty--sm input { width: 34px; height: 34px; font-size: 14px; }

.link-danger {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.link-danger:hover { color: var(--red); background: rgba(184, 50, 28, .07); }
.link-danger svg { width: 14px; height: 14px; }

.cart-item__line {
  position: absolute;
  top: 14px; right: 14px;
  font-weight: 800;
  font-size: 15px;
}

/* summary card */
.summary {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
@media (min-width: 992px) { .summary { padding: 24px; } }

.summary__title {
  font-size: 17px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary__title svg { width: 19px; height: 19px; color: var(--red); }

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 0;
}
.summary__row b { color: var(--ink); font-weight: 800; }
.summary__row--total {
  border-top: 1.5px dashed var(--border);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
}
.summary__row--total b { font-size: 24px; letter-spacing: -.03em; }
.summary__row--discount b { color: var(--success); }

.coupon-box {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 13px;
  margin: 14px 0 4px;
}
.coupon-box__label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 0 13px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.coupon-row input:focus { outline: none; border-color: var(--red); }
.coupon-row button {
  height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--burgundy);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.coupon-row button:hover { background: var(--ink); }

.coupon-msg {
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 9px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.coupon-msg svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.coupon-msg.is-ok { color: var(--success); }
.coupon-msg.is-err { color: var(--danger); }
.coupon-msg[hidden] { display: none; }

.applied-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(60, 141, 64, .12);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.applied-tag button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  display: inline-flex;
}
.applied-tag svg { width: 13px; height: 13px; }

/* ---------------------------- Checkout ---------------------------- */
.checkout-grid { display: grid; gap: 24px; }
@media (min-width: 992px) { .checkout-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 34px; align-items: start; } }

.panel {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 20px;
}
@media (min-width: 768px) { .panel { padding: 28px; } }

.panel__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}
.panel__icon {
  width: 38px; height: 38px;
  border-radius: 13px;
  background: rgba(184, 50, 28, .1);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.panel__icon svg { width: 19px; height: 19px; }
.panel__head > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.panel__title { display: block; font-size: 17px; font-weight: 800; }
.panel__sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.cod-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--red);
  border-radius: var(--r-md);
  background: rgba(184, 50, 28, .04);
  cursor: pointer;
}
.cod-option__radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cod-option__radio::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
.cod-option__title { display: block; font-weight: 800; font-size: 15px; }
.cod-option__sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cod-option__badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.no-address-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.no-address-note svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* order success */
.success-wrap {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}
.success-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(60, 141, 64, .12);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  animation: pop .5s var(--ease);
}
.success-ring svg { width: 46px; height: 46px; stroke-width: 2.6; }
@keyframes pop {
  0%   { transform: scale(.5); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.success-title {
  font-size: 27px;
  letter-spacing: -.035em;
  margin-bottom: 6px;
}
.success-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }

.receipt {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
}
.receipt__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.receipt__row:last-child { border-bottom: 0; }
.receipt__k { color: var(--muted); font-weight: 600; }
.receipt__v { font-weight: 800; text-align: right; }
.receipt__v--order { font-size: 18px; color: var(--red); letter-spacing: -.02em; }

.receipt__items {
  margin: 6px 0 12px;
  padding: 12px 0;
  border-block: 1px dashed var(--border);
}
.receipt__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 5px 0;
  font-weight: 600;
}
.receipt__item span:last-child { color: var(--muted); white-space: nowrap; }

/* --------------------------- Footer ------------------------------- */
.site-footer {
  margin-top: 34px;
  background: var(--burgundy);
  color: rgba(255, 255, 255, .82);
  padding: 32px 0 26px;
}
.site-footer a { color: rgba(255, 255, 255, .82); font-weight: 600; }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; } }

.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.footer-brand__mark { width: 40px; height: 40px; border-radius: 13px; }
.footer-brand b { color: #fff; font-size: 17px; line-height: 1; display: block; }
.footer-brand span { font-size: 9.5px; letter-spacing: .16em; color: var(--gold); font-weight: 800; }
.footer-about { font-size: 13.5px; line-height: 1.65; max-width: 40ch; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.footer-contact a { display: flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
}

/* -------------------------- Empty state --------------------------- */
.empty {
  text-align: center;
  padding: 44px 20px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.empty__icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--red);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.empty__icon svg { width: 34px; height: 34px; }
.empty__title { font-size: 18px; margin-bottom: 6px; letter-spacing: -.02em; }
.empty__msg { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* -------------------------- Skeleton ------------------------------ */
.sk {
  background: linear-gradient(90deg, #F4EAE0 25%, #FBF4EC 37%, #F4EAE0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.sk-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.sk-card__media { aspect-ratio: 1 / 1; }
.sk-card__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sk-line { height: 11px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-line.w80 { width: 80%; }

/* ---------------------------- Toast ------------------------------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottomnav-h) + 78px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(400px, calc(100% - 28px));
}
@media (min-width: 992px) {
  .toast-stack { left: auto; right: 26px; bottom: 96px; transform: none; }
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 12px 17px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 13.5px;
  font-weight: 700;
  max-width: 100%;
  animation: toastIn .32s var(--ease);
  pointer-events: auto;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast--ok { background: #2C6B2F; }
.toast--err { background: #A32020; }
.toast.is-out { animation: toastOut .28s var(--ease) forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px) scale(.97); }
}

/* ------------------------ 404 / error page ------------------------ */
.err-page {
  text-align: center;
  padding: 60px 20px;
}
.err-code {
  font-size: 92px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--red);
  opacity: .16;
}
.err-title { font-size: 24px; margin-bottom: 8px; }
.err-msg { color: var(--muted); margin-bottom: 24px; }

/* ------------------- Floating action (cart qty) ------------------- */
.add-fly {
  position: fixed;
  z-index: 1300;
  pointer-events: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-red);
  transition: transform .62s cubic-bezier(.4, 0, .2, 1), opacity .62s ease;
}
.add-fly svg { width: 18px; height: 18px; }

/* --------------------------- Misc ---------------------------------- */
.breadcrumb-row { padding-top: 12px; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.crumb a { color: var(--red); }
.crumb svg { width: 13px; height: 13px; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.badge-soft svg { width: 13px; height: 13px; }

.page-title { font-size: 24px; letter-spacing: -.035em; }
@media (min-width: 768px) { .page-title { font-size: 32px; } }
.page-lead { color: var(--muted); font-size: 14px; margin-top: 4px; }

.spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider { height: 1px; background: var(--border); margin: 22px 0; border: 0; }

.table-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
/* =====================================================================
   Single-page browsing: menu states, clickable offers, scroll margin
   ===================================================================== */

/* keep the product section clear of the sticky header when scrolled to */
#menu, #categories, #offers {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------------------------- status ---------------------------- */
.menu-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: var(--sh-xs);
}
.menu-status[hidden] { display: none; }
.menu-status svg { width: 18px; height: 18px; flex-shrink: 0; }

.menu-status--loading { color: var(--muted); }
.menu-status--loading svg { animation: spin .8s linear infinite; color: var(--orange); }

.menu-status--empty { color: var(--muted); }
.menu-status--empty svg { color: var(--orange); }

.menu-status--error {
  background: rgba(184, 50, 28, .07);
  border-color: rgba(184, 50, 28, .25);
  color: var(--burgundy);
}
.menu-status--error svg { color: var(--red); }

.menu-status__retry {
  margin-left: auto;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: var(--r-pill);
  padding: 8px 16px;
  flex-shrink: 0;
  transition: background-color .16s var(--ease);
}
.menu-status__retry:hover { background: var(--burgundy); }

/* ------------------------- clear filter ------------------------- */
.section-link--btn {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.section-link--btn[hidden] { display: none; }

/* ------------------- categories as buttons ---------------------- */
button.cat {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
button.cat:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 50%;
}

/* the horizontal chip row mirrors the carousel selection */
.chips .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chips .chip:hover { border-color: var(--red); color: var(--red); }
.chips .chip[aria-pressed="true"]:hover { color: #fff; }

/* ------------------ offers as clickable cards ------------------- */
.offer-card--btn {
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              box-shadow .22s var(--ease), outline-color .22s var(--ease);
  outline: 3px solid transparent;
  outline-offset: 3px;
}
.offer-card--btn:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.offer-card--btn:focus-visible { outline-color: var(--orange); }

.offer-card--btn.is-active {
  outline-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold), var(--sh-md);
}
.offer-card--btn.is-active .offer-card__tag { background: #fff; }

.offer-card__body { display: block; }
.offer-card__title { display: block; }
.offer-card__sub  { display: block; }

.offer-card__none {
  display: inline-block;
  margin-top: 8px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

/* on wide screens the whole grid row of offers is one clickable card */
@media (min-width: 768px) {
  .offers-grid .offer-card--btn { grid-column: auto; }
}

@media (max-width: 991.98px) {
  .menu-status { flex-wrap: wrap; }
  .menu-status__retry { margin-left: 0; }
}
