/* Sabiqa — brand colours measured from the traced logo, not the older palette table.
   No framework on purpose: this has to be fast on 4G in Bangladesh, and there is
   nobody to maintain a build step. */
:root {
  --green-d: #243C2E;
  --green-m: #5C7354;
  --gold:    #C1B186;
  --gold-hi: #D7C294;
  --cream:   #F3EDE3;
  --ink:     #1A1714;
  --teal:    #2E7D77;   /* reserved for proof: tests, batch, origin. Nothing else. */
  --paper:   #FBF8F2;
  --line:    #E2DACB;
  --radius:  14px;
  --shadow:  0 2px 14px rgba(36,60,46,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Noto Serif Bengali", "Hind Siliguri", Georgia, serif;
  line-height: 1.65; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-d); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.en { font-family: "Inter", system-ui, sans-serif; }

/* ── header ─────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 40; background: rgba(251,248,242,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.bar img { height: 46px; width: auto; }
nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
nav a { text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 15px; }
nav a:hover { background: var(--cream); }
.btn {
  border: 0; cursor: pointer; border-radius: 10px; padding: 11px 18px;
  font: inherit; font-size: 15px; background: var(--green-d); color: #fff;
}
.btn:hover { background: #1b2f24; }
.btn[disabled] { background: #A9B4AC; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--green-d); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cream); }
#cartBtn { position: relative; }
#cartCount {
  position: absolute; top: -6px; inset-inline-end: -6px; background: var(--gold);
  color: var(--ink); border-radius: 999px; min-width: 21px; height: 21px;
  font-size: 12px; display: grid; place-items: center; font-family: Inter, sans-serif;
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 54px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 6px; color: var(--green-d); line-height: 1.25; }
/* BUG: this shorthand overrode `margin: 0 auto` from `.hero p`, so the tagline's
   620px box sat flush LEFT while the h1 and the paragraph were centred.
   Measured: tagline centre 345 vs page centre 595. Keep the auto side-margins. */
.hero .tag { color: var(--gold); font-size: clamp(19px, 3vw, 26px); margin: 0 auto 18px; }
.hero p { max-width: 620px; margin: 0 auto; color: #4a4740; }

/* The honest-delivery strip. Competitors hide delivery in a footer link or
   promise "free above 250" they can only afford on light metro groceries. */
.honest {
  background: var(--green-d); color: var(--cream); border-radius: var(--radius);
  padding: 18px 22px; margin: 26px 0 8px; display: grid; gap: 6px;
}
.honest b { color: var(--gold-hi); }
.honest .sm { font-size: 14.5px; opacity: .88; }

/* ── proof band ─────────────────────────────────────────────────────── */
.proof { background: var(--cream); border-block: 1px solid var(--line); padding: 34px 0; margin: 40px 0; }
.proof h2 { margin: 0 0 6px; color: var(--green-d); font-size: 26px; }
.proof .grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 18px; }
.proof .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.proof .card h3 { margin: 0 0 4px; font-size: 17px; color: var(--teal); }
.proof .card p { margin: 0; font-size: 15px; color: #4a4740; }

/* ── baskets ────────────────────────────────────────────────────────── */
.baskets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.basket {
  border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 18px;
  background: linear-gradient(180deg, #fff, var(--cream));
}
.basket h3 { margin: 0 0 3px; color: var(--green-d); }
.basket .why { font-size: 15px; color: #4a4740; margin: 0 0 10px; }
.basket ul { margin: 0 0 12px; padding-inline-start: 20px; font-size: 15px; color: #4a4740; }
/* The totals used to be one inline run, which wrapped and orphaned "মোট" from its
   number, and left the three buttons at different heights. A two-column grid keeps
   labels and values aligned; margin-top:auto pushes every button to the same line. */
.basket { display: flex; flex-direction: column; }
.basket .tot {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  margin: 0 0 14px; font-size: 15px;
}
.basket .tot dt { color: #6b665c; }
.basket .tot dd { margin: 0; text-align: end; font-family: Inter, sans-serif; }
.basket .tot .g { font-weight: 600; color: var(--green-d); border-top: 1px solid var(--line);
  padding-top: 6px; margin-top: 4px; font-size: 17px; }
.basket .btn { margin-top: auto; align-self: start; }

/* ── products ───────────────────────────────────────────────────────── */
h2.sec { color: var(--green-d); font-size: 27px; margin: 46px 0 4px; }
.sub { color: #6b665c; margin: 0 0 20px; font-size: 15.5px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .ph { aspect-ratio: 1/1; overflow: hidden; background: var(--cream); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0; font-size: 19px; color: var(--green-d); }
.card .size { font-family: Inter, sans-serif; font-size: 13.5px; color: #6b665c; margin-bottom: 8px; }
/* Weight is shown on every card — it is what the delivery charge is built from. */
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.chip {
  font-family: Inter, sans-serif; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--cream); color: #55503f; border: 1px solid var(--line);
}
.chip.t { background: #E7F2F0; color: var(--teal); border-color: #CBE4E0; }
.card .note { font-size: 14.5px; color: #4a4740; margin: 0 0 12px; }
.row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.price { font-family: Inter, sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); }
.row .btn { margin-inline-start: auto; padding: 9px 15px; }

/* ── cart drawer ────────────────────────────────────────────────────── */
#scrim { position: fixed; inset: 0; background: rgba(26,23,20,.45); opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
#scrim.on { opacity: 1; pointer-events: auto; }
#cart {
  position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(430px, 100%);
  background: var(--paper); z-index: 60; transform: translateX(100%); transition: transform .24s;
  display: flex; flex-direction: column; box-shadow: -6px 0 26px rgba(0,0,0,.16);
}
#cart.on { transform: none; }
#cart header { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
#cart header h2 { margin: 0; font-size: 20px; color: var(--green-d); }
#cart .close { margin-inline-start: auto; background: 0; border: 0; font-size: 26px; cursor: pointer;
  color: #6b665c; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
#items { flex: 1; overflow: auto; padding: 12px 18px; }
.line { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.line img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.line .nm { flex: 1; font-size: 15.5px; line-height: 1.35; }
.line .nm small { color: #6b665c; font-family: Inter, sans-serif; font-size: 12.5px; }
.qty { display: flex; align-items: center; gap: 7px; font-family: Inter, sans-serif; }
.qty button { width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
#foot { border-top: 1px solid var(--line); padding: 15px 18px; background: var(--cream); }
#foot .l { display: flex; justify-content: space-between; font-family: Inter, sans-serif; font-size: 15px; margin-bottom: 5px; }
#foot .l.tot { font-size: 19px; font-weight: 600; color: var(--green-d); margin-top: 9px; }
#foot .hint { font-size: 14px; color: #6b665c; margin: 9px 0 11px; }
#foot .warn { background: #FDF0E4; border: 1px solid #F0D7BC; color: #7a4a19; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; margin: 9px 0 11px; }
#checkout { width: 100%; padding: 13px; font-size: 16px; }
.empty { color: #6b665c; text-align: center; padding: 46px 12px; }

footer.site { background: var(--green-d); color: #D9D2C6; margin-top: 56px; padding: 34px 0 26px; font-size: 15px; }
footer.site a { color: var(--gold-hi); }
footer.site .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site h4 { color: var(--cream); margin: 0 0 7px; font-size: 16px; }
.legal { border-top: 1px solid rgba(255,255,255,.13); margin-top: 22px; padding-top: 14px; font-size: 13.5px; opacity: .8; }

.ribbon { background: var(--gold); color: var(--ink); text-align: center; padding: 7px 14px; font-size: 14.5px; }
[hidden] { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE — this is the primary experience, not an afterthought.
   ~99% of customers are on a phone. Measured at 360px (typical BD Android)
   the desktop layout was BROKEN, not merely cramped:
     · document scrollWidth 425 on a 360 viewport — the page scrolled sideways
     · nav ran to x=425, pushing the CART BUTTON COMPLETELY OFF-SCREEN, so a
       customer could not open the cart at all
     · 14 tap targets under the 44x44 minimum, some 19px tall
   ══════════════════════════════════════════════════════════════════════════ */

/* Nothing may ever exceed the viewport again. */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* The header keeps only what a shopper needs: identity, language, cart.
     The four anchor links are dropped — on a single-scroll page the user
     reaches every section anyway, and they were what overflowed the bar. */
  nav a[href^="#"] { display: none; }
  .bar { gap: 10px; padding: 8px 0; }
  .bar img { height: 40px; }
  nav { gap: 8px; }

  /* 44px minimum on everything tappable (Google/Apple guidance). */
  .btn, nav a, #langBtn, #cartBtn { min-height: 44px; display: inline-flex;
    align-items: center; justify-content: center; }
  .contact .item a, footer.site a { display: inline-block; min-height: 44px;
    line-height: 44px; }
  .qty button { width: 44px; height: 44px; font-size: 20px; }

  .hero { padding: 26px 0 18px; }
  .hero h1 { font-size: 27px; }
  .honest { padding: 15px 16px; margin: 20px 0 4px; }
  h2.sec { font-size: 23px; margin: 32px 0 4px; }

  /* One product per row reads better on a phone than two cramped ones,
     and the photograph is what sells food. */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .proof .grid { grid-template-columns: 1fr; }
  .baskets { grid-template-columns: 1fr; }
  .card .ph { aspect-ratio: 16/10; }

  /* The cart drawer is full-screen on a phone — a 430px panel on a 360px
     screen left a useless sliver of background. */
  #cart { width: 100%; }
  #foot { padding-bottom: max(15px, env(safe-area-inset-bottom)); }

  /* Keep the FAB clear of the checkout button at the bottom of the drawer. */
  #waFab { bottom: 16px; inset-inline-end: 16px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .wrap { padding: 0 14px; }
  .price { font-size: 18px; }
}

/* ── WhatsApp floating button ─────────────────────────────────────────── */
#waFab {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); text-decoration: none;
  transition: transform .16s;
}
#waFab:hover { transform: scale(1.07); }
#waFab:focus-visible { outline: 3px solid var(--green-d); outline-offset: 3px; }
/* Sits below the cart drawer (z 60) so it can never cover the close button. */

/* ── contact block ────────────────────────────────────────────────────── */
.contact { background: var(--cream); border-block: 1px solid var(--line); padding: 32px 0; }
.contact h2 { margin: 0 0 14px; color: var(--green-d); font-size: 26px; }
.contact .grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact .item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.contact .item h3 { margin: 0 0 4px; font-size: 16px; color: var(--teal); }
.contact .item p, .contact .item a { margin: 0; font-size: 15.5px; color: #4a4740; text-decoration: none; }
.contact .item a:hover { text-decoration: underline; }
#socialRow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
#socialRow a {
  font-size: 14.5px; padding: 6px 13px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--green-d); text-decoration: none;
}
#socialRow a:hover { background: #fff; }
footer.site .fcontact { margin-top: 4px; font-size: 14.5px; line-height: 1.7; }
@media (max-width: 560px) { #waFab { width: 52px; height: 52px; inset-inline-end: 14px; bottom: 14px; } }
