/*
 * Silvara Cellars — OrderPort webstore theme
 *
 * Makes silvarawine.orderport.net look like silvarawine.com, so a visitor who
 * clicks Buy does not feel they have left the site at the moment they are
 * about to pay.
 *
 * HOW IT IS LOADED
 * Upload to /Upload/SilvaraVineyards/ and add it as the LAST stylesheet
 * reference in the OrderPort CMS, after ws-style.css and custom.css. It
 * edits nothing that already exists. Removing the reference restores the old
 * look.
 *
 * LOAD ORDER IS LOAD-BEARING. The header and menu rules are more specific than
 * the ws-style.css rules they replace, so they win wherever they load. The
 * tokens and the category-menu rules are NOT: they match custom.css and
 * shop-left-menu.css selector for selector and win only by coming last. Move
 * this file up the reference list and those quietly revert.
 * See README.md for the full upload and rollback steps.
 *
 * WHERE THE VALUES COME FROM
 * src/app/(frontend)/globals.css in the site repo. The site writes its
 * colours in OKLCH; they are converted to hex here, exactly, because checkout
 * may run on an old tasting-room tablet. If the site's palette changes, this
 * file is the one other place that has to change with it.
 *
 * THE STORE HAS TWO SETS OF COLOUR SETTINGS, AND BOTH ARE SET BELOW
 * 1. The Silvara theme's own (ws-style.css): --btn-background-color,
 *    --anchors-color, --theme-color and so on.
 * 2. OrderPort's platform defaults (/CSS/common-r2.css, copy in
 *    original/platform/), which the cart, sign-in and checkout app read:
 *    --btn-bg-color, --btn-color, --bg-input, --bg-color-checkbox,
 *    --box-shadow-secondary. Their default is purple. Miss this set and
 *    checkout keeps purple checkboxes and grey buttons.
 * Some names are read by both (--primary, --border-color, --btn-active-*,
 * --box-shadow-primary); those sit in the first block.
 *
 * DO NOT EDIT /Upload/common/*. cms.css, card.css, shop-left-menu.css and
 * menu.js live outside the SilvaraVineyards folder and appear to be shared
 * across OrderPort stores. Override them here instead.
 */

/* -------------------------------------------------------------------------
   1. Fonts — the same files the site serves from public/fonts/.
   Upload them to /Upload/SilvaraVineyards/fonts/ (the folder ws-style.css
   already loads Brown from).
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/libre-baskerville-normal-latin-ext.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: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/libre-baskerville-normal-latin.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: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/libre-baskerville-italic-latin-ext.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: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/libre-baskerville-italic-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-normal-latin-ext.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: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-normal-latin.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;
}

/* -------------------------------------------------------------------------
   2. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Silvara palette, hex from globals.css */
  --sv-primary: #1f542e; /* oklch(40% .085 150) */
  --sv-primary-deep: #0d3a1e; /* oklch(31% .07 152) */
  --sv-secondary: #92aa54; /* oklch(70% .115 122), sage */
  --sv-bone: #f4f2e9; /* oklch(96% .012 95) */
  --sv-surface: #ebe8de; /* oklch(93% .014 92) */
  --sv-surface-2: #e2ded1; /* oklch(90% .018 92) */
  --sv-ink: #19221a; /* oklch(24% .02 150) */
  --sv-muted: #616c63; /* oklch(52% .02 150) */
  --sv-amber: #df911a; /* oklch(72% .15 70) */
  --sv-amber-ink: #3b2301; /* oklch(28% .06 70) */
  --sv-bone-on-green: #f2efe1; /* oklch(95% .018 95) */
  --sv-bone-dim: #d4d2c3; /* oklch(86% .02 100) */
  --sv-line-on-bone: rgba(31, 84, 46, 0.16);
  --sv-line-on-green: rgba(146, 170, 84, 0.32);
  --sv-scrim-nav: rgba(244, 242, 233, 0.82);
  --sv-green-wash: rgba(31, 84, 46, 0.05);
  --sv-product-plate: #f5f6f7; /* matches OrderPort's bottle PNG backgrounds */
  --sv-shadow-soft: 0 1px 2px rgba(13, 58, 30, 0.06), 0 8px 24px rgba(13, 58, 30, 0.08);
  --sv-shadow-lift: 0 2px 6px rgba(13, 58, 30, 0.1), 0 24px 48px rgba(13, 58, 30, 0.16);
  --sv-font-display: 'Libre Baskerville', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sv-font-body: 'Outfit', 'BROWN', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sv-gutter: clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  --sv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Header height. The store's header is position: fixed, so the bar under
     it is pushed down by exactly this much — see --cart-summary-top. */
  --sv-header-h: calc(3.9rem + 1px);

  /* Silvara theme settings (ws-style.css) */
  --primary: var(--sv-primary);
  --primary-text-color: var(--sv-ink);
  --font-color: var(--sv-ink);
  --theme-color: var(--sv-primary-deep);
  --body-font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --body-font-family: var(--sv-font-body);
  --body-font-weight: 400;
  --body-line-height: 1.6;
  --body-background-color: var(--sv-bone);
  --modal-bg-color: var(--sv-bone);
  --bg-color: var(--sv-bone);
  --box-shadow-primary: 0 0 0 3px rgba(146, 170, 84, 0.35);
  --border-color: var(--sv-line-on-bone);
  --btn-background-color: var(--sv-primary);
  --btn-hover-background-color: var(--sv-primary-deep);
  --btn-active-bg-color: var(--sv-primary-deep);
  --btn-active-border-color: var(--sv-primary-deep);
  --btn-border-color: var(--sv-primary);
  --btn-text-color: var(--sv-bone-on-green);
  --btn-hover-text-color: var(--sv-bone-on-green);
  --btn-active-color: var(--sv-bone-on-green);
  --btn-font-family: var(--sv-font-body);
  --btn-font-weight: 600;
  --btn-font-size: 0.96rem;
  --btn-text-transform: none;
  --btn-border: 1.5px solid transparent;
  --btn-padding: 0.82em 1.55em;
  --btn-border-radius: 4px;
  --btn-hover-opacity: 1;
  --btn-letter-spacing: 0.005em;
  --inputs-text-color: var(--sv-ink);
  --anchors-color: var(--sv-primary);
  --anchors-hover-color: var(--sv-primary-deep);
  --highlights-color: var(--sv-primary-deep);
  --highlights-font-family: var(--sv-font-display);
  --highlights-font-weight: 540;
  --highlights-line-height: 1.15;
  --container-max-width: 1240px;
  --popup-text-color: var(--sv-ink);
  --wine-information-alt-row-bg: var(--sv-surface);
  --overlay-bg-color: rgba(25, 34, 26, 0.18);
  --cart-summary-top: var(--sv-header-h);
  --modal-header-color: var(--sv-bone-on-green);
  --group-menu-font-size: 0.92rem;
  --product-title-color: var(--sv-primary-deep);
  --group-item-color: var(--sv-ink);

  /* OrderPort platform settings (common-r2.css), read by cart, sign-in and
     checkout */
  --primary-rgb: 31, 84, 46;
  --primary-light: var(--sv-bone);
  --primary-dark: var(--sv-primary-deep);
  --secondary: var(--sv-amber);
  --light: var(--sv-bone);
  --font-color-rgb: 25, 34, 26;
  --font-color-secondary: var(--sv-muted);
  --border: 1px solid var(--sv-line-on-bone);
  --bg-input: #fff;
  --btn-bg-color: var(--sv-primary);
  --btn-color: var(--sv-bone-on-green);
  --btn-secondary-active-color: var(--sv-primary-deep);
  --btn-secondary-active-bg-color: var(--sv-green-wash);
  --btn-secondary-active-border-color: var(--sv-primary);
  --box-shadow-secondary: 0 0 0 3px rgba(146, 170, 84, 0.35);
  --lnk-color: var(--sv-primary);
  --lnk-color-active: var(--sv-primary-deep);
  --head-color: var(--sv-primary-deep);
  --font-family-primary: var(--sv-font-body);
  --bg-color-checkbox: var(--sv-primary);
  --border-color-checkbox: var(--sv-primary);
  --color-checkbox: var(--sv-bone-on-green);
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.015em;
}

a {
  transition: color 0.2s var(--sv-ease);
}

/* Deliberately NOT the site's sage outline. Sage on bone is 2.31:1, under the
   3:1 a focus indicator needs; this green is 7.9:1. The store is where people
   pay, so it gets the version that passes. The site's own rule is #154. */
:focus-visible {
  outline: 2px solid var(--sv-primary);
  outline-offset: 3px;
}

#pageContent {
  padding-inline: var(--sv-gutter);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
select,
textarea {
  border-radius: 4px;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='tel']:focus,
input[type='number']:focus,
select:focus,
textarea:focus {
  border-color: var(--sv-primary);
  box-shadow: var(--box-shadow-primary);
  outline: none;
}

/* -------------------------------------------------------------------------
   4. Buttons — src/components/ui/Button.tsx
   The colours come from the tokens above; this adds the shape and motion.
   ------------------------------------------------------------------------- */
.btn {
  box-shadow: var(--sv-shadow-soft);
  transition:
    transform 0.2s var(--sv-ease),
    background-color 0.2s var(--sv-ease),
    color 0.2s var(--sv-ease),
    box-shadow 0.2s var(--sv-ease),
    border-color 0.2s var(--sv-ease);
}

.btn:hover {
  box-shadow: var(--sv-shadow-lift);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

/* Secondary actions read as the site's ghost button, not a second green
   one. "Limited Offer" sits beside Add to Cart on every product card; the
   sign-in page's "Create an Account" and "Shop as Guest" were a faded copy
   of the primary button (opacity: .75), which on green reads as disabled. */
a[id$='hlnkLimitedOfferCode'].btn,
.btn.sign-up,
.btn.quick-order,
.btn.btn-secondary,
.btn.btn-outline-primary,
.btn.btn-outline-secondary,
.btn.btn-light {
  background: transparent;
  color: var(--sv-primary);
  border: 1.5px solid var(--sv-line-on-bone);
  box-shadow: none;
  opacity: 1;
}

a[id$='hlnkLimitedOfferCode'].btn:hover,
.btn.sign-up:hover,
.btn.quick-order:hover,
.btn.btn-secondary:hover,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover,
.btn.btn-light:hover {
  background: var(--sv-green-wash);
  color: var(--sv-primary-deep);
  border-color: var(--sv-primary);
  box-shadow: none;
}

.btn.btn-link {
  background: transparent;
  color: var(--sv-primary);
  box-shadow: none;
}

/* -------------------------------------------------------------------------
   5. Header — design-reference/assets/styles.css §6, src/components/site/Nav.tsx
   Every selector here is at least as specific as the ws-style.css rule it
   replaces, so it wins inside that file's media queries too.
   ------------------------------------------------------------------------- */
.header-wrapper .header-main {
  padding: 0;
  background-color: var(--sv-scrim-nav);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--sv-line-on-bone);
  font-family: var(--sv-font-body);
  --container-max-width: 1240px;
}

.header-wrapper .header-main .ord-container {
  padding-inline: var(--sv-gutter);
}

.header-main .header-row {
  height: 3.9rem;
  padding: 0;
  justify-content: flex-start;
  gap: 1.5rem;
}

.header-main .logo-wrap {
  width: auto;
  padding: 0;
  text-align: left;
  flex: none;
}

.header-main .sv-brand {
  display: inline-flex;
  align-items: center;
}

.header-main .logo-wrap img {
  display: block;
  width: auto;
  height: 36px;
}

.header-main .main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-main .main-menu a,
.header-main .main-menu .sv-menu-label {
  position: relative;
  display: block;
  padding: 0.4rem 0;
  font-family: var(--sv-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--sv-ink);
  transition: color 0.2s var(--sv-ease);
}

.header-main .main-menu .sv-menu-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.header-main .main-menu a:hover,
.header-main .main-menu .sv-menu-label:hover,
.header-main .main-menu .sv-current > a {
  color: var(--sv-primary);
}

/* The sage underline that grows from the left on hover. Top level only. */
.header-main .main-menu > li > a::after,
.header-main .main-menu > li > .sv-menu-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--sv-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--sv-ease);
}

.header-main .main-menu > li > a:hover::after,
.header-main .main-menu > li > .sv-menu-label:hover::after,
.header-main .main-menu > li.sv-current > a::after {
  transform: scaleX(1);
}

/* At least 24px square — the smallest tap target WCAG 2.2 allows. The caret
   is the only way into the Shop menu on a phone without leaving the page. */
.header-main .main-menu .sv-caret-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0.35rem;
  color: var(--sv-ink);
}

.header-main .main-menu .sv-caret-button:hover {
  color: var(--sv-primary);
}

/* A drawn chevron rather than the old icon font, so it survives ws-style.css
   being retired. */
.header-main .sv-caret {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--sv-ease);
}

.header-main .has-child.open .sv-caret {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.header-main .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-main .main-menu .sub-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sv-ink);
}

.header-main .main-menu .sub-menu a:hover {
  color: var(--sv-primary);
  background: var(--sv-green-wash);
}

.header-main .sv-phone,
.header-main .sv-menu-phone a {
  font-family: var(--sv-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--sv-primary);
}

.header-main .header-right {
  width: auto;
  padding: 0;
  flex: none;
  display: flex;
  align-items: center;
}

.header-main .btn-menu-wrap {
  width: auto;
  padding: 0;
  margin-left: auto;
  text-align: right;
}

.header-main .sv-menu-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--sv-line-on-bone);
  border-radius: 4px;
  background: transparent;
  font-family: var(--sv-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sv-primary-deep);
  cursor: pointer;
}

/* Desktop: one row. */
@media (min-width: 1025px) {
  .header-main .main-navigation {
    width: auto;
    margin-left: auto;
  }

  .header-main .main-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
  }

  .header-main .main-menu > li {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  .header-main .main-menu .has-child {
    position: relative;
  }

  .header-main .main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    width: auto;
    min-width: 13rem;
    padding: 0.5rem 0;
    background-color: var(--sv-bone);
    border: 1px solid var(--sv-line-on-bone);
    border-radius: 4px;
    box-shadow: var(--sv-shadow-soft);
  }

  /* ws-style.css hides a sub-menu whenever it is not hovered. Keyboard focus
     and a tap on the caret (which menu.js marks .open) have to open it too. */
  .header-main .main-menu .has-child:focus-within .sub-menu,
  .header-main .main-menu .has-child.open .sub-menu {
    display: block;
  }

  .header-main .main-menu > li.sv-menu-phone {
    display: none;
  }
}

/* Tablet and phone: the menu drops out of the header as a panel, the way the
   site's does. The switch is at 1024, the store's own breakpoint, rather than
   the site's 860: the store carries a Shop menu the site does not, and at 861
   the extra item would wrap the row onto two lines. */
@media (max-width: 1024px) {
  body .header-main .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - var(--sv-header-h));
    overflow-y: auto;
    padding: 0.75rem var(--sv-gutter) 1.25rem;
    background-color: var(--sv-bone);
    border-bottom: 1px solid var(--sv-line-on-bone);
    box-shadow: var(--sv-shadow-soft);
    transform: none;
    transition: none;
  }

  body:not(.open) .header-main .main-navigation {
    display: none;
  }

  .header-main .main-menu > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .header-main .main-menu > li > a,
  .header-main .main-menu > li > .sv-menu-label {
    flex: 1 1 auto;
    padding: 0.7rem 0;
  }

  .header-main .main-menu > li > .sv-menu-label {
    justify-content: space-between;
  }

  /* In the panel a row is full width, so an underline would rule right across
     the screen. The colour alone marks the current section here. */
  .header-main .main-menu > li > a::after,
  .header-main .main-menu > li > .sv-menu-label::after {
    display: none;
  }

  .header-main .main-menu .sv-caret-button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .header-main .main-menu .sub-menu {
    flex: 1 1 100%;
    padding: 0 0 0.4rem 0.9rem;
  }

  .header-main .main-menu .sub-menu a {
    padding: 0.55rem 0;
  }

  .header-main .main-menu .sub-menu a:hover {
    background: transparent;
  }

  .header-main .sv-menu-phone {
    padding-top: 0.6rem;
  }

  .header-main .header-right {
    display: none;
  }
}

@media (min-width: 1025px) {
  .header-main .btn-menu-wrap {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   6. Cart and sign-in bar under the header
   ------------------------------------------------------------------------- */
.header-wrapper .auth-wrapper {
  margin-top: var(--sv-header-h);
  border-bottom: 1px solid var(--sv-line-on-bone);
}

.header-wrapper .auth-wrapper .ord-container {
  padding-inline: var(--sv-gutter);
}

.auth-wrapper #authStatus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  padding: 0.55rem 0;
  font-family: var(--sv-font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--sv-muted);
}

.auth-wrapper #authStatus a {
  color: var(--sv-primary);
  font-weight: 600;
}

.auth-wrapper #authStatus a:hover {
  color: var(--sv-primary-deep);
}

.auth-wrapper #authStatus .theme-color {
  color: var(--sv-muted);
}

.auth-wrapper #authStatus .splitter {
  color: var(--sv-line-on-bone);
}

.auth-wrapper #authStatus a.btn {
  font-size: 0.85rem;
  padding: 0.45em 1.1em;
  color: var(--sv-bone-on-green);
}

/* -------------------------------------------------------------------------
   7. Category menu (Bundles, Red, White…) — replaces custom.css
   ------------------------------------------------------------------------- */
.shop-left-menu {
  border-bottom: 1px solid var(--sv-line-on-bone);
}

.shop-left-menu a,
.horizontal-menu .shop-left-menu span > ul > li > a {
  font-family: var(--sv-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sv-ink);
  border-bottom: 1.5px solid transparent;
}

.shop-left-menu a.selected,
.shop-left-menu a:hover,
.horizontal-menu .shop-left-menu span > ul > li > a.selected,
.horizontal-menu .shop-left-menu span > ul > li > a:hover {
  color: var(--sv-primary);
  border-bottom-color: var(--sv-secondary);
}

.vertical-menu .shop-left-menu a:hover,
.vertical-menu .shop-left-menu a.selected {
  background-color: var(--sv-green-wash);
}

.horizontal-menu .shop-left-menu span > ul li ul {
  background-color: var(--sv-bone);
  border-color: var(--sv-line-on-bone);
  box-shadow: var(--sv-shadow-soft);
}

/* -------------------------------------------------------------------------
   8. Product cards — src/components/site/WineCard.tsx, ui/Chip.tsx
   ------------------------------------------------------------------------- */
/* OrderPort's bottle shots already sit on a #f5f6f7 plate, so only the
   site's rounded corners and lift are added — no box of our own. */
.productItem .prod-img img {
  border-radius: 10px;
  box-shadow: var(--sv-shadow-lift);
}

.productItem h2,
.three-items-across .productItem .prod-summary h2,
.four-items-across .productItem .prod-summary h2 {
  font-family: var(--sv-font-display);
  font-size: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  font-weight: 540;
  line-height: 1.2;
}

.productItem h2 a:hover {
  color: var(--sv-primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

/*
 * The price, set as type — #210, matching src/components/ui/Price.tsx.
 *
 * It used to sit in the site's sage pill with a dot. #210 (2026-09-30) took it
 * out of the pill on the site because the same pill carried a price, a stock
 * status and a medal, so "$25" and "Sold out" read as equals. The store kept
 * the pill until this. One rule for the list and the product page: OrderPort
 * uses the same `.price-container` markup on both.
 */
.price-container {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.price-container .price {
  font-family: var(--sv-font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  color: var(--sv-primary-deep);
}

/* Shown on the product page only; the list hides it. */
.price-container .price-label {
  margin-right: 0.5em;
}

.price-container .price-descr {
  font-family: var(--sv-font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--sv-muted);
}

/* -------------------------------------------------------------------------
   9. Panels, tabs and dialogs that had white or taupe hard-coded
   ------------------------------------------------------------------------- */
#tabs-product .ui-tabs-nav a {
  font-family: var(--sv-font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sv-bone-on-green);
}

#tabs-product .ui-tabs-nav .ui-state-active a,
#tabs-product .ui-tabs-nav li.ui-tabs-selected a {
  color: var(--sv-primary-deep);
  background: var(--sv-bone);
}

.ui-dialog,
body.popup {
  background: var(--sv-bone);
}

.ui-dialog .ui-dialog-title {
  color: var(--sv-bone-on-green);
}

/* -------------------------------------------------------------------------
   10. Footer — src/components/site/Footer.tsx
   ------------------------------------------------------------------------- */
.sv-footer {
  padding-block: clamp(3rem, 2.4rem + 3vw, 5rem) 2.5rem;
  background-color: var(--sv-primary-deep);
  background-image:
    radial-gradient(900px 500px at 100% 0%, rgba(31, 84, 46, 0.6), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(146, 170, 84, 0.12), transparent 55%);
  color: var(--sv-bone-on-green);
  font-family: var(--sv-font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.sv-footer .ord-container {
  padding-inline: var(--sv-gutter);
}

.sv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.25rem, 0.8rem + 2vw, 2rem);
}

.sv-footer .sv-brand {
  display: inline-flex;
}

.sv-footer .sv-brand img {
  display: block;
  width: auto;
  height: 46px;
}

.sv-footer .sv-footer-tagline {
  max-width: 34ch;
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--sv-bone-dim);
}

.sv-footer .sv-footer-heading {
  margin: 0;
  font-family: var(--sv-font-display);
  font-size: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--sv-bone-on-green);
}

.sv-footer ul {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.sv-footer ul a {
  color: var(--sv-bone-dim);
}

.sv-footer ul a:hover {
  color: var(--sv-secondary);
}

.sv-footer .sv-forest-rule {
  height: 26px;
  margin: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem) 0 1.5rem;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cg fill='none' stroke='%23b9d49a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 20 H88'/%3E%3Cpath d='M152 20 H240'/%3E%3Cpath d='M120 4 C116 9 113 12 110 14 C113 14 116 15 120 18 C124 15 127 14 130 14 C127 12 124 9 120 4 Z'/%3E%3Cpath d='M120 18 V24'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}

.sv-footer .sv-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--sv-bone-dim);
}

@media (max-width: 1024px) {
  .sv-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .sv-footer-grid {
    grid-template-columns: 1fr;
  }
}
