/**
 * Vobbix — interior pages, forms and WooCommerce
 * ---------------------------------------------------------------------------
 * Loaded site-wide after home.css. Covers everything that is not the homepage:
 * long-form prose, forms, callouts, and the WooCommerce cart / checkout /
 * account screens, which otherwise render in the plugin's default styling and
 * look like a different site.
 */

@layer components, sections, utilities;

@layer components {

  /* --- Long-form prose ---------------------------------------------------- */
  .vb-lede {
    font-size: var(--vb-text-lg);
    color: var(--vb-slate-500);
    max-width: 60ch;
    margin-bottom: 0;
  }
  .vb-section--dark .vb-lede { color: var(--vb-on-dark-body); }

  .vb-prose > *:first-child { margin-top: 0; }
  .vb-prose h2 {
    font-size: var(--vb-text-h2);
    margin: var(--vb-space-12) 0 var(--vb-space-4);
  }
  .vb-prose h2:first-child { margin-top: 0; }
  .vb-prose h3 {
    font-size: var(--vb-text-h4);
    margin: var(--vb-space-8) 0 var(--vb-space-2);
  }
  .vb-prose p { max-width: 68ch; }
  .vb-prose ul, .vb-prose ol {
    max-width: 68ch;
    margin: 0 0 var(--vb-space-4);
    padding-left: var(--vb-space-5);
  }
  .vb-prose ul { list-style: disc; }
  .vb-prose ol { list-style: decimal; }
  .vb-prose li { margin-bottom: var(--vb-space-2); }
  .vb-prose a { color: var(--vb-red-700); text-decoration: underline; }
  .vb-prose a:hover { color: var(--vb-red-600); }
  .vb-section--dark .vb-prose a { color: var(--vb-red-300); }

  /* Tables scroll inside their own container rather than breaking the page. */
  .vb-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 var(--vb-space-6);
    font-size: var(--vb-text-sm);
    background: var(--vb-canvas);
    border: 1px solid var(--vb-line-200);
    border-radius: var(--vb-radius-md);
    overflow: hidden;
  }
  .vb-prose thead th {
    background: var(--vb-mist-100);
    color: var(--vb-ink-900);
    font-weight: 600;
    text-align: left;
  }
  .vb-prose th, .vb-prose td {
    padding: var(--vb-space-3) var(--vb-space-4);
    border-bottom: 1px solid var(--vb-line-200);
    vertical-align: top;
  }
  .vb-prose tr:last-child td { border-bottom: 0; }

  /* --- Callouts ----------------------------------------------------------
     Left border + tint. Colour reinforces, it never carries meaning alone —
     the wording does. */
  .vb-callout {
    border-left: 3px solid var(--vb-info-ink);
    background: var(--vb-info-bg);
    padding: var(--vb-space-4) var(--vb-space-5);
    border-radius: 0 var(--vb-radius-md) var(--vb-radius-md) 0;
    margin: 0 0 var(--vb-space-6);
  }
  .vb-callout p { margin: 0; color: var(--vb-info-ink); max-width: none; }
  .vb-callout--warning { border-color: var(--vb-warning-ink); background: var(--vb-warning-bg); }
  .vb-callout--warning p { color: var(--vb-warning-ink); }
  .vb-callout--success { border-color: var(--vb-success-ink); background: var(--vb-success-bg); }
  .vb-callout--success p { color: var(--vb-success-ink); }

  /* --- Forms -------------------------------------------------------------- */
  .vb-form .vb-field { margin-bottom: var(--vb-space-4); }
  .vb-field label {
    display: block;
    font-size: var(--vb-text-sm);
    font-weight: 500;
    color: var(--vb-ink-700);
    margin-bottom: var(--vb-space-2);
  }
  .vb-optional { color: var(--vb-slate-400); font-weight: 400; }

  .vb-field input[type="text"],
  .vb-field input[type="email"],
  .vb-field input[type="tel"],
  .vb-field input[type="password"],
  .vb-field input[type="number"],
  .vb-field textarea,
  .vb-field select {
    width: 100%;
    min-height: 48px;
    padding: var(--vb-space-3);
    font-size: 1rem;                       /* 16px — stops iOS zoom-on-focus */
    color: var(--vb-ink-900);
    background: var(--vb-canvas);
    border: 1.5px solid var(--vb-border);  /* 3.06:1 — a real UI boundary */
    border-radius: var(--vb-radius-md);
  }
  .vb-field textarea { min-height: 120px; resize: vertical; }
  .vb-field input:focus, .vb-field textarea:focus, .vb-field select:focus {
    border-color: var(--vb-ink-900);
  }
  .vb-field input::placeholder, .vb-field textarea::placeholder { color: var(--vb-slate-400); }

  .vb-form__note {
    font-size: var(--vb-text-sm);
    color: var(--vb-slate-400);
    margin: var(--vb-space-3) 0 0;
    text-align: center;
  }

  /* Honeypot — hidden from people, visible to bots. Not display:none, which
     some bots detect and skip. */
  .vb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .vb-contact-card { margin-bottom: var(--vb-space-4); }
  .vb-contact-card h3 { margin-bottom: var(--vb-space-2); }
  .vb-contact-card p:last-child { margin-bottom: 0; }

  .vb-grid--2-uneven { display: grid; gap: var(--vb-space-8); grid-template-columns: 1fr; }
  @media (min-width: 900px) {
    .vb-grid--2-uneven { grid-template-columns: 1.05fr .95fr; gap: var(--vb-space-16); }
  }
}

/* ==========================================================================
   WOOCOMMERCE
   Map the plugin's default markup onto the design system so cart, checkout
   and account do not look like a different website.
   ========================================================================== */
@layer sections {

  .woocommerce-page main,
  .woocommerce main { padding-block: var(--vb-section-y); }

  .woocommerce-page .vb-container,
  .woocommerce .woocommerce,
  .woocommerce-page .woocommerce {
    max-width: var(--vb-container);
    margin-inline: auto;
    padding-inline: var(--vb-gutter);
  }

  /* --- Buttons ------------------------------------------------------------ */
  .woocommerce #respond input#submit,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce a.button.alt,
  .woocommerce button.button.alt,
  .woocommerce input.button.alt {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px;
    padding: 0 var(--vb-space-6);
    font-family: var(--vb-font-ui);
    font-size: .9375rem; font-weight: 600; line-height: 1;
    background: var(--vb-ink-900); color: #fff;
    border: 1.5px solid var(--vb-ink-900);
    border-radius: var(--vb-radius-md);
    text-decoration: none;
    transition: background-color var(--vb-duration-fast) ease;
  }
  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover,
  .woocommerce a.button.alt:hover,
  .woocommerce button.button.alt:hover,
  .woocommerce input.button.alt:hover {
    background: var(--vb-ink-700); border-color: var(--vb-ink-700); color: #fff;
  }
  .woocommerce a.button.wc-backward {
    background: transparent; color: var(--vb-ink-900); border-color: var(--vb-ink-900);
  }
  .woocommerce a.button.wc-backward:hover { background: var(--vb-mist-100); color: var(--vb-ink-900); }

  .woocommerce .button:disabled,
  .woocommerce .button[disabled] {
    background: var(--vb-line-200); color: var(--vb-border); border-color: var(--vb-line-200);
  }

  /* --- Form fields -------------------------------------------------------- */
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select,
  .woocommerce-page form .form-row input.input-text,
  .select2-container .select2-selection--single {
    width: 100%;
    min-height: 48px;
    padding: var(--vb-space-3);
    font-size: 1rem;
    color: var(--vb-ink-900);
    background: var(--vb-canvas);
    border: 1.5px solid var(--vb-border);
    border-radius: var(--vb-radius-md);
    box-shadow: none;
  }
  .woocommerce form .form-row label {
    font-size: var(--vb-text-sm); font-weight: 500;
    color: var(--vb-ink-700); margin-bottom: var(--vb-space-2);
  }
  .woocommerce form .form-row { margin-bottom: var(--vb-space-4); }
  .woocommerce form .form-row .required { color: var(--vb-red-700); text-decoration: none; }

  /* --- Cart table --------------------------------------------------------- */
  .woocommerce table.shop_table {
    border: 1px solid var(--vb-line-200);
    border-radius: var(--vb-radius-lg);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--vb-canvas);
  }
  .woocommerce table.shop_table th {
    background: var(--vb-mist-100);
    color: var(--vb-ink-900);
    font-family: var(--vb-font-ui);
    font-size: var(--vb-text-xs);
    font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: var(--vb-space-4);
  }
  .woocommerce table.shop_table td {
    padding: var(--vb-space-4);
    border-top: 1px solid var(--vb-line-200);
    vertical-align: middle;
  }
  .woocommerce table.shop_table img { width: 64px; border-radius: var(--vb-radius-md); background: var(--vb-mist-100); }
  .woocommerce .cart_item a { color: var(--vb-ink-900); font-weight: 600; text-decoration: none; }
  .woocommerce a.remove {
    color: var(--vb-red-700) !important;
    font-size: 1.25rem; line-height: 1;
    width: 28px; height: 28px;
  }
  .woocommerce a.remove:hover { background: var(--vb-red-50); color: var(--vb-red-700) !important; }

  .woocommerce .quantity .qty {
    min-height: 44px; width: 72px;
    text-align: center;
    border: 1.5px solid var(--vb-border);
    border-radius: var(--vb-radius-md);
    font-size: 1rem;
  }

  /* --- Cart totals / order review ----------------------------------------- */
  .woocommerce .cart-collaterals .cart_totals,
  .woocommerce-checkout #order_review {
    background: var(--vb-mist-100);
    border: 1px solid var(--vb-line-200);
    border-radius: var(--vb-radius-lg);
    padding: var(--vb-space-6);
  }
  .woocommerce .cart_totals h2,
  .woocommerce-checkout #order_review_heading {
    font-family: var(--vb-font-display);
    font-size: var(--vb-text-h4);
    margin-bottom: var(--vb-space-4);
  }
  .woocommerce .cart_totals table.shop_table,
  .woocommerce-checkout #order_review table.shop_table { border: 0; background: transparent; }
  .woocommerce .cart_totals table.shop_table th,
  .woocommerce-checkout #order_review table.shop_table th { background: transparent; text-transform: none; font-size: var(--vb-text-sm); }
  .woocommerce .order-total .amount { font-size: var(--vb-text-price); font-weight: 700; color: var(--vb-ink-900); }

  .woocommerce .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }

  /* --- Notices ------------------------------------------------------------
     Left border + icon-free tint, matching the site's callout language. */
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    border-top: 0;
    border-left: 3px solid;
    border-radius: 0 var(--vb-radius-md) var(--vb-radius-md) 0;
    padding: var(--vb-space-4) var(--vb-space-5);
    font-size: var(--vb-text-sm);
    background: var(--vb-info-bg);
    color: var(--vb-info-ink);
    border-color: var(--vb-info-ink);
  }
  .woocommerce-message { background: var(--vb-success-bg); color: var(--vb-success-ink); border-color: var(--vb-success-ink); }
  .woocommerce-error   { background: var(--vb-error-bg);   color: var(--vb-error-ink);   border-color: var(--vb-error-ink); }
  .woocommerce-message::before,
  .woocommerce-info::before,
  .woocommerce-error::before { display: none; }

  /* --- My Account --------------------------------------------------------- */
  .woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
  .woocommerce-account .woocommerce-MyAccount-navigation li { margin-bottom: var(--vb-space-1); }
  .woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: var(--vb-space-3) var(--vb-space-4);
    color: var(--vb-ink-600);
    text-decoration: none;
    border-radius: var(--vb-radius-md);
    font-weight: 500;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--vb-mist-100); color: var(--vb-ink-900); }
  .woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--vb-ink-900); color: #fff;
  }

  /* --- Login / register --------------------------------------------------- */
  .woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
  .woocommerce form.login,
  .woocommerce form.register {
    max-width: 440px;
    margin-inline: auto;
    background: var(--vb-canvas);
    border: 1px solid var(--vb-line-200);
    border-radius: var(--vb-radius-lg);
    padding: var(--vb-space-8);
    box-shadow: var(--vb-shadow-sm);
  }
  .woocommerce form.login .button,
  .woocommerce form.register .button { width: 100%; }

  /* --- Breadcrumb --------------------------------------------------------- */
  .woocommerce .woocommerce-breadcrumb {
    font-size: var(--vb-text-sm);
    color: var(--vb-slate-400);
    margin-bottom: var(--vb-space-6);
  }
  .woocommerce .woocommerce-breadcrumb a { color: var(--vb-slate-500); text-decoration: none; }
  .woocommerce .woocommerce-breadcrumb a:hover { color: var(--vb-ink-900); }
}

@layer utilities {
  /* Cart and checkout must never be indexed — belt and braces alongside the
     SEO plugin's own noindex. */
  .vb-noindex-marker { display: none; }
}

/* ==========================================================================
   V2 — navbar, hero and collection card
   Rebuilt to the supplied reference. No black container backgrounds anywhere:
   the announcement bar, finder panel, feature band and footer are all light.
   ========================================================================== */
@layer sections {

  /* --- Logo ---------------------------------------------------------------
     No tagline lockup: the wordmark stands alone. */
  .vb-logo { display: flex; align-items: center; text-decoration: none; }

  /* --- Nav: flat category links ----------------------------------------- */
  @media (min-width: 1100px) {
    .vb-nav { display: flex; gap: var(--vb-space-4); margin-left: var(--vb-space-6); }
    .vb-nav a { font-size: .8125rem; white-space: nowrap; }
  }
  @media (max-width: 1099px) { .vb-nav { display: none; } }
  .vb-nav a { position: relative; }
  .vb-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--vb-red-500);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--vb-duration-fast) ease;
  }
  .vb-nav a:hover::after { transform: scaleX(1); }

  /* --- Inline search ----------------------------------------------------- */
  .vb-search { position: relative; display: none; margin-left: auto; }
  @media (min-width: 900px) { .vb-search { display: block; width: 230px; } }
  @media (min-width: 1280px) { .vb-search { width: 270px; } }
  .vb-search input {
    width: 100%; height: 40px;
    padding: 0 var(--vb-space-4) 0 38px;
    font-size: var(--vb-text-sm);
    color: var(--vb-ink-700);
    background: var(--vb-page);
    border: 1px solid var(--vb-line-300);
    border-radius: var(--vb-radius-full);
  }
  /* slate-400 is 4.44:1 on the mist input ground - just under AA.
     slate-500 gives 5.11:1. */
  .vb-search input::placeholder { color: var(--vb-slate-500); }
  .vb-search input:focus { background: #fff; border-color: var(--vb-border); }
  .vb-search svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--vb-slate-400); pointer-events: none;
  }
  .vb-header__actions { margin-left: var(--vb-space-3); }
  @media (max-width: 899px) { .vb-header__actions { margin-left: auto; } }

  /* --- Hero -------------------------------------------------------------- */
  .vb-hero { background: var(--vb-canvas); padding-block: var(--vb-space-10); }
  @media (min-width: 1024px) { .vb-hero { padding-block: var(--vb-space-12); } }

  .vb-hero__grid { grid-template-columns: 1fr; gap: var(--vb-space-8); }
  @media (min-width: 1024px) {
    .vb-hero__grid { grid-template-columns: 1fr 1.15fr; gap: var(--vb-space-10); }
  }
  @media (min-width: 1280px) {
    .vb-hero__grid { grid-template-columns: .95fr 1.2fr .62fr; align-items: center; }
  }

  .vb-hero h1 { letter-spacing: -.025em; }
  /* The accent word. red-500 is 5.54:1 - fine at display size. */
  .vb-hero h1 em { font-style: normal; color: var(--vb-red-500); }

  .vb-hero__media {
    background: var(--vb-mist-100);
    border-radius: var(--vb-radius-xl);
    aspect-ratio: 16 / 10;
  }

  /* --- Trust row under the CTAs ------------------------------------------ */
  .vb-hero__trust {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--vb-space-4); margin-top: var(--vb-space-8);
    padding-top: var(--vb-space-6);
    border-top: 1px solid var(--vb-line-200);
  }
  @media (min-width: 560px) { .vb-hero__trust { grid-template-columns: repeat(4, 1fr); } }
  .vb-hero__trust li {
    display: flex; align-items: center; gap: var(--vb-space-2);
    font-size: var(--vb-text-xs); font-weight: 500;
    color: var(--vb-ink-700); line-height: 1.3;
  }
  .vb-hero__trust svg { width: 19px; height: 19px; flex: none; color: var(--vb-red-500); }

  /* --- Shop by Collection card ------------------------------------------- */
  .vb-collections {
    background: var(--vb-canvas);
    border: 1px solid var(--vb-line-200);
    border-radius: var(--vb-radius-xl);
    box-shadow: var(--vb-shadow-md);
    padding: var(--vb-space-5);
  }
  .vb-collections h2 {
    font-family: var(--vb-font-ui);
    font-size: var(--vb-text-base); font-weight: 600;
    margin-bottom: var(--vb-space-4); letter-spacing: 0;
  }
  .vb-collections__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--vb-space-3); }
  @media (max-width: 559px) { .vb-collections__grid { grid-template-columns: repeat(3, 1fr); } }

  .vb-collection {
    display: flex; flex-direction: column; gap: var(--vb-space-2);
    padding: var(--vb-space-3);
    background: var(--vb-page);
    border: 1px solid transparent;
    border-radius: var(--vb-radius-md);
    text-decoration: none;
    transition: border-color var(--vb-duration-fast) ease,
                background-color var(--vb-duration-fast) ease;
  }
  .vb-collection:hover { background: var(--vb-canvas); border-color: var(--vb-red-500); transform: translateY(-2px); }
  .vb-collection img { width: 100%; aspect-ratio: 1; object-fit: contain; }
  .vb-collection span {
    display: flex; align-items: center; gap: 4px;
    font-size: .6875rem; font-weight: 600; line-height: 1.25;
    color: var(--vb-ink-900);
  }
  .vb-collection span::after { content: "→"; color: var(--vb-red-500); }
}


/* ==========================================================================
   V3 — product page components
   ========================================================================== */
@layer sections {

  /* --- Four value props under Add to Cart -------------------------------- */
  .vb-pdp-trust {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--vb-space-3);
    margin: var(--vb-space-5) 0 0;
    padding: var(--vb-space-4);
    background: var(--vb-page);
    border: 1px solid var(--vb-line-300);
    border-radius: var(--vb-radius-md);
    clear: both;
  }
  .vb-pdp-trust li {
    display: flex; align-items: center; gap: var(--vb-space-2);
    font-size: var(--vb-text-xs); font-weight: 500;
    color: var(--vb-ink-700); line-height: 1.3;
  }
  .vb-pdp-trust svg { width: 18px; height: 18px; flex: none; color: var(--vb-red-500); }

  /* --- Free shipping notice ---------------------------------------------- */
  .vb-shipbar {
    display: flex; align-items: center; gap: var(--vb-space-2);
    margin: var(--vb-space-4) 0;
    padding: var(--vb-space-3) var(--vb-space-4);
    background: var(--vb-red-50);
    border-radius: var(--vb-radius-md);
    font-size: var(--vb-text-sm); font-weight: 500;
    color: var(--vb-red-700);          /* 5.52:1 on the soft-red ground */
  }
  .vb-shipbar svg { width: 18px; height: 18px; flex: none; }
  .vb-shipbar--met {
    background: var(--vb-success-bg);
    color: var(--vb-success-ink);      /* 7.11:1 */
  }

  /* --- Specifications table ---------------------------------------------- */
  .vb-spectable {
    width: 100%; border-collapse: collapse;
    font-size: var(--vb-text-sm);
    background: var(--vb-canvas);
    border: 1px solid var(--vb-line-300);
    border-radius: var(--vb-radius-md);
    overflow: hidden;
  }
  .vb-spectable th {
    width: 38%; text-align: left; font-weight: 500;
    color: var(--vb-slate-500);
    background: var(--vb-page);
    padding: var(--vb-space-3) var(--vb-space-4);
    border-bottom: 1px solid var(--vb-line-300);
    vertical-align: top;
  }
  .vb-spectable td {
    padding: var(--vb-space-3) var(--vb-space-4);
    border-bottom: 1px solid var(--vb-line-300);
    color: var(--vb-ink-700);
    font-family: var(--vb-font-mono);  /* makes the data read as measured */
    vertical-align: top;
  }
  .vb-spectable tr:last-child th,
  .vb-spectable tr:last-child td { border-bottom: 0; }
  @media (max-width: 559px) {
    .vb-spectable th { width: 45%; }
    .vb-spectable th, .vb-spectable td { padding: var(--vb-space-3); }
  }

  /* --- WooCommerce product grid, per spec -------------------------------- */
  .woocommerce ul.products li.product {
    background: var(--vb-canvas);
    border: 1px solid var(--vb-line-300);
    border-radius: var(--vb-radius-lg);
    padding: var(--vb-space-4);
    transition: transform var(--vb-duration-base) ease,
                box-shadow var(--vb-duration-base) ease;
  }
  .woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--vb-shadow-md);
  }
  .woocommerce ul.products li.product img {
    background: var(--vb-surface);
    border-radius: var(--vb-radius-md);
    margin-bottom: var(--vb-space-3);
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--vb-text-base); font-weight: 600;
    color: var(--vb-ink-700); padding: 0; margin-bottom: var(--vb-space-2);
  }
  .woocommerce ul.products li.product .price {
    color: var(--vb-red-700);          /* 6.47:1 on white */
    font-size: var(--vb-text-lg); font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .woocommerce ul.products li.product .price del {
    color: var(--vb-slate-400); font-weight: 400; font-size: var(--vb-text-sm);
  }
  /* Soft red pill, not the harsh default circle */
  .woocommerce span.onsale {
    background: var(--vb-red-50);
    color: var(--vb-red-700);
    border-radius: var(--vb-radius-full);
    min-height: 0; min-width: 0; line-height: 1;
    padding: 6px 12px;
    font-size: var(--vb-text-xs); font-weight: 600;
    top: var(--vb-space-3); left: var(--vb-space-3); right: auto;
  }
}

/* ==========================================================================
   V4 — HERO BANNER SLIDER
   CSS scroll-snap track; JS only sets scrollLeft. No carousel library.
   ========================================================================== */
@layer sections {

  .vb-slider { position: relative; background: var(--vb-canvas); }
  .vb-slider--home,
  .vb-slider--archive { border-bottom: 1px solid var(--vb-line-300); }

  .vb-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .vb-slider__track::-webkit-scrollbar { display: none; }
  .vb-slider.is-single .vb-slider__track { overflow: visible; }

  .vb-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    scroll-snap-align: start;
    display: grid;
    gap: var(--vb-space-8);
    align-items: center;
    padding-block: var(--vb-space-10);

    /* Full-bleed centring. The slide stays 100% wide so scroll-snap always
       lands on a full viewport; the CONTENT is capped and centred by padding.
       A max-width on the slide itself capped it at 1600px while the track was
       100%, so above 1600px the snap points drifted and you saw two part
       slides at once. */
    padding-inline: max(var(--vb-gutter), calc((100% - var(--vb-container-inner)) / 2));
  }

  /* The prev/next buttons are absolutely positioned at the gutter — exactly
     where the slide text began, so headlines ran underneath them. Reserve
     44px + breathing room from 900px up, which is where the nav appears. */
  @media (min-width: 900px) {
    .vb-slider:not(.is-single) .vb-slide {
      padding-inline: max(
        calc(var(--vb-gutter) + 3.75rem),
        calc((100% - var(--vb-container-inner)) / 2)
      );
    }
  }

  /* Dots overlay the bottom edge — keep content clear of them too. */
  .vb-slider:not(.is-single) .vb-slide { padding-bottom: var(--vb-space-16); }

  @media (min-width: 1024px) {
    .vb-slider--home .vb-slide { grid-template-columns: 1fr 1.05fr; padding-block: var(--vb-space-12); }
    .vb-slider--home:not(.is-single) .vb-slide { padding-bottom: var(--vb-space-16); }
  }
  .vb-slide--plain { grid-template-columns: 1fr; }

  .vb-slide__title {
    font-family: var(--vb-font-display);
    font-variation-settings: var(--vb-fraunces-refined);
    font-size: var(--vb-text-h1);
    line-height: var(--vb-leading-tight);
    letter-spacing: -.025em;
    font-weight: 600;
    color: var(--vb-ink-700);
    margin: 0 0 var(--vb-space-4);
    max-width: 22ch;
    text-wrap: balance;
  }
  .vb-slider--home .vb-slide:first-child .vb-slide__title { font-size: var(--vb-text-display); }
  .vb-slide__title em { font-style: normal; color: var(--vb-red-500); }

  .vb-slide__text {
    font-size: var(--vb-text-lg);
    color: var(--vb-slate-500);
    max-width: 52ch;
    margin: 0 0 var(--vb-space-8);
  }

  .vb-slide__cta { display: flex; flex-wrap: wrap; gap: var(--vb-space-3); }
  @media (max-width: 479px) { .vb-slide__cta .vb-btn { width: 100%; } }

  .vb-slide__media {
    background: var(--vb-surface);
    border-radius: var(--vb-radius-xl);
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .vb-slide__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

  /* --- Controls -----------------------------------------------------------
     44px targets, always visible on touch. Never hover-only. */
  .vb-slider__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
    width: 44px; height: 44px;
    display: none; align-items: center; justify-content: center;
    background: var(--vb-canvas);
    color: var(--vb-ink-700);
    border: 1px solid var(--vb-line-300);
    border-radius: var(--vb-radius-full);
    box-shadow: var(--vb-shadow-sm);
    cursor: pointer;
    transition: background-color var(--vb-duration-fast) ease,
                border-color var(--vb-duration-fast) ease;
  }
  @media (min-width: 900px) { .vb-slider__nav { display: flex; } }
  .vb-slider__nav:hover { background: var(--vb-page); border-color: var(--vb-border); }
  .vb-slider__nav--prev { left: var(--vb-space-4); }
  .vb-slider__nav--next { right: var(--vb-space-4); }
  .vb-slider.is-single .vb-slider__nav { display: none; }

  .vb-slider__dots {
    position: absolute; left: 0; right: 0; bottom: var(--vb-space-5);
    display: flex; justify-content: center; gap: var(--vb-space-2);
    z-index: 2;
  }
  .vb-slider__dots button {
    position: relative;
    width: 28px; height: 4px; padding: 0;
    background: var(--vb-line-300);
    border: 0; border-radius: var(--vb-radius-full);
    cursor: pointer;
    transition: background-color var(--vb-duration-fast) ease;
  }
  /* The visible dot is 4px but the tap target is 44px tall. */
  .vb-slider__dots button::before {
    content: ""; position: absolute; left: 0;
    width: 28px; height: 44px; top: -20px;
  }
  .vb-slider__dots button[aria-selected="true"] { background: var(--vb-red-500); }
  .vb-slider.is-single .vb-slider__dots { display: none; }

  /* --- Archive variant ----------------------------------------------------- */
  .vb-slider--archive .vb-slide { padding-block: var(--vb-space-10); }
  .vb-slider--archive .vb-slide__title { font-size: var(--vb-text-h2); max-width: 26ch; }
  .vb-slider--archive .vb-slide__text { margin-bottom: var(--vb-space-6); }
  .vb-slider--archive .vb-hero__trust { margin-top: var(--vb-space-6); border-top: 0; padding-top: 0; }

  /* --- Product variant: a strip, never a hero ------------------------------
     A banner here would push price and Add to Cart below the fold. */
  .vb-slider--product { background: var(--vb-red-50); border-bottom: 0; }
  .vb-slider--product .vb-slide {
    padding: var(--vb-space-3) var(--vb-gutter);
    padding-bottom: var(--vb-space-3);
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .vb-slider--product .vb-slide__title {
    font-family: var(--vb-font-ui);
    font-size: var(--vb-text-sm);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--vb-red-700);
    margin: 0; max-width: none; text-align: center;
  }

  /* --- Collections strip (moved out of the hero) ---------------------------- */
  .vb-collstrip { background: var(--vb-canvas); border-bottom: 1px solid var(--vb-line-300); }
  .vb-collstrip__grid {
    display: grid; gap: var(--vb-space-3);
    grid-template-columns: repeat(3, 1fr);
    padding-block: var(--vb-space-6);
  }
  @media (min-width: 640px)  { .vb-collstrip__grid { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 1024px) { .vb-collstrip__grid { grid-template-columns: repeat(7, 1fr); } }

  @media (prefers-reduced-motion: reduce) {
    .vb-slider__track { scroll-behavior: auto; }
  }
}
