/* FishCare storefront */

:root {
  /* Only the brand colours from the logo are used: navy #1d305e and aqua #9fdae3,
     with lighter and darker shades of them. Red is kept for errors alone. */
  --brand: #1d305e;
  --brand-600: #18284f;
  --brand-700: #131f40;
  --brand-50: #eaf6f9;
  --brand-100: #cfebf0;
  --aqua: #9fdae3;
  --aqua-600: #8accd7;
  --ink: #172038;
  --muted: #5d6a80;
  --line: #e0e7ee;
  --bg: #f4f7fa;
  --danger: #bf3327;
  --danger-50: #fbeceb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 31, 64, .06), 0 6px 16px rgba(19, 31, 64, .07);
  --ph-cut: var(--brand-50);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", "Hind Siliguri", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
main { flex: 1; width: 100%; padding-top: 14px; padding-bottom: 40px; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-xl { width: 40px; height: 40px; stroke-width: 1.4; }
.ph { fill: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border: 1.5px solid transparent; border-radius: 8px;
  background: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: var(--aqua); color: var(--brand-700); }
.btn-secondary:hover { background: var(--aqua-600); }
.btn-outline { border-color: var(--brand-100); color: var(--brand); }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-light { color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn:disabled { background: #eef2f3; border-color: transparent; color: #8b9a9f; cursor: not-allowed; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.icon-btn:hover { background: var(--danger-50); color: var(--danger); }

/* ---------- top bar, header, category nav ---------- */
.topbar { background: var(--brand-700); color: #d3e6ee; font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.topbar-phone { display: flex; align-items: center; gap: 6px; }
.topbar-phone .icon { width: 14px; height: 14px; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar a:hover, .topbar button:hover { color: #fff; }
.topbar button { border: 0; padding: 0; background: none; }
.lang { display: flex; overflow: hidden; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-weight: 600; line-height: 1.5; }
.lang a { padding: 0 9px; }
.lang a.active, .lang a.active:hover { background: #fff; color: var(--brand-700); }

.header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: block; flex: none; }
.logo img { width: auto; height: 44px; }
.search { flex: 1; display: flex; max-width: 520px; margin: 0 auto; }
.search input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--bg); }
.search input:focus { outline: 0; border-color: var(--brand); background: #fff; }
.search button { display: grid; place-items: center; width: 44px; border: 0; border-radius: 0 8px 8px 0; background: var(--brand); color: #fff; }
.search button:hover { background: var(--brand-600); }
.header-actions { display: flex; gap: 6px; }
.hbtn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.hbtn:hover { background: var(--brand-50); }
.cart-btn { background: var(--brand-50); color: var(--brand-700); }
.cart-btn:hover { background: var(--brand-100); }
.cart-count { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; }
.cart-count.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav .container { display: flex; flex-wrap: wrap; gap: 0 22px; }
.catnav .container::-webkit-scrollbar { display: none; }
.catnav a { padding: 8px 0 6px; border-bottom: 2px solid transparent; color: #33415c; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.catnav a:hover, .catnav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.catnav a.deal { color: var(--brand); font-weight: 700; }

/* ---------- messages ---------- */
.messages { display: grid; gap: 8px; margin-bottom: 14px; }
.alert { padding: 10px 14px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-weight: 500; }
.alert-success { background: var(--brand-100); }
.alert-error { background: var(--danger-50); color: var(--danger); }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); }

/* ---------- home ---------- */
/* The slider. Slides sit side by side in .hero-track; shop.js moves the track. */
.hero { position: relative; overflow: hidden; border-radius: 14px; background: var(--brand-700); color: #fff; touch-action: pan-y; }
.hero-track { display: flex; transition: transform .65s cubic-bezier(.22, 1, .36, 1); }
.slide {
  position: relative; overflow: hidden;
  display: flex; flex: none; align-items: center; justify-content: space-between; gap: 28px;
  width: 100%; min-height: 290px; padding: 30px 68px 46px;
  background: linear-gradient(115deg, var(--brand-700), var(--brand));
}
.slide:nth-child(3n + 2) { background: linear-gradient(115deg, #16264d, #2a5876); }
.slide:nth-child(3n) { background: linear-gradient(115deg, #101b38, #24427a); }
.hero-text { position: relative; z-index: 1; max-width: 540px; }
.hero h1, .hero h2 { font-size: 29px; line-height: 1.15; letter-spacing: -.02em; }
.hero p { margin-top: 8px; color: #cfe6ee; font-size: 15px; }
.slide-eyebrow { display: block; margin-bottom: 6px; color: var(--aqua); font-size: 13px; font-weight: 600; }
.slide-desc { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.slide-price { display: flex; align-items: baseline; gap: 5px; padding: 6px 13px; border-radius: 8px; background: rgba(8, 14, 32, .42); color: var(--aqua); font-size: 17px; font-weight: 700; line-height: 26px; }
.slide-price small { color: #cfe6ee; font-size: 12.5px; font-weight: 500; }
.slide-price s { color: #9fb3c9; font-size: 13px; font-weight: 400; }
.hero-art { position: absolute; right: 64px; top: 50%; width: 250px; max-width: none; transform: translateY(-50%); opacity: .16; }
.slide-art { display: grid; place-items: center; flex: none; width: 230px; height: 230px; margin-right: 24px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--aqua); transition: transform .3s; --ph-cut: #27396a; }
.slide-art .ph { width: 64%; }
.slide-art.has-photo { width: 300px; height: 225px; overflow: hidden; border: 4px solid rgba(255, 255, 255, .14); border-radius: 16px; background: none; box-shadow: 0 18px 40px rgba(8, 14, 32, .45); }
.slide-art img { width: 100%; height: 100%; object-fit: cover; }
.slide-art:hover { transform: scale(1.03); }
/* A banner slide is one picture from edge to edge; its link covers the whole slide.
   The shade at the bottom keeps the dots readable on a light picture. */
.slide.slide-banner { padding: 0; }
.slide-banner a, .slide-banner picture { position: absolute; inset: 0; display: block; }
.slide-banner img { width: 100%; height: 100%; object-fit: cover; }
.slide-banner::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 64px; background: linear-gradient(transparent, rgba(8, 14, 32, .45)); pointer-events: none; }
.hero-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: rgba(8, 14, 32, .4); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; transition: background .15s; }
.hero-arrow:hover { background: rgba(8, 14, 32, .65); }
.hero-arrow:focus-visible, .hero-dots button:focus-visible { outline-color: #fff; }
.hero-prev { left: 14px; }
.hero-prev .icon { transform: rotate(180deg); }
.hero-next { right: 14px; }
.hero-dots { position: absolute; right: 0; bottom: 10px; left: 0; z-index: 2; display: flex; justify-content: center; }
.hero-dots button { padding: 9px 3px; border: 0; background: none; }
.hero-dots span { display: block; width: 8px; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .32); transition: width .3s; }
.hero-dots [aria-current] span { width: 32px; }
.hero-dots i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--aqua); }
/* The dot of the slide on show fills up in six seconds; when it is full, shop.js moves on.
   Pointing at the slider, or reaching it with the keyboard, holds it still. */
.hero-dots [aria-current] i { animation: hero-progress 6s linear forwards; }
@keyframes hero-progress { to { width: 100%; } }
@media (hover: hover) { .hero:hover .hero-dots i { animation-play-state: paused; } }
.hero:has(:focus-visible) .hero-dots i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
  .hero-dots [aria-current] i { width: 100%; animation: none; }
}

.perks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.perks li { display: flex; align-items: center; gap: 10px; padding: 11px 16px; }
.perks li + li { border-left: 1px solid var(--line); }
.perks .icon { width: 22px; height: 22px; color: var(--brand); }
.perks strong { display: block; font-size: 13.5px; line-height: 1.3; }
.perks span { color: var(--muted); font-size: 12.5px; }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head h2 { font-size: 18px; letter-spacing: -.01em; }
.section-head a { display: flex; align-items: center; gap: 4px; color: var(--brand); font-size: 13px; font-weight: 600; }
.section-head a .icon { width: 14px; height: 14px; }
.section-head a:hover { text-decoration: underline; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.cat-art { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 6px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.cat-art svg { width: 36px; fill: currentColor; }
.cat strong { font-size: 13px; line-height: 1.3; }
.cat-alt { color: var(--muted); font-size: 12px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.pcard-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--brand-50); color: var(--aqua); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .ph { width: 58%; }
.is-out .pcard-media { filter: grayscale(1); opacity: .7; }
.badge { position: absolute; top: 8px; left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; }
.badge-muted { background: #5d6a80; }
.pcard-body { display: flex; flex: 1; flex-direction: column; padding: 9px 10px 10px; }
.pcard-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pcard-name:hover { color: var(--brand); }
.pcard-alt { color: var(--muted); font-size: 12.5px; }
.price { margin-top: 4px; color: var(--brand-700); font-size: 16px; font-weight: 700; }
.price small { color: var(--muted); font-size: 12px; font-weight: 500; }
.price s { margin-left: 2px; color: #8d9da3; font-size: 12.5px; font-weight: 400; }
.pcard-action { margin-top: auto; padding-top: 8px; }
.price-range { font-size: 14.5px; }
.pcard .btn .icon { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- listing ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; letter-spacing: -.01em; }
.page-head h1 small { margin-left: 6px; color: var(--muted); font-size: 15px; font-weight: 500; }
.crumbs { margin-bottom: 2px; color: var(--muted); font-size: 12.5px; }
.crumbs a:hover { color: var(--brand); }
.crumbs-top { margin-bottom: 12px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sort-count { margin-right: 6px; }
.sort select { height: 34px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; border: 1px dashed #cdd9dc; border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }
.empty h2 { color: var(--ink); font-size: 18px; }
.empty .btn { margin-top: 10px; }
.empty .icon { color: var(--brand); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pdp-media { position: relative; display: grid; place-items: center; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--brand-50); color: var(--aqua); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .ph { width: 56%; }
.pdp-media .badge { top: 12px; left: 12px; padding: 2px 9px; font-size: 13px; }
.pdp-info h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
.pdp-alt { color: var(--muted); font-size: 15px; }
.price-lg { margin-top: 10px; font-size: 26px; }
.price-lg small { font-size: 14px; }
.price-lg s { font-size: 15px; }
.stock { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 600; }
.stock .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.stock-in { color: var(--brand); }
.stock-out { color: var(--danger); }
.pdp-form { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chips span:hover { border-color: var(--brand-100); }
.chips span b { margin-left: 4px; color: var(--brand-700); font-weight: 700; }
.chips input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pdp-buy { display: flex; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 38px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.qty button { display: grid; place-items: center; width: 34px; height: 100%; border: 0; background: none; color: var(--brand); }
.qty button:hover { background: var(--brand-50); }
.qty button .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.qty input, .qty output { width: 40px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 0; }
.qty-unit { color: var(--muted); }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-notes { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--bg); color: #3c4a63; font-size: 13px; }
.pdp-notes li { display: flex; align-items: flex-start; gap: 8px; }
.pdp-notes .icon { margin-top: 1px; color: var(--brand); }
.pdp-desc { margin-top: 18px; }
.pdp-desc h2 { margin-bottom: 4px; font-size: 15px; }
.pdp-desc p { color: #3c4a63; }
.pdp-desc p + p { margin-top: 8px; }

/* ---------- cart, checkout, orders ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.panel { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel h2 { margin-bottom: 10px; font-size: 16px; }
.panel h2:not(:first-child) { margin-top: 20px; }

.cart-lines { padding-top: 4px; padding-bottom: 4px; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 84px 32px; align-items: center; gap: 12px; padding: 12px 0; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-thumb { display: grid; place-items: center; width: 64px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--brand-50); color: var(--aqua); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { width: 60%; }
.cart-name a { display: block; font-weight: 600; line-height: 1.3; }
.cart-name a:hover { color: var(--brand); }
.cart-name span { color: var(--muted); font-size: 12.5px; }
.cart-line .qty { height: 34px; }
.cart-total { text-align: right; }

.summary { position: sticky; top: 76px; }
.summary dl > div, .totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary dt, .totals dt { color: var(--muted); }
.summary dl, .totals { margin-bottom: 14px; }
.totals { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.summary-total { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.summary-total dt { color: var(--ink) !important; }
.summary-link { display: block; margin-top: 10px; color: var(--brand); font-size: 13px; font-weight: 600; text-align: center; }
.summary-link:hover { text-decoration: underline; }
.summary p + p { margin-top: 8px; }
.summary .keep { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.summary-items { display: grid; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; }
.summary-items li > span:last-child { font-weight: 600; white-space: nowrap; }
.summary-items em { padding: 0 6px; border-radius: 4px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-style: normal; white-space: nowrap; }
.summary-items small { display: block; color: var(--muted); font-size: 12.5px; }
.summary-items-lg { margin: 0; padding: 0; border: 0; font-size: 14.5px; }

/* forms */
.form { display: grid; gap: 14px; }
.form h1 { font-size: 21px; }
.form h1 + p { margin-top: -10px; }
.form h2 { margin: 0 !important; }
.form .btn { margin-top: 2px; }
.form-foot { color: var(--muted); font-size: 13.5px; text-align: center; }
.form-foot a { color: var(--brand); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field > label, .field > legend { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.field input:not([type=radio]), .field textarea, .field select { display: block; width: 100%; padding: 8px 11px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.field input:not([type=radio]) { height: 40px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.field ::placeholder { color: #9aa9ae; }
.field.has-error input:not([type=radio]), .field.has-error textarea { border-color: var(--danger); }
.help { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.error { margin-top: 4px; color: var(--danger); font-size: 12.5px; font-weight: 500; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.zone { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 500; cursor: pointer; }
.zone:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.zone input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.zone span { flex: 1; }
.zone strong, .zone .icon { color: var(--brand-700); }
.zone.is-fixed { border-color: var(--brand); background: var(--brand-50); cursor: default; }
.zone.is-fixed small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.narrow { max-width: 420px; margin: 20px auto 0; }

/* order status */
.status { padding: 3px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status-delivered { background: var(--brand); color: #fff; }
.status-cancelled { background: var(--danger-50); color: var(--danger); }
.steps { display: flex; margin-bottom: 16px; padding: 16px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; text-align: center; }
.steps li::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; background: #fff; color: #fff; }
.steps .icon { width: 14px; height: 14px; stroke-width: 3; }
.steps .is-done { color: var(--ink); }
.steps .is-done::before { background: var(--brand); }
.steps .is-done i { border-color: var(--brand); background: var(--brand); }
.steps .is-current { font-weight: 700; }
.steps .is-current i { box-shadow: 0 0 0 4px var(--brand-50); }
.order-list { padding: 4px 18px; }
.order-row { display: grid; grid-template-columns: 90px 1fr auto 90px; align-items: center; gap: 12px; padding: 12px 0; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row:hover strong:first-child { color: var(--brand); }
.order-total { text-align: right; }

/* ---------- offer popup ---------- */
.popup { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden auto; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(19, 31, 64, .35); }
.popup:focus { outline: 0; }
.popup::backdrop { background: rgba(19, 31, 64, .55); backdrop-filter: blur(3px); }
.popup[open] { animation: popup-in .25s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.popup img { width: 100%; height: auto; }
.popup-close { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.popup-close:hover { background: var(--brand-50); }
.popup-actions { display: flex; gap: 8px; padding: 14px; }
.popup-actions > * { flex: 1; }
.popup-actions .btn { width: 100%; height: 42px; }
@media (prefers-reduced-motion: reduce) { .popup[open] { animation: none; } }

/* ---------- footer ---------- */
.footer { margin-top: auto; background: var(--brand-700); color: #c6d5e6; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.5fr .8fr 1.2fr; gap: 28px; padding-top: 28px; padding-bottom: 24px; }
.footer h3 { margin-bottom: 8px; color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.footer li { padding: 2.5px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { columns: 2; column-gap: 20px; }
.footer-about { max-width: 30em; margin-top: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--aqua); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .pdp-media { max-width: 520px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { width: 210px; right: 48px; }
  .slide-art { width: 180px; height: 180px; margin-right: 0; }
  .slide-art.has-photo { width: 240px; height: 180px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .catnav .container { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .header .container { flex-wrap: wrap; gap: 8px 10px; height: auto; padding-top: 9px; padding-bottom: 9px; }
  .logo img { height: 34px; }
  .header-actions { margin-left: auto; }
  .hbtn { padding: 0 9px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .slide { min-height: 0; padding: 22px 18px 42px; }
  .hero h1, .hero h2 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .hero-art { width: 170px; right: -40px; opacity: .1; }
  /* No room beside the text: the drawing goes, a photo becomes a dim backdrop. Swiping replaces the arrows. */
  .slide-art { display: none; }
  .slide-art.has-photo { position: absolute; inset: 0; display: block; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; opacity: .2; }
  .hero-arrow { display: none; }
  .perks { grid-template-columns: 1fr; }
  .perks li { padding: 9px 14px; }
  .perks li + li { border-left: 0; border-top: 1px solid var(--line); }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat { padding: 10px 4px 8px; }
  .cat-art { width: 46px; height: 46px; }
  .cat-art svg { width: 28px; }
  .cat strong { font-size: 12px; }
  .cat-alt { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) 32px; row-gap: 8px; }
  .cart-thumb { width: 56px; }
  .cart-line .qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .cart-total { grid-column: 3; grid-row: 2; justify-self: end; white-space: nowrap; }
  .cart-line > form:last-child { grid-column: 3; grid-row: 1; }
  .steps { padding-left: 2px; padding-right: 2px; }
  .steps li { font-size: 11px; }
  .order-row { grid-template-columns: 1fr auto; row-gap: 2px; }
  .order-row .muted { grid-row: 2; }
  .order-row .order-total { grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .pdp-actions .btn { flex: 1; }
}

/* ---------- Bangla pages: the script needs a little more size and line height ---------- */
html:lang(bn) body { font-size: 15px; line-height: 1.6; }
html:lang(bn) .hero h1, html:lang(bn) .hero h2 { line-height: 1.3; }
html:lang(en) .slide-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html:lang(bn) .pcard-name, html:lang(bn) .cat strong { line-height: 1.45; }
html:lang(bn) .topbar { font-size: 13px; }
