/* ==========================================================================
   CELLAR VINE — ScaanMe store theme "vine-wine-store"
   Dim-cellar elegance · oak-and-candle · sommelier confidence
   bg var(--tk-bg) cellar-aubergine · panel color-mix(in srgb, var(--tk-bg), #fff 7%) · txt var(--tk-text) · muted color-mix(in srgb, var(--tk-text), var(--tk-bg) 42%)
   accent var(--tk-primary) aged-gold (single accent) · wine-stain var(--tk-secondary) (headings/labels)
   Newsreader/Spectral display serif · Inter body · Amiri + Cairo (Arabic)
   Mobile-first · logical properties (RTL-safe) · prefers-reduced-motion aware
   Signature: "Swirl pour" — hero glass gold-rim conic shimmer (7s, single ambient)
              + bottle cards tilt 2° on hover (the pour gesture).
   ========================================================================== */

:root {
    --vn-bg: var(--tk-bg);          /* cellar aubergine */
    --vn-bg-2: #1B1422;        /* a touch lifted, for layered depth */
    --vn-panel: color-mix(in srgb, var(--tk-bg), #fff 7%);       /* card / surface */
    --vn-panel-2: #271E33;     /* raised surface (second elevation tier) */
    --vn-txt: var(--tk-text);
    --vn-muted: color-mix(in srgb, var(--tk-text), var(--tk-bg) 42%);
    --vn-accent: var(--tk-primary);      /* aged gold — the single accent */
    --vn-accent-soft: #D8B987; /* gold catch-light */
    --vn-accent-deep: #8E6A37;
    --vn-stain: var(--tk-secondary);       /* wine stain — headings / labels */
    --vn-stain-soft: #8A3A4E;
    --vn-line: rgb(from var(--tk-primary) r g b / .18);
    --vn-line-soft: rgb(from var(--tk-primary) r g b / .10);
    --vn-line-strong: rgb(from var(--tk-primary) r g b / .42);
    --vn-r: 10px;
    --vn-r-lg: 16px;
    --vn-font-d: 'Newsreader', 'Spectral', 'Amiri', Georgia, serif;
    --vn-font-b: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
    --vn-ease: cubic-bezier(.22, .61, .36, 1);
    --vn-shadow: 0 18px 44px rgba(0, 0, 0, .46);
}

html { scroll-behavior: smooth; }

body {
    background: var(--vn-bg) !important;
    /* faint candle-glow vignette + oak grain — CSS-only, layered depth */
    background-image:
        radial-gradient(1200px 520px at 78% -8%, rgb(from var(--tk-primary) r g b / .10), transparent 60%),
        radial-gradient(900px 480px at 10% 6%, rgb(from var(--tk-secondary) r g b / .12), transparent 58%) !important;
    background-attachment: fixed !important;
    color: var(--vn-txt);
    font-family: var(--vn-font-b);
    font-weight: 400;
    letter-spacing: .005em;
    -webkit-font-smoothing: antialiased;
    padding-block-end: 76px; /* mobile dock clearance */
}

body[dir="rtl"] { font-family: 'Cairo', var(--vn-font-b); letter-spacing: 0; }
body[dir="rtl"] .vn-display,
body[dir="rtl"] .vn-hero-title,
body[dir="rtl"] .vn-card-name,
body[dir="rtl"] .vn-product-name,
body[dir="rtl"] .vn-brand-name { font-family: 'Amiri', var(--vn-font-d); }

img { max-width: 100%; }
a { color: var(--vn-txt); }
a:hover { color: var(--vn-accent); }

/* ---------- Shell / layout -------------------------------------------- */
.vn-page { min-height: 100vh; display: flex; flex-direction: column; }
.vn-main { flex: 1 0 auto; }
.vn-shell { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 18px; }
.vn-section { margin-block: 44px; }

/* ---------- Type ------------------------------------------------------- */
.vn-display {
    font-family: var(--vn-font-d);
    font-weight: 500;
    font-optical-sizing: auto;
    letter-spacing: .005em;
    line-height: 1.16;
    color: var(--vn-txt);
    margin: 0;
}

.vn-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--vn-font-b);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--vn-muted);
}
.vn-eyebrow .num { color: var(--vn-accent); }
.vn-eyebrow::after { content: ""; flex: 0 1 56px; block-size: 1px; background: var(--vn-line); }

.vn-sechead { display: flex; flex-direction: column; gap: 9px; margin-block-end: 20px; }
.vn-sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.vn-sechead .vn-display { font-size: clamp(1.5rem, 4.8vw, 2.15rem); }
.vn-sechead-link {
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--vn-accent); text-decoration: none;
    border-block-end: 1px solid var(--vn-line-strong); padding-block-end: 3px; white-space: nowrap;
    transition: color .25s var(--vn-ease), border-color .25s var(--vn-ease);
}
.vn-sechead-link:hover { color: var(--vn-accent-soft); border-color: var(--vn-accent); }
.vn-count { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--vn-muted); white-space: nowrap; }

/* ---------- Buttons / forms -------------------------------------------- */
.vn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    block-size: 46px; padding-inline: 22px;
    border: 1px solid transparent; border-radius: 999px;
    font-family: var(--vn-font-b); font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .25s var(--vn-ease), color .25s var(--vn-ease), border-color .25s var(--vn-ease), box-shadow .25s var(--vn-ease);
}
.vn-btn-ink {
    background: linear-gradient(180deg, var(--vn-accent-soft), var(--vn-accent));
    color: color-mix(in srgb, var(--tk-bg), #000 28%) !important; border-color: var(--vn-accent);
    box-shadow: 0 8px 22px rgb(from var(--tk-primary) r g b / .28);
}
.vn-btn-ink:hover { box-shadow: 0 12px 28px rgb(from var(--tk-primary) r g b / .42); color: color-mix(in srgb, var(--tk-bg), #000 28%) !important; }
.vn-btn-ghost { background: transparent; color: var(--vn-txt) !important; border-color: var(--vn-line-strong); }
.vn-btn-ghost:hover { border-color: var(--vn-accent); background: rgb(from var(--tk-primary) r g b / .08); }
.vn-btn-paper { background: var(--vn-txt); color: color-mix(in srgb, var(--tk-bg), #000 28%) !important; border-color: var(--vn-txt); }
.vn-btn-paper:hover { background: var(--vn-accent); border-color: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%) !important; }
.vn-btn-block { inline-size: 100%; }

.vn-input, .vn-select {
    block-size: 46px; inline-size: 100%;
    border: 1px solid var(--vn-line); border-radius: 999px;
    background: var(--vn-bg-2); color: var(--vn-txt);
    font-family: inherit; font-size: 14px; padding-inline: 16px;
    transition: border-color .2s var(--vn-ease), box-shadow .2s var(--vn-ease);
    appearance: auto;
}
.vn-input:focus, .vn-select:focus { outline: none; border-color: var(--vn-accent); box-shadow: 0 0 0 3px rgb(from var(--tk-primary) r g b / .14); }
.vn-input::placeholder { color: var(--vn-muted); }

/* ---------- Topbar ------------------------------------------------------ */
.vn-topbar {
    position: sticky; inset-block-start: 0; z-index: 1030;
    background: rgb(from var(--tk-bg) r g b / .86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-block-end: 1px solid var(--vn-line);
}
.vn-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; block-size: 64px; }
.vn-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-inline-size: 0; }
.vn-brand-logo {
    inline-size: 40px; block-size: 40px; object-fit: cover; flex-shrink: 0;
    border-radius: 50%; border: 1px solid var(--vn-line-strong); background: var(--vn-panel);
}
.vn-brand-name {
    font-family: var(--vn-font-d); font-weight: 600; font-size: 18px; letter-spacing: .02em; color: var(--vn-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vn-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vn-cart-trigger {
    position: relative; inline-size: 44px; block-size: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--vn-line-strong); border-radius: 50%;
    color: var(--vn-txt); background: transparent; cursor: pointer; text-decoration: none;
    transition: background .25s var(--vn-ease), color .25s var(--vn-ease), border-color .25s var(--vn-ease);
}
.vn-cart-trigger:hover { background: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%); border-color: var(--vn-accent); }
.vn-cart-trigger svg { inline-size: 21px; block-size: 21px; }
.vn-cart-badge {
    position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
    min-inline-size: 19px; block-size: 19px; padding-inline: 4px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vn-stain); color: var(--vn-txt);
    border: 1px solid var(--vn-bg);
    border-radius: 10px; font-size: 10px; font-weight: 700; line-height: 1;
}

/* ---------- Notes (session alerts) -------------------------------------- */
.vn-note {
    border: 1px solid var(--vn-line); border-inline-start: 3px solid var(--vn-accent);
    background: var(--vn-panel); border-radius: var(--vn-r);
    padding: 14px 16px; margin-block: 16px 0; font-size: 14.5px; color: var(--vn-txt);
}
.vn-note-success { border-inline-start-color: #4F9D6E; }
.vn-note-danger { border-inline-start-color: var(--vn-stain-soft); }

/* ---------- Hero (Swirl glass) ------------------------------------------ */
.vn-hero {
    position: relative; margin-block-start: 18px;
    border: 1px solid var(--vn-line); border-radius: var(--vn-r-lg);
    overflow: hidden; background: color-mix(in srgb, var(--tk-bg), #000 30%);
    box-shadow: var(--vn-shadow);
}
.vn-hero-rail {
    display: flex; block-size: clamp(400px, 64vh, 600px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.vn-hero-rail::-webkit-scrollbar { display: none; }
.vn-hero-slide { flex: 0 0 100%; scroll-snap-align: center; block-size: 100%; }
.vn-hero-slide img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.vn-hero-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / .88) 0%, rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / .42) 44%, rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / .10) 74%);
}
/* SIGNATURE — gold-rim swirl shimmer (single ambient, 7s conic rotate, GPU-cheap) */
.vn-hero-swirl {
    position: absolute; inset-block-start: 12%; inset-inline-end: 8%;
    inline-size: clamp(110px, 28vw, 180px); block-size: clamp(110px, 28vw, 180px);
    border-radius: 50%; pointer-events: none; z-index: 2;
    background: conic-gradient(from 0deg,
        rgb(from var(--tk-primary) r g b / 0) 0deg,
        rgb(from color-mix(in srgb, var(--tk-primary), #fff 35%) r g b / .0) 90deg,
        rgb(from color-mix(in srgb, var(--tk-primary), #fff 35%) r g b / .55) 168deg,
        rgba(255, 240, 210, .85) 192deg,
        rgb(from color-mix(in srgb, var(--tk-primary), #fff 35%) r g b / .55) 216deg,
        rgb(from var(--tk-primary) r g b / 0) 300deg,
        rgb(from var(--tk-primary) r g b / 0) 360deg);
    -webkit-mask: radial-gradient(closest-side, transparent 64%, #000 67%, #000 88%, transparent 91%);
            mask: radial-gradient(closest-side, transparent 64%, #000 67%, #000 88%, transparent 91%);
    filter: drop-shadow(0 0 12px rgb(from color-mix(in srgb, var(--tk-primary), #fff 35%) r g b / .35));
    animation: vn-swirl 7s linear infinite;
    will-change: transform; opacity: .95;
}
@keyframes vn-swirl { to { transform: rotate(360deg); } }
.vn-hero-cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 24px 18px 28px; color: var(--vn-txt); pointer-events: none; z-index: 3; }
.vn-hero-cap .vn-eyebrow { color: rgb(from var(--tk-text) r g b / .82); }
.vn-hero-cap .vn-eyebrow .num { color: var(--vn-accent-soft); }
.vn-hero-cap .vn-eyebrow::after { background: rgb(from var(--tk-primary) r g b / .42); }
.vn-hero-title {
    font-family: var(--vn-font-d); font-weight: 500;
    font-size: clamp(1.85rem, 7vw, 3.2rem); line-height: 1.1;
    margin: 12px 0 16px; max-width: 18ch;
}
.vn-hero-title em { font-style: italic; color: var(--vn-accent-soft); }
.vn-hero-cap .vn-btn { pointer-events: auto; }
.vn-hero-age { margin: 14px 0 0; font-size: 11px; letter-spacing: .12em; color: rgb(from var(--tk-text) r g b / .6); }
.vn-hero-age i { color: var(--vn-accent); margin-inline-end: 5px; }

/* ---------- Trust strip -------------------------------------------------- */
.vn-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0;
    border-block: 1px solid var(--vn-line);
    padding-block: 18px; margin-block: 34px 8px;
}
.vn-trust-item {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding-inline: 18px;
    font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    color: var(--vn-muted);
}
.vn-trust-item i { font-size: 16px; color: var(--vn-accent); }
.vn-trust-item + .vn-trust-item::before {
    content: ""; position: absolute; inset-inline-start: -2px; inset-block-start: 50%; translate: 0 -50%;
    inline-size: 3px; block-size: 3px; border-radius: 50%; background: var(--vn-accent);
}

/* ---------- Occasion filter (Dinner · Gift · Celebration) ---------------- */
.vn-occasions {
    display: flex; flex-wrap: wrap; gap: 9px; margin-block: 16px 4px;
}
.vn-occasion {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--vn-line-strong); border-radius: 999px;
    padding: 9px 16px; background: var(--vn-panel);
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--vn-txt); text-decoration: none; white-space: nowrap;
    transition: border-color .2s var(--vn-ease), background .2s var(--vn-ease), color .2s var(--vn-ease);
}
.vn-occasion i { font-size: 14px; color: var(--vn-accent); transition: color .2s var(--vn-ease); }
.vn-occasion:hover { border-color: var(--vn-accent); color: var(--vn-txt); }
.vn-occasion.is-active { background: var(--vn-accent); border-color: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%); }
.vn-occasion.is-active i { color: color-mix(in srgb, var(--tk-bg), #000 28%); }

/* ---------- Rails (shared) ----------------------------------------------- */
.vn-tilerail, .vn-prodrail, .vn-cat-rail, .vn-thumb-rail {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-block: 4px;
}
.vn-tilerail::-webkit-scrollbar, .vn-prodrail::-webkit-scrollbar,
.vn-cat-rail::-webkit-scrollbar, .vn-thumb-rail::-webkit-scrollbar { display: none; }
.vn-tilerail { gap: 14px; }
.vn-prodrail { gap: 14px; }

/* ---------- Category tiles ----------------------------------------------- */
.vn-tile {
    position: relative; flex: 0 0 min(84%, 460px); aspect-ratio: 4 / 3;
    border: 1px solid var(--vn-line); border-radius: var(--vn-r-lg);
    overflow: hidden; scroll-snap-align: start;
    text-decoration: none; background: var(--vn-panel); display: block;
    box-shadow: var(--vn-shadow);
}
.vn-tile-img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; transition: transform .8s var(--vn-ease); }
.vn-tile:hover .vn-tile-img { transform: scale(1.05); }
.vn-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / .82), rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / 0) 58%); pointer-events: none; }
.vn-tile-cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 17px; display: flex; flex-direction: column; gap: 4px; color: var(--vn-txt); }
.vn-tile-kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--vn-accent-soft); }
.vn-tile-name { font-family: var(--vn-font-d); font-weight: 500; font-size: clamp(1.2rem, 3.8vw, 1.6rem); line-height: 1.18; }
.vn-tile-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-block-start: 6px;
    font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--vn-txt);
}
.vn-tile-cta i { font-size: 14px; transition: transform .3s var(--vn-ease); }
.vn-tile:hover .vn-tile-cta i { transform: translateX(4px); }
body[dir="rtl"] .vn-tile-cta i { transform: scaleX(-1); }
body[dir="rtl"] .vn-tile:hover .vn-tile-cta i { transform: scaleX(-1) translateX(4px); }

/* Categories page grid of tiles */
.vn-tilegrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.vn-tilegrid .vn-tile { flex: none; aspect-ratio: 16 / 9; }

/* ---------- Category pill rail (filter view) ------------------------------ */
.vn-cathead { margin-block-start: 24px; }
.vn-cat-rail { gap: 8px; margin-block: 14px 4px; }
.vn-cat-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--vn-line); border-radius: 999px;
    padding: 9px 15px; background: var(--vn-panel);
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--vn-txt); text-decoration: none; white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--vn-ease), background .2s var(--vn-ease), color .2s var(--vn-ease);
}
.vn-cat-link img { inline-size: 22px; block-size: 22px; border-radius: 50%; object-fit: cover; }
.vn-cat-link:hover { border-color: var(--vn-accent); color: var(--vn-txt); }
.vn-cat-link.is-active { background: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%); border-color: var(--vn-accent); }

/* ---------- Bottle cards ------------------------------------------------- */
.vn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.vn-prodrail .vn-card { flex: 0 0 min(66%, 280px); scroll-snap-align: start; }

.vn-card {
    display: flex; flex-direction: column;
    background: var(--vn-panel);
    border: 1px solid var(--vn-line); border-radius: var(--vn-r-lg);
    overflow: hidden;
    /* the pour gesture — tilt 2° + soft shadow on hover */
    transform-origin: bottom center;
    transition: transform .4s var(--vn-ease), border-color .4s var(--vn-ease), box-shadow .4s var(--vn-ease);
}
.vn-card:hover {
    transform: rotate(-2deg) translateY(-3px);
    border-color: var(--vn-line-strong);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .5);
}
body[dir="rtl"] .vn-card:hover { transform: rotate(2deg) translateY(-3px); }
.vn-card-media {
    position: relative; display: block; aspect-ratio: 3 / 4;
    overflow: hidden; background: color-mix(in srgb, var(--tk-bg), #000 18%);
}
/* catch-light gold hairline along the top of each bottle photo (layered depth) */
.vn-card-media::after {
    content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 1px;
    background: linear-gradient(90deg, transparent, rgb(from color-mix(in srgb, var(--tk-primary), #fff 35%) r g b / .5), transparent);
    z-index: 3; pointer-events: none;
}
.vn-card-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: opacity .45s var(--vn-ease), transform .7s var(--vn-ease); }
.vn-card-img-alt { opacity: 0; }
.vn-card:hover .vn-card-img-alt { opacity: 1; }
.vn-flag {
    position: absolute; inset-block-start: 11px; inset-inline-start: 11px; z-index: 2;
    background: var(--vn-stain); color: var(--vn-txt);
    font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px;
}
.vn-flag-out { background: rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / .82); border: 1px solid var(--vn-line-strong); }
/* Sommelier pick — gold badge */
.vn-pick-badge {
    position: absolute; inset-block-start: 11px; inset-inline-end: 11px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(180deg, var(--vn-accent-soft), var(--vn-accent)); color: color-mix(in srgb, var(--tk-bg), #000 28%);
    font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 9px; border-radius: 999px;
    box-shadow: 0 4px 12px rgb(from var(--tk-primary) r g b / .4);
}
.vn-pick-badge i { font-size: 12px; }
.vn-card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; gap: 4px; }
.vn-card-link { text-decoration: none; color: inherit; min-inline-size: 0; }
.vn-card-name {
    font-family: var(--vn-font-d); font-weight: 500; font-size: 16px; line-height: 1.3;
    margin: 0; color: var(--vn-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vn-card-meta {
    font-size: 12.5px; color: var(--vn-muted); margin: 2px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Tasting-notes chips per bottle (parsed from subtitle, JS-built) */
.vn-notes { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 8px; }
.vn-note-chip {
    font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--vn-accent-soft); background: rgb(from var(--tk-primary) r g b / .10);
    border: 1px solid var(--vn-line); border-radius: 999px;
    padding: 3px 9px; white-space: nowrap;
}
.vn-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-block-start: auto; padding-block-start: 11px;
    border-block-start: 1px solid var(--vn-line-soft);
}
.vn-price-wrap { display: flex; flex-direction: column; min-inline-size: 0; }
.vn-price { font-weight: 600; font-size: 15px; color: var(--vn-accent-soft); }
.vn-price-old { font-size: 12px; color: var(--vn-muted); text-decoration: line-through; }
.vn-add {
    flex-shrink: 0; inline-size: 40px; block-size: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--vn-accent) !important;
    border: 1px solid var(--vn-line-strong); border-radius: 50%;
    cursor: pointer; text-decoration: none; font-size: 19px;
    transition: background .25s var(--vn-ease), color .25s var(--vn-ease), border-color .25s var(--vn-ease);
}
.vn-add:hover { background: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%) !important; border-color: var(--vn-accent); }

/* ---------- Toolbar (search / price / sort) -------------------------------- */
.vn-toolbar {
    display: flex; flex-direction: column; gap: 10px;
    padding: 15px; margin-block: 18px 22px;
    background: var(--vn-panel);
    border: 1px solid var(--vn-line); border-radius: var(--vn-r-lg);
}
.vn-search, .vn-pricef { display: flex; gap: 8px; min-inline-size: 0; }
.vn-search .vn-input, .vn-pricef .vn-input { flex: 1 1 auto; min-inline-size: 0; }

/* ---------- Pagination ------------------------------------------------------ */
.vn-pagination { margin-block: 28px 8px; }
.vn-pagination .justify-content-end { justify-content: center !important; }
.vn-pagination .pagination { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; justify-content: center; }
.vn-pagination .page-link {
    display: flex; align-items: center; justify-content: center;
    min-inline-size: 40px; block-size: 40px; padding-inline: 8px;
    border: 1px solid var(--vn-line); border-radius: 999px;
    background: var(--vn-panel); color: var(--vn-txt);
    font-weight: 500; box-shadow: none;
    transition: border-color .2s var(--vn-ease), color .2s var(--vn-ease);
}
.vn-pagination .page-link:hover { border-color: var(--vn-accent); color: var(--vn-accent); }
.vn-pagination .page-item.active .page-link { background: var(--vn-accent); border-color: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%); }
.vn-pagination .page-item.disabled .page-link { color: var(--vn-muted); background: transparent; }

/* ---------- Empty states (pure-CSS bottle mark) ------------------------------ */
.vn-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 58px 18px; margin-block: 24px;
    background: var(--vn-panel);
    border: 1px dashed var(--vn-line-strong); border-radius: var(--vn-r-lg);
}
.vn-empty-mark {
    position: relative; inline-size: 26px; block-size: 50px;
    border: 1.5px solid var(--vn-accent); border-radius: 4px 4px 9px 9px;
    margin-block: 12px 16px;
}
.vn-empty-mark::before {
    content: ""; position: absolute; inset-block-start: -13px; inset-inline-start: 50%; translate: -50% 0;
    inline-size: 8px; block-size: 14px; border: 1.5px solid var(--vn-accent); border-block-end: none;
    border-radius: 3px 3px 0 0;
}
.vn-empty-mark::after {
    content: ""; position: absolute; inset-block-start: 14px; inset-inline: 4px; block-size: 18px;
    background: var(--vn-stain); border-radius: 2px; opacity: .8;
}
.vn-empty-title { font-family: var(--vn-font-d); font-weight: 500; font-size: 21px; margin: 0; color: var(--vn-txt); }
.vn-empty-sub { color: var(--vn-muted); font-size: 14px; margin: 0; max-width: 42ch; }
.vn-empty .vn-btn { margin-block-start: 8px; }

/* ---------- Cart drawer — deeper cellar ------------------------------------- */
#offcanvasEnd.vn-drawer {
    background: var(--vn-bg-2); color: var(--vn-txt);
    inline-size: min(420px, 94vw);
    border-inline-start: 1px solid var(--vn-line-strong);
}
.vn-drawer .offcanvas-header { padding: 18px; border-block-end: 1px solid var(--vn-line); }
.vn-drawer-title { font-family: var(--vn-font-d); font-weight: 600; font-size: 20px; letter-spacing: .02em; color: var(--vn-txt); margin: 0; }
.vn-drawer .btn-close { filter: invert(1) grayscale(1) brightness(1.6); opacity: .7; }
.vn-drawer .offcanvas-body { padding: 16px 18px; }

.vn-cart-item {
    display: flex; gap: 12px; margin-block-end: 10px; padding: 11px;
    background: var(--vn-panel);
    border: 1px solid var(--vn-line); border-radius: var(--vn-r);
}
.vn-cart-item-img { inline-size: 64px; block-size: 88px; object-fit: cover; flex-shrink: 0; border-radius: 6px; background: color-mix(in srgb, var(--tk-bg), #000 18%); }
.vn-cart-item-info { flex: 1; min-inline-size: 0; }
.vn-cart-item-name {
    font-family: var(--vn-font-d); font-weight: 500; font-size: 15px;
    color: var(--vn-txt); margin: 0 0 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vn-cart-item-sub {
    display: block; font-size: 12px; color: var(--vn-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vn-cart-item-sub.sm-cart-variants { color: var(--vn-accent-soft); }
.vn-cart-item-price { margin: 7px 0 9px; font-size: 14px; font-weight: 600; color: var(--vn-accent-soft); }
.vn-cart-item-actions { display: flex; align-items: center; gap: 6px; }
.vn-qty-btn {
    inline-size: 32px; block-size: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--vn-txt);
    border: 1px solid var(--vn-line-strong); border-radius: 8px;
    cursor: pointer; transition: background .2s var(--vn-ease), border-color .2s var(--vn-ease);
}
.vn-qty-btn:hover { border-color: var(--vn-accent); background: rgb(from var(--tk-primary) r g b / .1); }
.vn-qty-btn svg { inline-size: 15px; block-size: 15px; }
.vn-qty-num { min-inline-size: 28px; text-align: center; font-weight: 600; font-size: 14px; color: var(--vn-txt); }
.vn-qty-remove { margin-inline-start: auto; color: var(--vn-stain-soft); border-color: rgb(from color-mix(in srgb, var(--tk-secondary), #fff 18%) r g b / .5); }
.vn-qty-remove:hover { background: var(--vn-stain); border-color: var(--vn-stain); color: var(--vn-txt); }

.vn-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 46px 14px; }
.vn-cart-empty-text { font-family: var(--vn-font-d); font-weight: 500; font-size: 18px; color: var(--vn-txt); margin: 0; }

.vn-drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--vn-line); }
.vn-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--vn-font-d); font-weight: 500; font-size: 18px;
    color: var(--vn-txt); margin: 0 0 12px;
}
.vn-cart-total-num { color: var(--vn-accent-soft); font-size: 20px; }
.vn-place-order {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    block-size: 50px; inline-size: 100%;
    background: linear-gradient(180deg, var(--vn-accent-soft), var(--vn-accent)); color: color-mix(in srgb, var(--tk-bg), #000 28%) !important;
    border-radius: 999px; cursor: pointer; text-decoration: none;
    font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 8px 22px rgb(from var(--tk-primary) r g b / .3);
    transition: box-shadow .25s var(--vn-ease);
}
.vn-place-order:hover { box-shadow: 0 12px 30px rgb(from var(--tk-primary) r g b / .46); color: color-mix(in srgb, var(--tk-bg), #000 28%) !important; }
.vn-place-order i { font-size: 18px; }

/* ---------- Modals ------------------------------------------------------------ */
.vn-modal .modal-content {
    position: relative;
    background: var(--vn-panel); color: var(--vn-txt);
    border: 1px solid var(--vn-line-strong); border-radius: var(--vn-r-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.vn-modal .modal-header { padding: 18px 20px; border-block-end: 1px solid var(--vn-line); align-items: flex-start; }
.vn-modal .modal-title { font-family: var(--vn-font-d); font-weight: 600; font-size: 20px; letter-spacing: .02em; color: var(--vn-txt); }
.vn-modal-sub { display: block; margin-block-start: 3px; font-size: 12.5px; color: var(--vn-muted); }
.vn-modal .modal-footer { border-block-start: 1px solid var(--vn-line); gap: 8px; }
.vn-modal .form-label {
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--vn-muted);
}
.vn-modal .form-control, .vn-modal .form-select {
    border: 1px solid var(--vn-line); border-radius: var(--vn-r);
    background: var(--vn-bg-2); color: var(--vn-txt);
}
.vn-modal .form-control::placeholder { color: var(--vn-muted); }
.vn-modal .form-control:focus, .vn-modal .form-select:focus {
    border-color: var(--vn-accent); box-shadow: 0 0 0 3px rgb(from var(--tk-primary) r g b / .14);
    background: var(--vn-bg-2); color: var(--vn-txt);
}
.vn-modal .form-check-label { color: var(--vn-txt); }
.vn-modal .form-check-input { background-color: var(--vn-bg-2); border-color: var(--vn-line-strong); }
.vn-modal .form-check-input:checked { background-color: var(--vn-accent); border-color: var(--vn-accent); }
.vn-modal .form-check-input:focus { border-color: var(--vn-accent); box-shadow: 0 0 0 3px rgb(from var(--tk-primary) r g b / .18); }
.vn-modal .text-muted { color: var(--vn-muted) !important; }

/* ---------- Single product ------------------------------------------------------ */
.vn-crumb {
    display: flex; align-items: center; gap: 8px; margin-block: 18px 0;
    font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--vn-muted);
}
.vn-crumb a { color: var(--vn-txt); text-decoration: none; }
.vn-crumb a:hover { color: var(--vn-accent); }
.vn-crumb-sep { color: var(--vn-line-strong); }
.vn-crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; color: var(--vn-accent-soft); }

.vn-product { display: grid; grid-template-columns: 1fr; gap: 28px; margin-block: 24px 12px; }
.vn-gallery { min-inline-size: 0; }
.vn-gallery-main {
    display: block; position: relative; aspect-ratio: 4 / 5;
    border: 1px solid var(--vn-line); border-radius: var(--vn-r-lg);
    overflow: hidden; background: var(--vn-panel);
    box-shadow: var(--vn-shadow);
}
.vn-gallery-main img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.vn-thumb-rail { gap: 10px; margin-block-start: 10px; }
.vn-thumb {
    flex: 0 0 72px; aspect-ratio: 3 / 4; display: block;
    border: 1px solid var(--vn-line); border-radius: 8px;
    overflow: hidden; background: var(--vn-panel); scroll-snap-align: start;
    transition: border-color .2s var(--vn-ease);
}
.vn-thumb:hover { border-color: var(--vn-accent); }
.vn-thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; cursor: pointer; }

.vn-product-name {
    font-family: var(--vn-font-d); font-weight: 500;
    font-size: clamp(1.7rem, 5.4vw, 2.5rem); line-height: 1.14;
    margin: 12px 0 6px; color: var(--vn-txt);
}
.vn-product-sub { color: var(--vn-muted); font-size: 15px; margin: 0 0 16px; }
.vn-product-price {
    display: flex; align-items: baseline; gap: 12px;
    margin-block: 4px 18px; padding-block-end: 18px;
    border-block-end: 1px solid var(--vn-line);
}
.vn-product-price .vn-price { font-size: 25px; font-weight: 600; }
.vn-product-price .vn-price-old { font-size: 16px; }
.vn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.vn-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    border: 1px solid var(--vn-line); border-radius: 999px;
    padding: 7px 13px; color: var(--vn-muted); background: var(--vn-panel);
}
.vn-chip-accent { color: var(--vn-accent-soft); border-color: var(--vn-line-strong); }
.vn-chip i { font-size: 13px; }

/* Tasting-notes block on the product page */
.vn-tasting { margin-block: 4px 18px; }
.vn-tasting-label {
    font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--vn-muted); margin-block-end: 8px;
}
.vn-tasting-notes { display: flex; flex-wrap: wrap; gap: 7px; }
.vn-tasting-notes .vn-note-chip { font-size: 11px; padding: 5px 12px; }

.vn-concierge-hint {
    display: flex; align-items: flex-start; gap: 8px;
    margin-block: 16px 18px;
    font-size: 11px; letter-spacing: .1em; line-height: 1.6; color: var(--vn-muted);
}
.vn-concierge-hint i { font-size: 15px; color: var(--vn-accent); flex-shrink: 0; margin-block-start: 1px; }

.vn-prose { font-size: 15px; line-height: 1.78; color: var(--vn-txt); }
.vn-prose h1, .vn-prose h2, .vn-prose h3, .vn-prose h4 {
    font-family: var(--vn-font-d); font-weight: 500; color: var(--vn-txt);
    margin-block: 1.2em .5em;
}
.vn-prose img { border-radius: var(--vn-r); }
.vn-prose a { color: var(--vn-accent); }
.vn-prose table { inline-size: 100%; border-collapse: collapse; }
.vn-prose th, .vn-prose td { border: 1px solid var(--vn-line); padding: 8px 10px; }
.vn-prose blockquote { border-inline-start: 3px solid var(--vn-accent); margin-inline: 0; padding-inline-start: 14px; color: var(--vn-muted); }

/* ---------- Variant picker — restyled to theme (gold chips) ----------------- */
.sm-variants { margin-block: 18px; }
.sm-variant-label { color: var(--vn-muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.sm-variant-opt {
    border: 1px solid var(--vn-line-strong); border-radius: 999px;
    padding: 8px 16px; background: var(--vn-panel); color: var(--vn-txt);
    opacity: 1; font-size: 12.5px;
}
.sm-variant-opt:hover { border-color: var(--vn-accent); color: var(--vn-accent-soft); }
.sm-variant-opt.is-selected {
    background: var(--vn-accent); border-color: var(--vn-accent); color: color-mix(in srgb, var(--tk-bg), #000 28%);
    border-width: 1px; font-weight: 600;
}
.sm-variant-opt:focus-visible { outline: 2px solid var(--vn-accent); outline-offset: 2px; }

/* Share include — dark re-skin */
.product-share-card .share-title {
    font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--vn-muted);
}
.product-share-card .share-icon { border-color: var(--vn-line-strong); background: var(--vn-panel); color: var(--vn-txt); }
.product-share-card .share-icon:hover { border-color: var(--vn-accent); color: var(--vn-accent); }

/* ---------- Policy page ----------------------------------------------------------- */
.vn-policy { padding-block: 32px 12px; max-width: 860px; }
.vn-policy .vn-display {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-block: 12px 18px; padding-block-end: 18px;
    border-block-end: 1px solid var(--vn-line);
}

/* ---------- Footer ------------------------------------------------------------ */
.vn-footer {
    flex-shrink: 0;
    background: color-mix(in srgb, var(--tk-bg), #000 30%); color: var(--vn-muted);
    margin-block-start: 60px; padding-block: 40px 28px;
    border-block-start: 1px solid var(--vn-line-strong);
}
.vn-footer a { text-decoration: none; transition: color .2s var(--vn-ease); }
.vn-footer-top {
    display: flex; flex-direction: column; gap: 24px;
    padding-block-end: 26px; border-block-end: 1px solid var(--vn-line);
}
.vn-footer-brand { min-inline-size: 0; }
.vn-footer-wordmark { display: block; font-family: var(--vn-font-d); font-weight: 600; font-size: 25px; letter-spacing: .02em; color: var(--vn-txt); }
.vn-footer-tag { font-size: 13px; color: var(--vn-muted); margin: 7px 0 0; max-width: 48ch; }
.vn-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.vn-social a {
    inline-size: 40px; block-size: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--vn-line-strong); border-radius: 50%;
    color: var(--vn-txt); font-size: 16px;
}
.vn-social a:hover { border-color: var(--vn-accent); background: rgb(from var(--tk-primary) r g b / .08); color: var(--vn-accent); }
.vn-footer-links {
    display: flex; flex-wrap: wrap; gap: 10px 24px;
    padding-block: 20px; border-block-end: 1px solid var(--vn-line);
    font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.vn-footer-links a { color: var(--vn-muted); }
.vn-footer-links a:hover { color: var(--vn-accent-soft); }
.vn-footer-base {
    display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
    padding-block-start: 20px; font-size: 12.5px; color: var(--vn-muted);
}
.vn-footer-base a { color: var(--vn-accent-soft); }
.vn-footer-base a:hover { color: var(--vn-txt); }

/* ---------- Mobile dock --------------------------------------------------------------- */
.vn-dock {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 1040;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgb(from color-mix(in srgb, var(--tk-bg), #000 25%) r g b / .96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-block-start: 1px solid var(--vn-line);
    padding-block: 8px calc(8px + env(safe-area-inset-bottom));
}
.vn-dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--vn-muted); text-decoration: none; cursor: pointer;
    font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.vn-dock a i { font-size: 21px; }
.vn-dock a.is-active, .vn-dock a:hover { color: var(--vn-accent); }

/* ---------- Preloader / floating alerts (defensive) ------------------------------------ */
.preloader-wrapper {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: var(--vn-bg);
}
.vn-loader {
    inline-size: 36px; block-size: 36px; border-radius: 50%;
    border: 1px solid var(--vn-line);
    border-block-start-color: var(--vn-accent);
    animation: vn-spin 1s linear infinite;
}
@keyframes vn-spin { to { transform: rotate(360deg); } }
.alert-float {
    position: fixed; inset-block-start: 18px; inset-inline: 0; z-index: 3000;
    display: none; border-radius: var(--vn-r);
}

/* ---------- Wallet partial spacing ------------------------------------------------------ */
.scaanme-wallet-buttons { margin-block: 32px 6px !important; }

/* ---------- >=760px layer ----------------------------------------------------------------- */
@media (min-width: 760px) {
    body { padding-block-end: 0; }
    .vn-dock { display: none; }
    .vn-shell { padding-inline: 28px; }
    .vn-section { margin-block: 64px; }
    .vn-topbar-in { block-size: 72px; }
    .vn-brand-name { font-size: 20px; }
    .vn-hero-cap { padding: 36px 34px 38px; }
    .vn-hero-swirl { inset-inline-end: 10%; }
    .vn-trust { margin-block: 44px 0; }
    .vn-trust-item { padding-inline: 26px; }
    .vn-tile { flex-basis: 460px; aspect-ratio: 16 / 10; }
    .vn-tile-cap { padding: 22px 24px; }
    .vn-tilegrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .vn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .vn-prodrail { gap: 18px; }
    .vn-prodrail .vn-card { flex-basis: 280px; }
    .vn-card-body { padding: 15px 17px 17px; }
    .vn-card-name { font-size: 17px; }
    .vn-toolbar { flex-direction: row; align-items: center; padding: 13px 15px; }
    .vn-search { flex: 1.5 1 0; }
    .vn-pricef { flex: 1.2 1 0; }
    .vn-toolbar .vn-select { flex: 0 0 200px; inline-size: 200px; }
    .vn-product { grid-template-columns: 1.05fr .95fr; gap: 48px; margin-block: 42px 18px; }
    .vn-product-info { padding-block-start: 8px; }
    .vn-thumb { flex-basis: 84px; }
    .vn-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1080px) {
    .vn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Reduced motion layer (kills the swirl + tilt) --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .vn-hero-swirl { animation: none; opacity: .55; }
    .vn-tile:hover .vn-tile-img { transform: none; }
    .vn-card:hover { transform: none; }
    body[dir="rtl"] .vn-card:hover { transform: none; }
}


/* ============================================================
   Cart toast — bulletproof compact pill.
   Overrides the legacy inline showAlert() sizing (width:75% /
   inset-inline:0) that made the Tabler solid alert blow up.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    inline-size: auto !important;
    max-inline-size: 420px !important;
    margin-inline: auto !important;
    block-size: auto !important;
    min-block-size: 0 !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    text-align: center !important;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.4;
    background: linear-gradient(180deg, var(--vn-accent-soft), var(--vn-accent)) !important;
    color: color-mix(in srgb, var(--tk-bg), #000 28%) !important;
    box-shadow: 0 16px 38px -10px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.alert-float#errorAlertContainer {
    background: linear-gradient(180deg, var(--vn-stain-soft), var(--vn-stain)) !important;
    color: var(--vn-txt) !important;
}
.alert-float.show {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}
.alert-float .btn-close,
.alert-float .alert-icon { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .alert-float { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE.
   overflow-x:clip on html is sticky-safe (unlike hidden) and stops
   the horizontal pan; overscroll-behavior-x:none kills rubber-band;
   max-inline-size:100% + min-inline-size:0 prevent any child from
   forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-inline-size: 100%; }
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-inline-size: 100vw;
}


/* ============================================================
   RTL refinements (Arabic). Logical props carry most of the
   layout; these handle the bits that need explicit care.
   ============================================================ */

/* Prices, discount <del>, badges & qty numbers stay LTR so
   "$32" / "$48" never reorder around the currency glyph. */
body[dir="rtl"] .vn-price,
body[dir="rtl"] .vn-price-old,
body[dir="rtl"] .vn-cart-item-price,
body[dir="rtl"] .vn-cart-total-num,
body[dir="rtl"] .vn-qty-num,
body[dir="rtl"] .vn-count {
    direction: ltr;
    unicode-bidi: isolate;
}
body[dir="rtl"] .vn-price-wrap { align-items: flex-end; }

body[dir="rtl"] .vn-eyebrow .num,
body[dir="rtl"] .vn-tile-kicker { unicode-bidi: isolate; }

body[dir="rtl"] .vn-sechead-link,
body[dir="rtl"] .vn-crumb { direction: rtl; }
body[dir="rtl"] .vn-crumb-cur { max-width: 60vw; }

body[dir="rtl"] .vn-select { background-position: left .75rem center; }

body[dir="rtl"] .vn-tile-cta { flex-direction: row-reverse; justify-content: flex-end; }

body[dir="rtl"] .vn-trust-item + .vn-trust-item::before { inset-inline-start: -2px; }

/* Header close-buttons must never glue to the title (Bootstrap btn-close
   auto-margins fight justify-content:space-between in RTL). */
.vn-drawer .offcanvas-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding-block: calc(16px + env(safe-area-inset-top)) 16px;
}
.vn-drawer .offcanvas-header .btn-close { margin: 0; flex: 0 0 auto; padding: 6px; }
.vn-drawer-title { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vn-modal .modal-content { position: relative; }
.vn-modal .modal-header {
    display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap;
    padding-inline-end: 52px; position: relative;
}
.vn-modal .modal-header > :first-child { min-inline-size: 0; flex: 1 1 auto; }
.vn-modal .modal-title { overflow-wrap: anywhere; }
.vn-modal .modal-header .btn-close {
    position: absolute; inset-block-start: 16px; inset-inline-end: 18px;
    inset-inline-start: auto; margin: 0; z-index: 2;
    filter: invert(1) grayscale(1) brightness(1.6); opacity: .7;
}
.vn-modal .modal-body .btn-close { position: static; margin-inline-start: auto; }
.vn-modal .modal-body { padding-inline: 20px; }

.vn-input, .vn-select,
.vn-modal .form-control, .vn-modal .form-select { text-overflow: ellipsis; }
.vn-modal .form-control, .vn-modal .form-select { padding-inline: 13px; }
