/* ============================================================
   BazaarSaaS — default storefront theme.
   Design tokens (TASK-1901): colours and radii are set per store as
   CSS variables on <body>, layout choices as data-* attributes
   (data-hero, data-cards, data-names, data-font, data-shadow,
   data-spacing, data-announce). The values below are the defaults. Accent is used sparingly on purpose: primary
   actions, links and active states — never large surfaces.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --accent: #2563eb;
    --accent-ink: #ffffff;
    --ink: #111318;
    --ink-2: #3b4049;
    --muted: #6b7280;
    --line: #e6e7ea;
    --line-soft: #f1f2f4;
    --bg: #ffffff;
    --surface: #f6f6f7;
    --card: #ffffff;
    --ok: #0e7a3d;
    --ok-soft: #e8f5ee;
    --warn: #b45309;
    --danger: #c42b1c;
    --radius: 14px;
    --radius-img: var(--radius);
    --shadow-xs: 0 1px 2px rgba(17, 19, 24, .05);
    --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 8px 24px rgba(17, 19, 24, .06);
    --shadow-lg: 0 20px 48px rgba(17, 19, 24, .14);
    --container: 1280px;
    --gutter: 24px;
    /* Every Indian script has a self-hosted face (lib/fonts/storefront.css), so no buyer sees tofu
       boxes even when their phone lacks the font. Merchant text can mix scripts, hence all of them. */
    --indic: "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu",
        "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Sans Gujarati", "Noto Sans Gurmukhi",
        "Noto Sans Oriya", "Noto Nastaliq Urdu";
    --font: "Inter", var(--indic), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    /* Derived from the store's tokens, so they're declared where the tokens are (on <body>) —
       a variable declared on :root would freeze the default accent/radius. */
    --accent-soft: color-mix(in srgb, var(--accent) 9%, #ffffff);
    --radius-sm: max(0px, calc(var(--radius) - 4px));
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main { max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter) 72px; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.2; color: var(--ink); }
h1 { font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; }
.h2, h2 { font-size: 1.35rem; font-weight: 700; }
.ico { flex-shrink: 0; vertical-align: middle; }
code { font-size: .88em; background: var(--line-soft); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   CHROME — announcement bar, header, category nav, footer
   ============================================================ */
.announce {
    background: var(--ink); color: rgba(255,255,255,.88);
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
    font-size: .8rem; font-weight: 500; letter-spacing: .01em;
    padding: 8px var(--gutter);
}
.announce span { display: inline-flex; align-items: center; gap: 7px; }
.announce .ico { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 720px) { .announce span + span { display: none; } }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
    font-size: 1.28rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em;
}
.brand-logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; }

.store-search {
    position: relative; flex: 1; max-width: 620px; display: flex; align-items: center;
}
.store-search .ico { position: absolute; inset-inline-start: 14px; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.store-search input {
    width: 100%; height: 44px; padding-block: 0; padding-inline: 42px 16px;
    border: 1px solid transparent; border-radius: 999px; background: var(--surface);
    font-size: .93rem; transition: background .15s, border-color .15s, box-shadow .15s;
}
.store-search input::placeholder { color: #8b909a; }
.store-search input:focus { outline: none; background: #fff; border-color: var(--line); box-shadow: 0 0 0 4px var(--accent-soft); }
.mobile-search { display: none; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.lang-pill, .cart-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 14px; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .9rem;
    transition: background .15s;
}
.lang-pill:hover, .cart-btn:hover { background: var(--surface); }
.cart-count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}

.cat-nav { border-bottom: 1px solid var(--line); background: #fff; }
.cat-nav-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
    white-space: nowrap; padding: 13px 12px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cat-nav a:hover { color: var(--ink); }
.cat-nav a.active { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }

@media (max-width: 720px) {
    .header-inner { height: 58px; gap: 10px; }
    .brand { font-size: 1.12rem; min-width: 0; }
    .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-inner > .store-search { display: none; }
    .mobile-search { display: flex; max-width: none; padding: 10px var(--gutter); background: #fff; }
    .mobile-search .ico { inset-inline-start: calc(var(--gutter) + 14px); }
    .cart-label { display: none; }
    .cart-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; border: 2px solid #fff; }
    .lang-pill .ico { display: none; }
    .lang-pill, .cart-btn { padding: 0 11px; }
}

.site-footer { margin-top: 24px; background: #0e1014; color: #a4a8b1; font-size: .9rem; }
.footer-cols {
    max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 40px;
    display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
.footer-brand { font-weight: 800; color: #fff; font-size: 1.25rem; letter-spacing: -.03em; }
.footer-about p { margin: 10px 0 24px; max-width: 300px; line-height: 1.6; }
.site-footer h4 { margin: 0 0 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; font-weight: 700; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 9px; color: #a4a8b1; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-why .ico { width: 17px; height: 17px; color: #fff; opacity: .75; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-pay span { border: 1px solid #2a2e36; border-radius: 6px; padding: 4px 9px; font-size: .72rem; font-weight: 600; color: #cfd2d8; }
.footer-bottom {
    max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter) 22px;
    border-top: 1px solid #22262d; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: .8rem;
}
.footer-bottom strong { color: #e4e6ea; }
/* Five columns once the store has published policy pages (TASK-1101). */
.footer-cols:has(> :nth-child(5)) { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-cols, .footer-cols:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols, .footer-cols:has(> :nth-child(5)) { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; } }

/* ============================================================
   BUILDING BLOCKS — buttons, badges, prices, alerts, forms
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
    font-size: .93rem; font-weight: 650; line-height: 1; white-space: nowrap;
    cursor: pointer; text-align: center; transition: filter .15s, background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { filter: none; background: #2a2d35; }
.btn-outline { background: #fff; border-color: #cfd2d8; color: var(--ink); }
.btn-outline:hover { filter: none; border-color: var(--ink); }
.btn-secondary { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.btn-secondary:hover { filter: none; background: var(--line); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }

.icon-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: var(--radius-sm); border: 1px solid #cfd2d8; background: #fff; color: var(--ink); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ico { width: 18px; height: 18px; }

.link-btn {
    display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0;
    color: var(--muted); font-size: .85rem; font-weight: 500; cursor: pointer;
}
.link-btn:hover { color: var(--danger); }
.line-controls .link-btn { text-transform: capitalize; }
.link-btn .ico { width: 15px; height: 15px; }
.inline-form { display: inline; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .ico { width: 16px; height: 16px; }

.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }

.price-now { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.price-mrp { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.price-off { color: var(--ok); font-weight: 650; }

.pbadge {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
    background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 9px; border-radius: 999px; letter-spacing: .01em;
}
.pbadge-oos { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow-xs); }

.status-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--line-soft); color: var(--ink-2); }
.status-Confirmed { background: #dcfce7; color: #166534; }
.status-PendingPayment { background: #fef3c7; color: #92400e; }
.status-Cancelled { background: #fee2e2; color: #991b1b; }
.status-Shipped { background: #dbeafe; color: #1e40af; }
.status-Delivered { background: #d1fae5; color: #065f46; }

.muted { color: var(--muted); font-size: .9rem; }
/* TASK-1203: a link inside grey text is told apart by more than colour. */
.muted a { text-decoration: underline; }
.small { font-size: .8rem; }
.oos { color: var(--danger); font-weight: 600; font-size: .85rem; }
.field-error, .validation-summary-errors { color: var(--danger); font-size: .85rem; }
.validation-summary-errors ul { margin: 0 0 16px; padding-inline-start: 18px; }
.validation-summary-valid { display: none; }
.alert { background: #fef3f2; border: 1px solid #fecdca; color: #912018; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .92rem; }
.alert-ok { background: var(--ok-soft); border-color: #b7e4c7; color: #14532d; }

/* Generic white panel (OAuth consent page and friends). */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }

/* Inputs shared by every storefront form. */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input:not([type]), select, textarea {
    height: 46px; width: 100%; padding: 0 14px;
    border: 1px solid #d5d8dd; border-radius: var(--radius-sm); background: #fff;
    font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder { color: #9aa0a9; }

/* Stacked single-column form card (merchant signup). */
form.checkout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow-xs); }
form.checkout label { font-weight: 600; font-size: .87rem; display: block; margin-bottom: 6px; color: var(--ink-2); }

/* Quantity stepper: − [n] + */
.stepper {
    display: inline-flex; align-items: center; height: 52px;
    border: 1px solid #cfd2d8; border-radius: 12px; background: #fff; overflow: hidden;
}
.stepper button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover { background: var(--surface); }
.stepper button .ico { width: 16px; height: 16px; }
.stepper input {
    width: 46px; height: 100%; border: 0; padding: 0; text-align: center; font-weight: 600; box-shadow: none; border-radius: 0;
    -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { box-shadow: none; }
.stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } /* TASK-1203: visible for keyboard users */
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm { height: 38px; border-radius: var(--radius-sm); }
.stepper-sm button { width: 34px; }
.stepper-sm input { width: 38px; font-size: .9rem; }

.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-state p { color: var(--ink-2); margin: 14px 0 20px; }
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); color: var(--muted); }
.empty-ico .ico { width: 28px; height: 28px; }

/* ============================================================
   HOME — hero carousel, category tiles, value props
   ============================================================ */
.hero-carousel { position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 48px; background: var(--surface); }
.pcarousel-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.pslide {
    position: relative; min-width: 100%; min-height: 440px;
    display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
    padding: 56px 64px 72px;
}
.pslide-welcome { background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent) 3%, #fff)); }
.hero-theme-0 { background: #f3efe8; }
.hero-theme-1 { background: #eceff3; }
.hero-theme-2 { background: #edf1ea; }
.pslide-text { max-width: 540px; }
.pslide h1, .pslide h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; line-height: 1.06; letter-spacing: -.04em; }
.pslide-lead { margin: 0 0 30px; font-size: 1.12rem; color: var(--ink-2); max-width: 440px; }
.pslide-price { margin: 0 0 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 1.05rem; }
.pslide-price .price-now { font-size: 1.9rem; font-weight: 800; }
.pslide-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pslide-media { justify-self: center; }
.pslide-media img {
    width: min(380px, 100%); aspect-ratio: 1; object-fit: cover;
    border-radius: 18px; box-shadow: var(--shadow-lg); transition: transform .4s;
}
.pslide-media:hover img { transform: scale(1.02); }
.pslide-collage { display: grid; gap: 16px; justify-self: end; width: min(460px, 100%); }
.pslide-collage img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.pslide-collage.count-3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.pslide-collage.count-3 a:first-child { grid-row: span 2; }
.pslide-collage.count-3 a:first-child img { aspect-ratio: auto; }
.pslide-collage.count-2 { grid-template-columns: 1fr 1fr; }
.pslide-collage.count-1 { width: min(380px, 100%); }
.pslide-collage.count-0 { display: none; }

.pcarousel-controls { position: absolute; left: 64px; right: 64px; bottom: 24px; display: flex; align-items: center; gap: 8px; }
.pcarousel-dots { display: flex; gap: 6px; margin-inline-end: auto; }
.pcarousel-dots button { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(17,19,24,.2); cursor: pointer; transition: background .2s, width .2s; }
.pcarousel-dots button.active { width: 36px; background: var(--ink); }
.pcarousel-arrow {
    width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
    border: 1px solid rgba(17,19,24,.12); border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink);
    transition: background .15s, border-color .15s;
}
.pcarousel-arrow:hover { background: #fff; border-color: var(--ink); }

@media (max-width: 860px) {
    .hero-carousel { border-radius: 16px; margin-bottom: 36px; }
    .pslide { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 24px 22px 60px; align-content: start; }
    .pslide-media, .pslide-collage { order: -1; justify-self: stretch; width: 100%; }
    /* Every slide's picture area is the same height, so the welcome slide never
       stretches with empty space to match a product slide. */
    .pslide-media img { width: 100%; height: 180px; aspect-ratio: auto; }
    .pslide-collage { gap: 10px; }
    .pslide-collage.count-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
    .pslide-collage.count-3 a:first-child { grid-row: auto; }
    .pslide-collage img, .pslide-collage.count-3 a:first-child img { aspect-ratio: auto; height: 180px; border-radius: 12px; }
    .pslide h1, .pslide h2 { font-size: 1.75rem; }
    .pslide-lead { font-size: 1rem; margin-bottom: 22px; }
    .pslide-price { margin-bottom: 22px; }
    .pslide-price .price-now { font-size: 1.5rem; }
    .pcarousel-controls { left: 22px; right: 22px; bottom: 18px; }
    .pcarousel-arrow { display: none; }
    .pslide .text-link { display: none; }
}

/* Simple banner used by the non-carousel presets (classic / spotlight / minimal). */
.hero {
    display: flex; align-items: center; gap: 22px; margin-bottom: 40px; padding: 48px 44px;
    border-radius: 20px; color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #111318));
}
.hero h1 { margin: 0; font-size: 2.2rem; color: #fff; }
.hero-tagline { margin: 8px 0 0; font-size: 1.08rem; opacity: .9; max-width: 560px; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px; }
@media (max-width: 720px) { .hero { padding: 28px 22px; } .hero h1 { font-size: 1.6rem; } }

.home-section { margin-bottom: 56px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-head h2, .section-head .h2 { margin: 0; font-size: 1.5rem; font-weight: 750; }
.section-head .count, .page-head .count { color: var(--muted); font-size: .9rem; font-weight: 500; }
.section-head.with-toolbar { flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.section-head.with-toolbar > div:first-child { display: flex; align-items: baseline; gap: 12px; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.cat-tile-media {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-img);
    background: var(--surface); margin-bottom: 10px;
}
.cat-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cat-tile:hover .cat-tile-media img { transform: scale(1.05); }
.cat-tile-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.cat-tile-name { font-weight: 650; font-size: .98rem; }
.cat-tile-count { color: var(--muted); font-size: .84rem; }
@media (max-width: 720px) {
    .cat-tiles {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none;
    }
    .cat-tiles::-webkit-scrollbar { display: none; }
    .cat-tile { flex: 0 0 38%; scroll-snap-align: start; }
}

.value-props {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    padding: 26px 0; margin-bottom: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.value-props > div { display: flex; align-items: center; gap: 14px; }
.vp-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.vp-ico .ico { width: 21px; height: 21px; }
.value-props strong { display: block; font-size: .92rem; font-weight: 650; }
.value-props small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
@media (max-width: 900px) { .value-props { grid-template-columns: 1fr 1fr; gap: 20px 16px; } }
@media (max-width: 420px) { .value-props strong { font-size: .86rem; } .value-props small { font-size: .76rem; } .vp-ico { width: 38px; height: 38px; } }

/* ---------- Browse toolbar (filters dropdown + sort) ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters { position: relative; }
.filters summary { list-style: none; position: relative; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary .ico { width: 16px; height: 16px; }
.filters .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.filters[open] summary { border-color: var(--ink); }
.filters-panel {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: 300px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 18px; display: grid; gap: 16px;
}
.f-field { display: grid; gap: 7px; }
.f-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.f-range { display: flex; align-items: center; gap: 8px; }
.f-range input { height: 40px; }
.f-dash { color: var(--muted); }
.f-check { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.f-check input { width: 17px; height: 17px; accent-color: var(--ink); }
.f-clear { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.f-clear:hover { color: var(--ink); }
.f-clear .ico { width: 14px; height: 14px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { height: 36px; width: auto; padding-block: 0; padding-inline: 12px 32px; font-size: .87rem; font-weight: 500; border-color: #cfd2d8; }
@media (max-width: 720px) {
    .section-head.with-toolbar { align-items: flex-start; flex-direction: column; }
    .toolbar { width: 100%; }
    .sort { margin-inline-start: auto; }
    .sort .f-label { display: none; }
    .filters-panel { inset-inline-start: 0; inset-inline-end: auto; width: min(300px, calc(100vw - 2 * var(--gutter))); }
}

/* ============================================================
   PRODUCT GRID & CARD
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 22px; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }

.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard-media {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden;
    border-radius: var(--radius-img); background: var(--surface);
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #b4b8c0; }
.pcard-placeholder .ico { width: 40%; height: 40%; stroke-width: 1.2; }
.pcard.is-oos .pcard-media img { opacity: .55; filter: grayscale(.4); }

.pcard-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.pcard-name {
    color: var(--ink); font-weight: 550; font-size: .95rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.pcard-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; font-size: .88rem; }
.price-line .price-now { font-size: 1.05rem; }
.pcard-tax { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.pcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.pcard-actions form:last-child { flex: 1; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.chips-label { font-size: .72rem; color: var(--muted); }
/* Marketplace chips keep each brand's own colour (TASK-1706). */
.chip { font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #475569; color: #fff; }
.chip:hover { opacity: .85; }
.chip-amazon { background: #ff9900; color: #131921; }
.chip-flipkart { background: #1f63d8; } /* TASK-1203: Flipkart blue, darkened for 4.5:1 with white text */
.chip-meesho { background: #f43397; }
.chip-jiomart { background: #0d7bc4; }
.chip-snapdeal { background: #e40046; }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 48px; }
.pager-btn { padding: 9px 16px; border: 1px solid #cfd2d8; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .9rem; }
.pager-btn:hover { border-color: var(--ink); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-info { color: var(--muted); font-size: .88rem; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: #c3c6cc; }
.crumbs .current { color: var(--ink); font-weight: 550; }

.product { display: grid; gap: 32px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.product-gallery { position: relative; overflow: hidden; border-radius: 18px; background: var(--surface); aspect-ratio: 1; }
@media (min-width: 900px) { .product-gallery { position: sticky; top: 92px; } }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .pbadge { top: 16px; inset-inline-start: 16px; font-size: .8rem; padding: 5px 11px; }
.product-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 750; letter-spacing: -.03em; margin: 0 0 14px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.product-price .price-now { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.product-price .price-mrp { font-size: 1rem; }
.product-price .price-off { font-size: 1.05rem; }
.product-sub { color: var(--muted); margin: 6px 0 0; font-size: .87rem; }
.stock { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: .88rem; font-weight: 600; }
.stock .ico { width: 16px; height: 16px; }
.stock-in { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--danger); }

.buy-box { display: flex; gap: 12px; margin: 26px 0 0; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.buy-buttons { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 260px; }

.pincheck { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.pincheck > label { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; margin-bottom: 12px; }
.pincheck > label .ico { width: 18px; height: 18px; }
.pincheck-row { display: flex; gap: 8px; max-width: 380px; }
.pincheck-row input { flex: 1; height: 44px; }
.pincheck-result { margin-top: 10px; font-size: .88rem; font-weight: 600; }
.pincheck-result:empty { display: none; }
.pincheck-result.ok { color: var(--ok); }
.pincheck-result.bad { color: var(--danger); }

.assurance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 26px; }
.assurance div { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .88rem; }
.assurance .ico { width: 20px; height: 20px; color: var(--ink); }

.buy-links { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.buy-links-label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 10px; }
.buy-links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border: 1px solid #cfd2d8; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .86rem;
}
.buy-link:hover { border-color: var(--ink); }
.buy-link .ico { width: 14px; height: 14px; }

.product-details { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.product-details h2 { font-size: 1.05rem; margin: 0 0 10px; }
.product-details p { color: var(--ink-2); line-height: 1.75; margin: 0; white-space: pre-line; }

.related { margin-top: 72px; }

.mobile-buybar { display: none; }
@media (max-width: 720px) {
    .buy-buttons { grid-template-columns: 1fr; min-width: 0; }
    .buy-box .stepper { align-self: flex-start; }
    .assurance { grid-template-columns: 1fr; }
    .mobile-buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        display: flex; align-items: center; gap: 10px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17,19,24,.06);
    }
    .mobile-buybar-price { margin-inline-end: auto; display: flex; flex-direction: column; line-height: 1.25; }
    .mobile-buybar-price .price-now { font-size: 1.15rem; }
    .mobile-buybar-price .price-off { font-size: .78rem; }
    .mobile-buybar .icon-btn { width: 44px; height: 44px; }
    .mobile-buybar .btn { padding: 0 24px; }
    body:has(.mobile-buybar) .site-footer { padding-bottom: 72px; }
}

/* ============================================================
   CART, CHECKOUT, ORDER — shared two-column layout
   ============================================================ */
.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.page-head h1 { margin: 0; }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }

.line-items { display: flex; flex-direction: column; }
.line-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { border-top: 1px solid var(--line); }
.line-thumb {
    position: relative; flex-shrink: 0; width: 96px; height: 96px; border-radius: 12px; background: var(--surface);
    display: grid; place-items: center; color: #b4b8c0;
}
.line-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.line-thumb.sm { width: 56px; height: 56px; border-radius: 10px; }
.line-thumb .ico { width: 40%; height: 40%; }
.line-main { flex: 1; min-width: 0; }
.line-name { font-weight: 600; }
.line-meta { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.line-controls { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.line-controls form { display: flex; align-items: center; gap: 8px; }
.line-total { font-weight: 700; white-space: nowrap; }
.back-link { margin-top: 20px; color: var(--ink-2); }
@media (max-width: 520px) {
    .line-item { gap: 14px; flex-wrap: wrap; }
    .line-thumb { width: 76px; height: 76px; }
    .line-main { flex-basis: calc(100% - 90px); }
    .line-total { margin-inline-start: 90px; }
}

.summary {
    background: var(--surface); border-radius: 16px; padding: 24px;
    display: flex; flex-direction: column; gap: 2px;
}
@media (min-width: 960px) { .summary { position: sticky; top: 92px; } }
.summary h2 { font-size: 1.1rem; margin: 0 0 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink-2); font-size: .92rem; }
.summary .row .ico { width: 15px; height: 15px; }
.summary .grand { font-size: 1.15rem; font-weight: 800; color: var(--ink); border-top: 1px solid #dfe1e5; margin: 8px 0 16px; padding-top: 14px; }
.summary .row-save { color: var(--ok); }
.summary .row-refund { color: #7e22ce; }
.summary .credit-note { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.summary .credit-note .ico { width: 14px; height: 14px; }
.summary .row-save .link-btn { font-size: .8rem; }
.summary .free { color: var(--ok); font-weight: 650; }
.summary .btn + .btn, .summary .btn + .back-link { margin-top: 10px; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-form input { text-transform: uppercase; background: #fff; }
.coupon-form input::placeholder { text-transform: none; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; font-size: .8rem; color: var(--ink-2); }
.secure-note .ico { width: 15px; height: 15px; }

.summary-items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #dfe1e5; display: grid; gap: 14px; }
.summary-items li { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.summary-name { flex: 1; min-width: 0; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty-badge {
    position: absolute; top: -7px; inset-inline-end: -7px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}

/* Checkout steps */
.checkout-steps { display: grid; gap: 20px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; }
.step h2 { display: flex; align-items: center; gap: 11px; font-size: 1.08rem; margin: 0 0 20px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.field { display: grid; align-content: start; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.step .field:last-child, .step .field-row:last-child .field { margin-bottom: 0; }
.step .alert { margin: 16px 0 0; }
@media (max-width: 640px) {
    .step { padding: 20px 16px; }
    .field-row, .field-row.three { grid-template-columns: 1fr; }
    .step .field-row:last-child .field { margin-bottom: 16px; }
    .step .field-row:last-child .field:last-child { margin-bottom: 0; }
}
.field-hint { display: block; margin-top: 10px; font-size: .84rem; color: var(--warn); }

.pay-options { display: grid; gap: 10px; }
.pay-opt {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
    border: 1px solid #d5d8dd; border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.pay-opt:hover { border-color: var(--ink); }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fcfcfd; }
.pay-opt.disabled { opacity: .45; pointer-events: none; }
.pay-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.pay-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; }
.pay-text strong { display: block; font-size: .95rem; font-weight: 650; }
.pay-text small { color: var(--muted); font-size: .82rem; }

/* Order confirmation & pay */
.order-hero {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 28px; border-radius: 18px; background: var(--ok-soft); margin-bottom: 32px;
}
.order-hero.pending { background: #fef6e7; }
.order-hero h1 { font-size: 1.6rem; margin: 0 0 4px; }
.order-hero p { margin: 0; color: var(--ink-2); }
.order-hero > div { flex: 1; min-width: 220px; }
.order-hero-ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ok); }
.order-hero.pending .order-hero-ico { color: var(--warn); }
.order-hero-ico .ico { width: 28px; height: 28px; }
.order-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.info-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.info-card h3 { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 0 0 8px; }
.info-card h3.mt { margin-top: 16px; }
.info-card h3 .ico { width: 17px; height: 17px; }
.info-card p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.info-card a { display: inline-flex; align-items: center; gap: 5px; }
.info-card a .ico { width: 14px; height: 14px; }
@media (max-width: 640px) { .info-cards { grid-template-columns: 1fr; } }

.pay-card { max-width: 460px; margin: 20px auto; text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); }
.pay-card .order-hero-ico { margin: 0 auto 16px; background: var(--surface); color: var(--ink); }
.pay-card h1 { font-size: 1.2rem; font-weight: 650; color: var(--ink-2); }
.pay-failure, .pay-info { text-align: start; border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px; font-size: .9rem; line-height: 1.5; }
.pay-failure { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.pay-failure strong { display: block; margin-bottom: 2px; }
.pay-info { background: var(--ok-soft); border: 1px solid #b7e4c7; color: #14532d; }
.pay-hold { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .85rem; color: var(--ink-2); }
.pay-hold .ico { width: 15px; height: 15px; }
.pay-note { color: var(--ink-2); margin: 0 0 22px; }
.order-hero-ico.warn { color: var(--warn); }
.pay-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 24px; }

/* Legacy table (kept for any page still rendering one). */
table.cart { width: 100%; border-collapse: collapse; }
table.cart th, table.cart td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
table.cart th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ============================================================
   Token-driven variations (TASK-1901) — attributes on <body>.
   The four built-in presets are just token sets: premium = carousel hero;
   classic = banner; spotlight = centered hero + large cards;
   minimal = plain hero, uppercase names, square-ish images, no announcement.
   ============================================================ */
[data-font="serif"] { --font: Georgia, "Times New Roman", var(--indic), serif; }
[data-font="rounded"] { --font: "Trebuchet MS", "Segoe UI", var(--indic), system-ui, sans-serif; }

[data-shadow="none"] { --shadow-xs: none; --shadow: none; --shadow-lg: none; }
[data-shadow="strong"] {
    --shadow-xs: 0 1px 3px rgba(17, 19, 24, .1);
    --shadow: 0 2px 4px rgba(17, 19, 24, .06), 0 14px 36px rgba(17, 19, 24, .12);
    --shadow-lg: 0 28px 64px rgba(17, 19, 24, .22);
}

[data-spacing="compact"] { --gutter: 16px; }
[data-spacing="roomy"] { --gutter: 32px; }
@media (max-width: 720px) {
    [data-spacing="compact"] { --gutter: 12px; }
    [data-spacing="roomy"] { --gutter: 20px; }
}

/* Centered hero (spotlight) */
[data-hero="centered"] .hero { flex-direction: column; text-align: center; padding: 64px 28px; }
[data-hero="centered"] .hero-tagline { margin-inline: auto; }
[data-hero="centered"] .hero h1 { font-size: 2.6rem; }

/* Plain hero (minimal) — no banner colour or logo */
[data-hero="plain"] .hero { background: none; color: var(--ink); padding: 8px 0 4px; border-radius: 0; }
[data-hero="plain"] .hero h1 { color: var(--ink); font-size: 1.8rem; }
[data-hero="plain"] .hero-logo { display: none; }

[data-cards="large"] .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 26px; }
[data-names="uppercase"] .pcard-name { text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
[data-announce="off"] .announce { display: none; }

/* Light accents: a light banner with dark text instead of white text on yellow. */
[data-accent="light"] .hero { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ffffff)); }
[data-accent="light"] .hero h1 { color: var(--accent-ink); }
[data-accent="light"] .cat-tile-initial { color: var(--ink); background: color-mix(in srgb, var(--accent) 35%, #ffffff); }

/* ---------- Collections & tags (TASK-1004) ---------- */
.collection-chips, .tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chips { margin: 14px 0 4px; }
.collection-chip, .tag-chip {
  display: inline-flex; align-items: center; border: 1px solid var(--line, #e5e7eb); border-radius: 999px;
  background: var(--surface, #fff); color: var(--ink, #111827); text-decoration: none; transition: border-color .15s, background .15s;
}
.collection-chip { padding: 9px 16px; font-weight: 600; font-size: .92rem; }
.tag-chip { padding: 4px 11px; font-size: .8rem; color: var(--muted, #6b7280); }
.collection-chip:hover, .tag-chip:hover { border-color: var(--accent, #4f46e5); background: var(--accent-soft, #eef0ff); }
.collection-about { color: var(--muted, #6b7280); margin: -4px 0 18px; max-width: 60ch; }

/* ---------- Policy & content pages (TASK-1101) ---------- */
.store-page { max-width: 760px; margin: 8px 0 48px; }
.store-page h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 6px; }
.store-page-updated { color: var(--muted, #6b7280); font-size: .88rem; margin: 0 0 24px; }
.store-page-body { line-height: 1.75; color: var(--ink, #111827); }
.store-page-body h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.store-page-body h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.store-page-body ul, .store-page-body ol { padding-inline-start: 1.3rem; }
.store-page-body li { margin: 4px 0; }
.store-page-body a { color: var(--accent, #2563eb); }
.store-page-body table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.store-page-body th, .store-page-body td { border: 1px solid var(--line, #e6e7ea); padding: 8px 10px; text-align: start; }
.checkout-legal { font-size: .82rem; color: var(--ink-2, #3b4049); text-align: center; margin: 10px 0 0; }
.checkout-legal a { color: inherit; text-decoration: underline; }

/* ---------- Returns (TASK-1102) ---------- */
.return-card { max-width: 640px; margin: 8px 0 48px; }
.return-card h1 { margin: 0 0 8px; }
.return-form { display: grid; gap: 10px; margin-top: 16px; }
.return-form fieldset { border: 1px solid var(--line, #e6e7ea); border-radius: 12px; padding: 6px 16px; margin: 0 0 6px; }
.return-form legend { font-weight: 700; padding: 0 6px; font-size: .95rem; }
.return-form label { font-weight: 600; margin-top: 6px; }
.return-form select, .return-form textarea, .return-form input[type=file] { width: 100%; }
.return-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft, #f1f2f4); }
.return-line:first-of-type { border-top: 0; }
.return-line select { width: 80px; }
.return-line.done { opacity: .6; }
.return-box { border: 1px solid var(--line, #e6e7ea); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.return-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.return-box-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.return-flash { background: #ecfdf5; color: #065f46; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-size: .9rem; }
.return-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line-soft, #f1f2f4); font-size: .92rem; }
.status-badge.return-Requested { background: #fef3c7; color: #92400e; }
.status-badge.return-Approved { background: #dcfce7; color: #166534; }
.status-badge.return-Rejected { background: #fee2e2; color: #991b1b; }
.status-badge.status-Returned { background: #ede9fe; color: #5b21b6; }

/* ---------- Contact (TASK-1104) ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 16px; } }
.contact-card { border: 1px solid var(--line, #e6e7ea); border-radius: 16px; padding: 22px; background: #fff; }
.contact-card h2 { margin: 0 0 14px; font-size: 1.2rem; }
.contact-form { display: grid; gap: 8px; }
.report-page { max-width: 640px; margin: 0 auto; } /* TASK-1318 */
.contact-form label { font-weight: 600; font-size: .9rem; margin-top: 4px; }
.contact-form input, .contact-form textarea { width: 100%; }
.contact-form .btn { margin-top: 10px; }
.contact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .contact-two { grid-template-columns: 1fr; } }
.contact-sent { text-align: center; padding: 12px 0; }
.contact-sent h2 { margin: 10px 0 6px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Language picker (TASK-1402) ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--line, #e6e7ea); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .12); padding: 6px;
}
.lang-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink, #111827); text-decoration: none; }
.lang-list a:hover { background: var(--surface, #f6f6f7); }
.lang-list a.current { font-weight: 700; background: var(--surface, #f6f6f7); }
.lang-list small { color: var(--muted, #6b7280); font-size: .78rem; }

/* ============================================================
   Right-to-left (Urdu, TASK-1403). Layout mirrors through logical
   properties (inset-inline-*, margin-inline-*) and flex/grid order;
   only arrows need an explicit flip. Nastaliq sits tall — give it room.
   ============================================================ */
[dir="rtl"] .ico-dir { transform: scaleX(-1); }
:lang(ur) body, body:lang(ur) { line-height: 2; }
:lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { line-height: 1.8; }
/* Numbers, prices, phone numbers and codes stay left-to-right inside RTL text. */
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[inputmode="numeric"] { direction: ltr; text-align: end; }

/* TASK-1508: cookie consent — a bar along the bottom; "Decline" is as easy to press as "Accept". */
.consent-banner {
    position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60; margin: 0 auto; max-width: 760px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(17, 19, 24, .18); padding: 16px 18px; font-size: .9rem; line-height: 1.5;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; flex: 1 1 320px; }
.consent-banner strong { color: var(--ink); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 520px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* TASK-1701: product photo gallery — the square photo stays sticky with its thumbnails. */
@media (min-width: 900px) { .product-media { position: sticky; top: 92px; align-self: start; } .product-media .product-gallery { position: relative; top: auto; } }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* TASK-1702: size/colour picker */
.variant-picker { display: grid; gap: 14px; margin: 18px 0 6px; }
.variant-label { font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.variant-label strong { color: var(--ink); }
.variant-values { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-value { min-width: 48px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.variant-value:hover { border-color: var(--ink-2); }
.variant-value.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--accent); }
.variant-value.sold-out { color: #9aa0a9; text-decoration: line-through; }
.variant-value:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* TASK-1801: buyer sign-in and account pages */
.account-wrap { max-width: 460px; margin: 8px auto 48px; }
.account-wrap.wide { max-width: 720px; }
.account-wrap h1 { font-size: 1.5rem; margin: 0 0 6px; }
.account-wrap > p.muted { margin: 0 0 18px; }
.account-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.account-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.account-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.account-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; }
.account-links a { text-decoration: underline; }
.account-card + .account-card { margin-top: 16px; }
.account-card .contact-form input[readonly] { background: var(--surface); }
.account-ok { background: #ecfdf3; color: #067647; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.account-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ecfdf3; color: #067647; margin-inline-start: 6px; }
.account-badge.pending { background: #fff7e6; color: #93370d; }
.code-input { font-size: 1.4rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.checkout-account { font-size: .9rem; margin: 0 0 12px; }
.account-links .link-btn { text-decoration: underline; color: inherit; padding: 0; font: inherit; }
/* TASK-1802: account tabs, my orders, saved addresses */
.account-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 18px; overflow-x: auto; }
.account-nav a { padding: 10px 14px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.account-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.my-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.my-order { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; color: var(--ink); }
.my-order:hover { border-color: var(--ink-2); }
.my-order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.my-order-items { color: var(--ink-2); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-order-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .88rem; color: var(--ink-2); }
.my-order-meta strong { color: var(--ink); }
.my-order-go { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--ink); }
.status-badge.status-Expired { background: #f3f4f6; color: #4b5563; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.address-card { padding: 16px; }
.address-card.is-default { border-color: var(--ink-2); }
.address-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.address-card address { font-style: normal; color: var(--ink-2); line-height: 1.5; }
.address-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .9rem; }
.address-actions a, .address-actions .link-btn { text-decoration: underline; color: inherit; padding: 0; font: inherit; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.check-row input { width: auto; }
.saved-addresses { display: grid; gap: 8px; margin-bottom: 14px; }
.saved-address { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.saved-address:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.saved-address input { margin-top: 3px; width: auto; }
.saved-address small { display: block; color: var(--ink-2); }
/* TASK-1803: public order tracking */
.track-card .my-order-top { margin-bottom: 14px; }
.track-steps { list-style: none; margin: 18px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; position: relative; }
.track-step { display: grid; justify-items: center; text-align: center; gap: 6px; position: relative; font-size: .85rem; color: var(--ink-2); }
.track-step::before { content: ""; position: absolute; top: 12px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-step.done::before, .track-step.current::before { background: var(--accent); }
.track-dot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; color: #fff; }
.track-dot .ico { width: 14px; height: 14px; }
.track-step.done .track-dot { background: var(--accent); border-color: var(--accent); }
.track-step.current .track-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track-step.done, .track-step.current { color: var(--ink); font-weight: 600; }
.track-label small { display: block; font-weight: 400; color: var(--ink-2); }
.track-latest { margin: 8px 0; }
@media (max-width: 560px) {
    .track-steps { grid-template-columns: 1fr; gap: 14px; }
    .track-step { grid-template-columns: 26px 1fr; justify-items: start; text-align: start; }
    .track-step::before { top: auto; bottom: 50%; inset-inline-start: 12px; inset-inline-end: auto; width: 2px; height: calc(100% + 14px); }
}
/* TASK-1804: reviews & ratings */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stars { display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; direction: ltr;
    background: linear-gradient(90deg, #f59e0b calc(var(--rating) / 5 * 100%), #d1d5db calc(var(--rating) / 5 * 100%));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; color: var(--ink); font-size: .92rem; }
.rating-line:hover .muted { text-decoration: underline; }
.pcard-rating { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ink-2); margin: 2px 0 4px; }
.pcard-rating .stars { font-size: .85rem; }
.reviews { margin: 40px 0 8px; }
.reviews .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-own-note { background: #fff7e6; color: #93370d; border-radius: 10px; padding: 8px 12px; }
.reviews-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .reviews-layout { grid-template-columns: 1fr; gap: 18px; } }
.reviews-summary { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.reviews-avg { font-size: 2.4rem; font-weight: 750; line-height: 1; margin-bottom: 4px; }
.reviews-summary .stars { font-size: 1.3rem; }
.reviews-bars { display: grid; gap: 6px; margin-top: 14px; font-size: .82rem; color: var(--ink-2); }
.reviews-bar { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 8px; }
.reviews-bar .bar { height: 8px; border-radius: 999px; background: var(--line-soft, #eef0f3); overflow: hidden; }
.reviews-bar .bar > span { display: block; height: 100%; background: #f59e0b; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review p { margin: 8px 0; white-space: pre-line; }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--ink-2); }
.review-verified { display: inline-flex; align-items: center; gap: 4px; color: #067647; font-weight: 600; }
.review-verified .ico { width: 15px; height: 15px; }
.review-product { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--ink); font-weight: 600; }
.review-product img { border-radius: 10px; object-fit: cover; background: var(--surface); }
.star-input { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; direction: ltr; }
.star-input legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; width: 100%; direction: initial; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; color: #d1d5db; cursor: pointer; margin: 0 !important; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* TASK-1704: wishlist hearts */
.pcard { position: relative; }
.pcard > .wish-form { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; }
.wish-btn { width: 36px; height: 36px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); transition: transform .15s; }
.wish-btn:hover { transform: scale(1.08); }
.wish-btn .ico { width: 19px; height: 19px; }
.wish-btn.on { color: #e11d48; }
.wish-btn.on .ico { fill: currentColor; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-title-row .wish-btn { border: 1px solid var(--line); box-shadow: none; width: 42px; height: 42px; flex: none; }
.wishlist-page h1 { margin: 8px 0 6px; }
.wishlist-page .grid { margin-top: 18px; }
@media (max-width: 720px) { .wish-link { display: none; } }

/* TASK-1907: Indian scripts join their letters — spacing them apart (fine for English capitals) breaks
   Hindi, Bengali, Urdu… So small caps-style labels keep normal spacing outside English. */
:is(.site-footer h4, .eyebrow, .f-label, table.cart th):not(:lang(en)) { letter-spacing: normal; }

/* ---------- Customizer sections (TASK-2004): featured collection, text ---------- */
.featured-band, .text-band { margin: 48px 0; }
.featured-band .section-head { justify-content: space-between; }
.featured-all { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.featured-all:hover { text-decoration: underline; }
.text-band { max-width: 760px; }
.text-band.align-center { margin-inline: auto; text-align: center; }
.text-band h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 750; }
.text-band-body { color: var(--ink-2, var(--ink)); font-size: 1.02rem; line-height: 1.7; }
.text-band-body p { margin: 0 0 12px; }
.text-band-body a { color: var(--accent); }
.highlights-band { margin: 48px 0; }

/* ---------- Error pages (TASK-1203) ---------- */
.error-page { text-align: center; padding-block: 24px 48px; }
.error-page .error-code { margin: 0; font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--accent); opacity: .85; }
.error-page h1 { margin-top: 8px; }
.error-search { display: flex; gap: 8px; max-width: 460px; margin: 24px auto; }
.error-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; }
.error-ref { font-size: .8rem; margin-top: 18px; }

/* TASK-2505: COD Shield's prepaid nudge at checkout. */
.prepaid-nudge { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-weight: 600; font-size: .9rem; }
.prepaid-nudge svg { width: 18px; height: 18px; flex: 0 0 auto; }
