/* Tyqen storefront — design tokens & components.
   [hidden] always wins over component display rules. */
[hidden] { display: none !important; }
:root {
  --paddy: #0E6B4F;
  --paddy-deep: #0A4F3B;
  --paddy-tint: #E3F1EB;
  --marigold: #F2A516;
  --marigold-deep: #B87A00;
  --marigold-tint: #FDF1D8;
  --chili: #C8352E;
  --chili-tint: #FBE9E7;
  --ink: #17241F;
  --ink-2: #33433C;
  --muted: #5B6B64;
  --line: #DCE3DF;
  --line-2: #EBF0ED;
  --paper: #F5F7F4;
  --surface: #FFFFFF;
  --focus: #1F6FEB;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-pop: 0 10px 30px rgba(15, 40, 30, .14);
  --font: "Hind Siliguri", "Noto Sans Bengali", "Kohinoor Bangla", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html[lang="bn"] body { line-height: 1.65; }
img { max-width: 100%; display: block; }
svg { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
a { color: var(--paddy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--paddy-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
@view-transition { navigation: auto; }

/* ---------------------------------------------------------------- top progress (navigation feedback) */
#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
#progress::before { content: ""; display: block; height: 100%; width: 0; background: var(--marigold); transition: width 8s cubic-bezier(.1,.7,.2,1); }
#progress.on::before { width: 85%; }

/* ---------------------------------------------------------------- header */
.strip { background: var(--paddy-deep); color: #DDEDE6; font-size: .85rem; }
.strip .wrap { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.strip a, .strip button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.strip a:hover, .strip button:hover { color: #fff; }
.strip .loc { display: inline-flex; align-items: center; gap: 6px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .loc strong { color: #fff; font-weight: 600; }
.strip .spacer { flex: 1; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 2px 10px; font-weight: 600; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--paddy-deep); }

.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--paddy); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.logo img { max-height: 40px; width: auto; }
.logo .bn { font-size: 1.05rem; color: var(--marigold-deep); font-weight: 700; }
.search { flex: 1; position: relative; max-width: 680px; }
.search form { display: flex; border: 2px solid var(--paddy); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.search input { flex: 1; border: 0; padding: 10px 14px; min-width: 0; background: transparent; font-size: 1rem; }
.search input:focus { outline: none; }
.search form:focus-within { box-shadow: 0 0 0 3px rgba(14,107,79,.2); }
.search button { border: 0; background: var(--paddy); color: #fff; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.search button:hover { background: var(--paddy-deep); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-pop); z-index: 60; overflow: hidden; }
.suggest h4 { font-size: .75rem; color: var(--muted); margin: 10px 14px 4px; font-weight: 600; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--paddy-tint); }
.suggest img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--line-2); }
.suggest .price { margin-left: auto; font-weight: 600; }
.suggest .empty { padding: 12px 14px; color: var(--muted); font-size: .9rem; }
.head-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-size: .75rem; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--paddy-tint); color: var(--paddy-deep); }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--marigold); color: var(--ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.badge:empty, .badge[data-n="0"] { display: none; }

.cat-rail { background: var(--surface); border-bottom: 1px solid var(--line); }
.cat-rail ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: var(--wrap); }
.cat-rail ul::-webkit-scrollbar { display: none; }
.cat-rail a { display: block; padding: 10px 12px; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-size: .92rem; border-bottom: 2px solid transparent; }
.cat-rail a:hover, .cat-rail a[aria-current="page"] { color: var(--paddy); border-bottom-color: var(--paddy); }

/* ---------------------------------------------------------------- bottom nav (mobile) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .strip .hide-sm, .head-icons .hide-sm { display: none; }
  .header .wrap { flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .header .search { order: 3; flex-basis: 100%; max-width: none; }
  .header .head-icons { margin-left: auto; }
  .search button span { display: none; }
  .logo { font-size: 1.4rem; }
  body { padding-bottom: 68px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 70; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: .72rem; color: var(--muted); text-decoration: none; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--paddy); font-weight: 600; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .badge { right: calc(50% - 22px); }
}

/* ---------------------------------------------------------------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: var(--radius-s); border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--paddy); color: #fff; }
.btn-primary:hover { background: var(--paddy-deep); color: #fff; }
.btn-accent { background: var(--marigold); color: var(--ink); }
.btn-accent:hover { background: #E09700; color: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--paddy); color: var(--paddy-deep); }
.btn-danger { background: var(--surface); border-color: #E9B8B4; color: var(--chili); }
.btn-danger:hover { background: var(--chili-tint); }
.btn-link { background: none; border: 0; color: var(--paddy); padding: 0; min-height: 0; text-decoration: underline; cursor: pointer; font-weight: 500; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; min-height: 52px; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .875rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .err { font-size: .85rem; color: var(--chili); }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border: 1px solid #C6D0CB; border-radius: var(--radius-s); background: var(--surface); min-height: 44px; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--paddy); box-shadow: 0 0 0 3px rgba(14,107,79,.18); }
.input[aria-invalid="true"] { border-color: var(--chili); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--paddy); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.req { color: var(--chili); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }

/* ---------------------------------------------------------------- alerts / flash */
.alert { padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-info { background: var(--paddy-tint); border-color: #B8DCCB; color: var(--paddy-deep); }
.alert-ok { background: var(--paddy-tint); border-color: #9FD0B9; color: var(--paddy-deep); }
.alert-warn { background: var(--marigold-tint); border-color: #F2D18C; color: #6B4800; }
.alert-error { background: var(--chili-tint); border-color: #EFC2BD; color: #8E211B; }
.alert ul { margin: 0; padding-left: 18px; }
.toast-host { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow-pop); animation: toast-in .2s ease-out; }
.toast.err { background: var(--chili); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 761px) { .toast-host { bottom: 24px; } }

/* ---------------------------------------------------------------- page layout */
main { min-height: 50vh; }
.page { padding: 20px 0 48px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 12px; display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A9B6B0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--paddy); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.15rem; }

/* section headings with a short marigold underline */
.sec { margin: 32px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec h2 { margin: 0; padding-bottom: 7px; background-image: linear-gradient(var(--marigold), var(--marigold)); background-size: 32px 3px; background-repeat: no-repeat; background-position: left bottom; }
.sec a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 18px; }
.hero-main { position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 300px; color: #fff; display: flex; }
.hero-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: 100%; }
.hero-slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: flex; align-items: flex-end; padding: 32px; min-height: 300px; text-decoration: none; color: #fff; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .copy { position: relative; max-width: 30ch; }
.slide h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); line-height: 1.12; margin-bottom: 8px; }
.slide p { opacity: .92; margin-bottom: 14px; }
.slide.has-img .copy { background: rgba(10, 30, 22, .55); padding: 16px 18px; border-radius: var(--radius-m); }
.hero-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 6px; }
.hero-side { display: grid; gap: 14px; }
.promo { border-radius: var(--radius-l); padding: 22px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 143px; position: relative; overflow: hidden; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .copy { position: relative; }
.promo h3 { margin: 0 0 4px; font-size: 1.15rem; }
.promo p { margin: 0; font-size: .9rem; opacity: .9; }
.promo:hover, .slide:hover { color: #fff; }
.hero-welcome { border-radius: var(--radius-l); background: var(--paddy); color: #fff; padding: 36px; position: relative; overflow: hidden; }
.hero-welcome h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); max-width: 20ch; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .slide, .hero-main { min-height: 220px; }
  .slide { padding: 20px; }
  .promo { min-height: 110px; padding: 16px; }
}

/* ---------------------------------------------------------------- category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--ink); text-align: center; font-size: .9rem; font-weight: 500; }
.cat-tile:hover { border-color: var(--paddy); color: var(--paddy-deep); }
.cat-tile .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--paddy-tint); display: grid; place-items: center; color: var(--paddy); overflow: hidden; }
.cat-tile .ico svg { width: 26px; height: 26px; }
.cat-tile .ico img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .cat-tile { padding: 10px 2px; font-size: .78rem; border: 0; background: none; } .cat-tile .ico { width: 48px; height: 48px; } }

/* ---------------------------------------------------------------- product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .row-scroll { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .row-scroll { grid-auto-columns: 44%; gap: 8px; }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card:hover { border-color: #B9C8C1; }
.card .media { position: relative; aspect-ratio: 1; background: var(--line-2); display: block; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .off { position: absolute; top: 8px; left: 8px; background: var(--marigold); color: var(--ink); font-weight: 700; font-size: .75rem; padding: 3px 8px; border-radius: 999px; }
.card .soldout { position: absolute; inset: auto 0 0 0; background: rgba(23,36,31,.78); color: #fff; text-align: center; font-size: .8rem; padding: 4px; font-weight: 600; }
.card .heart { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.card .heart svg { width: 20px; height: 20px; }
.card .heart[aria-pressed="true"] { color: var(--chili); }
.card .heart[aria-pressed="true"] svg path { fill: currentColor; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .name:hover { color: var(--paddy); }
.card .brand { font-size: .78rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.price .was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.stars .s { color: var(--marigold); letter-spacing: 1px; font-size: .9rem; }
.stock-low { color: var(--chili); font-size: .8rem; font-weight: 600; }
.stock-out { color: var(--muted); font-size: .8rem; }
.card .foot { margin-top: auto; padding-top: 6px; }
.card .add { width: 100%; }

/* ---------------------------------------------------------------- listing */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - 100px); overflow: auto; }
.filters h3 { font-size: .95rem; margin: 16px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters .opt { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: .92rem; }
.filters .opt input { accent-color: var(--paddy); width: 18px; height: 18px; }
.filters .price-in { display: flex; gap: 8px; align-items: center; }
.filters .price-in .input { min-height: 38px; padding: 6px 8px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.list-head .select { width: auto; min-height: 40px; }
.filter-toggle { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--paddy); }
.chip.on { background: var(--paddy-tint); border-color: #9FD0B9; color: var(--paddy-deep); }
@media (max-width: 860px) {
  .listing { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 90; border-radius: 0; max-height: none; top: 0; padding-bottom: 90px; }
  .filters.open { display: block; }
  .filters .close-filters { display: flex; }
  .filter-toggle { display: inline-flex; }
}
.close-filters { display: none; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters .apply-bar { position: sticky; bottom: -16px; background: var(--surface); padding: 12px 0 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.pager a, .pager span { padding: 8px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager span[aria-current] { background: var(--paddy); color: #fff; border-color: var(--paddy); }

.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.empty h2 { margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery .main { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { flex: none; width: 68px; height: 68px; border-radius: var(--radius-s); overflow: hidden; border: 2px solid var(--line); padding: 0; background: var(--surface); cursor: pointer; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--paddy); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { margin-bottom: 6px; }
.buy .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.buy .price .now { font-size: 1.8rem; }
.buy .price .was { font-size: 1rem; }
.buy .off-pill { background: var(--marigold-tint); color: #6B4800; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.opts { margin: 18px 0; }
.opts .group { margin-bottom: 14px; }
.opts .label { display: block; margin-bottom: 8px; }
.opts .vals { display: flex; gap: 8px; flex-wrap: wrap; }
.opts .vals label { position: relative; }
.opts .vals input { position: absolute; opacity: 0; inset: 0; }
.opts .vals span { display: inline-block; padding: 8px 14px; border: 1px solid #C6D0CB; border-radius: var(--radius-s); cursor: pointer; background: var(--surface); min-width: 44px; text-align: center; }
.opts .vals input:checked + span { border-color: var(--paddy); background: var(--paddy-tint); color: var(--paddy-deep); font-weight: 600; box-shadow: inset 0 0 0 1px var(--paddy); }
.opts .vals input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.opts .vals input:disabled + span { color: #A9B6B0; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; border: 1px solid #C6D0CB; border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.qty button { width: 44px; border: 0; background: var(--paper); cursor: pointer; font-size: 1.2rem; }
.qty button:hover { background: var(--paddy-tint); }
.qty input { width: 56px; border: 0; text-align: center; -moz-appearance: textfield; min-height: 44px; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.buy-actions .btn { flex: 1; min-width: 150px; }
.deliv { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; background: var(--surface); font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.deliv svg { width: 24px; height: 24px; color: var(--paddy); flex: none; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 500; }
.desc { max-width: 72ch; }
.review { border-top: 1px solid var(--line-2); padding: 14px 0; }
.review:first-child { border-top: 0; }
.review .who { font-weight: 600; }
.verified { color: var(--paddy); font-size: .8rem; font-weight: 600; }
.bars { display: grid; gap: 4px; max-width: 320px; }
.bars .bar { display: grid; grid-template-columns: 26px 1fr 34px; gap: 8px; align-items: center; font-size: .82rem; }
.bars .track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--marigold); }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-input input { position: absolute; opacity: 0; width: 1px; }
.rate-input label { font-size: 1.8rem; color: #CFD8D4; cursor: pointer; line-height: 1; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--marigold); }
.rate-input input:focus-visible + label { outline: 3px solid var(--focus); }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  .sticky-buy { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 60px; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); z-index: 60; }
  .sticky-buy .btn { flex: 1; }
}

/* ---------------------------------------------------------------- cart & checkout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.sum-row .disc { color: var(--paddy); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-s); background: var(--line-2); }
.line .t { font-weight: 600; color: var(--ink); text-decoration: none; }
.line .v { font-size: .85rem; color: var(--muted); }
.line .acts { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.line .lt { font-weight: 700; text-align: right; white-space: nowrap; }
.line.bad { opacity: .75; }
@media (max-width: 560px) { .line { grid-template-columns: 64px 1fr; } .line img { width: 64px; height: 64px; } .line .lt { grid-column: 2; text-align: left; } }
.mini-line { display: flex; gap: 10px; padding: 8px 0; font-size: .9rem; }
.mini-line img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--line-2); flex: none; }
.mini-line .q { color: var(--muted); }
.mini-line .lt { margin-left: auto; font-weight: 600; white-space: nowrap; }
.coupon-form { display: flex; gap: 8px; margin: 12px 0; }
.coupon-form .input { text-transform: uppercase; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; cursor: pointer; background: var(--surface); margin-bottom: 10px; }
.pay-opt:hover { border-color: #9FD0B9; }
.pay-opt input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--paddy); flex: none; }
.pay-opt:has(input:checked) { border-color: var(--paddy); box-shadow: inset 0 0 0 1px var(--paddy); background: #FBFEFC; }
.pay-opt .pname { font-weight: 700; }
.pay-opt .logo-chip { margin-left: auto; font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.pay-detail { margin: -4px 0 12px; padding: 16px; border-radius: var(--radius-m); background: var(--marigold-tint); border: 1px solid #F2D18C; }
.send-to { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius-s); padding: 12px 14px; margin: 10px 0; border: 2px solid var(--marigold); }
.send-to .n { font-size: 1.4rem; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.steps { margin: 8px 0 12px; padding-left: 22px; }
.steps li { margin-bottom: 4px; }
.addr-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: var(--surface); }
.addr-card:has(input:checked) { border-color: var(--paddy); box-shadow: inset 0 0 0 1px var(--paddy); }
.addr-card input { width: 20px; height: 20px; accent-color: var(--paddy); margin-top: 3px; flex: none; }
.loc-btn { display: inline-flex; align-items: center; gap: 8px; }
.loc-btn svg { width: 18px; height: 18px; }
.loc-status { font-size: .88rem; margin: 6px 0 12px; }

/* ---------------------------------------------------------------- orders & timeline */
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.st-ok { background: var(--paddy-tint); color: var(--paddy-deep); }
.st-warn { background: var(--marigold-tint); color: #6B4800; }
.st-bad { background: var(--chili-tint); color: #8E211B; }
.st-info { background: #E6EEF9; color: #23477A; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--paddy); }
.timeline li:last-child::before { background: var(--paddy); }
.timeline .when { font-size: .82rem; color: var(--muted); }
.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0 4px; }
.progress-steps div { height: 6px; border-radius: 3px; background: var(--line); }
.progress-steps div.on { background: var(--paddy); }
.progress-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: .75rem; color: var(--muted); }
.order-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 600; background: #FAFBFA; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }

/* ---------------------------------------------------------------- account */
.acct { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.acct-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px; }
.acct-nav a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.acct-nav a:hover { background: var(--paper); }
.acct-nav a[aria-current="page"] { background: var(--paddy-tint); color: var(--paddy-deep); font-weight: 600; }
@media (max-width: 760px) {
  .acct { grid-template-columns: 1fr; }
  .acct-nav { display: flex; overflow-x: auto; gap: 4px; }
  .acct-nav a { white-space: nowrap; }
}
.notif { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; }
.notif.unread .t { font-weight: 700; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); margin-top: 8px; flex: none; }
.notif:not(.unread) .dot { background: transparent; }
.msg { padding: 12px 14px; border-radius: var(--radius-m); margin-bottom: 10px; max-width: 80%; }
.msg.me { background: var(--paddy-tint); margin-left: auto; }
.msg.staff { background: var(--surface); border: 1px solid var(--line); }
.msg .who { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }

/* ---------------------------------------------------------------- auth */
.auth { max-width: 440px; margin: 24px auto; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 1.5rem; }

/* ---------------------------------------------------------------- content pages */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1em; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--paddy); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- modal (location) */
dialog { border: 0; border-radius: var(--radius-l); padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: var(--shadow-pop); }
dialog::backdrop { background: rgba(10, 25, 18, .5); }
dialog .dlg-body { padding: 22px; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: #C9D5D0; margin-top: 48px; padding: 36px 0 24px; font-size: .92rem; }
.footer a { color: #E7EFEB; text-decoration: none; }
.footer a:hover { color: var(--marigold); }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .pays { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.footer .pays span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 3px 9px; font-size: .8rem; color: #fff; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- print */
@media print {
  .strip, .header, .cat-rail, .footer, .bottom-nav, .no-print, .sticky-buy { display: none !important; }
  body { background: #fff; padding: 0; }
  .panel { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* payment logos & bank details */
.pay-opt { align-items: center; }
.paylogo { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--ink); }
.paylogo img { width: 32px; height: 32px; object-fit: contain; display: block; }
.paylogo svg { width: 24px; height: 24px; }
.paylogo.ic-cod { background: var(--paddy-tint); color: var(--paddy-deep); border-color: transparent; }
.paylogo.ic-bank { background: #E8EEF8; color: #1F3B6E; border-color: transparent; }
.paylogo.ic-rocket { background: #F1E6F7; color: #7A2C8F; border-color: transparent; }
.paylogo.ic-card { background: var(--paper); color: var(--muted); border-color: transparent; }
.bankbox { border: 1px solid var(--marigold); background: var(--marigold-tint); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; margin: 10px 0; }
.bk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'l b' 'v b'; column-gap: 10px; align-items: center; padding: 5px 0; }
.bk-row > :nth-child(1) { grid-area: l; } .bk-row > :nth-child(2) { grid-area: v; } .bk-row > :nth-child(3) { grid-area: b; }
.bankbox .bk-row + .bk-row { border-top: 1px solid rgba(23,36,31,.08); }
.bk-v { font-size: 1.05rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ================================================================ App look (matches the Tyqen app)
   White top bar, EN/বাংলা switch, bell, chips, hero carousel with search, 2-up cards, 4-tab bottom bar. */
.strip, .header, .cat-rail { display: none; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.top .logo img { height: 34px; width: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.seg a { padding: 4px 11px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.5; }
.seg a[aria-current="true"] { background: var(--paddy); color: #fff; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); flex: none; }
.bell:hover { background: var(--paddy-tint); color: var(--paddy-deep); }
.bell svg { width: 23px; height: 23px; }
.badge:empty { display: none; }
.bell .badge, .top-cart .badge, .bottom-nav .badge { position: absolute; top: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--marigold); color: #17241F; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.bell .badge { right: 0; }
.top-links { display: flex; align-items: center; gap: 2px; }
.top-links a { padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.top-links a:hover { background: var(--paddy-tint); color: var(--paddy-deep); }
.top-links a[aria-current="page"] { color: var(--paddy); }
.top-cart .badge { right: -2px; top: -2px; }
.subbar { display: grid; gap: 10px; padding-top: 14px; }
.search { flex: none; max-width: none; display: block; }
.search form { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; background: #fff; color: #17241F; font-size: 1rem; }
.search button { border: 0; background: var(--marigold); color: #17241F; font-weight: 800; padding: 0 18px; cursor: pointer; }
.search button:hover { background: #E59A0C; }
.search form:focus-within { box-shadow: 0 0 0 3px var(--paddy-tint); border-color: var(--paddy); }
.search.in-hero form { border: 0; }
.search.in-hero form:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; font-size: .9rem; white-space: nowrap; }
.chip[aria-current="page"], .chip.on { background: var(--paddy-tint); border-color: var(--paddy); color: var(--paddy-deep); font-weight: 700; }
.loc-line { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font-size: .88rem; cursor: pointer; justify-self: start; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.loc-line strong { color: var(--paddy); }
.stack-app { display: grid; gap: 14px; padding-top: 16px; padding-bottom: 24px; }
.stack-app > section > .sec:first-child { margin-top: 6px; }
.stack-app .sec { margin: 10px 0 12px; }
.sec h2 { font-size: 1.15rem; }

/* hero carousel */
.heroc { position: relative; border-radius: 18px; padding: 14px 14px 16px; overflow: hidden; transition: background-color .7s ease; color: #fff; }
.heroc .slides { position: relative; height: 178px; }
.hslide { position: absolute; inset: 0; display: grid; align-items: center; gap: 10px; padding: 8px 8px 4px; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease, visibility 0s .6s; }
.hslide.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hslide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease; }
.hslide .st { display: grid; gap: 6px; justify-items: start; min-width: 0; color: var(--fg); }
.hslide .st > * { transform: translateY(12px); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.hslide.on .st > * { transform: none; opacity: 1; }
.hslide.on .st > *:nth-child(2) { transition-delay: .12s; } .hslide.on .st > *:nth-child(3) { transition-delay: .22s; } .hslide.on .st > *:nth-child(4) { transition-delay: .32s; }
.hslide h2 { font-size: clamp(1.15rem, 1rem + 1.2vw, 1.6rem); line-height: 1.15; margin: 0; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; background: none; padding: 0; }
.hslide h2.big { font-size: clamp(1.45rem, 1.1rem + 2vw, 2.1rem); max-width: 22ch; }
.hslide p { margin: 0; font-size: .9rem; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hslide .kick { font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.hslide .sp { display: flex; gap: 8px; align-items: baseline; } .hslide .sp b { font-size: 1.35rem; } .hslide .sp s { opacity: .75; font-size: .85rem; }
.hbtn { border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .85rem; cursor: pointer; text-decoration: none; }
.hslide .simg { height: 160px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.14); display: block; transform: scale(.9) rotate(-3deg); opacity: 0; transition: transform .7s ease .1s, opacity .7s ease .1s; }
.hslide.on .simg { transform: none; opacity: 1; }
.hslide .simg img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.heroc .dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; position: relative; z-index: 1; }
.heroc .dots button { background: none; border: 0; padding: 6px 2px; cursor: pointer; }
.heroc .dots i { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .3s ease, background .3s ease; }
.heroc .dots button[aria-current="true"] i { width: 22px; background: #fff; }
@media (min-width: 761px) { .heroc .slides { height: 230px; } .hslide .simg { height: 210px; } }
@media (prefers-reduced-motion: reduce) { .hslide, .hslide .st > *, .heroc, .heroc .dots i, .hslide .simg { transition: none !important; } }

/* product cards (app style) */
.grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
a.card { border-radius: 14px; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--paddy); color: var(--ink); }
.card .art { position: relative; aspect-ratio: 1; display: block; background: var(--line-2); }
.card .art img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card .off { font-size: .72rem; font-weight: 800; padding: 2px 8px; color: #17241F; }
.card .sold { position: absolute; inset: auto 0 0 0; background: rgba(23,36,31,.8); color: #fff; font-size: .78rem; text-align: center; padding: 3px; font-weight: 700; }
.card .body { padding: 9px 11px 12px; display: grid; gap: 3px; }
.card .name { font-size: .92rem; line-height: 1.3; min-height: 2.6em; color: var(--ink); }
.card .price { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; }
.card .price b { font-size: 1.05rem; }
.card .price s { color: var(--muted); font-size: .82rem; }
.card .low { color: var(--chili); font-size: .78rem; font-weight: 700; }

/* footer (app style) */
.foot { margin-top: 32px; padding: 18px 0 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.foot .wrap { display: grid; gap: 10px; justify-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.foot-links a { color: var(--paddy); font-weight: 600; font-size: .9rem; }
.foot-pay { display: flex; gap: 8px; }
.foot p { margin: 0; }
.paylogo { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center; overflow: hidden; color: #17241F; }
.paylogo img { width: 32px; height: 32px; object-fit: contain; }
.paylogo svg { width: 22px; height: 22px; }
.paylogo.ic-cod { background: var(--paddy-tint); color: var(--paddy-deep); border-color: transparent; }
.paylogo.ic-bank { background: #E8EEF8; color: #1F3B6E; border-color: transparent; }

/* bottom tabs: 4 like the app */
@media (max-width: 900px) {
  .top-links { display: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 70; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font-size: .75rem; color: var(--muted); text-decoration: none; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--paddy); font-weight: 700; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .badge { left: calc(50% + 6px); top: 3px; right: auto; }
}
@media (max-width: 380px) { .top .wrap { gap: 6px; } .seg a { padding: 4px 8px; } }

/* public delivery charge list */
.charges td.fee { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.charges h2 { font-size: 1rem; margin: 16px 0 6px; }
.wrap.page { padding: 18px 16px 40px; }
.subbar + main .wrap.page { padding-top: 14px; }

/* live search suggestions (same as the app) */
.sugg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 8px 24px rgba(23,36,31,.08); }
.home .sugg { margin-top: -4px; }
.subbar .search { position: relative; }
.subbar .sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; }
.sg { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-radius: 10px; padding: 6px; color: var(--ink); text-decoration: none; }
.sg:hover, .sg[aria-selected="true"] { background: var(--paddy-tint); color: var(--ink); }
.sg .mini { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; }
.sg .mini img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sg .mini.ico { color: var(--paddy); font-weight: 800; background: var(--paddy-tint); }
.sgn { display: grid; min-width: 0; line-height: 1.3; }
.sgn > span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sgn small { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgn mark { background: var(--marigold-tint); color: inherit; font-weight: 700; border-radius: 3px; }
.sgall { display: block; text-align: center; border-top: 1px solid var(--line-2); color: var(--paddy); font-weight: 700; padding: 10px; text-decoration: none; }
.sgnone { margin: 6px 8px; color: var(--muted); font-size: .9rem; }
