/* ==========================================================================
   FFHCHINA — main stylesheet (mobile first, no build step needed)
   1. Design tokens   2. Base   3. Layout   4. Header & search
   5. Buttons         6. Home sections      7. Product card
   8. Footer & bottom nav                    9. Utilities
   ========================================================================== */

/* 1. Design tokens — change brand colours here ------------------------------
   Colours from the FFH CHINA logo: Bangladesh green + China red, yellow stars,
   on a warm cream background. ("--blue" is the main brand colour — the name is
   older than the colours; it is now the logo's green.) */
:root {
    --blue: #026B40;          /* brand green: buttons, links, active menu */
    --blue-dark: #03522F;
    --blue-50: #EAF4EE;
    --blue-100: #CDE5D6;
    --brand-dark: #052B21;    /* "FFH" letters */
    --brand-red: #C9161C;     /* "CHINA", prices, discounts */
    --brand-yellow: #FDE425;  /* stars */
    --brand-orange: #F26A1B;
    --ink: #13241C;
    --muted: #5F6B64;
    --bg: #F2F4F3;            /* light grey page, white panels on top (marketplace look) */
    --card: #FFFFFF;
    --line: #E2E7E4;
    --footer: #062E22;        /* dark green footer and top bar */
    --red: #C9161C;
    --green: #0E7A45;
    --amber: #A15C07;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(5, 43, 33, .05), 0 4px 14px rgba(5, 43, 33, .06);
    --shadow-lift: 0 2px 4px rgba(5, 43, 33, .06), 0 10px 24px rgba(5, 43, 33, .10);
    /* thin flag stripe: green | red, used under the header and above the footer */
    --flag-stripe: linear-gradient(90deg, var(--blue) 0 50%, var(--brand-red) 50% 100%);
    --gutter: 16px;
    --header-h: 112px;
    --bottom-nav-h: 64px;

    --font-en: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-bn: "Hind Siliguri", "Inter", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-en);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    /* room so the floating bottom bar never covers content */
    padding-bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
}
body.locale-bn { font-family: var(--font-bn); font-size: 16px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(2, 107, 64, .45); outline-offset: 2px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.demo-strip {
    background: #FFF7E6; color: #7A4A00; border-bottom: 1px solid #F5DDB0;
    font-size: 12.5px; text-align: center; padding: 6px var(--gutter);
}

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.page { min-height: 60vh; }
.section { margin-top: 22px; }
.section-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
    margin-bottom: 10px;
}
.section-head > * { min-width: 0; overflow-wrap: anywhere; }
/* Long SKUs / words never push a summary line out of its box on phones */
.summary-lines li > span:first-child, .summary-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.section-head h2 {
    font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.section-head h2 .icon { color: var(--blue); }
/* small green-red flag mark before every section title */
.section-head h2::before {
    content: ""; flex: none; width: 5px; height: 1.05em; border-radius: 3px;
    background: linear-gradient(180deg, var(--blue) 0 55%, var(--brand-red) 55% 100%);
}
.see-all {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 13.5px; font-weight: 600; color: var(--blue); padding: 6px 0; white-space: nowrap;
}

/* 4. Header & search ------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(5, 43, 33, .05);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header::before { content: ""; display: block; height: 3px; background: var(--flag-stripe); }
/* Thin top bar and green menu bar: computers only (see the min-width: 900px block) */
.topbar, .menubar { display: none; }
.header-action { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border-radius: 12px; color: var(--ink); }
.header-action:hover { background: var(--blue-50); }
.header-action-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; }
.header-action-text { display: none; line-height: 1.2; }
.header-action-text small { display: block; font-size: 12px; color: var(--muted); }
.header-action-text strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-inner {
    display: grid; align-items: center; column-gap: 8px;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo actions" "search search";
}
.header-logo { grid-area: logo; display: inline-flex; align-items: center; min-height: 54px; }
.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 4px; }
.header-search { grid-area: search; min-width: 0; }

.logo-text { display: inline-flex; align-items: center; gap: 7px; height: var(--logo-h); }
.logo-mark {
    display: grid; place-items: center;
    width: var(--logo-h); height: var(--logo-h); border-radius: 8px;
    background: var(--blue); color: #fff;
    font: 800 calc(var(--logo-h) * .6)/1 "Inter", sans-serif;
}
.logo-word {
    font: 800 calc(var(--logo-h) * .62)/1 "Inter", sans-serif;
    letter-spacing: .02em; color: var(--ink);
}
.logo-word { color: var(--brand-dark); }
.logo-word span { color: var(--brand-red); }
.logo-img { width: auto; }
/* Phones: the header logo stays small whatever height is set in Admin > Settings (that height is for computers) */
@media (max-width: 899px) { .header-logo .logo-img { height: auto !important; max-height: 40px; max-width: 132px; object-fit: contain; } }
@media (max-width: 340px) { .header-logo .logo-img { max-height: 34px; max-width: 110px; } }

.lang-switch {
    display: flex; align-items: center; gap: 2px;
    border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 8px;
    font-size: 13px; background: var(--card);
}
.lang-region { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.lang-sep { color: var(--line); }
.lang-form { margin: 0; }
.lang-btn {
    border: 0; background: none; cursor: pointer;
    min-width: 40px; min-height: 36px; padding: 2px 8px; border-radius: 999px;
    font-weight: 600; color: var(--muted);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[lang="bn"] { font-family: var(--font-bn); }
.lang-btn[aria-pressed="true"] { color: var(--blue); background: var(--blue-50); }

.icon-btn {
    position: relative; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
}
.icon-btn:hover { background: var(--blue-50); }
.badge {
    position: absolute; top: 4px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.badge[hidden] { display: none; }

.header-search { padding-bottom: 10px; }
.search {
    display: flex; align-items: center;
    background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
    padding: 3px 3px 3px 12px; transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px rgba(2, 107, 64, .10); }
.search-icon { color: var(--muted); flex: none; }
.search input {
    flex: 1; min-width: 0; height: 40px; border: 0; background: transparent;
    padding: 0 8px; font-size: 16px; /* 16px stops phones zooming in */
}
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-camera {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: none; color: var(--blue); cursor: pointer;
}
.search-camera:hover { background: var(--blue-50); }
.search-submit {
    flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, #038A52, var(--blue)); color: #fff; font-weight: 600; cursor: pointer;
}
.search-submit:hover { background: var(--blue-dark); }

.image-panel {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 10px; padding: 10px; border: 1px solid var(--blue-100);
    border-radius: var(--radius); background: var(--blue-50);
}
.image-panel[hidden] { display: none; }
.image-panel img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex: none; background: #fff; }
.image-panel-title { font-weight: 600; }
.image-panel-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
    border: 1.5px solid transparent; font-weight: 600; font-size: 14px; line-height: 1.2;
    cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #038A52, var(--blue)); color: #fff; box-shadow: 0 2px 8px rgba(2, 107, 64, .22); }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-outline { background: var(--card); color: var(--blue); border-color: var(--blue-100); }
.btn-outline:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 40px; padding: 0; flex: none; }
.btn-grow { flex: 1; min-width: 0; padding: 0 8px; }

/* 6. Home sections --------------------------------------------------------- */
.hero { margin-top: 14px; }
.hero-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    border-radius: var(--radius);
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
    scroll-snap-align: start;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    min-height: 150px; padding: 22px 20px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(120deg, #03432A 0%, #026B40 55%, #0E8A55 100%);
    position: relative; overflow: hidden;
}
.hero-slide::after { /* soft decorative circle */
    content: ""; position: absolute; right: -40px; bottom: -60px;
    width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero-slide-2 { background: linear-gradient(120deg, #052B21 0%, #0B3D2C 60%, #C9161C 140%); }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.hero-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: var(--line); cursor: pointer; transition: width .2s, background .2s;
}
/* bigger invisible tap area around each small dot */
.hero-dot { box-sizing: content-box; border: 8px solid transparent; background-clip: padding-box; }
.hero-dot.is-active { width: 22px; background-color: var(--blue); }
.hero-slide-3 { background: linear-gradient(120deg, #E8550F 0%, #F26A1B 50%, #FF9A3C 100%); }
.hero-title { font-size: 21px; font-weight: 700; line-height: 1.3; max-width: 22ch; }
.hero-slide p { opacity: .92; font-size: 14px; max-width: 30ch; }
.hero-cta {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; margin-top: 6px;
    background: #fff; color: var(--blue); font-weight: 600; font-size: 13.5px;
    padding: 7px 12px 7px 14px; border-radius: 999px; position: relative; z-index: 1;
}

.category-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 86px; gap: 6px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
    margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
}
.category-row::-webkit-scrollbar { display: none; }
.category-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; line-height: 1.3; }
.category-icon {
    display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #F6EEDF 100%);
    border: 1.5px solid var(--line); color: var(--blue);
    box-shadow: 0 2px 6px rgba(5, 43, 33, .06); transition: transform .15s, border-color .15s;
}
.category-chip:hover .category-icon { border-color: var(--blue); transform: translateY(-2px); }
.category-chip { font-weight: 500; }
/* Own category picture (Admin > Categories) fills the rounded box */
.category-icon { overflow: hidden; }
.category-img, .thumb .category-img { width: 100%; height: 100%; object-fit: cover; }
.category-art { display: block; width: 100%; height: 100%; }
.category-chip:hover .category-art, .category-tile:hover .category-art { transform: scale(1.06); }
.category-art { transition: transform .2s ease; }

.voucher-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
}
.voucher-row::-webkit-scrollbar { display: none; }
.voucher-card {
    scroll-snap-align: start; display: flex;
    background: var(--card); border: 1px solid var(--blue-100); border-radius: var(--radius); overflow: hidden;
}
.voucher-value {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 86px; padding: 10px; background: var(--blue-50); color: var(--blue);
    border-right: 2px dashed var(--blue-100); text-align: center;
}
.voucher-value strong { font: 800 20px/1.1 "Inter", sans-serif; }
.voucher-value span { font-size: 12px; font-weight: 700; }
.voucher-info { flex: 1; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.voucher-scope { font-weight: 600; font-size: 13.5px; }
.voucher-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tag {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #7A4A00; background: #FFF3D6; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.tag-green { color: var(--green); background: #E7F6EE; }
.voucher-card { position: relative; }
.voucher-card.is-dim { opacity: .6; }
.voucher-terms { margin: 4px 0 2px; padding-left: 16px; list-style: disc; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.voucher-code {
    font: 700 12.5px/1 "Inter", monospace; letter-spacing: .06em; color: var(--ink);
    border: 1.5px dashed var(--blue-100); border-radius: 6px; padding: 5px 8px; background: var(--card);
}
.voucher-foot form { margin: 0; }
.voucher-card .voucher-info { min-width: 0; }
.voucher-card .voucher-foot { flex-wrap: wrap; }
.voucher-card .voucher-foot .btn { white-space: normal; text-align: center; }
.voucher-sample { display: inline-block; margin-top: 8px; }
.voucher-grid { display: grid; gap: 10px; }
.rule-list { padding-left: 18px; margin: 0; list-style: disc; display: grid; gap: 4px; font-size: 14px; }
.voucher-input { display: flex; gap: 8px; }
.voucher-input input {
    flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; font-size: 16px; text-transform: uppercase;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
.voucher-input input:focus { outline: none; border-color: var(--blue); }
.voucher-box .chip-row { margin: 6px 0; }
.voucher-box .chip { cursor: pointer; font-family: inherit; }
.voucher-applied {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px; border-radius: var(--radius-sm); background: #E7F6EE; border: 1px solid #BFE6D2;
}
.discount, .summary-row.discount .num { color: var(--green); font-weight: 700; }

/* Home top: category list | banners | reseller + COD cards (3 columns on computers, banners only on phones) */
.home-top { display: grid; gap: 12px; margin-top: 14px; }
.home-top .hero { margin-top: 0; min-width: 0; }
.home-cats, .home-side { display: none; }
.home-cats {
    flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
}
.home-cats-head {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px;
    background: var(--blue); color: #fff; font-weight: 700; font-size: 14.5px;
}
.home-cats ul { padding: 6px 0; }
.home-cats li a {
    display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 14px;
    color: var(--ink); transition: background .15s, color .15s;
}
.home-cats li a:hover { background: var(--blue-50); color: var(--blue); }
.home-cats li a .icon:last-child { margin-left: auto; color: var(--muted); }
.home-cats-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; overflow: hidden; flex: none; color: var(--blue); }
.home-cats-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-cats-more { display: flex; align-items: center; gap: 2px; margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--blue); }

.home-side { flex-direction: column; gap: 12px; }
.promo-card {
    flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: 18px; border-radius: var(--radius); position: relative; overflow: hidden;
}
.promo-reseller { background: linear-gradient(140deg, var(--brand-red) 0%, #9E0F14 100%); color: #fff; }
.promo-reseller::after { content: ""; position: absolute; right: -36px; top: -36px; width: 120px; height: 120px; border-radius: 50%; background: rgba(253, 228, 37, .22); }
.promo-cod { background: var(--card); border: 1px solid var(--line); }
.promo-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; opacity: .9; }
.promo-title { font-size: 17px; line-height: 1.3; }
.promo-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--brand-yellow); }
.promo-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.promo-text { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* White panels around home sections */
.home-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
/* lines up with the other boxes: same outer edge as a .container's content */
.container.home-panel { width: calc(100% - var(--gutter) * 2); max-width: calc(1200px - var(--gutter) * 2); }
.home-panel .product-card { box-shadow: none; }
.home-panel-offers { border-top: 4px solid var(--brand-red); }
.home-panel-offers .section-head h2 { color: var(--brand-red); }
.home-panel-offers .section-head h2 .icon { color: var(--brand-red); }
.home-panel-offers .section-head h2::before { display: none; }
.section-tight { margin-top: 12px; }

/* Reseller programme band */
.reseller-band {
    display: grid; gap: 14px; padding: 22px 20px; border-radius: var(--radius); color: #fff;
    background: radial-gradient(circle at 92% 10%, rgba(253, 228, 37, .18) 0 120px, transparent 121px),
                linear-gradient(120deg, #03432A 0%, var(--blue) 60%, #0E8A55 100%);
}
.reseller-band h2 { font-size: 21px; line-height: 1.3; margin-top: 4px; }
.reseller-band p { opacity: .9; font-size: 14.5px; max-width: 52ch; margin-top: 6px; }
.reseller-points { display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; }
.reseller-points li { display: flex; align-items: center; gap: 8px; }
.reseller-points .icon { color: var(--brand-yellow); flex: none; }
.reseller-band .btn { justify-self: start; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--blue-50); }

.trust-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; }
.trust-item strong { display: block; font-weight: 600; }
.trust-icon {
    display: grid; place-items: center; flex: none;
    width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue);
}

/* 7. Product card ---------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; box-shadow: var(--shadow); min-width: 0;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
@media (hover: hover) {
    .product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--blue); }
    .product-card:hover .product-media img { transform: scale(1.05); }
}
.product-link { display: block; }
.product-media {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
    background: #F7F8F7;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    color: var(--blue); background: linear-gradient(145deg, #F8F2E6, #EAF4EE);
}
.discount-badge {
    position: absolute; top: 8px; left: 0;
    background: linear-gradient(135deg, #E0262C, var(--brand-red)); color: #fff; font-size: 11.5px; font-weight: 700;
    padding: 3px 10px 3px 8px; border-radius: 0 999px 999px 0; box-shadow: 0 2px 6px rgba(201, 22, 28, .3);
}
.product-name {
    margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em; /* keeps cards the same height */
}
.locale-bn .product-name { font-size: 15px; }
.product-link:hover .product-name { color: var(--blue); }
.product-sku { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-family: var(--font-en); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 4px; font-family: var(--font-en); }
.price { font-size: 17px; font-weight: 800; color: var(--brand-red); }
.price-old { font-size: 12.5px; color: var(--muted); }
.stock { font-size: 12px; font-weight: 600; margin-top: 2px; }
.stock-in_stock { color: var(--green); }
.stock-low_stock { color: var(--amber); }
.stock-out_of_stock { color: var(--red); }
/* Wishlist heart: top-right of the card photo; filled red when saved */
.product-card { position: relative; }
.wish-form { margin: 0; }
.wish-on-card { position: absolute; top: 14px; right: 14px; z-index: 2; }
.wish-btn {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--muted); cursor: pointer;
    box-shadow: 0 1px 4px rgba(5, 43, 33, .15); transition: color .15s, transform .15s;
}
.wish-btn:hover { color: var(--brand-red); }
.wish-btn:active { transform: scale(.9); }
.wish-btn[aria-pressed="true"] { color: var(--brand-red); }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wish-on-page .wish-btn { width: 42px; height: 42px; border: 1px solid var(--line); box-shadow: none; flex: none; }
.empty-box { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 32px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.wish-count { margin-bottom: 10px; }
.product-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.product-actions .btn { min-height: 40px; font-size: 13.5px; }

/* Page titles, breadcrumbs, chips --------------------------------------- */
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--blue); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* Category list page */
.category-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.category-tile {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.category-tile:hover { border-color: var(--blue); }
.category-tile .category-icon { width: 60px; height: 60px; flex: none; }
.category-icon .icon { width: 30px; height: 30px; }
.category-tile-text { flex: 1; display: grid; }

/* Product list filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.select {
    min-height: 40px; max-width: 100%; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6578' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none; font-size: 14px; cursor: pointer;
}
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.result-count { margin-bottom: 10px; }
.empty-state {
    display: grid; justify-items: center; gap: 12px; text-align: center;
    padding: 32px 16px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty-state p { max-width: 36ch; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 18px; }
.pager span[aria-disabled] { opacity: .45; }
.pager-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.pager-num {
    display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink);
}
a.pager-num:hover { border-color: var(--blue); color: var(--blue); }
.pager-num.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Product page */
.product-layout { display: grid; gap: 16px; }
.product-media-lg { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-height: 60vh; }
.product-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.price-row-lg .price { font-size: 24px; }
.price-row-lg .price-old { font-size: 15px; }
.buy-box {
    margin-top: 14px; padding: 14px; display: grid; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.options { border: 0; margin: 0; padding: 0; }
.options legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
}
.option input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.option input:focus-visible + span { outline: 3px solid rgba(2, 107, 64, .45); outline-offset: 2px; }
.option.is-out span { color: var(--muted); text-decoration: line-through; background: var(--bg); cursor: not-allowed; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.stepper-btn { width: 40px; height: 40px; border: 0; background: var(--bg); font-size: 20px; line-height: 1; cursor: pointer; }
.stepper-btn:hover { background: var(--blue-50); color: var(--blue); }
.stepper input {
    width: 48px; height: 40px; border: 0; text-align: center; font-weight: 600; font-family: var(--font-en);
    -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product-actions-lg .btn { min-height: 46px; font-size: 15px; }
.product-desc { margin-top: 16px; }
.product-desc h2 { font-size: 16px; margin-bottom: 6px; }
.product-page .muted.small { margin-top: 10px; }

/* Cart page */
.notice { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.notice-error { background: #FDECEC; color: #A1262B; border: 1px solid #F6C9CB; }
.cart-layout { display: grid; gap: 14px; }
.cart-lines { display: grid; gap: 10px; }
.cart-head { align-items: center; }
.cart-head .page-title { margin: 0; }
.cart-add-more a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px;
    border: 2px dashed var(--blue); border-radius: 14px; color: var(--blue); font-weight: 700; background: #F4FBF7;
}
.cart-add-more a:hover { background: #E7F6EE; }
.cart-line {
    display: grid; grid-template-columns: 72px 1fr; gap: 12px; position: relative;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.cart-line.has-problem { border-color: #F6C9CB; background: #FFFAFA; }
.cart-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--blue-50); }
.cart-thumb img, .cart-thumb .product-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { min-width: 0; }
.cart-line-name { font-weight: 500; font-size: 14.5px; line-height: 1.4; display: block; padding-right: 70px; }
.cart-unit { font-size: 13px; color: var(--muted); font-family: var(--font-en); }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-line-actions .stepper-btn, .cart-line-actions .stepper input { height: 36px; }
.cart-line-actions .stepper-btn { width: 36px; }
.cart-line-total { position: absolute; top: 10px; right: 12px; font-weight: 700; font-family: var(--font-en); }
.cart-summary {
    display: grid; gap: 10px; align-self: start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.summary-row strong { font-size: 19px; color: var(--blue); font-family: var(--font-en); }
.btn-block { width: 100%; min-height: 46px; }
.btn-wide { min-width: min(260px, 100%); min-height: 44px; gap: 6px; }
/* Related products: on phones the first 2 rows (4 cards) until "See more" */
@media (max-width: 899px) {
    .related-grid.is-collapsed > :nth-child(n+5) { display: none; }
}
@media (min-width: 900px) {
    .phone-only { display: none; }
}
.center { text-align: center; }

/* Product gallery */
.gallery { min-width: 0; }
.gallery-track {
    display: flex; width: 100%; height: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; background: #fff; scroll-snap-align: start; }
/* A chosen colour/size's own photo, over the gallery */
.variant-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.variant-photo[hidden] { display: none; }
.option-thumb { width: 28px; height: 28px; margin: 0 8px 0 -8px; border-radius: 6px; object-fit: cover; flex: none; }
/* Chosen colour's photo inside the option box (phones; on wide screens the gallery is beside it) */
.option-preview {
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.option-preview[hidden] { display: none; }
.option-preview img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; flex: none; background: #fff; }
.option-preview > span { display: grid; gap: 2px; }
@media (max-width: 899px) {
    .option-thumb { width: 36px; height: 36px; }
}
@media (min-width: 900px) { .option-preview { display: none !important; } }
.variant-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.variant-tile {
    display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card); cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); text-align: center;
}
.variant-tile:hover { border-color: var(--blue); }
.variant-photo-cell { min-width: 170px; }
.variant-photo-current { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.variant-photo-current img { border-radius: 6px; object-fit: cover; }
.input-file-sm { font-size: 12px; max-width: 190px; }
.variant-tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 6px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumb {
    flex: none; width: 60px; height: 60px; padding: 0; border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid var(--line); background: #fff; cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--blue); }

/* Delivery info + specifications */
/* Social pages (footer) and the floating WhatsApp chat button */
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.social-btn {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff;
    box-shadow: 0 2px 6px rgba(5, 43, 33, .15); transition: transform .15s;
}
.social-btn:hover { transform: translateY(-2px); }
.social-facebook { background: #1877F2; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.social-youtube { background: #FF0000; }
.social-tiktok { background: #111; }
.social-whatsapp { background: #25D366; }
.wa-float {
    position: fixed; right: 14px; z-index: 45;
    bottom: calc(var(--bottom-nav-h) + 22px + env(safe-area-inset-bottom));
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .15);
    animation: wa-pop .4s ease-out .8s both;
}
.wa-float:hover { transform: scale(1.06); }
.agent-delete-order { margin: 6px 0 12px; }
/* Floating cart: a tab on the right edge, half-way down (clear of WhatsApp / chat at the bottom) */
.cart-float {
    position: fixed; right: 0; top: 50%; z-index: 46; transform: translateY(-50%);
    display: grid; justify-items: center; gap: 2px; padding: 10px 8px 8px 10px; min-width: 56px;
    background: linear-gradient(160deg, #038A52, var(--blue)); color: #fff; border-radius: 16px 0 0 16px;
    box-shadow: -4px 6px 18px rgba(2, 107, 64, .35); -webkit-tap-highlight-color: transparent;
}
.cart-float[hidden] { display: none; }
.cart-float:hover, .cart-float:focus-visible { color: #fff; padding-right: 12px; }
.cart-float-count {
    min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #FDE425; color: #052B21;
    font-size: 13px; font-weight: 800; text-align: center; line-height: 18px; font-family: var(--font-en);
}
.cart-float-label { font-size: 11px; font-weight: 700; }
.cart-float.is-bump { animation: cart-bump .5s ease-out; }
@keyframes cart-bump { 0% { transform: translateY(-50%) scale(1); } 35% { transform: translateY(-50%) scale(1.18); } 100% { transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-float.is-bump { animation: none; } }
@keyframes wa-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (min-width: 900px) { .wa-float { bottom: 24px; right: 24px; width: 58px; height: 58px; } }

/* Home: all categories at once (no sideways scrolling), and "All products" with category chips */
.category-row.category-row-grid {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0; gap: 14px 6px;
}
@media (min-width: 600px) { .category-row.category-row-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .category-row.category-row-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.category-row-grid .category-icon { width: 100%; max-width: 74px; height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 1000px) { .category-row-grid .category-icon { max-width: 96px; } }
.filter-chips {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 2px 0 6px;
    position: sticky; top: var(--header-h, 0px); z-index: 5; background: var(--bg);
}
.home-panel .filter-chips { background: var(--card); }
/* Computers: the header scrolls away, so the chips stick to the very top */
@media (min-width: 900px) { .filter-chips { top: 0; padding-top: 8px; } }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips .chip { flex: none; white-space: nowrap; }
.all-products { scroll-margin-top: 80px; }
.all-products .product-grid.is-loading { opacity: .45; transition: opacity .15s; }
.all-more { margin-top: 16px; }

/* Voucher popup for visitors */
.voucher-popup {
    position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
    background: rgba(5, 43, 33, .55); animation: vp-fade .25s ease-out;
}
.voucher-popup[hidden] { display: none; }
.voucher-popup-card {
    position: relative; width: min(380px, 100%); max-height: calc(100vh - 32px); overflow: auto;
    padding: 26px 22px 20px; border-radius: 20px; text-align: center;
    background: linear-gradient(180deg, #FFF7EC 0%, var(--card) 55%); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    border-top: 6px solid var(--brand-red); animation: vp-pop .3s ease-out;
}
.voucher-popup-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); color: var(--ink); cursor: pointer; }
.voucher-popup-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--blue); font-weight: 700; font-size: 14px; }
.voucher-popup-value { margin: 0; font-size: 46px; font-weight: 800; line-height: 1.05; color: var(--brand-red); }
.voucher-popup-value span { font-size: 18px; font-weight: 700; }
.voucher-popup-title { margin: 6px 0 8px; font-size: 18px; }
.voucher-popup-terms { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.voucher-popup-code { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px;
    padding: 10px; border: 2px dashed var(--blue); border-radius: 12px; background: #fff; }
.voucher-popup-code .voucher-code { font-size: 18px; letter-spacing: .06em; }
.voucher-popup-actions { display: grid; gap: 8px; margin-top: 12px; }
.voucher-popup-actions form { margin: 0; }
.voucher-popup-actions .btn { width: 100%; }
body.has-popup { overflow: hidden; }
@keyframes vp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vp-pop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .voucher-popup, .voucher-popup-card { animation: none; } }

/* Password boxes: eye button to show / hide */
.password-wrap { position: relative; display: block; }
.password-wrap input { width: 100%; padding-right: 48px; }
.password-eye {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 38px; height: 38px;
    display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.password-eye:hover, .password-eye:focus-visible { color: var(--blue); background: var(--blue-50); }

/* Deleting things for good */
.btn-danger { background: var(--brand-red); color: #fff; border: 0; }
.btn-danger:hover { background: #A51216; color: #fff; }
.danger-zone { border-color: #F2B8BA; }

/* Admin product list: bulk actions on ticked products */
.bulk-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px;
    padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
.bulk-bar .select { max-width: 240px; }

/* Checkout note under the phone field, and Admin > Incomplete orders */
.lead-note { margin: 6px 0 0; }
.btn-whatsapp { background: #25D366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.incomplete-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.incomplete-actions form { margin: 0; }
.incomplete-table tr.is-contacted td { opacity: .62; }

/* Customer number check (agents, admin order page) */
.check-live:empty { display: none; }
.check-live { margin-top: 10px; }
.check-result {
    display: grid; gap: 8px; padding: 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--card); border-left-width: 5px;
}
.check-good { border-left-color: var(--green); background: #F1FAF4; }
.check-caution { border-left-color: #E0A100; background: #FFF9E8; }
.check-danger { border-left-color: var(--red); background: #FDF0F0; }
.check-new { border-left-color: var(--muted); }
.check-risk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.check-good .check-dot { background: var(--green); }
.check-caution .check-dot { background: #E0A100; }
.check-danger .check-dot { background: var(--red); }
.check-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Admin > Settings: Steadfast test answer, stays on the page */
.numbercheck-result { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; font-weight: 600; overflow-wrap: anywhere; }
.numbercheck-result svg { flex: none; margin-top: 2px; }
.numbercheck-result.is-ok { background: #E8F6EE; color: #05603A; border: 1px solid #9BCDB3; }
.numbercheck-result.is-bad { background: #FDECEC; color: #A1131A; border: 1px solid #F1A7AA; }
.check-chip {
    display: inline-flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; font-size: 13px;
    padding: 4px 10px; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
    max-width: 100%; /* the Steadfast line wraps on phones */
}
.text-red { color: var(--red); }

/* "View only" shop: shown instead of the buy buttons */
.view-only-box {
    margin-top: 14px; padding: 16px; display: grid; gap: 10px;
    background: #FFF8EA; border: 1px solid #F1DDB4; border-radius: var(--radius);
}
.view-only-box h2 { font-size: 17px; }
.view-only-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.view-only-actions .btn { min-width: 150px; gap: 6px; }

.info-card { margin-top: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-bottom: 8px; }
.info-card h2 .icon, .info-note .icon { color: var(--blue); }
.info-list li {
    display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 6px 0;
    border-bottom: 1px dashed var(--line); font-size: 14px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list strong { font-family: var(--font-en); }
.info-list .muted { grid-column: 1 / -1; }
.info-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--green); }
.info-note-offer { color: var(--brand-red); font-weight: 700; padding: 6px 10px; border-radius: var(--radius-sm); background: #FFF1F1; border: 1px dashed #F2B8BA; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 500; color: var(--muted); background: var(--bg); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Forms (checkout) */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; min-width: 0; }
.panel legend, .panel h2, .panel-label { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 10px; display: block; }
fieldset.panel legend { float: left; width: 100%; }
/* Everything after the heading starts below it (a grid box next to a floated heading shrank to nothing,
   e.g. the agent's "Saved address" box at checkout on phones) */
fieldset.panel > legend ~ * { clear: both; }
fieldset.panel legend + * { clear: both; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .panel input[type="text"], .field .select {
    width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; /* 16px stops phones zooming */
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2, 107, 64, .15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.panel input:disabled { background: var(--bg); color: var(--muted); }
.field-error { color: #B42318; font-size: 13px; }
.choice {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.choice > span { display: grid; gap: 2px; }
.choice strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.choice .icon { color: var(--green); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.checkout-layout > * { min-width: 0; }
.checkout-main { display: grid; gap: 14px; min-width: 0; }
.checkout-summary { display: grid; gap: 10px; align-self: start; }
.summary-lines { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.45; }
.summary-lines .product-sku { display: block; }
.summary-total { padding-top: 10px; border-top: 1px solid var(--line); }
.summary-total strong { font-size: 20px; color: var(--blue); }
.num { font-family: var(--font-en); white-space: nowrap; }

/* Order confirmation */
.order-page { max-width: 880px; }
.order-success { display: grid; justify-items: center; gap: 8px; text-align: center; margin: 8px 0 16px; }
.order-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E7F6EE; color: var(--green); }
.order-success h1 { font-size: 20px; }
.order-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.order-number { font: 700 20px/1.3 "Inter", sans-serif; letter-spacing: .02em; white-space: nowrap; }
.order-meta { flex-basis: 100%; }
.order-meta { grid-column: 1 / -1; }
.status-pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FFF3D6; color: #7A4A00; white-space: nowrap; }
.status-delivered, .status-confirmed { background: #E7F6EE; color: var(--green); }
.status-cancelled, .status-returned { background: #FDECEC; color: #A1262B; }
.status-shipped, .status-processing { background: var(--blue-50); color: var(--blue); }
.order-grid { display: grid; gap: 14px; }
.order-address { font-style: normal; line-height: 1.6; font-size: 14.5px; }
.mt { margin-top: 16px; }
.order-continue { margin-top: 16px; }

/* Error pages (bilingual) */
.error-body { padding-bottom: 0; font-family: var(--font-bn); }
.error-page {
    max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 32px var(--gutter);
    display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center;
}
.error-logo { margin-bottom: 12px; }
.error-code { font: 800 56px/1 "Inter", sans-serif; color: var(--blue-100); }
.error-code .icon { color: var(--blue); }
.error-page h1 { font-size: 22px; }
.error-text { color: var(--ink); }
.error-en { color: var(--muted); font-family: var(--font-en); font-size: 14px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

/* Login / register */
.auth-card { max-width: 440px; margin: 0 auto; display: grid; gap: 12px; }
.auth-card .page-title { margin-bottom: 0; }
.auth-card form { display: grid; gap: 2px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.auth-switch { text-align: center; font-size: 14px; }
.link { color: var(--blue); font-weight: 600; }
.notice-success { background: #E7F6EE; color: #0B6B4B; border: 1px solid #BFE6D2; }
.guest-hint { font-size: 14px; background: var(--blue-50); border-color: var(--blue-100); }
.guest-hint a { color: var(--blue); font-weight: 600; }

/* My account */
.account-page { max-width: 760px; }
.account-page > .panel { margin-bottom: 14px; }
.account-page .panel h2 { font-size: 16px; margin-bottom: 10px; }
.account-hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.account-hello .page-title { margin-bottom: 0; }
.account-avatar {
    display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
    background: var(--blue); color: #fff; font: 700 22px/1 var(--font-bn);
}
.account-menu { display: grid; gap: 8px; margin-bottom: 14px; }
.account-menu a {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.account-menu a:hover { border-color: var(--blue); }
.account-menu a > span:nth-child(2) { flex: 1; display: grid; }
.order-list { display: grid; gap: 8px; margin-bottom: 12px; }
.order-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.order-row > span:first-child { display: grid; }
.order-row-end { display: grid; justify-items: end; gap: 4px; }
a.panel.order-row:hover { border-color: var(--blue); }
.address-card.is-default { border-color: var(--blue-100); }
.address-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.address-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.address-actions form { margin: 0; }
.tag-blue { color: var(--blue); background: var(--blue-50); }
.btn.danger { color: #B42318; }
.logout-form { margin-top: 8px; }

/* Admin panel ------------------------------------------------------------ */
.admin-body { padding-bottom: 0; background: #F1F4F2; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
/* Sidebar (phones: brand + sideways menu on top) */
.admin-side { background: var(--footer); color: rgba(255, 255, 255, .78); min-width: 0; }
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 12px var(--gutter); font-weight: 700; }
.admin-brand-logo { display: inline-flex; background: #fff; border-radius: 8px; padding: 4px 8px; }
.admin-brand-tag { font-size: 11.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-yellow); padding: 2px 8px; border-radius: 999px; }
.admin-nav {
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter) 10px;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-group { display: none; }
.admin-nav a {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78);
    transition: background .15s, color .15s;
}
.admin-nav a .icon { opacity: .8; flex: none; }
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-nav a.is-active { color: var(--brand-dark); background: var(--brand-yellow); font-weight: 700; }
.admin-nav a.is-active .icon { opacity: 1; }
.admin-side-foot { display: none; }
.admin-avatar {
    display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 700;
}
.admin-side-user { display: grid; min-width: 0; line-height: 1.3; }
.admin-side-user strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side-user small { font-size: 12px; }
/* Top bar */
.admin-content { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
    position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px var(--gutter); background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 8px rgba(5, 43, 33, .04);
}
.admin-search {
    flex: 1 1 260px; max-width: 460px; display: flex; align-items: center; gap: 8px; margin: 0;
    padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted);
}
.admin-search:focus-within { border-color: var(--blue); background: var(--card); }
.admin-search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; font-size: 14.5px; }
.admin-search input:focus { outline: none; }
.admin-top-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-top-actions form { margin: 0; }
.admin-main { padding: 18px var(--gutter) 40px; min-width: 0; }
.admin-main .panel { margin-bottom: 14px; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(5, 43, 33, .04); }
.admin-main .panel h2 { font-size: 16px; margin-bottom: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.panel-head h2 { margin-bottom: 0 !important; }
.admin-grid-2 { display: grid; gap: 14px; align-items: start; }
.admin-stack { display: grid; gap: 14px; }
.admin-stack .panel { margin-bottom: 0; }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-active { border-color: var(--blue); color: var(--blue); background: var(--blue-50); font-weight: 600; }
.chip-soon { color: var(--muted); border-style: dashed; cursor: default; }
.admin-input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-size: 15px; min-width: 200px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat {
    position: relative; display: grid; gap: 2px; padding: 16px 16px 14px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(5, 43, 33, .04);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.stat:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat strong { font-size: 26px; font-family: var(--font-en); line-height: 1.2; }
.stat-alert { border-color: #F5C26B; background: #FFF9EC; }
/* Coloured icon circle per card */
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 8px; --tone: var(--blue); color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.stat-green .stat-icon { --tone: #0E7A45; }
.stat-blue .stat-icon { --tone: #1F6FD1; }
.stat-violet .stat-icon { --tone: #7247C4; }
.stat-amber .stat-icon { --tone: #C2700A; }
.stat-red .stat-icon { --tone: #C9161C; }
.bar-list { display: grid; gap: 8px; }
.bar-list li { display: grid; grid-template-columns: 92px 1fr; gap: 2px 10px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--blue); border-radius: 999px; min-width: 2px; }
.bar-value { grid-column: 2; color: var(--muted); }
.admin-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #F6F8F7; padding: 11px 12px; white-space: nowrap; }
.admin-table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:hover td { background: #FAFCFB; }
/* Loyalty points */
.points-box { border-color: #F5C26B; background: #FFF9EC; }
.points-check { align-items: flex-start; }
.points-check > span { display: grid; gap: 2px; }
.points-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; color: #3D2A00; background: linear-gradient(135deg, #FFE27A, #F8B825); box-shadow: 0 8px 22px rgba(224, 138, 0, .25); }
.points-star { font-size: 44px; }
.points-balance { font-size: 34px; font-weight: 800; line-height: 1.1; }
.referral-link { display: flex; gap: 8px; }
.referral-link input { flex: 1; min-width: 0; }

/* Parcel tracking */
.parcel-track { display: grid; gap: 6px; justify-items: start; padding: 12px; border: 1px solid var(--blue-100); border-radius: 14px; background: var(--blue-50); }
.parcel-track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.parcel-track-head .icon { color: var(--blue); }
.parcel-track .btn-ghost { min-height: 28px; padding: 0 8px; }
.parcel-status { background: #E6F0FC; color: #1F5FB0; }
.parcel-delivered, .parcel-delivered_approval_pending { background: #E7F6EE; color: var(--green); }
.parcel-partial_delivered, .parcel-partial_delivered_approval_pending, .parcel-hold { background: #FFF3D6; color: #7A4A00; }
.parcel-cancelled, .parcel-cancelled_approval_pending { background: #FDECEC; color: #A1262B; }
.track-card { display: grid; gap: 10px; justify-items: center; max-width: 440px; margin: 10px auto; padding: 24px 18px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.track-form { display: grid; gap: 10px; width: 100%; text-align: left; }
.track-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; }
.track-form input:focus { outline: none; border-color: var(--blue); }

/* Flash deals */
.flash-badge {
    position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #FFB000, #FF6A00); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 2px 8px rgba(255, 106, 0, .35);
}
.home-panel-flash { background: linear-gradient(135deg, #FFF4E5 0%, #FFFFFF 55%); border-top: 4px solid #FF8A00; }
.home-panel-flash .section-head h2 { color: #D35400; }
.home-panel-flash .section-head h2::before { display: none; }
.countdown { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-en); }
.countdown-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; font-family: inherit; }
.locale-bn .countdown-label { font-family: var(--font-bn); }
.countdown-box { display: grid; justify-items: center; min-width: 38px; padding: 3px 4px; border-radius: 8px; background: var(--brand-dark); color: #fff; line-height: 1.1; }
.countdown-box b { font-size: 15px; }
.countdown-box small { font-size: 9.5px; opacity: .8; }
.locale-bn .countdown-box small { font-family: var(--font-bn); }
.flash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #FF8A00, #D35400); color: #fff; }
.flash-title { font-size: 22px; font-weight: 800; }
.flash-head .countdown-label { color: #fff; opacity: .9; }
.flash-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: #FFF4E5; color: #B34700; font-size: 14px; }
.flash-state-running { background: #E7F6EE; color: var(--green); }
.flash-state-upcoming { background: #E6F0FC; color: #1F5FB0; }
.flash-state-ended, .flash-state-off { background: var(--bg); color: var(--muted); }
@media (max-width: 899px) {
    .home-panel-flash .product-grid {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 6px;
    }
    .home-panel-flash .product-grid::-webkit-scrollbar { display: none; }
    .home-panel-flash .product-card { scroll-snap-align: start; }
    .home-panel-flash .section-head .countdown { order: 3; flex-basis: 100%; }
}

/* Brands */
.brand-logo {
    display: grid; place-items: center; overflow: hidden; width: 72px; height: 72px; border-radius: 18px;
    background: #fff; border: 1px solid var(--line); font: 800 26px/1 var(--font-en); color: var(--blue);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.brand-row { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.brand-row::-webkit-scrollbar { display: none; }
.brand-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: center; }
.brand-chip:hover .brand-logo { border-color: var(--blue); }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brand-tile { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.brand-tile:hover { border-color: var(--blue); }
.brand-tile .brand-logo { width: 88px; height: 88px; }
.brand-thumb { font-weight: 800; font-family: var(--font-en); }
.brand-thumb img { object-fit: contain; }
.brand-title-logo { display: inline-block; vertical-align: middle; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; margin-right: 6px; }
.product-brand { font-size: 13.5px; color: var(--muted); margin: 2px 0; }
@media (min-width: 600px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .brand-row { grid-auto-columns: 96px; } }

/* Stars and reviews */
.stars { position: relative; display: inline-block; font-size: var(--star-size, 16px); line-height: 1; letter-spacing: 1px; vertical-align: -2px; }
.stars-base { color: #D9DEDB; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #F5A623; }
.card-rating { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; font-weight: 600; }
.reviews-summary { display: grid; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--bg); margin-bottom: 14px; }
.reviews-score { display: grid; justify-items: start; gap: 4px; }
.reviews-score > strong { font-size: 36px; line-height: 1; font-family: var(--font-en); }
.reviews-bars { display: grid; gap: 6px; }
.reviews-bars li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; }
.reviews-bars .bar-fill { background: #F5A623; }
.review-form { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; resize: vertical; }
.review-form .btn { justify-self: start; }
.review-form-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Star picker: radios in reverse order so hovering/choosing a star lights it and the ones before it */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 32px; line-height: 1; color: #D9DEDB; cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #F5A623; }
.star-input input:focus-visible + label { outline: 3px solid rgba(2, 107, 64, .45); border-radius: 4px; }
.star-input label:active { transform: scale(.9); }
.review-list { display: grid; gap: 12px; }
.review-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 10px; align-items: flex-start; }
.review-avatar { width: 34px; height: 34px; font-size: 14px; }
.review-text { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.review-reply { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; }
.review-reply p { margin-top: 2px; white-space: pre-line; }
.review-link { display: inline-block; margin-top: 4px; }
.admin-review-list { display: grid; gap: 12px; }
.admin-review-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; }
.admin-review-head > span:first-child { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-review-text { margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }
.admin-review-reply { display: grid; gap: 6px; margin-bottom: 10px; }
.admin-review-reply textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.admin-review-reply .btn, .admin-review-actions form { justify-self: start; margin: 0; }
.admin-review-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 600px) { .reviews-summary { grid-template-columns: 160px 1fr; align-items: center; } }

/* Landing pages for ads (/lp/…) */
.landing-body { background: #fff; }
.landing-top { border-bottom: 1px solid var(--line); background: #fff; position: relative; }
.landing-top::before { content: ""; display: block; height: 3px; background: var(--flag-stripe); }
.landing-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.landing-hero { display: grid; gap: 18px; padding-top: 16px; }
.landing-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.landing-gallery-track::-webkit-scrollbar { display: none; }
.landing-gallery-track img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; background: #F7F8F7; }
.landing-placeholder { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.landing-headline { font-size: 26px; line-height: 1.3; font-weight: 800; color: var(--brand-dark); }
.landing-sub { margin-top: 8px; font-size: 16.5px; color: var(--muted); }
.landing-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; font-family: var(--font-en); }
.landing-price strong { font-size: 32px; font-weight: 800; color: var(--brand-red); }
.landing-price del { font-size: 18px; color: var(--muted); }
.landing-discount { position: static; border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.landing-trust { display: grid; gap: 6px; margin-top: 14px; font-size: 14.5px; font-weight: 500; }
.landing-trust li { display: flex; align-items: center; gap: 8px; }
.landing-trust .icon { color: var(--blue); flex: none; }
.landing-cta { margin-top: 16px; min-height: 52px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.landing-block { margin-top: 28px; }
.landing-h2 { font-size: 21px; font-weight: 800; margin-bottom: 12px; color: var(--brand-dark); }
.landing-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.landing-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.landing-benefits { display: grid; gap: 10px; }
.landing-benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-50); font-size: 16px; font-weight: 500; }
.landing-benefits .icon { color: var(--blue); flex: none; margin-top: 1px; }
.landing-faq { display: grid; gap: 8px; }
.landing-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.landing-faq summary { font-weight: 600; cursor: pointer; }
.landing-faq details p { margin-top: 8px; color: var(--muted); }
.landing-order { max-width: 640px; margin: 0 auto; padding: 18px; border: 2px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lift); scroll-margin-top: 16px; }
#order { scroll-margin-top: 12px; }
.landing-form { display: grid; gap: 12px; margin-top: 12px; }
.landing-options { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.landing-options legend { font-weight: 600; margin-bottom: 6px; }
.landing-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.landing-option:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.landing-option strong { margin-left: auto; font-family: var(--font-en); }
.landing-option.is-out { opacity: .55; cursor: not-allowed; }
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper input { width: 72px; min-height: 40px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 17px; font-weight: 700; }
.landing-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); }
.landing-total strong { font-size: 22px; color: var(--brand-red); }
.landing-submit { min-height: 52px; font-size: 17px; border-radius: 14px; }
.landing-foot { margin-top: 36px; padding: 18px 0 90px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.landing-foot a { color: var(--blue); }
.landing-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
}
.landing-bar .btn { min-height: 52px; font-size: 16.5px; border-radius: 16px; box-shadow: 0 8px 24px rgba(2, 107, 64, .35); }
.landing-body .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
    .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 28px; }
    .landing-headline { font-size: 36px; }
    .landing-bar { display: none; }
    .landing-foot { padding-bottom: 24px; }
    .landing-body .wa-float { bottom: 24px; }
    .landing-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Agent > Edit order */
.edit-order-btn { margin: 4px 0 2px; }
.edit-lines { display: grid; gap: 12px; margin-bottom: 10px; }
.edit-lines li { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.edit-line-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.edit-line-fields .field, .edit-order-form .field > span { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.edit-line-fields .admin-input { min-width: 0; width: 120px; }
/* "Add products" rows when changing an order */
.add-lines { margin: 12px 0; padding: 12px; border: 1px dashed var(--blue); border-radius: 12px; background: #F4FBF7; }
.add-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(70px, 1fr) minmax(90px, 1fr); gap: 8px; margin-top: 8px; }
.add-line:not(:has(:nth-child(3))) { grid-template-columns: minmax(0, 2fr) minmax(70px, 1fr); }
.add-line .field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); margin: 0; }
.add-line .admin-input { width: 100%; min-width: 0; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* CRM (Admin > Customers) */
.crm-name { display: flex; align-items: center; gap: 10px; }
.crm-name > span:last-child { display: grid; line-height: 1.3; }
.crm-avatar { width: 32px; height: 32px; font-size: 13px; }
.crm-avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.crm-tag {
    display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 2px 8px;
    border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 12px; font-weight: 600;
}
.crm-tag button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.crm-tag button:hover { background: var(--blue-100); }
.crm-tag-list { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.crm-tag-form input { min-width: 0; flex: 1; }
.crm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.crm-hero-body { flex: 1; min-width: 200px; }
.crm-hero .page-title { margin-bottom: 2px; }
.crm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.crm-seg { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.crm-seg-vip { background: #FFF3C4; color: #7A5B00; }
.crm-seg-repeat { background: #E7F6EE; color: var(--green); }
.crm-seg-new { background: #E6F0FC; color: #1F5FB0; }
.crm-seg-problem { background: #FDECEC; color: #A1262B; }
.crm-contact { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-note-form { display: grid; gap: 8px; margin-bottom: 14px; }
.crm-note-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; resize: vertical; }
.crm-note-body { white-space: pre-line; overflow-wrap: anywhere; }
.crm-followup-form { display: grid; gap: 8px; margin-bottom: 12px; }
.crm-followup-form .field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.crm-followup-form .admin-input { width: 100%; min-width: 0; }
.crm-followups { display: grid; gap: 8px; }
.crm-followups li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.crm-followups li > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.crm-followups li form { margin: 0; flex: none; }
.crm-followups li.is-due { border-color: #F5C26B; background: #FFF9EC; }
.crm-followups li.is-done { opacity: .6; }
/* Admin > Reports */
.report-downloads { display: flex; flex-wrap: wrap; gap: 6px; }
.report-bar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.report-bar-value { color: var(--muted); white-space: nowrap; }
.courier-attention { display: block; margin-bottom: 12px; font-weight: 600; }
.admin-table .table-total td { font-weight: 700; background: #F6F8F7; border-top: 2px solid var(--line); }
.admin-table.compact td { padding: 6px; }
.admin-table input:not([type="checkbox"]) {
    width: 100%; min-width: 90px; min-height: 38px; padding: 0 8px; font-size: 14px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--card);
}
.admin-table .input-sm, .input-sm { max-width: 100px; }
.row-dim td { opacity: .55; }
.row-actions { white-space: nowrap; }
.thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--blue-50); color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.text-red { color: #B42318; font-weight: 700; }
.text-amber { color: var(--amber); font-weight: 700; }
.status-p-published { background: #E7F6EE; color: var(--green); }
.status-p-draft { background: var(--bg); color: var(--muted); }
.status-p-archived { background: #FDECEC; color: #A1262B; }
.admin-form .field input, .admin-form .field textarea, .admin-form .field .select { width: 100%; }
.admin-form.narrow { max-width: 560px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-actions-bar {
    position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 12px 0;
    background: linear-gradient(to top, #F2F5FA 70%, rgba(242, 245, 250, 0));
}
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.photo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.photo-current img, .photo-tile img { border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.photo-tile { display: grid; gap: 4px; justify-items: center; }
.option-check { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.timeline { display: grid; gap: 10px; border-left: 2px solid var(--line); padding-left: 12px; }
.timeline li { display: grid; gap: 2px; }
.notice { background: var(--bg); border: 1px solid var(--line); }
.notice ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }

/* Agents */
.agent-tag { flex-basis: 100%; width: max-content; margin-bottom: 2px; }
.status-a-pending { background: #FFF3D6; color: #7A4A00; }
.status-a-approved { background: #E7F6EE; color: var(--green); }
.status-a-rejected, .status-a-suspended { background: #FDECEC; color: #A1262B; }
.text-green { color: var(--green); font-weight: 700; }
.info-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.info-dl dt { color: var(--muted); }
.info-dl dd { margin: 0; overflow-wrap: anywhere; }
.small-strong { font-size: 16px !important; }
.agent-order-box { border-color: var(--blue-100); }
.agent-price-list { display: grid; gap: 10px; margin: 8px 0 12px; }
.agent-price-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.agent-price-list li > span:first-child { display: grid; }
.agent-price-list .field-error { grid-column: 1 / -1; }
.agent-price-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.agent-price-list .line-prices { margin: 4px 0 0 52px; }

/* Checkout lines, short: small photo + option SKU (agents) or the name in 2 lines (customers) */
.line-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.line-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); color: var(--blue); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-text { display: grid; gap: 1px; min-width: 0; }
.line-sku { font-size: 14px; letter-spacing: .02em; word-break: break-all; white-space: normal; } /* long SKUs wrap instead of widening the box */
.line-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.summary-lines li { align-items: center; }
.taka-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--muted); }
.agent-delivery-field { margin: 12px 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FFFCF6; }
.agent-delivery-field label { display: block; margin-bottom: 6px; }
.taka-input input {
    width: 110px; min-height: 42px; padding: 0 10px; font-size: 16px; font-family: var(--font-en);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
.taka-input input:focus { outline: none; border-color: var(--blue); }
hr.soft { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.share-link { width: 100%; font-size: 13px; }
/* Banners with a picture (Admin > Banners): a dark shade keeps the text readable. */
.hero-slide.has-image { background-size: cover; background-position: center; }
.hero-slide.has-image::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(90deg, rgba(10, 16, 30, .62) 0%, rgba(10, 16, 30, .25) 60%, rgba(10, 16, 30, 0) 100%);
}
.hero-slide.has-image::after { display: none; }
.hero-slide.has-image > * { position: relative; z-index: 1; }
/* Picture-only banner (no title): the finished design is shown whole, at its own shape. */
.hero-slide.hero-picture { display: block; padding: 0; min-height: 0; background: var(--card); align-self: start; }
.hero-slide.hero-picture::after { display: none; }
.hero-picture img { display: block; width: 100%; height: auto; }

/* Admin > Banners / Settings / Pages */
.banner-admin-list { display: grid; gap: 12px; }
.banner-admin-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 16px; align-items: center; margin: 0; }
.banner-admin-row.is-off { opacity: .6; }
.banner-thumb { min-height: 96px !important; padding: 14px !important; pointer-events: none; }
.banner-thumb .hero-title { font-size: 15px; }
.banner-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.banner-admin-actions form { margin: 0; }
@media (max-width: 700px) { .banner-admin-row { grid-template-columns: 1fr; } }
.style-picker { display: flex; gap: 10px; }
.style-picker label { display: grid; gap: 4px; cursor: pointer; }
.style-swatch { width: 72px; min-height: 40px !important; padding: 0 !important; }
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px 10px; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.logo-preview { padding: 14px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 10px; }
.page-help code { font-size: 12px; background: var(--bg); padding: 1px 4px; border-radius: 4px; }

/* Information pages (About, Returns, …) */
.page-content { max-width: 760px; line-height: 1.75; }
.page-content h2 { font-size: 19px; margin: 22px 0 8px; }
.page-content ul { padding-left: 22px; margin: 8px 0; list-style: disc; }
.page-content > :first-child { margin-top: 0; }
.page-content li { margin: 4px 0; }
.page-content p { margin: 10px 0; }
.contact-box { display: grid; gap: 6px; margin-top: 18px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-contact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Admin import / export */
.mapping-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.mapping-grid label { display: grid; gap: 4px; font-weight: 600; word-break: break-word; }
.import-progress { width: 100%; height: 14px; }
.export-links { margin: -4px 0 12px; }
/* Admin > Orders: agent's short code next to the order number */
.agent-code { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #E7F0FF; color: #1D4ED8; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
/* Admin > Inventory */
.inventory-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.inventory-filter .select, .inventory-filter .admin-input { width: auto; min-width: 180px; flex: 1 1 180px; max-width: 320px; }
.inventory-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.inventory-setall { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inventory-setall .input-sm { width: 90px; }
[data-inventory-input].is-changed { border-color: var(--blue); background: #EAF6EF; font-weight: 700; }

/* Agent > Photo downloads */
.download-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .download-grid { grid-template-columns: 1fr 1fr; } }
.download-card { display: grid; gap: 10px; margin: 0; }
.download-pick { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.download-pick input { width: 20px; height: 20px; flex-shrink: 0; }
.download-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--blue-50); flex-shrink: 0; }
.download-pick > span { display: grid; min-width: 0; }
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.download-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.zip-bar {
    position: sticky; bottom: 72px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
    margin-top: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .1);
}

/* One-box address, courier style */
.address-box .field-row { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .address-box .field-row { grid-template-columns: 1fr 1fr; } }
.area-search { position: relative; }
.area-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.area-search input { padding-left: 38px; }
.area-list {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    max-height: 280px; overflow-y: auto;
}
.area-list li[role="option"] { padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.area-list li[role="option"]:hover, .area-list li.active { background: var(--blue-50); color: var(--blue); }
.area-list .area-none { padding: 10px 12px; color: var(--muted); font-size: 14px; }
[data-area-status]:empty { display: none; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.copy-row input { flex: 1; min-width: 0; }
.agent-recent { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.agent-recent h3 { margin: 0 0 2px; }
.agent-recent-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none;
}
.agent-recent-row > span:first-child { display: grid; min-width: 0; }
.agent-recent-row .status-pill { flex-shrink: 0; }
.tag-red { color: #A1262B; background: #FDECEC; }
.tag-amber { color: #8A5A00; background: #FFF4D6; }
.status-partially_returned { background: #FFF4D6; color: #8A5A00; }
.qty-input { width: 72px; min-height: 40px; padding: 0 8px; font-size: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.cod-check-ok { background: #E7F6EE; color: var(--green); }
.cod-check-bad { background: #FDECEC; color: #A1262B; }

/* Soon page */
.soon { padding-top: 32px; }
.soon-card {
    max-width: 480px; margin: 0 auto; text-align: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 20px; display: grid; gap: 12px; justify-items: center;
}
.soon-card h1 { font-size: 22px; }

/* 8. Footer & bottom nav --------------------------------------------------- */
.site-footer { margin-top: 36px; background: var(--footer); color: rgba(255, 255, 255, .78); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--flag-stripe); }
.footer-trust { background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 16px; padding-bottom: 14px; }
.footer-trust-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; }
.footer-trust-list .icon { color: var(--brand-yellow); flex: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; padding-bottom: 20px; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
.footer-logo { justify-self: start; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-contact { display: grid; gap: 6px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.site-footer h2 { font-size: 15px; margin-bottom: 8px; color: #fff; }
.site-footer li a { display: inline-block; padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.site-footer li a:hover { color: var(--brand-yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.footer-copy { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.footer-pay { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: #fff; color: var(--blue); font-weight: 700; }

/* Phones: a floating rounded bar; the open page gets a filled green circle. */
.bottom-nav {
    position: fixed; left: 10px; right: 10px; z-index: 50;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; /* 5 items, or 4 in "view only" */
    height: var(--bottom-nav-h); padding: 0 4px;
    background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 8px 28px rgba(5, 43, 33, .16), 0 1px 3px rgba(5, 43, 33, .08);
}
@supports (backdrop-filter: blur(8px)) {
    .bottom-nav { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); }
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11.5px; font-weight: 500; color: var(--muted); -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item.is-active { color: var(--blue); font-weight: 700; }
.bottom-nav-icon {
    position: relative; display: grid; place-items: center; width: 40px; height: 30px; border-radius: 999px;
    transition: background .2s, color .2s, transform .2s;
}
.bottom-nav-item.is-active .bottom-nav-icon {
    background: linear-gradient(135deg, #038A52, var(--blue)); color: #fff;
    box-shadow: 0 3px 10px rgba(2, 107, 64, .35); transform: translateY(-1px);
}
.bottom-nav-item:active .bottom-nav-icon { transform: scale(.92); }
.bottom-nav-icon .badge { top: -6px; right: -2px; border: 2px solid #fff; line-height: 14px; }

/* Phones: order bar on product / cart / checkout pages, in the menu's place (same size,
   so the WhatsApp and chat buttons above it still fit). */
.action-bar {
    position: fixed; left: 10px; right: 10px; z-index: 50;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 8px;
    height: var(--bottom-nav-h); padding: 0 8px 0 6px;
    background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 8px 28px rgba(5, 43, 33, .16), 0 1px 3px rgba(5, 43, 33, .08);
}
.action-bar-icon {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    width: 46px; font-size: 11px; font-weight: 500; color: var(--muted); -webkit-tap-highlight-color: transparent;
}
.action-bar-icon:active { transform: scale(.94); }
.action-bar-cart { position: relative; display: grid; place-items: center; }
.action-bar-cart .badge { top: -7px; right: -9px; border: 2px solid #fff; line-height: 14px; }
.action-bar-btn {
    flex: 1 1 0; min-width: 0; height: 46px; padding: 0 10px; border-radius: 14px;
    font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.action-bar-btn.btn-primary { box-shadow: 0 4px 12px rgba(2, 107, 64, .3); }
.action-bar-total { flex: 1 1 0; min-width: 0; display: grid; padding-left: 8px; line-height: 1.25; }
.action-bar-total > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-bar-total strong { font-size: 18px; color: var(--blue); }
.action-bar-total + .action-bar-btn { flex: 1.2 1 0; }
@media (max-width: 360px) { .action-bar-btn { padding: 0 6px; font-size: 14px; } }
@media (max-width: 340px) { .action-bar-icon:first-child { display: none; } } /* very small phones: room for both buttons */
/* The page's own buttons are in the bar on phones */
@media (max-width: 899px) { .product-actions-lg { display: none; } }

.toast {
    position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 20px);
    width: max-content; max-width: calc(100% - 32px);
    background: var(--brand-dark); color: #fff; font-size: 14px; line-height: 1.45;
    padding: 10px 16px; border-radius: 12px; box-shadow: 0 6px 24px rgba(5, 43, 33, .3);
}
.toast.is-error { background: var(--red); }
.toast[hidden] { display: none; }

/* 9. Utilities ------------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Very narrow phones (≤ 340px) */
@media (max-width: 340px) {
    :root { --gutter: 12px; }
    .lang-region { display: none; }
    .search-submit { display: none; }
    .product-grid { gap: 8px; }
}
@media (max-width: 599px) { .hide-mobile { display: none; } }

/* Tablets */
@media (min-width: 600px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .voucher-row { grid-auto-columns: 280px; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .voucher-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-trust-list { grid-template-columns: repeat(4, 1fr); }
    .header-action-text { display: block; }
    .header-action { padding-right: 10px; }
    .home-panel { padding: 18px; }
}
@media (max-width: 899px) {
    /* Phones/tablets: the trust row is already on the page above the footer */
    .footer-trust { display: none; }
}

/* Side menu (phones): <dialog> sliding in from the left */
dialog.drawer {
    margin: 0; padding: 0; border: 0; inset: 0 auto 0 0; height: 100%; max-height: none;
    width: min(86vw, 340px); max-width: none; background: transparent; color: var(--ink);
}
dialog.drawer::backdrop { background: rgba(4, 28, 19, .5); }
dialog.drawer[open] .drawer-panel { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
body.drawer-open { overflow: hidden; }
.drawer-panel { height: 100%; overflow-y: auto; background: #fff; padding-bottom: 28px; border-radius: 0 20px 20px 0; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: calc(18px + env(safe-area-inset-top)) 16px 18px; color: #fff;
    background: linear-gradient(135deg, #03522F 0%, #026B40 55%, #0B8A55 100%);
}
.drawer-user { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; }
.drawer-user .admin-avatar { background: rgba(255, 255, 255, .2); }
.drawer-user small { display: block; font-size: 12px; opacity: .85; }
.drawer-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-close { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.drawer-auth { display: flex; gap: 8px; padding: 14px 16px 0; }
.drawer-auth .btn { flex: 1; }
.drawer-links { display: grid; gap: 2px; padding: 10px 8px 0; }
.drawer-links a, .drawer-cats a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 500; }
.drawer-links a:hover, .drawer-cats a:hover { background: var(--blue-50); color: var(--blue); }
.drawer-links .icon { color: var(--blue); flex: none; }
.drawer-links .drawer-cta { margin-top: 6px; background: #FFF6CC; color: var(--brand-dark); font-weight: 700; }
.drawer-title { margin: 18px 20px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer-cats { padding: 0 8px; }
.drawer-cats .cat-menu-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; color: var(--blue); background: var(--bg); }
.drawer-cats .cat-menu-icon > * { width: 100%; height: 100%; }
.drawer-lang { padding: 4px 16px; }
.drawer-lang .lang-switch { display: inline-flex; }
.drawer-contact { display: grid; gap: 2px; margin: 18px 16px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer-contact a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; color: var(--muted); }
.quick-actions { display: none; }
/* Coloured round-cornered icons (quick buttons, account and agent tiles) */
.qa-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 18px; color: #fff; box-shadow: 0 6px 14px rgba(5, 43, 33, .16); transition: transform .15s; }
.qa-red { background: linear-gradient(135deg, #F0453F, #C9161C); }
.qa-blue { background: linear-gradient(135deg, #4C97EE, #1F5FB0); }
.qa-amber { background: linear-gradient(135deg, #F8BE3A, #E08A00); }
.qa-green { background: linear-gradient(135deg, #12A065, #026B40); }
.qa-violet { background: linear-gradient(135deg, #9368E0, #6A3FC0); }
.qa-teal { background: linear-gradient(135deg, #22B8B0, #0E8780); }

/* Agent panel */
.agent-page { display: grid; gap: 14px; }
.agent-page > * { margin: 0; min-width: 0; }
.agent-page > .page-title { margin-bottom: -4px; }
.agent-tabs {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
}
.agent-tabs::-webkit-scrollbar { display: none; }
.agent-tabs a {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.agent-tabs a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(2, 107, 64, .25); }
.agent-hero {
    padding: 18px 16px; border-radius: 22px; color: #fff;
    background: radial-gradient(circle at 100% 0%, rgba(253, 228, 37, .25) 0 100px, transparent 101px), linear-gradient(135deg, #052B21 0%, #03522F 45%, #026B40 100%);
    box-shadow: 0 10px 26px rgba(2, 60, 36, .28);
}
.agent-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.agent-hero-hello { font-size: 17px; font-weight: 700; line-height: 1.3; }
.agent-hero-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(253, 228, 37, .2); color: var(--brand-yellow); font-size: 12px; font-weight: 700; }
.agent-hero-wallet-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; opacity: .9; white-space: nowrap; }
.agent-hero-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.agent-hero-money > * { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.agent-hero-money small { font-size: 12px; opacity: .85; }
.agent-hero-money strong { font-size: 22px; font-family: var(--font-en); }
.agent-hero-note { margin-top: 10px; font-size: 12px; opacity: .8; }
.agent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.agent-actions a {
    display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 12px 6px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: 12.5px; font-weight: 600; text-align: center;
}
.agent-actions a:hover { border-color: var(--blue); }
.agent-actions .qa-icon { width: 46px; height: 46px; border-radius: 15px; }
.agent-h2 { font-size: 16.5px; font-weight: 700; margin-bottom: -6px !important; }
.agent-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agent-stats .stat strong { font-size: 22px; }
.agent-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; margin: 8px 0 6px; }
.agent-chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.agent-chart-bar { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #12A065, var(--blue)); }
.agent-chart-day { font-size: 11.5px; color: var(--muted); }
.agent-order-list { display: grid; gap: 10px; }
.agent-order {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s;
}
.panel .agent-order { border-width: 0 0 1px; border-radius: 0; padding: 12px 0; }
.panel .agent-order:last-child { border-bottom: 0; }
a.agent-order:hover { border-color: var(--blue); }
.agent-order-main { display: grid; gap: 2px; min-width: 0; }
.agent-order-main > * { overflow-wrap: anywhere; }
.agent-order-end { display: grid; justify-items: end; gap: 4px; text-align: right; flex: none; }
.agent-customer { align-items: flex-start; }
.agent-customer .agent-order-main { flex: 1; }
.agent-customer-links { display: flex; gap: 4px; }
.agent-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agent-product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.agent-product-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #F7F8F7; }
.agent-product-media img, .agent-product-media .product-placeholder { width: 100%; height: 100%; object-fit: cover; }
.agent-product-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px; }
.agent-product-name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-product-prices { display: grid; gap: 2px; margin: 4px 0 0; font-size: 12.5px; }
.agent-product-prices > div { display: flex; justify-content: space-between; gap: 6px; }
.agent-product-prices dt { color: var(--muted); }
.agent-product-prices dd { margin: 0; font-weight: 700; }
.agent-product-prices .price { font-size: 15px; }
.agent-product-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.agent-help summary { font-weight: 700; cursor: pointer; }
.agent-help .rule-list { margin-top: 10px; }
@media (min-width: 600px) {
    .agent-actions { grid-template-columns: repeat(6, 1fr); }
    .agent-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .agent-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .agent-tabs { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
    .agent-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .agent-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .agent-hero { padding: 24px 28px; }
    .agent-hero-money { max-width: 560px; }
}

/* Customer account panel */
.account-page { display: grid; gap: 14px; }
.account-page > * { margin: 0; }
.account-hero {
    padding: 18px 16px 14px; border-radius: 22px; color: #fff;
    background: radial-gradient(circle at 90% 0%, rgba(253, 228, 37, .22) 0 90px, transparent 91px), linear-gradient(135deg, #03522F 0%, #026B40 55%, #0B8A55 100%);
    box-shadow: 0 8px 22px rgba(2, 60, 36, .22);
}
.account-hero-top { display: flex; align-items: center; gap: 12px; }
.account-hero .account-avatar { width: 56px; height: 56px; font-size: 22px; background: rgba(255, 255, 255, .2); color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.account-hero-name { flex: 1; min-width: 0; }
.account-hero-name h1 { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.account-hero-name p { font-size: 13px; opacity: .85; overflow-wrap: anywhere; }
.account-hero-edit { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.account-stats a { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .12); text-align: center; }
.account-stats strong { font-size: 20px; font-family: var(--font-en); }
.account-stats span { font-size: 12px; opacity: .9; }
.account-latest-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0 12px; }
.account-latest-row > span { display: grid; }
.account-latest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.account-latest-actions form, .order-head form { margin: 0; }
.order-progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 0; padding: 0; list-style: none; counter-reset: none; }
.order-progress li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.order-progress li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.order-progress li:first-child::before { display: none; }
.order-progress li.is-done::before { background: var(--blue); }
.order-progress-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-weight: 700; font-size: 12px; font-family: var(--font-en); }
.order-progress li.is-done .order-progress-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.order-progress li.is-current .order-progress-dot { box-shadow: 0 0 0 4px var(--blue-100); }
.order-progress li.is-done { color: var(--ink); font-weight: 600; }
.order-progress-stop { display: inline-block; margin-top: 4px; }
.to-review { display: grid; gap: 8px; }
.to-review a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.to-review-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-review-stars { color: #F5A623; letter-spacing: 1px; display: none; }
.account-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-tiles a {
    display: grid; gap: 4px; justify-items: start; height: 100%; padding: 14px; background: var(--card);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 4px rgba(5, 43, 33, .05); transition: transform .15s, border-color .15s;
}
.account-tiles a:hover { border-color: var(--blue); transform: translateY(-2px); }
.account-tiles .qa-icon { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 4px; }
.account-tiles strong { font-size: 14.5px; }
.account-tiles small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.account-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--brand-dark); color: #fff; }
.account-banner > span { flex: 1; display: grid; }
.account-banner small { font-size: 12.5px; opacity: .85; }
.account-banner-cta { background: linear-gradient(135deg, var(--brand-red), #9E0F14); }
.account-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 600px) {
    .account-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .to-review-stars { display: inline; }
}
@media (min-width: 900px) {
    .account-page { max-width: 880px; margin: 0 auto; }
}

/* Phones & tablets: app-style shop (computers keep the layout above) ------------ */
@media (max-width: 899px) {
    :root { --header-h: 118px; }
    .site-header, .site-header:is(*) {
        background: linear-gradient(135deg, #03522F 0%, #026B40 60%, #0B8A55 100%);
        border-bottom: 0; box-shadow: 0 6px 18px rgba(2, 60, 36, .22); backdrop-filter: none;
    }
    .header-inner { grid-template-columns: auto auto 1fr; grid-template-areas: "menu logo actions" "search search search"; column-gap: 8px; }
    .header-menu-btn { grid-area: menu; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .14); }
    .header-logo { min-height: 58px; }
    .header-logo .logo-text, .header-logo .logo-img { background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; }
    .header-actions { gap: 2px; }
    .header-action { color: #fff; padding: 0; }
    .header-action:hover { background: rgba(255, 255, 255, .14); }
    .header-action .badge { border: 2px solid #026B40; line-height: 14px; }
    .header-search { padding-bottom: 12px; }
    .search { background: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
    .search:focus-within { border-color: transparent; box-shadow: 0 0 0 3px rgba(253, 228, 37, .7); }
    .search-submit { background: var(--brand-yellow); color: var(--brand-dark); font-weight: 700; }
    .search-submit:hover { background: #FFE94D; }

    /* Home */
    .home-top { margin-top: 12px; }
    .hero-track { grid-auto-columns: 88%; gap: 10px; border-radius: 0; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
    .hero-slide { min-height: 168px; border-radius: 20px; box-shadow: 0 6px 18px rgba(2, 60, 36, .18); }
    .hero-dots { margin-top: 2px; }
    .quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
    .quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: center; }
    .quick-actions a:active .qa-icon { transform: scale(.94); }

    .trust-grid {
        display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); background: none; border: 0; border-radius: 0;
    }
    .trust-grid::-webkit-scrollbar { display: none; }
    .trust-item { flex: none; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
    .trust-item .small { display: none; }
    .trust-icon { width: 30px; height: 30px; border-radius: 50%; }

    .home-panel { padding: 14px 12px; border-radius: 20px; border-color: transparent; box-shadow: 0 1px 6px rgba(5, 43, 33, .07); }
    .section { margin-top: 16px; }
    .section-head h2 { font-size: 16.5px; }
    .see-all { padding: 4px 10px; border-radius: 999px; background: var(--blue-50); font-size: 12.5px; }

    /* Categories: two rows that scroll sideways */
    .home-panel .category-row-grid {
        display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none;
        grid-auto-columns: 72px; gap: 12px 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 4px;
    }
    .home-panel .category-row-grid::-webkit-scrollbar { display: none; }
    .home-panel .category-row-grid .category-icon { width: 60px; height: 60px; }
    .home-panel .category-chip { font-size: 12px; }

    /* Offers: cards that scroll sideways */
    .home-panel-offers .product-grid {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 6px;
    }
    .home-panel-offers .product-grid::-webkit-scrollbar { display: none; }
    .home-panel-offers .product-card { scroll-snap-align: start; }

    /* Compact product cards */
    .product-grid { gap: 8px; }
    .product-card { padding: 6px; border-radius: 16px; }
    .product-media { border-radius: 12px; }
    .product-name { margin-top: 6px; font-size: 13.5px; }
    .locale-bn .product-name { font-size: 14px; }
    .price { font-size: 16px; }
    .stock { font-size: 11.5px; }
    .product-actions { gap: 5px; padding-top: 6px; }
    .product-actions .btn { min-height: 36px; font-size: 13px; border-radius: 10px; }
    .product-actions .btn-icon { width: 36px; }
    .wish-on-card { top: 10px; right: 10px; }
    .wish-on-card .wish-btn { width: 32px; height: 32px; }
    .wish-on-card .wish-btn .icon { width: 18px; height: 18px; }

    .reseller-band { padding: 20px 16px; border-radius: 20px; }
    .reseller-band h2 { font-size: 19px; }

    /* Product page: photos edge to edge */
    .product-layout .gallery { margin: 0 calc(var(--gutter) * -1); }
    .product-layout .product-media-lg { border-radius: 0; }
}

/* Laptops and desktops: header nav replaces the bottom bar */
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .bottom-nav, .action-bar { display: none; }
    .toast { bottom: 24px; }
    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo search actions";
        column-gap: 32px; min-height: 84px;
    }
    .header-search { padding: 14px 0; }
    .search { border-radius: 12px; border-width: 2px; border-color: var(--blue); background: var(--card); padding: 3px 3px 3px 14px; }
    .search input { height: 44px; }
    .search-submit { height: 44px; padding: 0 28px; border-radius: 9px; }
    .hide-desktop { display: none; }
    .header-actions { gap: 8px; }

    /* Header is tall on computers (3 rows), so it scrolls away instead of staying on top */
    .site-header { position: relative; }
    .topbar { display: block; background: var(--footer); color: rgba(255, 255, 255, .85); font-size: 13px; }
    .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
    .topbar-note { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-note .icon { color: var(--brand-yellow); flex: none; }
    .topbar-links { display: flex; align-items: center; gap: 18px; flex: none; }
    .topbar-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; }
    .topbar-link:hover { color: var(--brand-yellow); }
    .topbar .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .25); padding: 0 4px 0 8px; }
    .topbar .lang-region, .topbar .lang-btn { color: rgba(255, 255, 255, .8); }
    .topbar .lang-btn { min-height: 28px; }
    .topbar .lang-btn:hover { color: #fff; }
    .topbar .lang-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
    .topbar .lang-sep { color: rgba(255, 255, 255, .3); }

    .menubar { display: block; background: var(--blue); color: #fff; }
    .menubar-inner { display: flex; align-items: stretch; gap: 8px; min-height: 48px; }
    .cat-menu { position: relative; flex: none; width: 250px; }
    .cat-menu-toggle {
        display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 16px; cursor: pointer; list-style: none;
        background: var(--blue-dark); font-weight: 700; font-size: 14.5px;
    }
    .cat-menu-toggle::-webkit-details-marker { display: none; }
    .cat-menu-caret { margin-left: auto; transition: transform .2s; }
    .cat-menu[open] .cat-menu-caret { transform: rotate(180deg); }
    .cat-menu-list {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 45; padding: 6px 0;
        background: var(--card); color: var(--ink); border: 1px solid var(--line); border-top: 0;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lift);
        max-height: 70vh; overflow-y: auto;
    }
    .cat-menu-list a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 14px; }
    .cat-menu-list a:hover { background: var(--blue-50); color: var(--blue); }
    .cat-menu-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; overflow: hidden; flex: none; color: var(--blue); }
    .cat-menu-arrow { margin-left: auto; color: var(--muted); }
    .cat-menu-all a { justify-content: center; font-weight: 600; color: var(--blue); border-top: 1px solid var(--line); margin-top: 4px; }
    /* The home page already shows the category list beside the banners */
    .page-home .cat-menu { visibility: hidden; }
    .menubar-links { display: flex; align-items: stretch; gap: 2px; min-width: 0; overflow: hidden; }
    .menubar-links a {
        display: flex; align-items: center; height: 100%; padding: 0 14px; font-weight: 600; font-size: 14.5px;
        white-space: nowrap; border-bottom: 3px solid transparent; transition: background .15s;
    }
    .menubar-links a:hover { background: rgba(255, 255, 255, .1); }
    .menubar-links a[aria-current="page"] { border-bottom-color: var(--brand-yellow); }
    .menubar-cta {
        margin-left: auto; align-self: center; flex: none; display: inline-flex; align-items: center; gap: 6px;
        padding: 7px 14px; border-radius: 999px; background: var(--brand-yellow); color: var(--brand-dark);
        font-weight: 700; font-size: 13.5px;
    }
    .menubar-cta:hover { background: #fff; }

    .home-top { grid-template-columns: 250px minmax(0, 1fr) 250px; align-items: stretch; margin-top: 16px; }
    .home-cats, .home-side { display: flex; }
    .home-top .hero-track, .home-top .hero-slide { height: 100%; }
    .home-top .hero { display: flex; flex-direction: column; }
    .home-top .hero-track { flex: 1; }
    .reseller-band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 32px 36px; }
    .reseller-band h2 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 28px; }
    .footer-brand { grid-column: auto; }
    .hero-slide { min-height: 230px; padding: 36px 44px; }
    .hero-title { font-size: 30px; }
    .hero-slide p { font-size: 16px; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .section { margin-top: 30px; }
    .section-head h2 { font-size: 20px; }
    .category-row { grid-auto-columns: 112px; gap: 10px; }
    .category-row .category-icon { width: 96px; height: 96px; }
    .category-row .category-icon .icon { width: 38px; height: 38px; }
    .category-chip { font-size: 14px; }
    .page-title, .product-title { font-size: 24px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
    .product-media-lg { aspect-ratio: 1 / 1; max-height: none; }
    .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .cart-summary { position: sticky; top: 90px; }
    .checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .admin-shell { grid-template-columns: 240px minmax(0, 1fr); }
    .admin-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
    .admin-brand { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .admin-nav { flex: 1; flex-direction: column; gap: 2px; overflow-x: hidden; overflow-y: auto; padding: 8px 10px 16px; scrollbar-width: thin; }
    .admin-nav-group {
        display: block; margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
        text-transform: uppercase; color: rgba(255, 255, 255, .42);
    }
    .admin-nav-group:first-child { margin-top: 6px; }
    .admin-side-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
    .admin-top { padding: 12px 24px; }
    .admin-grid-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-main { padding: 20px 24px 40px; }
    .checkout-summary { position: sticky; top: 90px; }
    .order-grid { grid-template-columns: 3fr 2fr; }
}
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Installed app (PWA) */
.install-btn { justify-self: start; margin-top: 4px; }
.install-btn[hidden] { display: none; }
@media (display-mode: standalone) {
    /* keep the header clear of the phone's status bar / notch */
    .site-header { padding-top: env(safe-area-inset-top); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
