/* ============================================================
   Divate Supermarket — storefront styles
   Tokens → layout → components. Light + dark themes.
   ============================================================ */

:root {
  /* Divate Supermarket design system — brand colours taken from the logo
     and store artwork: petrol teal + lime green on white.
     (Token names kept: --leaf = brand teal, --haldi = lime accent.) */
  --ink:          #16232A;
  --ink-2:        #47585F;
  --ink-3:        #6C7C82;
  --paper:        #F3F6F7;
  --chalk:        #FFFFFF;

  --leaf:         #00647B;   /* brand teal */
  --leaf-press:   #004E62;   /* deeper teal for hover / press */
  --leaf-tint:    #E1EFF3;

  --haldi:        #8AC640;   /* lime-green accent — a fill, never type */
  --haldi-deep:   #3E6B12;   /* readable green type on any lime tint */
  --haldi-tint:   #EEF6DD;

  --chilli:       #C0392B;
  --chilli-tint:  #FBEBE9;

  --crate:        #1F5F8B;   /* delivery, payment, support — and the focus ring */
  --crate-tint:   #E6EFF5;

  --rule:         #DCE3DC;
  --rule-strong:  #C3CDC4;

  /* Names the rest of the sheet already uses, mapped onto the system. */
  --brand:        var(--leaf);
  --brand-dark:   var(--leaf-press);
  --brand-soft:   var(--leaf-tint);
  --accent:       var(--haldi);
  --accent-soft:  var(--haldi-tint);
  --bg:           var(--paper);
  --surface:      var(--chalk);
  --surface-2:    #FAFBF9;
  --border:       var(--rule);
  --border-strong:var(--rule-strong);
  --text:         var(--ink);
  --text-2:       var(--ink-2);
  --text-3:       var(--ink-3);
  --star:         #F2B01E;   /* ratings stay gold, independent of the accent */
  --danger:       var(--chilli);
  --danger-soft:  var(--chilli-tint);
  --warn:         #8A5D00;    /* warnings / low-stock stay amber, not green */
  --warn-soft:    #FDF3DC;
  --info:         var(--crate);
  --info-soft:    var(--crate-tint);

  --shadow-sm: 0 1px 2px rgba(23, 35, 28, .06);
  --shadow:    0 1px 2px rgba(23, 35, 28, .06);
  --shadow-lg: 0 12px 32px rgba(23, 35, 28, .18);

  /* 6px badges · 12px cards, inputs, tiles · 999px buttons, chips, steppers */
  --r-sm:   6px;
  --r:     12px;
  --r-lg:  12px;
  --r-pill: 999px;

  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  /* The system is designed light. Dark keeps the same hues, lifted off a
     green-black ground so the brand still reads as the same shop. */
  --ink:          #E7EFF1;
  --ink-2:        #A6B8BE;
  --ink-3:        #7C8C92;
  --paper:        #0C1417;
  --chalk:        #14201F;

  --leaf:         #2FA5C2;   /* brand teal, lifted for dark ground */
  --leaf-press:   #2790AB;
  --leaf-tint:    #0F2830;

  --haldi:        #9FD154;   /* lime accent, lifted for dark ground */
  --haldi-deep:   #B8E082;
  --haldi-tint:   #1B2610;

  --star:         #F2B01E;
  --warn:         #F0C463;    /* amber, lifted for dark ground */
  --warn-soft:    #2A2110;

  --chilli:       #E4695C;
  --chilli-tint:  #2A1614;

  --crate:        #6BA6D0;
  --crate-tint:   #16232E;

  --rule:         #26332B;
  --rule-strong:  #38493E;

  --surface-2:    #1A241E;

  --shadow-sm: none;
  --shadow:    0 1px 2px rgba(0, 0, 0, .5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .62);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

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

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

/* ---------------- Announcement bar ---------------- */

.announce {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
}
.announce { overflow: hidden; }

/* Two identical groups slide left together; at -50% the second sits exactly
   where the first began, so the reset is invisible and the loop never gaps. */
.announce__track {
  display: flex;
  width: max-content;
  animation: announce-scroll 38s linear infinite;
}
.announce__group {
  display: flex; align-items: center;
  gap: 38px; padding-right: 38px; height: 34px;
}
.announce span { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.announce b { font-weight: 700; }

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Let someone stop it to read an offer, by hover or by keyboard focus. */
.announce:hover .announce__track,
.announce:focus-within .announce__track { animation-play-state: paused; }

/* Phones get a quicker pass so a message is never off-screen for long. */
@media (max-width: 700px) { .announce__track { animation-duration: 26s; } }

/* ---------------- Header ---------------- */

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.logo__text { display: none; line-height: 1.15; }
@media (min-width: 640px) { .logo__text { display: block; } }
.logo__name { font-weight: 750; font-size: 17px; letter-spacing: -.02em; }
.logo__tag { font-size: 11px; color: var(--text-3); font-weight: 500; }

.locate {
  display: none; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  flex-shrink: 0; transition: border-color .15s var(--ease);
}
.locate:hover { border-color: var(--border-strong); }
@media (min-width: 1080px) { .locate { display: flex; } }
.locate__label { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.locate__value { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.search { position: relative; flex: 1; min-width: 0; }
.search__field {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.search__field:focus-within { border-color: var(--brand); background: var(--surface); }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px;
}
.search input::placeholder { color: var(--text-3); }
.search__clear {
  color: var(--text-3); font-size: 17px; line-height: 1; padding: 4px;
  border-radius: 50%; display: grid; place-items: center;
}
.search__clear:hover { color: var(--text); background: var(--border); }

.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto; padding: 6px;
}
.suggest__item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border-radius: var(--r-sm); text-align: left;
}
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--surface-2); }
.suggest__thumb {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.suggest__name { font-size: 13.5px; font-weight: 600; }
.suggest__meta { font-size: 11.5px; color: var(--text-3); }
.suggest__price { margin-left: auto; font-size: 13.5px; font-weight: 700; }
.suggest__empty { padding: 22px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 18px;
  color: var(--text-2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.pip {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  border: 2px solid var(--surface);
  transform: scale(0); transition: transform .22s var(--ease);
}
.pip.is-on { transform: scale(1); }

.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--brand); color: #fff; font-weight: 650; font-size: 14px;
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.cart-btn:hover { background: var(--brand-dark); }
.cart-btn:active { transform: scale(.97); }
.cart-btn__total { display: none; }
@media (min-width: 760px) { .cart-btn__total { display: inline; } }
.cart-btn .pip { border-color: var(--brand); background: var(--accent); }

/* ---------------- Category rail ---------------- */

.catbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.catbar__scroll {
  display: flex; gap: 8px; padding: 11px 0;
  overflow-x: auto; scrollbar-width: none;
}
.catbar__scroll::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.chip__n { font-size: 11px; opacity: .7; font-weight: 600; }

/* ---------------- Hero ---------------- */

.hero { padding-block: 24px 6px; }
.hero__grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.65fr 1fr; } }

.hero__main {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  padding: 38px 32px;
  min-height: 320px;
  display: flex; align-items: center;
  /* Also the fallback if the video never loads. */
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,138,31,.28), transparent 55%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

/* Aisle footage sits behind everything; the veil above it is what keeps the
   headline readable over moving, unpredictable frames. */
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(0,44,80,.90) 0%, rgba(0,60,105,.78) 45%, rgba(0,72,125,.58) 100%),
    radial-gradient(120% 140% at 100% 0%, rgba(255,138,31,.22), transparent 55%);
}
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}
.hero__title {
  margin: 14px 0 8px;
  font-size: clamp(26px, 4.2vw, 40px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; max-width: 15ch;
}
.hero__sub { margin: 0 0 22px; font-size: 15px; opacity: .92; max-width: 44ch; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: #fff; color: var(--brand-dark);
  font-weight: 700; font-size: 14.5px;
  transition: transform .12s var(--ease), box-shadow .15s var(--ease);
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.hero__title, .hero__sub, .hero__kicker { text-shadow: 0 1px 10px rgba(0, 20, 38, .35); }

.hero__side { display: grid; gap: 14px; grid-template-rows: 1fr 1fr; }
.promo {
  border-radius: var(--r-lg); padding: 22px 20px;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; gap: 16px;
}
.promo__icon {
  width: 52px; height: 52px; border-radius: var(--r); flex-shrink: 0;
  display: grid; place-items: center; font-size: 26px;
  background: var(--brand-soft);
}
.promo--warm .promo__icon { background: var(--accent-soft); }
.promo__title { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.promo__text { font-size: 13px; color: var(--text-2); }

/* ---------------- Layout ---------------- */

.layout {
  display: grid; gap: 26px;
  grid-template-columns: 1fr;
  padding-block: 26px 60px;
  align-items: start;
}
@media (min-width: 1000px) { .layout { grid-template-columns: 248px 1fr; } }

/* ---------------- Filter sidebar ---------------- */

.filters {
  position: sticky; top: calc(var(--header-h) + 62px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 4px 18px 18px;
  max-height: calc(100vh - var(--header-h) - 90px); overflow-y: auto;
}
@media (max-width: 999px) {
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 90;
    width: min(88vw, 330px); max-height: none; border-radius: 0;
    transform: translateX(-102%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg); padding-top: 18px;
  }
  .filters.is-open { transform: none; }
}

.filters__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
}
.filters__head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.link-btn {
  font-size: 12.5px; font-weight: 650; color: var(--brand);
  padding: 4px 6px; border-radius: 6px;
}
.link-btn:hover { background: var(--brand-soft); }

.filters__close { display: none; }
@media (max-width: 999px) { .filters__close { display: grid; width: 32px; height: 32px; } }

.fgroup { padding: 16px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px;
}

.check {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 13.5px; cursor: pointer; color: var(--text-2);
}
.check:hover { color: var(--text); }
.check input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }
.check__n { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

.range__row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.range__val {
  flex: 1; text-align: center; font-size: 13px; font-weight: 650;
  padding: 6px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px;
}
.range__dash { color: var(--text-3); }
input[type="range"] { width: 100%; accent-color: var(--brand); cursor: pointer; }

.stars-row { display: flex; align-items: center; gap: 3px; }
.stars-row .s { color: var(--star); font-size: 12.5px; }

/* ---------------- Toolbar ---------------- */

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar__title { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.025em; }
.toolbar__count { font-size: 13px; color: var(--text-3); margin-left: 2px; }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.select {
  height: 38px; padding: 0 32px 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9790' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.select:hover { border-color: var(--border-strong); }

.filter-toggle {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 650;
}
@media (min-width: 1000px) { .filter-toggle { display: none; } }

.active-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 11px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12.5px; font-weight: 650;
}
[data-theme="dark"] .tag { color: var(--brand); }
.tag button { font-size: 14px; line-height: 1; opacity: .65; }
.tag button:hover { opacity: 1; }

/* ---------------- Product grid ---------------- */

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

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow); transform: translateY(-3px);
}

.card__media {
  position: relative; aspect-ratio: 1 / .82;
  display: grid; place-items: center; font-size: 56px;
  cursor: pointer; overflow: hidden;
}
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background .18s var(--ease);
}
.card:hover .card__media::after { background: rgba(255,255,255,.06); }
.card__media span { transition: transform .3s var(--ease); }
.card:hover .card__media span { transform: scale(1.09) rotate(-3deg); }

.card__badges { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge {
  padding: 3px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--text);
}
.badge--off      { background: var(--accent); }
.badge--bestseller{ background: #7c3aed; }
.badge--new      { background: #0ea5e9; }
.badge--organic  { background: var(--brand); }
.badge--premium  { background: #b45309; }

.wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(255,255,255,.92); color: #9aa5a0;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), color .15s var(--ease);
}
[data-theme="dark"] .wish { background: rgba(20,28,38,.9); }
.wish:hover { transform: scale(1.12); }
.wish.is-on { color: var(--danger); }

.card__body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__brand { font-size: 11px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.card__name {
  font-size: 13.5px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em;
  cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__name:hover { color: var(--brand); }
.card__unit { font-size: 12px; color: var(--text-3); }

.rating { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.rating__box {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11.5px; font-weight: 700;
}
[data-theme="dark"] .rating__box { color: var(--brand); }
.rating__n { font-size: 11px; color: var(--text-3); }

.card__foot { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price__now { font-size: 16.5px; font-weight: 780; letter-spacing: -.02em; }
.price__was { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; }

.add {
  margin-left: auto; height: 33px; min-width: 62px; padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--brand); color: var(--brand);
  background: var(--surface);
  font-size: 13px; font-weight: 750; letter-spacing: .02em;
  transition: background .14s var(--ease), color .14s var(--ease), transform .1s var(--ease);
}
.add:hover { background: var(--brand); color: #fff; }
.add:active { transform: scale(.94); }

.stepper {
  margin-left: auto; display: flex; align-items: center;
  height: 33px; border-radius: var(--r-sm); overflow: hidden;
  background: var(--brand); color: #fff;
}
.stepper button {
  width: 30px; height: 100%; color: #fff; font-size: 17px; font-weight: 600;
  display: grid; place-items: center;
  transition: background .14s var(--ease);
}
.stepper button:hover { background: rgba(0,0,0,.16); }
.stepper__n { min-width: 24px; text-align: center; font-size: 13.5px; font-weight: 750; }

.card--out { opacity: .62; }
.card--out .add { border-color: var(--border-strong); color: var(--text-3); pointer-events: none; }
.stock-note { font-size: 11px; font-weight: 650; color: var(--accent); }

/* ---------------- Empty state ---------------- */

.empty {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px;
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
}
.empty__icon { font-size: 46px; margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.empty p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--r-sm);
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn--ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }
.btn--lg { height: 48px; font-size: 15px; }
.btn:disabled { opacity: .5; pointer-events: none; }

.load-more { display: grid; place-items: center; padding: 30px 0 4px; }

/* ---------------- Drawer & modal shell ---------------- */

.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 18, 13, .45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(100vw, 420px);
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .32s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.drawer__head h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.drawer__count { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.drawer__close { margin-left: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot {
  flex: none;                 /* never let a full cart squash the checkout controls */
  border-top: 1px solid var(--border); padding: 16px 20px 20px; background: var(--surface-2);
}

/* ---------------- Cart lines ---------------- */

.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line__thumb {
  width: 62px; height: 62px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center; font-size: 30px;
}
.line__main { flex: 1; min-width: 0; }
.line__name { font-size: 13.5px; font-weight: 650; line-height: 1.35; }
.line__meta { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.line__row { display: flex; align-items: center; margin-top: 9px; gap: 10px; }
.line__price { margin-left: auto; font-size: 14px; font-weight: 750; }
.line .stepper { height: 29px; margin-left: 0; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.line .stepper button { color: var(--text-2); }
.line .stepper button:hover { background: var(--border); color: var(--text); }
.line__remove { font-size: 12px; color: var(--text-3); font-weight: 600; }
.line__remove:hover { color: var(--danger); }

.totals { display: grid; gap: 8px; margin-bottom: 14px; }
.totals__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); }
.totals__row strong { color: var(--text); font-weight: 650; }
.totals__row--save { color: var(--brand); font-weight: 650; }
.totals__row--grand {
  border-top: 1px dashed var(--border); padding-top: 11px; margin-top: 3px;
  font-size: 17px; font-weight: 780; color: var(--text);
}

.freebar { margin-bottom: 14px; }
.freebar__text { font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; }
.freebar__text b { color: var(--brand); }
.freebar__track { height: 6px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.freebar__fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .35s var(--ease); }

/* ---------------- Product modal ---------------- */

.modal {
  position: fixed; z-index: 95;
  left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.97);
  width: min(94vw, 880px); max-height: 88vh;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 17px;
}
.modal__grid { display: grid; grid-template-columns: 1fr; overflow-y: auto; }
@media (min-width: 720px) { .modal__grid { grid-template-columns: 1fr 1fr; } }
.modal__media {
  display: grid; place-items: center; font-size: 128px; min-height: 260px; padding: 30px;
}
.modal__info { padding: 28px 30px 30px; }
.modal__brand { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.modal__name { margin: 7px 0 8px; font-size: 25px; font-weight: 780; letter-spacing: -.03em; line-height: 1.15; }
.modal__desc { color: var(--text-2); font-size: 14px; margin: 14px 0 18px; }
.modal__price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; }
.modal__price .now { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.modal__price .was { font-size: 15px; color: var(--text-3); text-decoration: line-through; }
.modal__price .off { font-size: 13px; font-weight: 750; color: var(--accent); }
.modal__tax { font-size: 12px; color: var(--text-3); }
.modal__facts { display: grid; gap: 9px; margin: 20px 0 24px; padding: 16px; background: var(--surface-2); border-radius: var(--r); }
.fact { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.fact b { color: var(--text); font-weight: 650; }
.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { flex: 1; }

/* ---------------- Toast ---------------- */

.toasts {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 17px; border-radius: var(--r-pill);
  background: var(--text); color: var(--bg);
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in .3s var(--ease);
}
.toast--exit { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------------- Trust strip + footer ---------------- */

.trust { border-top: 1px solid var(--border); background: var(--surface); }
.trust__grid {
  display: grid; gap: 18px; padding-block: 34px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trust__item { display: flex; gap: 13px; align-items: flex-start; }
.trust__icon { font-size: 24px; }
.trust__title { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.trust__text { font-size: 12.5px; color: var(--text-2); }

/* The shop-aisle photograph sits behind the footer. It is busy and bright, so
   a brand-tinted gradient is laid over it — the photo reads as atmosphere and
   the text keeps a comfortable contrast ratio against a near-solid dark blue.
   The overlay is part of the same background shorthand, so there is no extra
   element and no chance of text landing on bare photo. */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(0, 47, 58, .82) 0%, rgba(0, 40, 50, .89) 58%, rgba(0, 33, 41, .95) 100%),
    url("img/footer-bg.jpg") center / cover no-repeat;
  background-color: #002f3a;   /* holds the colour if the photo fails to load */
  color: #e6f2f4;
  /* Parts of the photograph are bright shelving. A soft shadow guarantees the
     text stays legible wherever it happens to land. */
  text-shadow: 0 1px 3px rgba(0, 8, 18, .55);
}

.footer__grid {
  display: grid; gap: 30px; padding: 44px 0 30px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer__brand { max-width: 300px; }
.footer__brand p { color: #a9c9cf; font-size: 13.5px; margin: 12px 0 0; }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: #8fbcc4; }
.footer h4 {
  margin: 0 0 13px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: #7fa8b0;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li a { font-size: 13.5px; color: #cbe0e3; transition: color .15s var(--ease); }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12.5px; color: #8fbcc4;
}
.footer__bar a { color: #cbe0e3; text-decoration: underline; }
.footer__bar a:hover { color: #fff; }
.pay { display: flex; gap: 8px; font-size: 17px; }

/* Focus rings need to be visible against the dark panel too. */
.footer :focus-visible { outline-color: #5fd0e6; }

/* Dark theme: the page is already dark, so the overlay goes deeper still
   rather than lighter, keeping the footer a clear end-of-page anchor. */
[data-theme="dark"] .footer {
  background:
    linear-gradient(180deg, rgba(0, 26, 32, .87) 0%, rgba(0, 22, 27, .92) 58%, rgba(0, 17, 21, .96) 100%),
    url("img/footer-bg.jpg") center / cover no-repeat;
  background-color: #001519;
}

@media (prefers-reduced-motion: reduce) {
  /* A scrolling strip is motion the visitor asked not to see: freeze it and
     drop the duplicate so the messages are not shown twice. */
  .announce__track { animation: none; width: 100%; }
  .announce__group + .announce__group { display: none; }
  .announce__group {
    width: 100%; justify-content: center; overflow: hidden;
    padding-right: 0; gap: 26px;
  }
  .announce__group span:nth-child(n+3) { display: none; }

  /* A looping background is motion the visitor asked not to see. */
  .hero__video { display: none; }
  .hero__main {
    background:
      linear-gradient(100deg, rgba(0,44,80,.90), rgba(0,72,125,.62)),
      url("img/hero-poster.jpg") center / cover no-repeat,
      linear-gradient(135deg, var(--brand-dark), var(--brand));
  }
  .hero__veil { display: none; }

  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- Shared form controls ---------------- */

.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field__opt { font-weight: 500; color: var(--text-3); }
.field__hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-3); }

.field input,
.field textarea,
#addressInput {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus,
#addressInput:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }

/* ---------------- Account control (header) ---------------- */

.account { position: relative; }

.account__btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 8px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.account__btn:hover { border-color: var(--border-strong); background: var(--surface-2); }

.account__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--surface-2); font-size: 14px;
}
.account__avatar.is-user { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }

.account__name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .account__name { display: none; } .account__btn { padding: 0 8px; } }

.account__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 232px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.account__head { padding: 10px 11px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account__head strong { display: block; font-size: 13.5px; }
.account__head span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account__item {
  display: block; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text); background: none;
}
.account__item:hover { background: var(--surface-2); }

/* ---------------- Checkout fields (cart drawer) ---------------- */

.drawer__foot .field { margin: 0 0 10px; }
.drawer__foot .field__label { font-size: 11.5px; margin-bottom: 4px; }
.drawer__foot .field input { padding: 9px 11px; font-size: 13.5px; }
.drawer__hint { margin: 8px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }


/* ---------------- Delivery address ----------------
   Saved-address picker plus a structured form, the way delivery apps do it. */

.addr { margin-bottom: 14px; }

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

/* The list scrolls so a long address book can't push checkout off-screen. */
.addr__list { display: grid; gap: 8px; max-height: min(260px, 34vh); overflow-y: auto; padding-right: 2px; }

.addr-card {
  display: flex; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.addr-card:hover { border-color: var(--border-strong); }
.addr-card.is-on { border-color: var(--brand); background: var(--brand-soft); }
.addr-card input { margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.addr-card__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.addr-card__top { display: flex; align-items: center; gap: 8px; }
.addr-card__tag { font-size: 12px; font-weight: 700; }
.addr-card__def {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
}
.addr-card__edit {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--brand);
  background: none; padding: 2px;
}
.addr-card__line { font-size: 13px; font-weight: 600; line-height: 1.35; }
.addr-card__sub  { font-size: 11.5px; color: var(--text-2); line-height: 1.35; }

/* Only the fields scroll — the heading, the Home/Work chips and the Save
   button stay put, so Save is never hidden below a fold on a short screen. */
.addr-form {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 13px; background: var(--surface);
  max-height: 62vh;
}
.addr-form__head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 11px; font-size: 13.5px;
}
.addr-form__foot {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.addr-form__foot .btn { margin-left: auto; }

.btn-danger-link { font-size: 12.5px; font-weight: 600; color: var(--danger); background: none; padding: 4px; }
.btn-danger-link:hover { text-decoration: underline; }

.addr-chips { flex: none; display: flex; gap: 6px; margin-bottom: 12px; }
.addr-chip { flex: 1; cursor: pointer; }
.addr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.addr-chip span {
  display: block; text-align: center; padding: 7px 4px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; color: var(--text-2);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.addr-chip:hover span { border-color: var(--border-strong); }
.addr-chip.is-on span,
.addr-chip input:checked + span {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark);
}
[data-theme="dark"] .addr-chip.is-on span,
[data-theme="dark"] .addr-chip input:checked + span { color: var(--brand); }

.addr-grid {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px;
  align-content: start;
}
.addr-grid__wide { grid-column: 1 / -1; }

/* ---------------- Logo ---------------- */

.logo__img {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-sm); object-fit: contain;
  background: #fff;
}
.footer .logo__img { width: 44px; height: 44px; }

/* ---------------- Product photos ----------------
   A photo fills its tile; without one the tinted emoji tile still shows. */

.card__media--photo,
.modal__media--photo,
.line__thumb--photo,
.suggest__thumb--photo { background: #fff; padding: 0; }
[data-theme="dark"] .card__media--photo,
[data-theme="dark"] .modal__media--photo,
[data-theme="dark"] .line__thumb--photo,
[data-theme="dark"] .suggest__thumb--photo { background: var(--surface-2); }

.card__photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s var(--ease);
}
.card:hover .card__photo { transform: scale(1.04); }

.modal__photo  { width: 100%; height: 100%; object-fit: cover; display: block; }
.line__photo   { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.suggest__photo{ width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Card media already centres its children, so the emoji fallback needs nothing
   extra — these just keep the sizes identical between the two states. */
.card__emoji    { font-size: 74px; line-height: 1; }
.modal__emoji   { font-size: 96px; line-height: 1; }
.line__emoji    { font-size: 30px; line-height: 1; }
.suggest__emoji { font-size: 19px; line-height: 1; }

.card__media, .line__thumb, .suggest__thumb, .modal__media { overflow: hidden; }

/* ============================================================
   Mobile
   Phones are the main way people shop for groceries, so the small
   layout is treated as a first-class design rather than a squeeze.
   ============================================================ */

@media (max-width: 760px) {

  /* Search gets its own full-width row instead of fighting the logo and the
     cart for space — at 360px it had shrunk to just the magnifier. */
  .header__inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px 12px;
  }
  .logo { flex: 0 0 auto; }
  .logo__text { display: block; }
  .logo__name { font-size: 15.5px; }
  .header__actions { margin-left: auto; gap: 4px; }
  .search { order: 3; flex: 1 0 100%; }
  .search__field { height: 44px; }

  /* Two rows of header, so anything sticking below it has to move down. */
  .catbar { top: 112px; }

  /* Two columns is the density people expect from a grocery app; the old
     auto-fill minmax(178px) collapsed to a single column under ~370px. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px; }
  .card__name { font-size: 13px; }
  .card__brand { font-size: 10.5px; }
  .price__now { font-size: 15px; }

  /* Comfortable thumb targets. */
  .icon-btn { width: 42px; height: 42px; }
  .add, .stepper { height: 36px; }
  .stepper button { min-width: 34px; }
  .chip { padding: 9px 14px; }

  .hero__main { padding: 26px 20px; min-height: 0; }
  .hero__title { font-size: clamp(23px, 7vw, 30px); }
  .hero__sub { font-size: 14px; }
  .hero__cta { padding: 13px 22px; }

  .promo { padding: 16px; gap: 13px; }
  .promo__icon { width: 44px; height: 44px; font-size: 22px; }

  .toolbar__title { font-size: 17px; }
  .footer__grid { gap: 24px; padding-block: 34px 24px; }

  /* Room for the cart bar so the last row of products is never hidden. */
  body.has-cart-bar { padding-bottom: 74px; }
}

/* iOS zooms the page in when a focused input is under 16px. */
@media (max-width: 760px) {
  .search input, .field input, .field textarea, .select, .search-a input {
    font-size: 16px;
  }
}

/* ---------------- Sticky cart bar (mobile) ----------------
   The header cart button scrolls away on a long catalogue, so the running
   total follows the shopper down the page — the pattern every delivery app
   uses. Hidden while the cart is empty, and never shown on desktop. */

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--brand); color: #fff;
  box-shadow: 0 -6px 20px rgba(0, 20, 38, .28);
  transform: translateY(100%);
  transition: transform .25s var(--ease);
}
.cartbar.is-on { transform: none; }
@media (max-width: 760px) { .cartbar { display: flex; } }

.cartbar__count { font-size: 12.5px; opacity: .9; }
.cartbar__total { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.cartbar__go {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: var(--r-pill);
  background: #fff; color: var(--brand-dark);
  font-weight: 700; font-size: 14px;
}

/* ---------------- Language toggle ---------------- */

.lang-btn {
  height: 34px; min-width: 42px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  flex: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Devanagari sits taller than Latin, so give the whole page a font stack that
   actually has it — otherwise the browser falls back inconsistently. */
:root[lang="mr"] body,
:root[lang="mr"] .lang-btn {
  font-family: "Inter", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
}
:root[lang="mr"] .hero__title { line-height: 1.28; letter-spacing: -.01em; }
:root[lang="mr"] .card__name { line-height: 1.35; }
:root[lang="mr"] .chip { letter-spacing: 0; }

/* ============================================================
   Divate Supermarket — component pass
   Built to "O - Developer handoff". Martel carries h1–h3 and the brand
   mark; Inter carries everything a person reads, taps or checks. Body
   never drops below 16px. Radius: 6 badges, 12 cards, 999 buttons.
   ============================================================ */

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, .u-display { font-family: Martel, Georgia, serif; letter-spacing: 0; }

/* The focus ring is part of the system, not a browser default to be reset. */
:focus-visible { outline: 3px solid var(--crate); outline-offset: 2px; border-radius: 4px; }

/* ---------------- Top bar: phone, hours, language ---------------- */

.announce {
  background: var(--leaf); color: #fff;
  font-size: 13px; font-weight: 500; overflow: hidden;
}
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 40px; padding-block: 6px;
}
.topbar__contact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__contact b { font-weight: 600; }
.topbar__sep { opacity: .45; }

/* English / मराठी as a switch, not a mystery glyph. */
.langpick {
  margin-left: auto; display: inline-flex; gap: 2px; flex: none;
  background: rgba(255,255,255,.16); border-radius: var(--r-pill); padding: 2px;
}
.langpick button {
  padding: 5px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: #fff; background: none;
  line-height: 1.2;
}
.langpick button.is-on { background: #fff; color: var(--leaf); }

/* The offers strip keeps moving, in haldi-tint where offers live. */
.offers { background: var(--haldi-tint); color: var(--haldi-deep); overflow: hidden; }
.offers__track { display: flex; width: max-content; animation: announce-scroll 38s linear infinite; }
.offers__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; height: 34px; }
.offers span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 500; }
.offers:hover .offers__track, .offers:focus-within .offers__track { animation-play-state: paused; }
@media (max-width: 760px) { .offers__track { animation-duration: 26s; } }

/* ---------------- Header ---------------- */

.header { background: var(--chalk); border-bottom: 1px solid var(--rule); }
.header__inner { gap: 14px; min-height: 68px; }
.logo__img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; }
.logo__name { font-family: Martel, Georgia, serif; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.logo__tag { font-size: 13px; color: var(--leaf); font-weight: 600; display: flex; align-items: center; gap: 4px; }

.locate {
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--chalk); padding: 7px 15px 7px 12px; gap: 9px;
}
.locate:hover { border-color: var(--rule-strong); }
.locate__label { font-size: 12px; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 400; }
.locate__value { font-size: 14px; font-weight: 600; gap: 5px; }

.search__field {
  height: 48px; padding: 0 18px; gap: 11px;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--chalk);
}
.search__field:focus-within { border-color: var(--rule-strong); box-shadow: none; }
.search__icon { color: var(--ink-3); }
.search input { font-size: 15px; }
.search input::placeholder { color: var(--ink-3); }

.icon-btn { width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--ink-2); }
.icon-btn:hover { background: var(--leaf-tint); color: var(--leaf); }

.account__btn {
  height: 44px; padding: 0 16px 0 12px; gap: 9px;
  border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--chalk);
  font-size: 15px; font-weight: 600;
}
.account__avatar { width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--leaf-tint); color: var(--leaf); }
.account__avatar.is-user { background: var(--leaf); color: #fff; }
.account__menu { border-radius: var(--r); border-color: var(--rule); }
.account__item { display: flex; align-items: center; gap: 10px; border-radius: 8px; font-size: 15px; padding: 10px 12px; }
.account__item svg { color: var(--ink-3); }

.cart-btn {
  height: 44px; padding: 0 18px; gap: 9px;
  background: var(--leaf); color: #fff; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
}
.cart-btn:hover { background: var(--leaf-press); }
.cart-btn__total { font-weight: 700; }
.pip {
  background: var(--haldi); color: var(--haldi-deep);
  border-radius: var(--r-pill); font-weight: 700; font-size: 11.5px;
}

.lang-btn { display: none; }   /* replaced by the pill switcher in the top bar */

/* ---------------- Category tiles ---------------- */

.catbar { background: var(--chalk); border-bottom: 1px solid var(--rule); }
.catbar__scroll { gap: 4px; padding: 12px 0; }

.chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 104px; padding: 6px 6px 8px; flex: none;
  border: 0; border-radius: var(--r); background: none;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  white-space: normal; text-align: center; line-height: 1.3;
}
.chip:hover { color: var(--ink); }
.chip:hover .chip__img { border-color: var(--rule-strong); }
.chip.is-active { color: var(--ink); font-weight: 600; background: none; }
.chip.is-active .chip__img { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); }

.chip__img {
  width: 54px; height: 54px; flex: none;
  border-radius: var(--r); object-fit: cover;
  border: 1px solid transparent;
  background: var(--cat-tint, var(--leaf-tint));
  color: var(--cat-ink, var(--leaf));
  display: grid; place-items: center;
}
.chip__label { display: block; }
.chip__n { display: none; }   /* the count is noise on a category tile */

/* Category tints from the spec, applied by data-cat. */
.chip[data-cat="produce"]   { --cat-tint: #EAF3E6; --cat-ink: #3F7A2E; }
.chip[data-cat="dairy"]     { --cat-tint: #EEF3F9; --cat-ink: #3B6E9E; }
.chip[data-cat="staples"]   { --cat-tint: #FBF1DE; --cat-ink: #9B6B15; }
.chip[data-cat="snacks"],
.chip[data-cat="beverages"] { --cat-tint: #FBEDE9; --cat-ink: #B4543E; }
.chip[data-cat="household"] { --cat-tint: #EDF1F0; --cat-ink: #4C6B60; }
.chip[data-cat="personal"]  { --cat-tint: #F4EEF7; --cat-ink: #6E4E86; }
.chip[data-cat="bakery"]    { --cat-tint: #FBF1DE; --cat-ink: #9B6B15; }
.chip[data-cat="meat"]      { --cat-tint: #FBEDE9; --cat-ink: #B4543E; }
.chip[data-cat="frozen"]    { --cat-tint: #EEF3F9; --cat-ink: #3B6E9E; }
.chip[data-cat="baby"]      { --cat-tint: #F4EEF7; --cat-ink: #6E4E86; }
.chip[data-cat="stationery"]{ --cat-tint: #EDF1F0; --cat-ink: #4C6B60; }

/* ---------------- Buttons ---------------- */

.btn {
  height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--leaf); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { background: var(--leaf-press); }
.btn--ghost {
  background: var(--chalk); color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--ink-3); }
.btn--lg { height: 48px; font-size: 16px; }
.btn:disabled { opacity: .5; }

.link-btn { color: var(--leaf); font-weight: 600; font-size: 14px; }

/* ---------------- Product card ---------------- */

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

.card {
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--chalk); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card:hover { border-color: var(--rule-strong); transform: none; box-shadow: var(--shadow-sm); }
.card--out { opacity: .72; }         /* keeps the price, never hides the product */

.card__media {
  aspect-ratio: 1; border-radius: 0;
  background: var(--cat-tint, var(--leaf-tint));
  color: var(--cat-ink, var(--leaf));
  padding: 0;
}
.card__photo { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__photo { transform: none; }
.card__ph { color: currentColor; opacity: .55; }

.card__badges { top: 10px; left: 10px; gap: 6px; }
.badge {
  border-radius: var(--r-sm); padding: 4px 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.badge--off { background: var(--chilli); color: #fff; }
.badge--bestseller, .badge--new, .badge--organic, .badge--premium {
  background: var(--chalk); color: var(--ink-2); border: 1px solid var(--rule);
}

.wish {
  top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.94);
  border: 1px solid var(--rule); color: var(--ink-3);
}
.wish.is-on { color: var(--chilli); border-color: var(--chilli); }

.card__body { padding: 14px; display: grid; gap: 4px; }
.card__brand { display: none; }      /* the shelf tag is name, pack, stock, price */
.card__name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.card__unit { font-size: 12.5px; color: var(--ink-3); }

/* Stock is a dot AND a word — colour never carries meaning alone. */
.stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--leaf); margin-top: 2px;
}
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--low  { color: var(--warn); }
.stock--none { color: var(--chilli); }

/* Shelf tag: ₹ smaller and lighter, MRP struck through beside the price. */
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price__now {
  font-size: 19px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.price__now .rs { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-right: 1px; }
.price__was {
  font-size: 13px; color: var(--ink-3); text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* The one decorative device on the site. No saving → "At MRP", never empty. */
.save {
  display: inline-flex; align-items: center; gap: 5px; align-self: start;
  padding: 3px 9px 3px 7px; border-radius: var(--r-sm);
  background: var(--haldi-tint); color: var(--haldi-deep);
  font-size: 12.5px; font-weight: 600;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%);
  padding-left: 12px;
}
.save--mrp { background: none; color: var(--ink-3); clip-path: none; padding-left: 0; font-weight: 400; }

/* Add morphs into the stepper in place: same height, width and position. */
.card__foot { margin-top: 10px; display: block; }
.add, .stepper {
  height: 44px; width: 100%; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
}
.add {
  border: 1px solid var(--leaf); background: var(--chalk); color: var(--leaf);
  letter-spacing: 0; text-transform: none;
}
.add:hover { background: var(--leaf-tint); }
.add:disabled { border-color: var(--rule-strong); color: var(--ink-3); background: var(--chalk); opacity: 1; }
.stepper {
  margin: 0; background: var(--leaf); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.stepper__n { font-variant-numeric: tabular-nums; font-weight: 700; }

.rating { display: none; }   /* the spec's shelf tag carries stock, not stars */
.stock-note { display: none; }

/* ---------------- Hero ---------------- */

.hero { padding-block: 40px 8px; }
.hero__grid { gap: 32px; }
.hero__main {
  background: none; color: var(--ink);
  padding: 0; min-height: 0; border-radius: 0;
  display: block; overflow: visible;
}
.hero__video, .hero__veil { display: none; }   /* the spec leads with type, not footage */
.hero__kicker {
  background: var(--leaf-tint); color: var(--leaf);
  border-radius: var(--r-pill); padding: 6px 13px;
  font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.hero__title {
  font-family: Martel, Georgia, serif;
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800;
  line-height: 1.18; letter-spacing: 0;
  margin: 18px 0 14px; max-width: 15ch; text-shadow: none;
}
.hero__sub {
  font-size: 18px; line-height: 1.6; color: var(--ink-2);
  opacity: 1; max-width: 46ch; margin-bottom: 26px; text-shadow: none;
}
.hero__cta { background: var(--leaf); color: #fff; }
.hero__cta:hover { background: var(--leaf-press); }

/* Full-width store banner leading the hero. */
.hero__banner {
  display: block; margin-bottom: 30px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--leaf-tint);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.hero__banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hero__banner img { display: block; width: 100%; height: auto; }
.hero__main > .hero__cta { margin-bottom: 24px; }

.hero__side { gap: 16px; }
.promo {
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--chalk); padding: 20px; gap: 16px;
}
.promo__icon {
  width: 46px; height: 46px; border-radius: var(--r);
  background: var(--crate-tint); color: var(--crate);
}
.promo--warm .promo__icon { background: var(--haldi-tint); color: var(--haldi-deep); }
.promo__title { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.promo__text { font-size: 14px; color: var(--ink-2); }

/* ---------------- Toolbar, filters ---------------- */

.toolbar__title { font-family: Martel, Georgia, serif; font-size: 28px; font-weight: 800; letter-spacing: 0; }
.toolbar__count { font-size: 14px; color: var(--ink-3); }
.select, .filter-toggle {
  height: 44px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
  border: 1px solid var(--rule); background: var(--chalk); padding: 0 18px;
}
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.filters { border-radius: var(--r); border: 1px solid var(--rule); background: var(--chalk); }
.filters__head h2 { font-family: Martel, Georgia, serif; font-size: 18px; font-weight: 700; }
.fgroup__title { font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.check { font-size: 14px; }
.check input { accent-color: var(--leaf); }
.tag {
  border-radius: var(--r-pill); font-size: 13px; padding: 6px 8px 6px 14px;
  background: var(--leaf-tint); color: var(--leaf);
}
.tag button { display: inline-flex; align-items: center; }

/* ---------------- Drawers, modal, forms ---------------- */

.drawer__head h2 { font-family: Martel, Georgia, serif; font-size: 20px; font-weight: 700; }
.line__thumb { border-radius: var(--r); background: var(--leaf-tint); }
.modal { border-radius: var(--r); }
.modal__name { font-family: Martel, Georgia, serif; }
.fact { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.fact svg { color: var(--crate); }
.fact--out svg { color: var(--chilli); }

/* Label above, always visible; hint between label and input; never a
   placeholder standing in for a label. */
.field__label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field__hint  { font-size: 13px; color: var(--ink-3); }
.field input, .field textarea, #addressInput {
  min-height: 48px; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--chalk);
  font-size: 16px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { border-color: var(--rule-strong); box-shadow: none; }
.field input[aria-invalid="true"] { border-color: var(--chilli); background: var(--chilli-tint); }
.auth__error {
  background: var(--chilli-tint); color: var(--chilli);
  border: 1px solid var(--chilli); border-radius: var(--r); font-size: 14px;
}

.addr-card { border-radius: var(--r); border-width: 1px; }
.addr-card.is-on { border-color: var(--leaf); background: var(--leaf-tint); }
.addr-card input { accent-color: var(--leaf); }
.addr-chip span { border-radius: var(--r-pill); border-width: 1px; font-size: 13.5px; padding: 9px 6px; }
.addr-chip.is-on span, .addr-chip input:checked + span {
  border-color: var(--leaf); background: var(--leaf-tint); color: var(--leaf);
}
.addr-form { border-radius: var(--r); }

.freebar__fill { background: var(--haldi); }
.totals__row--grand { font-family: Martel, Georgia, serif; }
.toast { border-radius: var(--r); font-size: 14px; }
.empty__icon { color: var(--rule-strong); }
.suggest { border-radius: var(--r); }
.suggest__thumb { border-radius: 8px; background: var(--leaf-tint); }

/* ---------------- Trust band, footer, cart bar ---------------- */

.trust { background: var(--chalk); border-top: 1px solid var(--rule); }
.trust__grid { gap: 26px; }
.trust__icon {
  width: 42px; height: 42px; border-radius: var(--r);
  background: var(--crate-tint); color: var(--crate);
  border: 0; display: grid; place-items: center;
}
.trust__title { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.trust__text { font-size: 14px; color: var(--ink-2); }

.footer h4 { font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #A9BDB0; }
.footer li a { font-size: 14.5px; }
.footer__brand p { font-size: 14.5px; }

.cartbar { background: var(--leaf); }
.cartbar__go { border-radius: var(--r-pill); color: var(--leaf); font-size: 15px; height: 44px; }

/* ---------------- Mobile ---------------- */

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .topbar__contact { font-size: 12.5px; }
  .langpick { margin-left: auto; }
  .catbar { top: 116px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .chip { width: 84px; font-size: 12.5px; }
  .chip__img { width: 48px; height: 48px; }
  .hero { padding-block: 26px 4px; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 16px; }
  .toolbar__title { font-size: 24px; }
  .card__body { padding: 12px; }
  .search__field { height: 46px; }
}

/* ---------------- Delivery check ---------------- */

.hero__side { grid-template-rows: none; align-content: start; }

.pincheck {
  margin-top: 28px; max-width: 460px;
  background: var(--chalk); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 22px;
}
.pincheck__title { font-family: Martel, Georgia, serif; font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.pincheck .field { margin: 0; }
.pincheck__row { display: flex; gap: 10px; margin-top: 8px; }
.pincheck__row input { flex: 1; min-width: 0; }
.pincheck__row .btn { flex: none; padding: 0 26px; }
.pincheck__out {
  margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r);
  font-size: 14.5px; line-height: 1.5;
}
.pincheck__out.is-good { background: var(--leaf-tint); color: var(--leaf); }
.pincheck__out.is-bad  { background: var(--chilli-tint); color: var(--chilli); }

@media (max-width: 560px) {
  .pincheck__row { flex-direction: column; }
  .pincheck__row .btn { width: 100%; }
}

/* ============================================================
   Fulfilment (delivery / pickup), pickup panel, and the Yaadi
   (saved list) controls — added with the "keep it ready" feature.
   ============================================================ */

/* Two-up delivery / pickup switch in the cart footer. */
.fulfil {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 14px;
}
.fulfil__opt {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--surface); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.fulfil__opt:hover { border-color: var(--border-strong); }
.fulfil__opt.is-on { border-color: var(--brand); background: var(--brand-soft); }
.fulfil__t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.fulfil__opt.is-on .fulfil__t { color: var(--brand); }
.fulfil__h { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }

/* Pickup panel: arrival-time chips + the resulting "ready by" line. */
.pickup { margin-bottom: 14px; }
.pickup__label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.pickup__etas { display: flex; gap: 8px; margin-bottom: 12px; }
.eta {
  flex: 1; padding: 9px 6px; border: 1.5px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.eta:hover { border-color: var(--border-strong); }
.eta.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pickup__ready {
  display: flex; align-items: center; gap: 7px;
  background: var(--brand-soft); color: var(--brand);
  padding: 10px 12px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 8px;
}
.pickup__ready b { font-weight: 800; }
.pickup__clock { display: inline-flex; }
.pickup__where {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 12.5px; color: var(--text-2); padding: 0 2px;
}
.pickup__where svg { flex: none; color: var(--text-3); }
.pickup__free {
  margin-left: auto; font-size: 11.5px; font-weight: 700;
  color: var(--haldi-deep); background: var(--haldi-tint);
  padding: 2px 9px; border-radius: var(--r-pill);
}

/* Save-cart-to-yaadi button and the product-modal yaadi toggle. */
.yaadi-save {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px;
}
.yaadi-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 12px; padding: 11px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.yaadi-toggle:hover { border-color: var(--border-strong); }
.yaadi-toggle.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.yaadi-toggle svg { flex: none; }

/* Pickup order badge, reused on the account and admin order cards. */
.ful-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand);
}
.ful-tag svg { flex: none; }

/* ============================================================
   Quick-commerce home pass (Oct 2026)
   Layout after the Zepto homepage, kept in Divate's teal + lime:
   a slim header with the delivery promise and a wide search, an
   underlined category tab rail, two offer banners, "Shop by
   Category" tiles, and a sideways shelf per category. Cards lead
   with the photo and an ADD button on its corner.
   ============================================================ */

:root {
  --header-h: 76px;
  --banner-offers: linear-gradient(160deg, #E4F1F5 0%, #CBE4EC 100%);
  --banner-fresh:  linear-gradient(120deg, #EEF7DF 0%, #D2EAEF 100%);
  --otile-bg:      rgba(255, 255, 255, .78);
  --otile-rule:    rgba(255, 255, 255, .95);
  --tile-bg:       #F1F5F6;
}
[data-theme="dark"] {
  --banner-offers: linear-gradient(160deg, #0F2830 0%, #123844 100%);
  --banner-fresh:  linear-gradient(120deg, #1B2610 0%, #0F2830 100%);
  --otile-bg:      rgba(255, 255, 255, .05);
  --otile-rule:    rgba(255, 255, 255, .08);
  --tile-bg:       #1A2729;
}

body { background: var(--chalk); }

/* ---------------- Header ---------------- */

.header { position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 var(--rule); border-bottom: 0; }
.header__inner { min-height: var(--header-h); gap: 22px; }

.header .logo__name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1;
  color: var(--leaf);
}
.header .logo__tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--haldi-deep); margin-top: 3px;
}

/* The delivery promise reads first; the address is the quieter second line. */
.locate {
  flex-direction: column; align-items: flex-start; gap: 1px;
  border: 0; background: none; padding: 4px 2px; border-radius: var(--r-sm);
}
@media (min-width: 900px) { .locate { display: flex; } }
.locate:hover { border: 0; }
.locate__label {
  display: flex; align-items: center; gap: 5px;
  font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.01em;
}
.locate__label svg { color: var(--haldi-deep); fill: var(--haldi); }
.locate__value { font-size: 13px; font-weight: 500; color: var(--ink-2); }

.search__field {
  height: 50px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--rule);
}
.search__field:focus-within { background: var(--chalk); border-color: var(--leaf); }

.header__actions { gap: 6px; }

/* EN / मराठी sits in the header now that the top bar is gone. */
.header .langpick {
  margin-left: 0; background: var(--paper); border: 1px solid var(--rule); padding: 2px;
}
.header .langpick button { color: var(--ink-2); padding: 5px 10px; font-size: 12.5px; }
.header .langpick button.is-on { background: var(--leaf); color: #fff; }

/* Sign-in as icon-over-label, the way quick-commerce headers do it. */
.account__btn {
  flex-direction: column; gap: 2px; height: auto; padding: 4px 10px;
  border: 0; background: none; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.account__btn:hover { background: var(--paper); }
.account__avatar { width: 26px; height: 26px; background: none; color: var(--ink); }
.account__avatar.is-user { background: var(--leaf); color: #fff; }

.cart-btn { height: 46px; border-radius: 12px; }

/* ---------------- Category tabs ---------------- */

.catbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--chalk); border-bottom: 1px solid var(--rule);
}
.catbar__scroll { gap: 4px; padding: 0; }
.tab {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 10px 10px; margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--leaf); border-bottom-color: var(--leaf); font-weight: 600; }
.tab__img {
  width: 24px; height: 24px; flex: none; border-radius: 6px; object-fit: cover;
  display: grid; place-items: center;
}
.tab__img--all { color: currentColor; }

/* ---------------- Home ---------------- */

.home { padding-block: 18px 44px; }

.banners { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .banners { grid-template-columns: 1fr 1fr; } }

.banner {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px 22px 14px;
  min-height: 272px;
}

.banner--offers {
  background: var(--banner-offers);
  display: flex; flex-direction: column; gap: 14px;
}
.banner__kicker {
  margin: 0; text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase;
  color: var(--leaf);
}
.banner__kicker b { font-weight: 900; color: var(--leaf-press); }
.banner__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.otile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px; border-radius: 14px;
  background: var(--otile-bg); border: 1px solid var(--otile-rule);
}
.otile__icon {
  width: 58px; height: 58px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--leaf); color: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px rgba(0, 78, 98, .25);
}
.otile__icon--lime { background: var(--haldi); color: #1F3A08; transform: rotate(5deg); box-shadow: 0 6px 14px rgba(62, 107, 18, .25); }
.otile__big {
  display: block; font-size: 21px; font-weight: 900; line-height: 1.08;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--leaf-press);
}
.otile__small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

.banner__checks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
}
.banner__checks li {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 700; color: var(--leaf-press);
}
.banner__checks i {
  width: 21px; height: 21px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #2F8F3A; color: #fff;
}
.banner__checks i svg { stroke-width: 3; }
.banner__note { margin: -6px 0 0; text-align: center; font-size: 10.5px; color: var(--ink-3); }

.banner--fresh {
  background: var(--banner-fresh);
  display: flex; align-items: center;
  padding: 26px 28px;
}
.banner__copy { position: relative; z-index: 1; max-width: 58%; }
.banner__title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; line-height: 1;
  letter-spacing: -.03em; text-transform: uppercase; color: var(--leaf-press);
}
.banner__text { margin: 14px 0 22px; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.banner__cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px;
  background: var(--ink); color: var(--chalk);
  font-size: 16px; font-weight: 700;
  transition: transform .12s var(--ease), box-shadow .15s var(--ease);
}
.banner__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.banner__photo {
  position: absolute; right: 26px; top: 50%;
  width: min(36%, 210px); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 20px; border: 5px solid #fff;
  transform: translateY(-50%) rotate(5deg);
  box-shadow: 0 16px 34px rgba(0, 40, 50, .28);
}

/* Section headings are plain and bold, with "See All" on the right. */
.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 30px 0 14px;
}
.section__title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: -.02em;
}
.section__more {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  font-size: 14px; font-weight: 600; color: var(--leaf);
  padding: 4px 6px; border-radius: var(--r-sm);
}
.section__more:hover { background: var(--leaf-tint); }

/* ---------------- Shop by Category tiles ---------------- */

.cattiles {
  display: grid; gap: 18px 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.cattile { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.cattile__img {
  width: 100%; max-width: 136px; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; color: var(--leaf);
  background: var(--tile-bg);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cattile__img img { width: 100%; height: 100%; object-fit: cover; }
.cattile:hover .cattile__img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cattile__label { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }

/* ---------------- Store banner + delivery check ---------------- */

/* The artwork ships with a white margin; crop to the painted panel. */
.storebanner {
  position: relative; display: block; margin-top: 30px;
  aspect-ratio: 1524 / 452; overflow: hidden;
  border-radius: 18px; background: #0F8AA3;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.storebanner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.storebanner img {
  position: absolute; top: 0; left: -2.6%;
  width: 105.2%; max-width: none; height: auto;
  margin-top: -5.5%;
}

.pincheck {
  margin-top: 18px; max-width: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding: 18px 22px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--rule);
}
.pincheck__intro { display: flex; align-items: center; gap: 14px; }
.pincheck__icon {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--leaf-tint); color: var(--leaf);
}
.pincheck__title { font-family: Inter, system-ui, sans-serif; font-size: 17px; margin: 0; }
.pincheck .field__hint { margin-top: 1px; }
.pincheck .field { flex: 1 1 320px; max-width: 440px; margin-left: auto; }
.pincheck__row { margin-top: 0; }
.pincheck__row input { min-height: 46px; }
.pincheck__row .btn { height: 46px; border-radius: 12px; }
.pincheck__out { flex: 1 0 100%; margin: 0; }

/* ---------------- Shelves ---------------- */

.rail { margin-top: 6px; }
.rail__wrap { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 2px;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { scroll-snap-align: start; }

.rail__nav {
  position: absolute; top: 88px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chalk); color: var(--ink);
  border: 1px solid var(--rule); box-shadow: var(--shadow-lg);
  transform: translateY(-50%);
}
.rail__nav:hover { color: var(--leaf); }
.rail__nav--prev { left: -16px; }
.rail__nav--prev svg { transform: rotate(180deg); }
.rail__nav--next { right: -16px; }
@media (hover: none), (max-width: 760px) { .rail__nav { display: none !important; } }

/* ---------------- Product card ---------------- */

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

.card {
  padding: 8px; border-radius: 14px;
  border: 1px solid var(--rule); background: var(--chalk); box-shadow: none;
}
.card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow); }

.card__media {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--tile-bg);
}
.card__photo { border-radius: 0; }

.card__badges { top: 7px; left: 7px; }
.badge { font-size: 10.5px; padding: 3px 7px; border-radius: 6px; }
.wish { top: 7px; right: 7px; width: 30px; height: 30px; }

/* ADD and the stepper sit on the photo's corner, the same size either way. */
.card__ctl { position: absolute; right: 7px; bottom: 7px; z-index: 2; }
.card__ctl .add,
.card__ctl .stepper {
  width: 86px; height: 36px; border-radius: 9px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(0, 30, 40, .14);
}
.card__ctl .add {
  border: 1.5px solid var(--leaf); background: var(--chalk); color: var(--leaf);
  text-transform: uppercase; padding: 0;
}
.card__ctl .add:hover { background: var(--leaf-tint); }
.card__ctl .add:disabled {
  width: auto; padding: 0 10px; border-color: var(--rule-strong);
  color: var(--ink-3); font-size: 12px; text-transform: none;
}
.card__ctl .stepper { padding: 0; }
.card__ctl .stepper button { width: 30px; height: 36px; }

.card__body { padding: 10px 4px 4px; gap: 3px; align-content: start; }
.card .price { flex-direction: row; flex-wrap: wrap; margin-top: 0; gap: 0 7px; }
.card .price__now { font-size: 17px; font-weight: 800; }
.card .price__now .rs { font-size: 13px; font-weight: 600; color: var(--ink); }
.card .price__was { font-size: 13px; }
.card .save {
  clip-path: none; padding: 2px 7px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
  background: var(--haldi-tint); color: #2F7A1F;
  justify-self: start;
}
[data-theme="dark"] .card .save { color: var(--haldi-deep); }
.card__name { font-size: 14px; font-weight: 600; margin-top: 2px; }
.card__unit { font-size: 13px; }
.card .stock { font-size: 12px; margin-top: 0; }

/* ---------------- Listing view ---------------- */

.toolbar__back {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--rule); background: var(--chalk); color: var(--ink);
}
.toolbar__back svg { transform: rotate(180deg); }
.toolbar__back:hover { border-color: var(--leaf); color: var(--leaf); }
.toolbar__title { font-family: Inter, system-ui, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.filters { top: calc(var(--header-h) + 58px); }

/* ---------------- Footer contact (moved from the old top bar) ---------------- */

.footer__contact { line-height: 1.7; }
.footer__contact svg { vertical-align: -2px; margin-right: 6px; }
.footer__contact b { color: #fff; font-weight: 600; }

/* ---------------- Responsive ---------------- */

.lang-btn { display: none; }

@media (max-width: 1000px) {
  .cattiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header__inner { gap: 10px; }
  .header .logo__name { font-size: 21px; }
  .search { order: 3; flex: 1 0 100%; }
  .search__field { height: 46px; }

  /* The header wraps to two rows here, so the tabs scroll with the page. */
  .catbar { position: relative; top: auto; }
  .tab { font-size: 14px; padding: 11px 8px 9px; }

  .home { padding-top: 14px; }
  .banner { min-height: 0; border-radius: 16px; }
  .banner__kicker { font-size: 17px; }
  .otile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .otile__icon { width: 46px; height: 46px; }
  .otile__big { font-size: 17px; }
  .banner__checks { gap: 6px 14px; }
  .banner__checks li { font-size: 13px; }
  .banner--fresh { padding: 22px 20px; }
  .banner__copy { max-width: 62%; }
  .banner__text { font-size: 15px; margin: 10px 0 16px; }
  .banner__photo { right: 16px; width: 32%; border-width: 4px; }

  .section__head { margin: 24px 0 12px; }
  .section__title { font-size: 18px; }
  .cattiles { gap: 14px 10px; }
  .cattile__label { font-size: 12.5px; }
  .cattile__img { border-radius: 14px; }

  .storebanner { border-radius: 14px; margin-top: 24px; }
  .pincheck .field { margin-left: 0; max-width: none; }

  .rail__track { grid-auto-columns: 150px; gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__ctl .add, .card__ctl .stepper { width: 76px; height: 34px; }
  .card__ctl .stepper button { width: 26px; height: 34px; }
  .card .price__now { font-size: 16px; }
  .card__name { font-size: 13.5px; }
  .toolbar__title { font-size: 20px; }
}

/* Phones: one language toggle instead of two pills, and a tighter header. */
@media (max-width: 560px) {
  .header .langpick { display: none; }
  .lang-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; }
  .header__inner { gap: 8px; }
  .header__actions { gap: 0; flex-wrap: nowrap; }
  .icon-btn { width: 34px; height: 38px; }
  .account__btn { padding: 4px 6px; }
  .header .logo { gap: 7px; }
  .header .logo__img { width: 36px; height: 36px; }
  .header .logo__name { font-size: 19px; }
  .header .logo__tag { display: none; }
  .lang-btn { padding: 0 8px; margin-right: 2px; }
  .cart-btn { height: 40px; padding: 0 10px; margin-left: 2px; }
  .banner__tiles { gap: 8px; }
  .otile__small { font-size: 11.5px; }
}

/* The sidebar is always visible on desktop, so its drawer toggle is not needed. */
@media (min-width: 1000px) { .filter-toggle { display: none; } }
