/* =========================================================
   রসুইঘর — Storefront & Customer Panel (Professional theme v2)
   থিম: moshla (সবুজ) | pudina (টিল) | begun (বেগুনি)
   ========================================================= */
:root, [data-theme="moshla"] {
    --brand: #14553f;
    --brand-dark: #0d3d2d;
    --brand-soft: #e8f1ed;
    --accent: #f28c28;
    --accent-dark: #d9740f;
    --accent-soft: #fff3e6;
    --hot: #e03131;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --ink: #1c2321;
    --ink-2: #3b4542;
    --muted: #6f7975;
    --line: #e4e7eb;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16,24,40,.05);
    --shadow-lg: 0 12px 32px rgba(16,24,40,.10);
}
[data-theme="pudina"] { --brand: #0f6e6a; --brand-dark: #0a4f4c; --brand-soft: #e3f2f1; --accent: #f59e0b; --accent-dark: #d97706; --accent-soft: #fef3c7; }
[data-theme="begun"]  { --brand: #4c2a6e; --brand-dark: #351c4e; --brand-soft: #efe9f5; --accent: #ee8a2d; --accent-dark: #d4741b; --accent-soft: #fdf0e2; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15.5px; scroll-behavior: smooth; }
html[data-font="large"] { font-size: 18px; }
body { font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.only-sm { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; font-size: .93rem; white-space: nowrap; background: var(--surface); line-height: 1.3; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #cfd4da; background: #fafbfc; }
.btn-danger { background: #fff1f0; color: #c92a2a; border-color: #ffd8d6; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-wa { background: #25d366; color: #fff; }

/* ---------- Top bars ---------- */
.offer-bar { background: var(--premium, var(--accent)); color: #fff; font-size: .88rem; }
.offer-bar .container { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; text-align: center; }
.offer-bar strong { font-weight: 700; }
.countdown { display: inline-flex; gap: 4px; align-items: center; }
.countdown span { background: rgba(0,0,0,.18); border-radius: 5px; padding: 1px 7px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 30px; text-align: center; }
.notice-bar { background: var(--topbar, var(--brand-dark)); color: #e9f2ee; font-size: .84rem; text-align: center; padding: 6px 12px; }
.topline { background: var(--topbar, var(--brand-dark)); color: #cfe0d8; font-size: .8rem; }
.topline .container { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; gap: 12px; }
.topline a:hover { color: #fff; }
.topline .links { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-main { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; }
.logo-text strong { display: block; font-size: 1.4rem; line-height: 1.05; color: var(--brand); font-weight: 700; letter-spacing: -.2px; }
.logo-text span { font-size: .72rem; color: var(--muted); }
.logo img { height: var(--logo-h, 48px); width: auto; max-width: 260px; object-fit: contain; }

.search { flex: 1; position: relative; max-width: 680px; }
.search form { display: flex; border: 2px solid var(--brand); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 14px; outline: 0; min-width: 0; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 22px; cursor: pointer; font-size: 1.05rem; }
.suggest-box { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 60; border: 1px solid var(--line); }
.suggest-box.show { display: block; }
.suggest-box a { display: flex; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.suggest-box a:hover { background: #f8f9fa; }
.suggest-box .s-img { width: 42px; height: 42px; border-radius: 6px; background: #f1f3f5; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: #adb5bd; }
.suggest-box .s-img img { width: 100%; height: 100%; object-fit: cover; }
.suggest-box .s-price { margin-left: auto; color: var(--brand); font-weight: 700; }

.header-actions { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.h-icon { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: .82rem; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.h-icon i { font-size: 1.4rem; color: var(--ink); }
.h-icon .lbl small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.1; }
.h-icon .lbl b { display: block; font-weight: 600; line-height: 1.2; }
.h-icon:hover { background: #f4f5f7; }
.h-icon .count { position: absolute; top: 2px; left: 26px; background: var(--hot); color: #fff; font-size: .66rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

/* ---------- Category nav + mega menu ---------- */
.cat-nav { background: var(--brand); color: #fff; }
.cat-nav > .container { display: flex; align-items: stretch; gap: 2px; }
.nav-all { position: relative; }
.nav-all > button { display: flex; align-items: center; gap: 8px; background: var(--brand-dark); color: #fff; border: 0; padding: 11px 18px; font-weight: 600; cursor: pointer; height: 100%; min-width: 230px; }
.nav-links { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; padding: 11px 14px; white-space: nowrap; font-size: .92rem; font-weight: 500; color: #e7f0ec; }
.nav-item > a:hover, .nav-item > a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-item > a .bi-chevron-down { font-size: .7rem; opacity: .8; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; color: var(--ink); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 70; border: 1px solid var(--line); border-top: 0; }
.nav-item:hover .dropdown, .nav-all:hover .dropdown, .nav-all:focus-within .dropdown { display: block; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 6px; font-size: .92rem; }
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown .sub-group { margin-bottom: 4px; }
.dropdown .sub-group > a { font-weight: 600; }
.dropdown .child { padding-left: 26px; font-size: .86rem; color: var(--ink-2); }
.dropdown .child::before { content: '–'; margin-right: 6px; color: var(--muted); }
.dropdown .child { justify-content: flex-start; }
/* "সব ক্যাটাগরি" ফ্লাইআউট */
.flyout { width: 260px; padding: 6px 0; overflow: visible; }
.flyout > .fly { position: relative; }
.flyout > .fly > a { border-radius: 0; padding: 9px 16px; }
.flyout > .fly > a .thumb-sm { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; background: #f1f3f5; display: grid; place-items: center; color: #adb5bd; font-size: .8rem; flex-shrink: 0; }
.flyout > .fly > a .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.flyout > .fly > a > span { display: flex; align-items: center; gap: 10px; }
.flyout .fly-panel { display: none; position: absolute; left: 100%; top: -6px; min-width: 520px; min-height: calc(100% + 12px); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-radius: 0 10px 10px 0; padding: 18px 20px; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; align-content: start; }
.flyout > .fly:hover .fly-panel { display: grid; }
.fly-panel h5 { font-size: .95rem; margin-bottom: 4px; }
.fly-panel h5 a { padding: 0; }
.fly-panel h5 a:hover { background: none; }
.fly-panel .kids a { padding: 3px 0; font-size: .86rem; color: var(--ink-2); }
.fly-panel .kids a:hover { background: none; color: var(--brand); }

/* ---------- Flash / Toast ---------- */
.flash { margin: 14px auto 0; padding: 12px 16px; border-radius: 8px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.flash-success { background: #ebfbee; color: #2b8a3e; border: 1px solid #b2f2bb; }
.flash-error { background: #fff5f5; color: #c92a2a; border: 1px solid #ffc9c9; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(30px); opacity: 0; background: #212529; color: #fff; padding: 12px 20px; border-radius: 10px; z-index: 200; transition: .3s; box-shadow: var(--shadow-lg); max-width: 92vw; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: #ffc078; font-weight: 700; }

/* ---------- Hero / Slider ---------- */
.hero { padding: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 14px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #dde3e0; aspect-ratio: 16/7; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: block; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .cap { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 10px; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.slide .cap h2 { font-size: 2.1rem; line-height: 1.2; }
.slide .cap p { opacity: .92; max-width: 440px; }
.slide .cap .btn { align-self: flex-start; margin-top: 6px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.slider-dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: .2s; }
.slider-dots button.on { width: 26px; background: #fff; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.hero-fallback { position: absolute; inset: 0; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hero-fallback::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hero-fallback > * { position: relative; z-index: 1; max-width: 560px; }
.hero-fallback .eyebrow { font-size: .82rem; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.hero-fallback h1 { font-size: 2.3rem; line-height: 1.2; }
.hero-fallback p { opacity: .9; }
.hero-side { display: grid; gap: 14px; grid-template-rows: 1fr 1fr; }
.side-banner { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: block; min-height: 120px; }
.side-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.side-banner .cap { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0) 75%); }
.side-banner .cap h3 { font-size: 1.15rem; }
.side-card { border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); }
.side-card .ic { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.side-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.side-card:hover { border-color: var(--brand); }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0 0; }
.trust { padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.trust + .trust { border-left: 1px solid var(--line); }
.trust i { font-size: 1.6rem; color: var(--brand); }
.trust strong { display: block; font-size: .93rem; }
.trust span { font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 24px 0 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-head h2 i { color: var(--accent); }
.section-head p { color: var(--muted); font-size: .86rem; }
.section-head a.more { color: var(--brand); font-weight: 600; white-space: nowrap; font-size: .9rem; }
.section-head .countdown span { background: var(--hot); color: #fff; }

/* ক্যাটাগরি কার্ড (ছবিসহ) */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px 12px; text-align: center; transition: .2s; }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-tile .ic { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; background: #f1f3f5; display: grid; place-items: center; color: #adb5bd; font-size: 1.8rem; }
.cat-tile .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile strong { display: block; font-size: .92rem; line-height: 1.35; }
.cat-tile span { font-size: .76rem; color: var(--muted); }

/* ক্যাটাগরি পেজের উপরের সাব-ক্যাটাগরি */
.subcats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.subcat { flex: 0 0 auto; width: 128px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-align: center; transition: .15s; }
.subcat:hover, .subcat.on { border-color: var(--brand); }
.subcat.on { background: var(--brand-soft); }
.subcat .ic { width: 72px; height: 72px; border-radius: 8px; margin: 0 auto 8px; overflow: hidden; background: #f1f3f5; display: grid; place-items: center; color: #adb5bd; font-size: 1.4rem; }
.subcat .ic img { width: 100%; height: 100%; object-fit: cover; }
.subcat strong { display: block; font-size: .84rem; line-height: 1.3; }
.subcat span { font-size: .72rem; color: var(--muted); }

/* বাজেট */
.budget-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.budget-chip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; font-weight: 600; transition: .15s; }
.budget-chip small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.budget-chip:hover { border-color: var(--brand); color: var(--brand); }

.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-row .side-banner { aspect-ratio: 2/1; }

.customize-banner { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.customize-banner h3 { font-size: 1.1rem; margin-bottom: 2px; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.products.cols-3 { grid-template-columns: repeat(4, 1fr); }
.pcard { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; position: relative; }
.pcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard .thumb { aspect-ratio: 1/1; background: #fff; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .thumb img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #f1f3f5; color: #adb5bd; font-size: .78rem; }
.ph i { font-size: 2.4rem; }
.pcard .badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; align-items: flex-start; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 700; }
.badge-off { background: var(--hot); color: #fff; }
.badge-offer { background: var(--premium, var(--accent)); color: #fff; }
.badge-new { background: var(--brand); color: #fff; }
.badge-out { background: #495057; color: #fff; }
.badge-soft { background: var(--brand-soft); color: var(--brand); }
.badge-warn { background: #fff4e6; color: #d9480f; }
.wish-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); z-index: 2; background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1rem; color: var(--muted); }
.wish-btn.on, .wish-btn:hover { color: var(--hot); }
.pcard .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .cat { font-size: .72rem; color: var(--muted); text-transform: none; }
.pcard h3 { font-size: .93rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; color: var(--ink); }
.pcard h3 a:hover { color: var(--brand); }
.pcard .desc { display: none; font-size: .86rem; color: var(--muted); }
.rating { color: #f59f00; font-size: .78rem; display: flex; gap: 4px; align-items: center; }
.rating span { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price .now { font-size: 1.15rem; font-weight: 700; color: var(--price, var(--accent-dark)); }
.price .old { text-decoration: line-through; color: var(--muted); font-size: .84rem; }
.pcard .actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 8px; }
.pcard .actions .btn { padding: 8px 10px; font-size: .85rem; }
.btn-cart-ic { width: 40px; padding: 0 !important; }

.products.view-list { grid-template-columns: 1fr 1fr; }
.products.view-list.one-col { grid-template-columns: 1fr; }
.view-list .pcard { flex-direction: row; }
.view-list .pcard .thumb { width: 180px; flex-shrink: 0; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.view-list .pcard .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.view-list .pcard h3 { min-height: 0; font-size: 1rem; }
.view-list .pcard .actions { grid-template-columns: auto auto; justify-content: start; }
.products.view-large { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.view-large .pcard h3 { font-size: 1.08rem; }
.view-large .price .now { font-size: 1.4rem; }
.view-large .pcard .actions .btn { padding: 12px; font-size: 1rem; }
.view-large .pcard .desc { display: block; }

/* ---------- Shop page ---------- */
.page-head { padding: 18px 0 6px; }
.breadcrumb { font-size: .84rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb i { font-size: .7rem; }
.page-head h1 { font-size: 1.55rem; font-weight: 700; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; padding: 10px 0 40px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; }
.filters h4 { font-size: .92rem; margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.filters h4:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.check { display: flex; gap: 9px; align-items: center; padding: 3px 0; font-size: .9rem; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.check .n { margin-left: auto; font-size: .74rem; color: var(--muted); }
.check.sub { padding-left: 22px; font-size: .85rem; }
.cat-tree a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; font-size: .9rem; }
.cat-tree a:hover { background: #f4f5f7; }
.cat-tree a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat-tree a.lv2 { padding-left: 22px; font-size: .86rem; }
.cat-tree a.lv3 { padding-left: 36px; font-size: .82rem; color: var(--ink-2); }
.cat-tree a span { color: var(--muted); font-size: .74rem; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input { width: 100%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.view-switch { display: flex; gap: 2px; border: 1px solid var(--line); padding: 3px; border-radius: 8px; }
.view-switch a { padding: 4px 9px; border-radius: 6px; color: var(--muted); font-size: 1rem; }
.view-switch a.on { background: var(--brand); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--brand-soft); color: var(--brand); padding: 3px 10px; border-radius: 20px; font-size: .78rem; display: inline-flex; gap: 6px; align-items: center; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.empty .em { font-size: 3rem; margin-bottom: 8px; color: #ced4da; }
.empty h3 { margin-bottom: 6px; }

/* ---------- Forms ---------- */
.input, select.input, textarea.input { width: 100%; padding: 10px 13px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; outline: 0; transition: .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink-2); }
.field .err { color: #c92a2a; font-size: .8rem; margin-top: 4px; }
.field .hint { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 14px; }
.card-title { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.card-title .num { width: 26px; height: 26px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.card-title i { color: var(--brand); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 8px 0 24px; }
.pd-gallery .main-img { aspect-ratio: 1/1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.pd-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .main-img .ph i { font-size: 5rem; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; flex-shrink: 0; background: #fff; padding: 0; }
.pd-thumbs button.on { border-color: var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
.pd-info h1 { font-size: 1.5rem; line-height: 1.35; margin: 8px 0 8px; font-weight: 700; }
.pd-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.pd-price { background: #f8f9fa; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); }
.pd-price .now { font-size: 1.9rem; font-weight: 700; color: var(--price, var(--accent-dark)); }
.pd-price .old { text-decoration: line-through; color: var(--muted); margin-left: 8px; }
.pd-price .save { color: var(--hot); font-weight: 700; margin-left: 8px; font-size: .9rem; }
.offer-note { display: flex; gap: 8px; align-items: center; background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 6px 10px; font-size: .84rem; font-weight: 600; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; }
.qty button:hover { background: #f4f5f7; }
.qty input { width: 50px; text-align: center; border: 0; outline: 0; font-weight: 700; height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 30px; height: 32px; }
.qty.sm input { width: 36px; height: 32px; }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pd-buy .btn { flex: 1; min-width: 150px; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pd-perks div { display: flex; gap: 10px; align-items: center; font-size: .85rem; background: #f8f9fa; border-radius: 8px; padding: 9px 11px; }
.pd-perks i { color: var(--brand); font-size: 1.2rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 16px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.prose { white-space: pre-line; color: var(--ink-2); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review strong { display: flex; gap: 8px; align-items: center; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { display: none; }
.stars-input label { font-size: 1.6rem; color: #dee2e6; cursor: pointer; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #f59f00; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 18px; padding: 8px 0 40px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .ci-img { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: #f1f3f5; display: grid; place-items: center; color: #adb5bd; font-size: 1.6rem; border: 1px solid var(--line); }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: .98rem; font-weight: 600; }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.summary { position: sticky; top: 130px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; gap: 10px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.sum-row.total span:last-child { color: var(--accent-dark); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.free-progress { background: var(--brand-soft); border-radius: 8px; padding: 10px 12px; font-size: .85rem; margin-bottom: 12px; }
.free-progress .bar { height: 6px; background: #fff; border-radius: 6px; margin-top: 6px; overflow: hidden; }
.free-progress .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid #d0d5dd; border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: .15s; background: #fff; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.pay-opt .logo-pill { margin-left: auto; font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 4px; }
.pill-bkash { background: #e2136e; color: #fff; }
.pill-nagad { background: #f6921e; color: #fff; }
.pill-cod { background: var(--brand); color: #fff; }
.pay-box { display: none; background: #fff9db; border: 1px solid #ffec99; border-radius: 8px; padding: 12px 14px; margin-top: 4px; font-size: .9rem; }
.pay-box.show { display: block; }
.addr-picks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.addr-pick { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: .84rem; }
.addr-pick:hover { border-color: var(--brand); color: var(--brand); }
.zone-note { background: var(--brand-soft); color: var(--brand); padding: 7px 12px; border-radius: 6px; font-size: .84rem; margin-top: 6px; }
.success-box { max-width: 640px; margin: 36px auto; text-align: center; }
.success-box .tick { width: 76px; height: 76px; border-radius: 50%; background: #ebfbee; color: #2b8a3e; font-size: 2.6rem; display: grid; place-items: center; margin: 0 auto 14px; }
.order-no { display: inline-block; background: #f8f9fa; border: 1px dashed #ced4da; padding: 8px 18px; border-radius: 8px; font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; margin: 10px 0; }

/* ---------- Order progress ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 10px 0 20px; }
.steps::before { content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 3px; background: var(--line); }
.steps .bar { position: absolute; top: 19px; left: 10%; height: 3px; background: var(--brand); transition: .4s; }
.step { text-align: center; position: relative; z-index: 1; font-size: .8rem; color: var(--muted); }
.step .c { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; font-size: 1rem; }
.step.done .c { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done { color: var(--ink); font-weight: 600; }
.step.current .c { box-shadow: 0 0 0 5px var(--brand-soft); }
.history { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 18px; }
.history li { list-style: none; position: relative; padding-bottom: 14px; }
.history li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--brand); }
.cancelled-box { background: #fff5f5; color: #c92a2a; padding: 12px; border-radius: 8px; text-align: center; font-weight: 600; }
.st { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .76rem; font-weight: 700; }
.st-pending { background: #fff4e6; color: #d9480f; }
.st-confirmed { background: #e7f5ff; color: #1971c2; }
.st-processing { background: #f3f0ff; color: #6741d9; }
.st-shipped { background: #e3fafc; color: #0c8599; }
.st-delivered, .st-paid { background: #ebfbee; color: #2b8a3e; }
.st-cancelled { background: #fff5f5; color: #c92a2a; }
.st-unpaid { background: #f1f3f5; color: #495057; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; margin: 30px auto 50px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.auth-art { background: linear-gradient(150deg, var(--brand-dark), var(--brand)); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.auth-art::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 16px 16px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .em { width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px; }
.auth-art h2 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-art ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; opacity: .95; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-form { padding: 40px; }
.auth-form h1 { font-size: 1.5rem; margin-bottom: 4px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.05rem; }

/* ---------- Account ---------- */
.acc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; padding: 20px 0 50px; align-items: start; }
.acc-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 130px; }
.acc-user { padding: 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.acc-user small { color: var(--muted); display: block; }
.acc-menu { padding: 8px; }
.acc-menu a, .acc-menu button { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; font-weight: 500; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink-2); }
.acc-menu a i, .acc-menu button i { font-size: 1.1rem; color: var(--muted); }
.acc-menu a:hover, .acc-menu a.on { background: var(--brand-soft); color: var(--brand); }
.acc-menu a.on i { color: var(--brand); }
.acc-menu .pill { margin-left: auto; background: var(--brand); color: #fff; font-size: .7rem; padding: 0 8px; border-radius: 10px; font-weight: 700; }
.acc-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.acc-title h1 { font-size: 1.4rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 10px; }
.stat strong { display: block; font-size: 1.45rem; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.order-card .oc-items { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-img { width: 46px; height: 46px; border-radius: 6px; background: #f1f3f5; display: grid; place-items: center; overflow: hidden; font-size: 1.1rem; color: #adb5bd; border: 1px solid var(--line); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.order-card .oc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.filter-tabs a { padding: 6px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-size: .86rem; }
.filter-tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; }

/* ---------- Customize drawer ---------- */
.fab-customize { position: fixed; right: 18px; bottom: 24px; z-index: 90; background: #fff; color: var(--brand); border: 1px solid var(--line); border-radius: 30px; padding: 10px 16px; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.fab-customize:hover { border-color: var(--brand); }
.drawer-back { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 150; opacity: 0; pointer-events: none; transition: .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--bg); z-index: 160; transform: translateX(100%); transition: .3s; display: flex; flex-direction: column; }
.drawer-open .drawer-back { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { padding: 16px 20px; background: var(--brand); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.drawer-head button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.drawer-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; background: #fff; }
.pref-group { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); }
.pref-group h4 { font-size: .95rem; margin-bottom: 2px; }
.pref-group p { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { display: none; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; border-radius: 8px; border: 1px solid var(--line); font-size: .8rem; text-align: center; background: #fff; }
.seg span i { font-size: 1.2rem; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: 0 0 0 1px var(--brand); }
.swatch { width: 24px; height: 24px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pick-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-cats label input { display: none; }
.pick-cats label span { display: inline-block; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: .84rem; cursor: pointer; }
.pick-cats label input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.sort-list { display: grid; gap: 6px; }
.sort-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: .9rem; }
.sort-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.sort-item .mv { margin-left: auto; display: flex; gap: 4px; }
.sort-item .mv button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #f8f9fa; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer, #111816); color: #aeb8b4; margin-top: 36px; padding: 44px 0 18px; font-size: .92rem; }
[data-theme="begun"] .site-footer { background: #1a1422; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-mark { background: #fff; color: var(--brand); }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pay-logos span { background: #fff; color: #333; padding: 4px 10px; border-radius: 4px; font-size: .76rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 16px; text-align: center; font-size: .82rem; }

.bottom-nav { display: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.pagination .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .off { opacity: .45; }

/* ---------- v4: logo, camera search, pages, footer ---------- */
.logo-text strong { font-size: 1.5rem; }
.search form { align-items: stretch; }
.cam-btn { display: grid; place-items: center; padding: 0 14px; color: var(--muted); cursor: pointer; font-size: 1.2rem; border-left: 1px solid var(--line); }
.cam-btn:hover { color: var(--brand); background: var(--brand-soft); }
.img-search-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.6); z-index: 300; display: none; place-items: center; padding: 20px; }
.img-search-overlay.show { display: grid; }
.img-search-overlay .box { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 340px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.img-search-overlay .preview { width: 160px; height: 160px; border-radius: 10px; overflow: hidden; background: #f1f3f5; }
.img-search-overlay .preview img { width: 100%; height: 100%; object-fit: cover; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.img-search-overlay.error .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.img-search-note { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); color: var(--brand); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: .9rem; flex-wrap: wrap; }
.page-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; line-height: 1.85; color: var(--ink-2); }
.page-content h2 { font-size: 1.2rem; color: var(--ink); margin: 22px 0 8px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.03rem; color: var(--ink); margin: 16px 0 6px; }
.page-content p { margin-bottom: 10px; }
.page-content ul { padding-left: 22px; margin-bottom: 12px; }
.page-content li { margin-bottom: 4px; }
.page-layout { display: grid; grid-template-columns: 1fr 260px; gap: 18px; padding: 10px 0 40px; align-items: start; }
.page-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 130px; }
.page-side a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; }
.page-side a:hover { background: var(--brand-soft); color: var(--brand); }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { max-height: 54px; width: auto; max-width: 220px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-logo strong { color: #fff; font-size: 1.4rem; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--brand); }
.app-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.app-badges a { display: flex; align-items: center; gap: 8px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 12px; font-size: .9rem; font-weight: 600; line-height: 1.1; }
.app-badges i { font-size: 1.3rem; }
.app-badges small { display: block; font-size: .65rem; font-weight: 400; opacity: .8; }
.danger-zone { border-color: #ffc9c9; }
.danger-zone .card-title { color: #c92a2a; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .products { grid-template-columns: repeat(4, 1fr); } .products.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) {
    .nav-all > button { min-width: 0; }
    .flyout .fly-panel { min-width: 360px; grid-template-columns: 1fr; }
    .budget-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero-grid, .pd, .cart-layout, .auth-wrap { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .shop-layout, .acc-layout { grid-template-columns: 1fr; }
    .products, .products.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .products.view-large { grid-template-columns: 1fr 1fr; }
    .filters { position: fixed; inset: 0 0 0 auto; width: 320px; max-width: 88%; z-index: 170; transform: translateX(100%); transition: .3s; border-radius: 0; max-height: none; top: 0; }
    .filters.open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
    .acc-side { position: static; }
    .acc-menu { display: flex; overflow-x: auto; gap: 4px; }
    .acc-menu a, .acc-menu button { white-space: nowrap; width: auto; }
    .acc-user { display: none; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .trust-row { grid-template-columns: 1fr 1fr; }
    .trust:nth-child(3) { border-left: 0; }
    .trust:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-art { display: none; }
    .summary { position: static; }
    .only-sm { display: inline-flex; }
    .promo-row { grid-template-columns: 1fr 1fr; }
    .nav-all { display: none; }
    .dropdown { display: none !important; }
}
@media (max-width: 680px) {
    html { font-size: 15px; }
    body { padding-bottom: 64px; }
    .hide-sm { display: none !important; }
    .topline { display: none; }
    .header-main { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .h-icon .lbl { display: none; }
    .logo-mark { width: 36px; height: 36px; font-size: 1.05rem; }
    .logo-text strong { font-size: 1.2rem; }
    .logo img { height: calc(var(--logo-h, 48px) * .8); max-width: 200px; }
    .page-layout { grid-template-columns: 1fr; }
    .page-side { position: static; }
    .page-content { padding: 18px; }
    .slider { aspect-ratio: 16/9; }
    .slide .cap { width: 100%; padding: 20px; }
    .slide .cap h2 { font-size: 1.3rem; }
    .slide .cap p { display: none; }
    .hero-fallback { padding: 24px; }
    .hero-fallback h1 { font-size: 1.45rem; }
    .hero-side { gap: 10px; }
    .side-card { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .side-card .ic { width: 40px; height: 40px; font-size: 1.15rem; }
    .side-card h3 { font-size: .92rem; }
    .trust { padding: 10px 12px; }
    .trust i { font-size: 1.3rem; }
    .products, .products.cols-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
    .products.view-list, .products.view-large { grid-template-columns: 1fr; }
    .view-list .pcard .thumb { width: 118px; }
    .pcard .info { padding: 8px 10px 10px; }
    .pcard h3 { font-size: .86rem; }
    .price .now { font-size: 1.02rem; }
    .pcard .actions .btn { font-size: .78rem; padding: 7px 6px; }
    .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cat-tile { padding: 10px 6px; }
    .cat-tile .ic { width: 64px; height: 64px; }
    .cat-tile strong { font-size: .8rem; }
    .cat-tile span { display: none; }
    .subcat { width: 100px; }
    .subcat .ic { width: 58px; height: 58px; }
    .budget-row { grid-template-columns: repeat(2, 1fr); }
    .promo-row { grid-template-columns: 1fr; }
    .section-head h2 { font-size: 1.1rem; }
    .row-2 { grid-template-columns: 1fr; gap: 0; }
    .customize-banner { flex-direction: column; align-items: flex-start; padding: 16px; }
    .pd-info { padding: 16px; }
    .pd-info h1 { font-size: 1.25rem; }
    .pd-perks { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 64px 1fr; }
    .cart-item .ci-img { width: 64px; height: 64px; }
    .cart-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .steps { font-size: .68rem; }
    .step .c { width: 32px; height: 32px; font-size: .85rem; }
    .steps::before, .steps .bar { top: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-form { padding: 24px 18px; }
    .card { padding: 15px; }
    .fab-customize { bottom: 76px; right: 12px; padding: 10px 12px; }
    .fab-customize .lbl { display: none; }
    .toast { bottom: 140px; }
    .offer-bar .container { gap: 8px; font-size: .8rem; }
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 80; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); position: relative; }
    .bottom-nav a i { font-size: 1.25rem; }
    .bottom-nav a.on { color: var(--brand); font-weight: 600; }
    .bottom-nav .count { position: absolute; top: -4px; right: 22%; background: var(--hot); color: #fff; font-size: .62rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; }
}
@media print { .site-header, .site-footer, .bottom-nav, .fab-customize, .notice-bar, .offer-bar { display: none !important; } }
