/* =========================================================
   ZANARDI PRESTIGE — PREMIUM & ACCESSIBILITY OVERRIDES
   Inspired by babylonstyle.it & elisabettafranchi.com
   Luxury Italian fashion B2B wholesale aesthetic
   WCAG 2.1 AA compliance
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   --------------------------------------------------------- */
:root {
  /* Monochrome Luxury Palette */
  --z-black: #000000;
  --z-charcoal: #141616;
  --z-charcoal-soft: #2c2c2c;
  --z-dark-gray: #3a3a3a;
  --z-mid-gray: #a8a8a8;
  --z-light-gray: #eaeaea;
  --z-off-white: #f7f7f5;
  --z-white: #ffffff;

  /* Accent — restrained gold, used sparingly */
  --z-gold: #b8973b;
  --z-gold-light: #d4b76a;
  --z-gold-dark: #96792e;

  /* Functional */
  --z-text-primary: #141616;
  --z-text-secondary: #555555;
  --z-text-muted: #767676;
  --z-border: #eaeaea;
  --z-border-hover: #000000;
  --z-sale: #d00a26;

  /* Flat design — no shadows (EF-inspired), borders instead */
  --z-shadow-subtle: none;
  --z-shadow-hover: 0 0 0 1px var(--z-mid-gray);
  --z-shadow-active: 0 0 0 2px var(--z-black);

  /* Pill buttons (both sites use border-radius: 100px) */
  --z-radius-pill: 100px;
  --z-radius-none: 0;

  /* 8px spacing grid (EF-inspired) */
  --z-space-1: 8px;
  --z-space-2: 16px;
  --z-space-3: 24px;
  --z-space-4: 32px;
  --z-space-5: 40px;
  --z-space-6: 48px;
  --z-space-8: 64px;
  --z-space-10: 80px;
  --z-space-12: 96px;

  /* Focus Ring (Accessibility) */
  --z-focus-color: #5e9ed6;
  --z-focus-ring: 0 0 0 3px #5e9ed6;

  /* Transitions — material-style easing (EF-inspired) */
  --z-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --z-ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --z-duration: 0.3s;
  --z-duration-fast: 0.2s;
  --z-duration-slow: 0.5s;

  /* Touch target minimum (WCAG 2.5.5) */
  --z-touch-min: 44px;
}

/* ---------------------------------------------------------
   2. GLOBAL TYPOGRAPHY — LIGHT & ELEGANT
   Babylon: font-weight 300, EF: 14px base, restrained sizing
   --------------------------------------------------------- */
body {
  color: var(--z-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.7;
  font-size: 15px;
}

/* Heading hierarchy via size, not style (EF approach) */
.Heading {
  letter-spacing: 0.1em;
  line-height: 1.25;
  font-weight: 400;
}

.u-h1 { letter-spacing: 0.04em; font-weight: 400; }
.u-h2 { letter-spacing: 0.06em; font-weight: 400; }
.u-h3 { letter-spacing: 0.08em; }
.u-h4, .u-h5, .u-h6 { letter-spacing: 0.12em; font-weight: 500; }
.u-h7, .u-h8 { letter-spacing: 0.14em; font-weight: 500; font-size: 11px; }

/* Paragraph readability */
.Rte p {
  line-height: 1.8;
  margin-bottom: 1.2em;
  font-weight: 400;
}

/* ---------------------------------------------------------
   3. ACCESSIBILITY — FOCUS STATES
   --------------------------------------------------------- */

/* Thick focus ring for visibility (elderly-friendly) */
:focus-visible {
  outline: 3px solid var(--z-focus-color) !important;
  outline-offset: 2px !important;
}

:focus:not(:focus-visible) {
  outline: none !important;
}

/* Skip to content */
.PageSkipLink {
  position: fixed !important;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: var(--z-black);
  color: var(--z-white);
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--z-radius-pill) var(--z-radius-pill);
  transition: top var(--z-duration-fast) var(--z-ease);
}

.PageSkipLink:focus {
  top: 0 !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Touch targets */
@media (pointer: coarse) {
  a, button, input, select, textarea,
  .Link, .Button, .RoundButton,
  [data-action], [role="button"] {
    min-height: var(--z-touch-min);
    min-width: var(--z-touch-min);
  }

  .Linklist__Item a {
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Subdued text — ensure readable contrast */
.Text--subdued {
  opacity: 1 !important;
  color: var(--z-text-secondary) !important;
}

/* ---------------------------------------------------------
   4. ANNOUNCEMENT BAR
   --------------------------------------------------------- */
.AnnouncementBar {
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 400;
  padding: 12px 20px;
}

.AnnouncementBar a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color var(--z-duration-fast) var(--z-ease);
}

.AnnouncementBar a:hover {
  border-bottom-color: rgba(255,255,255,0.9);
}

/* ---------------------------------------------------------
   5. HEADER — MINIMAL LUXURY
   Babylon: 80px height, 13px nav, 500 weight
   EF: centered logo, clean horizontal layout
   --------------------------------------------------------- */
.Header {
  transition: all var(--z-duration) var(--z-ease);
}

.Header__Wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* No shadow on sticky — just a thin border (flat design) */
.Header[data-sticky="true"],
.Header.Header--sticky {
  box-shadow: none;
  border-bottom: 1px solid var(--z-border);
}

.Header__LogoImage {
  transition: opacity var(--z-duration) var(--z-ease);
}

/* Navigation — 13px, weight 500, clean underline hover */
.Header__MainNav .Heading {
  font-size: 13px;
  font-weight: 500;
}

.Header__MainNav .HorizontalList__Item > a {
  position: relative;
  padding-bottom: 6px;
  transition: color var(--z-duration-fast) var(--z-ease);
}

.Header__MainNav .HorizontalList__Item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--z-black);
  transition: width var(--z-duration) var(--z-ease),
              left var(--z-duration) var(--z-ease);
}

.Header__MainNav .HorizontalList__Item > a:hover::after,
.Header__MainNav .HorizontalList__Item.is-active > a::after {
  width: 100%;
  left: 0;
}

.Header__CartDot {
  background-color: var(--z-black) !important;
}

/* Mobile header */
@media screen and (max-width: 1007px) {
  .Header__Wrapper {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .Header__Icon {
    min-width: var(--z-touch-min);
    min-height: var(--z-touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .Header__LogoImage {
    max-height: 36px;
    width: auto;
  }
}

/* ---------------------------------------------------------
   6. MEGA MENU — FLAT, CLEAN
   --------------------------------------------------------- */
.MegaMenu {
  box-shadow: none;
  border-top: 1px solid var(--z-black);
  animation: megaMenuReveal var(--z-duration) var(--z-ease);
}

@keyframes megaMenuReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.MegaMenu__Title {
  color: var(--z-text-primary);
  border-bottom: 1px solid var(--z-border);
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}

.DropdownMenu {
  box-shadow: none;
  border: 1px solid var(--z-border);
  border-top: 1px solid var(--z-black);
}

/* ---------------------------------------------------------
   7. SLIDESHOW / HERO
   EF: gradient overlay with 0.7 opacity, swiper-style
   Babylon: 100vh, video-capable
   --------------------------------------------------------- */
.Slideshow { position: relative; }

/* Rich gradient overlay (EF-inspired) */
.Image--contrast::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  ) !important;
  opacity: 0.7;
}

/* Content entrance */
.Slideshow__Content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--z-ease-out),
              transform 0.8s var(--z-ease-out);
}

.Slideshow__Slide.is-selected .Slideshow__Content {
  opacity: 1;
  transform: translateY(0);
}

/* Heading — readable weight, wide tracking */
.Slideshow .SectionHeader__Heading {
  font-weight: 400;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.Slideshow .SectionHeader__SubHeading {
  letter-spacing: 0.25em;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: var(--z-space-2);
}

/* Page dots — minimal bars */
.Slideshow .flickity-page-dots .dot {
  width: 28px;
  height: 2px;
  border-radius: 1px;
  margin: 0 4px;
  opacity: 0.35;
  transition: all var(--z-duration) var(--z-ease);
}

.Slideshow .flickity-page-dots .dot.is-selected {
  opacity: 1;
  width: 48px;
}

@media screen and (max-width: 640px) {
  .Slideshow__Content { padding: var(--z-space-3) var(--z-space-2); }

  .Slideshow .SectionHeader__Heading {
    font-size: 26px !important;
    line-height: 1.2;
  }

  .Slideshow .SectionHeader__SubHeading {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

/* ---------------------------------------------------------
   8. BUTTONS — PILL SHAPE (Both sites)
   Babylon: pill, black/white inversion
   EF: border-radius 100px, 600 weight, cubic-bezier
   --------------------------------------------------------- */
.Button {
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: var(--z-radius-pill);
  transition: all var(--z-duration-fast) var(--z-ease);
  position: relative;
  overflow: hidden;
  min-height: var(--z-touch-min);
  text-transform: uppercase;
}

/* Primary: black bg, white text — inverts on hover */
.Button--primary,
.Button[type="submit"] {
  background: var(--z-black);
  color: var(--z-white);
  border: 1.5px solid var(--z-black);
}

.Button--primary:hover,
.Button[type="submit"]:hover {
  background: var(--z-white);
  color: var(--z-black);
}

/* Secondary: white bg, black border — inverts on hover */
.Button--secondary {
  border: 1.5px solid var(--z-black);
  background: var(--z-white);
  color: var(--z-black);
}

.Button--secondary:hover {
  background: var(--z-black);
  color: var(--z-white);
}

/* Hero buttons — glass pill */
.Slideshow .Button {
  border: 1.5px solid var(--z-white);
  color: var(--z-white);
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.Slideshow .Button:hover {
  background: var(--z-white);
  color: var(--z-black);
  border-color: var(--z-white);
}

/* Mobile buttons */
@media screen and (max-width: 640px) {
  .Button {
    padding: 14px 24px;
    font-size: 11px;
    width: 100%;
    text-align: center;
  }

  .ButtonGroup {
    flex-direction: column;
    gap: 10px;
  }

  .ButtonGroup__Item { width: 100%; }
}

/* ---------------------------------------------------------
   9. PRODUCT CARDS — FLAT BORDER HOVER
   Babylon: shadow 0 0 0 1px #a8a8a8, hover 0 0 0 3px #000
   EF: flat, no shadow, hover reveals CTA
   --------------------------------------------------------- */
.ProductItem {
  transition: none;
}

.ProductItem__Wrapper {
  position: relative;
  box-shadow: 0 0 0 1px var(--z-border);
  transition: box-shadow var(--z-duration-fast) var(--z-ease);
}

@media (hover: hover) {
  .ProductItem__Wrapper:hover {
    box-shadow: 0 0 0 2px var(--z-black);
  }
}

.ProductItem__ImageWrapper {
  overflow: hidden;
  border-radius: 0;
}

.ProductItem__ImageWrapper img {
  transition: transform 0.6s var(--z-ease);
}

@media (hover: hover) {
  .ProductItem__ImageWrapper:hover img {
    transform: scale(1.03);
  }
}

/* Labels — minimal pill badges */
.ProductItem__Label {
  background: var(--z-black);
  color: var(--z-white);
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: var(--z-radius-pill);
  text-transform: uppercase;
}

/* Product title — clean, no-serif (Babylon: Arsenal 14px) */
.ProductItem__Title {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.ProductItem__Title a {
  text-decoration: none;
  transition: color var(--z-duration-fast) var(--z-ease);
}

.ProductItem__Title a:hover {
  color: var(--z-text-secondary);
}

.ProductItem__Price {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.Price--highlight {
  color: var(--z-sale) !important;
  font-weight: 400;
}

.Price--compareAt {
  text-decoration: line-through;
  color: var(--z-text-muted);
}

@media screen and (max-width: 640px) {
  .ProductItem__Title { font-size: 12px; margin-top: 10px; }
  .ProductItem__Info { padding: 0 4px; }
}

/* ---------------------------------------------------------
   10. SECTION HEADERS
   --------------------------------------------------------- */
.SectionHeader {
  margin-bottom: var(--z-space-6);
}

.SectionHeader__Heading {
  position: relative;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.06em;
}

.SectionHeader__Description {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: var(--z-text-secondary);
  line-height: 1.8;
  font-weight: 400;
  font-size: 15px;
  margin-top: 14px;
}

@media screen and (max-width: 640px) {
  .SectionHeader__Heading {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------
   11. COLLECTION GRID — FLAT HOVER
   --------------------------------------------------------- */
.CollectionItem {
  overflow: hidden;
  border-radius: 0;
  position: relative;
  transition: opacity var(--z-duration) var(--z-ease);
}

@media (hover: hover) {
  .CollectionItem:hover {
    opacity: 0.92;
  }

  .CollectionItem:hover img {
    transform: scale(1.04);
  }
}

.CollectionItem img {
  transition: transform 0.7s var(--z-ease);
}

.CollectionItem__Content {
  letter-spacing: 0.16em;
  font-weight: 500;
  font-size: 13px;
}

/* ---------------------------------------------------------
   12. NEWSLETTER — MINIMAL
   --------------------------------------------------------- */
.Newsletter .Form__Input {
  border: 1px solid var(--z-border);
  border-radius: 0;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 400;
  min-height: 48px;
  transition: border-color var(--z-duration-fast) var(--z-ease);
}

.Newsletter .Form__Input:focus {
  border-color: var(--z-black);
}

.Newsletter .Form__Submit {
  border-radius: var(--z-radius-pill);
  min-height: var(--z-touch-min);
  background: var(--z-black);
  color: var(--z-white);
  border: 1.5px solid var(--z-black);
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: all var(--z-duration-fast) var(--z-ease);
}

.Newsletter .Form__Submit:hover {
  background: var(--z-white);
  color: var(--z-black);
}

/* ---------------------------------------------------------
   13. FOOTER — LUXURY MINIMAL
   --------------------------------------------------------- */
.Footer {
  padding-top: var(--z-space-12);
  padding-bottom: var(--z-space-5);
  position: relative;
}

/* Thin gold line accent at top */
.Footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--z-gold);
}

.Footer__Title {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}

.Footer__Title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--z-gold);
}

.Footer--center .Footer__Title::after {
  left: 50%;
  transform: translateX(-50%);
}

.Footer .Linklist__Item {
  margin-bottom: 6px;
}

.Footer .Linklist__Item a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--z-duration-fast) var(--z-ease),
              padding-left var(--z-duration-fast) var(--z-ease);
}

@media (hover: hover) {
  .Footer .Linklist__Item a:hover {
    color: var(--z-white);
    padding-left: 4px;
  }
}

.Footer__Copyright {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.Footer__Aside {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--z-space-3);
  margin-top: var(--z-space-5);
}

/* Footer newsletter */
.Footer__Newsletter .Form__Input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  color: inherit;
  padding: 14px 18px;
  font-weight: 400;
  min-height: 48px;
  transition: border-color var(--z-duration-fast) var(--z-ease);
}

.Footer__Newsletter .Form__Input:focus {
  border-color: var(--z-white);
}

.Footer__Newsletter .Form__Input::placeholder {
  color: rgba(255,255,255,0.4);
}

.Footer__Newsletter .Form__Submit {
  background: var(--z-white);
  color: var(--z-black);
  border: none;
  border-radius: var(--z-radius-pill);
  min-height: var(--z-touch-min);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 11px;
  transition: all var(--z-duration-fast) var(--z-ease);
}

.Footer__Newsletter .Form__Submit:hover {
  background: var(--z-gold);
  color: var(--z-white);
}

@media screen and (max-width: 640px) {
  .Footer {
    padding-top: var(--z-space-8);
    text-align: center;
  }

  .Footer__Title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .Footer__Block { margin-bottom: var(--z-space-5); }

  .Footer .Linklist__Item a {
    padding: 8px 0;
    display: inline-block;
  }
}

/* ---------------------------------------------------------
   14. SEARCH MODAL — LIGHT OVERLAY
   --------------------------------------------------------- */
.Search {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.Search__Input {
  font-size: 32px !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--z-border) !important;
  transition: border-color var(--z-duration-fast) var(--z-ease);
  min-height: var(--z-touch-min);
}

.Search__Input:focus {
  border-bottom-color: var(--z-black) !important;
}

@media screen and (max-width: 640px) {
  .Search__Input { font-size: 20px !important; }
}

/* ---------------------------------------------------------
   15. SIDEBAR MENU (MOBILE)
   --------------------------------------------------------- */
.SidebarMenu {
  padding: var(--z-space-5) var(--z-space-3);
}

.SidebarMenu .Linklist__Item {
  border-bottom: 1px solid var(--z-border);
}

.SidebarMenu .Linklist__Item > a {
  padding: 16px 0;
  min-height: var(--z-touch-min);
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------
   16. CART DRAWER
   --------------------------------------------------------- */
.Drawer {
  box-shadow: none;
  border-left: 1px solid var(--z-border);
}

.Drawer__Header {
  border-bottom: 1px solid var(--z-border);
  padding: var(--z-space-3);
}

.CartItem {
  padding: var(--z-space-3) 0;
  border-bottom: 1px solid var(--z-border);
}

.CartItem__Image {
  border-radius: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------
   17. FORM ELEMENTS
   --------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  min-height: 48px;
  border-radius: 0;
  border: 1px solid var(--z-border);
  font-weight: 400;
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--z-duration-fast) var(--z-ease);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--z-black);
  outline: none;
}

.QuantitySelector__Button {
  min-width: var(--z-touch-min);
  min-height: var(--z-touch-min);
}

/* ---------------------------------------------------------
   18. PAGE TRANSITIONS
   --------------------------------------------------------- */
.PageTransition { background: var(--z-black); }
.LoadingBar { background: var(--z-black); height: 1px; }

/* ---------------------------------------------------------
   19. SCROLL-REVEAL ANIMATIONS
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .shopify-section {
    opacity: 0;
    transform: translateY(20px);
    animation: sectionReveal 0.6s var(--z-ease-out) forwards;
  }

  .shopify-section--header,
  .shopify-section--announcement {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .shopify-section:nth-child(2) { animation-delay: 0.1s; }
  .shopify-section:nth-child(3) { animation-delay: 0.15s; }
  .shopify-section:nth-child(4) { animation-delay: 0.2s; }
  .shopify-section:nth-child(5) { animation-delay: 0.25s; }
}

@keyframes sectionReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------
   20. IMAGE TREATMENT
   --------------------------------------------------------- */
.AspectRatio {
  overflow: hidden;
  border-radius: 0;
}

.Image--lazyLoaded {
  animation: imageFadeIn 0.4s var(--z-ease) forwards;
}

@keyframes imageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------
   21. LIGHTBOX
   --------------------------------------------------------- */
.ZanardiLightbox {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ZanardiLightbox__Close {
  width: var(--z-touch-min);
  height: var(--z-touch-min);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--z-duration-fast) var(--z-ease);
}

.ZanardiLightbox__Close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ZanardiLightbox__Counter {
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------
   22. POPUP / MODAL
   --------------------------------------------------------- */
.Popup {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--z-border);
}

/* ---------------------------------------------------------
   23. COLOR SWATCH — ACCESSIBLE
   --------------------------------------------------------- */
.ColorSwatch {
  min-width: 28px;
  min-height: 28px;
  border: 1px solid var(--z-border);
  border-radius: 50%;
  transition: border-color var(--z-duration-fast) var(--z-ease),
              box-shadow var(--z-duration-fast) var(--z-ease);
}

.ColorSwatch:hover,
.ColorSwatch__Radio:checked + .ColorSwatch {
  border-color: var(--z-black);
  box-shadow: 0 0 0 2px var(--z-black);
}

/* ---------------------------------------------------------
   24. PRODUCT PAGE
   --------------------------------------------------------- */
.Product__Info {
  padding-top: var(--z-space-3);
}

.Product__Info .ProductMeta__Title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.Product__Info .ProductMeta__Price {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Larger variant selector buttons for easier tapping */
.ProductForm__Item {
  min-height: 52px;
  padding: 14px 18px;
  font-size: 15px;
}

.ProductForm__AddToCart {
  min-height: 56px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Color swatch — always show text label alongside swatch circle */
.ProductForm__ColorSwatch {
  min-width: 32px;
  min-height: 32px;
}

.ProductForm__SelectedValue {
  font-size: 14px;
  font-weight: 500;
}

/* Quantity selector — larger buttons */
.QuantitySelector--large {
  font-size: 16px;
}

.QuantitySelector__CurrentQuantity {
  min-width: 52px;
  font-size: 16px;
  text-align: center;
}

/* Variant selector choices — larger text */
.VariantSelector__ChoiceValue {
  font-size: 14px;
  font-weight: 500;
}

.Popover__Value {
  min-height: 48px;
  font-size: 14px !important;
  padding: 12px 16px;
}

@media screen and (max-width: 640px) {
  .Product__Info .ProductMeta__Title { font-size: 22px; }
  .Product__Info .ProductMeta__Price { font-size: 18px; }
  .Product__Info { padding: var(--z-space-3) var(--z-space-2); }
  .ProductForm__AddToCart { min-height: 52px; }
}

/* ---------------------------------------------------------
   25. FAQ ACCORDION
   --------------------------------------------------------- */
.Faq__Item {
  border-bottom: 1px solid var(--z-border);
}

.Faq__Question {
  padding: var(--z-space-3) 0;
  min-height: var(--z-touch-min);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   26. PAGINATION
   --------------------------------------------------------- */
.Pagination__NavItem {
  min-width: var(--z-touch-min);
  min-height: var(--z-touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 400;
  font-size: 15px;
  transition: all var(--z-duration-fast) var(--z-ease);
}

.Pagination__NavItem:hover {
  background: var(--z-off-white);
}

.Pagination__NavItem.is-active {
  background: var(--z-black);
  color: var(--z-white);
}

/* ---------------------------------------------------------
   27. CONTAINER SPACING
   --------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .Container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media screen and (min-width: 641px) and (max-width: 1007px) {
  .Container {
    padding-left: var(--z-space-4) !important;
    padding-right: var(--z-space-4) !important;
  }
}

/* ---------------------------------------------------------
   28. TESTIMONIALS
   --------------------------------------------------------- */
.Testimonial {
  padding: var(--z-space-5);
  position: relative;
}

.Testimonial::before {
  content: '\201C';
  font-size: 72px;
  color: var(--z-black);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  opacity: 0.12;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.Testimonial__Content {
  font-style: italic;
  line-height: 1.9;
  font-size: 17px;
  font-weight: 400;
}

/* ---------------------------------------------------------
   29. IMAGE WITH TEXT
   --------------------------------------------------------- */
.ImageWithText { gap: var(--z-space-5); }

@media screen and (max-width: 640px) {
  .ImageWithText__Content { padding: var(--z-space-3) 0; }
}

/* ---------------------------------------------------------
   30. ALERTS
   --------------------------------------------------------- */
.Alert--success {
  background: #f0f9f4;
  color: #1b7340;
  border-left: 2px solid #1b7340;
  padding: 14px 18px;
}

.Alert--error {
  background: #fef2f2;
  color: var(--z-sale);
  border-left: 2px solid var(--z-sale);
  padding: 14px 18px;
}

/* ---------------------------------------------------------
   31. SCROLLBAR — THIN
   --------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--z-off-white); }
::-webkit-scrollbar-thumb { background: var(--z-mid-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--z-dark-gray); }

/* ---------------------------------------------------------
   32. SELECTION
   --------------------------------------------------------- */
::selection { background: var(--z-black); color: var(--z-white); }
::-moz-selection { background: var(--z-black); color: var(--z-white); }

/* ---------------------------------------------------------
   33. ELDERLY-FRIENDLY ACCESSIBILITY ENHANCEMENTS
   Larger text, better contrast, clearer interactions
   --------------------------------------------------------- */

/* Form labels — larger, bolder for readability */
.Form__FloatingLabel,
label,
.ContactForm__Label,
.LoginForm__Label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Placeholder text — darker for readability */
::placeholder {
  color: #888 !important;
  opacity: 1;
}

/* Links — always underlined for discoverability (except nav) */
.Rte a,
.Footer .Linklist__Item a,
.Form__Hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumb — larger for elderly */
.Breadcrumb,
.Breadcrumb a {
  font-size: 13px;
}

/* Color swatch text label — always visible (don't rely on color alone) */
.VariantSelector__ChoiceColor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.VariantSelector__ColorSwatch {
  min-width: 32px;
  min-height: 32px;
}

/* Ensure selected swatch has thick visible ring */
.VariantSelector__Choice.is-selected .VariantSelector__ColorSwatch {
  box-shadow: 0 0 0 3px var(--z-black);
}

/* Larger accordion tap targets */
.Faq__Question {
  min-height: 52px;
  font-size: 15px;
}

/* Announcement bar — slightly larger text */
.AnnouncementBar {
  font-size: 12px;
  padding: 14px 20px;
}

/* Error and success alerts — clearer */
.Alert--error,
.Alert--success {
  font-size: 14px;
  font-weight: 500;
  padding: 16px 20px;
}

/* Ensure subdued/muted text meets WCAG AA 4.5:1 ratio */
.Text--subdued {
  color: #555 !important;
}

/* Larger cart item text */
.CartItem__Title {
  font-size: 14px;
  font-weight: 500;
}

.CartItem__Price {
  font-size: 14px;
}

/* Larger nav text for easier reading */
.Header__MainNav .Heading {
  font-size: 14px;
}

/* Mobile nav items — bigger tap targets */
@media screen and (max-width: 1007px) {
  .SidebarMenu .Linklist__Item > a {
    padding: 18px 0;
    font-size: 15px;
  }
}

/* Zoom-friendly: don't break layout at 200% zoom */
@media (min-resolution: 192dpi) {
  body {
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
   34. PRINT
   --------------------------------------------------------- */
@media print {
  .AnnouncementBar, .Header__Icon, .PageOverlay,
  .PageTransition, .LoadingBar { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
}


/* =========================================================
   DESIGN POLISH — SECTIONS 21-32
   Product card overlays, pack badges, breadcrumbs,
   scroll header, page transitions, checkout polish
   ========================================================= */

/* ---------------------------------------------------------
   21. PRODUCT CARD — HOVER IMAGE ZOOM + VIEW OVERLAY
   --------------------------------------------------------- */
.ProductItem__ImageWrapper {
  cursor: pointer;
}

.ProductItem__ImageWrapper img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
  will-change: transform;
}

.ProductItem__Link:hover .ProductItem__ImageWrapper img:first-child {
  transform: scale(1.04);
}

.ProductItem__ImageWrapper::after {
  content: 'VIEW';
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 8px 20px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.ProductItem__Link:hover .ProductItem__ImageWrapper::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------
   22. PACK-OF-3 BADGE
   --------------------------------------------------------- */
.ProductItem__PackBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.12);
  color: #555;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.is-wholesale .ProductItem__PackBadge {
  background: #b8973b;
  border-color: #b8973b;
  color: #fff;
}

/* ---------------------------------------------------------
   23. BREADCRUMBS
   --------------------------------------------------------- */
.woocommerce .woocommerce-breadcrumb,
.Breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
  padding: 20px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #eaeaea;
}

.woocommerce .woocommerce-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: #000;
}

/* ---------------------------------------------------------
   24. SCROLL-AWARE STICKY HEADER
   --------------------------------------------------------- */
.Header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.Header[data-scrolled="true"] .Header__LogoImage {
  max-height: 28px;
}

/* ---------------------------------------------------------
   25. PAGE FADE-IN TRANSITION
   --------------------------------------------------------- */
@keyframes zanardiFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.Container,
.woocommerce.single-product div.product {
  animation: zanardiFadeIn 0.4s cubic-bezier(0.0, 0, 0.2, 1) both;
}

/* ---------------------------------------------------------
   26. TWO-COLUMN CHECKOUT LAYOUT
   --------------------------------------------------------- */
@media (min-width: 1008px) {
  .woocommerce-checkout #customer_details {
    width: 58%;
    float: left;
    padding-right: 48px;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    width: 42%;
    float: right;
  }

  .woocommerce-checkout #order_review_heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .woocommerce-checkout form.woocommerce-checkout::after {
    content: '';
    display: table;
    clear: both;
  }
}

/* ---------------------------------------------------------
   27. FORM FIELD POLISH (checkout / account)
   --------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #eaeaea;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  color: #141616;
  background: #fff;
  transition: border-color 0.2s;
  appearance: none;
}

.woocommerce form .form-row textarea {
  height: auto;
  padding-top: 14px;
  padding-bottom: 14px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: #000;
}

.woocommerce form .form-row label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #767676;
  display: block;
  margin-bottom: 8px;
}

.woocommerce form .form-row .required {
  color: #d00a26;
}

/* ---------------------------------------------------------
   28. WHOLESALE PACK PRICE DISPLAY
   --------------------------------------------------------- */
.zanardi-pack-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0;
  padding: 14px 16px;
  background: #faf6ee;
  border-left: 3px solid #b8973b;
}

.zanardi-pack-info__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8973b;
  white-space: nowrap;
}

.zanardi-pack-info__value {
  font-size: 17px;
  font-weight: 400;
  color: #141616;
}

.zanardi-pack-info__sub {
  font-size: 11px;
  color: #767676;
  margin-left: auto;
}

/* ---------------------------------------------------------
   29. FREE SHIPPING PROGRESS BAR POLISH
   --------------------------------------------------------- */
.zanardi-shipping-progress {
  border: 1px solid #eaeaea;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #f7f7f5;
}

.zanardi-shipping-progress p {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

/* ---------------------------------------------------------
   30. MY ACCOUNT SIDEBAR
   --------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 1px solid #eaeaea;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid #eaeaea;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #767676;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: #000;
  padding-left: 8px;
}

/* ---------------------------------------------------------
   31. PRINT
   --------------------------------------------------------- */
@media print {
  .Header, .AnnouncementBar, .Footer,
  .woocommerce-tabs, .related.products, .upsells.products {
    display: none !important;
  }
  .Product__Wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  body { font-size: 12pt; color: #000; }
}
