/* ═══════════════════════════════════════════════════════════
   BROTHER HUB — MERGED STYLESHEET
   Combined: styles.css (app) + home.css (home page)
   Theme: Blue (#0b5cab) — Moglix-inspired layout
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   RESET & ROOT
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #0b5cab;
    --primary-dark: #082e56;
    --primary-dk:   #083d7a;
    --primary-lt:   #e8f1fe;
    --accent:       #e51d2f;
    --accent-dk:    #b91c1c;
    --text:         #132238;
    --muted:        #607086;
    --border:       #d9e1ec;
    --bg:           #eef2f7;
    --surface:      #ffffff;
    --surface-alt:  #f5f7fb;
    --green:        #16a34a;
    --shadow:       0 2px 12px rgba(0,0,0,0.07);
    --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
    --shadow-hover: 0 10px 32px rgba(11,92,171,0.16);
    --radius:       12px;
    --container:    1880px;
    --font:         "Segoe UI", Tahoma, Geneva, Verdana, system-ui, -apple-system, sans-serif;
    --font-main:    "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --sidebar-w:    220px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}
body.modal-open { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; border: 0; outline: 0; cursor: pointer; background: none; }
ul { list-style: none; }

.container {
    width: min(calc(100% - 36px), var(--container));
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   SHIMMER PLACEHOLDER
───────────────────────────────────────── */
.ph {
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
    background-size: 200% 200%;
    animation: shimmer 1.8s infinite;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.72rem; font-weight: 600;
    text-align: center; padding: 8px;
    width: 100%; height: 100%; border-radius: 8px;
}
@keyframes shimmer {
    0%   { background-position: 0 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ─────────────────────────────────────────
   TOP PROMO STRIP
───────────────────────────────────────── */
.promo-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    background: linear-gradient(90deg, #000 0%, #6f020c 100%);
    color: #fff;
    font-size: 0.8rem;
}
.promo-strip-inner,
.promo-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 16px; min-height: 38px; padding: 3px 0;
}
.promo-left,
.promo-badge { display: flex; align-items: center; gap: 10px; }
.promo-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: #ff4557;
    box-shadow: 0 0 0 4px rgba(255,69,87,0.2);
    flex-shrink: 0; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,69,87,0.2); }
    50%       { box-shadow: 0 0 0 7px rgba(255,69,87,0.08); }
}
.promo-cta {
    background: #fff; color: #c1121f;
    border-radius: 6px; padding: 8px 18px;
    font-weight: 700; font-size: 0.76rem;
    transition: opacity 0.18s; flex-shrink: 0;
}
.promo-cta:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   MASTHEAD
───────────────────────────────────────── */
.masthead {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 120;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* masthead-inner — home page grid */
.masthead-inner {
    display: grid;
    grid-template-columns: 220px 210px 1fr auto;
    gap: 14px; align-items: center;
    padding: 10px 0;
}

/* masthead-main — app grid */
.masthead-main {
    display: grid;
    grid-template-columns: 300px 230px minmax(0,1fr) 360px;
    gap: 18px; align-items: center;
    padding: 14px 0;
}

/* Brand / Logo */
.brand,
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.brand-mark,
.logo-mark {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid; place-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #041f4a 0%, #0a4b9a 52%, #2d86dd 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 12px 26px rgba(3, 32, 73, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        inset 0 -8px 12px rgba(3, 25, 58, 0.34);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(3, 23, 54, 0.58);
    flex-shrink: 0;
}
.brand-mark::before,
.logo-mark::before {
    content: '';
    position: absolute;
    inset: -40% -40% auto;
    height: 70%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    transform: rotate(-10deg);
    pointer-events: none;
}
.brand-mark::after,
.logo-mark::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
    background: radial-gradient(circle, rgba(84, 174, 255, 0.22) 0%, rgba(84, 174, 255, 0) 65%);
    pointer-events: none;
}
.logo-mark { width: 42px; height: 42px; border-radius: 11px; font-size: 1rem; }
.brand-main strong,
.footer-brand strong,
.logo-text strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.brand-main small,
.footer-brand small,
.logo-text span   { color: var(--muted); font-size: 0.7rem; }

/* Location / Delivery Pill */
.delivery-pill,
.location-pill {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 12px; cursor: pointer;
    background: #fafafa; transition: border-color 0.18s;
    box-shadow: var(--shadow);
}
.delivery-pill:hover,
.location-pill:hover { border-color: var(--primary); }
.delivery-pill strong,
.delivery-pill small,
.location-pill strong,
.location-pill small { display: block; }
.delivery-pill small,
.location-pill small  { color: var(--primary); font-size: 0.7rem; font-weight: 600; }
.location-pill strong { font-size: 0.78rem; font-weight: 700; }
.location-pill .loc-icon {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #041f4a 0%, #0a4b9a 52%, #2d86dd 100%);
    border: 1px solid rgba(255,255,255,0.44);
    box-shadow:
        0 8px 18px rgba(3, 32, 73, 0.33),
        inset 0 1px 0 rgba(255,255,255,0.62),
        inset 0 -6px 10px rgba(3,25,58,0.3);
    color: #fff;
}
.location-pill .loc-icon::before {
    content: '';
    position: absolute;
    inset: -45% -45% auto;
    height: 78%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.62), rgba(255,255,255,0));
    transform: rotate(-11deg);
    pointer-events: none;
}
.location-pill .loc-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* Search */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #cfd6de;
    border-radius: 999px;
    padding: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.search-bar:focus-within {
    border-color: #63a4ff;
    box-shadow: 0 0 0 2px rgba(11, 92, 171, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.search-bar input {
    width: 100%;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 18px;
    font-size: 0.88rem;
    background: transparent;
    color: #0f172a;
}
.search-bar input::placeholder {
    color: #7a8796;
}
.search-btn,
.search-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f8fafc;
    color: #334155;
    min-width: 62px;
    height: 44px;
    padding: 0;
    border-left: 1px solid #d7dee8;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.search-btn:hover,
.search-bar button:hover {
    background: #eef2f7;
    color: #0f172a;
}
.search-btn svg { width: 18px; height: 18px; }
.search-btn-label { display: none; }

/* Utility Nav */
.utility-nav,
.util-nav { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.utility-nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.util-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 10px; border-radius: 9px;
    font-weight: 600; font-size: 0.78rem;
    color: var(--text); transition: background 0.18s;
    white-space: nowrap; position: relative;
}
.util-btn:hover { background: var(--bg); }
.utility-icon,
.util-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #041f4a 0%, #0a4b9a 52%, #2d86dd 100%);
    border: 1px solid rgba(255,255,255,0.44);
    box-shadow:
        0 10px 20px rgba(3, 32, 73, 0.33),
        inset 0 1px 0 rgba(255,255,255,0.62),
        inset 0 -6px 10px rgba(3,25,58,0.3);
    color: #fff;
}
.utility-icon { border-radius: 999px; }
.utility-icon::before,
.util-icon::before {
    content: '';
    position: absolute;
    inset: -45% -45% auto;
    height: 78%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.62), rgba(255,255,255,0));
    transform: rotate(-11deg);
    pointer-events: none;
}
.util-icon svg { width: 17px; height: 17px; stroke: currentColor; }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px; border-radius: 999px;
    background: var(--accent); color: #fff;
    font-size: 0.6rem; font-weight: 800;
    display: grid; place-items: center; padding: 0 3px;
    border: 2px solid #fff;
}

/* ─────────────────────────────────────────
   CATEGORY NAV BAR
───────────────────────────────────────── */
.cat-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 110;
}
.cat-nav-inner {
    display: flex; align-items: center;
    gap: 0; overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 15px;
    font-size: 0.78rem; font-weight: 600; color: var(--text);
    border-bottom: 2px solid transparent;
    white-space: nowrap; transition: color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.cat-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.cat-nav-item:hover, .cat-nav-item.active {
    color: var(--primary); border-bottom-color: var(--primary);
}
.cat-nav-viewall {
    margin-left: auto; color: var(--primary);
    font-weight: 700; font-size: 0.78rem;
    padding: 10px 15px; white-space: nowrap;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
}
.cat-nav-viewall:hover { border-bottom-color: var(--primary); }

/* ─────────────────────────────────────────
   PAGE LAYOUT — sidebar + main
───────────────────────────────────────── */

.page-body-wrap {
    padding-top: 0;
    padding-bottom: 0;
}

.page-wrap {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 0;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    position: relative;
}
/* White background stripe — covers full height of page-wrap */
.page-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #fff;
    border-right: 1px solid var(--border);
    z-index: 0;
    pointer-events: none;
}

/* ── Sidebar ── stretches full height, content stays at top */
.sidebar {
    background: transparent;
    border-right: none;
    position: sticky;
    top: 0;
    align-self: stretch;
    overflow: visible;
    scrollbar-width: none;
    z-index: 5;
}
.sidebar::-webkit-scrollbar { display: none; }

/* ── Sidebar sections — compact so all items fit ── */
.sb-section { border-bottom: 1px solid var(--border); }
.sb-head {
    padding: 7px 14px;
    font-weight: 800; font-size: 0.65rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted); background: #fafafa;
}
.sb-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 14px;
    font-size: 0.76rem; color: var(--text);
    transition: background 0.14s, color 0.14s;
    cursor: pointer; white-space: nowrap;
    text-decoration: none;
}
.sb-item:hover { background: var(--primary-lt); color: var(--primary); }
.sb-item svg  { width: 14px; height: 14px; flex-shrink: 0; color: var(--muted); }
.sb-item:hover svg { color: var(--primary); }
.sb-arrow { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.sb-arrow svg { width: 11px; height: 11px; }
.sb-item.featured { color: var(--primary); font-weight: 700; }
.sb-item.featured svg { color: var(--primary); }

/* ── Main content ── */
.main-content { min-width: 0; padding: 16px 18px 30px; }

/* ─────────────────────────────────────────
   SECTION HELPERS
───────────────────────────────────────── */
.section { margin-top: 20px; }
.section-head {
    display: flex; align-items: center;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 14px; gap: 12px;
}
.section-head h2 { font-size: 1rem; font-weight: 800; color: var(--text); }
.section-head a  { font-size: 0.78rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.eyebrow,
.section-eyebrow,
.download-kicker {
    display: inline-block;
    background: var(--primary-lt); color: var(--primary);
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px; margin-bottom: 3px;
}
.section-eyebrow,
.download-kicker { padding: 8px 12px; font-size: 0.78rem; letter-spacing: 0.04em; }

/* ─────────────────────────────────────────
   HERO SLIDER
───────────────────────────────────────── */
.hero-wrap,
.hero-slider { position: relative; }
.hero-wrap {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;              /* white bg behind image */
}
.hero-slide,
.hero-card {
    display: none; position: relative;
    min-height: 440px;
    background-size: contain;          /* poori image, no crop */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #fff;
}
.hero-card {
    border-radius: 18px; overflow: hidden;
    min-height: 580px; box-shadow: var(--shadow);
}
.hero-slide.is-active { display: flex; align-items: center; }
.hero-card.is-active  { display: block; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 65%, transparent 100%);
}
.hero-content {
    position: relative; z-index: 2;
    padding: 40px 48px; color: #fff; max-width: 500px;
}
.hero-tag {
    display: inline-block;
    background: var(--primary); color: #fff;
    font-size: 0.64rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero-content h2 {
    font-size: 2rem; font-weight: 900;
    line-height: 1.15; margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p  { font-size: 0.92rem; opacity: 0.9; margin-bottom: 20px; }
.hero-cta {
    display: inline-block;
    background: #fff; color: var(--primary);
    font-weight: 800; padding: 10px 24px;
    border-radius: 10px; font-size: 0.86rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    transition: transform 0.18s;
}
.hero-cta:hover { transform: scale(1.03); }

/* Hero Arrows */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: grid; place-items: center;
    transition: background 0.18s, transform 0.18s;
    font-size: 2rem; line-height: 1; border: 0; color: #304154;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.hero-arrow svg   { width: 18px; height: 18px; color: var(--text); }
.hero-arrow-l, .hero-arrow-left  { left: 12px; }
.hero-arrow-r, .hero-arrow-right { right: 12px; }

/* Hero Dots */
.hero-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.hero-dot  {
    width: 22px; height: 4px; border-radius: 999px;
    background: #cbd5e1; border: 0; cursor: pointer;
    transition: width 0.25s, background 0.25s;
}
.hero-dot.is-active { width: 38px; background: var(--primary); }

/* ─────────────────────────────────────────
   BRAND STRIP / TABS
───────────────────────────────────────── */
.brand-strip {
    display: flex; gap: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin-top: 14px;
}
.brand-chip, .brand-tab {
    flex: 1; padding: 11px 12px; text-align: center;
    border-right: 1px solid var(--border);
    cursor: pointer; transition: background 0.16s;
    background: #fff;
}
.brand-tab { padding: 14px 18px; box-shadow: none; }
.brand-chip:last-child,
.brand-tab:last-child  { border-right: 0; }
.brand-chip:hover, .brand-chip.active { background: var(--primary-lt); }
.brand-chip strong, .brand-tab strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text); }
.brand-chip span,   .brand-tab span   { font-size: 0.7rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.brand-tabs {
    display: grid; grid-template-columns: repeat(5,1fr);
    gap: 0; overflow: hidden;
    border-radius: 0 0 16px 16px; margin-top: -4px;
}
.brand-tab.is-active { border-bottom: 3px solid #dd2735; }
.brand-tab.is-active strong,
.brand-tab.is-active span { color: #d62839; }


/* ─────────────────────────────────────────
   PRINTER CATEGORIES STRIP
   Full-width section between cat-nav and
   page-wrap. DB-driven, replaces the old
   static "SHOP BY CATEGORY" grid.
───────────────────────────────────────── */
.printer-cat-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0 18px;
    box-shadow: 0 2px 8px rgba(19,34,56,0.04);
}
.pcs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.pcs-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}
.pcs-viewall {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}
.pcs-viewall:hover { text-decoration: underline; }

/* Card grid — scrollable on mobile */
.pcs-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

/* Individual card */
.pcs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    box-shadow: 0 1px 6px rgba(19,34,56,0.05);
    overflow: hidden;
}
.pcs-card:hover {
    box-shadow: 0 8px 24px rgba(11,92,171,0.13);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Slider inside card — taller on desktop, compact on mobile */
.pcs-card .qc-slider {
    height: 80px;
    width: 100%;
    border-radius: 10px;
    background: #f4f7fb;
}

.pcs-label {
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

/* ─────────────────────────────────────────
   QUICK CATEGORIES / TONER BAR (inside main)
───────────────────────────────────────── */
.quick-categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(19,34,56,0.05);
}

/* Legacy .qc-bar wrapper (used in home page layout) */
.qc-bar {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
}
.qc-bar-title {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--muted); margin-bottom: 12px;
}

/* Shared grid */
.qc-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    padding: 18px 0 20px;
}
.qc-bar .qc-grid { padding: 0; gap: 10px; }

/* Individual card */
.qc-card,
.quick-category {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; cursor: pointer;
    padding: 12px 10px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
    transition: box-shadow 0.18s, transform 0.18s;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
}
.qc-card:hover,
.quick-category:hover {
    box-shadow: 0 18px 36px rgba(11,92,171,0.14);
    transform: translateY(-2px);
}

/* Image slider inside card */
.qc-slider {
    position: relative;
    width: 100%; height: 88px;
    border-radius: 10px; overflow: hidden;
    background: #f4f7fb;
}
.qc-bar .qc-slider { height: 68px; }

.qc-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 0.5s ease;
    display: flex; align-items: center;
    justify-content: center; padding: 6px;
}
.qc-slide.is-active { opacity: 1; }
.qc-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Dot indicators */
.qc-dots {
    position: absolute; bottom: 5px;
    left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px; z-index: 2;
}
.qc-dot {
    width: 5px; height: 5px; border-radius: 999px;
    background: rgba(0,0,0,0.20);
    transition: background 0.2s, width 0.2s; display: block;
}
.qc-dot.is-active { width: 12px; background: var(--primary); }

/* Category name */
.qc-label {
    font-size: 0.82rem; font-weight: 700;
    text-align: center; line-height: 1.25; color: var(--text);
}
.qc-bar .qc-label { font-size: 0.7rem; }

/* ─────────────────────────────────────────
   SHOP BY CATEGORY TILES
───────────────────────────────────────── */
.shop-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.shop-cat-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 10px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; cursor: pointer;
    text-align: center;
    transition: box-shadow 0.18s, transform 0.18s;
}
.shop-cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.shop-cat-img {
    width: 100%; height: 120px;
    border-radius: 8px; overflow: hidden;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
}
.shop-cat-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-cat-name { font-size: 0.76rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.shop-cat-tag  { font-size: 0.68rem; color: var(--primary); font-weight: 600; }

/* ─────────────────────────────────────────
   PROMO TILES / GRID
───────────────────────────────────────── */
.promo-grid,
.promo-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-top: 16px;
}
.promo-grid { gap: 18px; margin-top: 18px; }
.promo-tile {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    cursor: pointer; transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: var(--shadow);
}
.promo-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.promo-tile-img,
.promo-tile-image   { width: 100%; height: 118px; object-fit: cover; display: block; }
.promo-tile-image   { height: 138px; }
.promo-tile-img.ph  { height: 118px; }
.promo-tile-body,
.promo-tile-copy  {
    padding: 10px 14px;
    display: flex; justify-content: space-between;
    align-items: center; gap: 8px;
}
.promo-tile-copy { padding: 14px 16px; }
.promo-tile-body strong,
.promo-tile-copy strong { font-size: 0.8rem; font-weight: 700; display: block; }
.promo-tile-body span   { font-size: 0.74rem; color: var(--primary); font-weight: 700; white-space: nowrap; }
.promo-tile-copy span   { color: #d62839; font-weight: 700; display: block; }

/* ─────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.product-card,
.pcard {
    background: #fff; border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow);
}
.pcard { border-radius: var(--radius); }
.product-card:hover,
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* Badges */
.badge,
.pcard-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--primary); color: #fff;
    font-size: 0.62rem; font-weight: 800;
    padding: 3px 9px; border-radius: 999px;
    letter-spacing: 0.03em;
}
.badge { top: 18px; left: 18px; padding: 8px 12px; background: #fff2cd; color: #875800; font-size: 0.78rem; font-weight: 700; }

.pcard-wish {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 30px; height: 30px; background: #fff;
    border: 1px solid var(--border); border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: border-color 0.18s;
}
.pcard-wish:hover  { border-color: var(--accent); }
.pcard-wish svg    { width: 14px; height: 14px; color: var(--muted); transition: color 0.18s; }
.pcard-wish.wished svg { color: var(--accent); fill: var(--accent); }
.pcard-wish.wished { border-color: rgba(229, 29, 47, 0.4); background: rgba(229, 29, 47, 0.08); cursor: pointer; }

/* Product Image */
.product-image,
.pcard-img-wrap {
    background: #f8fafc; height: 180px;
    display: flex; align-items: center;
    justify-content: center; padding: 14px; overflow: hidden;
}
.product-image {
    width: 100%; height: 180px; object-fit: cover;
    display: block; border-radius: 16px; margin-bottom: 16px;
    padding: 0;
}
.pcard-img-wrap img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.3s;
}
.pcard:hover .pcard-img-wrap img { transform: scale(1.06); }

/* Product Body */
.pcard-body {
    padding: 12px 14px; flex: 1;
    display: flex; flex-direction: column; gap: 5px;
}
.pcard-brand  { font-size: 0.68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.pcard-name   {
    font-size: 0.82rem; font-weight: 700;
    line-height: 1.35; color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sku  { color: var(--muted); }
.pcard-rating { display: flex; align-items: center; gap: 5px; }
.pcard-stars  { color: #f59e0b; font-size: 0.72rem; letter-spacing: 1px; }
.pcard-rcount { font-size: 0.68rem; color: var(--muted); }
.pcard-price-row {
    display: flex; align-items: baseline;
    gap: 7px; margin-top: auto; flex-wrap: wrap;
}
.price,
.pcard-price { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.pcard-orig  { font-size: 0.74rem; color: var(--muted); text-decoration: line-through; }
.pcard-off   { font-size: 0.7rem; font-weight: 800; color: var(--green); }

.pcard-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: #fafbfe;
}
.buy-btn,
.product-card button {
    width: 100%; background: var(--primary); color: #fff;
    border-radius: 8px; padding: 9px;
    font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.04em;
    transition: background 0.18s, transform 0.12s;
    border: 0; cursor: pointer;
}
.product-card button { padding: 16px; border-radius: 8px; }
.buy-btn:hover,
.product-card button:hover  { background: var(--primary-dk); }
.buy-btn:active   { transform: scale(0.98); }
.buy-btn:disabled,
.product-card button:disabled { background: #94a3b8; cursor: default; }
.buy-btn.added    { background: var(--green); }

/* ─────────────────────────────────────────
   ABOUT / STATS BAND
───────────────────────────────────────── */
.about-band {
    background: linear-gradient(135deg, #0b5cab 0%, #0d47a1 100%);
    color: #fff; border-radius: 16px; overflow: hidden;
}
.about-inner { display: grid; grid-template-columns: 1fr 1fr; }
.about-text  { padding: 44px 48px; }
.about-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15); color: #fff;
    font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.about-text h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; line-height: 1.2; }
.about-text p  { opacity: 0.88; line-height: 1.7; margin-bottom: 16px; font-size: 0.86rem; }
.about-link {
    display: inline-block;
    background: #fff; color: var(--primary);
    font-weight: 800; padding: 10px 22px;
    border-radius: 10px; font-size: 0.84rem;
    transition: transform 0.18s;
}
.about-link:hover { transform: scale(1.03); }
.about-stats-grid {
    padding: 44px 36px; background: rgba(0,0,0,0.12);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; align-content: center;
}
.stat-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px; padding: 18px; text-align: center;
}
.stat-card strong { display: block; font-size: 1.9rem; font-weight: 900; }
.stat-card span   { font-size: 0.74rem; opacity: 0.85; }

/* ─────────────────────────────────────────
   BLOG SECTION
───────────────────────────────────────── */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.blog-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-img { height: 155px; overflow: hidden; background: #f8fafc; }
.blog-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-img.ph { height: 155px; }
.blog-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.blog-meta  { display: flex; gap: 8px; align-items: center; }
.blog-tag   {
    background: var(--primary-lt); color: var(--primary);
    font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
}
.blog-date  { font-size: 0.7rem; color: var(--muted); }
.blog-body h3 { font-size: 0.86rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.blog-body p  { font-size: 0.76rem; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-foot  { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.blog-read  { font-size: 0.7rem; color: var(--muted); }
.blog-link  { font-size: 0.76rem; font-weight: 700; color: var(--primary); }

/* ─────────────────────────────────────────
   TRUST BADGES
───────────────────────────────────────── */
.trust-band {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); margin-top: 20px; overflow: hidden;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: 0; }
.trust-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-lt); display: grid;
    place-items: center; flex-shrink: 0; color: var(--primary);
}
.trust-icon svg    { width: 20px; height: 20px; }
.trust-item strong { display: block; font-size: 0.82rem; font-weight: 700; }
.trust-item small  { color: var(--muted); font-size: 0.7rem; }

/* ─────────────────────────────────────────
   OFFER BANNERS
───────────────────────────────────────── */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.offer-card  {
    border-radius: 12px; padding: 18px 20px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 14px;
    border: 1.5px dashed;
}
.offer-tag   { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.offer-title { font-size: 1.2rem; font-weight: 900; display: block; line-height: 1; }
.offer-desc  { font-size: 0.72rem; color: #555; display: block; margin-top: 3px; }
.offer-code  {
    padding: 7px 12px; border-radius: 8px;
    background: rgba(255,255,255,0.75); border: 1.5px dashed currentColor;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
    white-space: nowrap; flex-shrink: 0; cursor: pointer;
    transition: background 0.18s; user-select: none;
}
.offer-code:hover { background: rgba(255,255,255,0.98); }

/* ─────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────── */
.newsletter {
    background: linear-gradient(135deg, #0b5cab, #1a7de8);
    color: #fff; padding: 28px 0; margin-top: 24px;
}
.newsletter-inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.nl-copy h3 { font-size: 1.08rem; margin-bottom: 3px; }
.nl-copy p  { opacity: 0.88; font-size: 0.84rem; }
.nl-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #fff;
    min-width: 320px;
    padding: 8px;
}
.nl-form input  {
    flex: 1;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    outline: 0;
    padding: 10px 12px;
    font-size: 0.86rem;
    color: var(--text);
}
.nl-form input:focus { border-color: #86b7ff; box-shadow: 0 0 0 2px rgba(134, 183, 255, 0.28); }
.nl-form button { background: var(--accent); color: #fff; padding: 11px 18px; font-weight: 700; font-size: 0.84rem; transition: opacity 0.18s; }
.nl-form button:hover { opacity: 0.9; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer { background: #0a2744; color: #fff; margin-top: 24px; }
.footer-shell { padding: 40px 0 20px; }
.footer-top {
    display: grid; gap: 36px; align-items: start;
    grid-template-columns: repeat(3, 1fr) 200px;
}
.footer-columns {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}
.footer-col h4,
.footer-column h3,
.footer-connect h3 {
    font-size: 0.8rem; font-weight: 800; margin-bottom: 14px;
    opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em;
    margin: 0 0 16px;
}
.footer-links,
.footer-link-grid { display: flex; flex-direction: column; gap: 8px; }
.footer-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; }
.footer-links a,
.footer-link-grid a,
.footer-policy-links a,
.footer-region { font-size: 0.8rem; color: rgba(255,255,255,0.8); transition: color 0.18s; }
.footer-links a:hover,
.footer-link-grid a:hover { color: #fff; }
.footer-social-wrap h4 { font-size: 0.8rem; font-weight: 800; margin-bottom: 14px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-link {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: grid; place-items: center;
    color: #fff; transition: background 0.18s;
}
.footer-social-link svg { width: 16px; height: 16px; }
.footer-social-link:hover { background: rgba(255,255,255,0.25); }
.footer-bottom {
    margin-top: 28px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-copy,
.footer-copyright { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-align: center; margin-top: 16px; }

/* ─────────────────────────────────────────
   MOBILE BOTTOM BAR
───────────────────────────────────────── */
.mob-bar,
.mobile-bottom-bar { display: none; }

.mob-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 8px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.mob-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    font-size: 0.62rem; font-weight: 700;
    color: var(--muted); padding: 5px 0;
}
.mob-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--bg); display: grid;
    place-items: center; color: var(--muted);
    transition: background 0.18s, color 0.18s;
}
.mob-icon svg { width: 18px; height: 18px; }
.mob-item.active .mob-icon { background: var(--primary); color: #fff; }
.mob-item.active { color: var(--primary); }

/* App-style mobile bar */
.mobile-bottom-item {
    display: grid; justify-items: center; gap: 4px;
    color: #6b7a90; font-weight: 700;
}
.mobile-nav-icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center;
    background: #eef3fb; color: var(--primary);
}
.mobile-nav-icon::before {
    content: ""; width: 18px; height: 18px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.mobile-nav-icon-home::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
}
.mobile-nav-icon-shop::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7V6a6 6 0 0 1 12 0v1'/%3E%3Cpath d='M4 7h16l-1 13H5L4 7Z'/%3E%3Cpath d='M10 11a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
}
.mobile-nav-icon-cart::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.2a1 1 0 0 0 1 .8h9.7a1 1 0 0 0 1-.8L21 7H7'/%3E%3C/svg%3E");
}
.mobile-nav-icon-account::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.mobile-bottom-item small { font-size: 0.76rem; }
.mobile-bottom-item.is-active .mobile-nav-icon {
    background: linear-gradient(135deg, #0b5cab 0%, #1082ea 100%);
}
.mobile-bottom-item.is-active .mobile-nav-icon::before {
    filter: brightness(0) invert(1);
}
.mobile-bottom-item.is-active small { color: var(--primary); }

/* ─────────────────────────────────────────
   PWA / DOWNLOAD / INSTALL MODAL
───────────────────────────────────────── */
.install-modal[hidden],
.download-modal[hidden] { display: none !important; }
.download-modal { position: fixed; inset: 0; z-index: 60; }
.install-modal  {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: flex-end; justify-content: center;
    padding: clamp(10px, 2.2vw, 18px);
}

.install-backdrop,
.download-backdrop {
    position: absolute; inset: 0;
    background: rgba(4,17,35,0.56); backdrop-filter: blur(6px);
}
.install-dialog,
.download-dialog {
    position: relative;
    width: min(calc(100% - 24px), 520px);
    margin: 0;
    padding: 28px; background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.install-close,
.download-close {
    position: absolute; top: 14px; right: 14px;
    width: 40px; height: 40px; border-radius: 50%;
    background: #edf4fb; display: grid;
    place-items: center; font-size: 0.9rem;
    color: var(--primary); font-weight: 700; border: 0;
}
.install-close:hover,
.download-close:hover { background: var(--border); }
.install-kicker,
.download-kicker { margin-bottom: 10px; }
.install-dialog h2,
.download-dialog h2 { font-size: 1.25rem; margin-bottom: 8px; }
.install-dialog p,
.download-copy  { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.install-points,
.download-points {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 18px;
}
.install-point,
.download-points div {
    padding: 16px; border-radius: 16px;
    background: #fff; border: 1px solid var(--border);
}
.install-point strong,
.install-point span,
.download-points strong,
.download-points span { display: block; }
.install-point span,
.download-points span { margin-top: 6px; color: var(--muted); font-size: 0.76rem; }
.install-actions,
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-install, .btn {
    flex: 1; background: var(--primary); color: #fff;
    padding: 11px; border-radius: 10px; font-weight: 700; font-size: 0.88rem;
    transition: background 0.18s; border: 0; cursor: pointer; text-align: center;
}
.btn-install:hover { background: var(--primary-dk); }
.btn-cancel {
    flex: 1; border: 2px solid var(--border);
    padding: 11px; border-radius: 10px;
    font-weight: 700; font-size: 0.88rem;
    color: var(--text); transition: border-color 0.18s;
}
.btn-cancel:hover { border-color: var(--primary); }
.install-help,
.download-help { margin-top: 10px; font-size: 0.74rem; color: var(--muted); text-align: center; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

/* Large screens */
@media (max-width: 1400px) {
    .masthead-main {
        grid-template-columns: 260px 200px minmax(0,1fr) 300px;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .pcs-grid     { grid-template-columns: repeat(6, 1fr); }
}

/* Large tablets */
@media (max-width: 1200px) {
    .masthead-inner     { grid-template-columns: 200px 1fr auto; }
    .location-pill      { display: none; }
    .page-wrap          { grid-template-columns: 200px 1fr; }
    .shop-cat-grid      { grid-template-columns: repeat(4, 1fr); }
    .product-grid       { grid-template-columns: repeat(3, 1fr); }
    .qc-grid            { grid-template-columns: repeat(4, 1fr); }
    .pcs-grid           { grid-template-columns: repeat(5, 1fr); }
}

/* Tablets */
@media (max-width: 980px) {
    .page-wrap          { grid-template-columns: 1fr; }
    .sidebar            { display: none; }
    .masthead-inner     { grid-template-columns: auto 1fr auto; gap: 10px; }
    .masthead-main {
        display: flex; flex-direction: column;
        align-items: stretch; padding: 12px 0;
    }
    .delivery-pill,
    .utility-nav        { display: none; }
    .product-grid       { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .shop-cat-grid      { grid-template-columns: repeat(4, 1fr); }
    .promo-row,
    .promo-grid         { grid-template-columns: repeat(2, 1fr); }
    .about-inner        { grid-template-columns: 1fr; }
    .about-stats-grid   { grid-template-columns: repeat(4, 1fr); padding: 22px; }
    .blog-grid          { grid-template-columns: repeat(2, 1fr); }
    .footer-top         { grid-template-columns: repeat(2, 1fr); }
    .footer-columns,
    .footer-link-grid,
    .footer-bottom      { grid-template-columns: 1fr; }
    .footer-policy-links { justify-content: flex-start; }
    .trust-grid         { grid-template-columns: repeat(2, 1fr); }
    .offers-grid        { grid-template-columns: 1fr 1fr; }
    .offers-grid .offer-card:last-child { grid-column: 1 / -1; }
    .brand-tabs,
    .download-points    { grid-template-columns: 1fr; }
    .qc-grid            { grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 12px; }
    .hero-card          { min-height: 420px; }
    /* Printer cat strip — 4 col on tablets */
    .pcs-grid           { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .pcs-card .qc-slider { height: 72px; }
}

/* ═══════════════════════════
   MOBILE  ≤ 640px
═══════════════════════════ */
@media (max-width: 640px) {

    /* ── Global ── */
    body        { padding-bottom: 90px; font-size: 13px; }
    .container  { width: calc(100% - 16px); }
    .section    { margin-top: 14px; }

    /* Prevent ANY element from overflowing viewport width */
    .masthead,
    .masthead-inner,
    .cat-nav,
    .printer-cat-strip,
    .page-body-wrap,
    .page-wrap,
    .main-content,
    .brand-strip,
    .qc-bar,
    .newsletter,
    .hero-wrap       { max-width: 100vw; overflow-x: hidden; }

    /* ── Promo strip hidden ── */
    .promo-strip { display: none; }

    /* ── Masthead: logo row + search row ── */
    .masthead { position: fixed; left: 0; right: 0; top: 0 !important; z-index: 120; background: #fff; }
    .masthead-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px;
        padding: 8px 0 6px;
        align-items: center;
    }
    .logo-wrap          { grid-column: 1; grid-row: 1; }
    .util-nav           { grid-column: 2; grid-row: 1; }
    .search-bar         { grid-column: 1 / -1; grid-row: 2; }
    .location-pill      { display: none; }
    /* Hide text labels in util buttons, keep icons only */
    .util-btn span:not(.util-icon):not(.cart-count) { display: none; }
    .logo-text span     { display: none; }
    .util-btn           { padding: 4px 5px; }
    .util-icon          { width: 30px; height: 30px; }
    /* Search bar compact */
    .search-bar         { border-radius: 999px; gap: 0; padding: 0; box-shadow: inset 0 1px 2px rgba(15,23,42,.04); }
    .search-bar input   { padding: 9px 12px; font-size: 0.82rem; }
    .search-btn         { min-width: 48px; height: 38px; border-left: 1px solid #d7dee8; }
    .search-btn svg     { width: 14px; height: 14px; }
    /* Logo compact */
    .logo-mark          { width: 34px; height: 34px; font-size: 0.85rem; border-radius: 9px; }
    .logo-text strong   { font-size: 0.88rem; }

    /* ── Category nav hidden on mobile ── */
    .cat-nav { display: none; }

    /* ── Printer Categories Strip ──
       4 cards per row, scrollable horizontally  */
    .printer-cat-strip  { padding: 10px 0 12px; }
    .pcs-head           { margin-bottom: 8px; }
    .pcs-title          { font-size: 0.7rem; }
    .pcs-viewall        { font-size: 0.72rem; }
    .pcs-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .pcs-grid::-webkit-scrollbar { display: none; }
    .pcs-card           { padding: 7px 5px 9px; border-radius: 10px; gap: 6px; }
    .pcs-card .qc-slider { height: 60px; }
    .pcs-label          { font-size: 0.6rem; line-height: 1.2; }

    /* ── Page body — single column, NO sidebar ── */
    .page-body-wrap     { padding-top: 0; padding-bottom: 0; }
    .page-wrap          { display: block !important; grid-template-columns: none !important; }
    .page-wrap::before  { display: none !important; }   /* sidebar bg strip hatao */
    .sidebar            { display: none !important; }
    .main-content       { padding: 8px 0 0; width: 100%; min-width: 0; }

    /* ── Hero Slider ── */
    .hero-wrap          { border-radius: 10px; background: #fff; }
    .hero-slide         {
        min-height: 200px;
        background-size: contain;
        background-position: center center;
        background-color: #fff;
    }
    /* Hide left/right arrows on mobile — touch swipe works */
    .hero-arrow         { display: none !important; }
    .hero-dots          { gap: 5px; margin-top: 8px; }
    .hero-dot           { width: 16px; height: 3px; }
    .hero-dot.is-active { width: 28px; }

    /* ── Brand strip — scrollable, NOT clipped ── */
    .brand-strip  { overflow-x: auto !important; scrollbar-width: none; border-radius: 8px; margin-top: 10px; }
    .brand-strip::-webkit-scrollbar { display: none; }
    .brand-chip         { flex-shrink: 0; min-width: 100px; padding: 8px 10px; }
    .brand-chip strong  { font-size: 0.72rem; }
    .brand-chip span    { font-size: 0.62rem; }

    /* ── QC bar (Toner section inside main) ── */
    .qc-bar             { padding: 10px 10px; border-radius: 10px; }
    .qc-bar-title       { font-size: 0.65rem; margin-bottom: 8px; }
    .qc-grid            { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 0; }
    .qc-card            { padding: 7px 5px 9px; border-radius: 10px; gap: 6px; }
    .qc-slider          { height: 60px; }
    .qc-label           { font-size: 0.6rem; }
    .section-head       { margin-bottom: 10px; }
    .section-head h2    { font-size: 0.9rem; }
    .eyebrow            { font-size: 0.58rem; padding: 2px 7px; }

    /* ── Shop by Category tiles ── */
    .shop-cat-grid      { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .shop-cat-card      { padding: 8px 5px; gap: 6px; border-radius: 10px; }
    .shop-cat-img       { height: 90px; padding: 6px; }
    .shop-cat-name      { font-size: 0.68rem; }
    .shop-cat-tag       { font-size: 0.62rem; }

    /* ── Promo tiles ── */
    .promo-row,
    .promo-grid         { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
    .promo-tile         { border-radius: 10px; }
    .promo-tile-img     { height: 88px; }
    .promo-tile-img.ph  { height: 88px; }
    .promo-tile-body    { padding: 7px 9px; }
    .promo-tile-body strong { font-size: 0.72rem; }
    .promo-tile-body span   { font-size: 0.66rem; }

    /* ── Product cards ── */
    .product-grid       { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pcard              { border-radius: 10px; }
    .pcard-badge        { font-size: 0.55rem; padding: 2px 7px; top: 7px; left: 7px; }
    .pcard-wish         { width: 26px; height: 26px; top: 7px; right: 7px; }
    .pcard-wish svg     { width: 12px; height: 12px; }
    .pcard-img-wrap     { height: 120px; padding: 10px; }
    .pcard-body         { padding: 8px; gap: 4px; }
    .pcard-brand        { font-size: 0.6rem; }
    .pcard-name         { font-size: 0.75rem; -webkit-line-clamp: 2; }
    .pcard-stars        { font-size: 0.65rem; }
    .pcard-rcount       { font-size: 0.6rem; }
    .pcard-price        { font-size: 0.9rem; }
    .pcard-orig         { font-size: 0.65rem; }
    .pcard-off          { font-size: 0.62rem; }
    .pcard-footer       { padding: 7px 8px; }
    .buy-btn            { padding: 7px; font-size: 0.7rem; border-radius: 6px; }

    /* ── About band ── */
    .about-band         { border-radius: 12px; }
    .about-inner        { grid-template-columns: 1fr; }
    .about-text         { padding: 20px 18px; }
    .about-text h2      { font-size: 1.15rem; margin-bottom: 8px; }
    .about-text p       { font-size: 0.78rem; margin-bottom: 10px; }
    .about-eyebrow      { font-size: 0.62rem; }
    .about-link         { font-size: 0.78rem; padding: 8px 16px; }
    .about-stats-grid   { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 10px; }
    .stat-card          { padding: 14px 10px; border-radius: 10px; }
    .stat-card strong   { font-size: 1.5rem; }
    .stat-card span     { font-size: 0.66rem; }

    /* ── Blog ── */
    .blog-grid          { grid-template-columns: 1fr; gap: 10px; }
    .blog-card          { border-radius: 10px; }
    .blog-img           { height: 140px; }
    .blog-body          { padding: 12px; gap: 5px; }
    .blog-body h3       { font-size: 0.82rem; }
    .blog-body p        { font-size: 0.72rem; }

    /* ── Trust badges ── */
    .trust-band         { border-radius: 10px; }
    .trust-grid         { grid-template-columns: repeat(2, 1fr); }
    .trust-item         { padding: 10px 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
    .trust-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .trust-item:last-child,
    .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .trust-icon         { width: 34px; height: 34px; }
    .trust-icon svg     { width: 16px; height: 16px; }
    .trust-item strong  { font-size: 0.75rem; }
    .trust-item small   { font-size: 0.62rem; }

    /* ── Offer banners ── */
    .offers-grid        { grid-template-columns: 1fr; gap: 8px; }
    .offer-card         { padding: 14px 16px; border-radius: 10px; }
    .offer-title        { font-size: 1rem; }
    .offer-desc         { font-size: 0.66rem; }
    .offer-code         { padding: 6px 10px; font-size: 0.66rem; }

    /* ── Newsletter ── */
    .newsletter         { padding: 20px 0; }
    .newsletter-inner   { flex-direction: column; gap: 12px; align-items: stretch; }
    .nl-copy h3         { font-size: 0.9rem; }
    .nl-copy p          { font-size: 0.76rem; }
    .nl-form            { min-width: 0; border-radius: 8px; flex-wrap: wrap; }
    .nl-form input      { min-width: 0; width: 100%; padding: 10px 12px; font-size: 0.8rem; }
    .nl-form button     { width: 100%; padding: 10px 14px; font-size: 0.8rem; }

    /* ── Footer hidden, replaced by mob-bar ── */
    .site-footer        { display: none; }

    /* ── PWA Modal ── */
    .install-modal .install-dialog {
        width: min(100%, 520px);
        padding: 20px; border-radius: 16px;
    }
    .install-points     { grid-template-columns: 1fr; gap: 8px; }
    .install-actions    { flex-direction: column; }
    .btn-install,
    .btn-cancel         { text-align: center; }

    /* ── Mobile bottom bar ── */
    .mob-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 8px; right: 8px; bottom: 8px;
        z-index: 50;
        background: rgba(255,255,255,0.98);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 6px 8px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.14);
        gap: 2px;
    }
    .mob-item           { font-size: 0.58rem; padding: 4px 0; gap: 2px; }
    .mob-icon           { width: 30px; height: 30px; border-radius: 8px; }
    .mob-icon svg       { width: 16px; height: 16px; }
}