/**
 * Vignoble Perras UI kit, ported for TheGem production (generated once from the child theme SCSS, now the source).
 * Rules: vp- prefixed classes and --vp- tokens, no global reset/base, no @layer, light theme only.
 * Sizes in px, never rem: TheGem sets html { font-size: 62.5% }, so 1rem = 10px on the site.
 */

/* Fonts: self-hosted variable WOFF2 (latin + latin-ext). latin-ext first: the last declared face wins on overlap. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Anti-CLS fallbacks: local fonts resized to the web font metrics (@capsizecss/metrics) */
@font-face {
  font-family: "Playfair Display Fallback";
  src: local("Georgia");
  size-adjust: 101.39%;
  ascent-override: 106.72%;
  descent-override: 24.76%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial");
  size-adjust: 93.76%;
  ascent-override: 109.21%;
  descent-override: 42.66%;
  line-gap-override: 0%;
}

/* ---- base/tokens ---- */
/**
 * Vignoble Perras design tokens (source: project/ui-kit.md).
 * Layers: primitives -> semantic -> component. Theme-agnostic, reusable as-is in the child theme.
 */

:root {
  /* Primitives: palette */
  --vp-almond-silk: #ebd4cb;
  --vp-rosy-taupe: #da9f93;
  --vp-berry-crush: #b6465f;
  --vp-burgundy: #890620;
  --vp-rich-mahogany: #2c0703;
  --vp-mahogany-light: #3d1510;
  --vp-gold: #b0976d;
  --vp-white: #ffffff;

  /* Primitives: neutrals */
  --vp-neutral-50: #f7f7f7;
  --vp-neutral-100: #eeeeee;
  --vp-neutral-200: #dddddd;
  --vp-neutral-300: #c4c4c4;
  --vp-neutral-400: #949494;
  --vp-neutral-500: #767676;
  --vp-neutral-600: #5e5e5e;
  --vp-neutral-700: #474747;
  --vp-neutral-800: #2e2e2e;
  --vp-neutral-900: #1a1a1a;

  /* Primitives: feedback */
  --vp-success: #2e6b3f;
  --vp-warning: #8a5a00;
  --vp-error: #b3261e;
  --vp-info: #1f5f8b;
  --vp-success-dark: #7cc791;
  --vp-warning-dark: #f0b85a;
  --vp-error-dark: #f28b82;
  --vp-info-dark: #8ab4f8;

  /* Semantic: light-dark() keeps the dark values for later, resolves to light (no color-scheme set) */
  --vp-color-bg: light-dark(var(--vp-white), var(--vp-rich-mahogany));
  --vp-color-surface: light-dark(var(--vp-almond-silk), var(--vp-mahogany-light));
  --vp-color-text: light-dark(var(--vp-rich-mahogany), var(--vp-almond-silk));
  --vp-color-text-muted: light-dark(var(--vp-neutral-600), var(--vp-neutral-400));
  --vp-color-heading: light-dark(var(--vp-rich-mahogany), var(--vp-gold));
  --vp-color-link: light-dark(var(--vp-burgundy), var(--vp-rosy-taupe));
  --vp-color-action-primary: light-dark(var(--vp-burgundy), var(--vp-rosy-taupe));
  /* Dark hover pair (almond-silk / mahogany, 13.01) is a proposition */
  --vp-color-action-primary-hover: light-dark(var(--vp-rich-mahogany), var(--vp-almond-silk));
  --vp-color-on-primary: light-dark(var(--vp-white), var(--vp-rich-mahogany));
  --vp-color-on-primary-hover: light-dark(var(--vp-white), var(--vp-rich-mahogany));
  --vp-color-border: var(--vp-neutral-500);
  --vp-color-border-decorative: light-dark(var(--vp-neutral-200), var(--vp-neutral-700));
  --vp-color-focus: light-dark(var(--vp-berry-crush), var(--vp-gold));
  --vp-color-eyebrow: light-dark(var(--vp-berry-crush), var(--vp-rosy-taupe));
  --vp-color-eyebrow-on-surface: light-dark(var(--vp-burgundy), var(--vp-rosy-taupe));
  --vp-color-success: light-dark(var(--vp-success), var(--vp-success-dark));
  --vp-color-warning: light-dark(var(--vp-warning), var(--vp-warning-dark));
  --vp-color-error: light-dark(var(--vp-error), var(--vp-error-dark));
  --vp-color-info: light-dark(var(--vp-info), var(--vp-info-dark));
  --vp-color-skeleton: light-dark(var(--vp-neutral-100), var(--vp-mahogany-light));
  --vp-color-zebra: light-dark(var(--vp-neutral-50), var(--vp-mahogany-light));

  /* Semantic: inverse areas (footer, toast, tooltip), identical in both themes */
  --vp-color-inverse-bg: var(--vp-rich-mahogany);
  --vp-color-inverse-text: var(--vp-almond-silk);
  --vp-color-inverse-link: var(--vp-rosy-taupe);
  --vp-color-inverse-heading: var(--vp-gold);
  --vp-color-inverse-focus: var(--vp-gold);

  /* Typography */
  --vp-font-heading: "Playfair Display", "Playfair Display Fallback", Georgia, "Times New Roman", serif;
  --vp-font-body: "Source Sans 3", "Source Sans 3 Fallback", Arial, Helvetica, sans-serif;
  --vp-fs-sm: clamp(14px, 13.87px + 0.04167vw, 14.4px);
  --vp-fs-base: clamp(16px, 15.33px + 0.2083vw, 18px);
  --vp-fs-lg: clamp(19.2px, 18.1px + 0.3438vw, 22.5px);
  --vp-fs-xl: clamp(23.04px, 21.34px + 0.5297vw, 28.13px);
  --vp-fs-2xl: clamp(27.65px, 25.15px + 0.7821vw, 35.15px);
  --vp-fs-3xl: clamp(33.18px, 29.58px + 1.122vw, 43.95px);
  /* Headings and running text, validated on the TheGem site (2026-10-06):
     headings = scale above x1.5, body = --vp-fs-base x1.4, fluid 320px -> 1280px */
  --vp-fs-h1: clamp(49.78px, 44.38px + 1.683vw, 65.93px); /* 49.8px -> 65.9px */
  --vp-fs-h2: clamp(41.47px, 37.73px + 1.1732vw, 52.73px); /* 41.5px -> 52.7px */
  --vp-fs-h3: clamp(34.56px, 32.02px + 0.7945vw, 42.19px); /* 34.6px -> 42.2px */
  --vp-fs-h4: clamp(28.8px, 27.14px + 0.5157vw, 33.74px); /* 28.8px -> 33.7px */
  --vp-fs-h5: clamp(24px, 23px + 0.3125vw, 27px); /* 24px -> 27px */
  --vp-fs-h6: clamp(21px, 20.8px + 0.0625vw, 21.6px); /* 21px -> 21.6px */
  --vp-fs-body: clamp(22.4px, 21.47px + 0.2916vw, 25.2px); /* 22.4px -> 25.2px */

  /* Spacing (base 4px) */
  --vp-space-1: 4px;
  --vp-space-2: 8px;
  --vp-space-3: 12px;
  --vp-space-4: 16px;
  --vp-space-6: 24px;
  --vp-space-8: 32px;
  --vp-space-12: 48px;
  --vp-space-16: 64px;
  --vp-space-24: 96px;
  --vp-space-32: 128px;

  /* Layout */
  --vp-container-max: 1280px;
  --vp-container-narrow: 720px;
  --vp-gutter: clamp(16px, 10.67px + 1.667vw, 32px);

  /* Shape */
  --vp-radius-sm: 4px;
  --vp-radius-md: 8px;
  --vp-border-width: 1px;
  --vp-focus-width: 2px;

  /* Shadows (mahogany tinted, never pure black) */
  --vp-shadow-sm: 0 1px 3px rgb(44 7 3 / 0.1);
  --vp-shadow-md: 0 4px 12px rgb(44 7 3 / 0.12);
  --vp-shadow-lg: 0 12px 32px rgb(44 7 3 / 0.18);

  /* Opacities & overlays */
  --vp-opacity-disabled: 0.5;
  --vp-overlay-modal: rgb(44 7 3 / 0.6);
  --vp-overlay-image: linear-gradient(to top, rgb(44 7 3 / 0.75), rgb(44 7 3 / 0));
  /* Hero: 0.6 floor keeps small text >= 4.5:1 even on a bright photo; check each new photo */
  --vp-overlay-hero: linear-gradient(to top, rgb(44 7 3 / 0.92) 0%, rgb(44 7 3 / 0.8) 60%, rgb(44 7 3 / 0.6) 100%);
  /* Age gate: near-opaque, the site stays hidden until the choice is made */
  --vp-overlay-gate: rgb(44 7 3 / 0.92);

  /* Motion */
  --vp-duration-fast: 150ms;
  --vp-duration-base: 250ms;
  --vp-easing: ease-out;

  /* Z-index */
  --vp-z-dropdown: 100;
  --vp-z-header: 200;
  --vp-z-overlay: 900;
  --vp-z-modal: 1000;
  --vp-z-toast: 1100;

  /* Icons */
  --vp-icon-sm: 16px;
  --vp-icon-md: 20px;
  --vp-icon-lg: 24px;

  /* Component sizes */
  --vp-control-height: 44px;
  --vp-control-height-lg: 52px;
  --vp-header-height: 72px;
  --vp-header-height-mobile: 56px;
}

/* Browsers without light-dark() (Safari < 17.5, Chrome < 123): light theme only */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --vp-color-bg: var(--vp-white);
    --vp-color-surface: var(--vp-almond-silk);
    --vp-color-text: var(--vp-rich-mahogany);
    --vp-color-text-muted: var(--vp-neutral-600);
    --vp-color-heading: var(--vp-rich-mahogany);
    --vp-color-link: var(--vp-burgundy);
    --vp-color-action-primary: var(--vp-burgundy);
    --vp-color-action-primary-hover: var(--vp-rich-mahogany);
    --vp-color-on-primary: var(--vp-white);
    --vp-color-on-primary-hover: var(--vp-white);
    --vp-color-border-decorative: var(--vp-neutral-200);
    --vp-color-focus: var(--vp-berry-crush);
    --vp-color-eyebrow: var(--vp-berry-crush);
    --vp-color-eyebrow-on-surface: var(--vp-burgundy);
    --vp-color-success: var(--vp-success);
    --vp-color-warning: var(--vp-warning);
    --vp-color-error: var(--vp-error);
    --vp-color-info: var(--vp-info);
    --vp-color-skeleton: var(--vp-neutral-100);
    --vp-color-zebra: var(--vp-neutral-50);
  }
}

/* High contrast (AAA target 7:1): light muted -> mahogany, berry-crush -> burgundy;
   dark muted and gold headings -> almond-silk (13.01); shadows -> 1px border */
@media (prefers-contrast: more) {
  :root {
    --vp-color-text-muted: light-dark(var(--vp-rich-mahogany), var(--vp-almond-silk));
    --vp-color-heading: light-dark(var(--vp-rich-mahogany), var(--vp-almond-silk));
    --vp-color-focus: light-dark(var(--vp-burgundy), var(--vp-almond-silk));
    --vp-color-eyebrow: light-dark(var(--vp-burgundy), var(--vp-rosy-taupe));
    --vp-color-border: light-dark(var(--vp-rich-mahogany), var(--vp-almond-silk));
    --vp-border-width: 2px;
    --vp-shadow-sm: 0 0 0 1px var(--vp-color-text);
    --vp-shadow-md: 0 0 0 1px var(--vp-color-text);
    --vp-shadow-lg: 0 0 0 1px var(--vp-color-text);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --vp-duration-fast: 0.01ms;
    --vp-duration-base: 0.01ms;
  }
}

/* ---- base/elements ---- */
/* UI kit base styles, scoped to .vp-base so TheGem pages keep their own typography. */
/* :where() keeps the scope at zero specificity: any component class still wins. */

.vp-base {
  background: var(--vp-color-bg);
  color: var(--vp-color-text);
  font-family: var(--vp-font-body);
  font-size: var(--vp-fs-body);
  line-height: 1.6;
}

:where(.vp-base) h1,
:where(.vp-base) h2,
:where(.vp-base) h3,
.vp-title--1,
.vp-title--2,
.vp-title--3 {
  color: var(--vp-color-heading);
  font-family: var(--vp-font-heading);
  font-weight: 700;
  text-wrap: balance;
}

:where(.vp-base) h1,
.vp-title--1 {
  font-size: var(--vp-fs-h1);
  line-height: 1.15;
}

:where(.vp-base) h2,
.vp-title--2 {
  font-size: var(--vp-fs-h2);
  line-height: 1.2;
}

:where(.vp-base) h3,
.vp-title--3 {
  font-size: var(--vp-fs-h3);
  line-height: 1.25;
}

:where(.vp-base) h4,
.vp-title--4 {
  font-family: var(--vp-font-body);
  font-size: var(--vp-fs-h4);
  font-weight: 600;
  line-height: 1.3;
}

:where(.vp-base) small,
.vp-text-small {
  font-size: var(--vp-fs-sm);
  line-height: 1.5;
}

:where(.vp-base) a {
  color: var(--vp-color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness var(--vp-duration-fast) var(--vp-easing);
}

:where(.vp-base) a:hover {
  text-decoration-thickness: 2px;
}

:where(.vp-base) :focus-visible {
  outline: var(--vp-focus-width) solid var(--vp-color-focus);
  outline-offset: 2px;
}

:where(.vp-base) ul,
:where(.vp-base) ol {
  padding-inline-start: var(--vp-space-6);
}

:where(.vp-base) ul > li::marker {
  color: var(--vp-color-link);
}

:where(.vp-base) ol > li::marker {
  color: var(--vp-color-link);
  font-weight: 600;
}

:where(.vp-base) blockquote {
  border-inline-start: 4px solid var(--vp-color-link);
  font-family: var(--vp-font-heading);
  font-size: var(--vp-fs-lg);
  font-style: italic;
  padding-inline-start: var(--vp-space-6);
}

:where(.vp-base) hr {
  border: 0;
  border-top: 1px solid var(--vp-color-border-decorative);
  margin-block: var(--vp-space-12);
}

:where(.vp-base) strong {
  font-weight: 600;
}

:where(.vp-base) mark {
  background: var(--vp-almond-silk);
  color: var(--vp-rich-mahogany);
}

:where(.vp-base) ::selection {
  background: var(--vp-almond-silk);
  color: var(--vp-rich-mahogany);
}

@media (prefers-contrast: more) {
  :where(.vp-base) a {
    text-decoration-thickness: 2px;
  }
}

/* ---- components/icon ---- */
.vp-icon {
  flex-shrink: 0;
  width: var(--vp-icon-md);
  height: var(--vp-icon-md);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-icon--sm {
  width: var(--vp-icon-sm);
  height: var(--vp-icon-sm);
}

.vp-icon--lg {
  width: var(--vp-icon-lg);
  height: var(--vp-icon-lg);
}

.vp-icon--xl {
  width: 32px;
  height: 32px;
}

/* ---- layout/container ---- */
.vp-container {
  width: 100%;
  max-width: var(--vp-container-max);
  margin-inline: auto;
  padding-inline: var(--vp-gutter);
}

.vp-container--narrow {
  max-width: calc(var(--vp-container-narrow) + 2 * var(--vp-gutter));
}

/* ---- components/surface ---- */
.vp-surface {
  --vp-color-eyebrow: var(--vp-color-eyebrow-on-surface);
  background: var(--vp-color-surface);
}

/* ---- components/eyebrow ---- */
.vp-eyebrow {
  color: var(--vp-color-eyebrow);
  font-size: var(--vp-fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- components/skip-link ---- */
.vp-skip-link {
  position: absolute;
  top: var(--vp-space-2);
  left: var(--vp-space-2);
  z-index: calc(var(--vp-z-toast) + 1);
  padding: var(--vp-space-3) var(--vp-space-4);
  border-radius: var(--vp-radius-sm);
  background: var(--vp-burgundy);
  color: var(--vp-white);
  font-weight: 600;
  transform: translateY(-200%);
}

.vp-skip-link:focus-visible {
  transform: none;
}

/* ---- components/button ---- */
.vp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vp-space-2);
  min-height: var(--vp-control-height);
  padding: var(--vp-space-2) var(--vp-space-6);
  border: var(--vp-border-width) solid transparent;
  border-radius: var(--vp-radius-sm);
  background: var(--vp-color-action-primary);
  color: var(--vp-color-on-primary);
  cursor: pointer;
  font-family: var(--vp-font-body);
  font-size: var(--vp-fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--vp-duration-fast) var(--vp-easing),
  color var(--vp-duration-fast) var(--vp-easing),
  border-color var(--vp-duration-fast) var(--vp-easing);
}

.vp-button:hover {
  background: var(--vp-color-action-primary-hover);
  color: var(--vp-color-on-primary-hover);
}

.vp-button:active {
  transform: translateY(1px);
}

.vp-button--secondary {
  background: var(--vp-color-surface);
  color: var(--vp-color-text);
}

.vp-button--ghost {
  border-color: var(--vp-color-action-primary);
  background: transparent;
  color: var(--vp-color-action-primary);
}

.vp-button--secondary:hover,
.vp-button--ghost:hover {
  border-color: var(--vp-color-action-primary);
  background: var(--vp-color-action-primary);
  color: var(--vp-color-on-primary);
}

.vp-button--lg {
  min-height: var(--vp-control-height-lg);
  padding-inline: var(--vp-space-8);
  font-size: var(--vp-fs-lg);
}

.vp-button--icon {
  min-width: var(--vp-control-height);
  padding: var(--vp-space-2);
}

.vp-button:disabled,
.vp-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: var(--vp-opacity-disabled);
  pointer-events: none;
}

.vp-button[aria-busy="true"] {
  cursor: progress;
}

/* Wine colour buttons, same palette as .vp-wine-dot. Text colour picked for AA (4.5:1):
   white only passes on burgundy (9.95), mahogany on gold (6.58), rosy-taupe (8.22), almond-silk (13.01) */
.vp-button--wine-red {
  background: var(--vp-burgundy);
  color: var(--vp-white);
}

.vp-button--wine-white {
  background: var(--vp-gold);
  color: var(--vp-rich-mahogany);
}

.vp-button--wine-rose {
  background: var(--vp-rosy-taupe);
  color: var(--vp-rich-mahogany);
}

.vp-button--wine-sparkling {
  background: var(--vp-almond-silk);
  color: var(--vp-rich-mahogany);
}

.vp-button__spinner {
  animation: vp-spin 900ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .vp-button:active {
    transform: none;
  }

  .vp-button__spinner {
    animation: none;
  }
}

@media (forced-colors: active) {
  .vp-button,
  .vp-badge,
  .vp-card,
  .vp-alert,
  .vp-toast,
  .vp-tooltip__bubble,
  .vp-modal,
  .vp-drawer {
    border: 1px solid CanvasText;
  }
}

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

/* ---- components/badge ---- */
.vp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-2);
  padding: var(--vp-space-1) var(--vp-space-2);
  border: 1px solid transparent;
  border-radius: var(--vp-radius-sm);
  font-size: var(--vp-fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

.vp-badge--organic {
  border-color: var(--vp-success);
  background: var(--vp-white);
  color: var(--vp-success);
}

.vp-badge--vintage {
  background: var(--vp-burgundy);
  color: var(--vp-white);
}

.vp-badge--out-of-stock {
  background: var(--vp-neutral-100);
  color: var(--vp-neutral-700);
}

.vp-badge--wine {
  padding-inline: 0;
  color: var(--vp-color-text);
}

.vp-badge--neutral {
  background: var(--vp-neutral-100);
  color: var(--vp-neutral-700);
}

/* ---- components/wine-dot ---- */
.vp-wine-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vp-wine-dot--red {
  background: var(--vp-burgundy);
}

.vp-wine-dot--white {
  background: var(--vp-gold);
}

.vp-wine-dot--rose {
  background: var(--vp-rosy-taupe);
}

.vp-wine-dot--sparkling {
  background: var(--vp-almond-silk);
  box-shadow: 0 0 0 1px var(--vp-gold);
}

@media (forced-colors: active) {
  .vp-wine-dot {
    forced-color-adjust: none;
  }
}

/* ---- components/field ---- */
.vp-field {
  display: grid;
  gap: var(--vp-space-1);
}

.vp-field__label {
  font-size: var(--vp-fs-sm);
  font-weight: 600;
}

.vp-field__required {
  color: var(--vp-color-error);
}

.vp-field__control {
  width: 100%;
  min-height: var(--vp-control-height);
  padding: var(--vp-space-2) var(--vp-space-3);
  border: var(--vp-border-width) solid var(--vp-color-border);
  border-radius: var(--vp-radius-sm);
  background: var(--vp-white);
  color: var(--vp-rich-mahogany);
}

.vp-field__control--textarea {
  min-height: 120px;
  resize: vertical;
}

.vp-field__control--select {
  appearance: none;
  padding-inline-end: var(--vp-space-12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c0703' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right var(--vp-space-3) center;
  background-repeat: no-repeat;
  background-size: var(--vp-icon-md);
}

.vp-field__control:disabled {
  cursor: not-allowed;
  opacity: var(--vp-opacity-disabled);
}

.vp-field__control[aria-invalid="true"] {
  border-color: var(--vp-color-error);
}

.vp-field__hint {
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

.vp-field__error {
  display: flex;
  align-items: center;
  gap: var(--vp-space-2);
  color: var(--vp-color-error);
  font-size: var(--vp-fs-sm);
  font-weight: 600;
}

/* ---- components/choice ---- */
.vp-choice {
  display: flex;
  align-items: center;
  gap: var(--vp-space-3);
  min-height: var(--vp-control-height);
  cursor: pointer;
}

.vp-choice__input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--vp-burgundy);
  cursor: pointer;
}

/* ---- components/fieldset ---- */
.vp-fieldset {
  margin: 0;
  padding: var(--vp-space-4) var(--vp-space-6);
  border: 1px solid var(--vp-color-border-decorative);
  border-radius: var(--vp-radius-md);
}

.vp-fieldset__legend {
  padding-inline: var(--vp-space-2);
  font-weight: 600;
}

/* ---- components/alert ---- */
.vp-alert {
  --vp-alert-color: var(--vp-color-info);
  display: flex;
  align-items: flex-start;
  gap: var(--vp-space-3);
  padding: var(--vp-space-4);
  border: 1px solid var(--vp-alert-color);
  border-inline-start-width: 4px;
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
}

.vp-alert__icon {
  color: var(--vp-alert-color);
  margin-block-start: 0.15em;
}

.vp-alert__title {
  color: var(--vp-alert-color);
  font-weight: 600;
}

.vp-alert--success {
  --vp-alert-color: var(--vp-color-success);
}

.vp-alert--warning {
  --vp-alert-color: var(--vp-color-warning);
}

.vp-alert--error {
  --vp-alert-color: var(--vp-color-error);
}

/* ---- components/card ---- */
.vp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
  box-shadow: var(--vp-shadow-sm);
  transition: box-shadow var(--vp-duration-fast) var(--vp-easing);
}

.vp-card:hover,
.vp-card:focus-within {
  box-shadow: var(--vp-shadow-md);
}

.vp-card--surface {
  background: var(--vp-color-surface);
}

.vp-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.vp-card__body {
  display: grid;
  flex-grow: 1;
  align-content: start;
  justify-items: start;
  gap: var(--vp-space-2);
  padding: var(--vp-space-4) var(--vp-space-6) var(--vp-space-6);
}

.vp-card__title {
  color: var(--vp-color-heading);
  font-family: var(--vp-font-heading);
  font-size: var(--vp-fs-lg);
  font-weight: 700;
  line-height: 1.25;
}

.vp-card__link {
  color: inherit;
  text-decoration: none;
}

/* Whole card clickable through the title link (single tab stop) */
.vp-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.vp-card__link:focus-visible {
  outline: none;
}

.vp-card:has(.vp-card__link:focus-visible) {
  outline: var(--vp-focus-width) solid var(--vp-color-focus);
  outline-offset: 2px;
}

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

.vp-card__footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--vp-space-6) var(--vp-space-6);
}

.vp-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visit card facts (duration, price, audience) */
.vp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-2) var(--vp-space-4);
  margin: 0;
  padding: 0;
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
  list-style: none;
}

.vp-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-1);
}

.vp-card__price {
  font-weight: 600;
}

/* ---- components/wine-card ---- */
.vp-wine-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: var(--vp-white);
  color: var(--vp-burgundy);
  border-bottom: 1px solid var(--vp-color-border-decorative);
  box-shadow: inset var(--vp-shadow-sm);
}

.vp-wine-card__icon {
  width: 48px;
  height: 48px;
}

.vp-wine-card__meta {
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

.vp-wine-card__price {
  font-size: var(--vp-fs-lg);
  font-weight: 600;
}

.vp-wine-card__footer {
  display: grid;
}

/* Footer holding only a visual button: static so the title link overlay (::after) stays on top and the whole card remains clickable */
.vp-card__footer--passive {
  position: static;
  /* The footer is a flex item of .vp-card: a z-index other than auto stacks it above the link overlay even when static */
  z-index: auto;
}

/* Fixed px height: a % height never resolves against an aspect-ratio box, the image fell back to its
   intrinsic size (1170px placeholder) and blew the card up. 260px = 88% of the narrowest card media (220px wide, 3/4) */
.vp-wine-card__image {
  width: auto;
  max-width: 100%;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgb(44 7 3 / 0.2));
}

/* ---- components/placeholder ---- */
.vp-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--vp-almond-silk), var(--vp-rosy-taupe));
  color: var(--vp-rich-mahogany);
}

.vp-placeholder--16x9 {
  aspect-ratio: 16 / 9;
}

.vp-placeholder--1x1 {
  aspect-ratio: 1;
}

/* ---- components/wine-filter ---- */
.vp-wine-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-wine-filter__button[aria-pressed="true"] {
  border-color: var(--vp-burgundy);
  background: var(--vp-burgundy);
  color: var(--vp-white);
}

.vp-wine-filter__button[aria-pressed="true"] .vp-wine-dot {
  box-shadow: 0 0 0 1px var(--vp-white);
}

.vp-wine-filter__status {
  margin-block: var(--vp-space-4);
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/wine-grid ---- */
.vp-wine-grid {
  display: grid;
  /* auto-fill drops to 1 column on mobile, 2 on tablet; the max() term caps desktop at 4 columns */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(220px, (100% - 3 * var(--vp-space-6)) / 4)), 1fr));
  gap: var(--vp-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Inside a WPBakery Text block, TheGem adds a bullet (.wpb_text_column ul li:before) and a bottom padding
   to every list item. The doubled class outranks those selectors without !important */
.vp-wine-grid.vp-wine-grid > li {
  padding-bottom: 0;
}

.vp-wine-grid.vp-wine-grid > li::before {
  content: none;
}

/* ---- layout/header ---- */
.vp-header {
  position: sticky;
  top: 0;
  z-index: var(--vp-z-header);
  border-bottom: 1px solid var(--vp-color-border-decorative);
  background: var(--vp-color-bg);
}

.vp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vp-space-4);
  min-height: var(--vp-header-height-mobile);
}

.vp-header__brand {
  color: var(--vp-color-heading);
  font-family: var(--vp-font-heading);
  font-size: var(--vp-fs-lg);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-3);
}

.vp-header__logo {
  width: auto;
  height: 40px;
}

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

.vp-header__burger {
  background: transparent;
  color: var(--vp-color-text);
  border-color: var(--vp-color-border);
}

@media (min-width: 1024px) {
  .vp-header__inner {
    min-height: var(--vp-header-height);
  }

  .vp-header__burger {
    display: none;
  }
}

.vp-header__cart {
  position: relative;
}

.vp-header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: var(--vp-space-1);
  border-radius: 999px;
  background: var(--vp-color-action-primary);
  color: var(--vp-color-on-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.vp-header__call-label {
  display: none;
}

@media (min-width: 640px) {
  .vp-header__call-label {
    display: inline;
  }
}

/* Visible "Menu" label on the burger (ui-kit.md > Navigation) */
.vp-header__burger-label {
  font-size: var(--vp-fs-sm);
}

/* Brand name: hidden on small screens and on narrow desktops where the
6-entry menu needs the room; the logo always stays (tablet bug, ux-ui.md §13.2) */
@media (max-width: 479px), (min-width: 1024px) and (max-width: 1279px) {
  .vp-header__brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* 320px reflow: logo + cart + theme + labelled burger must fit; phone stays in the footer */
@media (max-width: 399px) {
  .vp-header__call {
    display: none;
  }

  .vp-header__burger {
    padding-inline: var(--vp-space-3);
  }
}

html:not(.vp-js) .vp-header__inner {
  flex-wrap: wrap;
  padding-block: var(--vp-space-2);
}

/* ---- layout/nav ---- */
.vp-nav {
  display: none;
}

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

.vp-nav__list {
  display: flex;
  gap: var(--vp-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-nav__item {
  position: relative;
}

.vp-nav__link,
.vp-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-1);
  min-height: var(--vp-control-height);
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--vp-color-text);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.vp-nav__link:hover,
.vp-nav__toggle:hover,
.vp-nav__link[aria-current="page"] {
  border-bottom-color: var(--vp-color-action-primary);
}

.vp-nav__toggle .vp-icon {
  transition: transform var(--vp-duration-base) var(--vp-easing);
}

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

.vp-nav__submenu {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--vp-space-4));
  z-index: var(--vp-z-dropdown);
  min-width: 224px;
  margin: 0;
  padding: var(--vp-space-2);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
  box-shadow: var(--vp-shadow-md);
  list-style: none;
}

.vp-nav__sublink {
  display: block;
  padding: var(--vp-space-2) var(--vp-space-3);
  border-radius: var(--vp-radius-sm);
  color: var(--vp-color-text);
  text-decoration: none;
}

.vp-nav__sublink:hover {
  background: var(--vp-color-surface);
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .vp-nav__list {
    gap: var(--vp-space-4);
  }
}

/* Main nav: parent link + separate submenu toggle (link works without JS) */
.vp-nav__item {
  display: flex;
  align-items: center;
  gap: var(--vp-space-1);
}

.vp-nav__toggle {
  min-width: 24px;
  justify-content: center;
}

html:not(.vp-js) .vp-nav {
  display: block;
  flex-basis: 100%;
  order: 3;
}

html:not(.vp-js) .vp-nav__list {
  flex-wrap: wrap;
  gap: var(--vp-space-2) var(--vp-space-4);
}

/* ---- components/drawer ---- */
.vp-drawer {
  width: min(85vw, 384px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: var(--vp-space-6);
  border: 0;
  background: var(--vp-color-bg);
  color: var(--vp-color-text);
  box-shadow: var(--vp-shadow-lg);
}

.vp-drawer::backdrop {
  background: var(--vp-overlay-modal);
}

.vp-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: var(--vp-space-6);
}

.vp-drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-drawer__list .vp-accordion__trigger {
  font-size: var(--vp-fs-base);
}

.vp-drawer__link {
  display: flex;
  align-items: center;
  min-height: var(--vp-control-height);
  color: var(--vp-color-text);
  font-weight: 600;
  text-decoration: none;
}

.vp-drawer__sublist {
  margin: 0;
  padding: 0 0 var(--vp-space-2) var(--vp-space-4);
  list-style: none;
}

@media (prefers-reduced-motion: no-preference) {
  .vp-drawer[open] {
    animation: vp-drawer-in var(--vp-duration-base) var(--vp-easing);
  }
}

@keyframes vp-drawer-in {
  from {
    transform: translateX(100%);
  }
}

/* ---- components/breadcrumb ---- */
.vp-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vp-space-2);
  margin: 0;
  padding: 0;
  font-size: var(--vp-fs-sm);
  list-style: none;
}

.vp-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-2);
}

.vp-breadcrumb__item [aria-current="page"] {
  color: var(--vp-color-text-muted);
}

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

/* ---- components/pagination ---- */
.vp-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vp-space-1);
  min-width: var(--vp-control-height);
  min-height: var(--vp-control-height);
  padding-inline: var(--vp-space-3);
  border-radius: var(--vp-radius-sm);
  color: var(--vp-color-link);
  font-weight: 600;
  text-decoration: none;
}

.vp-pagination__link:hover {
  text-decoration: underline;
}

.vp-pagination__link[aria-current="page"] {
  background: var(--vp-burgundy);
  color: var(--vp-white);
}

@media (forced-colors: active) {
  .vp-pagination__link[aria-current="page"],
  .vp-wine-filter__button[aria-pressed="true"],
  .vp-theme-switcher__button[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
}

/* ---- components/accordion ---- */
.vp-accordion__item {
  border-bottom: 1px solid var(--vp-color-border-decorative);
}

.vp-accordion__heading {
  font: inherit;
}

.vp-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vp-space-4);
  width: 100%;
  min-height: var(--vp-control-height);
  padding: var(--vp-space-3) 0;
  border: 0;
  background: none;
  color: var(--vp-color-text);
  cursor: pointer;
  font-size: var(--vp-fs-lg);
  font-weight: 600;
  text-align: start;
}

.vp-accordion__trigger .vp-icon {
  transition: transform var(--vp-duration-base) var(--vp-easing);
}

.vp-accordion__trigger[aria-expanded="true"] .vp-icon {
  transform: rotate(180deg);
}

.vp-accordion__panel {
  padding-block-end: var(--vp-space-4);
}

/* ---- components/table-wrapper ---- */
.vp-table-wrapper {
  overflow-x: auto;
  border-radius: var(--vp-radius-md);
}

/* ---- components/table ---- */
.vp-table {
  width: 100%;
  min-width: 512px;
  border-collapse: collapse;
}

.vp-table__caption {
  padding-block-end: var(--vp-space-3);
  font-weight: 600;
  text-align: start;
}

.vp-table th,
.vp-table td {
  padding: var(--vp-space-3) var(--vp-space-4);
  text-align: start;
  vertical-align: top;
}

.vp-table thead th {
  background: var(--vp-color-surface);
  color: var(--vp-color-text);
  font-weight: 600;
}

.vp-table tbody tr:nth-child(even) {
  background: var(--vp-color-zebra);
}

/* ---- components/modal ---- */
.vp-modal {
  width: min(100% - 2 * var(--vp-gutter), 512px);
  padding: var(--vp-space-8);
  border: 0;
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
  color: var(--vp-color-text);
  box-shadow: var(--vp-shadow-lg);
}

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

.vp-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--vp-space-4);
  margin-block-end: var(--vp-space-4);
}

.vp-modal__close {
  background: transparent;
  color: var(--vp-color-text);
}

.vp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--vp-space-3);
  margin-block-start: var(--vp-space-6);
}

/* ---- components/toast-region ---- */
.vp-toast-region {
  position: fixed;
  right: var(--vp-gutter);
  bottom: var(--vp-space-6);
  left: var(--vp-gutter);
  z-index: var(--vp-z-toast);
  display: grid;
  justify-items: center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .vp-toast-region {
    left: auto;
    justify-items: end;
  }
}

/* ---- components/toast ---- */
.vp-toast {
  --vp-color-focus: var(--vp-color-inverse-focus);
  display: flex;
  align-items: center;
  gap: var(--vp-space-3);
  max-width: 448px;
  padding: var(--vp-space-3) var(--vp-space-4);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-inverse-bg);
  color: var(--vp-color-inverse-text);
  box-shadow: var(--vp-shadow-lg);
  pointer-events: auto;
}

.vp-toast a {
  color: var(--vp-color-inverse-link);
  font-weight: 600;
}

.vp-toast__close {
  margin-inline-start: auto;
  border-color: transparent;
  background: transparent;
  color: var(--vp-color-inverse-text);
}

.vp-toast__close:hover {
  background: var(--vp-mahogany-light);
  color: var(--vp-color-inverse-text);
}

/* ---- components/tooltip ---- */
.vp-tooltip {
  position: relative;
  display: inline-flex;
}

.vp-tooltip__bubble {
  position: absolute;
  bottom: calc(100% + var(--vp-space-2));
  left: 50%;
  z-index: var(--vp-z-dropdown);
  padding: var(--vp-space-1) var(--vp-space-2);
  border-radius: var(--vp-radius-sm);
  background: var(--vp-color-inverse-bg);
  color: var(--vp-color-inverse-text);
  font-size: var(--vp-fs-sm);
  white-space: nowrap;
  transform: translateX(-50%);
  visibility: hidden;
}

/* Visible on hover and focus, persistent while hovering the bubble (WCAG 1.4.13) */
.vp-tooltip:hover .vp-tooltip__bubble,
.vp-tooltip:focus-within .vp-tooltip__bubble {
  visibility: visible;
}

/* Escape dismisses until pointer/focus leaves (WCAG 1.4.13); same specificity as :hover rule, declared later */
.vp-tooltip.vp-tooltip--dismissed .vp-tooltip__bubble {
  visibility: hidden;
}

/* ---- components/skeleton ---- */
.vp-skeleton {
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-skeleton);
}

.vp-skeleton--media {
  aspect-ratio: 3 / 4;
}

.vp-skeleton--line {
  height: 1em;
  border-radius: var(--vp-radius-sm);
}

.vp-skeleton--short {
  width: 60%;
}

@media (prefers-reduced-motion: no-preference) {
  .vp-skeleton {
    animation: vp-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes vp-pulse {
  50% {
    opacity: 0.5;
  }
}

/* ---- components/empty-state ---- */
.vp-empty-state {
  display: grid;
  justify-items: center;
  gap: var(--vp-space-4);
  padding: var(--vp-space-12) var(--vp-space-6);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-surface);
  text-align: center;
}

.vp-empty-state__icon {
  width: 48px;
  height: 48px;
  color: var(--vp-color-link);
}

/* ---- layout/footer ---- */
.vp-footer {
  --vp-color-focus: var(--vp-color-inverse-focus);
  padding-block: var(--vp-space-16) var(--vp-space-8);
  background: var(--vp-color-inverse-bg);
  color: var(--vp-color-inverse-text);
}

.vp-footer a {
  color: var(--vp-color-inverse-link);
}

.vp-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 224px), 1fr));
  gap: var(--vp-space-8);
}

.vp-footer__title {
  margin-block-end: var(--vp-space-3);
  color: var(--vp-color-inverse-heading);
  font-family: var(--vp-font-heading);
  font-size: var(--vp-fs-lg);
  font-weight: 700;
}

.vp-footer__list {
  display: grid;
  gap: var(--vp-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-footer__social {
  display: flex;
  gap: var(--vp-space-2);
}

.vp-footer__social-link {
  display: inline-grid;
  place-items: center;
  width: var(--vp-control-height);
  height: var(--vp-control-height);
  border: 1px solid var(--vp-neutral-500);
  border-radius: var(--vp-radius-sm);
}

.vp-footer__legal {
  margin-block-start: var(--vp-space-12);
  padding-block-start: var(--vp-space-6);
  border-top: 1px solid var(--vp-neutral-700);
  font-size: var(--vp-fs-sm);
}

.vp-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-2) var(--vp-space-6);
  margin: 0 0 var(--vp-space-4);
  padding: 0;
  list-style: none;
}

.vp-footer .vp-link-button {
  color: var(--vp-color-inverse-link);
}

.vp-footer .vp-hours__row {
  border-bottom-color: var(--vp-neutral-700);
}

.vp-footer .vp-hours__note {
  color: var(--vp-color-inverse-text);
}

.vp-footer .vp-contact-list__icon {
  color: var(--vp-color-inverse-link);
}

/* ---- components/theme-switcher ---- */
.vp-theme-switcher {
  display: inline-flex;
  border: 1px solid var(--vp-color-border);
  border-radius: var(--vp-radius-sm);
}

.vp-theme-switcher__button {
  min-width: var(--vp-control-height);
  min-height: var(--vp-control-height);
  padding: var(--vp-space-2);
  border: 0;
  background: transparent;
  color: var(--vp-color-text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

/* 320px reflow: brand + switcher + burger must fit; 32px stays above the 24px target (WCAG 2.5.8) */
@media (max-width: 400px) {
  .vp-theme-switcher__button {
    min-width: 32px;
    min-height: 32px;
  }
}

.vp-theme-switcher__button[aria-pressed="true"] {
  background: var(--vp-color-action-primary);
  color: var(--vp-color-on-primary);
}

/* ---- components/theme-toggle ---- */
/* Theme toggle: sun shown in dark (next action = light), moon in light */
.vp-theme-toggle__sun,
.vp-theme-toggle[aria-pressed="true"] .vp-theme-toggle__moon {
  display: none;
}

.vp-theme-toggle[aria-pressed="true"] .vp-theme-toggle__sun {
  display: block;
}

/* ---- layout/section ---- */
.vp-section {
  padding-block: var(--vp-space-16);
}

@media (min-width: 1024px) {
  .vp-section {
    padding-block: var(--vp-space-24);
  }
}

.vp-section--surface {
  --vp-color-eyebrow: var(--vp-color-eyebrow-on-surface);
  background: var(--vp-color-surface);
}

/* Dark band (hero-like moments): gold headings, rosy links, in both themes */
.vp-section--inverse {
  color-scheme: dark;
  background: var(--vp-color-bg);
  color: var(--vp-color-text);
}

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

.vp-section__header {
  display: grid;
  gap: var(--vp-space-3);
  max-width: 768px;
  margin-block-end: var(--vp-space-12);
}

.vp-section__header--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.vp-section__intro {
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-lg);
}

.vp-section__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-3);
  margin-block-start: var(--vp-space-8);
}

.vp-section__footer--center {
  justify-content: center;
}

/* ---- components/hero ---- */
.vp-hero {
  /* Almond-silk eyebrow: rosy taupe is too small to rely on over a photo */
  --vp-color-eyebrow: var(--vp-color-text);
  position: relative;
  display: grid;
  min-height: min(85svh, 736px);
  overflow: hidden;
  background: var(--vp-rich-mahogany);
  color-scheme: dark;
  color: var(--vp-color-text);
}

.vp-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.vp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vp-overlay-hero);
}

.vp-hero__inner {
  position: relative;
  z-index: 1;
  align-self: end;
}

.vp-hero__content {
  display: grid;
  gap: var(--vp-space-4);
  justify-items: start;
  max-width: 672px;
  padding-block: var(--vp-space-24) var(--vp-space-12);
}

/* Almond-silk title: gold is only validated on flat mahogany, not over a photo */
.vp-hero__title {
  color: var(--vp-color-text);
  font-size: clamp(40px, 28.8px + 3.5vw, 72px);
  line-height: 1.05;
}

.vp-hero__lead {
  max-width: 48ch;
  font-size: var(--vp-fs-lg);
}

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

.vp-hero--compact {
  min-height: min(55svh, 448px);
}

.vp-hero--compact .vp-hero__content {
  padding-block: var(--vp-space-16) var(--vp-space-8);
}

/* ---- components/reassurance ---- */
.vp-reassurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr));
  gap: var(--vp-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-reassurance__item {
  display: flex;
  align-items: flex-start;
  gap: var(--vp-space-3);
}

.vp-reassurance__icon {
  width: 28px;
  height: 28px;
  color: var(--vp-color-link);
}

.vp-reassurance__title {
  display: block;
  font-weight: 600;
}

.vp-reassurance__text {
  display: block;
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/media-split ---- */
.vp-media-split {
  display: grid;
  align-items: center;
  gap: var(--vp-space-8);
}

@media (min-width: 768px) {
  .vp-media-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vp-space-16);
  }

  .vp-media-split--reverse .vp-media-split__media {
    order: 2;
  }
}

.vp-media-split__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--vp-radius-md);
  object-fit: cover;
}

.vp-media-split__content {
  display: grid;
  gap: var(--vp-space-4);
  justify-items: start;
}

.vp-media-split__caption {
  margin-block-start: var(--vp-space-2);
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/card-grid ---- */
.vp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 288px), 1fr));
  gap: var(--vp-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- components/stock-note ---- */
/* Out of stock: never a dead end, suggest a close wine (ux-ui.md §11.5) */
.vp-stock-note {
  position: relative;
  z-index: 1;
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/rating ---- */
.vp-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--vp-color-link);
}

.vp-rating .vp-icon {
  fill: currentColor;
}

/* ---- components/reviews-summary ---- */
.vp-reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vp-space-2) var(--vp-space-4);
  margin-block-end: var(--vp-space-8);
}

.vp-reviews-summary__score {
  color: var(--vp-color-heading);
  font-family: var(--vp-font-heading);
  font-size: var(--vp-fs-3xl);
  font-weight: 700;
  line-height: 1;
}

.vp-reviews-summary__count {
  color: var(--vp-color-text-muted);
}

/* ---- components/review ---- */
.vp-review {
  display: grid;
  align-content: start;
  gap: var(--vp-space-3);
  height: 100%;
  padding: var(--vp-space-6);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
  box-shadow: var(--vp-shadow-sm);
}

.vp-review__quote {
  padding: 0;
  border: 0;
  font-family: var(--vp-font-body);
  font-size: var(--vp-fs-base);
  font-style: normal;
}

.vp-review__author {
  font-size: var(--vp-fs-sm);
  font-weight: 600;
}

.vp-review__source {
  color: var(--vp-color-text-muted);
  font-weight: 400;
}

@media (forced-colors: active) {
  .vp-review,
  .vp-store,
  .vp-next-step,
  .vp-info-panel,
  .vp-cookie-banner,
  .vp-embed-consent,
  .vp-product__gallery {
    border: 1px solid CanvasText;
  }
}

/* ---- components/hours ---- */
.vp-hours {
  display: grid;
  margin: 0;
}

.vp-hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--vp-space-4);
  padding-block: var(--vp-space-2);
  border-bottom: 1px solid var(--vp-color-border-decorative);
}

.vp-hours dt {
  font-weight: 600;
}

.vp-hours dd {
  margin: 0;
  text-align: end;
}

.vp-hours__note {
  margin-block-start: var(--vp-space-3);
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/contact-list ---- */
.vp-contact-list {
  display: grid;
  gap: var(--vp-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-contact-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--vp-space-3);
}

.vp-contact-list__icon {
  margin-block-start: 0.2em;
  color: var(--vp-color-link);
}

/* ---- components/store-list ---- */
/* Points of sale list (the list is the source, the map a complement) */
.vp-store-list {
  display: grid;
  gap: var(--vp-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---- components/store ---- */
.vp-store {
  display: grid;
  justify-items: start;
  gap: var(--vp-space-1);
  height: 100%;
  padding: var(--vp-space-4) var(--vp-space-6);
  border: 1px solid var(--vp-color-border-decorative);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
}

.vp-store__name {
  font-size: var(--vp-fs-lg);
  font-weight: 600;
}

.vp-store__address {
  color: var(--vp-color-text-muted);
  font-style: normal;
}

/* ---- components/timeline ---- */
.vp-timeline {
  position: relative;
  display: grid;
  gap: var(--vp-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-timeline::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  left: 7px;
  width: 2px;
  background: var(--vp-gold);
}

.vp-timeline__item {
  position: relative;
  display: grid;
  gap: var(--vp-space-1);
  padding-inline-start: var(--vp-space-8);
}

.vp-timeline__item::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--vp-color-link);
  border-radius: 50%;
  background: var(--vp-color-bg);
}

.vp-timeline__year {
  color: var(--vp-color-heading);
  font-family: var(--vp-font-heading);
  font-size: var(--vp-fs-xl);
  font-weight: 700;
  line-height: 1.2;
}

@media (forced-colors: active) {
  .vp-timeline::before,
  .vp-timeline__item::before,
  .vp-steps__item::before {
    forced-color-adjust: none;
  }
}

/* ---- components/next-step ---- */
.vp-next-step {
  display: grid;
  align-items: center;
  gap: var(--vp-space-6);
  padding: var(--vp-space-8);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-surface);
  --vp-color-eyebrow: var(--vp-color-eyebrow-on-surface);
}

@media (min-width: 768px) {
  .vp-next-step {
    grid-template-columns: 1fr auto;
  }
}

.vp-next-step__content {
  display: grid;
  gap: var(--vp-space-2);
}

.vp-next-step__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-3);
}

/* ---- components/product ---- */
.vp-product {
  display: grid;
  /* minmax(0, 1fr): the implicit auto column grew to the gallery min-content on mobile */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--vp-space-8);
}

@media (min-width: 1024px) {
  .vp-product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: var(--vp-space-16);
  }

  .vp-product__gallery {
    position: sticky;
    top: calc(var(--vp-header-height) + var(--vp-space-6));
  }
}

.vp-product__gallery {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: var(--vp-space-8);
  border-radius: var(--vp-radius-md);
  background: var(--vp-almond-silk);
}

/* Never upscaled: the bottle keeps its intrinsic size inside the gallery */
.vp-product__image {
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgb(44 7 3 / 0.25));
}

.vp-product__summary {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--vp-space-4);
}

.vp-product__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-2) var(--vp-space-3);
}

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

.vp-product__price {
  font-size: var(--vp-fs-2xl);
  font-weight: 600;
  line-height: 1.1;
}

.vp-product__price-note {
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

.vp-product__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--vp-space-3);
}

.vp-product__qty {
  width: 96px;
}

.vp-product__stock {
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-2);
  color: var(--vp-color-success);
  font-size: var(--vp-fs-sm);
  font-weight: 600;
}

.vp-product__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-2) var(--vp-space-6);
}

.vp-product__details {
  width: 100%;
}

/* ---- components/facts ---- */
/* Key facts (icons + text, never icons alone) */
.vp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--vp-space-4);
  width: 100%;
  margin: 0;
  padding-block: var(--vp-space-6);
  border-block: 1px solid var(--vp-color-border-decorative);
}

.vp-facts dt {
  display: flex;
  align-items: center;
  gap: var(--vp-space-2);
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

.vp-facts dt .vp-icon {
  color: var(--vp-color-link);
}

.vp-facts dd {
  margin: 0;
  font-weight: 600;
}

/* ---- components/icon-link ---- */
/* Inline link with icon (S'y rendre, download, external) */
.vp-icon-link {
  display: inline-flex;
  align-items: center;
  gap: var(--vp-space-2);
  font-weight: 600;
}

/* ---- components/steps ---- */
.vp-steps {
  display: grid;
  gap: var(--vp-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.vp-steps__item {
  position: relative;
  display: grid;
  gap: var(--vp-space-1);
  padding-inline-start: var(--vp-space-16);
  counter-increment: step;
}

.vp-steps__item::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--vp-control-height);
  height: var(--vp-control-height);
  border-radius: 50%;
  background: var(--vp-color-action-primary);
  color: var(--vp-color-on-primary);
  font-weight: 600;
}

/* ---- components/info-panel ---- */
.vp-info-panel {
  display: grid;
  gap: var(--vp-space-4);
  padding: var(--vp-space-6);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-surface);
}

/* ---- layout/layout-aside ---- */
.vp-layout-aside {
  display: grid;
  gap: var(--vp-space-12);
}

@media (min-width: 1024px) {
  .vp-layout-aside {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .vp-layout-aside__aside {
    position: sticky;
    top: calc(var(--vp-header-height) + var(--vp-space-6));
  }
}

/* ---- components/prose ---- */
.vp-prose {
  display: grid;
  gap: var(--vp-space-4);
  max-width: var(--vp-container-narrow);
}

.vp-prose > h2 {
  margin-block-start: var(--vp-space-8);
}

/* ---- components/newsletter ---- */
.vp-newsletter {
  display: grid;
  gap: var(--vp-space-4);
  max-width: 640px;
}

.vp-newsletter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--vp-space-3);
}

.vp-newsletter__row .vp-field {
  flex: 1 1 256px;
}

/* ---- components/embed-consent ---- */
.vp-embed-consent {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--vp-space-3);
  aspect-ratio: 16 / 9;
  /* As a grid item, the ratio turns the content height into a 485px minimum width on mobile */
  min-width: 0;
  padding: var(--vp-space-6);
  border: 1px dashed var(--vp-color-border);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
  text-align: center;
}

.vp-embed-consent__icon {
  width: 40px;
  height: 40px;
  color: var(--vp-color-link);
}

/* ---- components/embed ---- */
.vp-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--vp-radius-md);
}

/* ---- components/age-gate ---- */
.vp-age-gate {
  text-align: center;
}

.vp-age-gate::backdrop {
  background: var(--vp-overlay-gate);
}

.vp-age-gate__logo {
  width: auto;
  height: 96px;
  margin: 0 auto var(--vp-space-6);
}

.vp-age-gate__text {
  margin-block: var(--vp-space-4) var(--vp-space-6);
}

.vp-age-gate__actions {
  display: grid;
  gap: var(--vp-space-3);
}

.vp-age-gate__refusal {
  margin-block-start: var(--vp-space-4);
  text-align: start;
}

.vp-age-gate__legal {
  margin-block-start: var(--vp-space-6);
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/cookie-banner ---- */
.vp-cookie-banner {
  position: fixed;
  right: var(--vp-gutter);
  bottom: var(--vp-space-4);
  left: var(--vp-gutter);
  z-index: var(--vp-z-overlay);
  display: grid;
  gap: var(--vp-space-4);
  max-width: 704px;
  margin-inline: auto;
  padding: var(--vp-space-6);
  border: 1px solid var(--vp-color-border-decorative);
  border-radius: var(--vp-radius-md);
  background: var(--vp-color-bg);
  color: var(--vp-color-text);
  box-shadow: var(--vp-shadow-lg);
  max-height: calc(100dvh - 2 * var(--vp-space-4));
  overflow-y: auto;
}

/* Focused elements must not hide behind the fixed banner (WCAG 2.4.11) */
:root:has(.vp-cookie-banner:not([hidden])) {
  scroll-padding-bottom: 256px;
}

.vp-cookie-banner__title {
  font-size: var(--vp-fs-lg);
  font-weight: 600;
}

.vp-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vp-space-3);
}

/* Inline demo of the banner inside the kit page (not fixed) */
.vp-cookie-banner--static {
  position: static;
  margin: 0;
}

/* ---- components/consent-list ---- */
.vp-consent-list {
  display: grid;
  gap: var(--vp-space-2);
}

.vp-consent-list__hint {
  margin-inline-start: calc(20px + var(--vp-space-3));
  color: var(--vp-color-text-muted);
  font-size: var(--vp-fs-sm);
}

/* ---- components/error-page ---- */
.vp-error-page {
  display: grid;
  justify-items: center;
  gap: var(--vp-space-6);
  padding-block: var(--vp-space-16);
  text-align: center;
}

.vp-error-page__code {
  color: var(--vp-color-link);
  font-family: var(--vp-font-heading);
  font-size: clamp(80px, 48px + 10vw, 144px);
  font-weight: 700;
  line-height: 1;
}

.vp-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--vp-space-3);
}

.vp-error-page__search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--vp-space-3);
  width: min(100%, 512px);
  text-align: start;
}

.vp-error-page__search .vp-field {
  flex: 1 1 224px;
}

/* ---- components/link-button ---- */
.vp-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--vp-color-link);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.vp-link-button:hover {
  text-decoration-thickness: 2px;
}

/* ---- base/utilities ---- */
/* ponytail: :not(#vp-id-bump) adds ID specificity so any kit component display value loses; */
/* limited to kit elements so TheGem markup is never forced. */
[class*="vp-"][hidden]:not(#vp-id-bump) {
  display: none;
}

.vp-visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Without JS: no drawer, the main nav wraps under the brand at every width */
html:not(.vp-js) .vp-js-only {
  display: none;
}
