/* RojnuShop storefront */
:root {
    --brand: #336699;
    --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
    --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff);
    --ink: #1d2327;
    --muted: #6b7378;
    --line: #e6e9ea;
    --bg: #ffffff;
    --soft: #f5f7f7;
    --card: #ffffff;
    --sale: #e0245e;
    --star: #e8a33c;
    --radius: 14px;
    /* headings: Plus Jakarta Sans - clear, full letter shapes (the old Syne font cut off the tails of g / j / y) */
    --head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}
:root[data-theme="dark"] {
    --ink: #e8ecee; --muted: #9aa4a9; --line: #2c3438; --bg: #12171a; --soft: #182024; --card: #1a2226;
    --brand-soft: color-mix(in srgb, var(--brand) 20%, #12171a);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; overflow-wrap: break-word; }
[hidden] { display: none !important; }
.wrap { width: min(1188px, 100% - 32px); margin-inline: auto; }   /* Daraz-style boxed page: 1188px content, even side margins */
.ico { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* buttons + forms */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 8px;
    background: var(--brand); color: #fff; font: 600 .95rem var(--head); padding: .75rem 1.4rem; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn .ico { width: 18px; height: 18px; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { background: var(--soft); color: var(--ink); border-color: var(--brand); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
input, select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: .7rem .85rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
/* required fields: red * (added by markRequired() in store.js) */
.req { color: #d6293e; font-weight: 700; margin-left: .1em; }
.req-ph { position: relative; display: block; }
.req-ph > input, .req-ph > textarea { padding-right: 1.9rem; }
.req-ph > .req { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); margin: 0; pointer-events: none; font-size: 1rem; line-height: 1; }
.req-ph.is-area > .req { top: .85rem; transform: none; }
/* District: type to search, grouped list (assets/js/district.js) */
.dc { position: relative; }
.dc input { padding-right: 2.4rem; }
.dc input.is-ok { border-color: color-mix(in srgb, #15803d 45%, var(--line)); }
.dc-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); font-size: .95rem; cursor: pointer; border-radius: 6px; }
.dc-toggle:hover { background: var(--soft); color: var(--ink); }
.dc-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow-y: auto; margin: 0; padding: .3rem 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }
.dc-list[hidden] { display: none; }
.dc-list li[role=option] { padding: .5rem .9rem .5rem 1.4rem; cursor: pointer; font-size: .95rem; }
.dc-list li[role=option].is-active, .dc-list li[role=option]:hover { background: var(--brand-soft); color: var(--ink); }
.dc-list li b { color: var(--brand); font-weight: 700; }
.dc-group { position: sticky; top: -.3rem; padding: .45rem .9rem .3rem; background: var(--soft); color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dc-empty { padding: .7rem .9rem; color: var(--muted); font-size: .9rem; }
.dc-city { color: var(--muted); font-size: .85em; }
input.is-readonly { background: var(--soft); color: var(--muted); cursor: default; }
input.is-readonly:focus { border-color: var(--line); }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field .err { color: var(--sale); font-size: .82rem; margin-top: .25rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.check input { width: auto; }
.notice { margin: 1rem 0; padding: .85rem 1rem; border-radius: 10px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.notice.is-error { background: #fdecef; border-color: #f5c2cd; color: #8a1538; }
.muted { color: var(--muted); }

/* header */
.topbar { background: #f85606; color: #fff; text-align: center; font-size: .88rem; font-weight: 600; padding: .55rem 1rem; letter-spacing: .02em; }
/* tap-to-copy coupon code in the top bar */
.code-chip { display: inline-flex; align-items: center; gap: .35rem; margin: 0 .15rem; padding: .12rem .55rem .12rem .65rem; vertical-align: middle;
    border: 1.5px dashed rgba(255, 255, 255, .85); border-radius: 6px; background: rgba(255, 255, 255, .18); color: #fff;
    font: 800 .88rem var(--head); letter-spacing: .06em; cursor: pointer; transition: background .2s, transform .15s; }
.code-chip:hover { background: rgba(255, 255, 255, .32); transform: translateY(-1px); }
.code-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.code-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.code-chip.is-copied { background: #fff; color: #15803d; border-style: solid; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .55rem 0 .15rem; gap: 1rem; }
.header-contact { display: flex; align-items: center; }
/* header "Need help? Call us" */
.hc-call { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .75rem .2rem .2rem; border-radius: 999px; transition: background .2s; }
.hc-call:hover { background: var(--brand-soft); }
.hc-ico { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #22c55e)); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.hc-ico svg { width: 16px; height: 16px; fill: currentColor; animation: hcRing 4s ease-in-out 1.5s infinite; transform-origin: 50% 50%; }
.hc-ico::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); animation: hcPulse 2.6s ease-out infinite; }
.hc-text { display: flex; flex-direction: column; line-height: 1.2; }
.hc-text small { font-size: .66rem; color: var(--muted); font-weight: 500; }
.hc-text strong { font: 700 .84rem var(--head); color: var(--ink); letter-spacing: .01em; transition: color .2s; }
.hc-call:hover .hc-text strong { color: var(--brand); }
@keyframes hcRing { 0%, 80%, 100% { transform: none; } 83% { transform: rotate(-18deg); } 86% { transform: rotate(16deg); } 89% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes hcPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hc-ico svg, .hc-ico::after { animation: none; } }
.logo { display: flex; align-items: center; gap: .55rem; justify-self: center; }
.logo img { max-height: 42px; width: auto; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; }
.logo-text { font: 800 1.85rem var(--head); letter-spacing: -.02em; }
.header-icons { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--ink); padding: .45rem; cursor: pointer; border-radius: 8px; }
.icon-btn:hover { color: var(--brand); background: var(--soft); }
.acct-label { font-size: .85rem; font-weight: 600; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-notice { border-left: 4px solid var(--brand); }
.auth-narrow { max-width: 460px; margin: 0 auto; }
.auth-narrow h2 { margin-top: 0; }
.code-input { font-size: 1.4rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.forgot-link { display: block; margin-top: .9rem; text-align: center; font-size: .92rem; color: var(--brand); font-weight: 600; }
.field-hint { display: block; margin-top: .3rem; color: var(--muted); font-size: .82rem; }
.verified { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; padding: .1rem .55rem; margin-left: .35rem; }
.icon-btn .count { position: absolute; top: -2px; left: 22px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-label { font: 600 .95rem var(--head); margin-left: .5rem; }
.nav-toggle { display: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; padding: .1rem 0 .5rem; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; font: 600 .98rem var(--head); background: none; border: 0; color: var(--ink); cursor: pointer; padding: .3rem 0; }
.nav-link .ico { width: 15px; height: 15px; }
.nav-link.is-on, .nav-link:hover { color: var(--brand); }
.nav-badge { font: 700 .62rem var(--body); color: #fff; border-radius: 4px; padding: .1rem .35rem; letter-spacing: .04em; }
.nav-drop { position: relative; }
.nav-panel {
    position: absolute; top: 100%; left: -1rem; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .1); padding: .5rem; display: none; z-index: 50;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { display: block; }
.nav-panel a { display: flex; justify-content: space-between; padding: .55rem .8rem; border-radius: 8px; font-weight: 500; }
.nav-panel a:hover { background: var(--soft); }
.nav-panel small { color: var(--muted); }
.search-bar { border-top: 1px solid var(--line); padding: .8rem 0; background: var(--soft); }
.search-bar .wrap { display: flex; gap: .6rem; }

/* hero */
.hero { position: relative; overflow: hidden; }
/* Daraz-style top area: boxed slider + side panel of the same height */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.2rem; }
.hero-row.has-side { grid-template-columns: minmax(0, 1fr) 250px; }
.hero-row .hero { border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); align-self: start; }
.hero-row .hero-dots { bottom: .8rem; gap: .35rem; }
.hero-row .hero-dots button { width: 8px; height: 8px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.hero-row .hero-dots button.is-on { width: 22px; background: #fff; }
.hero-side { display: flex; flex-direction: column; gap: .55rem; min-width: 0; padding: .7rem; border-radius: 16px; background: var(--card);
    border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); overflow: hidden; }
.hs-head { display: flex; align-items: center; gap: .55rem; }
.hs-head img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.hs-head strong { font: 700 .98rem var(--head); line-height: 1.2; }
.hs-card { position: relative; flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: .7rem .75rem .75rem; border-radius: 12px; color: #fff;
    background: linear-gradient(160deg, #ff7a2f 0%, #f85606 45%, #e5304f 100%); }
.hs-rate { align-self: flex-start; margin: -.7rem 0 0 -.75rem; padding: .22rem .6rem .22rem .55rem; border-radius: 12px 0 12px 0; background: #ffd56b; color: #6b3a00; font-size: .72rem; font-weight: 800; }
.hs-rate small { font-weight: 600; opacity: .8; }
.hs-shop { align-self: center; padding: .3rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font: 700 .82rem var(--head); }
.hs-shop:hover { background: rgba(255, 255, 255, .35); color: #fff; }
.hs-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hs-perks li { display: flex; align-items: center; gap: .55rem; }
.hs-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: #fff; color: #f85606; }
.hs-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hs-perks strong { display: block; font-size: .86rem; line-height: 1.15; }
.hs-perks small { display: block; font-size: .7rem; opacity: .9; line-height: 1.25; }
.hs-foot { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .55rem; align-items: center; }
.hs-foot.no-qr { grid-template-columns: 1fr; }
.hs-qr { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 3px; }
.hs-btns { display: grid; gap: .35rem; min-width: 0; }
.hs-foot.no-qr .hs-btns { grid-template-columns: 1fr 1fr; }
.hs-foot.no-qr .hs-btn:only-child { grid-column: 1 / -1; }
.hs-btn { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .38rem .5rem; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.hs-btn svg { width: 15px; height: 15px; flex: none; }
.hs-btn:hover { border-color: var(--brand); color: var(--brand); }
.hs-btn.is-wa { background: #25d366; border-color: #25d366; color: #fff; }
.hs-btn.is-wa:hover { background: #1ebe5a; color: #fff; }
.hs-btns small { font-size: .7rem; color: var(--muted); line-height: 1.3; }
/* the banner decides the height; the panel fits into it (and gets more compact on narrower screens) */
.hero-row.has-side .hero-side { height: 0; min-height: 100%; }
@media (max-width: 1340px) {
    .hs-foot { grid-template-columns: 68px minmax(0, 1fr); }
    .hs-qr { width: 68px; height: 68px; }
    .hs-shop { display: none; }
}
@media (max-width: 1100px) {
    .hero-row.has-side { grid-template-columns: minmax(0, 1fr) 220px; }
    .hs-perks li:nth-child(3) { display: none; }
    .hs-perks small, .hs-btns small, .hs-rate small { display: none; }
    .hs-card { gap: .4rem; padding: .6rem; }
    .hs-ico { width: 30px; height: 30px; }
    .hs-foot { grid-template-columns: 56px minmax(0, 1fr); }
    .hs-qr { width: 56px; height: 56px; }
}
@media (max-width: 860px) { .hero-row.has-side { grid-template-columns: minmax(0, 1fr); } .hero-side { display: none; } .hero-row { margin-top: .8rem; } }
.hero-slide { display: none; min-height: clamp(360px, 46vw, 560px); background-size: cover; background-position: right center; align-items: center; }
.hero-slide.is-on { display: flex; animation: fade .7s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-text { padding: 3rem 0; }
.hero-text h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.012em; max-width: 640px; margin: .6rem 0 1rem; padding-bottom: .05em; color: #1d2327; }
.hero-text p { max-width: 480px; font-size: 1.1rem; color: #3d464b; margin: 0 0 1.6rem; }
.eyebrow { display: inline-block; font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-dark); }
/* picture-only slides: the button sits low on the left, a slide with just a link is clickable everywhere */
.hero-slide { position: relative; background-color: var(--soft); }   /* behind / instead of the banner picture */
/* banner pictures are shown whole: the slide takes the 1400 x 520 shape, the picture fits inside it (never cropped) */
.hero-slide.has-img { min-height: 0; aspect-ratio: 1400 / 520; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-cta { position: relative; z-index: 2; align-self: flex-end; padding: 0 0 clamp(1rem, 5vw, 4.2rem); }
.hero-link.is-phone { display: none; }
@media (max-width: 600px) {   /* phones: banner is small, so no button over it - the whole banner is the link */
    .has-img .hero-cta { display: none; }
    .has-img .hero-link.is-phone { display: block; }
}
@media (max-width: 860px) {   /* small banner on tablets: smaller button at the bottom-left */
    .has-img .hero-btn { padding: .55rem 1rem .55rem .85rem; font-size: .85rem; gap: .4rem; }
    .has-img .hero-btn svg { width: 16px; height: 16px; }
    .hero-slide.has-img ~ .hero-dots { bottom: .5rem; }
    .hero-dots button { width: 8px; height: 8px; }
    .hero-dots button.is-on { width: 20px; }
}
.hero-link { position: absolute; inset: 0; z-index: 1; }
/* animated "Shop Now" button on the slides */
.hero-btn { position: relative; z-index: 2; overflow: hidden; gap: .6rem; padding: 1rem 1.6rem 1rem 1.35rem; border-radius: 999px; font-size: 1.05rem; font-weight: 700;
    letter-spacing: .01em; box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .2s, box-shadow .2s, background .2s; }
.hero-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-btn-arrow { transition: transform .25s; }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 50%, transparent); }
.hero-btn:hover .hero-btn-arrow { transform: translateX(5px); }
.hero-btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;   /* shine */
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: heroShine 3.6s ease-in-out 1.4s infinite; }
.hero-btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;   /* pulse ring */
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); animation: heroPulse 2.4s ease-out 1s infinite; }
.hero-slide.is-on .hero-btn { animation: heroBtnIn .75s cubic-bezier(.2, .9, .3, 1.2) .25s backwards; }   /* slides up each time the slide shows */
.hero-slide.is-on .hero-btn-bag { animation: heroBag 2.4s ease-in-out 1.2s infinite; }
@keyframes heroBtnIn { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes heroShine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes heroBag { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-btn, .hero-btn::after, .hero-btn::before, .hero-btn-bag { animation: none !important; } }
.hero-dots { z-index: 2; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-dots { position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .2); cursor: pointer; padding: 0; }
.hero-dots button.is-on { background: var(--brand); width: 28px; border-radius: 6px; }

/* features */
.features { background: var(--soft); border-bottom: 1px solid var(--line); }
.features-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.8rem 0; }
.feature { display: flex; align-items: center; gap: .9rem; }
.feature-ico .ico { width: 42px; height: 42px; color: var(--brand); stroke-width: 1.3; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }

/* sections */
.section { padding: 3.5rem 0; }
.section.is-tight { padding: 1rem 0; }
.section.is-soft { background: var(--soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head.is-center { flex-direction: column; align-items: center; text-align: center; }
.section-head.is-center p { margin: .2rem 0 0; color: var(--muted); }
.link-more { font: 600 .92rem var(--head); color: var(--brand); border-bottom: 1.5px solid currentColor; }

/* product grid + card */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1.3rem; }
.pcard { min-width: 0; }
/* Latest Products on the home page: a little smaller (5 a row, square pictures) */
.pgrid.pgrid-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem 1.1rem; }
.pgrid-compact .pcard-media { aspect-ratio: 1 / 1; }
.pgrid-compact .pcard-title { font-size: 1.02rem; }
.pgrid-compact .pcard-actions { top: .6rem; right: .6rem; }
.pgrid-compact .pcard-btn { width: 36px; height: 36px; }
@media (max-width: 1100px) { .pgrid.pgrid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pgrid-compact > .pcard:nth-child(n+9) { display: none; } }
@media (max-width: 860px) { .pgrid.pgrid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .9rem; } }
.pcard-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1 / 1.08; }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
/* Photo colours (store.js): each card takes the main colour of its own photo - a soft glow under it,
   a tinted backdrop and a fine frame - so every picture looks rich and matched. */
.pcard-media { transition: box-shadow .45s, background .45s, transform .45s; }
.pcard-media.has-amb { background: linear-gradient(155deg, rgba(var(--amb), .16), rgba(var(--amb), .38)); box-shadow: 0 20px 34px -16px rgba(var(--amb), .9), 0 4px 10px -4px rgba(var(--amb), .45); }
.pcard-media.has-amb::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1.5px rgba(var(--amb), .4); background: linear-gradient(180deg, transparent 60%, rgba(var(--amb), .18)); }
.pcard:hover .pcard-media.has-amb { box-shadow: 0 30px 48px -16px rgba(var(--amb), 1), 0 6px 14px -4px rgba(var(--amb), .55); transform: translateY(-4px); }
/* gentle auto-enhance: a little more colour and depth, never over the top */
.pcard-img img, .gallery-main img, .gallery-thumbs img { filter: saturate(1.12) contrast(1.05) brightness(1.02); }
@media (prefers-reduced-motion: reduce) { .pcard:hover .pcard-media.has-amb { transform: none; } }
.pcard-media .pcard-actions, .pcard-media .pcard-add, .pcard-media .countdown, .pcard-media .badge-out { z-index: 2; }
/* product video on the card: fades in over the picture while it plays */
.pcard-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; background: transparent; }
.pcard-media.is-playing .pcard-video { opacity: 1; }
.pcard-media.is-playing .pcard-img2 { opacity: 0; }
.pcard-vid-ico { position: absolute; left: .7rem; bottom: .7rem; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(15, 23, 42, .55); color: #fff; backdrop-filter: blur(4px); pointer-events: none; transition: opacity .25s; }
.pcard-vid-ico svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.pcard-media.is-playing .pcard-vid-ico, .pcard:hover .pcard-vid-ico { opacity: 0; }
/* product page: video in the big box + its thumbnail */
.gallery-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #eef0f3; }
:root[data-theme="dark"] .gallery-main video { background: #1e252a; }
.gallery-main.is-fullscreen { border-radius: 0; background: #000; }
.gallery-main.is-fullscreen video { background: #000; }

/* ---------- Tags row (product + blog): outlined "#tag" chips ---------- */
.tag-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem .9rem; margin-top: 1.3rem; }
.tag-label { padding-top: .5rem; font: 700 .95rem var(--head); color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; min-width: 0; }
.tag-chip { display: inline-flex; align-items: center; padding: .55rem .9rem; border: 1.5px solid color-mix(in srgb, var(--brand) 70%, var(--line)); border-radius: 6px;
    background: var(--card); color: var(--brand); font: 700 .9rem var(--head); line-height: 1.2; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.tag-chip:hover, .tag-chip:focus-visible { background: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand) 60%, transparent); }
.article-share .tag-row { margin: 0 0 1.1rem; }
.tag-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin: 0 0 1.2rem; }
.tag-head h1 { margin: 0; font: 800 clamp(1.5rem, 3vw, 2rem) var(--head); color: var(--brand); }
.tag-head span { color: var(--muted); font-weight: 600; }
.tag-head a { margin-left: auto; color: var(--brand); font-weight: 600; font-size: .9rem; }

/* ---------- Share row (product + blog) ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-top: 1.3rem; }
.share-label { font: 700 .95rem var(--head); color: var(--muted); }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; color: #fff; cursor: pointer;
    box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .35); transition: transform .18s, box-shadow .18s, filter .18s; }
.share-btn:hover, .share-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 16px -6px rgba(15, 23, 42, .45); filter: brightness(1.08); color: #fff; }
.share-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.share-btn svg { width: 19px; height: 19px; fill: currentColor; }
.share-facebook { background: #1877f2; }
.share-x { background: #1d9bf0; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #0b5b32; }
.share-viber { background: #7360f2; }
.share-copy { background: #6b7280; }
.share-copy svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-copy .i-done { display: none; }
.share-copy.is-done { background: #16a34a; }
.share-copy.is-done .i-copy { display: none; }
.share-copy.is-done .i-done { display: block; animation: share-pop .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes share-pop { from { transform: scale(.4); } to { transform: none; } }
.article-share { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.article-share .share-row { margin-top: 0; }

/* ---------- product video player (YouTube-style controls, store.js) ---------- */
.vp { position: absolute; inset: 0; z-index: 4; pointer-events: none; font: 500 .82rem var(--body); color: #fff; }
.vp[hidden] { display: none; }
.vp > * { pointer-events: auto; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(15, 23, 42, .62); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s, background .2s; pointer-events: none; }
.vp-big svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.vp.is-paused .vp-big { opacity: 1; transform: none; pointer-events: auto; }
.vp-big:hover { background: var(--brand); }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem .75rem .45rem; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); opacity: 0; transition: opacity .3s; }
.vp.is-awake .vp-bar, .vp.is-paused .vp-bar, .vp:focus-within .vp-bar { opacity: 1; }
.gallery-main.is-video:has(.vp:not(.is-awake):not(.is-paused)) video { cursor: none; }   /* playing + idle: hide the mouse like YouTube */
.gallery-main.is-video video { cursor: pointer; }
/* timeline */
.vp-track { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.vp-rail { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; transition: height .15s; }
.vp-track:hover .vp-rail, .vp.is-seeking .vp-rail, .vp-track:focus-visible .vp-rail { height: 6px; }
.vp-rail span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.vp-buf { background: rgba(255, 255, 255, .45); }
.vp-hov { background: rgba(255, 255, 255, .35); }
.vp-done { background: #ff2b4f; }
.vp-knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #ff2b4f; transform: scale(0); transition: transform .15s; box-shadow: 0 0 0 3px rgba(255, 43, 79, .25); }
.vp-track:hover .vp-knob, .vp.is-seeking .vp-knob, .vp-track:focus-visible .vp-knob { transform: scale(1); }
.vp-tip { position: absolute; bottom: 20px; left: 0; transform: translateX(-50%); padding: .18rem .45rem; border-radius: 5px; background: rgba(15, 23, 42, .85); font-size: .72rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.vp-track:hover .vp-tip, .vp.is-seeking .vp-tip { opacity: 1; }
/* buttons row */
.vp-row { display: flex; align-items: center; gap: .2rem; margin-top: .15rem; }
.vp-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.vp-btn:hover, .vp-btn.is-on { background: rgba(255, 255, 255, .16); }
.vp-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.vp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp-play .i-pause, .vp.is-paused .vp-play .i-play { display: block; }
.vp-play .i-play, .vp.is-paused .vp-play .i-pause { display: none; }
.vp-fs .i-exit, .is-fullscreen .vp-fs .i-full { display: none; }
.is-fullscreen .vp-fs .i-exit { display: block; }
.vp-gear svg { transition: transform .35s; }
.vp-gear.is-on svg { transform: rotate(60deg); }
/* volume: the slider opens beside the speaker button */
.vp-vol { display: flex; align-items: center; }
.vp .vp-slider { --pct: 100%; -webkit-appearance: none; appearance: none; box-sizing: content-box; width: 0; height: 4px; min-height: 0; padding: 0; border: 0; box-shadow: none; margin: 0; border-radius: 4px; opacity: 0; cursor: pointer; transition: width .2s, opacity .2s, margin .2s;
    background: linear-gradient(90deg, #fff var(--pct), rgba(255, 255, 255, .3) var(--pct)); }
.vp .vp-vol:hover .vp-slider, .vp .vp-slider:focus-visible, .vp .vp-slider:active { width: 70px; opacity: 1; margin: 0 .5rem 0 .2rem; }
.vp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-slider:focus-visible { outline: none; }
.vp-time { margin-left: .35rem; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); white-space: nowrap; }
.vp-gap { flex: 1; }
.vp-speed-tag { padding: .1rem .4rem; border-radius: 5px; background: rgba(255, 255, 255, .18); font-size: .72rem; font-weight: 700; }
.vp-speed-tag[hidden] { display: none; }
/* settings menu */
.vp-menu { position: absolute; right: .75rem; bottom: 4.1rem; z-index: 2; min-width: 230px; max-height: calc(100% - 5.5rem); overflow-y: auto; padding: .4rem 0; border-radius: 12px;
    background: rgba(28, 28, 28, .92); backdrop-filter: blur(10px); box-shadow: 0 12px 34px rgba(0, 0, 0, .35); scrollbar-width: none; }
.vp-menu[hidden] { display: none; }
.vp-mi { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .95rem; border: 0; background: none; color: #fff; font: 500 .84rem var(--body); text-align: left; cursor: pointer; }
.vp-mi:hover, .vp-mi:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.vp-mi span { flex: 1; }
.vp-mi b { font-weight: 500; color: rgba(255, 255, 255, .7); }
.vp-mi small { color: rgba(255, 255, 255, .6); }
.vp-mi small.vp-badge { padding: .05rem .3rem; border-radius: 4px; background: #ff0033; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .03em; }
.vp-mi svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vp-mi i { width: 18px; flex: 0 0 18px; }
.vp-mhead { border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: .3rem; font-weight: 600; }
.vp-note { margin: .3rem .95rem .4rem; color: rgba(255, 255, 255, .6); font-size: .74rem; line-height: 1.45; }
.vp-switch { position: relative; width: 34px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: background .2s; }
.vp-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.vp-switch.is-on { background: #ff2b4f; }
.vp-switch.is-on::after { transform: translateX(16px); }
@media (max-width: 560px) {
    .vp-btn { width: 34px; height: 34px; } .vp-btn svg { width: 20px; height: 20px; }
    .vp-time { font-size: .74rem; }
    .vp .vp-vol:hover .vp-slider { width: 0; opacity: 0; margin: 0; }   /* phones use their own volume buttons */
    .vp-menu { right: .5rem; min-width: 200px; }
}
.gallery-main video[hidden], .gallery-main img[hidden] { display: none; }
.gallery-main.is-video { cursor: default; }
.gallery-main.is-video::after, .gallery-main.is-video .zoom-lens { display: none; }
.gallery-thumbs .gallery-vthumb { position: relative; }
.gallery-vthumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* video thumbnail: a fully red play button, a little below the middle */
.gallery-vthumb span { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 44%; background: rgba(15, 23, 42, .3); }
.gallery-vthumb svg { width: 28px; height: 28px; padding: 6px 5px 6px 7px; border-radius: 50%; background: #ff0033; fill: #fff; box-shadow: 0 4px 12px rgba(255, 0, 51, .45); transition: transform .2s; }
.gallery-vthumb:hover svg { transform: scale(1.12); }
.pcard-img2 { opacity: 0; }
.pcard:hover .pcard-img2 { opacity: 1; }
.pcard:hover .pcard-img img:first-child { transform: scale(1.04); }
.badge-sale { position: absolute; top: .7rem; left: .7rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font: 700 .72rem var(--head); }   /* discount (-9%) in green; "Hot" stays pink */
.badge-sale.is-hot { background: var(--sale); }
/* badge animation: soft pulsing ring + a light shine now and then + a small pop on hover */
.badge-sale { z-index: 2; overflow: hidden; isolation: isolate; box-shadow: 0 2px 6px rgba(22, 163, 74, .25);
    animation: badge-in .5s cubic-bezier(.34, 1.56, .64, 1) backwards, badge-ring 2.4s ease-out .6s infinite; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.badge-sale::after { content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: badge-shine 3.6s ease-in-out 1s infinite; }
.badge-sale.is-hot { box-shadow: 0 2px 6px rgba(224, 36, 94, .25); animation-name: badge-in, badge-ring-hot; }
.pcard:hover .badge-sale { transform: scale(1.1) rotate(-6deg); }
@keyframes badge-in { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes badge-ring {
    0% { box-shadow: 0 2px 6px rgba(22, 163, 74, .25), 0 0 0 0 rgba(22, 163, 74, .3); }
    70%, 100% { box-shadow: 0 2px 6px rgba(22, 163, 74, .25), 0 0 0 6px rgba(22, 163, 74, 0); }
}
@keyframes badge-ring-hot {
    0% { box-shadow: 0 2px 6px rgba(224, 36, 94, .25), 0 0 0 0 rgba(224, 36, 94, .3); }
    70%, 100% { box-shadow: 0 2px 6px rgba(224, 36, 94, .25), 0 0 0 6px rgba(224, 36, 94, 0); }
}
@keyframes badge-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .badge-sale, .badge-sale::after { animation: none; } .pcard:hover .badge-sale { transform: none; } }
.badge-out { position: absolute; top: .9rem; right: .9rem; background: #1d2327; color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; }
.pcard-actions { position: absolute; top: .8rem; right: .8rem; display: flex; flex-direction: column; gap: .4rem; opacity: 0; transform: translateX(8px); transition: .25s; }
.pcard:hover .pcard-actions, .pcard:focus-within .pcard-actions { opacity: 1; transform: none; }
.pcard-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 0; color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.pcard-btn .ico { width: 19px; height: 19px; }
.pcard-btn:hover { background: var(--brand); color: #fff; }
.pcard-btn.is-on { color: var(--sale); }
.pcard-btn.is-on .ico { fill: currentColor; }
.pcard-btn.is-on:hover { color: #fff; }
/* Add to cart: a compact centred pill - only as wide as its words */
.pcard-add {
    position: absolute; left: 50%; bottom: .8rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: max-content; max-width: calc(100% - 1.2rem);
    border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .84rem var(--head); padding: .55rem 1.05rem; white-space: nowrap; cursor: pointer;
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--brand) 55%, transparent);
    opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s, background .2s;
}
.pcard-add .ico { width: 16px; height: 16px; }
.pcard:hover .pcard-add, .pcard:focus-within .pcard-add { opacity: 1; transform: translate(-50%, 0); }
.pcard-add:hover { background: var(--brand-dark); }
.countdown { display: flex; gap: .35rem; justify-content: center; font: 600 .82rem var(--head); }
.countdown.is-mini { position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%); background: var(--card); color: var(--sale); padding: .35rem .7rem; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); white-space: nowrap; transition: opacity .25s; }
.pcard:hover .countdown.is-mini { opacity: 0; }
.countdown.is-big span { display: grid; min-width: 62px; padding: .55rem; border-radius: 10px; background: var(--soft); text-align: center; color: var(--ink); font-size: 1.25rem; }
.countdown.is-big small { font: 500 .7rem var(--body); color: var(--muted); }
.pcard-body { text-align: center; padding: .9rem .3rem 0; }
.pcard-title { font: 700 1.06rem/1.35 var(--head); margin: .3rem 0 .35rem; color: var(--ink); letter-spacing: .005em; }
.stars { display: inline-flex; align-items: center; gap: 1px; color: #d4d8da; font-size: .95rem; }
.stars i { font-style: normal; }
.stars i.on { color: var(--star); }
.stars i.half { background: linear-gradient(90deg, var(--star) 50%, #d4d8da 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-n { color: var(--muted); font-size: .78rem; margin-left: .3rem; }
.price { display: flex; gap: .55rem; justify-content: center; align-items: baseline; font-family: var(--head); }
.price del { color: var(--muted); font-size: .95rem; }
.price ins { text-decoration: none; color: var(--brand); font-weight: 700; font-size: 1.1rem; }

/* Products For You: grey band, white marketplace cards */
.foryou { background: var(--soft); }
.fy-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fy-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 14px; background: var(--card); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.fy-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.fy-media { position: relative; margin-bottom: .7rem; }
.fy-img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.fy-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fy-card:hover .fy-img img { transform: scale(1.04); }
.fy-badge { position: absolute; top: 8px; left: 8px; padding: .12rem .45rem; border-radius: 6px; background: var(--sale); color: #fff; font-size: .74rem; font-weight: 700; }
.fy-badge.is-hot { background: #f85606; }
.fy-wish { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; transition: color .2s, transform .2s; }
.fy-wish .ico, .fy-wish svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.fy-wish:hover { color: var(--sale); transform: scale(1.08); }
.fy-wish.is-on { color: var(--sale); }
.fy-wish.is-on svg { fill: currentColor; }
.fy-title { font: 400 .95rem/1.35 var(--body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.fy-title a:hover { color: var(--brand); text-decoration: underline; }
.fy-hint { display: flex; align-items: center; gap: .25rem; margin: .2rem 0 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-hint svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fy-hint.is-good { color: #15803d; }
.fy-hint.is-star { color: #b7791f; }
.fy-hint.is-warn { color: #c2410c; }
.fy-hint.is-out { color: var(--sale); font-weight: 600; }
.fy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; margin-top: .55rem; }
.fy-price strong { font: 800 1.2rem var(--head); color: var(--ink); letter-spacing: -.01em; }
.fy-price del { color: var(--muted); font-size: .82rem; }
.fy-meta { margin: .2rem 0 0; font-size: .85rem; color: var(--ink); }
.fy-meta span { color: var(--muted); margin-left: .25rem; }
.fy-cat { margin: .35rem 0 0; font-size: .76rem; color: var(--muted); }
@media (max-width: 1100px) { .fy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .fy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .fy-card { padding: 8px 8px 12px; } .fy-price strong { font-size: 1.05rem; } .fy-wish { width: 32px; height: 32px; left: 8px; bottom: 8px; } }

/* Deal Of The Week: warm panel, heading + short text left, timer right, rich deal cards */
.dl-panel { position: relative; padding: clamp(1.1rem, 2.4vw, 1.8rem); border-radius: 18px; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05); }
.deals .dl-head { margin: calc(-1 * clamp(1.1rem, 2.4vw, 1.8rem)) calc(-1 * clamp(1.1rem, 2.4vw, 1.8rem)) 1.4rem; padding: clamp(1.1rem, 2.4vw, 1.8rem); background: var(--soft); border-bottom: 1px solid var(--line); }
.dl-card { background: var(--card); }
.dl-img { background: #f3f4f6; }
:root[data-theme="dark"] .dl-img { background: var(--soft); }
.dl-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.dl-head-text { max-width: 620px; }
.dl-flag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem .22rem .5rem; border-radius: 999px; background: #f85606; color: #fff; font: 700 .74rem var(--head); letter-spacing: .06em; text-transform: uppercase; }
.dl-flag svg { width: 14px; height: 14px; fill: currentColor; }
.dl-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .5rem 0 .3rem; }
.dl-head p { margin: 0; color: var(--muted); font-size: .98rem; }
.dl-head-side { display: flex; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; }
.dl-timer small { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dl-timer .countdown.is-big { justify-content: flex-start; gap: .4rem; }
.dl-timer .countdown.is-big span { min-width: 56px; padding: .45rem .4rem; background: #1d2327; color: #fff; font-size: 1.15rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.dl-timer .countdown.is-big small { color: rgba(255, 255, 255, .7); margin: 0; text-transform: none; letter-spacing: 0; font-size: .66rem; }
.dl-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dl-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.dl-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.dl-media { position: relative; }
.dl-img { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--soft); }
.dl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dl-card:hover .dl-img img { transform: scale(1.05); }
.dl-off { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: .2rem; padding: .22rem .45rem; border-radius: 6px; background: var(--sale); color: #fff; font: 700 .7rem/1 var(--head); letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.dl-off b { font: 800 .74rem/1 var(--head); }
.dl-wish { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; transition: color .2s, transform .2s; }
.dl-wish svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.dl-wish:hover, .dl-wish.is-on { color: var(--sale); }
.dl-wish.is-on svg { fill: currentColor; }
.dl-body { display: flex; flex-direction: column; flex: 1; padding: .85rem .95rem 1rem; }
.dl-cat { color: var(--brand); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dl-title { margin-top: .2rem; font: 700 1.02rem/1.3 var(--head); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dl-title a:hover { color: var(--brand); }
.dl-desc { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.dl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .5rem; margin-top: .6rem; }
.dl-price strong { font: 800 1.3rem var(--head); color: var(--sale); }
.dl-price del { color: var(--muted); font-size: .85rem; }
.dl-save { padding: .08rem .45rem; border-radius: 5px; background: #dcfce7; color: #15803d; font-size: .74rem; font-weight: 700; }
.dl-add { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; margin-top: auto; padding: .65rem 1rem; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: 600 .9rem var(--head); cursor: pointer; transition: background .2s; }
.dl-price { margin-bottom: .85rem; }
.dl-add .ico { width: 17px; height: 17px; }
.dl-add:hover { background: var(--brand-dark); color: #fff; }
.dl-add.is-out { background: var(--soft); color: var(--ink); }
@media (max-width: 1100px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dl-head { align-items: flex-start; } }
@media (max-width: 560px) {   /* phones: one deal per row, picture left, details right */
    .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .dl-card { flex-direction: row; }
    .dl-media { flex: 0 0 40%; }
    .dl-img { height: 100%; aspect-ratio: auto; min-height: 210px; }
    .dl-body { padding: .7rem .75rem .8rem; min-width: 0; }
    .dl-title { -webkit-line-clamp: 2; font-size: .95rem; }
    .dl-desc { font-size: .8rem; min-height: 0; }
    .dl-price strong { font-size: 1.12rem; }
    .dl-off { top: 8px; left: 8px; }
    .dl-wish { width: 32px; height: 32px; top: auto; bottom: 8px; right: auto; left: 8px; }
    .dl-timer .countdown.is-big span { min-width: 50px; font-size: 1rem; }
    .dl-head-side { width: 100%; justify-content: space-between; }
    .dl-add { padding: .55rem .6rem; font-size: .85rem; }
}

/* offers marquee */
.marquee { background: var(--brand); color: #fff; overflow: hidden; padding: 1rem 0; font: 700 1.1rem var(--head); text-transform: uppercase; letter-spacing: .04em; }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { padding-right: 4rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
/* Shop By Category: one row, 7 visible, left / right arrows scroll it */
.cat-slider { --cat-n: 7; --cat-gap: 1.2rem; position: relative; }
.cat-row { display: flex; gap: var(--cat-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: .3rem 0; }
.cat-row::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 calc((100% - (var(--cat-n) - 1) * var(--cat-gap)) / var(--cat-n)); min-width: 0; scroll-snap-align: start; text-align: center; display: flex; flex-direction: column; gap: .25rem; align-items: center; }
.cat strong { max-width: 100%; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat small { max-width: 100%; white-space: nowrap; }
.cat-arrow { position: absolute; top: 64px; z-index: 2; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.cat-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cat-arrow:hover:not([disabled]) { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-arrow[disabled] { opacity: 0; pointer-events: none; }
.cat-arrow.is-prev { left: -21px; }
.cat-arrow.is-next { right: -21px; }
.cat-slider.is-static .cat-arrow { display: none; }
@media (max-width: 1240px) { .cat-arrow.is-prev { left: -6px; } .cat-arrow.is-next { right: -6px; } }
@media (max-width: 1100px) { .cat-slider { --cat-n: 5; } }
@media (max-width: 860px) { .cat-slider { --cat-n: 4; --cat-gap: .9rem; } .cat-slider .cat-img { width: 96px; height: 96px; } .cat-arrow { top: 52px; width: 36px; height: 36px; } }
@media (max-width: 520px) { .cat-slider { --cat-n: 3; } .cat-slider .cat-img { width: 84px; height: 84px; } .cat-arrow { top: 46px; } .cat-arrow.is-prev { left: -10px; } .cat-arrow.is-next { right: -10px; } }
.cat-img { flex: none; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.cat:hover .cat-img { border-color: var(--brand); }
.cat strong { font: 600 .95rem var(--head); margin-top: .4rem; }
.cat small { color: var(--muted); }
.post-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { display: flex; flex-direction: column; gap: .45rem; }
.post-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post-img img { transform: scale(1.05); }
.post-date { color: var(--brand); font-size: .85rem; font-weight: 600; margin-top: .4rem; }
.post strong { font: 700 1.15rem var(--head); }
.post-ex { color: var(--muted); font-size: .92rem; }

/* footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; padding: 3.2rem 0 2rem; }
.footer-grid h4 { font-size: 1.15rem; margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--muted); padding: .22rem 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { color: var(--muted); margin: 0 0 .55rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer-grid p .ico { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.footer-grid p a { display: inline; padding: 0; }
.newsletter { display: flex; gap: .4rem; }
.newsletter input { min-width: 0; }
.form-msg { font-size: .85rem; min-height: 1.2em; }
/* footer "Create an Account" form */
.foot-signup { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.foot-signup input { width: 100%; min-width: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; }
.foot-signup input[name=email], .foot-signup input[name=password], .foot-signup .btn { grid-column: 1 / -1; }
.foot-home { color: var(--ink); font-weight: 600; }
.foot-home:hover { color: var(--brand); text-decoration: underline; }
.foot-req { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; margin: -.1rem 0 .1rem; }
.foot-login { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); }
.foot-login a, .foot-account-links a { display: inline; color: var(--brand); font-weight: 600; }
@media (max-width: 380px) { .foot-signup { grid-template-columns: 1fr; } }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.socials-label { font: 700 .95rem var(--head); color: var(--ink); margin-right: .2rem; }
.socials a.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.socials a.social svg { width: 20px; height: 20px; }
.socials a.social:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.socials a.is-facebook:hover { background: #1877f2; }
.socials a.is-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.socials a.is-tiktok:hover { background: #111; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; border-top: 1px solid var(--line); padding: 1.2rem 0; color: var(--muted); font-size: .88rem; }
.pay-list { display: flex; gap: .4rem; flex-wrap: wrap; }
.pay-list > span { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: .25rem .6rem .25rem .3rem; font-size: .78rem; font-weight: 600; }
/* payment icons: official logo if uploaded, else a simple icon in the service's colour */
.pay-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex: none; color: #fff; }
.pay-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pay-ico.is-cod { background: #2e7d32; }
.pay-ico.is-esewa { background: #60bb46; }
.pay-ico.is-khalti { background: #5c2d91; }
.pay-ico.is-bank { background: #1f4e8c; }
.pay-ico-img { height: 22px; width: auto; max-width: 90px; object-fit: contain; flex: none; border-radius: 4px; }
.pay-list > span.has-logo { padding: .2rem .5rem; background: #fff; }
.pay-opt .pay-ico { width: 34px; height: 34px; border-radius: 9px; margin-top: .05rem; }
.pay-opt .pay-ico svg { width: 22px; height: 22px; }
.pay-opt .pay-ico-img { height: 34px; max-width: 110px; background: #fff; border-radius: 6px; padding: 2px 4px; }

/* floating bits */
.to-top, .theme-toggle { position: fixed; z-index: 30; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.to-top { right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.is-on { opacity: 1; pointer-events: auto; }
/* Live chat: round Messenger-style button + pop-up chat window */
/* chat icon sits above the back-to-top arrow (arrow centred under it) */
body:has(.chat-widget:not([hidden])) .to-top { right: 28px; bottom: 20px; }
.chat-widget { position: fixed; right: 20px; bottom: 76px; z-index: 45; }
.chat-widget[hidden] { display: none; }
.chat-widget.is-open { z-index: 65; } /* open chat sits above the cookie notice (60) */
.chat-hide { position: absolute; top: -8px; left: -8px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #3b4250; color: #fff; font-size: .9rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.chat-hide:hover { background: #e0245e; }
.chat-widget.is-open .chat-hide { display: none; }
.chat-restore { position: fixed; right: 0; bottom: 130px; z-index: 44; display: flex; align-items: center; gap: .35rem; padding: .5rem .7rem .5rem .6rem; border: 0; border-radius: 12px 0 0 12px; background: linear-gradient(135deg, #0a7cff, #a334fa); color: #fff; font: 600 .82rem var(--head); cursor: pointer; box-shadow: 0 6px 16px rgba(10, 124, 255, .35); }
.chat-restore[hidden] { display: none; }
.chat-restore svg { width: 18px; height: 18px; }
.toast .toast-undo { border: 0; background: none; color: #6fb2ff; font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
.chat-fab { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, #0a7cff, #a334fa 65%, #ff5280); box-shadow: 0 10px 26px rgba(10, 124, 255, .4); transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 32px; height: 32px; }
.chat-fab .chat-ico-close { display: none; width: 24px; height: 24px; }
.chat-widget.is-open .chat-ico-open { display: none; }
.chat-widget.is-open .chat-ico-close { display: block; }
.chat-badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e0245e; color: #fff; font: 700 .75rem/22px var(--body, sans-serif); border: 2px solid #fff; }
.chat-pop { position: absolute; right: 0; bottom: 74px; width: 360px; max-width: calc(100vw - 32px); height: min(540px, calc(100dvh - 166px)); min-height: 0; /* 76px widget offset + 74px above the button + 16px gap, so the header never goes off the top */ display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 22px 60px rgba(0, 0, 0, .22); animation: chatPop .22s ease; }
.chat-pop[hidden] { display: none; }
@keyframes chatPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: linear-gradient(135deg, #0a7cff, #7b4dff); color: #fff; }
.chat-head strong { display: block; font: 700 1rem var(--head); }
.chat-head small { display: flex; align-items: center; gap: .35rem; font-size: .78rem; opacity: .92; }
.chat-head small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; }
.chat-head small.is-online::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; flex: none; }
.chat-avatar img { width: 26px; height: 26px; object-fit: contain; }
.chat-x { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--soft, #f4f6f8); }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; }
.chat-msg p { margin: 0; padding: .55rem .8rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg time { font-size: .68rem; color: var(--muted); margin: .15rem .4rem 0; }
.chat-msg.is-admin { align-self: flex-start; }
.chat-msg.is-admin p { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.is-visitor { align-self: flex-end; align-items: flex-end; }
.chat-msg.is-visitor p { background: #0a7cff; color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.is-sending p { opacity: .6; }
.chat-day { align-self: center; font-size: .7rem; color: var(--muted); background: var(--card); border-radius: 999px; padding: .1rem .6rem; }
.chat-details { display: grid; gap: .45rem; padding: .7rem 1rem 0; border-top: 1px solid var(--line); background: var(--card); }
.chat-details[hidden] { display: none; }
.chat-details p { margin: 0; font-size: .82rem; color: var(--muted); }
.chat-details input, .chat-compose textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; }
.chat-err { color: #c0392b; font-size: .8rem; min-height: 0; }
.chat-compose { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem 1rem; background: var(--card); }
.chat-details:not([hidden]) + .chat-compose { border-top: 0; }
.chat-details[hidden] + .chat-compose { border-top: 1px solid var(--line); }
.chat-compose textarea { resize: none; max-height: 110px; border-radius: 20px; padding: .6rem .9rem; }
.chat-compose button { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #0a7cff; cursor: pointer; }
.chat-compose button svg { width: 20px; height: 20px; fill: #fff; }
.chat-compose button:disabled { opacity: .5; cursor: wait; }
/* Messenger-style composer: tools | text + emoji | send/like */
.chat-head-btn { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; }
.chat-head-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.chat-head-btn svg { width: 19px; height: 19px; fill: currentColor; }
.chat-compose { position: relative; align-items: flex-end; gap: .35rem; padding: .6rem .7rem; }
.chat-tools { display: flex; align-items: center; gap: .1rem; flex: none; padding-bottom: 3px; }
.chat-compose .chat-tool { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #0a7cff; cursor: pointer; font-weight: 400; }
.chat-compose .chat-tool:hover { background: rgba(10, 124, 255, .1); }
.chat-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-tool input[type=file] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; padding: 0; }
.chat-compose .chat-more { display: none; }
.chat-compose.is-typing .chat-tool:not(.chat-more) { display: none; }
.chat-compose.is-typing .chat-more { display: grid; }
.chat-field { position: relative; flex: 1; min-width: 0; }
.chat-compose .chat-field textarea { display: block; padding-right: 2.4rem; background: var(--soft); border-color: transparent; }
.chat-compose .chat-emoji-btn { position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: none; color: #0a7cff; display: grid; place-items: center; }
.chat-emoji-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat-compose .chat-send, .chat-rec .chat-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #0a7cff; display: grid; place-items: center; cursor: pointer; padding: 0; }
/* stronger than the older ".chat-compose button svg { fill: #fff }" rule, which made these icons white-on-white */
.chat-compose .chat-send svg, .chat-rec .chat-send svg { width: 24px; height: 24px; fill: currentColor; }
.chat-compose .chat-tool svg { width: 22px; height: 22px; fill: none; }
.chat-compose .chat-emoji-btn svg { width: 21px; height: 21px; fill: none; }
.chat-compose .chat-send:disabled { opacity: .45; }
.chat-compose .chat-send:hover, .chat-rec .chat-send:hover { background: rgba(10, 124, 255, .1); }
.chat-compose .chat-ico-send { display: none; }
.chat-compose.is-ready .chat-ico-send { display: block; }
.chat-compose.is-ready .chat-ico-like { display: none; }
.chat-compose[hidden] { display: none; }
/* files waiting to be sent */
.chat-tray { display: flex; gap: .45rem; overflow-x: auto; padding: .6rem .8rem 0; background: var(--card); border-top: 1px solid var(--line); }
.chat-tray[hidden] { display: none; }
.cm-thumb { position: relative; flex: none; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.cm-thumb img, .cm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-thumb-audio { display: grid; place-items: center; height: 100%; font-size: 1.6rem; }
.cm-thumb-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: .95rem; line-height: 1; cursor: pointer; }
/* emoji picker */
.chat-emoji { position: absolute; left: .7rem; right: .7rem; bottom: calc(100% + 6px); z-index: 3; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 180px; overflow-y: auto; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.chat-emoji[hidden] { display: none; }
.chat-emoji button { border: 0; background: none; font-size: 1.35rem; padding: .25rem 0; border-radius: 8px; cursor: pointer; }
.chat-emoji button:hover { background: var(--soft); }
/* recording a voice message */
.chat-rec { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; background: var(--card); border-top: 1px solid var(--line); }
.chat-rec[hidden] { display: none; }
.chat-rec-x { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0245e; animation: recBlink 1s infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.chat-rec-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.chat-rec-label { flex: 1; color: var(--muted); font-size: .88rem; }
/* desktop camera */
.chat-cam { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: #000; }
.chat-cam[hidden] { display: none; }
.chat-cam video { flex: 1; min-height: 0; width: 100%; object-fit: cover; transform: scaleX(-1); }
.chat-cam-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1rem; }
.chat-cam-cancel { justify-self: start; border: 0; background: none; color: #fff; font: 600 .95rem var(--body); cursor: pointer; }
.chat-cam-shot { width: 62px; height: 62px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; }
.chat-cam-shot:hover { background: rgba(255, 255, 255, .5); }
/* attachments inside messages */
.chat-msg.has-file { max-width: 75%; }
.cm-att { display: block; max-width: 100%; border-radius: 16px; }
.cm-img img { display: block; max-width: 100%; max-height: 240px; border-radius: 16px; object-fit: cover; background: var(--soft); }
.cm-video { max-height: 260px; background: #000; }
.cm-audio { width: 230px; max-width: 100%; height: 40px; }
.chat-msg.has-file p { margin-top: .3rem; }
.chat-msg.is-visitor .cm-att { align-self: flex-end; }
.chat-msg p.is-emoji { background: none !important; border: 0 !important; padding: 0 .1rem; font-size: 2.3rem; line-height: 1.15; }
.chat-msg.is-sending p { font-style: italic; }
/* call lines, removed messages, ⋯ menu, editing banner */
.chat-head-btn { border: 0; background: none; cursor: pointer; padding: 0; }
.chat-head-btn svg { fill: currentColor; }
.chat-msg.is-call p { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line); font-weight: 600; }
.chat-msg.is-deleted p { background: none !important; color: var(--muted) !important; border: 1px dashed var(--line) !important; font-style: italic; }
.chat-msg { position: relative; }
.chat-act { position: absolute; top: 4px; left: -30px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); transition: opacity .15s; }
.chat-msg:hover .chat-act, .chat-act:focus-visible { opacity: 1; }
@media (hover: none) { .chat-act { opacity: .7; } }
.chat-menu { position: absolute; z-index: 5; min-width: 130px; padding: .3rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
.chat-menu[hidden] { display: none; }
.chat-menu button { display: block; width: 100%; padding: .5rem .9rem; border: 0; background: none; text-align: left; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.chat-menu button:hover { background: var(--soft); }
.chat-menu .is-danger { color: #d1294b; }
.chat-editing { display: flex; align-items: center; justify-content: space-between; padding: .45rem .9rem; background: #fff7e0; color: #7a5a00; font-size: .85rem; font-weight: 600; border-top: 1px solid var(--line); }
.chat-editing[hidden] { display: none; }
.chat-editing button { border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; }
:root[data-theme="dark"] .chat-editing { background: #3a3014; color: #f3d98a; }
.chat-alt { display: block; padding: .5rem 1rem .7rem; background: var(--card); text-align: center; font-size: .8rem; color: #0a7cff; font-weight: 600; }
@media (max-width: 480px) {
    .chat-widget { right: 14px; bottom: 70px; }
    body:has(.chat-widget:not([hidden])) .to-top { right: 22px; bottom: 14px; }
    .chat-widget.is-open { left: 0; right: 0; top: 0; bottom: 0; }
    .chat-widget.is-open .chat-fab { display: none; }
    .chat-pop { position: fixed; inset: 0; width: auto; max-width: none; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-pop { animation: none; } }
.theme-toggle { left: 20px; bottom: 20px; height: 40px; padding: 0 .4rem; border-radius: 20px; background: #1d2327; color: #fff; grid-auto-flow: column; gap: .2rem; }
.theme-toggle span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.theme-toggle .ico { width: 17px; height: 17px; }
.theme-toggle .t-sun { background: #fff; color: #1d2327; }
:root[data-theme="dark"] .theme-toggle .t-sun { background: transparent; color: #fff; }
:root[data-theme="dark"] .theme-toggle .t-moon { background: #fff; color: #1d2327; }
/* flex + margin:auto (not grid centring) so a pop-up taller than the screen scrolls instead of being cut off at the top */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: rgba(15, 20, 22, .55); }
.modal-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); width: min(820px, 100%); margin: auto; flex: none; background: var(--card); border-radius: 16px; overflow: hidden; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-art { background-size: cover; background-position: center; min-height: 360px; }
.modal-body { padding: 2.4rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: .9rem; text-align: center; }
.modal-body h3 { font-size: 1.6rem; }
.modal-body p { color: var(--muted); margin: 0; }
.modal-body .check { justify-content: center; font-size: .9rem; }
/* Sign up / Log in pop-up */
.auth-pop { gap: .75rem; padding: 2rem 1.8rem 1.4rem; }
.auth-pop h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft, #f2f4f6); border-radius: 10px; padding: 4px; }
.auth-tabs button { border: 0; background: none; padding: .55rem; border-radius: 8px; font: 600 .95rem var(--head); color: var(--muted); cursor: pointer; }
.auth-tabs button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.auth-form { display: grid; gap: .55rem; text-align: left; }
.auth-form[hidden] { display: none; }
.auth-form input { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; }
.auth-forgot { justify-self: center; font-size: .88rem; color: var(--brand); font-weight: 600; }
.modal-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; cursor: pointer; color: var(--ink); padding: .4rem; }
.cookie { position: fixed; right: 20px; bottom: 76px; z-index: 60; width: min(340px, calc(100% - 40px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .14); }
/* keep the cookie notice above the round chat button instead of covering it */
body:has(.chat-widget:not([hidden])) .cookie { bottom: 150px; }
@media (max-width: 480px) { body:has(.chat-widget:not([hidden])) .cookie { bottom: 140px; } }
.cookie p { margin: .3rem 0 .8rem; color: var(--muted); font-size: .9rem; }
.cookie a { color: var(--brand); text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: .8rem 1.2rem; border-radius: 10px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); display: flex; gap: .8rem; align-items: center; }
.toast a { color: var(--brand); font-weight: 700; }
.recent-pop { position: fixed; left: 20px; bottom: 76px; z-index: 55; display: flex; gap: .8rem; align-items: center; width: min(360px, calc(100% - 40px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .12); animation: pop .35s ease; }
.recent-pop img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.recent-pop small { color: var(--muted); display: block; }
.recent-pop strong { font-size: .92rem; display: block; }
.recent-pop button { margin-left: auto; align-self: flex-start; background: none; border: 0; cursor: pointer; color: var(--muted); }

/* shop page */
.page-head { background: var(--soft); padding: 2.4rem 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.crumbs { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.crumbs a:hover { color: var(--brand); }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2.5rem 0; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; background: var(--card); }
.side-box h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.side-box a { display: flex; justify-content: space-between; padding: .35rem 0; color: var(--muted); }
.side-box a.is-on, .side-box a:hover { color: var(--brand); font-weight: 600; }
.price-filter { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; color: var(--muted); }
.shop-bar select { width: auto; }
.shop-layout .pgrid { grid-template-columns: repeat(3, 1fr); }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.4rem; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; }
.pager .is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* product page */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; padding: 2.5rem 0; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; transition: box-shadow .5s, background .5s; }
/* product page: the big picture glows in its own colour; the chosen thumbnail is framed in it */
.has-amb .gallery-main { background: linear-gradient(150deg, rgba(var(--amb), .12), rgba(var(--amb), .32)); box-shadow: 0 34px 60px -32px rgba(var(--amb), .9), 0 0 0 1px rgba(var(--amb), .22); }
.has-amb .gallery-thumbs button.is-on { border-color: rgb(var(--amb)); box-shadow: 0 8px 18px -8px rgba(var(--amb), .9); }
.has-amb .gallery-thumbs button { transition: border-color .3s, box-shadow .3s; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
/* click to zoom (store.js): zoom-in cursor, smooth zoom, the picture follows the mouse */
.gallery-main { position: relative; cursor: zoom-in; }
.gallery-main img { transition: transform .35s ease; will-change: transform; }
.gallery-main.is-zoomed { cursor: zoom-out; touch-action: none; }
.gallery-main.is-zoomed img { transition: transform .35s ease, transform-origin .08s linear; }
.gallery-main:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.gallery-main::after { content: ""; position: absolute; right: .8rem; bottom: .8rem; width: 38px; height: 38px; border-radius: 50%; pointer-events: none;
    background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2327' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: opacity .25s; }
.gallery-main.is-zoomed::after { opacity: 0; }
/* magnifying glass following the mouse */
.zoom-lens { position: absolute; left: 0; top: 0; z-index: 3; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
    background-color: var(--card); background-repeat: no-repeat; opacity: 0; transition: opacity .2s;
    border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .06);
    filter: saturate(1.12) contrast(1.05) brightness(1.02); }
.gallery-main.is-lens { cursor: none; }
.gallery-main.is-lens .zoom-lens { opacity: 1; }
.gallery-main.is-lens::after { opacity: 0; }
.has-amb .zoom-lens { border-color: rgba(255, 255, 255, .95); box-shadow: 0 14px 36px -6px rgba(var(--amb), .75), 0 0 0 1px rgba(var(--amb), .35); }
@media (prefers-reduced-motion: reduce) { .gallery-main img, .gallery-main.is-zoomed img { transition: none; } }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; flex-wrap: wrap; }
/* the big picture fits the screen: never taller than the space under the header (it stays square, centred,
   thumbnails lined up under it); phones keep the full width */
.product { padding-top: 1.5rem; }
.product > div:first-child { min-width: 0; --gal: min(100%, max(340px, calc(100vh - 175px))); }
.product .gallery-main, .product .gallery-thumbs { width: var(--gal); margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .product > div:first-child { --gal: 100%; } }
.gallery-thumbs button { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); }
.gallery-thumbs button.is-on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .4rem 0 .6rem; }
.pinfo .price { justify-content: flex-start; margin: .8rem 0; }
.pinfo .price ins { font-size: 1.8rem; }
.pinfo .price del { font-size: 1.2rem; }
.save-tag { background: #fdecef; color: var(--sale); font: 700 .8rem var(--head); padding: .2rem .55rem; border-radius: 6px; }
.stock { font-weight: 600; font-size: .92rem; }
.stock.is-in { color: #15803d; }
.stock.is-low { color: #b45309; }
.stock.is-out { color: var(--sale); }
.deal-box { border: 1.5px dashed var(--sale); border-radius: 12px; padding: .9rem; margin: 1rem 0; }
.deal-box p { margin: 0 0 .6rem; font-weight: 600; color: var(--sale); }
.deal-box .countdown { justify-content: flex-start; }
.buy-row { display: flex; gap: .7rem; align-items: stretch; margin: 1.3rem 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; }
.qty button { width: 40px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.qty input { width: 52px; border: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pcard-btn-wide.is-on { color: var(--sale); border-color: var(--sale); }
.pcard-btn-wide.is-on .ico { fill: currentColor; }
.pmeta { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .92rem; }
.pmeta div { margin-bottom: .3rem; }
.pmeta strong { color: var(--ink); }
.tabs { margin-top: 1rem; }
.tab-btns { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.tab-btns button { background: none; border: 0; border-bottom: 2.5px solid transparent; padding: .7rem 0; font: 600 1.05rem var(--head); color: var(--muted); cursor: pointer; }
.tab-btns button.is-on { color: var(--ink); border-color: var(--brand); }
.review { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.review p { margin: .4rem 0 0; }
.rate-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.rate-input input { display: none; }
.rate-input label { font-size: 1.7rem; color: #d4d8da; cursor: pointer; margin: 0; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--star); }

/* product details + Ratings & Reviews (Daraz-style layout) */
:root { --rv-star: #faca51; --rv-star-off: #e3e6ea; --rv-head: #fafafa; --rv-green: #20a464; }
:root[data-theme="dark"] { --rv-star-off: #3a444a; --rv-head: #1f282c; }
.pd-section { margin-top: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd-title { margin: 0; padding: .9rem 1.2rem; background: var(--rv-head); font: 600 1.05rem var(--body); border-bottom: 1px solid var(--line); }
.pd-body { padding: 1.2rem; line-height: 1.7; }
.rv-jump { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand); font-size: .9rem; }
.rv-jump:hover span { text-decoration: underline; }
.rv-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rv-stars i { --f: 0%; width: 15px; height: 15px; flex: none; background: linear-gradient(90deg, var(--rv-star) var(--f), var(--rv-star-off) var(--f));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5L7 14.3l-5.3-5 7.2-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5L7 14.3l-5.3-5 7.2-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rv-stars.is-lg i { width: 30px; height: 30px; }
.rv-stars.is-lg { gap: 4px; }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3.5rem; padding: 1.4rem 1.2rem; }
.rv-score { min-width: 190px; }
.rv-avg { line-height: 1; margin-bottom: .55rem; }
.rv-avg strong { font: 500 3.2rem var(--body); color: var(--ink); }
.rv-avg span { font-size: 1.6rem; color: var(--muted); }
.rv-count { margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.rv-bars a { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--muted); padding: .1rem 0; }
.rv-bars a:hover .rv-track > span { filter: brightness(.92); }
.rv-track { width: 160px; height: 12px; background: var(--rv-star-off); border-radius: 0; overflow: hidden; }
.rv-track > span { display: block; height: 100%; background: var(--rv-star); }
.rv-n { min-width: 2ch; }
.rv-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 1.2rem; background: var(--rv-head); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rv-head-title { font-weight: 600; }
.rv-tools { display: flex; gap: 1.6rem; }
.rv-drop { position: relative; font-size: .9rem; }
.rv-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .3rem; user-select: none; }
.rv-drop summary::-webkit-details-marker { display: none; }
.rv-drop summary::after { content: ''; width: 6px; height: 6px; margin: -3px 0 0 .3rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.rv-drop[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.rv-menu { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 20; min-width: 190px; padding: .35rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.rv-menu a { display: block; padding: .5rem 1rem; white-space: nowrap; }
.rv-menu a:hover { background: var(--soft); }
.rv-menu a.is-on { color: var(--brand); font-weight: 600; }
.rv-list { padding: 0 1.2rem; }
.rv-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border-bottom: 0; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rv-date { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.rv-by { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.rv-verified { display: inline-flex; align-items: center; gap: .3rem; color: var(--rv-green); font-weight: 500; }
.rv-verified svg { width: 14px; height: 14px; }
.rv-text { margin: .6rem 0 0; white-space: normal; overflow-wrap: anywhere; }
.rv-empty { margin: 0; padding: 2rem 0; text-align: center; color: var(--muted); }
.rv-empty a { color: var(--brand); font-weight: 600; }
.rv-pager { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.rv-pager a, .rv-pager span { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 4px; font-size: .9rem; background: var(--card); }
.rv-pager a:hover { border-color: var(--brand); }
.rv-pager .is-on { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.rv-pager .is-off { color: var(--line); }
.rv-pager .is-gap { border: 0; background: none; }
/* review photos + video: thumbnails under a review */
.rv-media { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.rv-thumb { position: relative; width: 150px; height: 150px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.rv-thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.rv-thumb .rv-play { width: 46px; height: 46px; }
.rv-thumb .rv-play::after { left: 18px; top: 13px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
@media (max-width: 520px) {   /* phones: 3 per row, filling the width */
    .rv-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
    .rv-thumb { width: 100%; height: auto; aspect-ratio: 1; }
}
.rv-thumb img, .rv-thumb video, .rv-up-item img, .rv-up-item video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rv-thumb:hover { border-color: var(--brand); }
.rv-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .55); pointer-events: none; }
.rv-play::after { content: ''; position: absolute; left: 12px; top: 9px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
/* full-size viewer */
.rv-lightbox { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(0, 0, 0, .88); padding: 48px 8px 16px; }
.rv-lb-stage { display: grid; place-items: center; height: 100%; min-width: 0; }
.rv-lb-stage img, .rv-lb-stage video { max-width: 100%; max-height: calc(100dvh - 80px); border-radius: 6px; background: #000; }
.rv-lb-x { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.rv-lb-nav { width: 44px; height: 64px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2.2rem; cursor: pointer; }
.rv-lb-nav:hover, .rv-lb-x:hover { background: rgba(255, 255, 255, .25); }
.rv-lb-nav[hidden] { display: block !important; visibility: hidden; }
/* upload area in the review form */
.rv-upload > label:first-child { margin-bottom: .5rem; }
.rv-upload-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.rv-pick { position: relative; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .6rem 1rem; border: 1.5px dashed var(--line); border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--card); }
.rv-pick:hover, .rv-pick:focus-within { border-color: var(--brand); color: var(--brand); }
.rv-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; padding: 0; }
.rv-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
/* review form: two upload boxes (photos / video) with icon, limits, counter and drag & drop */
.rv-drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rv-drop { --tone: var(--brand); position: relative; display: flex; align-items: center; gap: .8rem; margin: 0; padding: .95rem 1rem; border: 1.5px dashed color-mix(in srgb, var(--tone) 35%, var(--line));
    border-radius: 14px; background: color-mix(in srgb, var(--tone) 4%, var(--card)); cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.rv-drop-video { --tone: #e0245e; }
.rv-drop:hover, .rv-drop:focus-within, .rv-drop.is-over { border-color: var(--tone); border-style: solid; background: color-mix(in srgb, var(--tone) 9%, var(--card)); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--tone) 70%, transparent); transform: translateY(-1px); }
.rv-drop.is-over { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent); }
.rv-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.rv-drop-ico { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tone); color: #fff; box-shadow: 0 6px 14px -6px var(--tone); }
.rv-drop-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-drop-text { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.rv-drop-text strong { font: 700 .95rem var(--head); color: var(--ink); }
.rv-drop-text small { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.rv-drop-count { flex: none; padding: .2rem .55rem; border-radius: 999px; background: var(--soft); color: var(--muted); font: 700 .74rem var(--head); }
.rv-drop-count.is-on { background: var(--tone); color: #fff; }
.rv-drop-hint { display: flex; align-items: center; gap: .4rem; margin: .55rem 0 0; color: var(--muted); font-size: .8rem; }
.rv-drop-hint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rv-up-size { position: absolute; left: 4px; bottom: 4px; padding: .05rem .35rem; border-radius: 5px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .66rem; font-weight: 600; }
.rv-up-item.is-new { border-radius: 10px; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .35); animation: rv-pop .25s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rv-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .rv-drop-grid { grid-template-columns: minmax(0, 1fr); } }
.rv-upload-current, .rv-upload-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.rv-upload-current { margin-bottom: .7rem; }
.rv-upload-preview:not(:empty) { margin-top: .7rem; }
.rv-up-item { position: relative; width: 84px; height: 84px; margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--soft); font-weight: 400; }
.rv-up-remove { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .25rem; padding: .15rem .3rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .7rem; cursor: pointer; }
.rv-up-remove input { width: auto; margin: 0; }
.rv-up-item:has(input:checked) img, .rv-up-item:has(input:checked) video { opacity: .35; }
.rv-up-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.rv-write { padding: 0 1.2rem 1.2rem; }
.rv-write .box, .rv-write .notice { margin: 1rem 0 0; }
@media (max-width: 520px) {
    .rv-summary { gap: 1.2rem; padding: 1.1rem 1rem; }
    .rv-score { min-width: 0; width: 100%; }
    .rv-bars { width: 100%; }
    .rv-track { flex: 1; width: auto; }
    .rv-list, .rv-write { padding-inline: 1rem; }
    .rv-head { padding-inline: 1rem; }
    .rv-tools { width: 100%; justify-content: space-between; }
    .rv-drop:first-child .rv-menu { left: 0; right: auto; }
    .pd-title { padding-inline: 1rem; }
    .pd-body { padding: 1rem; }
}

/* order tracking */
.track-box { margin-bottom: 1.2rem; }
.track-box h3 { margin-bottom: 1.1rem; }
.track-steps { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.track-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; font-size: .85rem; color: var(--muted); }
.track-steps li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track-steps li:first-child::before { display: none; }
.track-steps li.is-done::before { background: var(--brand); }
.track-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-weight: 700; font-size: .85rem; }
.track-steps li.is-done .track-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.track-steps li.is-current .track-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.track-steps li.is-done strong { color: var(--ink); }
.track-steps small { font-size: .74rem; }
.track-now { padding: .75rem 1rem; border-radius: 10px; background: var(--brand-soft); color: var(--ink); margin-bottom: 1rem; }
.track-now span { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.track-now.is-done { background: #dcfce7; color: #166534; font-weight: 600; }
.track-info { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 0 0 1rem; }
.track-info dt { color: var(--muted); font-size: .78rem; }
.track-info dd { margin: .1rem 0 0; font-weight: 600; }
.track-info code { font-size: .95rem; }
.track-copy { margin-left: .3rem; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: .75rem; cursor: pointer; color: var(--ink); }
.track-h { margin: 1.4rem 0 .7rem; font-size: 1rem; }
.track-timeline { list-style: none; margin: 0; padding: 0; }
.track-timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; padding-bottom: 1rem; }
.track-timeline li::before { content: ''; position: absolute; left: 75px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.track-timeline li::after { content: ''; position: absolute; left: 80px; top: 18px; bottom: -4px; width: 1px; background: var(--line); }
.track-timeline li:last-child::after { display: none; }
.track-timeline li.is-latest::before { background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.track-timeline time { color: var(--muted); font-size: .78rem; text-align: right; line-height: 1.35; }
.track-timeline li > div { padding-left: 1.3rem; }
.track-timeline li.is-latest strong { color: var(--brand); }
.track-timeline p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.track-tag { margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: var(--soft); font-size: .72rem; color: var(--muted); }
.track-mine { list-style: none; margin: 0; padding: 0; }
.track-mine li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.track-mine li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 520px) {
    .track-steps li { font-size: .74rem; }
    .track-timeline li { grid-template-columns: 52px 1fr; gap: .8rem; }
    .track-timeline li::before { left: 58px; }
    .track-timeline li::after { left: 63px; }
    .track-mine li { flex-direction: column; align-items: stretch; }
}

/* cart / checkout / account */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding: 2.5rem 0; align-items: start; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--card); }
.box h2, .box h3 { margin-bottom: 1rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font: 600 .85rem var(--head); color: var(--muted); padding: 0 0 .8rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 1rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; gap: .9rem; align-items: center; }
.cart-prod img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.totals div { display: flex; justify-content: space-between; padding: .45rem 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font: 700 1.2rem var(--head); }
.ship-where { color: var(--muted); font-size: .82em; font-weight: 400; }
.ship-note { font-size: .85rem; color: var(--brand-dark); background: var(--brand-soft); padding: .6rem .8rem; border-radius: 8px; margin: .6rem 0; }
.coupon { display: flex; gap: .5rem; margin-top: .8rem; }
/* coupons in the totals + the coupon box (cart and checkout) */
.totals .t-disc { color: #15803d; }
.totals .t-disc > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; }
.totals .t-disc small { flex-basis: 100%; color: var(--muted); font-size: .76rem; }
.t-code { padding: .05rem .4rem; border: 1px dashed #16a34a; border-radius: 5px; background: #f0fdf4; color: #15803d; font: 700 .74rem var(--head); letter-spacing: .03em; }
.t-save { margin-top: .4rem; padding: .45rem .7rem; border-radius: 8px; background: #f0fdf4; color: #15803d; font-weight: 700; font-size: .85rem; text-align: center; }
.totals .t-note { margin: .4rem 0 0; }
.ship-where { margin-left: .3rem; }
.coupon-box { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); display: grid; gap: .55rem; }
.coupon-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.coupon-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .35rem .35rem .6rem; border: 1.5px dashed #16a34a; border-radius: 9px; background: #f0fdf4; color: #15803d; }
.coupon-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.coupon-chip b { font: 800 .82rem var(--head); letter-spacing: .03em; }
.coupon-chip small { font-size: .78rem; font-weight: 600; }
.coupon-chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: rgba(22, 163, 74, .12); color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.coupon-chip button:hover { background: #16a34a; color: #fff; }
.coupon-add { display: flex; gap: .5rem; }
.coupon-add input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.coupon-add input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.coupon-msg { font-size: .84rem; font-weight: 600; }
.coupon-msg:empty { display: none; }
.coupon-msg.is-ok { color: #15803d; }
.coupon-msg.is-error, .coupon-note.is-error { color: #b91c1c; }
.coupon-note { padding: .5rem .7rem; border-radius: 8px; background: #fef2f2; font-size: .84rem; font-weight: 600; line-height: 1.4; }
:root[data-theme="dark"] .t-code, :root[data-theme="dark"] .coupon-chip, :root[data-theme="dark"] .t-save { background: rgba(22, 163, 74, .14); color: #4ade80; }
:root[data-theme="dark"] .totals .t-disc { color: #4ade80; }
:root[data-theme="dark"] .coupon-note { background: rgba(185, 28, 28, .15); color: #fca5a5; }
.pay-opt { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: .85rem; margin-bottom: .6rem; cursor: pointer; font-weight: 400; }
.pay-opt input { width: auto; margin-top: .25rem; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt small { display: block; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.status-steps { display: flex; gap: .4rem; margin: 1rem 0; flex-wrap: wrap; }
.status-steps span { flex: 1; min-width: 90px; text-align: center; padding: .5rem; border-radius: 8px; background: var(--soft); font-size: .82rem; font-weight: 600; color: var(--muted); }
.status-steps span.is-done { background: var(--brand); color: #fff; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); }
.pill.is-ok { background: #dcfce7; color: #166534; }
.pill.is-wait { background: #fef3c7; color: #92400e; }
.pill.is-bad { background: #fee2e2; color: #991b1b; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; }
/* My account: welcome card + tab bar */
.acct-wrap { padding: 2rem 0; }
.acct-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.4rem 2rem;
    margin-bottom: 1.2rem; padding: 1.6rem 1.8rem; border-radius: 18px; color: #fff;
    background: linear-gradient(125deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 62%, #7b4dff) 100%);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 28%, transparent); }
.acct-hero::before, .acct-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.acct-hero::before { width: 260px; height: 260px; right: -60px; top: -120px; }
.acct-hero::after { width: 160px; height: 160px; left: 38%; bottom: -100px; }
.acct-id { position: relative; display: flex; align-items: center; gap: 1rem; min-width: 0; }
.acct-avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fff; color: var(--brand);
    font: 800 1.5rem var(--head); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); overflow: hidden; text-decoration: none; transition: box-shadow .2s; }
.acct-avatar:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .55); }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* profile photo card (Account > Profile) */
.acct-photo { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; }
.acct-photo-pic { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 4px var(--brand-soft); }
.acct-photo-pic img, .acct-photo-pic svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-photo-text h3 { margin: 0 0 .2rem; }
.acct-photo-text p { margin: 0 0 .7rem; }
.acct-photo-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.acct-photo-btns form { margin: 0; }
.acct-photo-btns label.btn { cursor: pointer; }
@media (max-width: 480px) { .acct-photo { flex-direction: column; text-align: center; } .acct-photo-btns { justify-content: center; } }
.acct-id h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #fff; }
.acct-id p { margin: .2rem 0 0; opacity: .85; font-size: .9rem; overflow-wrap: anywhere; }
.acct-wave { display: inline-block; transform-origin: 70% 70%; animation: acctWave 2.2s ease-in-out .6s 2; }
@keyframes acctWave { 0%, 60%, 100% { transform: none; } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.acct-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: .6rem; }
.acct-stat { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .75rem .9rem; border-radius: 12px; color: #fff;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, transform .2s; }
a.acct-stat:hover { background: rgba(255, 255, 255, .24); color: #fff; transform: translateY(-2px); }
.acct-stat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.acct-stat strong { font: 800 1.2rem var(--head); line-height: 1.2; white-space: nowrap; }
.acct-stat span { font-size: .76rem; opacity: .85; }
.account-nav { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; padding: .35rem; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.account-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--muted); transition: background .2s, color .2s; }
.account-nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.account-nav a:hover { color: var(--ink); background: var(--card); }
.account-nav a.is-on { background: var(--card); color: var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.account-nav a b { min-width: 20px; padding: 0 .4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.account-nav a.is-out { margin-left: auto; color: #c2334d; }
.account-nav a.is-out:hover { background: #fdecef; color: #a3152f; }
@media (max-width: 860px) {
    .acct-hero { grid-template-columns: 1fr; padding: 1.3rem; }
    .acct-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .acct-avatar { width: 52px; height: 52px; font-size: 1.2rem; }
    .account-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a { flex: none; padding: .55rem .8rem; }
    .account-nav a.is-out { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .acct-wave { animation: none; } }
/* My orders list */
.acct-orders-box { padding: .4rem 1.2rem; }
.acct-orders td, .acct-orders th { vertical-align: middle; }
.acct-orders tbody tr:last-child td { border-bottom: 0; }
.acct-ono { color: var(--brand); font-weight: 700; }
.acct-go { text-align: right; }
.acct-go .btn { padding: .4rem .9rem; font-size: .85rem; }
@media (max-width: 640px) {   /* phones: each order becomes a card */
    .acct-orders-box { padding: 0; background: none; border: 0; }
    .acct-orders thead { display: none; }
    .acct-orders, .acct-orders tbody, .acct-orders tr, .acct-orders td { display: block; width: 100%; }
    .acct-orders tr { margin-bottom: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
    .acct-orders td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem 0; border: 0; }
    .acct-orders td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; }
    .acct-orders td.acct-go { padding-top: .6rem; }
    .acct-orders td.acct-go::before { content: none; }
    .acct-go .btn { width: 100%; }
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
.prose { max-width: 780px; margin: 0 auto; padding: 2.5rem 0; font-size: 1.02rem; }
.prose p { margin: 0 0 1rem; }
.prose img { border-radius: var(--radius); margin-bottom: 1.5rem; }
/* content written with the classic editor (product description, pages, blog) */
.rich-content { line-height: 1.75; overflow-wrap: break-word; }
.rich-content > :first-child { margin-top: 0; }
.rich-content p { margin: 0 0 1rem; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin: 1.6rem 0 .7rem; line-height: 1.3; }
.rich-content h1 { font-size: 1.9rem; } .rich-content h2 { font-size: 1.5rem; } .rich-content h3 { font-size: 1.25rem; } .rich-content h4 { font-size: 1.08rem; }
.rich-content ul, .rich-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.rich-content li { margin: .25rem 0; }
.rich-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.rich-content blockquote { margin: 1.2rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 0 10px 10px 0; color: var(--ink); }
.rich-content blockquote p:last-child { margin-bottom: 0; }
.rich-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: .5rem 0 1rem; }
.rich-content figure { margin: 1rem 0; } .rich-content figcaption { color: var(--muted); font-size: .88rem; text-align: center; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; display: block; overflow-x: auto; }
.rich-content th, .rich-content td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich-content th { background: var(--soft); font-weight: 700; }
.rich-content code { padding: .1rem .35rem; border-radius: 5px; background: var(--soft); font-size: .9em; }

/* Blog list, blog post + information pages - same design as blog.calculushub.com */
.blog-shell { padding: 1.4rem 0 3rem; }
.blog-crumbs { margin: 0 0 1.1rem; color: var(--muted); font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.blog-crumbs a { color: var(--brand); }
.blog-crumbs a:hover { text-decoration: underline; }
.blog-crumbs span { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 23, 42, .06); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .1); }
.post-card-thumb { display: block; aspect-ratio: 16 / 10; background: var(--brand-soft); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-noimg { display: grid; place-items: center; height: 100%; color: var(--brand); font: 800 3rem var(--head); }
.post-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.35rem; }
.post-card-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.post-card-cats a { padding: .15rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.post-card-title { margin: 0; font: 700 1.18rem/1.35 var(--head); }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--brand); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.post-card-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.post-card-excerpt p { margin: 0; }
.post-card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .2rem; color: var(--brand); font-size: .88rem; font-weight: 700; }
.post-card-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.post-card-more:hover svg { transform: translateX(3px); }
.blog-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.blog-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 700; }
.blog-pager a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.blog-pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(15, 23, 42, .06); padding: 2rem 2.2rem 2.2rem; }
.article-heading h1 { margin: 0 0 1rem; font: 800 clamp(1.6rem, 3.2vw, 2.2rem)/1.2 var(--head); color: var(--ink); }
.post-byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1.4rem; }
.post-byline-author { display: flex; align-items: center; gap: .7rem; }
.post-byline-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); font-weight: 800; border: 1px solid var(--line); flex: 0 0 44px; }
.post-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-byline-label { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-byline-name { font-size: .95rem; }
.post-byline-meta { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; }
.post-byline-meta strong { color: var(--ink); }
.article-thumb { margin: 0 0 1.4rem; border-radius: 14px; overflow: hidden; background: var(--soft); }
.article-thumb img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.article-toc { display: inline-block; max-width: 100%; margin: 0 0 1.5rem; padding: .7rem 1rem; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: 10px; background: var(--brand-soft); }
.article-toc.is-open { display: block; }
.article-toc-head { display: flex; align-items: center; gap: .5rem; }
.article-toc-head h3 { margin: 0; font-size: .92rem; }
.article-toc-head button { padding: 0; border: 0; background: none; color: var(--brand); font: 600 .8rem var(--body); cursor: pointer; }
.article-toc-list { display: grid; gap: .3rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line)); }
.article-toc-list a { color: var(--ink); font-size: .92rem; }
.article-toc-list a:hover { color: var(--brand); }
.article-toc-list .toc-l3 { padding-left: 1.1rem; font-size: .88rem; color: var(--muted); }
.article-body { font-size: 1.02rem; color: var(--ink); }
.article-body h2 { margin: 2rem 0 1rem; padding: 0 0 .6rem .8rem; border-left: 4px solid var(--brand); border-bottom: 1px solid var(--line); font-size: 1.4rem; scroll-margin-top: 90px; }
.article-body h3 { scroll-margin-top: 90px; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.article-pager a { padding: .9rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(15, 23, 42, .05); font-weight: 700; font-size: .92rem; color: var(--ink); }
.article-pager a:hover { border-color: var(--brand); color: var(--brand); }
.article-pager-next { text-align: right; grid-column: 2; }
.article-side { display: grid; gap: 1.2rem; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(15, 23, 42, .06); padding: 1.1rem; }
.side-card-title { margin: 0 0 .9rem; font: 700 1rem var(--head); }
.side-posts { display: grid; gap: 1rem; }
.side-post { display: grid; gap: .3rem; color: var(--ink); }
.side-post-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--brand-soft); }
.side-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.side-post:hover .side-post-thumb img { transform: scale(1.04); }
.side-post-date { color: var(--muted); font-size: .75rem; font-weight: 600; }
.side-post strong { font-size: .9rem; line-height: 1.4; }
.side-post:hover strong { color: var(--brand); }
.side-links { display: grid; gap: .25rem; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.side-links a:hover { background: var(--soft); color: var(--brand); }
.side-links a.is-on { background: var(--brand-soft); color: var(--brand); }
.side-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 16px; }
.side-help p { margin: 0 0 .9rem; color: var(--muted); font-size: .9rem; }
.side-help-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.side-help-actions .btn { padding: .55rem 1rem; font-size: .88rem; }
@media (max-width: 1100px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 860px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .post-grid { grid-template-columns: minmax(0, 1fr); }
    .article-card { padding: 1.3rem 1.1rem 1.5rem; }
    .article-pager { grid-template-columns: 1fr; }
    .article-pager-next { grid-column: 1; }
}
.contact-socials { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.contact-chat h2 { margin-bottom: .4rem; }
.contact-chat > p { margin: 0 0 1.1rem; max-width: 60ch; }
.contact-chat .notice { margin-top: 0; }
.contact-chat-as { margin: 0 0 .9rem; padding: .6rem .85rem; border-radius: 8px; background: var(--soft); font-size: .92rem; }
.contact-chat-btn { background: linear-gradient(135deg, #0a7cff, #7b4dff); }
.contact-chat-btn:hover { background: linear-gradient(135deg, #0868d6, #6a3ee6); }
.contact-chat-btn svg { width: 20px; height: 20px; }
.contact-chat-hint { font-size: .88rem; }
.pay-info { background: var(--soft); border-radius: 10px; padding: 1rem; white-space: pre-line; margin: .8rem 0; }

/* responsive */
@media (max-width: 1100px) {
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .shop-layout .pgrid { grid-template-columns: repeat(2, 1fr); }
    .features-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .header-row { grid-template-columns: auto 1fr auto; }
    .header-contact, .cart-label { display: none; }
    .nav-toggle { display: inline-flex; }
    .logo { justify-self: start; }
    .logo-text { font-size: 1.4rem; }
    .main-nav { display: none; flex-direction: column; gap: .2rem; padding-bottom: 1rem; }
    .main-nav.is-open { display: flex; }
    .nav-panel { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
    .pgrid, .shop-layout .pgrid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .9rem; }
    .post-row, .product, .two-col, .auth-grid, .shop-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-box { grid-template-columns: minmax(0, 1fr); }
    .modal-art { min-height: 160px; }
    .pcard-actions { opacity: 1; transform: none; }   /* touch screens have no hover: always show Add to cart */
    .pcard-add { opacity: 1; transform: translate(-50%, 0); bottom: .6rem; padding: .48rem .9rem; font-size: .8rem; }
    .countdown.is-mini { bottom: 3.3rem; }
    .hero-slide { background-position: 70% center; }
    .hero-text { background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 14px; padding: 1.5rem; backdrop-filter: blur(3px); }
}
/* short screens (small phones, phones held sideways): smaller picture so the form fits */
@media (max-width: 860px) and (max-height: 700px) {
    .modal-art { min-height: 100px; }
    .auth-pop { padding: 1.4rem 1.2rem 1.1rem; gap: .6rem; }
}
@media (max-width: 860px) and (max-height: 480px) {
    .modal-art { display: none; }
}
@media (max-width: 520px) {
    .header-row { gap: .4rem; }
    .header-icons { gap: 0; }
    .header-icons .icon-btn { padding: .4rem .3rem; }
    .icon-btn .count { left: 18px; }
    .acct-label { display: none; }
    .logo-mark { width: 36px; height: 36px; }
    .logo-text { font-size: 1.15rem; }
    .logo img { max-height: 34px; }
    .features-row, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-table td { display: block; border: 0; padding: .3rem 0; }
    .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: .8rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* New visitor (name + mobile form showing): the button is always the send arrow, never the 👍 */
.chat-details:not([hidden]) ~ .chat-compose .chat-ico-send { display: block; }
.chat-details:not([hidden]) ~ .chat-compose .chat-ico-like { display: none; }
