/* RADIUS SCALE of the facelift (owner, 2026-11-12: the corners were all different). Three steps, tokens only, no pixel numbers:
 *   pill, badge, round button ....... var(--vs-radius-full)
 *   chip, small icon tile, input, accordion row, small image ... var(--vs-radius-lg)   (12px)
 *   card, panel, tile, big picture, sidebar block ................ var(--vs-radius-xl)   (20px)
 * The taped photo frame (.vsf-pola) follows the card step too (owner, 2026-11-13: taped cards must have the same corners as the other
 * cards); the card inside it takes the next smaller step so the two corners run parallel. Design system parts (vendor buttons 6px) are
 * not touched here. A guard test (FaceliftRadiusTest) fails on any pixel radius in this file. */
/*
 * Facelift, global shell (PR1, CSS only). Loaded only when VS_FACELIFT=true
 * (App\Custom\Facelift\FaceliftServiceProvider), AFTER the admin Custom CSS (custom.css), because the
 * live look is partly defined there; equal specificity then wins by order, with no !important.
 *
 * Rules (guarded by tests/Unit/Theme/VsFaceliftCssTest.php):
 *  - design-system tokens (var(--vs-*)) only: no hex/rgb/hsl colour literal, no !important;
 *  - selectors start at our own classes (.vsf-*) or at the public shell roots (.announcement, .nav-bar, .footer; custom.css uses a
 *    "body " prefix to win, so "body .nav-bar..." is allowed) so workspace/invoice/licence pages are not touched;
 *  - theme JS hooks are not changed (no display:none on them).
 *
 * Header (2026-11-13): the header is ours (.vsf-hd-*, see the HEADER section below); the old rules that recoloured the vendor
 * category bar and dropdowns are gone. The vendor classes .nav-bar, .drop-down, .logo are not used by the new header, so
 * custom.css rules on them (lime bar, hidden .nav-bar-buttons, .logo height) no longer reach it.
 * Footer: white-ish links, lime title underline and link hover (mockup, decision 3 of 2026-11-10).
 */

/* ---- 3. footer ------------------------------------------------------------------------------------- */
.footer .footer-title {
    font-weight: var(--vs-font-weight-title);
}

.footer .footer-title .footer-title-divider {
    background-color: var(--vs-color-brand-accent);
}

.footer .footer-text {
    color: var(--vs-color-surface);
    opacity: 0.82;
}

.footer .footer-links .footer-link a:hover {
    color: var(--vs-color-brand-accent);
    opacity: 1;
}

/* ===== PR2 step 1: Categories index (override view categories/index) ================================
 * Site-owned markup (.vsf-*) because the design system has no Category tile or Pill link yet. The DS tickets
 * are NOT written yet (Master KMO: "later"); he approved this stand-in on 2026-11-10 (option a). Replace with
 * <x-vs-*> when the components exist.
 * Mockup colours without a token (header tint, pill border, muted text) use the nearest token (decision 2a).
 */
body.vsf-categories-page .header {
    background: linear-gradient(135deg, var(--vs-color-surface) 0%, color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 83%, var(--vs-color-badge-trending)) 7.6%, var(--vs-color-surface)) 55%, color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 80%, var(--vs-color-badge-trending)) 14.2%, var(--vs-color-surface)) 100%);
    border-bottom: 1px solid var(--vs-color-border);
}

body.vsf-categories-page .header .header-title {
    color: var(--vs-color-text-heading);
    font-weight: 700;
}

body.vsf-categories-page .header .breadcrumb a,
body.vsf-categories-page .header .breadcrumb .breadcrumb-item {
    color: var(--vs-color-text-body);
}

.vsf-intro {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--vs-color-text-body);
    line-height: var(--vs-line-height-body);
}

/* category description moved up under the page title (script initUnderTitle) */
.vsf-intro--banner {
    max-width: 560px;
    margin: 0 0 var(--vs-spacing-md);
    color: var(--vs-color-text-body);
    font-size: var(--vs-font-size-body-md);
}

.vsf-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 20px;
}

.vsf-tile--0 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.vsf-tile--1 { grid-column: 3; grid-row: 1 / span 2; }
.vsf-tile--2 { grid-column: 4; grid-row: 1 / span 2; }
.vsf-tile--3 { grid-column: 1 / span 2; grid-row: 3; }
.vsf-tile--4 { grid-column: 3; grid-row: 3; }
.vsf-tile--5 { grid-column: 4; grid-row: 3; }

.vsf-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
    text-decoration: none;
}

.vsf-tile:hover,
.vsf-tile:focus-visible {
    color: var(--vs-color-surface);
}

.vsf-tile:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

.vsf-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vsf-tile:hover .vsf-tile-img {
    transform: scale(1.06);
}

.vsf-tile-body {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 96px 24px 22px;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--vs-color-brand-secondary) 97%, transparent) 0%,
        color-mix(in srgb, var(--vs-color-brand-secondary) 88%, transparent) 45%,
        transparent 100%);
}

.vsf-tile-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.vsf-tile-name {
    font-size: 1.25rem;
    font-weight: var(--vs-font-weight-title);
    line-height: 1.2;
}

.vsf-tile--0 .vsf-tile-name {
    font-size: var(--vs-font-size-heading-md);
}

.vsf-tile-count {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: 700;
}

.vsf-tile-sub {
    display: block;
    margin-top: 4px;
    font-size: var(--vs-font-size-body-sm);
}

.vsf-section {
    margin-top: 48px;
}

.vsf-h2 {
    margin: 0 0 20px;
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vsf-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
    text-decoration: none;
}

.vsf-pill--plain {
    padding: 8px 18px;
}

.vsf-pill:hover,
.vsf-pill:focus-visible {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-pill-count {
    min-width: 36px;
    padding: 4px 10px;
    box-sizing: border-box;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-title);
    text-align: center;
}

.vsf-note {
    margin: 0 0 28px;
    color: var(--vs-color-text-body);
}

.vsf-directory {
    column-count: 3;
    column-gap: 40px;
}

.vsf-group {
    break-inside: avoid;
    margin-bottom: 32px;
}

.vsf-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vs-color-brand-accent);
}

.vsf-group-name {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-title);
}

.vsf-group-count {
    color: var(--vs-color-text-body);
    font-size: var(--vs-font-size-body-sm);
}

.vsf-group-list {
    display: grid;
    margin-top: 8px;
}

.vsf-group-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--vs-color-border);
    color: var(--vs-color-text-body);
    text-decoration: none;
}

.vsf-group-link:hover,
.vsf-group-link:focus-visible {
    color: var(--vs-color-text-heading);
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .vsf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
    .vsf-tile--0 { grid-column: 1 / span 2; grid-row: auto; }
    .vsf-tile--1, .vsf-tile--2, .vsf-tile--3, .vsf-tile--4, .vsf-tile--5 { grid-column: auto; grid-row: auto; }
    .vsf-directory { column-count: 2; }
}

@media (max-width: 640px) {
    .vsf-tiles { grid-template-columns: 1fr; }
    .vsf-tile--0 { grid-column: auto; }
    .vsf-directory { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .vsf-carousel-dot::before { transition: none; }
    .vsf-tile-img { transition: none; }
    .vsf-tile:hover .vsf-tile-img { transform: none; }
}

/* ===== PR2 step 2: Items listing (override view items/index, body class vsf-listing-page) ===============
 * Header and pagination are restyled; the toolbar controls keep their inline height (38px) and text size
 * (12px): inline styles can only be beaten with !important, which this file never uses (listed for PR1b).
 * The item cards are not touched (design-system Item Card).
 */
body.vsf-listing-page .header {
    background: linear-gradient(135deg, var(--vs-color-surface) 0%, color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 83%, var(--vs-color-badge-trending)) 7.6%, var(--vs-color-surface)) 55%, color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 80%, var(--vs-color-badge-trending)) 14.2%, var(--vs-color-surface)) 100%);
    border-bottom: 1px solid var(--vs-color-border);
}

body.vsf-listing-page .header .header-title {
    color: var(--vs-color-text-heading);
    font-weight: 700;
}

body.vsf-listing-page .header .breadcrumb a,
body.vsf-listing-page .header .breadcrumb .breadcrumb-item {
    color: var(--vs-color-text-body);
}

.vsf-page-note {
    color: var(--vs-color-text-body);
    font-weight: var(--vs-font-weight-body);
}

/* phones: the heading ("All Items . page 1 of 2") gets its own full-width row; the filter buttons wrap below it instead of squeezing it into a narrow column (QA F-F13-1, 2026-11-14) */
@media (max-width: 575.98px) {
    .vsf-toolbar > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

body.vsf-listing-page .vsf-toolbar .btn-soft {
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-body);
}

body.vsf-listing-page .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

body.vsf-listing-page .pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0 6px;
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-body);
}

body.vsf-listing-page .pagination .page-item.active .page-link {
    border-color: var(--vs-color-brand-secondary);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
    font-weight: var(--vs-font-weight-title);
}

/* ===== PR2 step 3: Category page (override view categories/category, shares body class vsf-listing-page) === */
.vsf-chips {
    margin-bottom: 24px;
}

/* ===== PR3: Home, New items (override view sections/new-items): one sideways rail ======================== */
.vsf-section-new .section-title-text {
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-section-new .section-header a {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.vsf-carousel-stage {
    position: relative;
}

/* the buttons replace the scrollbar; touch, trackpad and keyboard scrolling still work */
.vsf-rail {
    scrollbar-width: none;
}

.vsf-rail::-webkit-scrollbar {
    display: none;
}

.vsf-carousel-btn {
    position: absolute;
    top: 50%; /* vertical centre of the cards */
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-heading);
    cursor: pointer;
}

/* half outside the rail so they overlap its edge; kept inside the screen on small widths */
.vsf-carousel-btn--prev {
    left: 4px;
}

.vsf-carousel-btn--next {
    right: 4px;
}

@media (min-width: 768px) {
    .vsf-carousel-btn--prev { left: -22px; }
    .vsf-carousel-btn--next { right: -22px; }
}

.vsf-carousel-btn:hover:not(:disabled) {
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

.vsf-carousel-btn:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

.vsf-carousel-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.vsf-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin-top: 12px;
}

/* 24px hit area, the visible dot is the ::before */
.vsf-carousel-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.vsf-carousel-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-text-muted);
    transition: width 0.2s ease, background 0.2s ease;
}

.vsf-carousel-dot[aria-current="true"]::before {
    width: 24px;
    background: var(--vs-color-brand-secondary);
}

.vsf-carousel-dot:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 0;
    border-radius: var(--vs-radius-full);
}

.vsf-carousel--static .vsf-carousel-btn,
.vsf-carousel--static .vsf-carousel-dots {
    display: none;
}

.vsf-rail:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

.vsf-rail-item {
    flex: 0 0 min(280px, 78vw);
    /* min-width:0 lets the card titles (nowrap + ellipsis) shrink to the card instead of widening the flex item */
    min-width: 0;
    max-width: min(280px, 78vw);
    scroll-snap-align: start;
}

/* ===== PR3: Home, Hidden gems + Worth a look (override views sections/hidden-gems, sections/worth-a-look) ====
 * The design-system item card is wrapped in a tilted "taped photo" frame; the card itself is unchanged. Worth a
 * look is a lime band. Names and descriptions stay the admin's (home sections).
 */
.vsf-gems {
    overflow-x: clip; /* the tilted frames must not create a sideways scrollbar */
}

.vsf-gems .section-title-text {
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-gems .section-header a {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

/* the tilted frames need air between them (owner, 2026-11-12): a wider gutter than the g-3 of the markup; the cards get a
   little narrower because the columns keep their width. Row and column gutter, desktop grid and phone swipe row alike. */
.vsf-gems .vsf-rail--grid,
.vsf-gems .section-body > .row {
    --bs-gutter-x: calc(var(--vs-spacing-xl) + var(--vs-spacing-sm));
    --bs-gutter-y: calc(var(--vs-spacing-xl) + var(--vs-spacing-sm));
}

.vsf-gems--lime {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-gems--lime .section-title-text,
.vsf-gems--lime .section-text,
.vsf-gems--lime .section-header a {
    color: var(--vs-color-text-on-primary);
}

.vsf-pola {
    position: relative;
    padding: 12px 12px 16px;
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-surface);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--vs-color-brand-secondary) 18%, transparent);
    transform: rotate(var(--vsf-tilt, 0deg));
    transition: transform 0.2s ease;
}

.vsf-pola:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* the frame is the border: the card's own border (and its hover/focus border colour) is switched off inside it;
   keyboard focus is shown on the frame instead */
.vsf-pola .vs-item-card,
.vsf-pola .vs-item-card:hover,
.vsf-pola .vs-item-card:has(:focus-visible) {
    border-color: transparent;
}

.vsf-pola:has(:focus-visible) {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

.vsf-pola-tape {
    position: absolute;
    top: -11px;
    left: 50%;
    z-index: 1;
    width: 76px;
    height: 24px;
    margin-left: -38px;
    transform: rotate(-3deg);
    background: color-mix(in srgb, var(--vs-color-warning-border) 55%, transparent);
    pointer-events: none;
}

.vsf-gems--lime .vsf-pola-tape {
    background: color-mix(in srgb, var(--vs-color-brand-secondary) 70%, transparent);
}

/* one different look each: tilt and tape colour change with the position */
.vsf-gems .col:nth-child(4n + 1) .vsf-pola { --vsf-tilt: -2.5deg; }
.vsf-gems .col:nth-child(4n + 2) .vsf-pola { --vsf-tilt: 1.8deg; }
.vsf-gems .col:nth-child(4n + 3) .vsf-pola { --vsf-tilt: -1.5deg; }
.vsf-gems .col:nth-child(4n + 4) .vsf-pola { --vsf-tilt: 2.8deg; }

.vsf-gems:not(.vsf-gems--lime) .col:nth-child(4n + 2) .vsf-pola-tape { background: color-mix(in srgb, var(--vs-color-info-border) 45%, transparent); }
.vsf-gems:not(.vsf-gems--lime) .col:nth-child(4n + 3) .vsf-pola-tape { background: color-mix(in srgb, var(--vs-color-success-border) 50%, transparent); }
.vsf-gems:not(.vsf-gems--lime) .col:nth-child(4n + 4) .vsf-pola-tape { background: color-mix(in srgb, var(--vs-color-danger-border) 40%, transparent); }

/* ENTRANCE ANIMATION template (docs/facelift/ENTRANCE_ANIMATION.md). Markup: data-vsf-enter on the element whose direct children
 * fly in. The script (initEnter) adds vsf-enter + vsf-anim (only when motion is allowed) and later is-in; these rules hide the
 * children until then and keep child 1 on top. The ancestor must clip sideways overflow (the theme's .section does). The motion
 * itself is in vs-facelift.js (keyframes are not here: the stylesheet guard test reads a keyframe step as a selector). */
.vsf-enter.vsf-anim > * {
    position: relative;
}

.vsf-enter.vsf-anim:not(.is-in) > * {
    opacity: 0;
}

/* one element that grows in last (data-vsf-pop-last): waits invisible until the motion plug-in starts it */
.vsf-pop-hold:not(.is-in) {
    opacity: 0;
}

.vsf-enter.vsf-anim > :nth-child(1) { z-index: 4; }
.vsf-enter.vsf-anim > :nth-child(2) { z-index: 3; }
.vsf-enter.vsf-anim > :nth-child(3) { z-index: 2; }
.vsf-enter.vsf-anim > :nth-child(n + 4) { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .vsf-enter.vsf-anim:not(.is-in) > *,
    .vsf-pop-hold:not(.is-in) {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsf-pola { transition: none; }
    .vsf-pola:hover { transform: rotate(var(--vsf-tilt, 0deg)); }
}

/* Hidden gems / Worth a look: the grid is a carousel on small screens and the normal Bootstrap grid from 768px */
@media (max-width: 767.98px) {
    .vsf-rail--grid {
        flex-wrap: nowrap;
        gap: 0;
        padding-block: 16px 36px; /* the scroll container clips the tape (top) and the shadow (bottom), give them room */
    }

    .vsf-rail--grid > .col {
        flex: 0 0 min(280px, 78vw);
        width: auto;
        max-width: min(280px, 78vw);
        min-width: 0;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .vsf-rail--grid {
        gap: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    .vsf-carousel--mobile .vsf-carousel-btn,
    .vsf-carousel--mobile .vsf-carousel-dots {
        display: none;
    }
}

/* ===== PR3: Home, Top downloads (override view sections/top-downloads): dark band, ranks, mobile carousel ====
 * The tabs, rotation, TOP 4 panel and podium (D2a) are the .vsf-podium rules at the end of this file.
 */
.vsf-top {
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

.vsf-top .section-title-text,
.vsf-top .section-text {
    color: var(--vs-color-surface);
}

.vsf-top .section-title-text {
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-top .section-header a {
    color: var(--vs-color-brand-accent);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-ranked {
    position: relative;
}

.vsf-rank {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-md);
    font-weight: 700;
}

/* on the dark band the dark focus ring and the dark active dot would disappear */
.vsf-top .vsf-rail:focus-visible,
.vsf-top .vsf-carousel-btn:focus-visible,
.vsf-top .vsf-carousel-dot:focus-visible {
    outline-color: var(--vs-focus-ring-color-on-dark);
}

.vsf-top .vsf-carousel-dot[aria-current="true"]::before {
    background: var(--vs-color-brand-accent);
}


/* ===== PR3: Home, Explore categories (override view sections/categories): look only, the Swiper carousel stays ====
 * Not here: the image mosaic of the mockup (needs a cover image per category, see docs/facelift/CHECKLIST.md).
 * The admin Custom CSS (custom.css) sets padding, icon size and title colour of .home-category with !important;
 * those three stay as the admin set them, everything else below is the facelift look.
 */
.vsf-section-cats .section-title-text {
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-section-cats .section-header a {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-section-cats .home-category {
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-surface);
    text-decoration: none;
}

.vsf-section-cats .home-category:hover {
    border-color: var(--vs-color-brand-accent);
}

.vsf-section-cats .home-category:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

.vsf-section-cats .home-category .home-category-title {
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-section-cats .categories-swiper .swiper-button-prev,
.vsf-section-cats .categories-swiper .swiper-button-next {
    color: var(--vs-color-text-heading);
}

@media (prefers-reduced-motion: reduce) {
    .vsf-section-cats .home-category:hover .home-category-img {
        transform: none;
    }
}

/* ===== PR3: Home, FAQ (override view sections/faqs): look only, the Bootstrap accordion markup stays ============
 * The call-to-action card beside it (D5a) is the .vsf-faq-layout / .vsf-faq-cta rules after this block.
 */
.vsf-faq .section-title-text {
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-faq .accordion-custom .accordion-item {
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-surface);
}

.vsf-faq .accordion-custom .accordion-button {
    border-radius: var(--vs-radius-lg);
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-faq .accordion-custom .accordion-button:not(.collapsed) {
    border-radius: var(--vs-radius-lg) var(--vs-radius-lg) 0 0;
    color: var(--vs-color-text-heading);
}

.vsf-faq .accordion-custom .accordion-button .accordion-button-icon {
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

/* the vendor removes the focus shadow, so keyboard users get a ring instead */
.vsf-faq .accordion-custom .accordion-button:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: -2px;
}

.vsf-faq .accordion-custom .accordion-body {
    color: var(--vs-color-text-body);
    font-size: var(--vs-font-size-body-md);
}

/* ===== PR3: Home, Trending / Best selling / Sale / Free items (override views sections/*-items): same card grid, mobile carousel ==== */
.vsf-section-grid .section-title-text {
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-section-grid .section-header a {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

/* ===== PR4: Item details (override view items/layout, body class vsf-item-page): look only ======================
 * The page structure, tabs, download / premium / purchase boxes and every custom hook stay exactly as the vendor
 * view has them; only card edges, radius, type and focus rings change. Badge colours stay the admin-set ones.
 * Not here (new content, see docs/facelift/CHECKLIST.md): spec tiles, "Best for" chips, "Read full description",
 * comments inside the description, related-items polaroids.
 */
body.vsf-item-page .item-single-title {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-title);
}

body.vsf-item-page .card-v.border {
    border-color: var(--vs-color-border);
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-surface);
}

body.vsf-item-page .card-v-header.border-bottom {
    border-color: var(--vs-color-border);
}

body.vsf-item-page .item-single-img img {
    border-radius: var(--vs-radius-xl);
}

body.vsf-item-page .item-badge {
    border-radius: var(--vs-radius-full);
    font-weight: var(--vs-font-weight-card-title);
}

body.vsf-item-page .tabs-custom .btn {
    border-radius: var(--vs-radius-lg);
}

body.vsf-item-page .item-single-paragraph {
    color: var(--vs-color-text-body);
    line-height: var(--vs-line-height-body);
}

body.vsf-item-page .tabs-custom a:focus-visible,
body.vsf-item-page .tabs-custom .btn:focus-visible,
body.vsf-item-page .item-slide-img:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

/* Lavender of the design (#F3F1FF and #E8E5FA, read from the design canvas) built from the token colours: purple with a little
 * blue over white (6.3% + 1.3% and 11.3% + 2.9%, worked out from the two target colours). Used by the title band and the How to use it card. */
/* Item details, design step 1 (owner, 2026-11-12, "Item details new design"): the title area is a soft white-to-lavender band
 * with the breadcrumb, a bold title and a round favourite button. CSS only: the page structure and the view stay exactly as
 * the layout drift test requires (Bootstrap's pt-5/pb-3 on the section keep their padding). The favourited state keeps the
 * admin's colour. */
/* the section holds the whole item content, so the band is a full-width layer behind the title area only; the vendor .section has
   overflow hidden, so the 100vw layer cannot make a sideways scrollbar */
body.vsf-item-page .section.forced-start .section-header {
    position: relative;
    isolation: isolate;
}

body.vsf-item-page .section.forced-start .section-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc((var(--vs-spacing-xl) + var(--vs-spacing-md)) * -1); /* the section padding above: the band starts at the section top (the section clips there) */
    bottom: calc((var(--vs-spacing-xl) + var(--vs-spacing-sm)) * -1);
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: linear-gradient(135deg, var(--vs-color-surface) 0%, color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 83%, var(--vs-color-badge-trending)) 7.6%, var(--vs-color-surface)) 55%, color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 80%, var(--vs-color-badge-trending)) 14.2%, var(--vs-color-surface)) 100%);
    border-bottom: 1px solid var(--vs-color-border);
}

body.vsf-item-page .section.forced-start .breadcrumb {
    margin-bottom: var(--vs-spacing-md); /* air between the breadcrumb and the title */
    font-size: var(--vs-font-size-body-sm);
}

body.vsf-item-page .section.forced-start .breadcrumb a {
    color: var(--vs-color-text-body);
}

body.vsf-item-page .section.forced-start .breadcrumb-item.active {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

body.vsf-item-page .section.forced-start .item-single-title {
    font-size: var(--vs-font-size-heading-md);
    font-weight: 700;
    line-height: 1.25;
}

body.vsf-item-page .section.forced-start .btn-outline-custom,
body.vsf-item-page .section.forced-start .btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--vs-radius-full);
}

body.vsf-item-page .section.forced-start .btn-outline-custom {
    border: 1px solid var(--vs-color-border);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-heading);
}

/* Item details spacing, columns and picture (owner, 2026-11-12, design canvas): band padding 28px above, 32px below the title, 32px
 * between the band and the content; columns 8/4 (set in the view, col-lg-8 / col-lg-4); the picture has no card, white box or padding
 * around it, only the picture itself (rounded stage with a thin border). The empty AdSense rows keep no extra margin. */
body.vsf-item-page .section.vsf-item-top {
    padding-top: calc(var(--vs-spacing-xl) + var(--vs-spacing-md)); /* 48px: room above the breadcrumb (owner: the top was too tight) */
    overflow: hidden;
    overflow: clip; /* the vendor .section has overflow hidden, which makes the section a scroll box and kills position: sticky; clip keeps the same cutting and does not */
}

body.vsf-item-page .vsf-item-top .vsf-item-head {
    margin-bottom: calc(var(--vs-spacing-xl) * 2 + var(--vs-spacing-sm)); /* 40px of band below the title + 32px of air */
}

body.vsf-item-page .vsf-item-stage .item-single-img img {
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-xl);
}

/* Item details, design step 2 (owner, 2026-11-12): the right-hand cards. The Free Item card gets a "FREE ITEM" badge for its title,
 * a pill Download button in the brand lime and a bigger radius, like the design's download card. CSS only. The Bootstrap
 * utilities on the card (py-3, border-bottom) carry !important, so the thin line under the title stays and is not fought. The
 * "Support us" card is inline-styled in the custom donate-box view (inline colours and !important), so CSS cannot restyle it
 * (a separate decision, see docs/facelift/CHECKLIST.md). */
body.vsf-item-page .vsf-item-aside .card-v.p-0 {
    border-radius: var(--vs-radius-xl);
    overflow: hidden;
}

body.vsf-item-page .vsf-item-aside .vsf-info-card--first > .card-v-header h5 {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-badge-free);
    color: var(--vs-color-surface);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.vsf-item-page .vsf-item-aside .card-v.p-0 .card-v-body .btn-primary.w-100,
body.vsf-item-page .vsf-item-aside .vsf-info-card--first .card-v-body .btn-primary.w-100 {
    min-height: 52px;
    border-color: var(--vs-color-brand-accent);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-weight: 600;
}

body.vsf-item-page .vsf-item-aside .card-v.p-0 .card-v-body .btn-primary.w-100:hover,
body.vsf-item-page .vsf-item-aside .card-v.p-0 .card-v-body .btn-primary.w-100:focus-visible,
body.vsf-item-page .vsf-item-aside .vsf-info-card--first .card-v-body .btn-primary.w-100:hover,
body.vsf-item-page .vsf-item-aside .vsf-info-card--first .card-v-body .btn-primary.w-100:focus-visible {
    border-color: color-mix(in srgb, var(--vs-color-brand-accent) 85%, var(--vs-color-brand-secondary));
    background: color-mix(in srgb, var(--vs-color-brand-accent) 85%, var(--vs-color-brand-secondary));
    color: var(--vs-color-text-on-primary);
}

/* Item details, design step 3: the dark "Support us" card (custom view facelift-donate-box, included by the facelift item layout
 * instead of the inline-styled custom donate-box). Tokens only: dark = brand secondary, yellow = the warning border token
 * (#FFD854 in the token file, which is the design's coffee yellow), lime = brand accent. */
.vsf-donate {
    position: relative;
    margin-bottom: var(--vs-spacing-lg);
    padding: 28px 28px 30px;
    overflow: hidden;
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--vs-color-brand-secondary) 25%, transparent);
}

.vsf-donate-glow {
    position: absolute;
    border-radius: var(--vs-radius-full);
    pointer-events: none;
}

.vsf-donate-glow--a {
    top: -50px;
    right: -50px;
    width: 190px;
    height: 190px;
    background: color-mix(in srgb, var(--vs-color-warning-border) 18%, transparent);
}

.vsf-donate-glow--b {
    right: 38px;
    bottom: -64px;
    width: 120px;
    height: 120px;
    background: color-mix(in srgb, var(--vs-color-brand-accent) 14%, transparent);
}

.vsf-donate-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--vs-spacing-md);
}

.vsf-donate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-warning-border);
    color: var(--vs-color-text-on-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vsf-donate-badge svg {
    fill: currentColor;
}

.vsf-donate-title {
    margin: 14px 0 0;
    color: var(--vs-color-surface);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.vsf-donate-cup {
    flex: 0 0 84px;
}

.vsf-donate-steam {
    stroke: var(--vs-color-warning-border);
}

.vsf-donate-cup-body {
    fill: var(--vs-color-warning-border);
    stroke: var(--vs-color-warning-border);
}

.vsf-donate-cup-base {
    stroke: var(--vs-color-brand-accent);
}

.vsf-donate-text {
    position: relative;
    margin: 14px 0 0;
    color: color-mix(in srgb, var(--vs-color-surface) 88%, transparent);
    line-height: 1.65;
}

.vsf-donate-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 22px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-warning-border);
    color: var(--vs-color-text-on-primary);
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--vs-color-warning-border) 35%, transparent);
}

.vsf-donate-btn:hover,
.vsf-donate-btn:focus-visible {
    background: color-mix(in srgb, var(--vs-color-warning-border) 85%, var(--vs-color-surface));
    color: var(--vs-color-text-on-primary);
}

.vsf-donate-btn:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 3px;
}

/* Item details, design step 5: "Most popular" as a full-width black band like the footer (custom view facelift-suggested-popular; "Suggested for you"
 * reuses the taped frames .vsf-gems / .vsf-pola). Tokens only: dark = brand secondary, ranks and badges = brand accent. */
.vsf-popular {
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

.vsf-popular-title {
    margin: 0 0 28px;
    color: var(--vs-color-surface);
    font-size: 28px;
    font-weight: 600;
}

.vsf-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.vsf-popular-row {
    display: grid;
    grid-template-columns: 52px 112px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--vs-color-surface) 25%, transparent);
    border-radius: var(--vs-radius-xl);
    color: var(--vs-color-surface);
    text-decoration: none;
}

.vsf-popular-row:hover,
.vsf-popular-row:focus-visible {
    border-color: var(--vs-color-brand-accent);
    color: var(--vs-color-surface);
}

.vsf-popular-row:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-color-brand-accent);
    outline-offset: 2px;
}

.vsf-popular-rank {
    color: var(--vs-color-brand-accent);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.vsf-popular-img {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-brand-secondary);
    object-fit: cover;
}

.vsf-popular-body {
    display: block;
    min-width: 0;
}

.vsf-popular-cat {
    display: block;
    color: var(--vs-color-brand-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vsf-popular-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vsf-popular-name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vsf-popular-name {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.vsf-popular-text {
    margin-top: 8px;
    color: color-mix(in srgb, var(--vs-color-surface) 82%, transparent);
    font-size: 13px;
    line-height: 1.65;
}

.vsf-popular-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    font-size: 13px;
}

.vsf-popular-badge {
    padding: 3px 10px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vsf-popular-stat {
    color: color-mix(in srgb, var(--vs-color-surface) 90%, transparent);
}

@media (max-width: 1100px) {
    .vsf-popular-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .vsf-popular-row {
        grid-template-columns: 36px 80px minmax(0, 1fr);
        gap: var(--vs-spacing-md);
        padding: var(--vs-spacing-md);
    }

    .vsf-popular-rank {
        font-size: 28px;
    }

    .vsf-popular-img {
        width: 80px;
        height: 80px;
    }
}

/* Sticky sidebar (owner, 2026-11-12): from the lg breakpoint the right column stays in view while the left column scrolls. It must
 * not stretch to the row height (align-self), and the section above must not be a scroll box (overflow clip). When the sidebar is
 * taller than the screen the script (initAside in vs-facelift.js) gives it a negative top, so its bottom stays in view instead of
 * its top; without the script it sticks 24px from the top. */
@media (min-width: 992px) {
    body.vsf-item-page .vsf-item-aside {
        position: sticky;
        top: var(--vs-spacing-lg);
        align-self: flex-start;
    }
}

/* Item details, design step 8 (owner, 2026-11-12): (1) no white box around the description area (class vsf-item-about; the spec tiles
 * and the chips keep their own look, in the design's lavender); (2) the sidebar info cards become ONE card like the owner's
 * picture: Featured Item first and apart, then Free Item (badge, Download), downloads, details, share joined into one card, then
 * Support us last, under the joined card (owner, 2026-11-12: it was above, then he asked to move it down). The cards are siblings, so flex "order" does the arranging; only the classes changed in the view.
 * The Bootstrap utilities with !important (mt-4, p-4, border) were taken off these cards in the view, the border colour of the
 * rows inside still comes from --bs-border-color. */
body.vsf-item-page .vsf-item-about {
    margin-bottom: var(--vs-spacing-lg);
}

body.vsf-item-page .vsf-item-aside {
    display: flex;
    flex-direction: column;
}

body.vsf-item-page .vsf-item-aside > .vsf-info-featured { order: 1; margin-bottom: var(--vs-spacing-lg); }
body.vsf-item-page .vsf-item-aside > .card-v.p-0:not(.vsf-info-card) { order: 2; }
body.vsf-item-page .vsf-item-aside > .vsf-info-card { order: 3; }
body.vsf-item-page .vsf-item-aside > .vsf-info-card--first { order: 2; }
body.vsf-item-page .vsf-item-aside > .vsf-info-card--last { order: 4; }
body.vsf-item-page .vsf-item-aside > .vsf-donate { order: 5; }

body.vsf-item-page .vsf-item-aside .vsf-info-card {
    margin: 0;
    padding: var(--vs-spacing-md) var(--vs-spacing-lg);
    border: 1px solid var(--vs-color-border);
    border-top-width: 0;
    border-radius: 0;
    background: var(--vs-color-surface);
}

body.vsf-item-page .vsf-item-aside .vsf-info-card--first {
    padding: 0;
    border-top-width: 1px;
    border-radius: var(--vs-radius-xl) var(--vs-radius-xl) 0 0;
}

body.vsf-item-page .vsf-item-aside .vsf-info-card--last {
    margin-bottom: var(--vs-spacing-lg);
    border-radius: 0 0 var(--vs-radius-xl) var(--vs-radius-xl);
}

/* Free Item card: the badge row without its line, no explaining paragraph (the badge says it), Download straight under */
body.vsf-item-page .vsf-item-aside .vsf-info-card--first > .card-v-header {
    --bs-border-color: transparent;
}

body.vsf-item-page .vsf-item-aside .vsf-info-card--first > .card-v-body {
    padding-top: 0;
}

body.vsf-item-page .vsf-item-aside .vsf-info-card--first .card-v-body > p {
    display: none;
}

/* downloads line, details rows, tags as chips, share row */
body.vsf-item-page .vsf-item-aside .vsf-info-card > h5 {
    margin: 0;
    font-size: var(--vs-font-size-body-sm);
    font-weight: 400;
}

body.vsf-item-page .vsf-item-aside .vsf-info-card .small .d-flex:last-child {
    flex-direction: column;
    gap: var(--vs-spacing-sm);
}

body.vsf-item-page .vsf-item-aside .vsf-info-card .small .d-flex:last-child > .col-7 {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: var(--vs-spacing-sm);
    width: auto;
    max-width: none;
    font-size: 0; /* hides the commas between the tag links */
}

body.vsf-item-page .vsf-item-aside .vsf-info-card .small .d-flex:last-child > .col-7 a {
    padding: var(--vs-spacing-xs) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 87.5%, var(--vs-color-badge-trending)) 14.4%, var(--vs-color-surface));
    color: color-mix(in srgb, var(--vs-color-badge-free) 75%, var(--vs-color-text-heading));
    font-size: 12px;
    text-decoration: none;
}

/* Details folded under one title (script initDetails adds the button, the box vsf-details-body and the class vsf-details-folded; without the
 * script, or without the translated title in data-vsf-details, the rows stay open) */
body.vsf-item-page .vsf-item-aside .vsf-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    cursor: pointer;
}

body.vsf-item-page .vsf-item-aside .vsf-details-toggle i {
    transition: transform 0.2s ease;
}

body.vsf-item-page .vsf-item-aside .vsf-details-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

body.vsf-item-page .vsf-item-aside .vsf-details-toggle:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

/* the box slides: a one-row grid whose row goes from 1fr (open) to 0fr (folded); the inner box has min-height 0 and cuts what does not fit.
   Folded also hides the rows from keyboard and screen readers (visibility), after the slide has finished. */
body.vsf-item-page .vsf-item-aside .vsf-details-body {
    display: grid;
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.2s ease;
}

body.vsf-item-page .vsf-item-aside .vsf-details-inner {
    min-height: 0;
    overflow: hidden;
}

/* the air under the title is padding of the first ROW, not of the inner box: padding of the box itself would stay when it is folded */
body.vsf-item-page .vsf-item-aside .vsf-details-inner > :first-child {
    padding-top: var(--vs-spacing-md);
}

body.vsf-item-page .vsf-item-aside .vsf-details-folded > .vsf-details-body {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.2s ease, visibility 0s linear 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    body.vsf-item-page .vsf-item-aside .vsf-details-toggle i,
    body.vsf-item-page .vsf-item-aside .vsf-details-body,
    body.vsf-item-page .vsf-item-aside .vsf-details-folded > .vsf-details-body {
        transition: none;
    }
}

/* Item page tabs (Description, Comments, Reviews, ...) as underline tabs instead of buttons (owner, 2026-11-12, his picture): plain text,
 * the open tab in the heading colour with a purple bar, a thin line under all of them. Only classes and CSS: the links, their texts and
 * the comments counter (Livewire) are the vendor's. The open tab is the one the vendor marks btn-primary. */
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 var(--vs-spacing-lg);
    border-bottom: 1px solid var(--vs-color-border);
}

body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child > .col {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    margin: 0;
}

body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn:hover,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn:focus,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn:active {
    width: auto;
    margin-bottom: -1px;
    padding: var(--vs-spacing-md) var(--vs-spacing-lg);
    border: 0;
    border-bottom-width: 3px; /* longhands: the colour guard test reads the border-bottom shorthand, and the colour here is "no colour yet" */
    border-bottom-style: solid;
    border-bottom-color: transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: color-mix(in srgb, var(--vs-color-text-body) 80%, var(--vs-color-surface));
    font-weight: 600;
}

body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn:hover,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary:hover,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary:focus,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary:active {
    color: var(--vs-color-text-heading);
}

body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary:hover,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary:focus,
body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn-primary:active {
    border-bottom-color: var(--vs-color-badge-free);
}

body.vsf-item-page .tabs-custom .vsf-item-about > .row:first-child .btn i {
    display: none; /* the small icons of the buttons are not part of the tab look */
}

/* ITEM CARD like the design canvas (owner, 2026-11-12). The card is the design system's <x-vs-item-card>; its markup and file stay as they are.
 * Radius: the DS token --vs-item-card-radius is set here, 20px (the canvas value) on the facelift's pages and 5px inside a taped photo frame
 * (nested inside a frame that has the card step). The sub-category (category line) comes FIRST in violet capitals, then the title (two lines), the description in
 * grey, a line, and in the footer the FREE pill with the download count. Only the rails of the home page, the listing pages and the item page
 * are touched (the wrappers named below); every other card on the site keeps the DS look. */
.vsf-rail .vs-item-card,
body.vsf-listing-page .vs-item-card,
body.vsf-item-page .vs-item-card {
    --vs-item-card-radius: var(--vs-radius-xl);
}

.vsf-rail .vsf-pola .vs-item-card,
body.vsf-listing-page .vsf-pola .vs-item-card,
body.vsf-item-page .vsf-pola .vs-item-card {
    --vs-item-card-radius: var(--vs-radius-lg);
}

.vsf-rail .vs-item-card .vs-item-card__body > .vs-item-card__meta,
body.vsf-listing-page .vs-item-card .vs-item-card__body > .vs-item-card__meta,
body.vsf-item-page .vs-item-card .vs-item-card__body > .vs-item-card__meta {
    order: -1;
    margin: 0 0 var(--vs-spacing-xs);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vsf-rail .vs-item-card .vs-item-card__meta .vs-item-card__category,
body.vsf-listing-page .vs-item-card .vs-item-card__meta .vs-item-card__category,
body.vsf-item-page .vs-item-card .vs-item-card__meta .vs-item-card__category,
.vsf-rail .vs-item-card .vs-item-card__meta .vs-item-card__category a,
body.vsf-listing-page .vs-item-card .vs-item-card__meta .vs-item-card__category a,
body.vsf-item-page .vs-item-card .vs-item-card__meta .vs-item-card__category a {
    color: var(--vs-color-badge-free);
    font-weight: 600;
}

.vsf-rail .vs-item-card .vs-item-card__title,
body.vsf-listing-page .vs-item-card .vs-item-card__title,
body.vsf-item-page .vs-item-card .vs-item-card__title {
    display: block;
    margin: 0 0 var(--vs-spacing-xs);
    color: var(--vs-color-text-heading);
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vsf-rail .vs-item-card .vs-item-card__desc,
body.vsf-listing-page .vs-item-card .vs-item-card__desc,
body.vsf-item-page .vs-item-card .vs-item-card__desc {
    margin-top: var(--vs-spacing-xs);
    color: color-mix(in srgb, var(--vs-color-text-body) 80%, var(--vs-color-surface));
    font-size: var(--vs-font-size-body-sm);
    line-height: 1.5;
}

.vsf-rail .vs-item-card .vs-item-card__purchase,
body.vsf-listing-page .vs-item-card .vs-item-card__purchase,
body.vsf-item-page .vs-item-card .vs-item-card__purchase {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: var(--vs-spacing-sm);
}

.vsf-rail .vs-item-card .vs-item-card__price,
body.vsf-listing-page .vs-item-card .vs-item-card__price,
body.vsf-item-page .vs-item-card .vs-item-card__price {
    padding: 3px 10px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-badge-free);
    color: var(--vs-color-surface);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vsf-rail .vs-item-card .vs-item-card__stat,
body.vsf-listing-page .vs-item-card .vs-item-card__stat,
body.vsf-item-page .vs-item-card .vs-item-card__stat {
    margin-top: 0;
}

/* Not shown on the facelift cards (owner, 2026-11-13): the FREE badge on the picture (the footer pill says it) and the eye button. */
.vsf-rail .vs-item-card .vs-item-card__badge--free,
body.vsf-listing-page .vs-item-card .vs-item-card__badge--free,
body.vsf-item-page .vs-item-card .vs-item-card__badge--free {
    display: none;
}

.vsf-rail .vs-item-card .vs-item-card__action--secondary,
body.vsf-listing-page .vs-item-card .vs-item-card__action--secondary,
body.vsf-item-page .vs-item-card .vs-item-card__action--secondary {
    display: none; /* the "View Item" eye: the title and the picture are the links (owner, 2026-11-13) */
}

/* the footer's top line: a quiet shade of the footer instead of the light grey line that showed against a black band above */
.footer {
    border-top-color: color-mix(in srgb, var(--vs-color-surface) 8%, var(--vs-color-brand-secondary));
}

/* ===== Hero copy (override view home): left aligned and bold like the design ================================
 * The vendor .header rules centre the text and custom.css gives the old heading a text shadow with !important; the
 * override gives the heading its own class instead of fighting those rules. Tokens only, no !important.
 */
.vsf-hero .vsf-hero-copy {
    max-width: none;
    margin: 0;
    text-align: left;
}

.vsf-hero-eyebrow {
    display: inline-block;
    padding: var(--vs-spacing-xs) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.04em;
}

.vsf-hero .vsf-hero-title {
    width: 100%;
    margin: var(--vs-spacing-md) 0 0;
    color: var(--vs-color-surface);
    font-size: calc(var(--vs-font-size-heading-md) * 1.5);
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
}

/* owner, 2026-11-13: 60px (display 45px x 4/3) on a wide screen; from 768px to 1199px 45px (at 60px the text column of a 1000px screen needs 6 lines); phones keep 42px */
@media (min-width: 768px) {
    .vsf-hero .vsf-hero-title {
        font-size: var(--vs-font-size-display);
    }
}

@media (min-width: 1200px) {
    .vsf-hero .vsf-hero-title {
        font-size: calc(var(--vs-font-size-display) * 4 / 3);
    }
}

.vsf-hero .vsf-hero-text {
    width: 100%;
    margin: var(--vs-spacing-md) 0 0;
    color: var(--vs-color-surface);
    text-align: left;
}

.vsf-hero-search {
    max-width: 560px;
    margin-top: var(--vs-spacing-lg);
}

.vsf-hero-search .search-input {
    display: flex;
    gap: var(--vs-spacing-sm);
}

.vsf-hero-search .search-input input {
    flex: 1 1 200px;
    min-width: 0;
    height: calc(var(--vs-spacing-xl) * 1.625);
    box-sizing: border-box;
    padding: 0 var(--vs-spacing-lg);
    border: 2px solid var(--vs-color-surface);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-body);
    font-size: var(--vs-font-size-body-md);
}

.vsf-hero-search .search-input .btn {
    height: calc(var(--vs-spacing-xl) * 1.625);
    padding: 0 var(--vs-spacing-lg);
    border: 0;
    border-radius: var(--vs-radius-lg);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-hero-search .search-input input:focus-visible,
.vsf-hero-search .search-input .btn:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

/* ===== D1a: Home hero bento (override view home) ======================================================
 * Keeps the admin-managed background, headline, text and search (left); adds up to two featured tiles and the
 * "see all new" tile (right). custom.css fixes the banner at 400px, so the bento lets the header grow; the
 * selectors below are more specific than custom.css, so no !important is needed. Tokens only.
 */
.vsf-hero.header,
.vsf-hero.header .header-inner {
    height: auto;
    min-height: 0;
}

@media (min-width: 992px) {
    .vsf-hero.header {
        min-height: 400px;
    }
}

.vsf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--vs-spacing-lg);
    align-items: start; /* owner, 2026-11-13: the text starts at the top, level with the first tile (was centred) */
    padding: var(--vs-spacing-lg) 0;
}

.vsf-hero-grid .vsf-hero-copy {
    max-width: none;
}

.vsf-hero-carousel {
    min-width: 0;
}

/* below 768px the tiles are one swipe row with dots (.vsf-rail + the controller); the grid of the design starts at 768px */
.vsf-hero-tiles {
    gap: var(--vs-spacing-md);
}

.vsf-hero-tiles > .vsf-hero-tile {
    flex: 0 0 84%;
    min-height: 320px;
    scroll-snap-align: start;
}

.vsf-hero-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 180px;
    overflow: hidden;
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
    text-decoration: none;
}

.vsf-hero-tile--lead {
    min-height: 320px;
}

.vsf-hero-tile--lead .vsf-hero-tile-name {
    -webkit-line-clamp: 3;
    font-size: calc(var(--vs-font-size-heading-sm) * 1.5);
}

.vsf-hero-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vsf-hero-badge {
    position: absolute;
    top: var(--vs-spacing-md);
    left: var(--vs-spacing-md);
    padding: var(--vs-spacing-xs) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-hero-tile-body {
    position: relative;
    display: block;
    width: 100%;
    padding: calc(var(--vs-spacing-xl) * 1.25) var(--vs-spacing-md) var(--vs-spacing-md);
    background: linear-gradient(to top, var(--vs-color-brand-secondary) 0%, color-mix(in srgb, var(--vs-color-brand-secondary) 82%, transparent) 60%, transparent 100%);
}

.vsf-hero-tile-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vsf-hero-tile-name {
    font-size: var(--vs-font-size-heading-sm);
    font-weight: var(--vs-font-weight-card-title);
    line-height: 1.3;
}

.vsf-hero-tile--cta {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--vs-spacing-md);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-hero-tile--cta:only-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
}

.vsf-hero-cta-kicker {
    font-size: var(--vs-font-size-body-md);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vsf-hero-cta-title {
    display: block;
    font-size: calc(var(--vs-font-size-body-md) * 1.5);
    line-height: 1.2;
    font-weight: var(--vs-font-weight-title);
}

.vsf-hero-cta-link {
    display: block;
    margin-top: var(--vs-spacing-sm);
    font-size: calc(var(--vs-font-size-body-md) * 1.125);
}

/* until the pop starts the tiles wait invisible, so they never show first and then restart (class set by the small script in custom/facelift-hero-tiles,
   only when the pop can play; removed by playPop() or after 2 s). Without that class nothing is hidden. */
body.vsf-pop-wait .vsf-hero-tile {
    opacity: 0;
}

.vsf-hero-tile:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

/* the arrangement of the design: one tall featured tile on the left, the second featured tile above the lime tile on the right */
@media (min-width: 768px) {
    .vsf-hero-tiles {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        /* right column: the featured tile takes 13 parts, the lime tile 7 (30% lower than the 10 : 10 split before) */
        grid-template-rows: minmax(0, 13fr) minmax(0, 7fr);
        overflow: visible;
        scroll-snap-type: none;
    }

    .vsf-hero-tiles > .vsf-hero-tile {
        flex: none;
        min-height: 0;
    }

    /* the block keeps the height it had (two 320px tiles and the gap); the two right tiles share it 13 : 7 */
    .vsf-hero-tiles > .vsf-hero-tile--lead {
        grid-column: 1;
        grid-row: 1 / span 2;
        min-height: calc(320px * 2 + var(--vs-spacing-md));
    }

    .vsf-hero-tile--small,
    .vsf-hero-tile--cta {
        grid-column: 2;
    }
}

@media (min-width: 992px) {
    .vsf-hero-grid:not(.vsf-hero-grid--solo) {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

/* ===== D2a: Top downloads podium (override view sections/top-downloads + custom/facelift-top-podium) =========
 * Tabs (only periods with data), pause button, "TOP 4" panel, podium (rank 1 largest). Tokens only, no !important.
 */
.vsf-podium {
    margin-bottom: var(--vs-spacing-xl);
}

.vsf-podium-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--vs-spacing-md);
    margin-bottom: var(--vs-spacing-lg);
}

.vsf-podium-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vs-spacing-sm);
}

.vsf-podium-tab,
.vsf-podium-rotate {
    min-height: 44px;
    padding: 0 var(--vs-spacing-lg);
    border: 2px solid var(--vs-color-brand-accent);
    border-radius: var(--vs-radius-full);
    background: transparent;
    color: var(--vs-color-surface);
    font-size: var(--vs-font-size-body-md);
    font-weight: var(--vs-font-weight-card-title);
    cursor: pointer;
}

.vsf-podium-tab[aria-pressed="true"] {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-podium-rotate {
    border-color: var(--vs-color-text-muted);
}

.vsf-podium-tab:focus-visible,
.vsf-podium-rotate:focus-visible,
.vsf-pod-card:focus-visible,
.vsf-pod-more:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

.vsf-pod {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--vs-spacing-lg);
    align-items: stretch;
}

.vsf-pod-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--vs-spacing-lg);
    padding: var(--vs-spacing-lg);
    border: 2px solid color-mix(in srgb, var(--vs-color-text-muted) 20%, var(--vs-color-brand-secondary));
    border-radius: var(--vs-radius-xl);
}

.vsf-pod-kicker {
    color: var(--vs-color-brand-accent);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vsf-pod-lead {
    margin-top: var(--vs-spacing-sm);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-pod-more {
    display: inline-block;
    margin-top: var(--vs-spacing-md);
    padding: var(--vs-spacing-sm) var(--vs-spacing-lg);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-weight: var(--vs-font-weight-card-title);
    text-decoration: none;
}

.vsf-pod-big {
    color: transparent;
    -webkit-text-stroke: 2px var(--vs-color-brand-accent);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.vsf-pod-card {
    display: flex;
    flex-direction: column;
    gap: var(--vs-spacing-xs);
    color: var(--vs-color-surface);
    text-decoration: none;
}

.vsf-pod-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--vs-color-text-muted) 20%, var(--vs-color-brand-secondary));
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-brand-secondary);
}

.vsf-pod-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vsf-pod-rank {
    position: absolute;
    top: var(--vs-spacing-sm);
    left: var(--vs-spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--vs-spacing-xl) * 1.5);
    height: calc(var(--vs-spacing-xl) * 1.5);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-heading-sm);
    font-weight: 700;
}

.vsf-pod-card--first .vsf-pod-rank {
    top: var(--vs-spacing-md);
    left: var(--vs-spacing-md);
    width: calc(var(--vs-spacing-xl) * 2.5);
    height: calc(var(--vs-spacing-xl) * 2.5);
    font-size: var(--vs-font-size-heading-md);
}

.vsf-pod-cat {
    margin-top: var(--vs-spacing-sm);
    color: var(--vs-color-brand-accent);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vsf-pod-name {
    overflow: hidden;
    font-size: var(--vs-font-size-heading-sm);
    font-weight: var(--vs-font-weight-card-title);
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vsf-pod-card--first .vsf-pod-name {
    font-size: var(--vs-font-size-heading-md);
}

.vsf-pod-desc,
.vsf-pod-stat {
    font-size: var(--vs-font-size-body-sm);
    line-height: var(--vs-line-height-body);
}

.vsf-pod-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vsf-pod-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vs-spacing-sm);
    margin-top: auto;
    padding-top: var(--vs-spacing-md);
    border-top: 1px solid color-mix(in srgb, var(--vs-color-text-muted) 20%, var(--vs-color-brand-secondary));
}

.vsf-pod-free {
    padding: var(--vs-spacing-xs) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vsf-pod-stat {
    margin-left: auto;
    color: var(--vs-color-surface);
}

/* below 768px: the TOP 4 panel, then the cards as one swipe row with dots */
.vsf-pod-cards {
    gap: var(--vs-spacing-md);
}

.vsf-pod-cards > .vsf-pod-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .vsf-pod {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vsf-pod-intro {
        grid-column: 1 / -1;
    }

    /* the wrappers of the swipe row vanish, so the cards are the grid items again */
    .vsf-pod-car,
    .vsf-pod-car .vsf-carousel-stage,
    .vsf-pod-cards {
        display: contents;
    }

    .vsf-pod-cards > .vsf-pod-card {
        flex: none;
    }
}

@media (min-width: 992px) {
    .vsf-pod {
        grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr));
    }

    .vsf-pod-intro {
        grid-column: 2 / -1;
        grid-row: 1;
    }

    .vsf-pod-card--first {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
}

/* ===== Explore categories mosaic (override view sections/categories; design of 2026-11-11) ====================
 * Six admin categories as tiles (the first one big), then a lime "all categories" tile. Own classes (not
 * .home-category), because custom.css sets padding and image size on that with !important. Tokens only.
 * Desktop: 3 columns, the first tile spans two rows, tiles 2 to 5 fill the right side, the sixth and the lime tile
 * are the third row. Below 768px the tiles are one swipeable row (scroll snap).
 */
.vsf-cats-grid {
    display: flex;
    gap: var(--vs-spacing-md);
    overflow-x: auto;
    padding-bottom: var(--vs-spacing-sm);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.vsf-cats-grid::-webkit-scrollbar {
    display: none;
}

.vsf-cat-tile {
    position: relative;
    display: flex;
    flex: 0 0 72%;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-surface);
    color: var(--vs-color-surface);
    text-decoration: none;
    scroll-snap-align: start;
}

.vsf-cat-tile-img,
.vsf-cat-tile-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.vsf-cat-tile--icon .vsf-cat-tile-icon {
    inset: var(--vs-spacing-lg) var(--vs-spacing-lg) calc(var(--vs-spacing-xl) * 3);
    width: calc(100% - var(--vs-spacing-xl) * 2);
    height: calc(100% - var(--vs-spacing-xl) * 4.5);
    object-fit: contain;
}

.vsf-cat-tile-body {
    position: relative;
    display: block;
    padding: calc(var(--vs-spacing-xl) * 2) var(--vs-spacing-lg) var(--vs-spacing-lg);
    background: linear-gradient(to top, var(--vs-color-brand-secondary) 0%, color-mix(in srgb, var(--vs-color-brand-secondary) 80%, transparent) 55%, transparent 100%);
}

.vsf-cat-tile-name,
.vsf-cat-tile-link {
    display: block;
}

.vsf-cat-tile-name {
    font-size: calc(var(--vs-font-size-heading-sm) * 1.4);
    font-weight: var(--vs-font-weight-card-title);
    line-height: 1.25;
}

.vsf-cat-tile--1 .vsf-cat-tile-name {
    font-size: var(--vs-font-size-heading-md);
}

.vsf-cat-tile-link {
    margin-top: var(--vs-spacing-xs);
    color: var(--vs-color-brand-accent);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-cat-tile--cta {
    justify-content: space-between;
    padding: var(--vs-spacing-lg);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-cat-cta-kicker {
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vsf-cat-cta-title {
    display: block;
    font-size: calc(var(--vs-font-size-heading-sm) * 1.4);
    font-weight: 700;
}

.vsf-cat-cta-link {
    display: block;
    margin-top: var(--vs-spacing-sm);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-cat-tile:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .vsf-cats-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.95fr) repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(240px, auto);
        overflow: visible;
        padding-bottom: 0;
    }

    .vsf-cat-tile {
        flex: none;
        min-height: 0;
    }

    .vsf-cat-tile--1 {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .vsf-cat-tile--6 {
        grid-column: 1;
        grid-row: 3;
    }

    .vsf-cat-tile--cta {
        grid-column: 2 / -1;
        grid-row: 3;
    }
}

/* ===== D4a: See it in real life (custom/facelift-real-life, content in config/vsf_real_life.php) ==============
 * Site-owned stand-in (no design-system component for it). Tokens only; card tints use the neutral background/border tokens
 * (the canvas pastel gradients have no tokens).
 */
.vsf-reallife {
    padding: var(--vs-spacing-section-default) 0;
    /* white on the left, a soft lavender on the right (owner's design picture, 2026-11-12) */
    background: linear-gradient(to right, var(--vs-color-surface) 0%, color-mix(in srgb, var(--vs-color-badge-free) 9%, var(--vs-color-surface)) 100%);
    border-top: 1px solid var(--vs-color-border);
    border-bottom: 1px solid var(--vs-color-border);
}

.vsf-reallife-top {
    display: grid;
    gap: var(--vs-spacing-lg);
    align-items: center;
    margin-bottom: var(--vs-spacing-xl);
}

.vsf-reallife-badge {
    display: inline-block;
    padding: var(--vs-spacing-sm) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vsf-reallife-title {
    margin: var(--vs-spacing-md) 0 0;
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-title);
}

.vsf-reallife-intro {
    max-width: 460px;
    margin: var(--vs-spacing-md) 0 0;
    color: var(--vs-color-text-body);
    line-height: var(--vs-line-height-body);
}

.vsf-reallife-hero {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply; /* the picture's pale background takes the section gradient, so no visible box edge */
}

.vsf-reallife-cards {
    gap: var(--vs-spacing-md);
}

/* below 768px the four cards are one swipe row with dots; from 768px a grid */
.vsf-reallife-cards > .vsf-reallife-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
}

.vsf-reallife-card {
    position: relative;
    display: flex;
    min-height: 176px;
    overflow: hidden;
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-xl);
    /* each card has its own colour (design of 2026-11-11): a soft wash from the corner, the icon box in the same hue */
    background: linear-gradient(135deg, color-mix(in srgb, var(--vsf-tint) 20%, var(--vs-color-surface)) 0%, var(--vs-color-surface) 85%);
}

.vsf-reallife-card:nth-child(1) { --vsf-tint: var(--vs-color-badge-premium); }  /* T-shirt: amber */
.vsf-reallife-card:nth-child(2) { --vsf-tint: var(--vs-color-badge-trending); } /* Phone case: blue */
.vsf-reallife-card:nth-child(3) { --vsf-tint: var(--vs-color-badge-free); }     /* Sticker: purple */
.vsf-reallife-card:nth-child(4) { --vsf-tint: var(--vs-color-badge-sale); }     /* Wallpaper: teal */

.vsf-reallife-body {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 52%;
    padding: var(--vs-spacing-lg);
}

.vsf-reallife-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--vs-radius-lg);
    background: color-mix(in srgb, var(--vsf-tint) 28%, var(--vs-color-surface));
    color: color-mix(in srgb, var(--vsf-tint) 75%, var(--vs-color-text-heading));
}

.vsf-reallife-card-title {
    margin: var(--vs-spacing-md) 0 0;
    color: var(--vs-color-text-heading);
    font-size: var(--vs-font-size-heading-sm);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-reallife-card-text {
    margin: var(--vs-spacing-xs) 0 0;
    color: var(--vs-color-text-body);
    line-height: var(--vs-line-height-body);
}

/* the picture is the card's background on the right: shown whole (contain), never cropped, and every picture gets the
   same height so the T-shirt and the phone case look equally big (a wide picture is limited by the width instead) */
.vsf-reallife-img {
    position: absolute;
    top: 0;
    right: var(--vs-spacing-sm);
    bottom: 0;
    width: auto;
    height: calc(var(--vs-spacing-xl) * 4);
    max-width: calc(50% - var(--vs-spacing-sm));
    margin-block: auto;
    object-fit: contain;
    object-position: right center;
}

.vsf-reallife-note {
    margin: var(--vs-spacing-md) 0 0;
    color: var(--vs-color-text-body);
    font-size: var(--vs-font-size-body-sm);
}

.vsf-reallife-licence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--vs-spacing-md) var(--vs-spacing-lg);
    margin-top: var(--vs-spacing-md);
    padding: var(--vs-spacing-md) var(--vs-spacing-xl);
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

.vsf-reallife-licence-badge {
    padding: var(--vs-spacing-xs) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: var(--vs-font-size-body-sm);
    font-weight: var(--vs-font-weight-card-title);
    letter-spacing: 0.06em;
}

.vsf-reallife-licence-text {
    flex: 1 1 280px;
    line-height: var(--vs-line-height-body);
}

.vsf-reallife-licence-link {
    color: var(--vs-color-brand-accent);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-reallife-licence-link:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .vsf-reallife-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        scroll-snap-type: none;
    }

    .vsf-reallife-cards > .vsf-reallife-card {
        flex: none;
    }
}

@media (min-width: 992px) {
    .vsf-reallife-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .vsf-reallife-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== D5a: FAQ + call-to-action card (override view sections/faqs) ==========================================
 * The vendor FAQ section sits in the left cell; its own container and two-column row are neutralised inside the layout.
 */
.vsf-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--vs-spacing-lg);
    align-items: start;
}

.vsf-faq-layout .vsf-faq-main .container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.vsf-faq-layout .vsf-faq-main .row > .col {
    flex: 0 0 100%;
    max-width: 100%;
}

.vsf-faq-cta {
    padding: var(--vs-spacing-xl);
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

.vsf-faq-cta-title {
    font-size: var(--vs-font-size-heading-md);
    font-weight: var(--vs-font-weight-card-title);
    line-height: 1.3;
}

.vsf-faq-cta-text {
    margin: var(--vs-spacing-md) 0 0;
    line-height: var(--vs-line-height-body);
}

.vsf-faq-cta-btn {
    display: inline-block;
    margin-top: var(--vs-spacing-lg);
    padding: var(--vs-spacing-md) var(--vs-spacing-xl);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-weight: var(--vs-font-weight-card-title);
    text-decoration: none;
}

.vsf-faq-cta-btn:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

@media (min-width: 1200px) {
    /* the title block takes row 1, the first FAQ box and the call-to-action card start together on row 2.
       The vendor wrappers stay in the page (display: contents); their 60px section padding moves to the layout. */
    .vsf-faq-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        padding-top: 60px;
        padding-bottom: 60px;
        column-gap: var(--vs-spacing-lg);
        row-gap: 0;
    }

    .vsf-faq-layout .vsf-faq-main,
    .vsf-faq-layout .vsf-faq-main .section,
    .vsf-faq-layout .vsf-faq-main .section .container {
        display: contents;
    }

    .vsf-faq-layout .section-header {
        grid-column: 1;
        grid-row: 1;
    }

    .vsf-faq-layout .section-body {
        grid-column: 1;
        grid-row: 2;
    }

    .vsf-faq-layout .vsf-faq-cta {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
}

/* ===== D6a: Item page extras (layout override + custom/facelift-item-extras) ===================================
 * Spec tiles, "Best for" chips, folded long description, taped Similar items. Scoped to the item page body class
 * or to the new classes. Tokens only.
 */
.vsf-specs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--vs-spacing-md);
    margin-bottom: var(--vs-spacing-lg);
}

.vsf-spec {
    display: flex;
    align-items: center;
    gap: var(--vs-spacing-md);
    padding: var(--vs-spacing-md);
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-xl);
    background: var(--vs-color-surface);
}

.vsf-spec-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--vs-radius-lg);
    background: color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 87.5%, var(--vs-color-badge-trending)) 14.4%, var(--vs-color-surface));
    color: color-mix(in srgb, var(--vs-color-badge-free) 75%, var(--vs-color-text-heading));
}

.vsf-spec-title,
.vsf-spec-sub {
    display: block;
}

.vsf-spec-title {
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-spec-sub {
    color: var(--vs-color-text-body);
    font-size: var(--vs-font-size-body-sm);
}

.vsf-bestfor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--vs-spacing-sm);
    margin-bottom: var(--vs-spacing-lg);
}

.vsf-bestfor-label {
    margin-right: var(--vs-spacing-xs);
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
}

.vsf-chip {
    padding: var(--vs-spacing-xs) var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: color-mix(in srgb, color-mix(in srgb, var(--vs-color-badge-free) 87.5%, var(--vs-color-badge-trending)) 14.4%, var(--vs-color-surface));
    color: color-mix(in srgb, var(--vs-color-badge-free) 75%, var(--vs-color-text-heading));
    font-size: var(--vs-font-size-body-sm);
    text-decoration: none;
}

.vsf-chip:focus-visible,
.vsf-desc-toggle:focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color);
    outline-offset: 2px;
}

body.vsf-item-page .item-single-paragraph.vsf-desc-folded {
    position: relative;
    max-height: 14em;
    overflow: hidden;
}

body.vsf-item-page .item-single-paragraph.vsf-desc-folded::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4em;
    background: linear-gradient(to top, var(--vs-color-surface), transparent);
}

.vsf-desc-toggle {
    margin-top: var(--vs-spacing-md);
    padding: var(--vs-spacing-sm) var(--vs-spacing-lg);
    border: 1px solid var(--vs-color-border);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-heading);
    font-weight: var(--vs-font-weight-card-title);
    cursor: pointer;
}

@media (min-width: 768px) {
    .vsf-specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* the category link inside a taped frame: a touch target of at least 24px (WCAG 2.2 target size) */
.vsf-pola .vs-item-card__category a {
    display: inline-block;
    min-height: calc(var(--vs-spacing-md) + var(--vs-spacing-sm));
    line-height: calc(var(--vs-spacing-md) + var(--vs-spacing-sm));
}

/* ===== Phones: swipe rows with an indicator, footer columns =======================
 * Dots-only carousels (class vsf-carousel--dots) have no prev/next buttons. The dots sit on the dark hero and the
 * dark Top downloads band, so they get light colours there.
 */
.vsf-carousel--dots .vsf-carousel-btn {
    display: none;
}

.vsf-hero .vsf-carousel-dot::before {
    background: color-mix(in srgb, var(--vs-color-surface) 50%, transparent);
}

.vsf-hero .vsf-carousel-dot[aria-current="true"]::before {
    background: var(--vs-color-brand-accent);
}

.vsf-hero .vsf-carousel-dot:focus-visible {
    outline-color: var(--vs-focus-ring-color-on-dark);
}

.footer .vsf-carousel-dot[aria-current="true"]::before {
    background: var(--vs-color-brand-accent);
}

.footer .vsf-carousel-dot:focus-visible {
    outline-color: var(--vs-focus-ring-color-on-dark);
}

/* footer link columns (Company, Featured items, ...): one swipe row below 768px; the script adds the classes */
@media (max-width: 767.98px) {
    .footer .vsf-footer-links {
        flex-wrap: nowrap;
        gap: var(--vs-spacing-xl);
        margin: 0;
    }

    .footer .vsf-footer-links > .col {
        flex: 0 0 62%;
        max-width: 62%;
        margin: 0;
        padding: 0;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .footer .vsf-footer-links {
        gap: 0;
        overflow: visible;
        scroll-snap-type: none;
    }
}

/* ===== HEADER (override view includes/navbar + custom/facelift-header-user; owner design "Menu 1 to 9", 2026-11-13) =============
 * One header: top bar (logo 42px desktop, 40px tablet, 34px phone; search; Sign in or the account button; cart and burger below 1200px),
 * the category bar from 1200px (dropdown panels), and one drawer below 1200px. The user's NAME is not shown in the bar (it is in the
 * account menu). Lime only for hover, open, current and the main button, always with dark text. Tokens only; focus ring 2px (white on dark,
 * violet on white). Panels fade and move 8px in 150ms (opacity and transform only), switched off for reduced motion. Behaviour: vs-facelift.js
 * (initHeader). Header lines: 12% of white on dark, 12% of dark on white; scrim 55% of dark. Breakpoint: 1200px.
 */
.vsf-hd {
    position: relative;
    z-index: 50;
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

.vsf-hd *,
.vsf-hd *::before,
.vsf-hd *::after {
    box-sizing: border-box;
}

.vsf-hd :where(a) {
    color: inherit;
    text-decoration: none;
}

.vsf-hd button {
    font-family: inherit;
    cursor: pointer;
}

.vsf-hd :focus-visible {
    outline: var(--vs-focus-ring-width) solid var(--vs-focus-ring-color-on-dark);
    outline-offset: 2px;
}

.vsf-hd-drop :focus-visible,
.vsf-hd-menu :focus-visible,
.vsf-hd-drawer :focus-visible {
    outline-color: var(--vs-color-badge-free);
}

/* the search pill itself shows the focus (its border turns lime, or violet in the drawer): no second rectangle around the typing area */
.vsf-hd-search input:focus-visible,
.vsf-hd-dsearch input:focus-visible {
    outline: 0;
}

/* ---- top bar ---- */
.vsf-hd-top {
    position: relative;
    z-index: 3; /* above the category bar, so the account menu is drawn over it */
}

.vsf-hd-top-in {
    display: flex;
    align-items: center;
    gap: var(--vs-spacing-sm);
    padding: var(--vs-spacing-sm) var(--vs-spacing-md);
}

.vsf-hd-logo {
    display: block;
    flex: 0 0 auto;
}

.vsf-hd-logo img {
    display: block;
    width: auto;
    height: 34px;
}

.vsf-hd-tools {
    display: flex;
    align-items: center;
    gap: var(--vs-spacing-sm);
    margin-left: auto;
}

.vsf-hd-search {
    display: none;
}

.vsf-hd-ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--vs-radius-full);
    background: transparent;
    color: var(--vs-color-surface);
    font-size: var(--vs-font-size-body-md);
}

.vsf-hd-ico:hover {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

/* owner, 2026-11-19: no cart icon in the header on phone and tablet (it was already hidden from 1200px); the markup stays, so the cart page and the count logic are untouched */
.vsf-hd-cart {
    display: none;
}

.vsf-hd-badge {
    position: absolute;
    top: var(--vs-spacing-xs);
    right: var(--vs-spacing-xs);
    min-width: 18px;
    height: 18px;
    padding: 0 var(--vs-spacing-xs);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.vsf-hd-ico:hover .vsf-hd-badge {
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-brand-accent);
}

.vsf-hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--vs-spacing-md);
    border: 2px solid var(--vs-color-brand-accent);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.vsf-hd-btn:hover {
    border-color: var(--vs-color-surface);
    background: var(--vs-color-surface);
}

.vsf-hd-btn--ghost {
    border-color: var(--vs-color-brand-secondary);
    background: var(--vs-color-surface);
    color: var(--vs-color-brand-secondary);
}

.vsf-hd-btn--ghost:hover {
    border-color: var(--vs-color-brand-secondary);
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-surface);
}

/* Top bar (owner, 2026-11-18; at every width since 2026-11-20): Sign In is a plain link without underline, Sign Up is the green .vsf-hd-btn pill. Each has its OWN class: .vsf-hd-link is the shared menu/drawer row class and must never be reused here (hotfix 2026-11-18). Sign Up shows on phones too (owner design 2026-11-19), hidden only below 370px, where the drawer has it. */
.vsf-hd-signin-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--vs-spacing-xs);
    color: var(--vs-color-surface);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.vsf-hd-signin-link:hover {
    color: var(--vs-color-brand-accent);
    text-decoration: none;
}

@media (max-width: 369.98px) {
    .vsf-hd-signup-btn {
        display: none; /* only on very narrow phones; the drawer has Sign Up */
    }
}

/* ---- account button (avatar and arrow; the name is in the menu) ---- */
.vsf-hd-prof {
    position: relative;
}

.vsf-hd-profbtn {
    display: inline-flex;
    align-items: center;
    gap: var(--vs-spacing-sm);
    height: 44px;
    padding: 0 var(--vs-spacing-sm) 0 var(--vs-spacing-xs);
    border: 2px solid color-mix(in srgb, var(--vs-color-surface) 20%, transparent);
    border-radius: var(--vs-radius-full);
    background: transparent;
    color: var(--vs-color-surface);
    font-size: 12px;
}

.vsf-hd-profbtn:hover,
.vsf-hd-profbtn[aria-expanded="true"] {
    border-color: var(--vs-color-brand-accent);
    background: color-mix(in srgb, var(--vs-color-surface) 10%, transparent);
}

.vsf-hd-profbtn[aria-expanded="true"] i,
.vsf-hd-item[aria-expanded="true"] i,
.vsf-hd-drow[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.vsf-hd-av {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    object-fit: cover;
}

/* ---- panels (category dropdown and account menu): white, fade in ---- */
.vsf-hd-menu,
.vsf-hd-drop {
    position: absolute;
    z-index: 3;
    background: var(--vs-color-surface);
    color: var(--vs-color-text-body);
    box-shadow: 0 24px 48px color-mix(in srgb, var(--vs-color-brand-secondary) 28%, transparent);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.vsf-hd-menu.is-shown,
.vsf-hd-drop.is-shown,
.vsf-hd-drawer.is-shown {
    opacity: 1;
    transform: none;
}

.vsf-hd-menu {
    top: calc(100% + var(--vs-spacing-sm));
    right: 0;
    width: 288px;
    max-width: calc(100vw - var(--vs-spacing-xl));
    padding: var(--vs-spacing-sm);
    border-radius: var(--vs-radius-lg);
}

.vsf-hd-menu-h {
    display: flex;
    align-items: center;
    gap: var(--vs-spacing-md);
    padding: var(--vs-spacing-md);
    margin-bottom: var(--vs-spacing-xs);
}

.vsf-hd-menu-h .vsf-hd-av {
    width: 40px;
    height: 40px;
}

.vsf-hd-menu-h b {
    display: block;
    color: var(--vs-color-text-heading);
    font-size: 14px;
    font-weight: 700;
}

.vsf-hd-menu-h span {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.vsf-hd-menu hr {
    height: 1px;
    margin: var(--vs-spacing-sm) var(--vs-spacing-xs);
    border: 0;
    background: color-mix(in srgb, var(--vs-color-brand-secondary) 12%, transparent);
}

.vsf-hd-menu .vsf-hd-link {
    gap: var(--vs-spacing-md);
}

.vsf-hd-menu .vsf-hd-link i {
    width: 18px;
    text-align: center;
}

.vsf-hd-logout {
    margin: 0;
}

.vsf-hd-link {
    display: flex;
    align-items: center;
    gap: var(--vs-spacing-sm);
    width: 100%;
    min-height: 44px;
    padding: 0 var(--vs-spacing-md);
    border: 0;
    border-radius: var(--vs-radius-lg);
    background: transparent;
    color: var(--vs-color-text-body);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.vsf-hd-link:hover,
.vsf-hd-link.is-active {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-hd-link.is-active {
    font-weight: 700;
}

/* ---- category bar (from 1200px) ---- */
.vsf-hd-cats {
    display: none;
}

.vsf-hd-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--vs-spacing-sm);
    height: 44px;
    padding: 0 var(--vs-spacing-md);
    border: 0;
    border-radius: var(--vs-radius-full);
    background: transparent;
    color: var(--vs-color-surface);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.vsf-hd-item i {
    font-size: 12px;
}

.vsf-hd-item:hover,
.vsf-hd-item[aria-expanded="true"] {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-hd-item.is-current::after {
    content: "";
    position: absolute;
    right: var(--vs-spacing-md);
    bottom: 2px;
    left: var(--vs-spacing-md);
    height: 3px;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
}

.vsf-hd-item.is-current:hover::after,
.vsf-hd-item.is-current[aria-expanded="true"]::after {
    background: var(--vs-color-brand-secondary);
}

.vsf-hd-qin {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--vs-spacing-sm);
    color: var(--vs-color-surface);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.vsf-hd-qin:hover {
    color: var(--vs-color-brand-accent);
}

/* small green pill: 34px high, the tap area is 44px (the ::after reaches 5px past each edge) */
.vsf-hd-qup {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.vsf-hd-qup::after {
    content: "";
    position: absolute;
    inset: -5px;
}

.vsf-hd-qup:hover {
    background: var(--vs-color-surface);
}

/* owner design "Menu 2, Option A" (2026-11-20): no title, two stacked columns with a line between, one full-width View all at the foot */
/* owner, 2026-11-20: the panel opens under the item that was clicked (its left edge); vs-facelift.js moves it left when it would pass the window's right edge */
.vsf-hd-cat {
    position: relative;
}

.vsf-hd-drop {
    top: calc(100% + 2 * var(--vs-spacing-sm));
    left: 0;
    width: max-content;
    min-width: 560px;
    max-width: calc(100vw - 2 * var(--vs-spacing-xl));
    padding: var(--vs-spacing-lg);
    border-radius: var(--vs-radius-xl);
}

.vsf-hd-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vsf-hd-col {
    display: flex;
    flex-direction: column;
    gap: var(--vs-spacing-xs);
    padding: 0 var(--vs-spacing-sm);
    margin: 0;
    list-style: none;
}

.vsf-hd-drop--one {
    min-width: 280px;
}

.vsf-hd-drop--one .vsf-hd-cols {
    grid-template-columns: minmax(0, 1fr);
}

.vsf-hd-col:first-child {
    padding-left: 0;
}

.vsf-hd-col:last-child {
    padding-right: 0;
}

.vsf-hd-col + .vsf-hd-col {
    border-left: 1px solid color-mix(in srgb, var(--vs-color-brand-secondary) 12%, transparent);
}

.vsf-hd-col .vsf-hd-link {
    white-space: nowrap;
}

.vsf-hd-drop-f {
    padding-top: var(--vs-spacing-sm);
    margin-top: var(--vs-spacing-md);
    border-top: 1px solid color-mix(in srgb, var(--vs-color-brand-secondary) 12%, transparent);
}

.vsf-hd-viewall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 var(--vs-spacing-md);
    border-radius: var(--vs-radius-full);
    color: var(--vs-color-badge-free);
    font-size: 13px;
    font-weight: 700;
}

.vsf-hd-viewall:hover {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-hd-scrim,
.vsf-hd-dscrim {
    display: none;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--vs-color-brand-secondary) 55%, transparent);
}

.vsf-hd-scrim {
    z-index: 1;
}

.vsf-hd.is-open .vsf-hd-scrim {
    display: block;
}

/* ---- drawer (below 1200px): white sheet on the right, dark text; on phones (below 768px) it fills the screen (owner design "Menu 9", 2026-11-20) ---- */
.vsf-hd-dscrim {
    z-index: 6;
}

.vsf-hd-dscrim:not([hidden]) {
    display: block;
}

.vsf-hd-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    width: min(335px, calc(100vw - 40px));
    border-radius: var(--vs-radius-xl) 0 0 var(--vs-radius-xl);
    background: var(--vs-color-surface);
    color: var(--vs-color-text-body);
    box-shadow: 0 24px 48px color-mix(in srgb, var(--vs-color-brand-secondary) 28%, transparent);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.vsf-hd-drawer[hidden] {
    display: none;
}

@media (max-width: 767.98px) {
    .vsf-hd-drawer {
        left: 0;
        width: auto;
        border-radius: 0;
        box-shadow: none;
    }
}

.vsf-hd-drawer-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--vs-spacing-sm) var(--vs-spacing-sm) var(--vs-spacing-sm) var(--vs-spacing-md);
}

.vsf-hd-drawer-h b {
    color: var(--vs-color-text-heading);
    font-size: 18px;
    font-weight: 800;
}

.vsf-hd-drawer .vsf-hd-ico {
    color: var(--vs-color-brand-secondary);
}

.vsf-hd-drawer .vsf-hd-ico:hover {
    color: var(--vs-color-text-on-primary);
}

.vsf-hd-dsearch {
    display: flex;
    align-items: center;
    height: 48px;
    padding: var(--vs-spacing-xs) var(--vs-spacing-xs) var(--vs-spacing-xs) var(--vs-spacing-md);
    margin: var(--vs-spacing-xs) var(--vs-spacing-md) var(--vs-spacing-md);
    border: 2px solid color-mix(in srgb, var(--vs-color-brand-secondary) 12%, transparent);
    border-radius: var(--vs-radius-full);
}

.vsf-hd-dsearch input,
.vsf-hd-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.vsf-hd-dsearch input {
    color: var(--vs-color-text-body);
}

.vsf-hd-dsearch input::placeholder {
    color: color-mix(in srgb, var(--vs-color-text-body) 70%, transparent);
    opacity: 1;
}

.vsf-hd-dsearch:focus-within {
    border-color: var(--vs-color-badge-free);
}

.vsf-hd-dsearch button,
.vsf-hd-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--vs-radius-full);
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-hd-dsearch button:hover,
.vsf-hd-search button:hover {
    background: var(--vs-color-brand-secondary);
    color: var(--vs-color-brand-accent);
}

.vsf-hd-dlist {
    flex: 1;
    padding: 0 var(--vs-spacing-sm);
    overflow-y: auto;
}

.vsf-hd-drow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 var(--vs-spacing-md);
    border: 0;
    border-radius: var(--vs-radius-lg);
    background: transparent;
    color: var(--vs-color-text-heading);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.vsf-hd-drow:hover,
.vsf-hd-drow[aria-expanded="true"] {
    background: var(--vs-color-brand-accent);
    color: var(--vs-color-text-on-primary);
}

.vsf-hd-dsub {
    padding: var(--vs-spacing-xs) 0 var(--vs-spacing-sm) var(--vs-spacing-md);
}

.vsf-hd-dsub[hidden] {
    display: none;
}

.vsf-hd-link--all {
    justify-content: space-between;
    color: var(--vs-color-badge-free);
    font-weight: 700;
}

.vsf-hd-dextra {
    padding: var(--vs-spacing-sm) var(--vs-spacing-md);
}

.vsf-hd-dfoot {
    display: flex;
    gap: var(--vs-spacing-sm);
    padding: var(--vs-spacing-md);
    border-top: 1px solid color-mix(in srgb, var(--vs-color-brand-secondary) 12%, transparent);
}

.vsf-hd-dfoot .vsf-hd-btn {
    flex: 1;
    min-height: 48px;
    font-size: 14px;
}

/* ---- widths: tablet logo, desktop header ---- */
@media (min-width: 576px) {
    .vsf-hd-logo img {
        height: 40px;
    }
}

@media (min-width: 1200px) {
    .vsf-hd-logo img {
        height: 42px;
    }

    .vsf-hd-top-in {
        max-width: 1440px;
        gap: var(--vs-spacing-xl);
        padding: var(--vs-spacing-md) var(--vs-spacing-xl);
        margin: 0 auto;
    }

    .vsf-hd-search {
        display: flex;
        flex: 1;
        align-items: center;
        max-width: 560px;
        height: 48px;
        padding: var(--vs-spacing-xs) var(--vs-spacing-xs) var(--vs-spacing-xs) var(--vs-spacing-lg);
        margin: 0 auto;
        border: 2px solid color-mix(in srgb, var(--vs-color-surface) 20%, transparent);
        border-radius: var(--vs-radius-full);
        background: color-mix(in srgb, var(--vs-color-surface) 6%, transparent);
        transition: max-width 0.25s ease, border-color 0.15s ease, background-color 0.15s ease;
    }

    .vsf-hd-search:hover {
        border-color: color-mix(in srgb, var(--vs-color-surface) 40%, transparent);
    }

    .vsf-hd-search:focus-within {
        max-width: 760px;
        border-color: var(--vs-color-brand-accent);
        background: color-mix(in srgb, var(--vs-color-surface) 10%, transparent);
    }

    .vsf-hd-search input {
        color: var(--vs-color-surface);
    }

    .vsf-hd-search input::placeholder {
        color: var(--vs-color-text-muted);
        opacity: 1;
    }

    .vsf-hd-tools {
        margin-left: 0;
    }

    .vsf-hd-cart,
    .vsf-hd-burger {
        display: none;
    }

    .vsf-hd-btn {
        min-height: 48px;
        padding: 0 var(--vs-spacing-xl);
        font-size: 14px;
    }

    .vsf-hd-profbtn {
        height: 48px;
    }

    .vsf-hd-av {
        width: 36px;
        height: 36px;
    }

    .vsf-hd-cats {
        position: relative;
        z-index: 2;
        display: block;
        border-top: 1px solid color-mix(in srgb, var(--vs-color-surface) 12%, transparent);
    }

    .vsf-hd-cats-in {
        position: relative;
        display: flex;
        align-items: center;
        max-width: 1440px;
        gap: var(--vs-spacing-xs);
        padding: var(--vs-spacing-sm) var(--vs-spacing-xl);
        margin: 0 auto;
    }

    .vsf-hd-drawer,
    .vsf-hd-dscrim {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsf-hd-menu,
    .vsf-hd-drop,
    .vsf-hd-drawer,
    .vsf-hd-search {
        transition: none;
    }
}

/* ===== STICKY HEADER (custom/vs-header-sticky, owner design canvas "Sticky header", 2026-11-19) =================================
 * A 60px fixed bar after about 140px of scroll (vs-facelift.js, initStickyHeader toggles .is-stuck). Logo 28px, the same category links
 * as the full header centred, New and Popular on the right from 1360px. No search, no Sign In / Sign Up. Not shown at 900px and below.
 * Fades and slides 160ms (opacity and transform only); reduced motion: no movement. Hidden state is visibility:hidden, so it is out of
 * the tab order and the screen reader tree until shown.
 */
.vsf-stk {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5; /* inside .vsf-hd (a stacking context): above the top bar (3) and category bar (2), BELOW the drawer scrim (6) and the drawer (7), so the drawer and its scrim cover the sticky bar from 901px to 1199px */
    display: none;
    background: var(--vs-color-brand-secondary);
    border-bottom: 1px solid color-mix(in srgb, var(--vs-color-surface) 12%, transparent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--vs-color-brand-secondary) 55%, transparent);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.vsf-stk.is-stuck {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}

.vsf-stk-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 32px;
    align-items: center;
    max-width: 1280px;
    height: 60px;
    padding: 0 24px;
    margin: 0 auto;
}

.vsf-stk-logo {
    display: block;
}

.vsf-stk-logo img {
    display: block;
    width: auto;
    height: 28px;
}

.vsf-stk-nav,
.vsf-stk-side {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* centred when it fits; when it is wider than the space it scrolls from its start (auto margins, not justify-content: center, which clips the first link) */
.vsf-stk-nav {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.vsf-stk-nav > :first-child {
    margin-left: auto;
}

.vsf-stk-nav > :last-child {
    margin-right: auto;
}

.vsf-stk-nav::-webkit-scrollbar {
    display: none;
}

.vsf-stk-side {
    display: none;
    gap: var(--vs-spacing-sm);
}

.vsf-stk-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--vs-color-surface);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.vsf-stk-link i {
    font-size: 12px;
}

.vsf-stk-link:hover,
.vsf-stk-link.is-current {
    color: var(--vs-color-brand-accent);
}

@media (min-width: 901px) {
    .vsf-stk {
        display: block;
    }
}

@media (min-width: 1360px) {
    .vsf-stk-in {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .vsf-stk-side {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsf-stk,
    .vsf-stk.is-stuck {
        transition: none;
    }
}

/* ---- item card: the FREE pill is low-key (owner design, 2026-11-19): white, 1px light border, grey text, 11px / 600. Only cards of genuinely
   free items (custom/item-card adds .vsf-card-free from the item's own free state); paid and sale prices keep their look. ---- */
.vsf-rail .vs-item-card.vsf-card-free .vs-item-card__price,
body.vsf-listing-page .vs-item-card.vsf-card-free .vs-item-card__price,
body.vsf-item-page .vs-item-card.vsf-card-free .vs-item-card__price {
    border: 1px solid color-mix(in srgb, var(--vs-color-text-heading) 16%, var(--vs-color-surface)); /* the design light grey, from tokens */
    background: var(--vs-color-surface);
    color: color-mix(in srgb, var(--vs-color-text-body) 75%, var(--vs-color-surface)); /* the design mid grey, from tokens */
    font-weight: 600;
}

/* ---- phone and tablet header below 1200px (owner design canvas, 2026-11-19): row 1 = burger, logo, then cart / Sign In / Sign Up (or the
   account button); row 2 = the search bar on its own full-width row (a second form, last in the DOM, so the tab order follows the screen).
   The category row stays hidden (the drawer has the same links). The wrapper is not dissolved. ---- */
@media (max-width: 1199.98px) {
    .vsf-hd-top-in {
        flex-wrap: wrap;
        row-gap: 10px;
        column-gap: var(--vs-spacing-xs);
        padding: var(--vs-spacing-sm) var(--vs-spacing-md) var(--vs-spacing-md) var(--vs-spacing-xs);
    }

    .vsf-hd-logo {
        min-width: 0;
    }

    .vsf-hd-tools {
        gap: var(--vs-spacing-xs);
    }

    .vsf-hd-signup-btn {
        min-height: 40px;
        padding: 0 var(--vs-spacing-md);
        font-size: 14px;
    }

    .vsf-hd-msearch {
        display: flex;
        flex: 1 0 100%;
        align-items: center;
        height: 46px;
        padding: 0 var(--vs-spacing-xs) 0 var(--vs-spacing-md);
        margin: 0 0 0 var(--vs-spacing-sm);
        border: 2px solid color-mix(in srgb, var(--vs-color-surface) 20%, transparent);
        border-radius: var(--vs-radius-full);
        background: color-mix(in srgb, var(--vs-color-surface) 6%, transparent);
    }

    .vsf-hd-msearch:focus-within {
        border-color: var(--vs-color-brand-accent);
    }

    .vsf-hd-msearch input {
        color: var(--vs-color-surface);
    }

    .vsf-hd-msearch input::placeholder {
        color: var(--vs-color-text-muted);
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .vsf-hd-logo img {
        height: 30px; /* so burger, logo, cart, Sign In and Sign Up fit one row from 370px */
    }
}

@media (min-width: 1200px) {
    .vsf-hd-msearch {
        display: none;
    }
}
