/*
Theme:    Vestra - fashion/lifestyle WooCommerce theme
File:     assets/css/src/theme.css  (single-file design system, mobile-first)
Owner:    Task 2-f (stylesheet). Minified by the build into assets/css/dist/theme.min.css.
Contract: CONVENTIONS.md v1.0 - design tokens in :root are verbatim from Section 2.

Contents
  01. Design tokens
  02. Base reset & elements
  03. Accessibility utilities
  04. Layout primitives (container, section, page head, breadcrumbs)
  05. Typography helpers
  06. Links, buttons
  07. Forms (inputs, fields)
  08. WooCommerce notices & form rows
  09. WooCommerce button normalization
  10. Site frame (body, main, footer shell)
  11. Promo bar
  12. Header, live search, header actions
  13. Desktop navigation (nav, submenu, mega menu)
  14. Mobile header & category chips row
  15. Drawers, scrim, scroll lock
  16. Mobile bottom bar
  17. Footer
  18. Hero carousel
  19. Category tiles
  20. Editorial block
  21. Flash sale & countdown
  22. Product grid & skeletons
  23. Product card (media, badges, actions, quick, swatches, rating, title)
  24. Price
  25. Quick add panel (variable products)
  26. Shop toolbar, active chips, shop layout, filters
  27. Single product: grid, gallery, lightbox
  28. Single product: summary, options, qty, add to cart
  29. Product tabs
  30. Reviews & fit summary
  31. Modal & size table
  32. Mini cart & free shipping bar
  33. Cart page
  34. Checkout
  35. Wishlist page
  36. Empty states
  37. Pagination & load more
  38. Blog: post cards, post grid
  39. Toast
  40. Admin settings page (CSS-only tabs)
  41. RTL
  42. Reduced motion
  43. Print

Rules of the house:
  - Spacing, radii, colors, shadows, durations, easing, z-index: ONLY via var() tokens
    (documented exceptions: #262626 button hover, #d4d4d4 empty stars, #efefef shimmer,
    white/rgba-white overlays on imagery).
  - Logical properties only (margin-inline, inset-inline-start, border-block-end, ...).
  - Mobile-first; breakpoints sm 640 / md 768 / lg 1024 / xl 1280.
*/

/* =============================================================
   01. DESIGN TOKENS (verbatim from CONVENTIONS.md Section 2)
   ============================================================= */

:root {
  --color-bg: #ffffff;
  --color-text: #171717;
  --color-muted: #666666;
  --color-border: #e5e5e5;
  --color-soft: #f6f6f6;
  --color-sale: #e53935;
  --color-promo: #f07a24;
  --color-success: #1e8e3e;
  --color-overlay: rgba(23, 23, 23, 0.55);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  --container: 1320px;
  --card-ratio: 2 / 3;
  --header-h: 56px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --dur-fast: 150ms;
  --dur: 250ms;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --z-header: 100;
  --z-drawer: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* Header grows to 64px from md up. Single centralized override so every
   calc(var(--header-h) + ...) sticky offset stays correct at all sizes. */
@media (min-width: 768px) {
  :root {
    --header-h: 64px;
  }
}

/* =============================================================
   02. BASE RESET & ELEMENTS
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Anchor targets clear the sticky header. */
:target {
  scroll-margin-block-start: calc(var(--header-h) + var(--space-4));
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* Component lists are reset above; content lists keep browser bullets.
   Utility classes below reset explicitly where needed. */

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--color-text);
}

/* The [hidden] attribute must always win, including over display:flex/grid
   component rules. */
[hidden] {
  display: none !important;
}

/* Global visible focus (contract Section 2). */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* Thin scrollbars for horizontal rails. Applied as a utility class; the
   known rails are also listed so markup cannot forget it. */
.vs-rail,
.vs-chips-row,
.vs-gallery__thumbs,
.vs-tabs__list {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.vs-rail::-webkit-scrollbar,
.vs-chips-row::-webkit-scrollbar,
.vs-gallery__thumbs::-webkit-scrollbar,
.vs-tabs__list::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.vs-rail::-webkit-scrollbar-track,
.vs-chips-row::-webkit-scrollbar-track,
.vs-gallery__thumbs::-webkit-scrollbar-track,
.vs-tabs__list::-webkit-scrollbar-track {
  background: transparent;
}

.vs-rail::-webkit-scrollbar-thumb,
.vs-chips-row::-webkit-scrollbar-thumb,
.vs-gallery__thumbs::-webkit-scrollbar-thumb,
.vs-tabs__list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-pill);
}

/* =============================================================
   03. ACCESSIBILITY UTILITIES
   ============================================================= */

/* Skip link: parked above the viewport, slides in on focus. */
.vs-skip-link {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  width: max-content;
  max-width: 92vw;
  margin-inline: auto;
  transform: translateY(-110%);
  z-index: calc(var(--z-toast) + 1);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-text);
  color: var(--color-bg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-end-start-radius: var(--radius);
  border-end-end-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease);
}

.vs-skip-link:focus-visible {
  transform: translateY(0);
}

/* WordPress screen reader convention + Vestra alias. */
.screen-reader-text,
.vs-visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.vs-visually-hidden:focus {
  clip: auto !important;
  clip-path: none;
  background-color: var(--color-bg);
  color: var(--color-text);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  width: auto;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  position: absolute !important;
  inset-block-start: var(--space-4);
  inset-inline-start: var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: calc(var(--z-toast) + 1);
}

/* =============================================================
   04. LAYOUT PRIMITIVES
   ============================================================= */

.vs-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.vs-section {
  padding-block: var(--space-8);
}

@media (min-width: 768px) {
  .vs-section {
    padding-block: var(--space-12);
  }
}

.vs-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
}

.vs-section__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .vs-section__title {
    font-size: 24px;
  }
}

.vs-section__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}

.vs-section__link:hover,
.vs-section__link:focus-visible {
  color: var(--color-text);
}

.vs-section__link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Archive / page heading block. */
.vs-page-head {
  padding-block: var(--space-8) var(--space-4);
}

.vs-page-head__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.vs-page-head__description {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 640px;
  margin-block-start: var(--space-2);
}

/* Breadcrumbs (WC + generic trail, wrapper class from the contract). */
.vs-breadcrumbs {
  font-size: 13px;
  color: var(--color-muted);
  padding-block: var(--space-3);
}

.vs-breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.vs-breadcrumbs a:hover,
.vs-breadcrumbs a:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vs-breadcrumbs svg {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

/* =============================================================
   05. TYPOGRAPHY HELPERS
   ============================================================= */

h1 {
  font-size: clamp(26px, 1.625rem + 1vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin-block-end: var(--space-4);
}

h2 {
  font-size: clamp(22px, 1.375rem + 0.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin-block-end: var(--space-4);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-block-end: var(--space-3);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-block-end: var(--space-2);
}

.vs-text-muted {
  color: var(--color-muted);
}

/* Small caps section label. */
.vs-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-block-end: var(--space-2);
}

/* Line clamping helpers (titles, excerpts). */
.vs-clamp-2,
.vs-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-clamp-2 {
  -webkit-line-clamp: 2;
}

.vs-clamp-3 {
  -webkit-line-clamp: 3;
}

/* =============================================================
   06. LINKS & BUTTONS
   ============================================================= */

.vs-link {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.vs-link:hover,
.vs-link:focus-visible {
  color: var(--color-muted);
}

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-color: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.vs-btn svg {
  flex: none;
}

/* Variants ------------------------------------------------- */

.vs-btn--primary {
  background-color: var(--color-text);
  color: #ffffff;
}

/* Slightly lighter near-black on hover (sanctioned value). */
.vs-btn--primary:hover,
.vs-btn--primary:focus-visible {
  background-color: #262626;
  color: #ffffff;
}

.vs-btn--outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.vs-btn--outline:hover,
.vs-btn--outline:focus-visible {
  background-color: var(--color-soft);
}

.vs-btn--ghost {
  background-color: transparent;
  color: var(--color-text);
}

.vs-btn--ghost:hover,
.vs-btn--ghost:focus-visible {
  background-color: var(--color-soft);
}

/* White button for use over dark hero imagery. */
.vs-btn--onlight {
  background-color: #ffffff;
  color: var(--color-text);
}

.vs-btn--onlight:hover,
.vs-btn--onlight:focus-visible {
  background-color: var(--color-soft);
}

.vs-btn--small {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 13px;
}

.vs-btn--block {
  width: 100%;
}

/* States --------------------------------------------------- */

.vs-btn:disabled,
.vs-btn[disabled],
.vs-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.vs-btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.vs-btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: var(--radius-pill);
  animation: vs-spin 0.6s linear infinite;
}

@keyframes vs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================================
   07. FORMS
   ============================================================= */

.vs-input,
.vs-select {
  display: block;
  width: 100%;
  height: 44px;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease);
}

textarea.vs-input {
  height: auto;
  min-height: 96px;
  padding-block: var(--space-2);
  resize: vertical;
}

.vs-input::placeholder,
.vs-select::placeholder {
  color: var(--color-muted);
}

.vs-input:focus-visible,
.vs-select:focus-visible {
  border-color: var(--color-text);
}

.vs-field {
  margin-block-end: var(--space-3);
}

.vs-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-block-end: var(--space-1);
}

/* =============================================================
   08. WOOCOMMERCE NOTICES & FORM ROWS
   ============================================================= */

/* WC notices reskinned: soft surface, inline-start accent border. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin-block-end: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-soft);
  color: var(--color-text);
  border: 0;
  border-inline-start: 3px solid var(--color-success);
  border-radius: var(--radius-sm);
  list-style: none;
}

.woocommerce-message {
  border-inline-start-color: var(--color-success);
}

.woocommerce-info {
  border-inline-start-color: var(--color-text);
}

.woocommerce-error {
  border-inline-start-color: var(--color-sale);
}

/* Hide the WC core ::before glyphs. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

.woocommerce-message ul,
.woocommerce-info ul,
.woocommerce-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Checkout/cart form rows get the vs-input treatment. */
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="number"],
.woocommerce form .form-row input[type="search"],
.woocommerce form .form-row input[type="url"],
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  display: block;
  width: 100%;
  height: 44px;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease);
}

.woocommerce form .form-row textarea {
  height: auto;
  min-height: 96px;
  padding-block: var(--space-2);
  resize: vertical;
}

.woocommerce form .form-row input:focus-visible,
.woocommerce form .form-row textarea:focus-visible,
.woocommerce form .form-row select:focus-visible {
  border-color: var(--color-text);
}

.woocommerce form .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-block-end: var(--space-1);
}

.woocommerce form .form-row .required {
  color: var(--color-sale);
  text-decoration: none;
  border: 0;
}

/* Validation error state. */
.woocommerce form .form-row.woocommerce-invalid input,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea {
  border-color: var(--color-sale);
}

/* =============================================================
   09. WOOCOMMERCE BUTTON NORMALIZATION
   Core .button elements follow the vs-btn primary look so pages we do
   not fully re-template (checkout, account) stay coherent.
   ============================================================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-color: var(--color-text);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #262626;
  color: #ffffff;
}

.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce a.button.disabled,
.woocommerce button.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================================
   10. SITE FRAME
   ============================================================= */

body.vstra-site {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Reserve room for the fixed bottom bar on phones (bar + breathing room). */
body.vstra-site {
  padding-block-end: calc(64px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.vstra-site {
    padding-block-end: 0;
  }
}

.vs-site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* Body scroll lock while a drawer/modal is open (JS toggles the class). */
body.vs-scroll-lock {
  overflow: hidden;
}

/* =============================================================
   11. PROMO BAR
   ============================================================= */

.vs-promo {
  position: relative;
  background-color: var(--color-text);
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  padding-block: var(--space-2);
}

.vs-promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.vs-promo__link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.vs-promo__link:hover,
.vs-promo__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vs-promo__countdown {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.vs-promo__close {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: var(--space-2);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
}

.vs-promo__close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.vs-promo__close svg {
  width: 16px;
  height: 16px;
}

/* =============================================================
   12. HEADER, LIVE SEARCH, HEADER ACTIONS
   ============================================================= */

.vs-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  background-color: var(--color-bg);
  border-block-end: 1px solid var(--color-border);
}

.vs-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.vs-header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--color-text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vs-header__logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Center search: hidden below md; md+ the header row becomes a three-track
   grid (brand | search | actions) so the search truly centers between them
   instead of hugging the logo with a dead zone before the icons. */
.vs-header__search {
  display: none;
  flex: 1;
  max-width: 480px;
}

@media (min-width: 768px) {
  .vs-header__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 480px) 1fr;
    align-items: center;
  }

  .vs-header__search {
    display: block;
    width: 100%;
  }

  .vs-header__actions {
    justify-self: end;
    margin-inline-start: 0;
  }
}

.vs-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-inline-start: auto;
}

/* Live search ------------------------------------------------ */

.vs-search {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}

.vs-search input[type="search"],
.vs-search input[type="text"],
.vs-search [data-vs-search-input] {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding-inline: 40px var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background-color: var(--color-soft);
  color: var(--color-text);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.vs-search input[type="search"]::placeholder,
.vs-search input[type="text"]::placeholder {
  color: var(--color-muted);
}

.vs-search input[type="search"]:focus-visible,
.vs-search input[type="text"]:focus-visible {
  border-color: var(--color-text);
  background-color: var(--color-bg);
}

.vs-search__submit,
.vs-search button[type="submit"] {
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.vs-search__submit:hover,
.vs-search button[type="submit"]:hover {
  color: var(--color-text);
}

.vs-search__submit svg,
.vs-search button[type="submit"] svg {
  width: 18px;
  height: 18px;
}

/* Results dropdown. */
.vs-search__results {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline: 0;
  max-height: 420px;
  overflow-y: auto;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: calc(var(--z-header) + 1);
  display: none;
}

.vs-search__results.is-open {
  display: block;
}

.vs-search__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  color: inherit;
  text-decoration: none;
}

.vs-search__item:hover {
  background-color: var(--color-soft);
}

.vs-search__item:focus-within {
  outline: 2px solid var(--color-text);
  outline-offset: -2px;
}

.vs-search__img {
  flex: none;
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--color-soft);
}

.vs-search__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.vs-search__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.vs-search__price {
  font-size: 13px;
  font-weight: 700;
}

.vs-search__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.vs-search__more {
  display: block;
  padding: var(--space-3);
  border-block-start: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.vs-search__more:hover {
  color: var(--color-muted);
}

.vs-search__empty {
  padding: var(--space-4);
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

/* Header action buttons -------------------------------------- */

.vs-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.vs-icon-btn:hover,
.vs-icon-btn:focus-visible {
  background-color: var(--color-soft);
}

.vs-icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Cart / wishlist count chip. Hidden via [hidden] when zero. */
.vs-count {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 0;
  min-width: 16px;
  height: 16px;
  padding-inline: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--color-sale);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* Language switcher -------------------------------------------------
   Rendered only when a multilingual plugin (Polylang/WPML) reports two or
   more active languages; otherwise the part outputs nothing. */

.vs-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline-end: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vs-lang svg {
  color: var(--color-muted);
}

.vs-lang__code {
  color: var(--color-text);
}

.vs-lang__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.vs-lang__link:hover,
.vs-lang__link:focus-visible {
  color: var(--color-text);
}

.vs-lang__sep {
  color: var(--color-border);
}

/* Drawer variant: roomier, tap-sized targets. */
.vs-mobile-nav__extras .vs-lang {
  padding: 0;
  margin-block-end: var(--space-4);
  font-size: 13px;
}

.vs-mobile-nav__extras .vs-lang__link {
  padding: var(--space-2);
}

/* =============================================================
   13. DESKTOP NAVIGATION
   ============================================================= */

.vs-nav {
  display: none;
  background-color: var(--color-bg);
  border-block-end: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .vs-nav {
    display: block;
  }
}

.vs-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.vs-nav__item {
  position: relative;
}

/* Sentence case, 14px. Elements are links or buttons (mega triggers).
   Inline padding keeps neighbouring items readable; the list gap alone
   (4px) made the row read as one run-on string. */
.vs-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-block: 10px;
  padding-inline: var(--space-2);
  border: 0;
  background: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.vs-nav__link:hover,
.vs-nav__link:focus-visible,
.vs-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.vs-nav__toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.vs-nav__toggle:hover {
  background-color: var(--color-soft);
}

.vs-nav__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}

.vs-nav__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Simple dropdown panel. */
.vs-submenu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 220px;
  margin: 0;
  padding-block: var(--space-2);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  z-index: calc(var(--z-header) + 1);
  display: none;
}

.vs-nav__item:hover .vs-submenu,
.vs-nav__item:focus-within .vs-submenu,
.vs-submenu.is-open,
.vs-submenu[data-open] {
  display: block;
}

.vs-submenu a {
  display: block;
  padding-block: var(--space-2);
  padding-inline: var(--space-4);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
}

.vs-submenu a:hover,
.vs-submenu a:focus-visible {
  background-color: var(--color-soft);
}

/* Mega menu panel (category term grid). */
.vs-mega {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  padding: var(--space-6);
  background-color: var(--color-bg);
  border-block-end: 1px solid var(--color-border);
  border-end-start-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: calc(var(--z-header) + 1);
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.vs-mega.is-open,
.vs-nav__item:hover .vs-mega,
.vs-nav__item:focus-within .vs-mega {
  display: grid;
}

.vs-mega__col {
  min-width: 0;
}

.vs-mega__col-title {
  font-size: 14px;
  font-weight: 700;
  margin-block-end: var(--space-3);
}

.vs-mega__link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.vs-mega__thumb img,
.vs-mega__thumb .vs-mega__img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--color-soft);
  border-radius: var(--radius);
  margin-block-end: var(--space-2);
}

.vs-mega__name {
  font-size: 13px;
  font-weight: 500;
}

.vs-mega__count {
  font-size: 12px;
  color: var(--color-muted);
}

/* =============================================================
   14. MOBILE HEADER & CATEGORY CHIPS ROW
   ============================================================= */

/* Stays visible below lg so navigation exists between md and lg,
   where the desktop nav is still hidden. */
.vs-mobile-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-2);
  background-color: var(--color-bg);
  border-block-end: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .vs-mobile-header {
    display: none;
  }
}

/* Header search is already visible from md up; hide the duplicate row. */
@media (min-width: 768px) {
  .vs-mobile-header .vs-search {
    display: none;
  }
}

.vs-chips-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  padding-inline: var(--space-4);
  scroll-snap-type: x proximity;
}

/* Chips ------------------------------------------------------ */

.vs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background-color: var(--color-soft);
  color: var(--color-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.vs-chips-row .vs-chip:hover {
  border-color: var(--color-border);
}

.vs-chip.is-active,
.vs-chip[aria-current="page"] {
  background-color: var(--color-text);
  color: #ffffff;
}

/* The "x" affordance inside removable filter chips. */
.vs-chip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: var(--space-2);
  font-size: 14px;
  line-height: 1;
}

.vs-chip__x svg {
  width: 12px;
  height: 12px;
}

/* =============================================================
   15. DRAWERS, SCRIM, SCROLL LOCK
   ============================================================= */

/* Side drawers hide via logical inset offsets (not translateX) so the
   mechanic is direction-correct in RTL with zero [dir] overrides. */
.vs-drawer {
  position: fixed;
  inset-block: 0;
  width: min(360px, 92vw);
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  z-index: var(--z-drawer);
  transition:
    inset-inline-start var(--dur) var(--ease),
    inset-inline-end var(--dur) var(--ease);
}

.vs-drawer--start {
  inset-inline-start: -100%;
  inset-inline-end: auto;
}

.vs-drawer--start.is-open {
  inset-inline-start: 0;
}

.vs-drawer--end {
  inset-inline-end: -100%;
  inset-inline-start: auto;
}

.vs-drawer--end.is-open {
  inset-inline-end: 0;
}

/* Bottom sheet variant (mobile filters): slides on the block axis,
   which is direction-safe, so transform is used here. */
.vs-drawer--sheet {
  inset-block: auto 0;
  inset-inline: 0;
  width: 100%;
  height: auto;
  max-height: 85dvh;
  transform: translateY(100%);
  border-block-start: 1px solid var(--color-border);
  border-start-start-radius: var(--radius-lg);
  border-start-end-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease);
}

.vs-drawer--sheet.is-open {
  transform: translateY(0);
}

.vs-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-block-end: 1px solid var(--color-border);
}

.vs-drawer__title {
  font-size: 16px;
  font-weight: 700;
}

.vs-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  overscroll-behavior: contain;
}

.vs-drawer__foot {
  padding: var(--space-4);
  border-block-start: 1px solid var(--color-border);
}

/* Generic navigation rendered inside a drawer (mobile nav fallback). */
.vs-drawer nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.vs-drawer nav a {
  display: block;
  padding-block: var(--space-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.vs-drawer nav a:hover,
.vs-drawer nav a:focus-visible,
.vs-drawer nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Shared scrim. */
.vs-scrim {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  pointer-events: none;
  z-index: calc(var(--z-drawer) - 1);
  transition: opacity var(--dur) var(--ease);
}

.vs-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================================
   16. MOBILE BOTTOM BAR
   ============================================================= */

.vs-bottom-bar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background-color: var(--color-bg);
  border-block-start: 1px solid var(--color-border);
  z-index: var(--z-header);
  padding-block-end: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .vs-bottom-bar {
    display: none;
  }
}

.vs-bottom-bar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding-block: var(--space-2);
  border: 0;
  background: none;
  color: var(--color-muted);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}

.vs-bottom-bar__item svg {
  width: 22px;
  height: 22px;
}

.vs-bottom-bar__item.is-active,
.vs-bottom-bar__item[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* Count chip pinned to the item icon. */
.vs-bottom-bar__item .vs-count {
  inset-block-start: 4px;
  inset-inline-end: calc(50% - 22px);
}

/* =============================================================
   17. FOOTER
   ============================================================= */

.vs-footer {
  border-block-start: 1px solid var(--color-border);
  margin-block-start: var(--space-12);
  background-color: var(--color-bg);
}

.vs-footer__grid {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-8);
}

@media (min-width: 640px) {
  .vs-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vs-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vs-footer__brand p {
  font-size: 13px;
  color: var(--color-muted);
}

.vs-footer__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-block-end: var(--space-3);
}

.vs-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vs-footer__links a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
}

.vs-footer__links a:hover,
.vs-footer__links a:focus-visible {
  color: var(--color-text);
}

.vs-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
}

.vs-footer__social .vs-icon-btn {
  width: 36px;
  height: 36px;
}

.vs-footer__social .vs-icon-btn svg {
  width: 18px;
  height: 18px;
}

.vs-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-block-start: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-muted);
}

.vs-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.vs-pay-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

/* =============================================================
   18. HERO CAROUSEL
   ============================================================= */

.vs-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-soft);
}

.vs-hero__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.vs-hero__track::-webkit-scrollbar {
  display: none;
}

.vs-hero__slide {
  position: relative;
  flex: none;
  width: 100%;
  scroll-snap-align: start;
  /* Taller crop on phones, wide banner from lg. Declared per breakpoint
     so the box reserves space (no CLS) at every width. */
  aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
  .vs-hero__slide {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 1024px) {
  .vs-hero__slide {
    aspect-ratio: 21 / 9;
  }
}

.vs-hero__media,
.vs-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vs-hero__media img {
  object-fit: cover;
}

.vs-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-6);
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%);
}

@media (min-width: 1024px) {
  .vs-hero__content {
    padding: var(--space-12);
  }
}

.vs-hero__content--align-center {
  align-items: center;
  text-align: center;
}

.vs-hero__content--align-end {
  align-items: flex-end;
  text-align: end;
}

.vs-hero__title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.vs-hero__text {
  font-size: 15px;
  line-height: 1.5;
  max-width: 480px;
  opacity: 0.95;
}

/* CTA is a .vs-btn--onlight; it follows the content alignment
   (align-items on the --align-* variants) and never shrinks. */
.vs-hero__cta {
  margin-block-start: var(--space-2);
  flex: none;
}

/* Controls --------------------------------------------------- */

.vs-hero__arrow,
.vs-lightbox__arrow {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 1;
  transition: background-color var(--dur-fast) var(--ease);
}

.vs-hero__arrow:hover,
.vs-lightbox__arrow:hover {
  background-color: #ffffff;
}

.vs-hero__arrow svg,
.vs-lightbox__arrow svg {
  width: 22px;
  height: 22px;
}

.vs-hero__arrow--prev,
.vs-lightbox__arrow--prev {
  inset-inline-start: var(--space-4);
}

.vs-hero__arrow--next,
.vs-lightbox__arrow--next {
  inset-inline-end: var(--space-4);
}

.vs-hero__dots {
  position: absolute;
  inset-block-end: var(--space-4);
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  z-index: 1;
}

.vs-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.vs-hero__dot.is-active {
  width: 24px;
  background-color: #ffffff;
}

.vs-hero__pause {
  position: absolute;
  inset-block-end: var(--space-4);
  inset-inline-end: var(--space-4);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 1;
}

.vs-hero__pause:hover {
  background-color: #ffffff;
}

.vs-hero__pause svg {
  width: 16px;
  height: 16px;
}

/* Static campaign hero: soft surface, centered dark text, no overlay. */
.vs-hero--static {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background-color: var(--color-soft);
}

.vs-hero--static .vs-hero__content {
  position: static;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8);
  color: var(--color-text);
  background: none;
}

.vs-hero--static .vs-hero__title {
  color: var(--color-text);
}

.vs-hero--static .vs-hero__text {
  color: var(--color-muted);
}

/* =============================================================
   19. CATEGORY TILES
   ============================================================= */

/* Mobile: horizontal snap rail. sm+: auto-fit grid — the tile count varies
   per store (the demo catalog ships four categories), so tracks adapt to the
   term count instead of wrapping a fourth tile onto a lonely second row. */
.vs-tiles {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-block: var(--space-1);
}

@media (min-width: 640px) {
  .vs-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    overflow: visible;
  }
}

.vs-tile {
  flex: none;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  scroll-snap-align: start;
  color: var(--color-text);
  text-decoration: none;
}

@media (min-width: 640px) {
  .vs-tile {
    width: auto;
  }
}

.vs-tile__media {
  width: 88px;
  height: 88px;
  overflow: hidden;
  background-color: var(--color-soft);
}

@media (min-width: 640px) {
  .vs-tile__media {
    width: 120px;
    height: 120px;
  }
}

.vs-tile--circle .vs-tile__media,
.vs-tiles--circle .vs-tile__media {
  border-radius: var(--radius-pill);
}

.vs-tile--square .vs-tile__media,
.vs-tiles--square .vs-tile__media {
  border-radius: var(--radius-lg);
}

.vs-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vs-tile__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.vs-tile__count {
  font-size: 12px;
  color: var(--color-muted);
}

/* =============================================================
   20. EDITORIAL BLOCK (admin-configured campaign section)
   ============================================================= */

.vs-editorial {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 768px) {
  .vs-editorial {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.vs-editorial__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background-color: var(--color-soft);
}

.vs-editorial__title {
  font-size: clamp(20px, 1.25rem + 1vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.vs-editorial__text {
  font-size: 15px;
  color: var(--color-muted);
  margin-block: var(--space-2) var(--space-4);
}

/* =============================================================
   21. FLASH SALE & COUNTDOWN
   ============================================================= */

.vs-flash {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .vs-flash {
    padding: var(--space-6);
  }
}

.vs-flash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
}

.vs-flash__title {
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .vs-flash__title {
    font-size: 24px;
  }
}

/* Countdown. */
.vs-cd {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vs-cd__part {
  min-width: 44px;
  padding: 6px var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--color-text);
  color: #ffffff;
  text-align: center;
}

.vs-cd__num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.vs-cd__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.vs-cd__sep {
  align-self: center;
  color: var(--color-muted);
  font-weight: 700;
}

/* Ended state: hide when the component asks for it. */
.vs-cd[data-state="ended"][data-on-end="hide"] {
  display: none;
}

/* =============================================================
   22. PRODUCT GRID & SKELETONS
   ============================================================= */

.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .vs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 1024px) {
  .vs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1280px) {
  .vs-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Busy overlay while AJAX filtering is in flight. */
.vs-grid[aria-busy="true"],
.vs-grid.is-loading {
  position: relative;
}

.vs-grid[aria-busy="true"]::after,
.vs-grid.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

/* Skeleton placeholders. */
@keyframes vs-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.vs-skeleton,
.vs-skeleton-card__media,
.vs-skeleton-card__line {
  background-color: var(--color-soft);
  background-image: linear-gradient(to right, var(--color-soft) 0%, #efefef 50%, var(--color-soft) 100%);
  background-size: 200% 100%;
  animation: vs-shimmer 1.2s linear infinite;
}

.vs-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vs-skeleton-card__media {
  aspect-ratio: var(--card-ratio);
  border-radius: var(--radius-sm);
}

.vs-skeleton-card__line {
  height: 12px;
  border-radius: var(--radius-sm);
}

.vs-skeleton-card__line + .vs-skeleton-card__line {
  width: 60%;
}

/* =============================================================
   23. PRODUCT CARD
   ============================================================= */

.vs-card,
.vs-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

/* Media ------------------------------------------------------ */

.vs-card__media {
  position: relative;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  background-color: var(--color-soft);
  border-radius: var(--radius-sm);
}

/* The whole media area is a link; images never swallow clicks. */
.vs-card__media > a {
  display: block;
  height: 100%;
}

.vs-card__media img {
  pointer-events: none;
}

.vs-card__img,
.vs-card__img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.vs-card__img-alt {
  opacity: 0;
}

/* Secondary image swap + a gentle zoom ONLY on hover-capable devices
   (never on touch). The zoom animates single-image cards too; the media
   box clips it via overflow: hidden. Both layers scale together so the
   crossfade stays smooth. The global prefers-reduced-motion guard at the
   end of this file disables the motion. */
@media (hover: hover) and (pointer: fine) {
  .vs-card:hover .vs-card__img,
  .vs-card:focus-within .vs-card__img {
    transform: scale(1.04);
  }

  .vs-card:hover .vs-card__img-alt,
  .vs-card:focus-within .vs-card__img-alt {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Badges ----------------------------------------------------- */

.vs-card__badges {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  z-index: 1;
}

.vs-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.vs-badge--sale {
  background-color: var(--color-sale);
  color: #ffffff;
}

.vs-badge--new {
  background-color: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.vs-badge--best {
  background-color: var(--color-text);
  color: #ffffff;
}

.vs-badge--low {
  background-color: var(--color-promo);
  color: #ffffff;
}

/* External / dropship offers are outlined, not colored. */
.vs-badge--external,
.vs-badge--dropship {
  background-color: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Actions (wishlist) ------------------------------------------ */

.vs-card__actions {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-end: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 1;
}

.vs-card__actions .vs-icon-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.vs-card__actions .vs-icon-btn:hover,
.vs-card__actions .vs-icon-btn:focus-visible {
  background-color: #ffffff;
}

.vs-card__actions .vs-icon-btn svg {
  width: 18px;
  height: 18px;
}

.vs-card__actions .vs-icon-btn.is-active,
.vs-card__actions .vs-icon-btn[aria-pressed="true"] {
  background-color: var(--color-text);
  color: #ffffff;
}

.vs-card__actions .vs-icon-btn.is-active svg,
.vs-card__actions .vs-icon-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

/* Quick add button --------------------------------------------
   Visible by default (touch devices); hover-reveal only where a
   real hover pointer exists. */

.vs-card__quick {
  position: absolute;
  inset-block-end: var(--space-2);
  inset-inline: var(--space-2);
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .vs-card__quick {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }

  .vs-card:hover .vs-card__quick,
  .vs-card:focus-within .vs-card__quick {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Color swatches ---------------------------------------------- */

.vs-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.vs-swatch {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--swatch, var(--color-soft));
  color: var(--color-text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

/* Text-only swatches (sizes / letters). */
.vs-swatch--text {
  width: auto;
  height: 22px;
  padding-inline: var(--space-2);
  white-space: nowrap;
}

.vs-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.vs-swatch.is-active {
  outline: 2px solid var(--color-text);
  outline-offset: 1px;
}

.vs-swatch.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  /* Diagonal strike-through over the swatch color. */
  background-image: linear-gradient(
    to top left,
    transparent 45%,
    var(--color-muted) 45%,
    var(--color-muted) 55%,
    transparent 55%
  );
}

/* Rating ------------------------------------------------------ */

.vs-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  color: var(--color-muted);
}

/* Stars: gray base row + promo-orange filled overlay clipped by width. */
.vs-stars {
  position: relative;
  display: inline-flex;
  color: #d4d4d4;
  line-height: 1;
}

.vs-stars svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.vs-stars__fill {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-promo);
}

.vs-stars__fill svg {
  fill: currentColor;
}

.vs-card__rating-count {
  font-size: 11px;
  color: var(--color-muted);
}

/* Title ------------------------------------------------------- */

.vs-card__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.vs-card__title a {
  color: inherit;
  text-decoration: none;
}

.vs-card__title a:hover,
.vs-card__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================================
   24. PRICE
   ============================================================= */

.vs-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.vs-price del {
  color: var(--color-muted);
  font-size: 13px;
  text-decoration: line-through;
}

.vs-price ins {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.vs-price--sale ins,
.vs-price.is-sale ins {
  color: var(--color-sale);
}

.vs-price__save {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-sale);
}

.vs-price__checked {
  font-size: 11px;
  color: var(--color-muted);
}

/* =============================================================
   25. QUICK ADD PANEL (variable products)
   ============================================================= */

.vs-quick {
  position: absolute;
  inset-block-end: var(--space-2);
  inset-inline: var(--space-2);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.vs-quick__row {
  display: flex;
  gap: var(--space-2);
}

.vs-quick select {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
}

.vs-quick__msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-sale);
}

.vs-quick__buttons {
  display: flex;
  gap: var(--space-2);
}

.vs-quick__buttons .vs-btn {
  flex: 1;
}

/* While the panel is open the card media must let it overflow and
   raise above neighbors. */
.vs-card.is-quick-open {
  z-index: 2;
}

.vs-card.is-quick-open .vs-card__media {
  overflow: visible;
}

/* =============================================================
   26. SHOP TOOLBAR, CHIPS, LAYOUT, FILTERS
   ============================================================= */

.vs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-4);
}

.vs-result-count {
  font-size: 13px;
  color: var(--color-muted);
}

.vs-sort select,
.vs-sort .orderby {
  height: 40px;
  padding-inline: 32px var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
}

.vs-sort select:focus-visible,
.vs-sort .orderby:focus-visible {
  border-color: var(--color-text);
}

/* Filter toggle: mobile/tablet only. */
.vs-filter-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .vs-filter-toggle {
    display: none;
  }
}

/* Active filter chips bar. */
.vs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block-end: var(--space-3);
}

.vs-chips .vs-chip {
  font-size: 12px;
  padding-block: 6px;
  padding-inline: var(--space-3);
}

.vs-chips .vs-chip:hover {
  background-color: var(--color-bg);
  border-color: var(--color-border);
}

/* Shop layout: sidebar + results. */
.vs-shop-layout {
  display: block;
}

@media (min-width: 1024px) {
  .vs-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.vs-shop-aside {
  display: none;
}

@media (min-width: 1024px) {
  .vs-shop-aside {
    display: block;
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--space-4));
    align-self: start;
    max-height: calc(100dvh - var(--header-h) - var(--space-8));
    overflow-y: auto;
    padding-block: var(--space-4);
  }
}

/* Filter form ------------------------------------------------- */

.vs-filters {
  display: flex;
  flex-direction: column;
}

.vs-filters__group {
  margin: 0;
  padding: 0;
  padding-block: var(--space-4);
  border: 0;
  border-block-end: 1px solid var(--color-border);
}

.vs-filters__group legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  margin-block-end: var(--space-3);
}

.vs-filters__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vs-filter-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.vs-filter-option input[type="checkbox"],
.vs-filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--color-text);
}

.vs-filter-option__count {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--color-muted);
}

.vs-price-range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vs-price-range input {
  width: 90px;
  height: 40px;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
  text-align: start;
}

.vs-price-range input:focus-visible {
  border-color: var(--color-text);
}

.vs-price-range span {
  color: var(--color-muted);
}

/* Sticky apply/clear bar inside the mobile sheet. */
.vs-filters__bar {
  position: sticky;
  inset-block-end: 0;
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--color-bg);
  border-block-start: 1px solid var(--color-border);
}

.vs-filters__bar .vs-btn--primary {
  flex: 1;
}

/* Filters inside the bottom-sheet drawer: the drawer body padding is
   dropped; the form carries its own spacing. */
.vs-drawer--sheet .vs-drawer__body {
  padding: 0;
}

.vs-drawer--sheet .vs-filters {
  padding-block-end: 0;
}

/* =============================================================
   27. SINGLE PRODUCT: GRID, GALLERY, LIGHTBOX
   ============================================================= */

.vs-product__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .vs-product__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.vs-gallery {
  min-width: 0;
}

@media (min-width: 1024px) {
  .vs-gallery {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--space-6));
    align-self: start;
  }
}

.vs-gallery__main {
  position: relative;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  background-color: var(--color-soft);
  border-radius: var(--radius-lg);
  margin-block-end: var(--space-3);
}

.vs-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-gallery__zoom {
  position: absolute;
  inset-block-end: var(--space-3);
  inset-inline-end: var(--space-3);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 1;
}

.vs-gallery__zoom:hover {
  background-color: #ffffff;
}

.vs-gallery__zoom svg {
  width: 20px;
  height: 20px;
}

.vs-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-block-end: 4px;
}

.vs-gallery__thumb {
  position: relative;
  flex: none;
  width: 72px;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--color-soft);
  cursor: pointer;
  scroll-snap-align: start;
}

.vs-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-gallery__thumb.is-active {
  border-color: var(--color-text);
}

.vs-gallery__thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.vs-gallery__thumb--video svg {
  width: 24px;
  height: 24px;
}

/* Lightbox dialog. */
.vs-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: var(--color-overlay);
}

.vs-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-lightbox::backdrop {
  background: var(--color-overlay);
}

.vs-lightbox img {
  max-width: 92vw;
  max-height: 86dvh;
  object-fit: contain;
}

.vs-lightbox__close {
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline-end: var(--space-4);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  color: var(--color-text);
  cursor: pointer;
}

.vs-lightbox__close svg {
  width: 22px;
  height: 22px;
}

/* =============================================================
   28. SINGLE PRODUCT: SUMMARY, OPTIONS, QTY, ADD TO CART
   ============================================================= */

.vs-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.vs-summary__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-block-end: 0;
}

@media (min-width: 1024px) {
  .vs-summary__title {
    font-size: 28px;
  }
}

.vs-summary__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vs-summary__rating a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vs-summary__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 24px;
  font-weight: 700;
}

.vs-summary__price del {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-muted);
}

.vs-summary__price .vs-price__save {
  background-color: var(--color-sale);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Stock line. */
.vs-summary__stock {
  font-size: 13px;
  font-weight: 600;
}

.vs-summary__stock.is-in {
  color: var(--color-success);
}

.vs-summary__stock.is-out {
  color: var(--color-sale);
}

.vs-summary__stock.is-low {
  color: var(--color-promo);
}

/* Meta (SKU etc.). */
.vs-summary__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 13px;
  color: var(--color-muted);
}

.vs-summary__meta strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Source / delivery info strips. */
.vs-summary__source,
.vs-summary__delivery {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  background-color: var(--color-soft);
  border-radius: var(--radius);
}

.vs-summary__source svg,
.vs-summary__delivery svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--color-muted);
}

/* Affiliate disclosure note. */
.vs-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-block-start: var(--space-2);
  font-size: 13px;
  color: var(--color-muted);
}

.vs-disclosure svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-block-start: 2px;
  color: var(--color-muted);
}

/* Affiliate CTA button. */
.vs-cta-affiliate {
  width: 100%;
  min-height: 48px;
}

/* Summary extras (size guide, wishlist, share). */
.vs-summary__extras {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.vs-summary__extras .vs-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 13px;
}

.vs-summary__extras .vs-link svg {
  width: 14px;
  height: 14px;
}

/* Variation picker --------------------------------------------- */

.vs-variations {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vs-variations__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
}

.vs-variations__value {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}

.vs-option {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.vs-option.is-active {
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-text);
}

.vs-option--color {
  width: 44px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: var(--radius-pill);
  background-color: var(--swatch, var(--color-soft));
  box-shadow: 0 0 0 1px var(--color-border);
}

.vs-option--color.is-active {
  box-shadow: 0 0 0 2px var(--color-text);
}

.vs-option.is-disabled,
.vs-option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Quantity stepper --------------------------------------------- */

.vs-qty {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
}

.vs-qty [data-vs-qty-btn] {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.vs-qty [data-vs-qty-btn]:hover {
  background-color: var(--color-soft);
}

.vs-qty [data-vs-qty-btn] svg {
  width: 14px;
  height: 14px;
}

.vs-qty input[data-vs-qty] {
  width: 48px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background-color: transparent;
  appearance: none;
  -moz-appearance: textfield;
}

.vs-qty input[data-vs-qty]:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: -2px;
}

.vs-qty input[data-vs-qty]::-webkit-outer-spin-button,
.vs-qty input[data-vs-qty]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart -------------------------------------------------- */

.vs-add-to-cart {
  min-height: 48px;
  width: 100%;
}

.vs-add-to-cart:disabled,
.vs-add-to-cart[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================================
   29. PRODUCT TABS
   ============================================================= */

.vs-tabs__list {
  display: flex;
  gap: var(--space-2);
  margin-block: var(--space-8) var(--space-6);
  padding-block-end: 0;
  border-block-end: 1px solid var(--color-border);
  overflow-x: auto;
}

.vs-tabs__tab {
  padding-block: 10px 12px;
  border: 0;
  border-block-end: 2px solid transparent;
  background: none;
  color: var(--color-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.vs-tabs__tab:hover {
  color: var(--color-text);
}

.vs-tabs__tab.is-active,
.vs-tabs__tab[aria-selected="true"] {
  color: var(--color-text);
  border-block-end-color: var(--color-text);
}

.vs-tabs__panel {
  padding-block: var(--space-4);
}

/* =============================================================
   30. REVIEWS & FIT SUMMARY
   ============================================================= */

.vs-review {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--color-border);
}

.vs-review__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.vs-review__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex: none;
}

.vs-review__author {
  font-size: 14px;
  font-weight: 600;
}

.vs-review__date {
  font-size: 12px;
  color: var(--color-muted);
}

/* Per-review fit feedback badge. */
.vs-review__fit {
  font-size: 12px;
  font-weight: 600;
  background-color: var(--color-soft);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.vs-review__text {
  font-size: 14px;
}

/* Aggregated fit summary. */
.vs-fit-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background-color: var(--color-soft);
  border-radius: var(--radius);
  margin-block-end: var(--space-4);
}

.vs-fit-summary__title {
  font-size: 13px;
  font-weight: 700;
}

/* Three segments; widths come as inline flex-grow values, colors
   via the modifiers below (small = runs small, etc.). */
.vs-fit-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
}

.vs-fit-bar__seg {
  flex-grow: var(--fit, 1);
  background-color: var(--color-border);
}

.vs-fit-bar__seg--small {
  background-color: var(--color-sale);
}

.vs-fit-bar__seg--true {
  background-color: var(--color-success);
}

.vs-fit-bar__seg--large {
  background-color: var(--color-promo);
}

.vs-fit-summary__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted);
}

/* Review form. */
#review_form_wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-block-end: var(--space-1);
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea {
  display: block;
  width: 100%;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"] {
  height: 44px;
}

#review_form_wrapper textarea {
  min-height: 96px;
  padding-block: var(--space-2);
  resize: vertical;
}

#review_form_wrapper input:focus-visible,
#review_form_wrapper textarea:focus-visible {
  border-color: var(--color-text);
}

/* WC core star picker (review form) - minimal sizing only. */
.woocommerce p.stars a {
  display: inline-block;
  width: 24px;
  height: 24px;
}

/* =============================================================
   31. MODAL & SIZE TABLE
   ============================================================= */

.vs-modal {
  width: min(560px, 92vw);
  max-height: 85dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.vs-modal::backdrop {
  background: var(--color-overlay);
}

.vs-modal[open] {
  display: flex;
  flex-direction: column;
}

.vs-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-block-end: 1px solid var(--color-border);
}

.vs-modal__title {
  font-size: 16px;
  font-weight: 700;
}

.vs-modal__close {
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
}

.vs-modal__body {
  padding: var(--space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.vs-modal__foot {
  padding: var(--space-4);
  border-block-start: 1px solid var(--color-border);
}

/* Size guide table. */
.vs-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vs-size-table th,
.vs-size-table td {
  padding: var(--space-2) var(--space-3);
  text-align: start;
  border-block-end: 1px solid var(--color-border);
}

.vs-size-table th {
  background-color: var(--color-soft);
  font-weight: 600;
}

/* =============================================================
   32. MINI CART & FREE SHIPPING BAR
   ============================================================= */

.vs-mini-cart__body-inner {
  display: flex;
  flex-direction: column;
}

.vs-mini-cart__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.vs-mini-cart__items li {
  padding-block: var(--space-3);
}

.vs-mini-cart__items li + li {
  border-block-start: 1px solid var(--color-border);
}

.vs-mini-item {
  display: flex;
  gap: var(--space-3);
}

.vs-mini-item__media {
  flex: none;
  width: 64px;
  height: 80px;
  overflow: hidden;
  background-color: var(--color-soft);
  border-radius: var(--radius-sm);
}

.vs-mini-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-mini-item__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vs-mini-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.vs-mini-item__title a {
  color: inherit;
  text-decoration: none;
}

.vs-mini-item__title a:hover,
.vs-mini-item__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vs-mini-item__variant {
  font-size: 12px;
  color: var(--color-muted);
}

.vs-mini-item__price {
  font-size: 13px;
  font-weight: 700;
}

.vs-mini-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
}

/* Compact stepper inside the mini cart. */
.vs-mini-item__qty .vs-qty {
  height: 32px;
}

.vs-mini-item__qty .vs-qty [data-vs-qty-btn] {
  width: 32px;
}

.vs-mini-item__qty .vs-qty input[data-vs-qty] {
  width: 36px;
  font-size: 13px;
}

.vs-mini-item__remove {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.vs-mini-item__remove:hover,
.vs-mini-item__remove:focus-visible {
  color: var(--color-sale);
}

.vs-mini-item__remove svg {
  width: 16px;
  height: 16px;
}

.vs-mini-cart__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: var(--space-3);
  border-block-start: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 700;
}

.vs-mini-cart__buttons {
  display: flex;
  gap: var(--space-2);
}

.vs-mini-cart__buttons .vs-btn {
  flex: 1;
}

/* Free shipping progress bar. */
.vs-shipbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3);
  background-color: var(--color-soft);
  border-radius: var(--radius);
  margin-block-end: var(--space-3);
}

.vs-shipbar__label {
  font-size: 12px;
  color: var(--color-muted);
}

.vs-shipbar__track {
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
}

.vs-shipbar__fill {
  height: 100%;
  background-color: var(--color-text);
  transition: width var(--dur) var(--ease);
}

.vs-shipbar.is-complete .vs-shipbar__fill {
  background-color: var(--color-success);
}

/* =============================================================
   33. CART PAGE
   ============================================================= */

.vs-cart-wrap {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .vs-cart-wrap {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

table.woocommerce-cart-form__contents {
  width: 100%;
  border-collapse: collapse;
}

table.woocommerce-cart-form__contents th {
  padding: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  text-align: start;
  border-block-end: 1px solid var(--color-border);
}

table.woocommerce-cart-form__contents td {
  padding-block: var(--space-3);
  padding-inline: var(--space-2);
  vertical-align: top;
  border-block-end: 1px solid var(--color-border);
}

table.woocommerce-cart-form__contents .product-thumbnail img {
  width: 88px;
  border-radius: var(--radius-sm);
  display: block;
}

table.woocommerce-cart-form__contents .product-name a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

table.woocommerce-cart-form__contents .product-name a:hover,
table.woocommerce-cart-form__contents .product-name a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

table.woocommerce-cart-form__contents .product-name dl.variation {
  margin-block-start: var(--space-1);
  font-size: 12px;
  color: var(--color-muted);
}

table.woocommerce-cart-form__contents .product-name dl.variation dt,
table.woocommerce-cart-form__contents .product-name dl.variation dd {
  display: inline;
  margin: 0;
}

table.woocommerce-cart-form__contents .product-name dl.variation dd {
  margin-inline-end: var(--space-2);
}

table.woocommerce-cart-form__contents .product-name dl.variation dd p {
  margin: 0;
}

table.woocommerce-cart-form__contents .product-remove,
.vs-cart__remove {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0;
  cursor: pointer;
}

table.woocommerce-cart-form__contents .product-remove:hover,
table.woocommerce-cart-form__contents .product-remove:focus-visible,
.vs-cart__remove:hover,
.vs-cart__remove:focus-visible {
  color: var(--color-sale);
  background-color: var(--color-soft);
}

table.woocommerce-cart-form__contents .product-remove svg,
.vs-cart__remove svg {
  width: 18px;
  height: 18px;
}

/* Compact stepper in the cart table. */
table.woocommerce-cart-form__contents .vs-qty {
  height: 40px;
}

table.woocommerce-cart-form__contents .vs-qty [data-vs-qty-btn] {
  width: 36px;
}

/* Coupon row. */
.woocommerce-cart-form__contents .actions,
.woocommerce-cart-form .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.woocommerce-cart-form .coupon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-inline-end: auto;
}

.woocommerce-cart-form .coupon label {
  display: none;
}

.woocommerce-cart-form .coupon input[name="coupon_code"] {
  flex: 1;
  min-width: 160px;
  height: 44px;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
}

.woocommerce-cart-form .coupon input[name="coupon_code"]:focus-visible {
  border-color: var(--color-text);
}

/* Totals card. */
.cart_totals {
  background-color: var(--color-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cart_totals table th,
.cart_totals table td {
  padding-block: var(--space-2);
  text-align: start;
  border-block-end: 1px solid var(--color-border);
}

.cart_totals table td {
  text-align: end;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  font-size: 16px;
  font-weight: 700;
  border-block-end: 0;
}

.cart_totals .checkout-button {
  display: flex;
  width: 100%;
  margin-block-start: var(--space-3);
}

/* Cross sells. */
.cross-sells {
  margin-block: var(--space-8);
}

.cross-sells > h2 {
  font-size: 18px;
}

.cross-sells .vs-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .cross-sells .vs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cart table collapses to stacked rows on phones. */
@media (max-width: 767.98px) {
  table.woocommerce-cart-form__contents thead {
    display: none;
  }

  table.woocommerce-cart-form__contents,
  table.woocommerce-cart-form__contents tbody,
  table.woocommerce-cart-form__contents tr,
  table.woocommerce-cart-form__contents th,
  table.woocommerce-cart-form__contents td {
    display: block;
  }

  table.woocommerce-cart-form__contents tr {
    position: relative;
    padding-block: var(--space-3);
    border-block-end: 1px solid var(--color-border);
  }

  table.woocommerce-cart-form__contents td {
    width: 100%;
    padding: 0;
    border: 0;
  }

  /* Thumbnail + name share a row. */
  table.woocommerce-cart-form__contents td.product-thumbnail {
    width: 72px;
    float: inline-start;
    margin-inline-end: var(--space-3);
  }

  table.woocommerce-cart-form__contents td.product-thumbnail img {
    width: 72px;
  }

  table.woocommerce-cart-form__contents td.product-name {
    padding-inline-end: 44px;
  }

  table.woocommerce-cart-form__contents td.product-remove {
    position: absolute;
    inset-block-start: var(--space-3);
    inset-inline-end: 0;
    width: auto;
  }

  table.woocommerce-cart-form__contents td.product-price,
  table.woocommerce-cart-form__contents td.product-quantity,
  table.woocommerce-cart-form__contents td.product-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-block-start: var(--space-2);
  }

  table.woocommerce-cart-form__contents td.product-price::before,
  table.woocommerce-cart-form__contents td.product-quantity::before,
  table.woocommerce-cart-form__contents td.product-subtotal::before {
    content: attr(data-title);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
  }

  table.woocommerce-cart-form__contents td.actions {
    padding-block-start: var(--space-3);
  }
}

/* =============================================================
   34. CHECKOUT
   ============================================================= */

.vs-checkout__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .vs-checkout__grid {
    grid-template-columns: 1fr 420px;
    gap: var(--space-8);
    align-items: start;
  }
}

.vs-checkout__grid > * {
  min-width: 0;
}

/* Billing / shipping blocks as cards. */
#customer_details .col2-set {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  #customer_details .col2-set {
    grid-template-columns: 1fr 1fr;
  }
}

#customer_details .col-1,
#customer_details .col-2 {
  min-width: 0;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-block-end: var(--space-4);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
  font-size: 16px;
  font-weight: 700;
  margin-block-end: var(--space-3);
}

/* Order review card. */
#order_review_heading {
  font-size: 16px;
  font-weight: 700;
}

#order_review {
  background-color: var(--color-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

@media (min-width: 1024px) {
  #order_review {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--space-6));
  }
}

.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding-block: var(--space-2);
  text-align: start;
  border-block-end: 1px solid var(--color-border);
}

.woocommerce-checkout-review-order-table td {
  text-align: end;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 16px;
  font-weight: 700;
  border-block-end: 0;
}

/* Payment methods. */
#order_review .wc_payment_methods {
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

#order_review .wc_payment_method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 13px;
}

#order_review .wc_payment_method input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-block-start: 2px;
  accent-color: var(--color-text);
  flex: none;
}

#order_review .wc_payment_method label {
  font-weight: 600;
  cursor: pointer;
}

#order_review .payment_box {
  margin-block-start: var(--space-2);
  padding: var(--space-3);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--color-muted);
}

/* Place order button spans the card. */
#place_order {
  width: 100%;
}

/* =============================================================
   35. WISHLIST PAGE
   ============================================================= */

.vs-wishlist {
  padding-block: var(--space-4);
}

.vs-wishlist .vs-grid {
  margin-block-start: var(--space-4);
}

/* =============================================================
   36. EMPTY STATES
   ============================================================= */

.vs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.vs-empty__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background-color: var(--color-soft);
  color: var(--color-muted);
}

.vs-empty__icon svg {
  width: 24px;
  height: 24px;
}

.vs-empty__title {
  font-size: 16px;
  font-weight: 700;
  margin-block-end: 0;
}

.vs-empty__text {
  font-size: 13px;
  color: var(--color-muted);
  max-width: 420px;
}

.vs-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

/* =============================================================
   37. PAGINATION & LOAD MORE
   ============================================================= */

.vs-pagination,
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-block: var(--space-8);
}

.vs-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-pagination .page-numbers li,
.woocommerce-pagination .page-numbers li {
  display: inline-flex;
}

.vs-pagination .page-numbers a,
.vs-pagination .page-numbers span,
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--space-2);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
}

.page-numbers a:hover,
.page-numbers a:focus-visible {
  background-color: var(--color-soft);
}

.page-numbers .current {
  background-color: var(--color-text);
  color: #ffffff;
  font-weight: 600;
}

.page-numbers .dots {
  padding-inline: var(--space-2);
  color: var(--color-muted);
}

.vs-load-more {
  display: block;
  margin-inline: auto;
  margin-block-start: var(--space-6);
}

/* =============================================================
   38. BLOG: POST CARDS, POST GRID
   ============================================================= */

.vs-post-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .vs-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vs-post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vs-post-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vs-post-card__media {
  aspect-ratio: 16 / 9;
  background-color: var(--color-soft);
  overflow: hidden;
}

.vs-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vs-post-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.vs-post-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-block-end: 0;
}

.vs-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.vs-post-card__title a:hover,
.vs-post-card__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vs-post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: 12px;
  color: var(--color-muted);
}

.vs-post-card__meta .vs-post-card__sep {
  color: var(--color-border);
}

.vs-post-card__excerpt {
  font-size: 13px;
  color: var(--color-muted);
}

/* =============================================================
   39. TOAST
   ============================================================= */

.vs-toast {
  position: fixed;
  inset-block-end: calc(64px + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  width: max-content;
  max-width: 92vw;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background-color: var(--color-text);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: var(--z-toast);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.vs-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vs-toast--error {
  background-color: var(--color-sale);
}

.vs-toast a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .vs-toast {
    inset-block-end: var(--space-6);
  }
}

/* =============================================================
   40. ADMIN SETTINGS PAGE (CSS-ONLY RADIO TABS)
   Markup contract: .vs-admin-tabs contains, in order:
     input#vestra-tab-{general|homepage|labels|commerce|footer} (radio,
     first one carries checked) + label[for=...] per tab, then
     .vs-admin-panels with section#vestra-panel-{same-suffix} blocks.
   ============================================================= */

.vs-admin-tabs {
  border-block-end: 1px solid var(--color-border);
  margin-block-end: var(--space-4);
}

/* Radios stay in the a11y tree (focusable), invisible. */
.vs-admin-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vs-admin-tabs__label {
  display: inline-block;
  padding: 10px var(--space-4);
  border-block-end: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
}

.vs-admin-tabs__label:hover {
  color: var(--color-text);
}

.vs-admin-tabs__input:checked + .vs-admin-tabs__label {
  color: var(--color-text);
  border-block-end-color: var(--color-text);
}

.vs-admin-tabs__input:focus-visible + .vs-admin-tabs__label {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Panel switching via sibling combinators (no JS, no :has needed). */
.vs-admin-panel {
  display: none;
}

#vestra-tab-general:checked ~ .vs-admin-panels #vestra-panel-general,
#vestra-tab-homepage:checked ~ .vs-admin-panels #vestra-panel-homepage,
#vestra-tab-labels:checked ~ .vs-admin-panels #vestra-panel-labels,
#vestra-tab-commerce:checked ~ .vs-admin-panels #vestra-panel-commerce,
#vestra-tab-footer:checked ~ .vs-admin-panels #vestra-panel-footer {
  display: block;
}

/* Safety net: if no radio is checked (or :has unsupported markup
   variant), show every panel rather than nothing. */
.vs-admin-tabs:not(:has(input:checked)) .vs-admin-panel {
  display: block;
}

/* WP settings table tweaks on the Vestra settings screen. */
.vs-admin .form-table th {
  width: 260px;
}

.vs-admin .form-table .description {
  color: var(--color-muted);
}

/* =============================================================
   41. RTL
   Everything above uses logical properties, so direction flips for
   free. Only directional icons need the explicit flip.
   ============================================================= */

[dir="rtl"] .vs-flip {
  transform: scaleX(-1);
}

/* =============================================================
   42. REDUCED MOTION
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Explicit belt-and-braces stops for the decorative loops. */
  .vs-skeleton,
  .vs-skeleton-card__media,
  .vs-skeleton-card__line,
  .vs-btn.is-loading::after {
    animation: none;
  }

  /* Hero/carousel autoplay is a JS concern (hero.js reads the media
     query); CSS guarantees nothing keeps animating here. */
}

/* =============================================================
   43. PRINT
   ============================================================= */

@media print {
  .vs-promo,
  .vs-header__actions,
  .vs-nav,
  .vs-mobile-header,
  .vs-bottom-bar,
  .vs-drawer,
  .vs-scrim,
  .vs-toast,
  .vs-hero__arrow,
  .vs-hero__dots,
  .vs-hero__pause,
  .vs-card__actions,
  .vs-card__quick,
  .vs-load-more,
  .vs-pagination {
    display: none !important;
  }

  body.vstra-site {
    padding-block-end: 0;
  }
}

/* ===== 44. INTEGRATION ADDITIONS (accordion, author, single post, page notes, cart wrappers) ===== */

/* Mobile drawer accordion submenus */
.vs-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-1);
  background: transparent;
  border: 0;
  border-block-end: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
}

.vs-accordion__toggle svg {
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.vs-accordion__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.vs-accordion__panel {
  padding-block: var(--space-2);
}

.vs-accordion__panel[hidden] {
  display: none;
}

.vs-accordion__panel a {
  display: block;
  padding: var(--space-2) var(--space-2);
  font-size: 14px;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
}

.vs-accordion__panel a:hover,
.vs-accordion__panel a:focus-visible {
  background: var(--color-soft);
  color: var(--color-text);
}

/* Single post author box */
.vs-author {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-soft);
  border-radius: var(--radius-lg);
}

.vs-author__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.vs-author__name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 var(--space-1);
}

.vs-author__desc {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

/* Single post layout */
.vs-single__head {
  padding-block: var(--space-6) var(--space-4);
}

.vs-single__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

.vs-single__meta {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

.vs-single__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--color-soft);
}

/* Wishlist / utility page headings */
.vs-page__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

.vs-page__note {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
}

/* Cart wrappers (main table is styled via the WC table selectors in section 33) */
.vs-cart__collaterals {
  margin-block-start: var(--space-8);
}

.vs-cart__coupon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.vs-cart__thumb img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
}

.vs-cart__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-muted);
  border-radius: 50%;
}

.vs-cart__remove:hover,
.vs-cart__remove:focus-visible {
  color: var(--color-sale);
  background: var(--color-soft);
}

/* Checkout columns (primary styling targets #customer_details / #order_review in section 34) */
.vs-checkout__customer {
  min-width: 0;
}

.vs-checkout__order {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .vs-accordion__toggle svg {
    transition: none;
  }
}

/* ===== 45. MARKUP/CSS ALIGNMENT (aliases + rules matching emitted class names) ===== */

/* Product grid: single track below lg (prevents thumbs-rail min-content overflow on phones) */
.vs-product__grid,
.vs-checkout__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* Variation picker groups (single-product/add-to-cart/variable.php) */
.vs-variations__group {
  border: 0;
  margin: 0;
  padding: 0;
  padding-block-end: var(--space-4);
  min-inline-size: 0;
}

.vs-variations__group legend {
  padding: 0;
}

.vs-variations__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  margin-block-end: var(--space-2);
}

.vs-variations__selected,
.vs-variations__value {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}

.vs-variations__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.vs-variations__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.vs-variations__stock,
.vs-summary__stock {
  font-size: 13px;
  font-weight: 600;
}

.vs-variations__stock.is-in,
.vs-summary__stock.is-in {
  color: var(--color-success);
}

.vs-variations__stock.is-out,
.vs-summary__stock.is-out {
  color: var(--color-sale);
}

.vs-variations__stock.is-low,
.vs-summary__stock.is-low {
  color: var(--color-promo);
}

.vs-variations__price {
  font-size: 20px;
  font-weight: 700;
}

.vs-variations__reset {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: underline;
  cursor: pointer;
}

.vs-variations__reset:hover,
.vs-variations__reset:focus-visible {
  color: var(--color-text);
}

/* PDP price scale: current price must dominate the struck regular price */
.vs-summary__price ins,
.vs-price ins {
  text-decoration: none;
}

.vs-summary__price ins {
  font-size: inherit;
}

/* Fit summary details */
.vs-fit-summary__labels {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.vs-fit-summary__labels li {
  font-size: 12px;
  color: var(--color-muted);
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.vs-fit-summary__labels span {
  font-weight: 700;
  color: var(--color-text);
}

.vs-fit-summary__note {
  font-size: 12px;
  color: var(--color-muted);
  margin: var(--space-2) 0 0;
}

/* Footer emitted names: __heading (title), __socials list, __social anchors, __payment chips */
.vs-footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-3);
}

.vs-footer__socials {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  gap: var(--space-2);
}

.vs-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-muted);
}

.vs-footer__social:hover,
.vs-footer__social:focus-visible {
  background: var(--color-soft);
  color: var(--color-text);
}

.vs-footer__payment {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-muted);
}

.vs-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Card badges: templates emit .vs-badges inside the media block */
.vs-badges {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

/* Header actions: templates emit .vs-header__action alongside .vs-icon-btn */
.vs-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  position: relative;
  color: var(--color-text);
}

.vs-header__action:hover,
.vs-header__action:focus-visible {
  background: var(--color-soft);
}

/* Card wishlist + quick label names emitted by card.php */
.vs-card__wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.vs-card__wishlist.is-active {
  background: var(--color-text);
  color: #fff;
}

.vs-card__wishlist.is-active svg {
  fill: #fff;
}

.vs-card__reviews,
.vs-card__rating-count {
  font-size: 11px;
  color: var(--color-muted);
}

/* Lightbox nav arrows: markup emits __nav--prev/__nav--next */
.vs-lightbox__nav--prev,
.vs-lightbox__nav--next,
.vs-lightbox__arrow--prev,
.vs-lightbox__arrow--next {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.vs-lightbox__nav--prev,
.vs-lightbox__arrow--prev {
  inset-inline-start: var(--space-4);
}

.vs-lightbox__nav--next,
.vs-lightbox__arrow--next {
  inset-inline-end: var(--space-4);
}

/* Countdown: templates emit .vs-countdown/__item/__value/__label */
.vs-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vs-countdown__item {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-sm);
  min-inline-size: 44px;
  padding: 6px 8px;
  text-align: center;
}

.vs-countdown__value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.vs-countdown__label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Hero content alignment: markup uses --center / --end */
.vs-hero__content--center,
.vs-hero__content--align-center {
  align-items: center;
  text-align: center;
}

.vs-hero__content--end,
.vs-hero__content--align-end {
  align-items: flex-end;
  text-align: end;
}

/* Flash sale head extras */
.vs-flash__countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vs-flash__view-all {
  font-size: 13px;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vs-flash__view-all:hover,
.vs-flash__view-all:focus-visible {
  color: var(--color-text);
}

/* Nav sale link modifier */
.vs-nav__link--sale {
  color: var(--color-sale);
}

/* Mobile bottom bar label (emitted name) */
.vs-bottom-bar__label {
  font-size: 11px;
}
