/*
 * Vegavin storefront shell layer.
 * Uses the existing theme design system from style.css:
 * wine/cream/green/brass palette, Georgia display type, system sans body type.
 */

:root {
  --storefront-radius: 0;
  --storefront-focus: 0 0 0 3px rgba(118, 38, 59, 0.28);
  --storefront-card-shadow: 0 14px 36px rgba(61, 18, 29, 0.1);

  /* Re-map the earlier reference modules to Vegavin's established tokens. */
  --reference-ink: var(--ink);
  --reference-navy: var(--wine-dark);
  --reference-link: var(--wine);
  --reference-green: var(--green);
  --reference-stock: var(--green);
  --reference-search: var(--cream);
  --reference-muted: var(--muted);
  --reference-line: var(--line);
  --reference-image: #fbf5ed;
  --reference-white: var(--surface);

  --flow-ink: var(--ink);
  --flow-navy: var(--wine-dark);
  --flow-blue: var(--wine);
  --flow-link: var(--wine);
  --flow-green: var(--green);
  --flow-valid: var(--green);
  --flow-beige: var(--paper);
  --flow-pink: var(--cream);
  --flow-line: var(--line);
  --flow-soft-line: var(--line);
  --flow-muted: var(--muted);
  --flow-white: var(--surface);
  --flow-input-valid: #f2f7f3;
}

.vegavin-storefront-shell {
  --storefront-promise-height: 34px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Hide the legacy shell after the enhanced shell has been injected through wp_body_open. */
.vegavin-storefront-shell > .top-promise,
.vegavin-storefront-shell > .site-header {
  display: none;
}

.storefront-promise {
  position: sticky;
  top: var(--vegavin-admin-offset, 0px);
  z-index: 56;
  display: flex;
  min-height: var(--storefront-promise-height);
  align-items: center;
  justify-content: center;
  padding: 0.26rem 1rem;
  background: var(--wine-dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: center;
}

.storefront-promise__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.storefront-promise a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.vegavin-storefront-header {
  position: sticky;
  top: calc(var(--vegavin-admin-offset, 0px) + var(--storefront-promise-height));
  z-index: 50;
  border-bottom: 1px solid rgba(118, 38, 59, 0.16);
  background: rgba(255, 248, 239, 0.97);
  box-shadow: 0 8px 24px rgba(61, 18, 29, 0.05);
  backdrop-filter: blur(14px);
}

.storefront-header-main,
.storefront-search-wrap,
.storefront-category-track {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.storefront-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.storefront-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.storefront-brand-mark {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(118, 38, 59, 0.16);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.34) 42%, transparent 43%),
    linear-gradient(145deg, #fffdf8, #efe2d4 60%, #e5d4c0);
  color: rgba(118, 38, 59, 0.92);
  box-shadow: 0 12px 26px rgba(61, 18, 29, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
}

.storefront-brand-mark__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.38rem;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.storefront-brand-mark__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.8rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
}

.storefront-brand-mark.is-brand-text .storefront-brand-mark__image {
  display: none;
}

.storefront-brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(61, 18, 29, 0.1));
  pointer-events: none;
}

.storefront-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(0.15rem, 1.7vw, 1rem);
}

.storefront-action {
  position: relative;
  display: inline-flex;
  min-width: 56px;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: 0;
  padding: 0.25rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.storefront-action svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.storefront-action.is-current {
  color: var(--wine);
}

.storefront-action:hover,
.storefront-action:focus-visible {
  color: var(--wine);
}

.storefront-action-badge {
  position: absolute;
  top: 0;
  right: 3px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
}

.storefront-search-wrap {
  position: relative;
  padding-bottom: 0.4rem;
}

.storefront-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 46px;
  border: 1px solid rgba(118, 38, 59, 0.1);
  background: var(--cream);
}

.storefront-search > svg {
  width: 24px;
  height: 24px;
  margin-left: 0.9rem;
  fill: none;
  stroke: var(--wine-dark);
  stroke-linecap: round;
  stroke-width: 1.55;
}

.storefront-search input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.58rem 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.storefront-search input::placeholder {
  color: rgba(103, 91, 85, 0.68);
}

.storefront-search button {
  min-width: 70px;
  align-self: stretch;
  border: 0;
  padding: 0.48rem 1rem;
  background: var(--wine);
  color: #fff;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.storefront-search-suggestions {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.storefront-search-suggestions[hidden] {
  display: none;
}

.storefront-search-suggestions > div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.storefront-search-suggestions strong {
  margin-bottom: 0.25rem;
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.storefront-search-suggestions a {
  color: var(--ink);
  text-decoration: none;
}

.storefront-search-suggestions a:hover {
  color: var(--wine);
  text-decoration: underline;
}

.storefront-category-nav {
  border-top: 1px solid rgba(118, 38, 59, 0.08);
}

.storefront-category-track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.storefront-category-track::-webkit-scrollbar {
  display: none;
}

.storefront-category-track a {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  scroll-snap-align: start;
}

.storefront-category-track a:hover,
.storefront-category-track a:focus-visible {
  color: var(--wine);
  background: rgba(118, 38, 59, 0.06);
}

.storefront-favorites-dialog,
.storefront-filter-dialog {
  width: min(440px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -24px 0 60px rgba(61, 18, 29, 0.18);
}

.storefront-favorites-dialog::backdrop,
.storefront-filter-dialog::backdrop {
  background: rgba(32, 24, 22, 0.52);
  backdrop-filter: blur(2px);
}

body.has-storefront-dialog {
  overflow: hidden;
}

/* Add-to-cart confirmation toast: top-centered, never full-screen, never
   blocking. The wrapper ignores pointer events so the page stays usable. */
.storefront-cart-toast {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  z-index: 1200;
  width: min(380px, calc(100vw - 1.6rem));
  transform: translate(-50%, -14px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.storefront-cart-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.storefront-cart-toast[hidden] {
  display: none;
}

.storefront-cart-toast__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(118, 38, 59, 0.14);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(20, 12, 10, 0.24);
  pointer-events: auto;
}

.storefront-cart-toast__icon {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1f7a4d;
  place-items: center;
}

.storefront-cart-toast__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-cart-toast__copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.storefront-cart-toast__copy strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.storefront-cart-toast__copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-cart-toast__close {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.storefront-cart-toast__close:hover {
  color: var(--wine);
}

/* Mini-cart panel anchored near the header cart action. */
.storefront-mini-cart {
  position: fixed;
  top: 4.6rem;
  right: 1rem;
  z-index: 1150;
  display: grid;
  width: min(370px, calc(100vw - 1.6rem));
  max-height: min(74dvh, 560px);
  overflow: hidden auto;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  border: 1px solid rgba(118, 38, 59, 0.14);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(20, 12, 10, 0.26);
}

.storefront-mini-cart.is-open {
  transform: translateY(0);
  opacity: 1;
}

.storefront-mini-cart[hidden] {
  display: none;
}

.storefront-mini-cart.is-busy {
  opacity: 0.6;
}

.storefront-mini-cart__header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(118, 38, 59, 0.12);
}

.storefront-mini-cart__header button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.storefront-mini-cart__header button:hover {
  color: var(--wine);
}

.storefront-mini-cart__items {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 1rem;
  list-style: none;
}

.storefront-mini-cart__item {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(118, 38, 59, 0.08);
}

.storefront-mini-cart__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.storefront-mini-cart__media img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.storefront-mini-cart__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.storefront-mini-cart__name {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.storefront-mini-cart__name:hover {
  color: var(--wine);
}

.storefront-mini-cart__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.8rem;
}

.storefront-mini-cart__price {
  color: var(--wine);
  font-weight: 700;
}

.storefront-mini-cart__remove {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
  text-decoration: none;
}

.storefront-mini-cart__remove:hover {
  background: rgba(118, 38, 59, 0.08);
  color: var(--wine);
}

.storefront-mini-cart__summary {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(118, 38, 59, 0.12);
  font-size: 0.9rem;
}

.storefront-mini-cart__summary strong {
  color: var(--wine);
  font-size: 1rem;
}

.storefront-mini-cart__actions {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.storefront-mini-cart__actions .button {
  display: flex;
  width: 100%;
  justify-content: center;
}

.storefront-mini-cart__empty {
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem 1rem 1.4rem;
  text-align: center;
}

.storefront-mini-cart__empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.storefront-mini-cart__empty .button {
  justify-self: center;
}

@media (max-width: 600px) {
  .storefront-mini-cart {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80dvh;
    transform: translateY(12px);
    border-radius: 14px 14px 0 0;
  }

  .storefront-mini-cart.is-open {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-cart-toast,
  .storefront-mini-cart {
    transition: none;
  }
}

.storefront-menu-disclosure {
  position: relative;
}

.storefront-menu-disclosure > summary {
  list-style: none;
}

.storefront-menu-disclosure > summary::-webkit-details-marker {
  display: none;
}

.storefront-menu-disclosure[open] > summary {
  color: var(--wine);
}

.storefront-menu-surface {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 90;
  display: none;
  width: min(360px, calc(100vw - 1.5rem));
  border: 1px solid rgba(118, 38, 59, 0.14);
  padding: 1rem;
  background: #fffbf5;
  box-shadow: -10px 22px 46px rgba(61, 18, 29, 0.18);
}

.storefront-menu-disclosure[open] .storefront-menu-surface {
  display: grid;
  gap: 0.9rem;
}

.storefront-menu-surface__heading {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(118, 38, 59, 0.12);
  padding-bottom: 0.8rem;
}

.storefront-menu-surface__heading strong {
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.storefront-menu-surface__heading span {
  color: var(--muted);
  font-size: 0.92rem;
}

.storefront-menu-list,
.storefront-menu-sublist {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storefront-menu-item {
  display: grid;
  gap: 0.4rem;
}

.storefront-menu-item > a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(118, 38, 59, 0.08);
  padding: 0.7rem 0;
  color: var(--ink);
  font-size: 0.99rem;
  font-weight: 760;
  text-decoration: none;
}

.storefront-menu-item > a:hover,
.storefront-menu-item > a:focus-visible {
  color: var(--wine);
}

.storefront-menu-sublist {
  gap: 0;
  margin-bottom: 0.45rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(118, 38, 59, 0.1);
}

.storefront-menu-sublist .storefront-menu-item > a {
  min-height: 44px;
  border-bottom-style: dashed;
  font-size: 0.92rem;
  font-weight: 650;
}

.storefront-menu-shop {
  border: 1px solid rgba(118, 38, 59, 0.12);
  background: rgba(244, 232, 216, 0.58);
}

.storefront-menu-shop > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  color: var(--wine-dark);
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

.storefront-menu-shop > summary::-webkit-details-marker {
  display: none;
}

.storefront-menu-shop > summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.18s ease;
}

.storefront-menu-shop[open] > summary svg {
  transform: rotate(180deg);
}

.storefront-menu-shop__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  border-top: 1px solid rgba(118, 38, 59, 0.1);
  padding: 0.75rem;
}

.storefront-menu-shop__links a {
  min-height: 40px;
  border: 1px solid rgba(118, 38, 59, 0.12);
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 740;
  text-decoration: none;
}

.storefront-menu-shop__links a:hover,
.storefront-menu-shop__links a:focus-visible {
  border-color: var(--wine);
  color: var(--wine);
}

.storefront-dialog-header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 0 0.75rem;
  background: var(--surface);
  text-align: center;
}

.storefront-dialog-header strong {
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.storefront-dialog-header button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.storefront-favorites-dialog {
  padding-bottom: 1.2rem;
}

.storefront-favorites-content {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem;
}

.storefront-favorite-item {
  display: grid;
  grid-template-columns: 72px 1fr 42px;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.storefront-favorite-visual,
.storefront-favorite-placeholder {
  display: block;
  width: 72px;
  height: 88px;
  border: 1px solid rgba(118, 38, 59, 0.1);
  background:
    var(--storefront-favorite-image) center / cover no-repeat,
    linear-gradient(155deg, rgba(118, 38, 59, 0.12), rgba(255, 255, 255, 0.75)),
    var(--cream);
}

.storefront-favorite-placeholder {
  background:
    linear-gradient(160deg, rgba(118, 38, 59, 0.08), rgba(255, 255, 255, 0.85)),
    var(--cream);
}

.storefront-favorite-visual::after,
.storefront-favorite-placeholder::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(180deg, transparent 24%, rgba(61, 18, 29, 0.12));
}

.storefront-favorite-item a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.storefront-favorite-item button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-size: 1.4rem;
  cursor: pointer;
}

.storefront-favorites-dialog > .button {
  display: flex;
  width: calc(100% - 2.2rem);
  margin: 0 auto;
}

.storefront-favorites-dialog > [data-favorites-shop-link][hidden] {
  display: none;
}

/* Kept: the cart-subtotal fragment is still registered for WooCommerce, even
   though the confirmation is now a toast rather than a modal card. */
.storefront-cart-feedback-total[hidden] {
  display: none;
}

/* Shared home sections */
.storefront-home {
  overflow: clip;
}

.vegavin-search-page,
.butik-template-page {
  overflow-x: clip;
}

.storefront-section {
  padding: clamp(3rem, 7vw, 5.8rem) 0;
}

.storefront-section.is-cream {
  background: var(--cream);
}

.storefront-section.is-surface {
  background: var(--surface);
}

.storefront-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.storefront-section-head > div {
  max-width: 720px;
}

.storefront-section-head h2,
.storefront-home h1,
.storefront-home h2,
.storefront-home h3,
.storefront-product-card h3,
.storefront-archive-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
}

.storefront-section-head h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.storefront-section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.storefront-text-link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  color: var(--wine);
  font-weight: 800;
  text-decoration: none;
}

.storefront-text-link:hover {
  text-decoration: underline;
}

.storefront-home-hero {
  position: relative;
  /* Keep the gap below the sticky category nav tight on desktop. */
  padding: clamp(1.1rem, 2vw, 1.8rem) 0 clamp(1.8rem, 4vw, 3.6rem);
  background:
    linear-gradient(103deg, rgba(255, 248, 239, 0.98) 0 51%, rgba(255, 248, 239, 0.46) 71%, rgba(255, 248, 239, 0.18) 100%),
    var(--hero-image, none) center / cover no-repeat,
    var(--cream);
}

.storefront-home-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  /*
   * Top-align the columns. The media/spotlight column is taller than the copy
   * column, so centering pushed the headline far down and produced the large
   * empty band under the category nav on desktop.
   */
  align-items: start;
}

.storefront-home-hero__content {
  max-width: 620px;
}

.storefront-home-hero h1 {
  max-width: 10.5ch;
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 6vw, 4.65rem);
}

.storefront-home-hero__lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.14rem);
}

.storefront-home-hero__reassurance {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0.25rem 0 0;
  border: 1px solid rgba(63, 95, 75, 0.24);
  padding: 0.55rem 0.75rem;
  background: rgba(63, 95, 75, 0.08);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.storefront-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.storefront-home-actions .button {
  min-height: 54px;
}

.storefront-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.storefront-quick-facts li {
  display: grid;
  gap: 0.18rem;
  min-height: 88px;
  border: 1px solid rgba(118, 38, 59, 0.12);
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.82);
}

.storefront-quick-facts strong {
  color: var(--wine-dark);
  font-size: 0.95rem;
}

.storefront-quick-facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

.storefront-home-hero__store-link {
  margin-top: 1rem;
}

.storefront-home-hero__spotlight {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.storefront-visual-panel {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(118, 38, 59, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(61, 18, 29, 0.12);
  isolation: isolate;
}

.storefront-visual-panel__art {
  position: absolute;
  inset: 0;
  background:
    var(--storefront-visual-image) center / cover no-repeat,
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(135deg, rgba(118, 38, 59, 0.18), rgba(255, 248, 239, 0.85) 52%, rgba(63, 95, 75, 0.22));
}

.storefront-visual-panel__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(61, 18, 29, 0.16));
}

.storefront-visual-panel__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  max-width: min(22rem, calc(100% - 2rem));
  margin: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 251, 245, 0.88);
  box-shadow: 0 10px 24px rgba(61, 18, 29, 0.12);
  backdrop-filter: blur(10px);
}

.storefront-visual-panel__copy p,
.storefront-visual-panel__copy strong,
.storefront-visual-panel__copy span {
  margin: 0;
}

.storefront-visual-panel__copy p {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.storefront-visual-panel__copy strong {
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.08;
}

.storefront-visual-panel__copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.storefront-home-hero__media {
  min-height: 0;
}

.storefront-home-hero__media.is-hero {
  min-height: 520px;
}

.storefront-home-hero__support {
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(118, 38, 59, 0.14);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(61, 18, 29, 0.1);
}

.storefront-home-hero__support h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.storefront-home-hero__support > p:last-of-type {
  margin: 0;
  color: var(--muted);
}

.storefront-home-hero__support-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storefront-home-hero__support-list li {
  display: grid;
  gap: 0.18rem;
  border-top: 1px solid rgba(118, 38, 59, 0.12);
  padding-top: 0.7rem;
}

.storefront-home-hero__support-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.storefront-home-hero__support-list strong {
  color: var(--wine-dark);
}

.storefront-home-hero__support-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.storefront-home-hero__support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.storefront-category-grid,
.storefront-need-grid,
.storefront-editorial-grid,
.storefront-bundle-grid,
.storefront-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.storefront-category-tile,
.storefront-need-card,
.storefront-editorial-card,
.storefront-bundle-card,
.storefront-service-card {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  padding: 1.25rem;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.storefront-category-tile::before,
.storefront-need-card::before,
.storefront-bundle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(184, 137, 72, 0.26), transparent 32%),
    linear-gradient(145deg, transparent 20%, rgba(118, 38, 59, 0.08));
  pointer-events: none;
}

.storefront-category-tile:hover,
.storefront-need-card:hover,
.storefront-editorial-card:hover,
.storefront-bundle-card:hover,
.storefront-service-card:hover {
  border-color: rgba(118, 38, 59, 0.42);
  box-shadow: var(--storefront-card-shadow);
  transform: translateY(-3px);
}

.storefront-category-tile strong,
.storefront-need-card strong,
.storefront-editorial-card h3,
.storefront-bundle-card h3,
.storefront-service-card h3 {
  position: relative;
  z-index: 1;
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.storefront-category-tile span,
.storefront-need-card span,
.storefront-editorial-card p,
.storefront-bundle-card p,
.storefront-service-card p {
  position: relative;
  z-index: 1;
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.storefront-category-tile.is-accent {
  background: var(--wine-dark);
  color: #fff;
}

.storefront-category-tile.is-accent strong,
.storefront-category-tile.is-accent span {
  color: #fff;
}

.storefront-need-card {
  min-height: 160px;
  justify-content: center;
}

.storefront-bundle-card {
  min-height: 310px;
  justify-content: space-between;
}

.storefront-bundle-visual {
  position: relative;
  z-index: 1;
  display: flex;
  height: 150px;
  align-items: end;
  justify-content: center;
  gap: 0.55rem;
}

.storefront-bundle-visual i {
  display: block;
  width: 42px;
  height: 128px;
  border: 1px solid rgba(61, 18, 29, 0.2);
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(to bottom, var(--paper) 0 28%, var(--wine) 28% 72%, var(--wine-dark) 72%);
  box-shadow: 0 10px 18px rgba(61, 18, 29, 0.14);
}

.storefront-bundle-visual i:nth-child(2) {
  height: 142px;
  background: linear-gradient(to bottom, var(--paper) 0 26%, var(--brass) 26% 58%, var(--green) 58%);
}

.storefront-bundle-visual i:nth-child(3) {
  height: 120px;
  background: linear-gradient(to bottom, var(--paper) 0 28%, #d9b2a8 28% 68%, var(--wine) 68%);
}

.storefront-store-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.storefront-favorites-dialog .storefront-dialog-header {
  grid-template-columns: minmax(72px, auto) 1fr 52px;
}

.storefront-dialog-header .storefront-favorites-clear {
  width: auto;
  min-height: 44px;
  padding-inline: 0.4rem;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 800;
}

.storefront-dialog-header .storefront-favorites-clear[hidden] {
  display: block;
  visibility: hidden;
}

.storefront-store-panel__visual.is-store {
  min-height: 420px;
}

.storefront-store-details {
  display: grid;
  gap: 1rem;
}

.storefront-store-details address {
  font-style: normal;
}

.storefront-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.storefront-editorial-feature__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.storefront-editorial-feature__layout.is-reversed {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.storefront-editorial-feature__layout.is-reversed .storefront-editorial-feature__copy {
  order: 2;
}

.storefront-editorial-feature__layout.is-reversed .storefront-editorial-feature__media {
  order: 1;
}

.storefront-editorial-feature__copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.storefront-editorial-feature__copy h2,
.storefront-brand-statement h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04;
}

.storefront-editorial-feature__copy p:last-of-type,
.storefront-brand-statement p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.storefront-editorial-feature__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.storefront-editorial-feature__meta li {
  border-top: 1px solid rgba(118, 38, 59, 0.18);
  padding-top: 0.7rem;
  color: var(--wine-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.storefront-editorial-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.storefront-editorial-feature__media .storefront-visual-panel.is-editorial {
  min-height: 420px;
}

.storefront-brand-statement {
  background: linear-gradient(135deg, var(--wine-dark), #5b182b 54%, var(--wine));
  color: #fff;
}

.storefront-brand-statement .eyebrow,
.storefront-brand-statement h2,
.storefront-brand-statement p {
  color: inherit;
}

.storefront-brand-statement p:last-of-type,
.storefront-brand-statement a {
  color: rgba(255, 255, 255, 0.92);
}

.storefront-brand-statement a:hover,
.storefront-brand-statement a:focus-visible {
  color: #fff;
}

.storefront-brand-statement__inner {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.storefront-service-card {
  min-height: 190px;
  justify-content: flex-start;
}

.storefront-service-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  fill: none;
  stroke: var(--wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

/* Product collections and cards */
.storefront-carousel {
  position: relative;
}

.storefront-carousel.is-static .storefront-product-track {
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.storefront-product-track {
  display: grid;
  grid-auto-columns: minmax(245px, 1fr);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 1rem;
  padding: 0.2rem 0.1rem 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--wine) var(--cream);
}

.storefront-product-card {
  display: grid;
  grid-template-rows: clamp(210px, 24vw, 300px) 1fr;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.storefront-product-card:hover {
  box-shadow: var(--storefront-card-shadow);
  transform: translateY(-3px);
}

.storefront-product-media {
  position: relative;
  display: grid;
  height: clamp(210px, 24vw, 300px);
  place-items: center;
  overflow: hidden;
  background: #fbf5ed;
}

.storefront-product-media > a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.storefront-product-visual {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    var(--storefront-visual-image) center / cover no-repeat,
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.46), transparent 28%),
    linear-gradient(145deg, rgba(118, 38, 59, 0.2), rgba(255, 248, 239, 0.85) 56%, rgba(63, 95, 75, 0.16));
  transition: transform 0.25s ease;
}

.storefront-product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 16%, rgba(61, 18, 29, 0.2));
}

.storefront-product-visual__label {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  padding: 0.28rem 0.5rem;
  background: rgba(255, 251, 245, 0.88);
  color: var(--wine-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storefront-product-card:hover .storefront-product-visual {
  transform: scale(1.025);
}

.storefront-bottle-placeholder {
  position: relative;
  display: grid;
  width: 118px;
  height: 250px;
  place-items: end center;
}

.storefront-bottle-placeholder::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 30px;
  height: 52px;
  border-radius: 4px 4px 0 0;
  background: var(--wine-dark);
}

.storefront-bottle-placeholder::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 90px;
  height: 208px;
  border-radius: 28px 28px 18px 18px;
  background: linear-gradient(to bottom, var(--wine-dark) 0 38%, var(--paper) 38% 64%, var(--wine) 64%);
  box-shadow: 0 18px 28px rgba(61, 18, 29, 0.18);
}

.storefront-bottle-placeholder span {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 58px;
  margin-bottom: 78px;
  border: 1px solid rgba(61, 18, 29, 0.2);
  background: var(--paper);
}

.storefront-card-favorite {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine);
  box-shadow: 0 5px 14px rgba(61, 18, 29, 0.1);
  cursor: pointer;
}

.storefront-card-favorite svg {
  width: 25px;
  height: 25px;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.storefront-card-favorite.is-active svg,
.storefront-card-favorite[aria-pressed="true"] svg {
  fill: currentColor;
}

.storefront-product-copy {
  display: flex;
  min-height: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  /* Long names, producers and regions must never escape the card. */
  overflow-wrap: anywhere;
}

/* Keep the CTA anchored to the card bottom so rows stay aligned. */
.storefront-product-copy > .storefront-product-actions {
  margin-top: auto;
}

.storefront-product-origin {
  margin: 0;
}

.storefront-product-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.5rem;
  margin: 0;
}

.storefront-product-metadata div {
  display: inline-flex;
  gap: 0.25rem;
  /* min-width:0 lets the chip shrink; without it the nowrap value forces overflow. */
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(118, 38, 59, 0.12);
  padding: 0.22rem 0.42rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.storefront-product-metadata dt {
  flex: 0 0 auto;
  color: var(--wine-dark);
  font-weight: 800;
  white-space: nowrap;
}

.storefront-product-metadata dd {
  overflow: hidden;
  min-width: 0;
  flex: 0 1 auto;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-product-tier-cue {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.storefront-product-eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.storefront-product-card h3 {
  min-height: 3.48em;
  max-height: 3.48em;
  overflow: hidden;
  margin: 0;
  color: var(--wine-dark);
  font-size: 1.28rem;
  line-height: 1.16;
}

.storefront-product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.storefront-product-description {
  display: -webkit-box;
  min-height: 4.25em;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.storefront-product-price {
  margin-top: auto;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 850;
}

.storefront-product-price del {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.storefront-product-price ins {
  color: var(--wine);
  text-decoration: none;
}

.storefront-product-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 0;
  text-align: center;
}

.storefront-product-actions .added_to_cart.wc-forward {
  display: none !important;
}

.storefront-product-actions .add_to_cart_button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.storefront-product-actions .add_to_cart_button:hover,
.storefront-product-actions .add_to_cart_button:focus-visible {
  border-color: #314a39;
  background: #314a39;
  color: #fff;
}

.storefront-product-actions .button:not(.add_to_cart_button) {
  border-color: var(--wine);
  background: transparent;
  color: var(--wine);
}

.storefront-product-card.is-placeholder .button:disabled {
  border-color: var(--line);
  background: var(--cream);
  color: var(--muted);
  opacity: 1;
  cursor: not-allowed;
}

.storefront-carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--wine);
  box-shadow: 0 6px 18px rgba(61, 18, 29, 0.12);
  cursor: pointer;
}

.storefront-carousel-arrow.is-prev {
  left: -24px;
}

.storefront-carousel-arrow.is-next {
  right: -24px;
}

.storefront-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* WooCommerce catalogue */
.vegavin-catalog-page .commerce-page {
  padding-top: 0;
}

.storefront-archive-intro {
  padding: clamp(1.15rem, 3vw, 2rem) 0 0.85rem;
}

.storefront-archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.storefront-archive-hero__copy {
  max-width: 840px;
}

.storefront-archive-intro h1 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 5vw, 3.55rem);
}

@media (min-width: 761px) {
  .storefront-archive-intro h1 {
    max-width: none;
    white-space: nowrap;
  }
}

.storefront-archive-intro > p:last-child,
.storefront-archive-description {
  max-width: 60ch;
  color: var(--muted);
}

.storefront-archive-hero__actions {
  margin-top: 0.15rem;
}

.storefront-archive-shortcuts {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.storefront-archive-shortcuts::-webkit-scrollbar {
  display: none;
}

.storefront-archive-shortcuts a {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.95rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.storefront-archive-shortcuts a:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.storefront-archive-hero__aside {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.78);
}

.storefront-archive-hero__aside h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.storefront-archive-hero__aside p {
  margin: 0;
  color: var(--muted);
}

.storefront-archive-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.storefront-archive-toolbar {
  position: sticky;
  top: 185px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  margin-bottom: 1.2rem;
  border-block: 1px solid var(--line);
  padding: 0.55rem 0;
  background: rgba(255, 248, 239, 0.96);
  backdrop-filter: blur(12px);
}

.storefront-filter-open {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--wine);
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--wine);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.storefront-filter-open svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.storefront-result-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.storefront-ordering .woocommerce-ordering {
  margin: 0;
}

.storefront-ordering select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 2.3rem 0.6rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.vegavin-catalog-page ul.products,
.storefront-placeholder-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 !important;
}

.storefront-collection-empty {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 1.35rem;
  background: var(--surface);
}

.vegavin-catalog-page ul.products::before,
.vegavin-catalog-page ul.products::after {
  display: none !important;
}

.vegavin-catalog-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.vegavin-catalog-page ul.products li.product .storefront-product-card {
  height: 100%;
}

.storefront-filter-dialog form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.storefront-filter-groups {
  padding: 0 1rem 7rem;
  overflow-y: auto;
}

.storefront-filter-groups fieldset {
  display: grid;
  gap: 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 1.15rem 0;
}

.storefront-filter-groups legend {
  margin-bottom: 0.5rem;
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-weight: 700;
}

.storefront-filter-groups label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 0.6rem;
}

.storefront-filter-groups input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--wine);
}

.storefront-filter-groups .is-placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.storefront-price-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.storefront-price-filter label {
  display: grid;
  gap: 0.3rem;
}

.storefront-price-filter input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem;
  background: var(--surface);
  font: inherit;
}

.storefront-filter-submit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  min-height: 58px;
  border-radius: 0;
}

.storefront-empty-catalog {
  padding: 1.5rem 0 4rem;
}

.storefront-empty-catalog > h2,
.storefront-empty-catalog > p {
  max-width: 720px;
}

.storefront-empty-actions,
.storefront-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.storefront-filter-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.vegavin-search-grid {
  margin-top: 1rem;
}

/* Footer */
.storefront-footer {
  margin-top: 0;
  background: var(--wine-dark);
  color: #fff;
}

.storefront-footer a {
  color: #fff;
}

.storefront-footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3.2rem 0 2.5rem;
}

.storefront-footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.storefront-footer-brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 0.25rem;
  object-fit: contain;
  object-position: center;
}

.storefront-footer-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.storefront-footer-brand p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.storefront-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding: 2.5rem 0;
}

.storefront-footer-group {
  border: 0;
}

.storefront-footer-group summary {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.17rem;
  font-weight: 700;
  list-style: none;
  cursor: default;
}

.storefront-footer-group summary::-webkit-details-marker {
  display: none;
}

.storefront-footer-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.storefront-footer-links a,
.storefront-footer-links span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
}

.storefront-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.storefront-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.2rem 0 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.commerce-footer {
  margin-top: 0;
  background: var(--wine-dark);
  color: #fff;
}

.commerce-footer a {
  color: #fff;
}

.commerce-footer__inner {
  display: grid;
  gap: 1.2rem;
  padding: 2.2rem 0 2.4rem;
}

.commerce-footer__brand {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  width: fit-content;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.commerce-footer__brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0.25rem;
  object-fit: contain;
  object-position: center;
}

.commerce-footer__brand span {
  display: grid;
  gap: 0.15rem;
}

.commerce-footer__brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}

.commerce-footer__brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.commerce-footer__links,
.commerce-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 0;
}

.commerce-footer__contact {
  font-style: normal;
}

.commerce-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}

/* Bring product and checkout reference pages back into the established brand system. */
.single-product,
.vegavin-commerce-flow {
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.single-product .vegavin-product__summary .product_title,
.single-product .vegavin-product-accordion__content h2,
.single-product .vegavin-product-accordion__content h3,
.single-product .upsells > h2,
.single-product .related > h2,
.vegavin-commerce-flow h1,
.vegavin-commerce-flow h2,
.vegavin-commerce-flow h3,
.checkout-flow-header__brand,
.commerce-brand {
  font-family: Georgia, "Times New Roman", serif;
}

.single-product .commerce-promise,
.checkout-flow-header.is-cart,
.vegavin-commerce-flow .site-footer {
  background: var(--wine-dark);
}

.single-product .vegavin-product__purchase-row .single_add_to_cart_button,
.single-product .vegavin-product__purchase-row .button,
.vegavin-commerce-flow .wc-proceed-to-checkout .button,
.vegavin-checkout-navigation .button,
.vegavin-commerce-flow #place_order {
  border-color: var(--wine);
  background: var(--wine);
}

.single-product .vegavin-product__purchase-row .single_add_to_cart_button:hover,
.single-product .vegavin-product__purchase-row .single_add_to_cart_button:focus-visible,
.vegavin-commerce-flow .wc-proceed-to-checkout .button:hover,
.vegavin-checkout-navigation .button:hover,
.vegavin-commerce-flow #place_order:hover {
  background: var(--wine-dark);
}

.vegavin-back-to-top,
.vegavin-flow-back-to-top {
  background: var(--wine);
}

.legal-page-hero {
  padding: clamp(1.55rem, 4.4vw, 3.95rem) 0 1.55rem;
}

.legal-template-page .section {
  padding: clamp(1.75rem, 4.4vw, 3.6rem) 0;
}

.legal-page-header {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(1rem, 2.5vw, 1.65rem);
}

.legal-page-header .article-header-copy {
  gap: 0.8rem;
}

.legal-page-note {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border: 1px solid rgba(118, 38, 59, 0.14);
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.legal-page-note p {
  margin: 0;
  color: var(--muted);
}

.legal-page-note strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--wine-dark);
}

.legal-page-content h2:first-child {
  margin-top: 0;
}

.legal-page-content > :first-child,
.legal-page-content .article-answer:first-child,
.legal-page-content .article-intro:first-child {
  margin-top: 0;
}

.legal-page-content .article-answer,
.legal-page-content .article-intro {
  padding: 1rem 1.1rem;
}

.legal-page-content p a,
.legal-page-content li a {
  color: var(--wine);
}

.legal-owner-review {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.legal-owner-review__intro,
.legal-owner-review__section,
.legal-owner-review__contact {
  border: 1px solid rgba(118, 38, 59, 0.14);
  padding: clamp(1rem, 2.2vw, 1.45rem);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(61, 18, 29, 0.05);
}

.legal-owner-review__intro {
  border-left: 4px solid var(--brass);
}

.legal-owner-review__section h2,
.legal-owner-review__contact h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.legal-owner-review__section p,
.legal-owner-review__contact p {
  margin: 0.5rem 0 0;
}

.legal-owner-review__section ul,
.legal-owner-review__contact ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.legal-review-status {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(184, 137, 72, 0.42);
  padding: 0.32rem 0.48rem;
  background: rgba(244, 232, 216, 0.72);
  color: var(--wine-dark);
  font-size: 0.82rem;
  font-weight: 760;
}

.butik-template-page [id],
.woocommerce-account [id] {
  scroll-margin-top: calc(var(--vegavin-admin-offset) + var(--vegavin-info-bar-height) + 5rem);
}

.butik-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: stretch;
}

.butik-map-layout__intro {
  display: grid;
  align-content: start;
  gap: 1rem;
  border: 1px solid rgba(118, 38, 59, 0.14);
  border-radius: 10px;
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 232, 216, 0.84)),
    var(--surface);
  box-shadow: var(--shadow);
}

.butik-map-layout__intro h2 {
  max-width: 13ch;
}

.butik-map-layout__intro > p:last-of-type {
  margin: 0;
  color: var(--muted);
}

.butik-map-layout__facts {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.butik-map-layout__facts p {
  display: grid;
  gap: 0.24rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(118, 38, 59, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.butik-map-layout__facts strong {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.butik-map-layout__facts span {
  color: var(--ink);
  font-weight: 650;
}

.vegavin-store-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(1.15rem, 2.4vw, 1.9rem);
  align-items: stretch;
  min-height: 100%;
  border: 1px solid rgba(118, 38, 59, 0.14);
  border-radius: 10px;
  padding: clamp(1rem, 2vw, 1.45rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 245, 238, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.vegavin-store-map__copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.vegavin-store-map__copy h2 {
  max-width: 12ch;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.vegavin-store-map__copy p {
  margin: 0;
}

.vegavin-store-map__facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.vegavin-store-map__facts div {
  display: grid;
  gap: 0.18rem;
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(118, 38, 59, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.vegavin-store-map__facts dt {
  color: var(--wine-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vegavin-store-map__facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.vegavin-store-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.vegavin-store-map__note {
  color: var(--muted);
  font-size: 0.95rem;
}

.vegavin-store-map__visual {
  display: flex;
  min-width: 0;
}

.vegavin-store-map__canvas,
.vegavin-store-map__iframe {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 36vw, 460px);
  border: 1px solid rgba(118, 38, 59, 0.14);
  border-radius: 8px;
}

.vegavin-store-map__iframe {
  display: block;
  min-height: clamp(360px, 38vw, 500px);
}

.vegavin-store-map__canvas {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 137, 72, 0.16), transparent 30%),
    linear-gradient(160deg, #fffaf2, #f1e4d3 56%, #fff8ef);
}

/* Consent-safe map placeholder opens the Google Maps route in a new tab. */
.vegavin-store-map__canvas.is-clickable {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.vegavin-store-map__canvas.is-clickable:hover,
.vegavin-store-map__canvas.is-clickable:focus-visible {
  box-shadow: inset 0 0 0 2px var(--wine);
}

.vegavin-store-map__canvas.is-clickable:focus-visible {
  outline: 3px solid rgba(118, 38, 59, 0.28);
  outline-offset: 2px;
}

.vegavin-store-map__canvas.is-clickable:hover .vegavin-store-map__pin {
  transform: translateY(-2px) scale(1.04);
}

.vegavin-store-map__road {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(103, 91, 85, 0.18);
}

.vegavin-store-map__road.is-horizontal {
  width: 115%;
  height: 18px;
  transform: rotate(-13deg);
}

.vegavin-store-map__road.is-vertical {
  width: 18px;
  height: 120%;
  transform: translateX(18%) rotate(8deg);
}

.vegavin-store-map__pin {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 42px;
  border: 7px solid var(--wine);
  border-radius: 50% 50% 50% 0;
  background: var(--surface);
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px rgba(61, 18, 29, 0.18);
}

.vegavin-store-map__address {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  border: 1px solid rgba(118, 38, 59, 0.14);
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine-dark);
  font-weight: 750;
  text-align: center;
}

.woocommerce-account .woocommerce {
  display: grid;
  gap: 1.5rem;
}

.woocommerce-account .u-columns.col2-set,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  border: 1px solid var(--line);
  background: var(--surface);
}

.woocommerce-account .u-columns.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.35rem;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  min-width: 0;
}

.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account form.woocommerce-address-fields {
  border: 0;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-form-row label,
.woocommerce-account .form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.woocommerce-account input.input-text,
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="text"],
.woocommerce-account select,
.woocommerce-account textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  background: #fff;
  font: inherit;
}

.woocommerce-account .woocommerce-form-login__rememberme,
.woocommerce-account .woocommerce-form-register__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.woocommerce-account .button,
.woocommerce-account button.button {
  min-height: 48px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.woocommerce-account .woocommerce-MyAccount-content {
  padding: 1.35rem;
}

.vegavin-account-privacy-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Focus and reduced motion */
.vegavin-storefront-shell :focus-visible {
  outline: 0;
  box-shadow: var(--storefront-focus);
}

@media (max-width: 860px) {
  .legal-page-header,
  .butik-map-layout,
  .vegavin-store-map {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .u-columns.col2-set {
    grid-template-columns: 1fr;
  }

  .butik-map-layout__intro h2 {
    max-width: none;
  }

  .vegavin-store-map__copy {
    gap: 0.75rem;
  }
}

@media (max-width: 520px) {
  .vegavin-store-map__actions,
  .butik-map-layout__facts {
    display: grid;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .storefront-home-hero__layout,
  .storefront-editorial-feature__layout,
  .storefront-archive-hero {
    grid-template-columns: 1fr;
  }

  .storefront-editorial-feature__layout.is-reversed .storefront-editorial-feature__copy,
  .storefront-editorial-feature__layout.is-reversed .storefront-editorial-feature__media {
    order: initial;
  }

  .storefront-editorial-feature__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-category-grid,
  .storefront-need-grid,
  .storefront-editorial-grid,
  .storefront-bundle-grid,
  .storefront-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vegavin-catalog-page ul.products,
  .storefront-placeholder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storefront-store-panel {
    grid-template-columns: 1fr;
  }

  .storefront-store-panel__visual.is-store {
    min-height: 360px;
  }

  .storefront-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vegavin-storefront-shell {
    --storefront-promise-height: 38px;
  }

  .storefront-header-main {
    grid-template-columns: minmax(70px, 1fr) auto;
    min-height: 70px;
  }

  .storefront-brand {
    gap: 0;
  }

  .storefront-brand-mark {
    width: 66px;
    height: 66px;
  }

  .storefront-actions {
    gap: 0;
  }

  .storefront-action {
    min-width: 48px;
    min-height: 48px;
    font-size: 0.64rem;
  }

  .storefront-action svg {
    width: 24px;
    height: 24px;
  }

  .storefront-search {
    min-height: 46px;
  }

  .storefront-search button {
    min-width: 64px;
    padding-inline: 0.75rem;
  }

  .storefront-search-suggestions {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .storefront-category-track {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }

  .storefront-section-head {
    align-items: start;
    flex-direction: column;
  }

  .storefront-home-hero {
    padding-top: 2.4rem;
    background:
      linear-gradient(rgba(255, 248, 239, 0.92), rgba(255, 248, 239, 0.94)),
      var(--hero-image, none) center / cover no-repeat,
      var(--cream);
  }

  .storefront-home-hero__layout,
  .storefront-quick-facts {
    grid-template-columns: 1fr;
  }

  .storefront-home-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .storefront-home-hero__media.is-hero {
    min-height: 420px;
  }

  .storefront-editorial-feature__media .storefront-visual-panel.is-editorial {
    min-height: 320px;
  }

  .storefront-category-grid,
  .storefront-need-grid,
  .storefront-editorial-grid,
  .storefront-bundle-grid,
  .storefront-service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .storefront-category-tile,
  .storefront-need-card {
    min-height: 150px;
  }

  .storefront-product-track {
    grid-auto-columns: minmax(235px, 78vw);
  }

  .storefront-carousel-arrow {
    display: none;
  }

  .storefront-archive-toolbar {
    top: 178px;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .storefront-result-count {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .storefront-ordering {
    display: flex;
    justify-content: flex-end;
  }

  .storefront-ordering select {
    width: 100%;
  }

  .vegavin-catalog-page ul.products,
  .storefront-placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-footer-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .commerce-footer__links,
  .commerce-footer__contact,
  .commerce-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .storefront-footer-group summary {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    padding-right: 2rem;
    cursor: pointer;
  }

  .storefront-footer-group summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 1.4rem;
  }

.storefront-footer-group[open] summary::after {
    content: "-";
  }

  .storefront-footer-links {
    padding-bottom: 1.1rem;
  }
}

@media (min-width: 761px) {
  .storefront-footer-group[open] .storefront-footer-links,
  .storefront-footer-group:not([open]) .storefront-footer-links {
    display: grid;
  }
}

@media (max-width: 520px) {
  .vegavin-storefront-shell {
    --storefront-promise-height: 42px;
  }

  .storefront-promise__inner {
    gap: 0.15rem 0.75rem;
  }

  .storefront-header-main,
  .storefront-search-wrap {
    width: calc(100% - 24px);
  }

  .storefront-actions .storefront-action:nth-child(2) {
    display: none;
  }

  .storefront-brand-mark {
    width: 58px;
    height: 58px;
  }

  .storefront-search {
    grid-template-columns: 30px minmax(0, 1fr) 52px;
  }

  .storefront-search > svg {
    width: 25px;
    height: 25px;
    margin-left: 0.65rem;
  }

  .storefront-search button {
    display: inline-flex;
    min-width: 52px;
    padding-inline: 0.55rem;
  }

  .storefront-section {
    padding: 3rem 0;
  }

  .storefront-category-grid,
  .storefront-need-grid,
  .storefront-editorial-grid,
  .storefront-bundle-grid,
  .storefront-service-grid {
    grid-template-columns: 1fr;
  }

  .storefront-home-actions {
    display: grid;
  }

  .storefront-home-actions .button {
    width: 100%;
  }

  .storefront-home-hero__spotlight,
  .storefront-archive-hero__aside {
    padding: 1rem;
  }

  .storefront-editorial-feature__meta {
    grid-template-columns: 1fr;
  }

  .storefront-editorial-feature__actions {
    display: grid;
  }

  .storefront-editorial-feature__actions .button {
    width: 100%;
  }

  .vegavin-catalog-page ul.products,
  .storefront-placeholder-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .storefront-product-card h3 {
    min-height: 2.65em;
    font-size: 1.08rem;
  }

  .storefront-product-copy {
    padding: 0.75rem;
  }

  .vegavin-catalog-page ul.products li.product .storefront-product-card,
  .storefront-placeholder-grid .storefront-product-card {
    grid-template-columns: minmax(116px, 36%) minmax(0, 1fr);
    grid-template-rows: minmax(208px, auto);
  }

  .storefront-product-description {
    display: none;
  }

  .vegavin-catalog-page ul.products li.product .storefront-product-media,
  .storefront-placeholder-grid .storefront-product-media {
    height: 100%;
    min-height: 208px;
    aspect-ratio: auto;
  }

  .storefront-product-metadata {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-product-metadata div {
    width: fit-content;
    max-width: 100%;
  }

  .storefront-bottle-placeholder {
    transform: scale(0.8);
  }

  .storefront-product-actions .button {
    min-height: 44px;
    padding-inline: 0.45rem;
    font-size: 0.78rem;
  }

  .storefront-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .storefront-footer-bottom {
    flex-direction: column;
  }

  .commerce-footer__brand {
    grid-template-columns: 56px 1fr;
  }

  .commerce-footer__brand img {
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   Article recommendations, Vinfinder band and motion preferences.
   Kept here (not style.css) so the theme stylesheet stays inside the CI size
   budget. All four stylesheets are enqueued globally, so behaviour is
   unchanged; source order is preserved by the explicit media queries below.
   ========================================================================== */

.article-product-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}

/* Category/next-step cards: readable min width, equal heights, CTA at bottom. */
.article-product-module .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: stretch;
}

.article-product-module .card-grid .card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.article-product-module .card-grid .card h4 {
  margin: 0;
  line-height: 1.2;
}

.article-product-module .card-grid .card p {
  overflow-wrap: break-word;
}

.article-product-module .card-grid .card p:last-child {
  margin-top: auto;
  padding-top: 0.55rem;
}

/* Premium editorial recommendation cards. */
.article-product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(48, 24, 17, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.article-product-card:hover,
.article-product-card:focus-within {
  border-color: var(--wine);
  box-shadow: 0 16px 34px rgba(61, 18, 29, 0.12);
  transform: translateY(-2px);
}

.article-product-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.article-product-card-copy h4 a {
  color: var(--ink);
  text-decoration: none;
}

.article-product-card-copy h4 a:hover,
.article-product-card-copy h4 a:focus-visible {
  color: var(--wine);
  text-decoration: underline;
}

.article-product-category {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-product-price {
  color: var(--wine-dark);
  font-weight: 800;
}

.article-product-card-copy > p:last-child {
  margin-top: auto;
  padding-top: 0.5rem;
}

.article-product-card-copy .button {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.article-product-card .vegavin-product-origin {
  margin: 0;
}

/* Preserve the stacked mobile card from style.css (this file loads later). */
@media (max-width: 760px) {
  .article-product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .article-product-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* Vinfinder intro band: burgundy CTA treatment, scoped to that page. */
.wine-finder-page-intro {
  background: var(--wine-dark);
  color: #fff;
}

.wine-finder-page-intro .eyebrow,
.wine-finder-page-intro h1,
.wine-finder-page-intro h2,
.wine-finder-page-intro h3,
.wine-finder-page-intro p,
.wine-finder-page-intro li,
.wine-finder-page-intro strong {
  color: #fff;
}

.wine-finder-page-intro a:not(.button) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wine-finder-page-intro .button {
  border-color: #fff;
  background: #fff;
  color: var(--wine-dark);
}

.wine-finder-page-intro .button.secondary {
  background: transparent;
  color: #fff;
}

.wine-finder-page-intro .button:hover,
.wine-finder-page-intro .button:focus-visible {
  background: var(--cream);
  color: var(--wine-dark);
}

/* Respect reduced-motion for the card hover lifts. */
@media (prefers-reduced-motion: reduce) {
  .article-product-card,
  .card,
  .storefront-product-card {
    transition: none;
  }

  .article-product-card:hover,
  .article-product-card:focus-within,
  .storefront-product-card:hover {
    transform: none;
  }
}
