/* ==========================================================================
   Storefront theme — the customer-facing website (marketing pages only)
   Identity "Mulberry & Ember": a deep mulberry brand + warm ember-coral pop on a
   porcelain ground; Bricolage Grotesque display + Hanken Grotesk text. Premium,
   warm, fashion-forward — an original identity, not a clone of any reference.
   Loaded ONLY by _MarketingLayout and scoped to .theme-storefront, so the backend
   panel keeps its own theme and nothing leaks.
   ========================================================================== */

/* ---- Fonts (self-hosted, no CDN at runtime) ---- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bricolage/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/bricolage/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/bricolage/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/hanken/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/hanken/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/hanken/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/hanken/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

.theme-storefront {
    --sf-brand: #7a2e52;
    --sf-brand-hover: #632442;
    --sf-brand-deep: #4a1a31;
    --sf-brand-soft: #f7e9f0;
    --sf-brand-border: #ecd3df;
    --sf-accent: #f2603c;
    --sf-accent-hover: #df4d29;
    --sf-accent-soft: #fdeae3;
    --sf-ink: #241a20;
    --sf-ink-2: #382a30;
    --sf-porcelain: #faf7f4;
    --sf-white: #ffffff;
    --sf-text: #2b2126;
    --sf-muted: #6b5e64;
    --sf-border: #eee4e8;
    --sf-border-2: #e3d6dc;
    --sf-radius: 16px;
    --sf-radius-sm: 10px;
    --sf-shadow-sm: 0 1px 2px rgba(74,26,49,.06);
    --sf-shadow: 0 8px 24px rgba(74,26,49,.10);
    --sf-shadow-lg: 0 20px 48px rgba(74,26,49,.16);
    --sf-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sf-font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Re-map the app tokens onto the plum brand so any component built on --aw-*
       (icon chips, checkmarks, focus rings, chips) follows the storefront palette
       instead of the old teal. */
    --aw-primary: #7a2e52;
    --aw-primary-hover: #632442;
    --aw-primary-active: #4a1a31;
    --aw-primary-rgb: 122, 46, 82;
    --aw-primary-soft: #f7e9f0;
    --aw-primary-border: #ecd3df;
    --aw-accent: #f2603c;
    --aw-accent-soft: #fdeae3;
    --aw-ink: #241a20;
    --aw-text: #2b2126;
    --aw-muted: #6b5e64;
    --aw-border: #eee4e8;
    --aw-border-strong: #e3d6dc;

    /* Bootstrap's own link/primary variables are declared on :root in site.css, where var() has
       already resolved them against the teal palette — so without restating them here every
       plain Bootstrap link on a public page (the "Clear all" on Marketplace, for one) came out
       teal in a plum storefront. dashboard.css does the same for the backpanel. */
    --bs-primary: #7a2e52;
    --bs-primary-rgb: 122, 46, 82;
    --bs-link-color: #7a2e52;
    --bs-link-color-rgb: 122, 46, 82;
    --bs-link-hover-color: #632442;

    font-family: var(--sf-font);
    color: var(--sf-text);
    background: var(--sf-white);
    -webkit-font-smoothing: antialiased;
}

.theme-storefront main { background: var(--sf-white); }

.theme-storefront h1, .theme-storefront h2 {
    font-family: var(--sf-display); color: var(--sf-ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06;
}
.theme-storefront h3, .theme-storefront h4, .theme-storefront h5, .theme-storefront h6 {
    font-family: var(--sf-font); color: var(--sf-ink); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
.theme-storefront p { color: var(--sf-text); }
.theme-storefront a { text-decoration: none; }
.theme-storefront .text-muted { color: var(--sf-muted) !important; }
.theme-storefront ::selection { background: var(--sf-accent); color: #fff; }

/* ---- Buttons ---- */
.theme-storefront .btn {
    font-family: var(--sf-font); font-weight: 700; border-radius: var(--sf-radius-sm); letter-spacing: .005em; padding: .6rem 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.theme-storefront .btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }
.theme-storefront .btn:active { transform: translateY(1px); }

.theme-storefront .btn-primary {
    --bs-btn-bg: var(--sf-brand); --bs-btn-border-color: var(--sf-brand); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--sf-brand-hover); --bs-btn-hover-border-color: var(--sf-brand-hover); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--sf-brand-deep); --bs-btn-active-border-color: var(--sf-brand-deep); --bs-btn-active-color: #fff;
    box-shadow: 0 8px 20px rgba(122,46,82,.28);
}
.theme-storefront .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(122,46,82,.36); }

.theme-storefront .btn-accent {
    --bs-btn-bg: var(--sf-accent); --bs-btn-border-color: var(--sf-accent); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--sf-accent-hover); --bs-btn-hover-border-color: var(--sf-accent-hover); --bs-btn-hover-color: #fff;
    color: #fff; box-shadow: 0 8px 20px rgba(242,96,60,.30);
}
.theme-storefront .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242,96,60,.4); }

.theme-storefront .btn-outline-secondary, .theme-storefront .btn-outline-primary {
    --bs-btn-color: var(--sf-ink); --bs-btn-border-color: var(--sf-border-2);
    --bs-btn-hover-bg: var(--sf-ink); --bs-btn-hover-border-color: var(--sf-ink); --bs-btn-hover-color: #fff;
    /* --bs-btn-active-color has to be restated alongside the fill. Without it site.css's
       `--bs-btn-active-color: var(--aw-ink)` survives, and here --aw-ink and --sf-ink are the same
       #241a20 — so a pressed button rendered its label in exactly its own background colour. */
    --bs-btn-active-bg: var(--sf-ink); --bs-btn-active-border-color: var(--sf-ink);
    --bs-btn-active-color: var(--aw-on-ink);
    border-width: 2px; background: transparent;
}
.theme-storefront .btn-outline-secondary:hover, .theme-storefront .btn-outline-primary:hover { transform: translateY(-2px); }
.theme-storefront .btn-light { --bs-btn-color: var(--sf-brand); font-weight: 700; }
.theme-storefront .btn-outline-light { border-width: 2px; }

/* ---- Navbar ---- */
.theme-storefront .app-navbar.mkt-nav {
    background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--sf-border); transition: box-shadow .25s ease; padding-top: .6rem; padding-bottom: .6rem;
}
.theme-storefront .app-navbar.mkt-nav.scrolled { box-shadow: 0 6px 24px rgba(74,26,49,.09); }
.theme-storefront .mkt-nav .navbar-brand { color: var(--sf-ink); font-family: var(--sf-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.18rem; }

/* Quick-access icon actions in the public navbar (messages, alerts, wishlist, cart) */
.theme-storefront .nav-actions { display: flex; align-items: center; gap: .1rem; }
.theme-storefront .nav-icon-link {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; color: var(--sf-ink); text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.theme-storefront .nav-icon-link:hover { background: var(--sf-brand-soft); color: var(--sf-brand); }
.theme-storefront .nav-icon-link svg { width: 21px; height: 21px; }
.theme-storefront .nav-icon-link .count {
    position: absolute; top: 2px; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 3px;
    background: var(--sf-accent); color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--sf-white);
}
.theme-storefront .mkt-nav .bp-logo { font-size: 1.12rem; }
.theme-storefront .mkt-nav .bp-mark { width: 1.5em; height: 1.5em; margin-inline-end: .05rem; }
/* !important + neutralised active/hover states below override the shared dark
   .app-navbar rules from site.css, which use !important and a teal active pill. */
.theme-storefront .mkt-nav .nav-link {
    color: var(--sf-ink) !important; font-weight: 600; font-size: .88rem; position: relative; white-space: nowrap;
    padding: .5rem .6rem !important; border-radius: 0; background: transparent !important; box-shadow: none !important;
}
.theme-storefront .mkt-nav .nav-link:hover { color: var(--sf-brand) !important; background: transparent !important; box-shadow: none !important; }
.theme-storefront .mkt-nav .nav-link.active { color: var(--sf-ink) !important; background: transparent !important; box-shadow: none !important; }
.theme-storefront .mkt-nav .nav-link.dropdown-toggle::after { margin-left: .3em; }
.theme-storefront .mkt-nav .nav-link:not(.dropdown-toggle)::after {
    content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .25rem; height: 2px; background: var(--sf-accent);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.theme-storefront .mkt-nav .btn-signout { white-space: nowrap; }
/* Slightly tighten the icon actions so the right cluster stays compact */
.theme-storefront .mkt-nav .nav-icon-link { width: 36px; height: 36px; }
.theme-storefront .mkt-nav .navbar-brand { display: inline-flex; align-items: center; }
.theme-storefront .mkt-nav .nav-link:hover::after, .theme-storefront .mkt-nav .nav-link.active::after { transform: scaleX(1); }
.theme-storefront .mkt-nav .btn-signout { color: var(--sf-ink) !important; font-weight: 600; background: none !important; border: 0; }
.theme-storefront .mkt-nav .btn-signout:hover { color: var(--sf-brand) !important; background: none !important; }
.theme-storefront .mkt-nav .nav-user { color: var(--sf-muted) !important; }
.theme-storefront .mkt-nav .nav-divider { background: var(--sf-border-2); }
.theme-storefront .mkt-nav .navbar-toggler { border-color: var(--sf-border-2); }

/* ---- Sections ---- */
.theme-storefront .section { padding: 5rem 0; }
.theme-storefront .section-tight { padding: 3.5rem 0; }
.theme-storefront .section-alt { background: var(--sf-porcelain); border-top: 1px solid var(--sf-border); border-bottom: 1px solid var(--sf-border); }
.theme-storefront .section-dark { background: var(--sf-ink); color: #fff; }
.theme-storefront .section-dark h1, .theme-storefront .section-dark h2, .theme-storefront .section-dark h3 { color: #fff; }

.theme-storefront .eyebrow {
    text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--sf-brand);
    margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .5rem;
}
.theme-storefront .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sf-accent); display: inline-block; }
.theme-storefront .section-dark .eyebrow { color: #f6b9a6; }
.theme-storefront .section-title { font-family: var(--sf-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: .6rem; }
.theme-storefront .section-lead { color: var(--sf-muted); font-size: 1.08rem; max-width: 44rem; line-height: 1.6; }
.theme-storefront .section-dark .section-lead { color: rgba(255,255,255,.78); }
.theme-storefront .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }

/* ---- Hero ---- */
.theme-storefront .mkt-hero {
    position: relative; overflow: hidden; padding: 4.5rem 0 4rem;
    background:
        radial-gradient(1100px 500px at 88% -10%, rgba(242,96,60,.14), transparent 60%),
        radial-gradient(760px 420px at 2% 108%, rgba(122,46,82,.12), transparent 55%),
        var(--sf-porcelain);
}
.theme-storefront .mkt-hero h1 { font-family: var(--sf-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; margin-bottom: 1.1rem; font-weight: 800; }
.theme-storefront .mkt-hero h1 .hl { position: relative; white-space: nowrap; }
.theme-storefront .mkt-hero h1 .hl::after {
    content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .05em; height: .32em; z-index: -1;
    background: var(--sf-accent); opacity: .9; border-radius: 3px; transform: rotate(-1.2deg);
}
.theme-storefront .mkt-hero .hero-lead { color: var(--sf-muted); font-size: 1.18rem; max-width: 33rem; line-height: 1.6; }
.theme-storefront .hero-pill {
    display: inline-flex; align-items: center; gap: .5rem; background: var(--sf-ink); color: #fff; border-radius: 2rem;
    padding: .35rem .9rem; font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
}
.theme-storefront .hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sf-accent); box-shadow: 0 0 0 3px rgba(242,96,60,.35); }
.theme-storefront .hero-rating { display: flex; align-items: center; gap: .6rem; margin-top: 1.75rem; color: var(--sf-muted); font-size: .9rem; font-weight: 500; }
.theme-storefront .hero-rating .stars { color: var(--sf-accent); letter-spacing: .1em; }

.theme-storefront .hero-visual { position: relative; min-height: 380px; }
.theme-storefront .hero-visual::before {
    content: ""; position: absolute; inset: 8% 6%; border-radius: 30px;
    background: linear-gradient(150deg, var(--sf-brand-deep) 0%, var(--sf-brand) 100%); transform: rotate(3deg); box-shadow: var(--sf-shadow-lg);
}
.theme-storefront .mkt-hero .mock-card { position: absolute; width: 240px; background: #fff; border-radius: 18px; padding: .8rem; box-shadow: var(--sf-shadow-lg); border: 1px solid var(--sf-border); }
.theme-storefront .mkt-hero .mock-card.card-a { top: 34px; left: 4%; transform: rotate(-5deg); z-index: 2; animation: sf-float 6s ease-in-out infinite; }
.theme-storefront .mkt-hero .mock-card.card-b { top: 150px; right: 2%; transform: rotate(5deg); z-index: 3; width: 220px; animation: sf-float 7s ease-in-out infinite 1s; }
.theme-storefront .mock-thumb { height: 130px; border-radius: 12px; background: linear-gradient(135deg,#e6d7de,#f0e6ea); position: relative; overflow: hidden; }
.theme-storefront .mock-card.card-a .mock-thumb { background: linear-gradient(135deg,#3d1a2e,#7a2e52); }
.theme-storefront .mock-card.card-b .mock-thumb { background: linear-gradient(135deg,#f2603c,#f79a6d); }
.theme-storefront .mock-qc { position: absolute; top: .5rem; left: .5rem; background: var(--sf-brand); color: #fff; font-weight: 700; font-size: .72rem; padding: .15rem .5rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .3rem; }
.theme-storefront .mock-qc::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.theme-storefront .mock-body { padding: .65rem .3rem .2rem; }
.theme-storefront .mock-title { font-weight: 700; font-size: .88rem; color: var(--sf-ink); margin-bottom: .3rem; }
.theme-storefront .mock-meta { display: flex; justify-content: space-between; align-items: baseline; }
.theme-storefront .mock-price { font-family: var(--sf-display); font-weight: 800; color: var(--sf-ink); font-size: 1.05rem; }
.theme-storefront .mock-cur { font-size: .7rem; color: var(--sf-muted); }
.theme-storefront .float-chip { position: absolute; background: #fff; border: 1px solid var(--sf-border); border-radius: 2rem; padding: .4rem .8rem; font-size: .8rem; font-weight: 600; box-shadow: var(--sf-shadow); display: inline-flex; align-items: center; gap: .45rem; z-index: 4; }
.theme-storefront .float-chip .fc-dot { width: 8px; height: 8px; border-radius: 50%; }
.theme-storefront .float-chip.chip-1 { bottom: 40px; left: -2%; animation: sf-float 5.5s ease-in-out infinite .5s; }
.theme-storefront .float-chip.chip-2 { bottom: -4px; right: 10%; animation: sf-float 6.5s ease-in-out infinite; }

@keyframes sf-float { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-12px) rotate(var(--r,0deg)); } }
.theme-storefront .mkt-hero .mock-card.card-a { --r: -5deg; }
.theme-storefront .mkt-hero .mock-card.card-b { --r: 5deg; }

/* ---- Trusted-by strip ---- */
.theme-storefront .logo-strip { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: center; opacity: .7; }
.theme-storefront .logo-strip .logo-item { font-family: var(--sf-display); font-weight: 700; letter-spacing: .02em; color: var(--sf-ink); font-size: 1.1rem; text-transform: uppercase; }

/* ---- Category tiles ---- */
.theme-storefront .cat-tile { display: block; background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; color: var(--sf-ink); }
.theme-storefront .cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow); border-color: var(--sf-brand-border); }
.theme-storefront .cat-thumb { display: flex; align-items: center; justify-content: center; height: 76px; width: 76px; margin: 0 auto .65rem; border-radius: 50%; color: #fff; font-family: var(--sf-display); font-weight: 800; font-size: 1.6rem; box-shadow: var(--sf-shadow); }
.theme-storefront .cat-name { font-weight: 700; font-size: .95rem; }
.theme-storefront .cat-count { color: var(--sf-muted); font-size: .8rem; }

/* ---- Product cards ---- */
.theme-storefront .product-card { display: block; background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; color: var(--sf-ink); height: 100%; }
.theme-storefront .product-card:hover { transform: translateY(-6px); box-shadow: var(--sf-shadow-lg); border-color: var(--sf-border-2); }
.theme-storefront .product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
/* A video-only listing uses a frame of its walkthrough as the cover. */
.theme-storefront .product-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0f172a; }
.theme-storefront .product-playbadge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(15,23,42,.62); color: #fff; font-size: .78rem; pointer-events: none;
}
.theme-storefront .product-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(36,26,32,.22)); opacity: 0; transition: opacity .22s ease; }
.theme-storefront .product-card:hover .product-thumb::after { opacity: 1; }
.theme-storefront .product-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; background: var(--sf-brand); color: #fff; font-weight: 700; font-size: .72rem; padding: .2rem .55rem; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.theme-storefront .product-body { padding: .85rem .9rem 1rem; }
.theme-storefront .product-cat { color: var(--sf-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-storefront .product-title { font-weight: 700; font-size: .98rem; margin: .15rem 0 .55rem; color: var(--sf-ink); line-height: 1.25; }
.theme-storefront .product-foot { display: flex; align-items: baseline; justify-content: space-between; }
.theme-storefront .product-price { font-family: var(--sf-display); font-weight: 800; font-size: 1.18rem; color: var(--sf-ink); }
.theme-storefront .product-cur { font-size: .74rem; color: var(--sf-muted); font-weight: 600; }
.theme-storefront .product-ship { display: block; margin-top: .35rem; font-size: .72rem; color: var(--sf-brand); font-weight: 600; }
.theme-storefront .product-sold { margin-top: .35rem; font-size: .74rem; font-weight: 700; color: #d24e2a; letter-spacing: .01em; }

/* ---- Trust items / feature tiles ---- */
.theme-storefront .trust-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.theme-storefront .trust-item { display: inline-flex; align-items: center; gap: .55rem; color: var(--sf-ink); font-size: .92rem; font-weight: 600; }
.theme-storefront .trust-item svg { width: 20px; height: 20px; color: var(--sf-brand); }
.theme-storefront .feature-tile { background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1.5rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.theme-storefront .feature-tile:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow); }
.theme-storefront .feature-tile .feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sf-brand-soft); color: var(--sf-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.theme-storefront .feature-tile .feature-icon svg { width: 24px; height: 24px; }
.theme-storefront .feature-tile h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.theme-storefront .feature-tile p { color: var(--sf-muted); font-size: .9rem; margin: 0; }

/* ---- Stats ---- */
.theme-storefront .stat { text-align: center; padding: .5rem; }
.theme-storefront .stat-num { font-family: var(--sf-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--sf-ink); line-height: 1; letter-spacing: -.02em; }
.theme-storefront .section-dark .stat-num { color: var(--sf-accent); }
.theme-storefront .stat-label { color: var(--sf-muted); font-size: .85rem; margin-top: .5rem; font-weight: 500; }
.theme-storefront .section-dark .stat-label { color: rgba(255,255,255,.72); }

/* ---- Steps ---- */
.theme-storefront .step-card { height: 100%; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.theme-storefront .step-card:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow); }
.theme-storefront .step-card .card-body { padding: 1.5rem; }
.theme-storefront .step-num { width: 40px; height: 40px; border-radius: 11px; background: var(--sf-brand); color: #fff; font-family: var(--sf-display); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; font-size: 1.05rem; }
.theme-storefront .step-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.theme-storefront .step-card p { color: var(--sf-muted); font-size: .88rem; margin: 0; }

/* ---- Value cards ---- */
.theme-storefront .value-card { height: 100%; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); background: #fff; box-shadow: var(--sf-shadow-sm); }
.theme-storefront .value-card .card-body { padding: 2rem; }
.theme-storefront .value-card .feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sf-brand-soft); color: var(--sf-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.theme-storefront .value-card .feature-icon svg { width: 26px; height: 26px; }
.theme-storefront .value-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.theme-storefront .value-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; font-size: .95rem; }
.theme-storefront .value-list .vl-mark { color: var(--sf-accent); flex-shrink: 0; margin-top: .1rem; }
.theme-storefront .value-list .vl-mark svg { width: 18px; height: 18px; display: block; }

/* ---- QC card ---- */
.theme-storefront .qc-card { border: 1px solid var(--sf-border); border-radius: 18px; background: #fff; box-shadow: var(--sf-shadow); overflow: hidden; }
.theme-storefront .qc-card-head { background: var(--sf-ink); color: #fff; padding: 1.1rem 1.35rem; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.theme-storefront .qc-card-head .grade { background: var(--sf-accent); color: #fff; border-radius: 8px; font-weight: 700; padding: .2rem .6rem; font-size: .85rem; }
.theme-storefront .qc-row { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.35rem; border-top: 1px solid var(--sf-border); font-size: .92rem; }
.theme-storefront .qc-tick { color: #1f9d55; display: inline-flex; }
.theme-storefront .qc-tick svg { width: 18px; height: 18px; }

/* ---- Chips ---- */
.theme-storefront .chip { display: inline-flex; align-items: center; border: 1px solid var(--sf-border-2); border-radius: 2rem; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; color: var(--sf-ink); background: #fff; transition: all .18s ease; }
.theme-storefront .chip-teal { background: var(--sf-brand-soft); border-color: var(--sf-brand-border); color: var(--sf-brand); }
.theme-storefront a.chip:hover { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }

/* ---- Supplier cards ---- */
.theme-storefront .supplier-card { background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1.25rem; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.theme-storefront .supplier-card:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow); border-color: var(--sf-brand-border); }
.theme-storefront .supplier-avatar { width: 60px; height: 60px; border-radius: 50%; color: #fff; font-family: var(--sf-display); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
.theme-storefront img.supplier-avatar { object-fit: cover; display: block; }
.theme-storefront .supplier-name { font-weight: 700; font-size: .95rem; }
.theme-storefront .supplier-stars { color: var(--sf-accent); font-size: .85rem; letter-spacing: .06em; }
.theme-storefront .supplier-meta { color: var(--sf-muted); font-size: .78rem; }
.theme-storefront .supplier-verified { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sf-brand); background: var(--sf-brand-soft); border-radius: 1rem; padding: .1rem .55rem; margin-top: .25rem; }

/* ---- Supplier directory (rich rows + item rail) ---- */
.theme-storefront .sup-dir-header { align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.theme-storefront .sup-dir-search { position: relative; min-width: min(300px, 62vw); }
.theme-storefront .sup-dir-search .form-control { padding-inline-start: 2.3rem; border-radius: 999px; }
.theme-storefront .sup-dir-search-ic { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); color: var(--sf-muted); pointer-events: none; display: inline-flex; }
.theme-storefront .sup-dir-search-ic svg { width: 16px; height: 16px; }

.theme-storefront .sup-dir { display: flex; flex-direction: column; gap: 1rem; }
.theme-storefront .sup-row {
    display: grid; grid-template-columns: 304px minmax(0, 1fr);
    background: var(--sf-white); border: 1px solid var(--sf-border); border-radius: var(--sf-radius);
    overflow: hidden; box-shadow: var(--sf-shadow-sm); transition: box-shadow .2s ease, border-color .2s ease;
}
.theme-storefront .sup-row:hover { box-shadow: var(--sf-shadow); border-color: var(--sf-brand-border); }
.theme-storefront .sup-row-profile {
    padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 1rem;
    border-inline-end: 1px solid var(--sf-border); background: var(--sf-porcelain);
}
.theme-storefront .sup-id { display: flex; gap: .85rem; align-items: flex-start; }
.theme-storefront .sup-logo {
    width: 62px; height: 62px; border-radius: 16px; overflow: hidden; flex: 0 0 auto; display: block;
    border: 1px solid var(--sf-border-2); box-shadow: var(--sf-shadow-sm);
}
.theme-storefront .sup-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-storefront .sup-id-main { min-width: 0; }
.theme-storefront .sup-name { font-family: var(--sf-display); font-weight: 800; font-size: 1.12rem; line-height: 1.12; color: var(--sf-ink); text-decoration: none; display: block; }
.theme-storefront .sup-name:hover { color: var(--sf-brand); }
.theme-storefront .sup-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.theme-storefront .sup-verified { display: inline-flex; align-items: center; gap: .28rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sf-brand); background: var(--sf-brand-soft); border-radius: 999px; padding: .12rem .5rem; }
.theme-storefront .sup-verified svg { width: 12px; height: 12px; }
.theme-storefront .sup-chip { display: inline-flex; align-items: center; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: .12rem .5rem; }
.theme-storefront .sup-chip--sale { color: var(--sf-accent); background: var(--sf-accent-soft); }
.theme-storefront .sup-loc { display: flex; align-items: center; gap: .3rem; color: var(--sf-muted); font-size: .8rem; margin-top: .45rem; }
.theme-storefront .sup-loc svg { width: 14px; height: 14px; }

.theme-storefront .sup-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-sm); overflow: hidden; background: var(--sf-white); }
.theme-storefront .sup-stat { padding: .55rem .35rem; text-align: center; border-inline-start: 1px solid var(--sf-border); }
.theme-storefront .sup-stat:first-child { border-inline-start: 0; }
.theme-storefront .sup-stat .v { display: block; font-family: var(--sf-display); font-weight: 800; font-size: 1.05rem; color: var(--sf-ink); line-height: 1; }
.theme-storefront .sup-stat .v small { font-weight: 600; color: var(--sf-muted); font-size: .66rem; }
.theme-storefront .sup-stat .k { display: block; font-size: .62rem; color: var(--sf-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }
.theme-storefront .sup-actions { display: flex; gap: .5rem; margin-top: auto; }
.theme-storefront .sup-actions form { flex: 1; }
.theme-storefront .sup-actions .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.theme-storefront .sup-actions .btn svg { width: 15px; height: 15px; }

.theme-storefront .sup-rail-wrap { padding: 1rem 1.1rem; min-width: 0; display: flex; align-items: center; }
.theme-storefront .sup-rail { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .4rem; width: 100%; scroll-snap-type: x proximity; }
.theme-storefront .sup-rail::-webkit-scrollbar { height: 7px; }
.theme-storefront .sup-rail::-webkit-scrollbar-thumb { background: var(--sf-border-2); border-radius: 4px; }
.theme-storefront .sup-item { flex: 0 0 148px; width: 148px; text-decoration: none; color: var(--sf-ink); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-sm); overflow: hidden; background: var(--sf-white); scroll-snap-align: start; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.theme-storefront .sup-item:hover { transform: translateY(-3px); box-shadow: var(--sf-shadow); border-color: var(--sf-brand-border); }
.theme-storefront .sup-item-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--sf-porcelain); }
.theme-storefront .sup-item-thumb img,
.theme-storefront .sup-item-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-storefront .sup-item-thumb video { background: #0f172a; }
.theme-storefront .sup-item-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sf-border-2); }
.theme-storefront .sup-item-noimg svg { width: 34px; height: 34px; }
.theme-storefront .sup-item-off { position: absolute; top: .4rem; inset-inline-start: .4rem; background: var(--sf-accent); color: #fff; font-weight: 700; font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; }
.theme-storefront .sup-item-body { padding: .5rem .55rem .6rem; }
.theme-storefront .sup-item-title { font-size: .78rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.95rem; }
.theme-storefront .sup-item-price { margin-top: .3rem; display: flex; align-items: baseline; gap: .35rem; }
.theme-storefront .sup-item-price .now { font-weight: 800; color: var(--sf-brand); font-size: .85rem; }
.theme-storefront .sup-item-price .was { color: var(--sf-muted); text-decoration: line-through; font-size: .72rem; }
.theme-storefront .sup-item--all { flex: 0 0 120px; width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; color: var(--sf-brand); background: var(--sf-brand-soft); border-style: dashed; border-color: var(--sf-brand-border); font-weight: 700; font-size: .76rem; line-height: 1.2; }
.theme-storefront .sup-item--all:hover { transform: none; color: var(--sf-brand-hover); }
.theme-storefront .sup-item-all-ic svg { width: 26px; height: 26px; }
.theme-storefront .sup-rail-empty { color: var(--sf-muted); font-size: .85rem; padding: 1.5rem 0; text-align: center; width: 100%; }

@media (max-width: 767.98px) {
    .theme-storefront .sup-row { grid-template-columns: 1fr; }
    .theme-storefront .sup-row-profile { border-inline-end: 0; border-bottom: 1px solid var(--sf-border); }
}

/* ---- Promo band ---- */
.theme-storefront .promo-band { background: linear-gradient(120deg, var(--sf-brand) 0%, var(--sf-brand-deep) 100%); color: #fff; border-radius: 22px; padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.theme-storefront .promo-band::after { content: "%"; position: absolute; right: -1rem; top: -2.5rem; font-family: var(--sf-display); font-size: 12rem; font-weight: 800; opacity: .1; line-height: 1; }
.theme-storefront .promo-band h3 { color: #fff; font-family: var(--sf-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0; }
.theme-storefront .promo-band p { color: rgba(255,255,255,.82); margin: .35rem 0 0; font-weight: 500; }
.theme-storefront .promo-code { background: var(--sf-accent); color: var(--sf-ink); border-radius: 10px; padding: .55rem 1.1rem; font-weight: 800; letter-spacing: .08em; font-size: 1rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(242,96,60,.4); }

/* ---- Testimonials ---- */
.theme-storefront .quote-card { height: 100%; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); background: #fff; box-shadow: var(--sf-shadow-sm); }
.theme-storefront .quote-card .card-body { padding: 1.75rem; }
.theme-storefront .quote-stars { color: var(--sf-accent); letter-spacing: .1em; margin-bottom: .6rem; font-size: .95rem; }
.theme-storefront .quote-card .quote-text { font-size: 1rem; color: var(--sf-text); line-height: 1.65; }
.theme-storefront .quote-author { font-weight: 700; color: var(--sf-ink); margin-top: 1rem; }
.theme-storefront .quote-role { color: var(--sf-muted); font-size: .82rem; }
.theme-storefront .quote-mark { font-family: Georgia, serif; font-size: 3rem; line-height: .1; color: var(--sf-accent); height: 1.4rem; display: block; }

/* ---- CTA band ---- */
.theme-storefront .cta-band { background: var(--sf-ink); border-radius: 26px; padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden; background-image: radial-gradient(620px 320px at 50% -30%, rgba(242,96,60,.32), transparent 60%); }
.theme-storefront .cta-band h2 { color: #fff; font-family: var(--sf-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .6rem; }
.theme-storefront .cta-band p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; font-size: 1.05rem; }
.theme-storefront .cta-band .btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--sf-brand); --bs-btn-hover-bg: var(--sf-porcelain); --bs-btn-hover-border-color: var(--sf-porcelain); --bs-btn-hover-color: var(--sf-brand); font-weight: 700; }

/* ---- Footer ---- */
.theme-storefront .mkt-footer { background: var(--sf-ink); color: rgba(255,255,255,.7); padding: 4rem 0 1.75rem; }
.theme-storefront .mkt-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-bottom: 1rem; font-weight: 700; }
.theme-storefront .mkt-footer a { color: rgba(255,255,255,.65); font-size: .88rem; display: inline-block; padding: .2rem 0; transition: color .15s ease; }
.theme-storefront .mkt-footer a:hover { color: #f6b9a6; }
.theme-storefront .mkt-footer .footer-brand { display: inline-flex; margin-bottom: .75rem; }
.theme-storefront .mkt-footer .footer-brand .bp-logo { font-size: 1.12rem; }
.theme-storefront .mkt-footer .footer-blurb { font-size: .88rem; max-width: 22rem; line-height: 1.6; }
.theme-storefront .mkt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---- Scroll-reveal animation (visible by default; hidden only when JS confirms) ---- */
html.sf-anim .theme-storefront [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
html.sf-anim .theme-storefront [data-reveal].revealed { opacity: 1; transform: none; }
.theme-storefront [data-reveal-delay="1"] { transition-delay: .08s; }
.theme-storefront [data-reveal-delay="2"] { transition-delay: .16s; }
.theme-storefront [data-reveal-delay="3"] { transition-delay: .24s; }
.theme-storefront [data-reveal-delay="4"] { transition-delay: .32s; }
.theme-storefront [data-reveal-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
    html.sf-anim .theme-storefront [data-reveal] { opacity: 1; transform: none; transition: none; }
    .theme-storefront .mock-card, .theme-storefront .float-chip { animation: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .theme-storefront .mkt-nav .nav-link::after { display: none; }
    .theme-storefront .mkt-nav .navbar-nav { padding: .5rem 0; }
    .theme-storefront .hero-visual { min-height: 320px; margin-top: 2rem; }
    .theme-storefront .section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
    .theme-storefront .mkt-hero { padding: 3rem 0 2.5rem; }
    .theme-storefront .promo-band { padding: 1.5rem; }
    .theme-storefront .cta-band { padding: 2.5rem 1.25rem; }
}

/* ---- RTL ---- */
[dir="rtl"] .theme-storefront .mkt-hero h1 .hl::after { transform: rotate(1.2deg); }

/* =============================================================================
   Supplier storefront (profile aside + listings)
   ============================================================================= */
.theme-storefront .store-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-bottom: 2.5rem; }
.theme-storefront .store-aside { position: sticky; top: 84px; }
.theme-storefront .store-card { background: var(--sf-white); border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1.4rem; box-shadow: var(--sf-shadow-sm); text-align: center; }
.theme-storefront .store-logo { width: 92px; height: 92px; border-radius: 22px; overflow: hidden; margin: 0 auto .8rem; border: 1px solid var(--sf-border-2); box-shadow: var(--sf-shadow-sm); }
.theme-storefront .store-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-storefront .store-name { font-family: var(--sf-display); font-weight: 800; font-size: 1.35rem; color: var(--sf-ink); margin: 0 0 .5rem; line-height: 1.1; }
.theme-storefront .store-badges { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.theme-storefront .store-loc { display: inline-flex; align-items: center; gap: .3rem; color: var(--sf-muted); font-size: .85rem; margin-top: .55rem; }
.theme-storefront .store-loc svg { width: 15px; height: 15px; }
.theme-storefront .store-actions { display: flex; flex-direction: column; gap: .5rem; margin: 1.1rem 0; }
.theme-storefront .store-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.theme-storefront .store-actions .btn svg { width: 15px; height: 15px; }
.theme-storefront .store-stats { margin: .2rem 0 0; border-top: 1px solid var(--sf-border); }
.theme-storefront .store-stat { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--sf-border); }
.theme-storefront .store-stat:last-child { border-bottom: 0; }
.theme-storefront .store-stat dt { display: inline-flex; align-items: center; gap: .45rem; color: var(--sf-muted); font-size: .84rem; font-weight: 500; margin: 0; }
.theme-storefront .store-stat dt svg { width: 15px; height: 15px; color: var(--sf-brand); flex: 0 0 auto; }
.theme-storefront .store-stat dd { margin: 0; font-weight: 700; color: var(--sf-ink); font-size: .88rem; text-align: end; }
.theme-storefront .store-reviews-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .9rem; padding: .6rem .8rem; border-radius: var(--sf-radius-sm); background: var(--sf-brand-soft); color: var(--sf-brand); font-weight: 700; font-size: .85rem; text-decoration: none; }
.theme-storefront .store-reviews-link:hover { background: var(--sf-brand-border); }
.theme-storefront .store-main-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; }
.theme-storefront .store-main-title { font-family: var(--sf-display); font-weight: 800; font-size: 1.4rem; color: var(--sf-ink); margin: 0; }
.theme-storefront .store-main-count { color: var(--sf-muted); font-size: .9rem; }

@media (max-width: 991.98px) {
    .theme-storefront .store-layout { grid-template-columns: 1fr; }
    .theme-storefront .store-aside { position: static; }
}

/* =============================================================================
   Product detail page (PDP)
   ============================================================================= */
.pdp { padding: 1.25rem 0 2.5rem; }
.pdp-breadcrumb { font-size: .82rem; color: var(--sf-muted); margin-bottom: 1rem; }
.pdp-breadcrumb a { color: var(--sf-muted); text-decoration: none; }
.pdp-breadcrumb a:hover { color: var(--sf-brand); }

.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 2rem; align-items: start; }

/* Gallery */
.pdp-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; }
.pdp-thumbs { display: flex; flex-direction: column; gap: .55rem; }
.pdp-thumb {
    width: 76px; height: 76px; border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0;
    border: 2px solid var(--sf-border); background: #f1f5f9; transition: border-color .15s ease;
}
.pdp-thumb img,
.pdp-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.active { border-color: var(--sf-brand); }
/* Video thumb: dark base + a play glyph so it reads as playable, not a broken image. */
.pdp-thumb.is-video { position: relative; background: #0f172a; }
.pdp-thumb-play {
    position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
    color: #fff; font-size: .85rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.pdp-stage {
    position: relative; border: 1px solid var(--sf-border); border-radius: var(--sf-radius);
    overflow: hidden; background: #f1f5f9; aspect-ratio: 1 / 1; cursor: zoom-in;
}
.pdp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The video fills the stage and keeps its own controls — no zoom cursor over it. */
.pdp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pdp-stage.is-video { cursor: default; background: #000; }
.pdp-stage .pdp-zoom-hint {
    position: absolute; bottom: .6rem; inset-inline-end: .6rem; z-index: 2;
    background: rgba(36,26,32,.72); color: #fff; border-radius: 999px; padding: .28rem .6rem;
    font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; pointer-events: none;
}
.pdp-empty { display: grid; place-items: center; aspect-ratio: 1/1; color: var(--sf-muted); border: 1px dashed var(--sf-border-2); border-radius: var(--sf-radius); }

/* Buy box */
.pdp-buybox { position: sticky; top: 84px; background: var(--sf-white); border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1.4rem; box-shadow: var(--sf-shadow-sm); }
.pdp-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.pdp-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .25rem .6rem; }
.pdp-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.pdp-badge--type { background: var(--sf-brand-soft); color: var(--sf-brand); }
.pdp-badge--grade { background: #e9f7ef; color: #1a7f45; }
.pdp-badge--qc { background: #eef1f6; color: #384250; }
.pdp-badge--exact { background: #e9f7ef; color: #1a7f45; }
.pdp-badge--rep { background: #fff4e5; color: #a15c00; }
.pdp-kind-note { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .9rem; font-size: .84rem; line-height: 1.4;
    border-radius: var(--sf-radius-sm); padding: .55rem .7rem; }
.pdp-kind-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .1rem; }
.pdp-kind-note.is-exact { background: #e9f7ef; color: #14663a; }
.pdp-kind-note.is-rep { background: #fff4e5; color: #7a4600; }
.pdp-title { font-family: var(--sf-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; color: var(--sf-ink); margin: 0 0 .4rem; }
.pdp-meta { color: var(--sf-muted); font-size: .9rem; margin-bottom: 1rem; }
.pdp-meta a { color: var(--sf-brand); font-weight: 600; text-decoration: none; }
.pdp-stars { color: #f59e0b; font-weight: 700; }
.pdp-price-row { display: flex; align-items: baseline; gap: .5rem; padding: .9rem 0; border-top: 1px solid var(--sf-border); border-bottom: 1px solid var(--sf-border); margin-bottom: 1rem; }
.pdp-price { font-family: var(--sf-display); font-weight: 800; font-size: 2rem; color: var(--sf-ink); line-height: 1; }
.pdp-price-cur { color: var(--sf-muted); font-weight: 600; }
.pdp-stock { margin-inline-start: auto; font-size: .82rem; color: var(--sf-muted); }
.pdp-stock .in { color: #1a7f45; font-weight: 700; }
.pdp-qty-row { display: flex; gap: .6rem; margin-bottom: .6rem; }
.pdp-qty { display: inline-flex; align-items: center; border: 1px solid var(--sf-border-2); border-radius: var(--sf-radius-sm); overflow: hidden; }
.pdp-qty button { width: 38px; height: 44px; border: 0; background: #fff; color: var(--sf-ink); font-size: 1.1rem; cursor: pointer; }
.pdp-qty button:hover { background: var(--sf-brand-soft); color: var(--sf-brand); }
.pdp-qty input { width: 48px; height: 44px; border: 0; text-align: center; font-weight: 700; color: var(--sf-ink); -moz-appearance: textfield; }
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-actions .btn { width: 100%; }
.pdp-actions .row2 { display: flex; gap: .55rem; margin-top: .55rem; }
.pdp-actions .row2 .btn { flex: 1; }
.pdp-trust { display: flex; flex-direction: column; gap: .55rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--sf-border); }
.pdp-trust .t { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--sf-text); }
.pdp-trust .t svg { width: 18px; height: 18px; color: var(--sf-brand); flex: 0 0 auto; }

/* Lower content sections */
.pdp-section { background: var(--sf-white); border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1.3rem 1.4rem; margin-top: 1.4rem; }
.pdp-section h2 { font-family: var(--sf-display); font-weight: 700; font-size: 1.15rem; color: var(--sf-ink); margin: 0 0 .8rem; }
.pdp-desc { white-space: pre-wrap; color: var(--sf-text); line-height: 1.65; margin: 0; }
.pdp-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .1rem 1.5rem; }
.pdp-spec { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--sf-border); }
.pdp-spec .k { color: var(--sf-muted); font-size: .88rem; }
.pdp-spec .v { color: var(--sf-ink); font-weight: 700; font-size: .88rem; text-align: end; }
.pdp-seller-card { display: flex; align-items: center; gap: 1rem; }
.pdp-seller-avatar { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sf-brand), var(--sf-accent)); font-family: var(--sf-display); font-size: 1.2rem; }
img.pdp-seller-avatar { object-fit: cover; display: block; }
.pdp-seller-card .name { font-weight: 800; color: var(--sf-ink); font-family: var(--sf-display); }
.pdp-review { border: 1px solid var(--sf-border); border-radius: var(--sf-radius-sm); padding: .9rem 1rem; height: 100%; background: var(--sf-porcelain); }
.pdp-review-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pdp-review-who { font-weight: 700; color: var(--sf-ink); }
.pdp-review .pdp-stars { color: #f59e0b; letter-spacing: 1px; }
.cond-note { color: var(--sf-muted); margin: 0 0 1rem; font-size: .9rem; }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.cond-item { display: flex; gap: .7rem; align-items: flex-start; }
.cond-item strong { display: block; color: var(--sf-ink); font-size: .9rem; }
.cond-item span { color: var(--sf-muted); font-size: .82rem; }
.cond-tag { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.cond-tag.cond-a { background: #1a7f45; }
.cond-tag.cond-b { background: #b8860b; }
.cond-tag.cond-c { background: #9a3412; }

@media (max-width: 991.98px) {
    .pdp-grid { grid-template-columns: 1fr; }
    .pdp-buybox { position: static; }
}
@media (max-width: 575.98px) {
    .pdp-gallery { grid-template-columns: 1fr; }
    .pdp-thumbs { flex-direction: row; flex-wrap: wrap; order: 2; }
}

/* Lightbox */
.pl-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(20,14,17,.92); display: none; }
.pl-overlay.open { display: block; }
.pl-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.pl-img { max-width: 92vw; max-height: 88vh; transform-origin: center center; transition: transform .08s linear; user-select: none; -webkit-user-drag: none; cursor: grab; will-change: transform; }
.pl-img.grabbing { cursor: grabbing; }
.pl-close { position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 3; }
.pl-controls { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border-radius: 999px; padding: .35rem; }
.pl-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pl-btn:hover { background: rgba(255,255,255,.28); }
.pl-btn:disabled { opacity: .35; cursor: default; }
.pl-count { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; padding: 0 .6rem; }
.pl-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; }
.pl-prev { inset-inline-start: 1rem; }
.pl-next { inset-inline-end: 1rem; }

/* Accepted-offer "deal" panel on the product page */
.theme-storefront .pdp-deal { border: 1.5px solid var(--sf-brand-border); background: var(--sf-brand-soft); border-radius: var(--sf-radius-sm); padding: .9rem 1rem; }
.theme-storefront .pdp-deal-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--sf-brand); }
.theme-storefront .pdp-deal-badge svg { width: 14px; height: 14px; }
.theme-storefront .pdp-deal-terms { display: flex; align-items: baseline; gap: .4rem; margin-top: .4rem; }
.theme-storefront .pdp-deal-price { font-family: var(--sf-display); font-weight: 800; font-size: 1.6rem; color: var(--sf-ink); line-height: 1; }
.theme-storefront .pdp-deal-each { color: var(--sf-muted); font-size: .85rem; }
.theme-storefront .pdp-deal-total { color: var(--sf-text); font-size: .9rem; margin-top: .2rem; }
.theme-storefront .pdp-deal-expiry { color: var(--sf-muted); font-size: .8rem; margin-top: .25rem; }
.theme-storefront .pdp-deal-note { color: var(--sf-muted); font-size: .78rem; margin-top: .45rem; }

/* Exact item: per-piece unit suffix on the price + a clean total line (Fleek style) */
.theme-storefront .pdp-price-unit { font-family: var(--sf-body, inherit); font-weight: 600; font-size: .95rem; color: var(--sf-muted); margin-inline-start: .1rem; }
.theme-storefront .pdp-lot-total { font-family: var(--sf-display); font-weight: 800; font-size: 1.05rem; color: var(--sf-ink); margin-top: -.4rem; margin-bottom: .2rem; }
.theme-storefront .pdp-lot-total .text-muted { font-family: var(--sf-body, inherit); font-weight: 600; font-size: .85rem; }

/* ---- Category glyphs ----
   The tile circle keeps its gradient; the letter inside it is replaced by a line-drawn garment.
   Sized to about half the circle so the stroke stays readable and the shape keeps air around it —
   filling the circle makes the drawing read as a blob at this size. currentColor inherits the
   tile's white ink, so one markup works on every gradient. */
.theme-storefront .cat-thumb .cat-glyph { width: 38px; height: 38px; display: block; }
.theme-storefront .cat-tile:hover .cat-glyph { transform: scale(1.08); }
.theme-storefront .cat-glyph { transition: transform .22s ease; }
@media (prefers-reduced-motion: reduce) {
    .theme-storefront .cat-glyph { transition: none; }
    .theme-storefront .cat-tile:hover .cat-glyph { transform: none; }
}
