/*
 * Vendor Storefront — Premium Aesthetic
 *
 * Loaded directly from Storefront.cshtml — works on ALL themes.
 *
 * Design notes:
 *  - Refined neutral palette; accent used sparingly for emphasis
 *  - Subtle elevation system (shadows are diffused, not "card-stack" obvious)
 *  - Hebrew/Arabic-first typography stack (Heebo + Inter)
 *  - Smooth cubic-bezier easing for premium-feeling motion
 *  - Generous whitespace; tighter type hierarchy
 *  - Three banner types: Cover (hero) / Promo (strip) / In-grid (full-row)
 */

.vendor-storefront-page {
    /* ── Color system — RE-BASED ON THE DAMAN THEME (theme.config Vars) ──
       Consume the live Bootstrap/theme CSS vars where available, with the theme's own
       literals as fallback, so the storefront reads as part of Daman (cards-on-grey,
       indigo brand, theme greys) rather than a separate warm-cream island.
       Per-vendor --vendor-accent / --vendor-primary still override the brand on top. */
    --vs-bg:              #f6f5fb;                       /* theme site-bg — cards float on grey */
    --vs-surface:         var(--bs-body-bg, #ffffff);
    --vs-surface-2:       #f1eefb;                       /* theme megamenu tint (brand-soft chips) */
    --vs-surface-elev:    var(--bs-body-bg, #ffffff);    /* solid (no glass) — avoids sticky blur glitch */
    --vs-text:            var(--bs-body-color, #1b1a23);
    --vs-text-soft:       #45424f;
    --vs-muted:           #6e6b7b;
    --vs-muted-strong:    #4a4756;
    --vs-border:          var(--bs-border-color, #e6e3f0);
    --vs-border-soft:     rgba(21, 19, 31, 0.06);        /* = theme card-border-color */
    --vs-border-strong:   #d7d3e6;

    /* Brand — theme primary (#4f46e5) / dark (#15131f); vendor pickers override. */
    --vs-accent:          var(--vendor-accent, var(--bs-primary, #4f46e5));
    --vs-accent-deep:     color-mix(in srgb, var(--vs-accent) 82%, #000);
    --vs-accent-soft:     color-mix(in srgb, var(--vs-accent) 9%, transparent);
    --vs-accent-glow:     color-mix(in srgb, var(--vs-accent) 24%, transparent);
    --vs-accent-2:        color-mix(in srgb, var(--vs-accent) 62%, #7c6cf0); /* theme info → indigo/violet */
    --vs-brand:           var(--vendor-primary, var(--bs-dark, #15131f));

    --vs-success:         var(--bs-success, #0f9d6c);
    --vs-warning:         var(--bs-warning, #f0a020);
    --vs-danger:          var(--bs-danger, #e23744);

    /* ── Elevation — flatter / crisper for a commercial feel ── */
    --vs-shadow-xs:       0 1px 1px rgba(21, 19, 31, 0.04);
    --vs-shadow-sm:       0 1px 2px rgba(21, 19, 31, 0.06);
    --vs-shadow-md:       0 4px 12px -4px rgba(21, 19, 31, 0.12);
    --vs-shadow-lg:       0 10px 28px -10px rgba(21, 19, 31, 0.16);
    --vs-shadow-xl:       0 20px 44px -16px rgba(21, 19, 31, 0.22);
    --vs-ring:            0 0 0 3px var(--vs-accent-glow);

    /* ── Geometry — aligned to the theme border-radius scale (0.375–1.5rem) ── */
    --vs-r-xs:            6px;
    --vs-r-sm:            8px;
    --vs-r-md:            12px;
    --vs-r-lg:            16px;
    --vs-r-xl:            24px;

    /* ── Motion ── */
    --vs-ease:            cubic-bezier(0.16, 1, 0.3, 1);
    --vs-ease-out:        cubic-bezier(0.33, 1, 0.68, 1);
    --vs-dur:             0.28s;
    --vs-dur-fast:        0.16s;

    /* ── Page chrome ── */
    background: var(--vs-bg);
    color: var(--vs-text);
    padding-inline: 1.25rem;
    padding-block-end: 3rem;
    box-sizing: border-box;
}
@media (min-width: 1200px) {
    .vendor-storefront-page { padding-inline: 2.5rem; }
}
@media (max-width: 767.98px) {
    .vendor-storefront-page { padding-inline: 0.75rem; padding-block-end: 2.5rem; }
}

/* Container bypass so the storefront uses full page width */
#content.container:has(.vendor-storefront-page) {
    max-width: 100%;
    padding-inline: 0;
    background: var(--vs-bg);
}
@media (min-width: 1600px) {
    .vendor-storefront-page {
        max-width: 1560px;
        margin-inline: auto;
    }
}

/* Link reset */
.vendor-storefront-page a:not(.btn):not(.badge):not(.vendor-tab-link):not(.vendor-cover-dot):not(.vendor-cat-link) {
    text-decoration: none;
    color: inherit;
    transition: color var(--vs-dur-fast) var(--vs-ease);
}
.vendor-storefront-page a:not(.btn):not(.badge):not(.vendor-tab-link):not(.vendor-cover-dot):not(.vendor-cat-link):hover {
    color: var(--vs-accent);
}

/* Selection */
.vendor-storefront-page ::selection { background: var(--vs-accent-glow); color: var(--vs-text); }


/* ═══════════════════════════════════════════════════════════════════════
   COVER — cinematic hero with refined depth
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-cover {
    position: relative;
    margin-inline: -1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #15131f 0%, #241f3a 50%, #15131f 100%);
    isolation: isolate;
}
@media (min-width: 1200px) {
    .vendor-storefront-page .vendor-cover { margin-inline: -2.5rem; }
}
@media (max-width: 767.98px) {
    .vendor-storefront-page .vendor-cover { margin-inline: -0.75rem; }
}
.vendor-cover-slider { position: relative; }
.vendor-cover-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vendor-cover-track::-webkit-scrollbar { display: none; }
.vendor-cover-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    background: #0f0f12;
}
.vendor-cover-slide img {
    width: 100%;
    height: 112px;                 /* slim on mobile → catalog surfaces sooner */
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 8s var(--vs-ease-out);
}
.vendor-cover-slide:hover img { transform: scale(1.06); }
@media (min-width: 768px) { .vendor-cover-slide img { height: 220px; } }
@media (min-width: 1200px) { .vendor-cover-slide img { height: 260px; } }

/* Vignette + depth gradient — adds cinematic feel and ensures contrast for floating UI */
.vendor-cover-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.25) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.55) 100%);
}

/* Empty placeholder — branded gradient sky */
.vendor-cover-placeholder {
    height: 160px;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--vs-accent) 42%, transparent), transparent 45%),
        radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--vs-accent-2) 30%, transparent), transparent 50%),
        linear-gradient(135deg, #15131f 0%, #241f3a 50%, #15131f 100%);
}
@media (min-width: 768px) { .vendor-cover-placeholder { height: 220px; } }
@media (min-width: 1200px) { .vendor-cover-placeholder { height: 260px; } }

/* Cover nav — refined, subtle, appears only on hover (on desktop) */
.vendor-cover-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ffffff;
    z-index: 4;
    transition: all var(--vs-dur) var(--vs-ease);
    opacity: 0;
}
.vendor-cover-slider:hover .vendor-cover-nav { opacity: 1; }
.vendor-cover-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
}
.vendor-cover-nav-prev { left: 1.5rem; }
.vendor-cover-nav-next { right: 1.5rem; }
[dir="rtl"] .vendor-cover-nav-prev { left: auto; right: 1.5rem; }
[dir="rtl"] .vendor-cover-nav-next { right: auto; left: 1.5rem; }
@media (max-width: 767.98px) {
    .vendor-cover-nav { width: 36px; height: 36px; opacity: 1; background: rgba(255,255,255,0.18); }
    .vendor-cover-nav-prev { left: 0.6rem; }
    .vendor-cover-nav-next { right: 0.6rem; }
    [dir="rtl"] .vendor-cover-nav-prev { right: 0.6rem; left: auto; }
    [dir="rtl"] .vendor-cover-nav-next { left: 0.6rem; right: auto; }
}

/* Cover dots — slimmer, elegant pill morph */
.vendor-cover-dots {
    position: absolute;
    bottom: 18px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 4;
}
.vendor-cover-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--vs-dur) var(--vs-ease);
}
.vendor-cover-dot:hover { background: rgba(255, 255, 255, 0.7); }
.vendor-cover-dot.active {
    background: #ffffff;
    width: 28px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}


/* ═══════════════════════════════════════════════════════════════════════
   SHOP HEADER — compact, trust-forward band (dense / commercial)
   A tight surface band: square-rounded logo · name + Verified · trust row,
   with the actions cluster pinned to the inline-end. No big floating card.
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.7rem 1.25rem;
    padding: 0.9rem 1.1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 3;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border-soft);
    border-radius: var(--vs-r-md);
    box-shadow: var(--vs-shadow-sm);
}
/* Subtle overlap onto the cover ONLY when the header sits directly under it. */
.vendor-storefront-page .vendor-shop-header--overlap { margin-top: -2rem; }
@media (min-width: 1200px) {
    .vendor-storefront-page .vendor-shop-header { padding: 1rem 1.35rem; }
    .vendor-storefront-page .vendor-shop-header--overlap { margin-top: -2.5rem; }
}

/* Identity block: logo + name/trust, grows to fill; actions stay compact. */
.vendor-storefront-page .vendor-shop-id {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}
.vendor-storefront-page .vendor-logo-wrap { flex-shrink: 0; }
.vendor-storefront-page .vendor-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--vs-r-md);       /* square-rounded (Amazon-style), not a circle */
    overflow: hidden;
    border: 1px solid var(--vs-border);
    background: var(--vs-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--vs-shadow-xs);
    transition: transform var(--vs-dur) var(--vs-ease);
}
.vendor-storefront-page .vendor-logo:hover { transform: scale(1.03); }
@media (min-width: 1200px) { .vendor-storefront-page .vendor-logo { width: 80px; height: 80px; } }
@media (max-width: 767.98px) { .vendor-storefront-page .vendor-logo { width: 56px; height: 56px; } }
.vendor-storefront-page .vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.vendor-storefront-page .vendor-logo--placeholder {
    background: var(--vs-surface-2);
    color: var(--vs-muted-strong);
    font-size: 1.5rem;
}

.vendor-storefront-page .vendor-header-body { min-width: 0; }
.vendor-storefront-page .vendor-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
}
.vendor-storefront-page .vendor-shop-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--vs-text);
    letter-spacing: -0.01em;
}
@media (min-width: 768px) { .vendor-storefront-page .vendor-shop-name { font-size: 1.45rem; } }
@media (min-width: 1200px) { .vendor-storefront-page .vendor-shop-name { font-size: 1.7rem; } }

/* Verified trust chip */
.vendor-storefront-page .vendor-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.32em 0.62em;
    border-radius: 999px;
    color: var(--vs-accent-deep);
    background: var(--vs-accent-soft);
    white-space: nowrap;
}
.vendor-storefront-page .vendor-verified i { font-size: 0.82rem; }

.vendor-storefront-page .vendor-shop-tagline {
    display: block;
    margin-top: 2px;
    font-size: 0.84rem;
    color: var(--vs-muted);
    font-weight: 500;
}

/* Language pills */
.vendor-storefront-page .vendor-languages { display: inline-flex; gap: 0.25rem; }
.vendor-storefront-page .vendor-languages .badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.3em 0.6em;
    border-radius: 999px;
    letter-spacing: 0.04em;
    border: 1px solid var(--vs-border) !important;
    background: var(--vs-surface) !important;
    color: var(--vs-muted-strong) !important;
}
.vendor-storefront-page .vendor-languages .badge.bg-primary {
    background: var(--vs-brand) !important;
    color: #fff !important;
    border-color: var(--vs-brand) !important;
}

/* Trust row — the priority element, strongest signals first */
.vendor-storefront-page .vendor-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin-top: 0.5rem;
    font-size: 0.81rem;
    color: var(--vs-text-soft);
    font-feature-settings: "tnum";
}
.vendor-storefront-page .vendor-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.55rem;
    background: var(--vs-surface-2);
    border-radius: var(--vs-r-xs);
    font-weight: 500;
}
.vendor-storefront-page .vendor-trust-item strong { color: var(--vs-text); font-weight: 700; }
.vendor-storefront-page .vendor-trust-item i { color: var(--vs-muted); font-size: 0.76rem; }
.vendor-storefront-page .vendor-trust-sub { color: var(--vs-muted); }
.vendor-storefront-page .vendor-trust-rating {
    background: color-mix(in srgb, var(--vs-warning) 15%, transparent);
}
.vendor-storefront-page .vendor-trust-rating i { color: var(--vs-warning); }

/* Action buttons cluster */
.vendor-storefront-page .vendor-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}
.vendor-storefront-page .vendor-header-actions .btn {
    border-radius: var(--vs-r-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all var(--vs-dur-fast) var(--vs-ease);
    border-width: 1px;
}
.vendor-storefront-page .vendor-header-actions .btn-outline-secondary {
    border-color: var(--vs-border);
    color: var(--vs-text-soft);
    background: var(--vs-surface);
}
.vendor-storefront-page .vendor-header-actions .btn-outline-secondary:hover {
    background: var(--vs-brand);
    border-color: var(--vs-brand);
    color: #ffffff;
}
.vendor-storefront-page .vendor-follow-btn {
    background: var(--vs-brand) !important;
    border-color: var(--vs-brand) !important;
    color: #ffffff !important;
}
.vendor-storefront-page .vendor-follow-btn:hover {
    background: var(--vs-accent) !important;
    border-color: var(--vs-accent) !important;
}
.vendor-storefront-page .vendor-follow-btn.btn-secondary {
    background: var(--vs-accent) !important;
    border-color: var(--vs-accent) !important;
    color: #ffffff !important;
}
@media (max-width: 767.98px) {
    /* NATIVE shop header — a FLUSH full-bleed band (not a floating card), laid out in
       TWO tiers so it is bulletproof no matter how long the shop name is or how many
       trust chips / language tags appear:
         Tier 1: logo · name/trust  (identity takes the FULL width — the title never
                 gets squeezed by the action buttons)
         Tier 2: cart · contact · follow  (a full-width action row that wraps below,
                 so a button can never overflow off the screen edge)                    */
    .vendor-storefront-page .vendor-shop-header {
        margin: 0 -0.75rem;
        padding: 0.75rem 0.85rem;
        gap: 0.6rem;
        flex-wrap: wrap;
        align-items: center;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid var(--vs-border);
        box-shadow: none;
        background: var(--vs-surface);
    }
    .vendor-storefront-page .vendor-shop-header--overlap { margin-top: 0; }

    /* Tier 1 — identity spans the whole row. */
    .vendor-storefront-page .vendor-shop-id {
        flex: 1 1 100%;
        min-width: 0;
        gap: 0.65rem;
        align-items: center;
    }
    .vendor-storefront-page .vendor-logo { width: 52px; height: 52px; }
    .vendor-storefront-page .vendor-shop-name {
        font-size: 1.05rem;
        /* Wrap (up to 2 lines) instead of hard-truncating to a stub like "חנות אב…". */
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    .vendor-storefront-page .vendor-trust { font-size: 0.74rem; margin-top: 0.3rem; gap: 0.3rem; }
    .vendor-storefront-page .vendor-trust:empty { display: none; }
    .vendor-storefront-page .vendor-shop-tagline { display: none; }

    /* Tier 2 — full-width action row. Contact + Follow split the width evenly for big
       tap targets; the cart stays a compact icon and never steals their space. */
    .vendor-storefront-page .vendor-header-actions {
        flex: 1 1 100%;
        width: 100%;
        gap: 0.5rem;
        flex-wrap: nowrap;
        align-items: stretch;
    }
    .vendor-storefront-page .vendor-header-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Cart → compact bare icon at the inline-start; hide the label/empty/subtotal text
       and the "checkout this vendor" button (that floating orange chip in the header).
       Vendor checkout still lives on the cart page. */
    .vendor-storefront-page .vendor-scoped-cart { flex: 0 0 auto; position: relative; border: 0; background: transparent; padding: 0; border-radius: 0; }
    .vendor-storefront-page .vendor-scoped-cart-label,
    .vendor-storefront-page .vendor-scoped-cart-empty,
    .vendor-storefront-page .vendor-scoped-cart-subtotal,
    .vendor-storefront-page .vendor-scoped-cart-checkout { display: none; }
    .vendor-storefront-page .vendor-scoped-cart-link {
        min-height: 40px;
        min-width: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        border-radius: 0;
        gap: 0;
        justify-content: center;
        color: var(--vs-text);
    }
    .vendor-storefront-page .vendor-scoped-cart-link i { font-size: 1.4rem; line-height: 1; }
    .vendor-storefront-page .vendor-scoped-cart-badge {
        position: absolute;
        top: -4px;
        inset-inline-end: -6px;
        font-size: 0.62rem;
        line-height: 1;
        padding: 0.18rem 0.32rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR — premium accent ribbon, not browser-notification
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-announcement {
    display: flex;
    align-items: center;
    background: var(--vs-accent-soft);
    border: 1px solid var(--vs-accent-soft);
    border-left: 3px solid var(--vs-accent);
    border-radius: var(--vs-r-md);
    padding: 0.85rem 1.25rem;
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--vs-text-soft);
    line-height: 1.5;
    gap: 0.7rem;
    position: relative;
    /* No overflow:hidden — was clipping the RTL bullhorn icon at the edge */
}
[dir="rtl"] .vendor-storefront-page .vendor-announcement {
    border-left: 1px solid var(--vs-accent-soft);
    border-right: 3px solid var(--vs-accent);
}
.vendor-storefront-page .vendor-announcement i {
    color: var(--vs-accent);
    font-size: 0.95rem;
    flex-shrink: 0;
    animation: vs-pulse-soft 3s var(--vs-ease) infinite;
}
@keyframes vs-pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(0.94); }
}


/* ═══════════════════════════════════════════════════════════════════════
   SEARCH WITHIN SHOP — refined pill with focus ring
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-search-shop {
    margin: 1.25rem 0 0;
    max-width: 560px;
}
.vendor-storefront-page .vendor-search-shop .input-group {
    border: 1px solid var(--vs-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--vs-surface);
    transition: border-color var(--vs-dur-fast) var(--vs-ease), box-shadow var(--vs-dur-fast) var(--vs-ease);
    box-shadow: var(--vs-shadow-xs);
}
.vendor-storefront-page .vendor-search-shop .input-group:hover { border-color: var(--vs-border-strong); }
.vendor-storefront-page .vendor-search-shop .input-group:focus-within {
    border-color: var(--vs-accent);
    box-shadow: var(--vs-ring), var(--vs-shadow-sm);
}
.vendor-storefront-page .vendor-search-shop .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-inline-start: 1.4rem;
    padding-inline-end: 0.5rem;
    height: 46px;
    font-size: 0.94rem;
    background: transparent;
    color: var(--vs-text);
}
.vendor-storefront-page .vendor-search-shop .form-control::placeholder { color: var(--vs-muted); }
.vendor-storefront-page .vendor-search-shop .btn {
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
    color: var(--vs-muted);
    padding: 0 1.2rem;
    font-size: 1rem;
    transition: color var(--vs-dur-fast) var(--vs-ease);
}
.vendor-storefront-page .vendor-search-shop .btn:hover { color: var(--vs-accent); }


/* ═══════════════════════════════════════════════════════════════════════
   TAB NAVIGATION — sticky, premium underline
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-tabs-nav {
    border-bottom: 1px solid var(--vs-border);
    margin: 1.75rem 0 1.5rem;
    position: sticky;
    /* Sit directly under the site header (which pins as position:fixed on scroll).
       --daman-header-h is published live by daman-sticky-header.js; falls back to 0. */
    top: var(--daman-header-h, 0px);
    /* Solid (not translucent + backdrop-filter): a blurred backdrop on a sticky bar
       re-samples every frame as cards scroll/hover underneath it, which flickers and
       "jumps" during scroll. A solid surface composites once and stays rock-steady. */
    background: var(--vs-surface);
    z-index: 6;
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
}
@media (min-width: 1200px) {
    .vendor-storefront-page .vendor-tabs-nav { margin-inline: -2.5rem; padding-inline: 2.5rem; }
}
@media (max-width: 767.98px) {
    .vendor-storefront-page .vendor-tabs-nav { margin-inline: -0.75rem; padding-inline: 0.75rem; }
}
.vendor-storefront-page .vendor-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none;
    padding: 0;
    margin: 0;
}
.vendor-storefront-page .vendor-nav-tabs::-webkit-scrollbar { display: none; }
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-item { flex-shrink: 0; list-style: none; }
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: var(--vs-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    white-space: nowrap;
    transition: color var(--vs-dur-fast) var(--vs-ease), border-color var(--vs-dur-fast) var(--vs-ease);
    position: relative;
}
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link:hover {
    color: var(--vs-text);
}
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link.active {
    color: var(--vs-text);
    border-bottom-color: transparent;
    font-weight: 600;
}
/* premium gradient underline on the active tab */
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link.active::after {
    content: '';
    position: absolute;
    inset-inline: 0.4rem;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vs-accent), var(--vs-accent-2));
}
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link .tab-count {
    font-size: 0.72rem;
    color: var(--vs-muted);
    font-weight: 600;
    background: var(--vs-surface-2);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
    font-feature-settings: "tnum";
    transition: all var(--vs-dur-fast) var(--vs-ease);
}
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link:hover .tab-count {
    background: var(--vs-border);
    color: var(--vs-text-soft);
}
.vendor-storefront-page .vendor-nav-tabs .vendor-tab-link.active .tab-count {
    background: var(--vs-accent);
    color: #ffffff;
}
.vendor-storefront-page .vendor-tab-content { min-height: 240px; padding-top: 0.5rem; }
.vendor-storefront-page .vendor-tab-pane { display: none; animation: vs-fade-in 0.4s var(--vs-ease); }
.vendor-storefront-page .vendor-tab-pane.active { display: block; }
@keyframes vs-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════════════
   ITEMS LAYOUT — sidebar + content
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-items-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}
@media (max-width: 991.98px) {
    .vendor-storefront-page .vendor-items-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
.vendor-storefront-page.vendor-layout-no-sidebar .vendor-items-layout,
.vendor-storefront-page.vendor-layout-full-width .vendor-items-layout {
    grid-template-columns: minmax(0, 1fr);
}
.vendor-storefront-page.vendor-layout-no-sidebar .vendor-category-sidebar,
.vendor-storefront-page.vendor-layout-full-width .vendor-category-sidebar { display: none; }

/* Category sidebar — premium typography */
.vendor-storefront-page .vendor-category-sidebar {
    font-size: 0.9rem;
    position: sticky;
    /* Clear the pinned site header + the sticky tab nav, both measured live. */
    top: calc(var(--daman-header-h, 0px) + var(--vendor-tabs-h, 56px) + 0.85rem);
    max-height: calc(100vh - var(--daman-header-h, 0px) - var(--vendor-tabs-h, 56px) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border-soft);
    border-radius: var(--vs-r-md);
    padding: 1.1rem 1rem;
    box-shadow: var(--vs-shadow-xs);
}
@media (max-width: 991.98px) {
    .vendor-storefront-page .vendor-category-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.85rem;
        border-radius: var(--vs-r-md);
    }
}
.vendor-storefront-page .vendor-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.85rem;
    color: var(--vs-text-soft);
    border-radius: var(--vs-r-xs);
    transition: all var(--vs-dur-fast) var(--vs-ease);
    font-weight: 500;
    position: relative;
}
.vendor-storefront-page .vendor-cat-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--vs-accent);
    border-radius: 2px;
    transition: transform var(--vs-dur-fast) var(--vs-ease);
}
[dir="rtl"] .vendor-storefront-page .vendor-cat-link::before { left: auto; right: 0; }
.vendor-storefront-page .vendor-cat-link:hover {
    color: var(--vs-text);
    background: var(--vs-surface-2);
}
.vendor-storefront-page .vendor-cat-link.active {
    font-weight: 700;
    color: #ffffff;
    background: var(--vs-accent);
}
.vendor-storefront-page .vendor-cat-link.active .vendor-cat-count { color: rgba(255, 255, 255, 0.8); }
/* Edge bar turns white so it still reads as an indicator on the accent fill. */
.vendor-storefront-page .vendor-cat-link.active::before { transform: translateY(-50%) scaleY(1); background: #ffffff; }
@media (max-width: 991.98px) {
    .vendor-storefront-page .vendor-cat-link {
        display: inline-flex;
        gap: 0.4rem;
        padding: 0.45rem 0.95rem;
        border: 1px solid var(--vs-border);
        border-radius: 999px;
        font-size: 0.85rem;
        background: var(--vs-surface);
    }
    .vendor-storefront-page .vendor-cat-link::before { display: none; }
    /* Selected pill = vendor ACCENT fill (matches the pinned active-filter chip), not a
       generic black. White text + dimmed count for contrast. */
    .vendor-storefront-page .vendor-cat-link.active {
        background: var(--vs-accent);
        border-color: var(--vs-accent);
        color: #ffffff;
    }
    .vendor-storefront-page .vendor-cat-link.active .vendor-cat-count { color: rgba(255, 255, 255, 0.8); }
}
.vendor-storefront-page .vendor-cat-count {
    font-size: 0.76rem;
    color: var(--vs-muted);
    margin-inline-start: 0.5rem;
    font-weight: 500;
    font-feature-settings: "tnum";
}
.vendor-storefront-page .vendor-cat-group { margin-top: 1.1rem; padding-top: 0.85rem; border-top: 1px solid var(--vs-border-soft); }
.vendor-storefront-page .vendor-cat-group:first-child { margin-top: 0; padding-top: 0; border-top: none; }
@media (max-width: 991.98px) {
    .vendor-storefront-page .vendor-cat-group { margin-top: 0; padding-top: 0; border-top: none; display: contents; }
}
.vendor-storefront-page .vendor-cat-group-title {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--vs-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0.5rem 0.4rem;
}
@media (max-width: 991.98px) { .vendor-storefront-page .vendor-cat-group-title { display: none; } }

/* Active-category filter token — mobile-only; hidden by default everywhere.
   Shown (as a sticky pinned chip) only on the mobile horizontal bar; see the
   .is-active rule inside the max-width:767.98px block. */
.vendor-storefront-page .vendor-cat-active-filter { display: none; }

/* isolation:isolate makes the product column its own stacking context, so a hovered
   card's `transform` (which creates a stacking context) can NEVER paint above the
   sticky category bar. Without this the lifted card escaped over the pinned bar. */
.vendor-storefront-page .vendor-items-main { min-width: 0; isolation: isolate; }


/* ═══════════════════════════════════════════════════════════════════════
   SECTION ORDERING — the editor's drag-to-reorder, made real
   The page + product column become flex-columns so each section's inline
   `order:N` (emitted server-side from the vendor's saved layout) re-sequences
   them. The tab content always trails the page chrome.
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page { display: flex; flex-direction: column; }
.vendor-storefront-page > .vendor-tab-content { order: 50; }   /* always after chrome (cover/header/…/tabs) */
.vendor-storefront-page .vendor-items-main { display: flex; flex-direction: column; }

/* When the category sidebar is hidden (or the vendor has no categories),
   collapse the two-column grid to a single full-width column. */
.vendor-storefront-page .vendor-items-layout--no-cats { grid-template-columns: minmax(0, 1fr); }


/* ═══════════════════════════════════════════════════════════════════════
   PROMO SLIDER — horizontal premium cards
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-promo-slider {
    position: relative;
    margin-bottom: 2rem;
}
.vendor-promo-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scroll-padding-inline: 8px;
}
.vendor-promo-track::-webkit-scrollbar { display: none; }
.vendor-promo-card {
    flex: 0 0 calc(50% - 7px);
    scroll-snap-align: start;
    border-radius: var(--vs-r-md);
    overflow: hidden;
    background: var(--vs-surface);
    box-shadow: var(--vs-shadow-xs);
    border: 1px solid var(--vs-border-soft);
    position: relative;
    transition: all var(--vs-dur) var(--vs-ease);
}
@media (min-width: 768px) { .vendor-promo-card { flex-basis: calc(33.333% - 10px); } }
@media (min-width: 1200px) { .vendor-promo-card { flex-basis: calc(25% - 11px); } }
.vendor-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vs-shadow-md);
    border-color: var(--vs-border);
}
.vendor-promo-card a,
.vendor-promo-card-inner { display: block; color: inherit; }
.vendor-promo-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--vs-ease-out);
}
.vendor-promo-card:hover img { transform: scale(1.05); }
@media (min-width: 768px) { .vendor-promo-card img { height: 152px; } }
.vendor-promo-card-title {
    padding: 0.7rem 0.85rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
}
/* Promo nav buttons — refined */
.vendor-promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--vs-text-soft);
    box-shadow: var(--vs-shadow-md);
    z-index: 3;
    transition: all var(--vs-dur-fast) var(--vs-ease);
}
.vendor-promo-nav:hover {
    color: var(--vs-accent);
    border-color: var(--vs-accent);
    transform: translateY(-50%) scale(1.08);
}
.vendor-promo-nav-prev { left: -16px; }
.vendor-promo-nav-next { right: -16px; }
[dir="rtl"] .vendor-promo-nav-prev { left: auto; right: -16px; }
[dir="rtl"] .vendor-promo-nav-next { right: auto; left: -16px; }
@media (max-width: 767.98px) {
    .vendor-promo-nav { display: none !important; }
    .vendor-promo-card { flex-basis: 75%; }
}


/* ═══════════════════════════════════════════════════════════════════════
   FEATURED PRODUCTS — premium spotlight section
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-featured-products {
    background: var(--vs-surface);
    border: 1px solid var(--vs-border-soft);
    border-radius: var(--vs-r-md);
    padding: 1rem 1.1rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--vs-shadow-xs);
    position: relative;
}
.vendor-storefront-page .vendor-featured-products::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vs-accent), transparent);
    opacity: 0.5;
}
.vendor-storefront-page .vendor-featured-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}
.vendor-storefront-page .vendor-featured-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--vs-text);
    letter-spacing: -0.012em;
}
.vendor-storefront-page .vendor-featured-header i {
    color: var(--vs-accent);
    font-size: 1rem;
    filter: drop-shadow(0 1px 4px var(--vs-accent-glow));
}

/* Section heading — "All Items" */
.vendor-storefront-page .vendor-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--vs-border-soft);
}
.vendor-storefront-page .vendor-section-heading h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--vs-text);
    letter-spacing: -0.012em;
}
.vendor-storefront-page .vendor-filter-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.vendor-storefront-page .vendor-filter-status:empty { display: none; }
.vendor-storefront-page .vendor-filter-status .btn-sm {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-color: var(--vs-border);
    color: var(--vs-text-soft);
}
.vendor-storefront-page .vendor-filter-status .btn-sm:hover {
    background: var(--vs-brand);
    border-color: var(--vs-brand);
    color: #ffffff;
}

/* ── Product toolbar (Smartstore .artlist-actions = filter/sort + view-mode) ──
   The storefront is always a grid, so the grid/list view-mode switcher is removed.
   The filter/sort group stays but is made compact + theme-styled. */
.vendor-storefront-page .artlist-action-group--viewmode { display: none; }
.vendor-storefront-page .artlist-actions {
    margin: 0 0 0.85rem;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    gap: 0.5rem;
}
.vendor-storefront-page .artlist-actions .btn {
    border-radius: var(--vs-r-sm);
    font-weight: 600;
}

/* Native-mobile compaction of the items toolbar */
@media (max-width: 767.98px) {
    /* The sticky category bar already shows the active filter, so the redundant
       "All items / <category>" heading is dropped to surface products sooner. */
    .vendor-storefront-page .vendor-section-heading { display: none; }
    /* Filter/sort = a compact inline control at the inline-end, not a full-width block. */
    .vendor-storefront-page .artlist-actions { justify-content: flex-end; margin-bottom: 0.6rem; }
    .vendor-storefront-page .artlist-action-group--filtersort { margin-inline-start: auto; }
    .vendor-storefront-page .artlist-actions .btn { width: auto; flex: 0 0 auto; }
}


/* ═══════════════════════════════════════════════════════════════════════
   IN-GRID BANNERS — full-row cards inside product grid
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-ingrid-banner {
    grid-column: 1 / -1;
    padding: 0.5rem 0 1rem;
    position: relative;
}
.vendor-ingrid-banner a,
.vendor-ingrid-banner > img {
    display: block;
    border-radius: var(--vs-r-lg);
    overflow: hidden;
    box-shadow: var(--vs-shadow-sm);
    transition: all var(--vs-dur) var(--vs-ease);
    background: var(--vs-surface);
    position: relative;
}
.vendor-ingrid-banner a:hover,
.vendor-ingrid-banner:hover > img {
    box-shadow: var(--vs-shadow-md);
    transform: translateY(-3px);
}
.vendor-ingrid-banner img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
    border-radius: var(--vs-r-lg);
    transition: transform 0.6s var(--vs-ease-out);
}
.vendor-ingrid-banner:hover img { transform: scale(1.02); }
.vendor-ingrid-banner-title {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1.25rem 1.1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.008em;
    border-bottom-left-radius: var(--vs-r-lg);
    border-bottom-right-radius: var(--vs-r-lg);
}


/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT GRID — a real CSS grid (the Flex theme ships it as flexbox with
   percentage widths). A true grid lets in-grid banners occupy a cell or span
   columns/rows, and keeps every cell a consistent box.
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .artlist {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 !important;
}
@media (min-width: 576px)  { .vendor-storefront-page .artlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .vendor-storefront-page .artlist { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1100px) { .vendor-storefront-page .artlist { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .vendor-storefront-page .artlist { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vendor-storefront-page .artlist > .art {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-bottom: 0;
}
/* FIX "first row shows one product": the artlist's first child is a JS-injected
   a11y "Skip list" link (.skip-content-container, height 0). As a grid item it stole
   cell 1 and pushed product #1 into cell 2. Force any NON-product child (skip-link,
   pager, sentinel) to span the whole row so products always start at column 1. */
.vendor-storefront-page .artlist > :not(.art):not(.vendor-ingrid-banner):not(.vendor-ingrid-block) {
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT GRID — crisp commercial card, subtle hover (flat, not floaty)
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .product-list-container .art {
    border-radius: var(--vs-r-md);
    overflow: hidden;
    transition: transform var(--vs-dur-fast) var(--vs-ease),
                box-shadow var(--vs-dur-fast) var(--vs-ease),
                border-color var(--vs-dur-fast) var(--vs-ease);
    background: var(--vs-surface);
    border: 1px solid var(--vs-border-soft);
}
.vendor-storefront-page .product-list-container .art:hover {
    transform: translateY(-2px);
    box-shadow: var(--vs-shadow-md);
    border-color: var(--vs-border-strong);
}
.vendor-storefront-page .product-list-container .art .art-picture img {
    transition: transform 0.5s var(--vs-ease-out);
}
.vendor-storefront-page .product-list-container .art:hover .art-picture img { transform: scale(1.03); }


/* ═══════════════════════════════════════════════════════════════════════
   ABOUT SECTION — refined
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vendor-about-section { max-width: 840px; padding: 1rem 0 2rem; }
.vendor-storefront-page .vendor-about-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--vs-text);
}
.vendor-storefront-page .vendor-about-section .lead {
    font-size: 1.08rem;
    color: var(--vs-text-soft);
    line-height: 1.6;
}
.vendor-storefront-page .vendor-about-section .vendor-about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 2.2rem;
}
.vendor-storefront-page .vendor-about-section .vendor-about-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--vs-text-soft);
}
.vendor-storefront-page .vendor-about-section .vendor-about-item i {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--vs-surface-2);
    color: var(--vs-accent);
    font-size: 0.78rem;
}
.vendor-storefront-page .vendor-about-section .vendor-about-stats {
    background: var(--vs-surface);
    border: 1px solid var(--vs-border-soft);
    border-radius: var(--vs-r-lg);
    padding: 1.85rem 1.5rem;
    margin-top: 1.85rem;
    box-shadow: var(--vs-shadow-xs);
    position: relative;
    overflow: hidden;
}
.vendor-storefront-page .vendor-about-section .vendor-about-stats::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--vs-accent) 50%, transparent 90%);
    opacity: 0.4;
}
.vendor-storefront-page .vendor-about-section .vendor-about-stats .fs-3 {
    font-size: 1.85rem !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--vs-text);
    font-feature-settings: "tnum";
}
.vendor-storefront-page .vendor-about-section .vendor-about-stats .text-muted {
    color: var(--vs-muted) !important;
    font-weight: 500;
}
.vendor-storefront-page .vendor-review-list .vendor-review-item:last-child { border-bottom: none !important; }
.vendor-storefront-page .vendor-review-stars { font-size: 1.15rem; letter-spacing: 1px; }

/* The shop's answer to a review. Logical properties only — the accent rail and the inset must sit on the
   reading-start edge in he/ar as well as en, and left/right would pin them to the wrong side in RTL. */
.vendor-review-reply {
    border-inline-start: 3px solid var(--vs-accent, #6c5ce7);
    margin-inline-start: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-start-end-radius: 8px;
    border-end-end-radius: 8px;
    background: color-mix(in srgb, currentColor 4%, transparent);
}
.vendor-review-reply .vendor-review-reply-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}
.vendor-review-reply .vendor-review-reply-body {
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* About content typography */
.vendor-storefront-page .vendor-about-content { font-size: 0.98rem; line-height: 1.65; color: var(--vs-text-soft); }
.vendor-storefront-page .vendor-about-content p { margin-bottom: 0.85rem; }


/* ═══════════════════════════════════════════════════════════════════════
   EMPTY STATES — elegant
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .alert.alert-info {
    background: var(--vs-surface);
    border: 1px dashed var(--vs-border);
    border-radius: var(--vs-r-md);
    color: var(--vs-muted-strong);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   MOBILE FINE-TUNING
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .vendor-storefront-page .vendor-shop-name { font-size: 1.25rem; }
    .vendor-storefront-page .vendor-search-shop { max-width: 100%; }
    .vendor-storefront-page .vendor-nav-tabs .vendor-tab-link {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    .vendor-storefront-page .vendor-featured-products { padding: 1.1rem 1.1rem 1.35rem; }

    /* Tighter vertical rhythm on entry so products surface sooner (content-priority)
       without feeling cramped. The cover + floating header card already use a lot of
       height; trim the gaps between the search, tabs and the grid. */
    /* Flush, app-like bands: search + tabs span edge-to-edge (white on the grey page),
       separated by thin borders — no floating cards, no inter-section gaps. */
    .vendor-storefront-page .vendor-search-shop {
        margin: 0 -0.75rem;
        padding: 0.55rem 0.85rem;
        max-width: none;
        background: var(--vs-surface);
        border-bottom: 1px solid var(--vs-border);
    }
    .vendor-storefront-page .vendor-tabs-nav {
        margin: 0 -0.75rem;
        padding-inline: 0.5rem;
        background: var(--vs-surface);
        border-bottom: 1px solid var(--vs-border);
    }
    .vendor-storefront-page .vendor-items-layout { margin-top: 0; gap: 0; }
    .vendor-storefront-page .vendor-featured-products { margin-bottom: 1.25rem; }
    .vendor-storefront-page .vendor-section-heading {
        margin-bottom: 0.85rem;
        padding-bottom: 0.6rem;
    }
    .vendor-storefront-page .vendor-section-heading h4 { font-size: 1.05rem; }
}


/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & MOTION PREFERENCES
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .vendor-storefront-page *,
    .vendor-storefront-page *::before,
    .vendor-storefront-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
.vendor-storefront-page :focus-visible {
    outline: 2px solid var(--vs-accent);
    outline-offset: 2px;
    border-radius: var(--vs-r-xs);
}

/* ═══════════════════════════════════════════════════════════════════════
   OWNER-AUTHORED BLOCKS (banner / slider / custom) — used by storefront
   editor sections AND in-grid blocks. Always loaded so visitors see them too.
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .vse-banner {
    position: relative;
    display: block;
    /* Fixed-aspect BOX: the image always fills the box (cover), regardless of its own size. */
    aspect-ratio: var(--vse-banner-ar, 16 / 5);
    border-radius: var(--vs-r-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.vendor-storefront-page .vse-banner--side { --vse-banner-ar: 16 / 6; }
.vendor-storefront-page .vse-banner-inner {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
    color: #fff;
}
.vendor-storefront-page .vse-banner-title { font-size: 1.4rem; font-weight: 800; }
.vendor-storefront-page .vse-banner-sub { font-size: .95rem; opacity: .92; }
.vendor-storefront-page .vse-banner-btn {
    align-self: flex-start;
    margin-top: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--vs-text);
    font-weight: 700;
    font-size: .85rem;
}
.vendor-storefront-page .vse-banner-link { position: absolute; inset: 0; }

.vendor-storefront-page .vse-slider { position: relative; aspect-ratio: var(--vse-banner-ar, 16 / 5); border-radius: var(--vs-r-lg); overflow: hidden; margin-bottom: 1.5rem; }
.vendor-storefront-page .vse-slider-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vendor-storefront-page .vse-slider-track::-webkit-scrollbar { display: none; }
.vendor-storefront-page .vse-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; }
.vendor-storefront-page .vse-slide-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vendor-storefront-page .vse-slider-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.85); color: var(--vs-text); cursor: pointer; z-index: 2;
}
.vendor-storefront-page .vse-slider-prev { inset-inline-start: 12px; }
.vendor-storefront-page .vse-slider-next { inset-inline-end: 12px; }
.vendor-storefront-page .vse-slider-dots { position: absolute; inset-block-end: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.vendor-storefront-page .vse-slider-dot { width: 9px; height: 9px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.vendor-storefront-page .vse-slider-dot.active { background: #fff; }
.vendor-storefront-page .vse-custom { margin-bottom: 1.5rem; }

/* Owner-authored section labels (editor overrides). */
.vendor-storefront-page .vendor-shop-tagline {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 0.95rem;
    color: var(--vs-muted);
    font-weight: 500;
}
.vendor-storefront-page .vendor-cat-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--vs-muted-strong);
    padding: 0 0 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--vs-border-soft);
}

/* In-grid block placement: a single cell, or a full-width strip across the grid row. */
.vendor-storefront-page .vendor-ingrid-block.vendor-ingrid-cell { grid-column: span 1; }
.vendor-storefront-page .vendor-ingrid-block.vendor-ingrid-row { grid-column: 1 / -1; }
.vendor-storefront-page .vendor-ingrid-block .vse-banner,
.vendor-storefront-page .vendor-ingrid-block .vse-slider,
.vendor-storefront-page .vendor-ingrid-block .vse-custom { margin-bottom: 0; }
/* A cell block matches a product tile's footprint; a row block is a wide strip. */
.vendor-storefront-page .vendor-ingrid-cell .vse-banner,
.vendor-storefront-page .vendor-ingrid-cell .vse-slider { --vse-banner-ar: 3 / 4; }
.vendor-storefront-page .vendor-ingrid-row .vse-banner,
.vendor-storefront-page .vendor-ingrid-row .vse-slider { --vse-banner-ar: 16 / 5; }

/* Width option for FLOW blocks: full container (default) vs a centred contained box. */
.vendor-storefront-page .vse-block--box {
    max-width: 460px;
    margin-inline: auto;
}
.vendor-storefront-page .vse-block--box .vse-banner,
.vendor-storefront-page .vse-block--box .vse-slider { --vse-banner-ar: 4 / 3; }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE / SMALL-SCREEN POLISH
   Audited live at 375px. Fixes: (1) ~15px horizontal scroll from the core
   Bootstrap .row negative gutter wrapping this page; (2) touch targets under
   44px (category pills, follow/contact/cart, tabs); (3) <16px search input
   that triggers iOS auto-zoom. Applies mobile-design + ui-ux-pro-max rules:
   touch-target-size ≥44px, readable-font-size 16px, horizontal-scroll none,
   touch-density, safe-area-awareness.
   ═══════════════════════════════════════════════════════════════════════ */

/* (1) No horizontal scroll: clip the page's horizontal overflow on <body>. We deliberately
   do NOT clip <html> — clipping only body (+ #content-body below) is enough (verified: page
   is 385px in a 400px viewport, no horizontal scroll) and keeps <html> as the clean root
   scroller. */
body:has(.vendor-storefront-page) { overflow-x: hidden; overflow-x: clip; }
/* ROOT FIX for "not fitted": the core Bootstrap .row (#content-body) carries margin-inline:-15px
   which isn't compensated on this page, so the storefront sat 15px left of center and left a dark
   gutter on the right (page was 480px in a 510px viewport). Zero out that gutter and the col
   padding so the storefront fills the full width; the page's own padding provides the inset, and
   the cover keeps its full-bleed via its negative margin. */
body:has(.vendor-storefront-page) #content-body { margin-inline: 0 !important; overflow-x: clip; }
body:has(.vendor-storefront-page) #content-center { padding-inline: 0 !important; max-width: 100%; }

/* STICKY FIX: the theme's #content-wrapper carries overflow-y:auto, which makes it a
   scroll container — so position:sticky inside it (tab nav, mobile category bar) resolves
   against #content-wrapper instead of the window, and since that box sizes to its content
   (never scrolls), the "sticky" elements just scroll away. Neutralise it on the storefront
   only: overflow-y:visible removes the scrollport; overflow-x:clip keeps horizontal scroll
   suppressed WITHOUT creating a scrollport (clip never breaks sticky). */
body:has(.vendor-storefront-page) #content-wrapper { overflow-x: clip; overflow-y: visible; }

/* STICKY FIX pt.2 — the REAL reason the mobile category bar wouldn't pin on phones.
   In mobile MODE (touch / off-canvas menu active — NOT merely a narrow width) the theme
   gives the top-level #page wrapper `overflow-y: auto`, making it a scroll container. A
   `position: sticky` element resolves against its NEAREST scroll-container ancestor, so the
   category bar stuck to #page instead of the viewport — and since #page sizes to its content
   and never scrolls internally (the window does the scrolling), the bar had no sticky range
   and just scrolled away. Confirmed live via iPhone emulation: with #page neutralised the bar
   pins at exactly the header bottom (top = 57px).
   This is the SAME class of bug already fixed for #content-wrapper above; #page is just a
   higher ancestor that was missed. It only shows on real phones / device emulation (mobile
   mode), never when you merely narrow a desktop window — which is why it looked "fixed" every
   time and shipped broken. !important because the theme sets #page's overflow with !important. */
body:has(.vendor-storefront-page) #page { overflow-x: clip !important; overflow-y: visible !important; }

@media (max-width: 767.98px) {
    /* (3) Search: 16px font stops iOS auto-zoom on focus; 44px tap height. */
    .vendor-storefront-page #vendorSearchInput { font-size: 16px; min-height: 44px; }
    .vendor-storefront-page .vendor-search-shop .btn { min-height: 44px; min-width: 44px; }

    /* (2) Header actions (follow / contact / cart) → 44px touch height. */
    .vendor-storefront-page .vendor-header-actions .btn,
    .vendor-storefront-page .vendor-follow-btn,
    .vendor-storefront-page .vendor-contact-btn { min-height: 44px; }
    .vendor-storefront-page .vendor-scoped-cart-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* (2) Category pills + tabs → 44px touch height. */
    .vendor-storefront-page .vendor-cat-link { min-height: 44px; padding-block: 0.55rem; }
    .vendor-storefront-page .vendor-tab-link { min-height: 44px; display: inline-flex; align-items: center; }

    /* On phones the tab nav scrolls away with the page (the category filter bar
       below takes over the sticky slot) — stacking both would eat a third of the
       viewport given the two-row mobile site header. */
    .vendor-storefront-page .vendor-tabs-nav { position: static; }

    /* Category pills become a STICKY, full-bleed filter bar that pins directly
       under the site header on scroll, so changing category is always one tap
       away while browsing a long product list. Horizontal-scroll, single row. */
    .vendor-storefront-page .vendor-category-sidebar {
        position: sticky;
        top: var(--daman-header-h, 0px);
        /* Above the product column (which is isolated at stacking level 0), so a
           hovered/lifted card can never bleed over the pinned bar. */
        z-index: 20;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        /* Full-bleed: cancel the page's 0.75rem inset, re-add it as padding so the
           bar spans edge-to-edge while the pills stay inset. */
        margin-inline: -0.75rem;
        margin-bottom: 0.5rem;
        padding: 0.55rem 0.75rem;
        border-radius: 0;
        border-bottom: 1px solid var(--vs-border);
        /* Solid background — NOT translucent + backdrop-filter. A blurred sticky bar
           re-samples its backdrop every frame as product cards scroll/hover under it,
           causing the flicker/jump you saw when the cursor was over the products. */
        background: var(--vs-bg);
        box-shadow: 0 8px 16px -14px rgba(0, 0, 0, 0.45);
        scroll-padding-inline: 0.75rem;
    }
    .vendor-storefront-page .vendor-category-sidebar::-webkit-scrollbar { display: none; }
    .vendor-storefront-page .vendor-cat-link { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }

    /* The selected category becomes a removable token PINNED at the inline-start of the
       bar. position:sticky keeps it glued to the start edge while the pills scroll under
       it; the bar-coloured ring masks any pill peeking past its trailing edge. Tap it
       (the whole chip, incl. the ✕) to clear the filter and return to All. */
    .vendor-storefront-page .vendor-cat-active-filter.is-active {
        display: inline-flex;
        flex: 0 0 auto;
        position: sticky;
        inset-inline-start: 0;
        z-index: 3;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
        min-height: 44px;
        padding: 0.4rem 0.85rem;
        margin-inline-end: 0.45rem;
        border: 0;
        border-radius: 999px;
        font-size: 0.83rem;
        font-weight: 800;
        color: #fff;
        background: var(--vs-accent);
        box-shadow: 0 0 0 5px var(--vs-bg);
        cursor: pointer;
        scroll-snap-align: start;
    }
    .vendor-storefront-page .vendor-cat-active-filter.is-active .vendor-cat-active-filter-label {
        max-width: 9.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .vendor-storefront-page .vendor-cat-active-filter.is-active i {
        font-size: 0.92rem;
        opacity: 0.85;
    }
    /* When a filter token is showing, drop the now-redundant "All" pill's active ring. */
    .vendor-storefront-page .vendor-category-sidebar.has-active-filter .vendor-cat-link[data-vendor-cat-id=""].active {
        background: var(--vs-surface);
        color: var(--vs-text);
    }

    /* Scroll-edge fade: only the edge with hidden pills fades, so clipped pills look
       like "there's more →" instead of a hard cut. Classes are toggled by catBarFades()
       in Storefront.cshtml based on the real physical edges (RTL-safe). */
    .vendor-storefront-page .vendor-category-sidebar.fade-left.fade-right {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
                mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
    }
    .vendor-storefront-page .vendor-category-sidebar.fade-left:not(.fade-right) {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px);
                mask-image: linear-gradient(to right, transparent 0, #000 26px);
    }
    .vendor-storefront-page .vendor-category-sidebar.fade-right:not(.fade-left) {
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 26px);
                mask-image: linear-gradient(to left, transparent 0, #000 26px);
    }

    /* Comfortable section rhythm + safe-area bottom inset for the OS gesture bar. */
    .vendor-storefront-page { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
    .vendor-storefront-page .vendor-shop-header { gap: 0.75rem; }
}

/* Extra-small phones (≤400px): keep the 2-col product grid breathing room. */
@media (max-width: 400px) {
    .vendor-storefront-page .artlist { gap: 7px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPACT PRODUCT CARD — dense, PRICE-FIRST commercial tile
   Square image · 2-line name · prominent price (theme indigo) with struck
   compare-price · corner badge · one compact add-to-cart pinned to the base.
   Styling is scoped to .vendor-storefront-page so the site-wide card partial
   (Product.List.Item.cshtml) is untouched.
   ═══════════════════════════════════════════════════════════════════════ */
.vendor-storefront-page .artlist > .art {
    display: flex;
    flex-direction: column;
    padding: 7px 7px 8px;
}
/* Uniform square image box (consistent tile height). */
.vendor-storefront-page .art .art-picture-block { width: 100%; position: relative; }
.vendor-storefront-page .art .art-picture,
.vendor-storefront-page .art .art-picture-block > a,
.vendor-storefront-page .art .art-carousel-slide {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: var(--vs-r-sm);
    overflow: hidden;
}
.vendor-storefront-page .art .art-picture img { width: 100%; height: 100%; object-fit: contain; }

/* Corner badges (discount / new) — small pill over the image, inline-start. */
.vendor-storefront-page .art .art-badges {
    position: absolute;
    inset-block-start: 6px;
    inset-inline-start: 6px;
    z-index: 2;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vendor-storefront-page .art .art-badges .art-badge {
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.3em 0.5em;
    border-radius: var(--vs-r-xs);
    box-shadow: var(--vs-shadow-xs);
}

/* Name: 2 lines max. */
.vendor-storefront-page .art .art-name {
    font-size: 0.82rem;
    line-height: 1.3;
    margin: 7px 0 3px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vendor-storefront-page .art .art-name a { color: var(--vs-text); }

/* Rating (renders only when ShowRatings + the product has reviews). */
.vendor-storefront-page .art .art-rating { margin: 0 0 3px; }

/* PRICE-FIRST hierarchy — final price big/bold (keeps the theme price colour),
   compare-at struck and muted right beside it. */
.vendor-storefront-page .art .art-price-block { margin-top: auto; padding-top: 2px; }
.vendor-storefront-page .art .art-finalprice .art-price-value,
.vendor-storefront-page .art .art-price-value {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-feature-settings: "tnum";
}
.vendor-storefront-page .art .art-compareprice { margin-inline-start: 0.4rem; }
.vendor-storefront-page .art .art-compareprice-value {
    font-size: 0.76rem;
    color: var(--vs-muted);
    text-decoration: line-through;
    font-feature-settings: "tnum";
}
.vendor-storefront-page .art .art-compareprice-label { display: none; }

/* Compact CTA pinned at the base. */
.vendor-storefront-page .art .art-drop { margin-top: 6px; }
.vendor-storefront-page .art .art-drop .btn-lg,
.vendor-storefront-page .art .art-drop .btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    min-height: 40px;
    line-height: 1.1;
    border-radius: var(--vs-r-sm);
    font-weight: 600;
}

/* Declutter dense tiles. */
.vendor-storefront-page .art .art-description,
.vendor-storefront-page .art .art-delivery-info,
.vendor-storefront-page .art .art-pangv,
.vendor-storefront-page .art .art-shipsurcharge { display: none; }

@media (max-width: 767.98px) {
    .vendor-storefront-page .art .art-name { font-size: 0.79rem; }
    .vendor-storefront-page .art .art-finalprice .art-price-value,
    .vendor-storefront-page .art .art-price-value { font-size: 0.95rem; }
    .vendor-storefront-page .art .art-drop .btn-lg,
    .vendor-storefront-page .art .art-drop .btn { min-height: 38px; font-size: 0.8rem; }
    .vendor-storefront-page .art .art-brand { font-size: 0.72rem; }
}
