/* =====================================================================
   Il Garage del Vino: catalogo e card prodotto (archivi WooCommerce).
   ---------------------------------------------------------------------
   Riferimento: mockups/catalogo.html. Markup di Blocksy (loop classico
   di WooCommerce) e di inc/shop.php; comportamenti in assets/js/theme.js.
   ===================================================================== */

:root {
  --gdv-i-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
  --gdv-i-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E");
  --gdv-i-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  --gdv-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --gdv-i-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E");
}

/* ---------- Intestazione, breadcrumb, introduzione -------------------- */
[data-prefix="woo_categories"] .hero-section[data-type="type-2"] {
  --container-padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}
[data-prefix="woo_categories"] .hero-section .page-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
}
/* La descrizione della categoria va sotto il breadcrumb (inc/shop.php) */
[data-prefix="woo_categories"] .hero-section .page-description {
  display: none;
}

.gdv-cat-intro {
  max-width: 760px;
  margin-inline: auto;
  padding: 2.25rem var(--gdv-gut, 1.5rem) 0;
  text-align: center;
}
.gdv-cat-intro__text > * {
  margin: 0;
}
.gdv-cat-intro__text > * + * {
  margin-top: 0.8rem;
}
.gdv-cat-intro__text > :first-child {
  color: var(--c-ink);
  font-weight: 500;
}
.gdv-cat-intro__text > :not(:first-child) {
  color: var(--c-text-soft);
}
.gdv-cat-intro.is-collapsed .gdv-cat-intro__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.gdv-cat-intro__more {
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

/* ---------- Barra: filtri e ordinamento ------------------------------- */
.gdv-shop-bar {
  padding-top: 1.75rem;
}
.gdv-shop-bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  width: var(--theme-container-width, min(100%, 90vw));
  max-width: var(--theme-normal-container-max-width, 1440px);
  margin-inline: auto;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
}
.gdv-filters-toggle,
.gdv-filters-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-weight: 500;
  cursor: pointer;
}
.gdv-filters-toggle::before,
.gdv-filters-open::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--gdv-i-sliders) center / contain no-repeat;
  mask: var(--gdv-i-sliders) center / contain no-repeat;
}
.gdv-filters-open {
  display: none;
  white-space: nowrap;
}
/* L'icona di Blocksy accanto all'ordinamento (su mobile) è un doppione della freccia del menu */
.gdv-shop-bar__sort .woocommerce-ordering > svg {
  display: none;
}
.gdv-shop-bar__sort .woocommerce-ordering {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}
.gdv-shop-bar__sort select {
  height: auto;
  padding: 0.35rem 1.75rem 0.35rem 0.25rem;
  border: 0;
  background-color: transparent;
  color: var(--c-ink);
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Colonne: filtri a sinistra (250 px) e griglia ------------- */
[data-prefix="woo_categories"] #main .ct-container[data-vertical-spacing*="top"] {
  padding-top: 1.75rem;
}
@media (min-width: 1000px) {
  [data-prefix="woo_categories"] #main [data-sidebar="left"] {
    --grid-template-columns: 250px minmax(0, 1fr);
    --sidebar-gap: 2rem;
  }
  /* "Nascondi i filtri": griglia a tutta larghezza con 5 colonne */
  body.gdv-filters-hidden[data-prefix="woo_categories"] #main [data-sidebar="left"] {
    --grid-template-columns: minmax(0, 1fr);
  }
  body.gdv-filters-hidden[data-prefix="woo_categories"] #main [data-sidebar="left"] > #sidebar {
    display: none;
  }
  body.gdv-filters-hidden[data-prefix="woo_categories"] #main ul.products {
    --shop-columns: repeat(5, minmax(0, 1fr));
  }
  /* Filtri fissi: restano in vista sotto l'header mentre si scorre la griglia; se sono più alti
     dello schermo scorrono da soli (--gdv-header-h da theme.js) */
  [data-prefix="woo_categories"] #sidebar .ct-sidebar {
    position: sticky;
    top: calc(var(--admin-bar, 0px) + var(--gdv-header-h, 0px) + 1.25rem);
    max-height: calc(100vh - var(--admin-bar, 0px) - var(--gdv-header-h, 0px) - 2.5rem);
    padding-right: 0.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--c-grey-2) transparent;
  }
}

.woo-listing-top {
  display: block;
  margin-bottom: 0;
}
.gdv-results-count {
  margin: 0 0 1.25rem;
  color: var(--c-ink);
  font-size: 1.15rem;
}

/* Filtri attivi (chip) */
.gdv-chips ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: -0.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.gdv-chips li {
  margin: 0;
}
.gdv-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
}
.gdv-chips a::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: var(--gdv-i-close) center / contain no-repeat;
  mask: var(--gdv-i-close) center / contain no-repeat;
}
.gdv-chips a:hover {
  background: var(--c-accent);
  color: var(--c-on-accent);
}

/* ---------- Box della cantina (scheda prodotto) e intestazione delle pagine cantina (inc/brand.php) */
.gdv-maker__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.gdv-maker__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  object-fit: cover;
}
.gdv-maker__card {
  position: relative;
  z-index: 1;
  margin-left: -12%;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.3);
}
.gdv-maker__card:only-child {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
}
.gdv-section .gdv-maker__card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}
/* .gdv-maker: nella scheda prodotto il box è anche .gdv-section, che azzera i margini dei paragrafi;
   nella pagina della cantina c'è quello di Blocksy sotto */
.gdv-maker .gdv-maker__text > * {
  margin-block: 0;
}
.gdv-maker .gdv-maker__text > * + * {
  margin-top: 0.8rem;
}
/* Testi lunghi: chiusi dopo qualche riga con "Leggi di più" (theme.js; senza JS si vede tutto) */
.gdv-maker__text.is-collapsed {
  max-height: 15rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.gdv-maker__more {
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.gdv-section .gdv-maker__cta {
  margin-top: 1.5rem;
}
.gdv-maker--hero {
  margin: 1.5rem 0 clamp(2.5rem, 5vw, 3.5rem);
}
.gdv-maker--hero .gdv-maker__img {
  aspect-ratio: 16 / 10;
}
/* Cantina senza foto: la scheda prende tutta la larghezza */
.gdv-maker--hero .gdv-maker__card:only-child {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
.gdv-maker--hero .gdv-maker__text {
  max-width: 70ch;
}
.gdv-maker__img--logo {
  padding: 12%;
  background: #fff;
  object-fit: contain;
}
.gdv-maker--hero h1 {
  margin-bottom: 1rem;
  color: var(--c-ink);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}
/* Zona e vini in catalogo: scheda della pagina della cantina (gdv-facts) e box della scheda prodotto
   (gdv-maker__facts, perché nella scheda gdv-facts è la griglia dei dati del vino) */
:is(.gdv-facts, .gdv-maker__facts) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0 0 1.5rem;
}
:is(.gdv-facts, .gdv-maker__facts) dt {
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}
:is(.gdv-facts, .gdv-maker__facts) dd {
  margin: 0;
  color: var(--c-ink);
  font-weight: 600;
}
.gdv-maker--hero .gdv-facts:last-child {
  margin-bottom: 0;
}

/* Pagine cantina: titolo della griglia, numero dei vini e ordinamento sulla stessa riga, 5 colonne,
   altre cantine */
.gdv-brand-wines-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}
.gdv-brand-page .woo-listing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.gdv-brand-page .woo-listing-top .gdv-results-count,
.gdv-brand-page .woo-listing-top .woocommerce-ordering {
  margin: 0;
}
.gdv-brand-page .woocommerce-ordering select {
  width: auto;
  min-width: 200px;
}
.gdv-other-brands {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.gdv-other-brands .gdv-section-title {
  margin: 0;
}
.gdv-other-brands .gdv-link-more {
  margin: 0;
}
.gdv-brand-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.gdv-brand-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--c-ink);
  text-decoration: none;
}
.gdv-brand-link:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-ink);
  color: var(--c-ink);
}
.gdv-brand-link__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--c-paper);
}
.gdv-brand-link__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.gdv-brand-link__initial {
  color: var(--c-accent-text);
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 800;
}
.gdv-brand-link strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.gdv-brand-link strong + span {
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.75rem;
}
@media (min-width: 1000px) {
  .gdv-brand-page #main ul.products {
    --shop-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Pagina Le cantine: indice delle lettere e cantine dalla A alla Z ([gdv_cantine], inc/brand.php) */
.gdv-section .gdv-brands-intro {
  max-width: 70ch;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}
.gdv-brands-az__nav {
  position: sticky;
  top: calc(var(--admin-bar, 0px) + var(--gdv-header-h, 0px));
  z-index: 5;
  margin-bottom: 1.5rem;
  padding-block: 0.6rem;
  background: var(--c-bg);
}
.gdv-brands-az__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gdv-brands-az__nav a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: #fff;
  color: var(--c-ink);
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}
.gdv-brands-az__nav a:hover {
  background: var(--c-ink);
  color: #fff;
}
.gdv-brands-az__group + .gdv-brands-az__group {
  margin-top: 2rem;
}
.gdv-section .gdv-brands-az__group h2 {
  margin-bottom: 0.9rem;
  color: var(--c-accent-text);
  font-size: 2rem;
  scroll-margin-top: 4rem;
}
/* Su mobile: lettere su una riga che scorre, cantine su due colonne più compatte */
@media (max-width: 689.98px) {
  .gdv-brands-az__nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gdv-brands-az__nav li {
    flex: none;
  }
  .gdv-brands-az .gdv-brand-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .gdv-brands-az .gdv-brand-link {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.45rem;
  }
  .gdv-brands-az .gdv-brand-link strong {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }
  .gdv-brands-az .gdv-brand-link__initial {
    font-size: 1.4rem;
  }
}
@media (max-width: 999.98px) {
  .gdv-brand-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .gdv-maker__grid {
    grid-template-columns: 1fr;
  }
  .gdv-maker__card {
    margin: -3rem 1rem 0;
  }
}
@media (max-width: 560px) {
  .gdv-brand-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Filtri (sidebar) ------------------------------------------ */
[data-prefix="woo_categories"] #sidebar .ct-sidebar {
  --sidebar-widgets-spacing: 0px;
}
#sidebar .gdv-filters-title {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}
#sidebar .ct-widget {
  margin: 0;
}
#sidebar .ct-widget + .ct-widget {
  margin-top: 0;
}
#sidebar .widget_layered_nav,
#sidebar .widget_price_filter {
  border-bottom: 1px solid var(--c-ink);
}
#sidebar .widget_layered_nav .widget-title,
#sidebar .widget_price_filter .widget-title {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
}
.gdv-acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gdv-acc-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.is-open > .widget-title .gdv-acc-toggle::after {
  transform: rotate(-135deg);
}
/* Chiusi: resta visibile solo il titolo (senza JS restano tutti aperti) */
.gdv-acc-ready:not(.is-open) > :not(.widget-title) {
  display: none;
}

#sidebar .woocommerce-widget-layered-nav-list,
#sidebar [class*="wc-brand-list-layered-nav"] {
  max-height: 240px;
  margin: 0;
  padding: 0 0.25rem 0.9rem 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}
#sidebar .wc-layered-nav-term {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.22rem 0;
  font-size: 0.92rem;
}
#sidebar .wc-layered-nav-term a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.55rem;
  color: var(--c-text);
  text-decoration: none;
}
#sidebar .wc-layered-nav-term a::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--c-grey-2);
  border-radius: 3px;
  background: #fff;
}
#sidebar .wc-layered-nav-term a:hover {
  color: var(--c-accent-text);
}
#sidebar .wc-layered-nav-term.chosen a {
  color: var(--c-ink);
  font-weight: 600;
}
#sidebar .wc-layered-nav-term.chosen a::before {
  border-color: var(--c-accent);
  background: var(--gdv-i-check-white) center / 12px no-repeat var(--c-accent);
}
#sidebar .wc-layered-nav-term .count {
  margin-left: auto;
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.75rem;
}

/* Prezzo */
#sidebar .price_slider_wrapper {
  padding: 0.5rem 0.25rem 1rem;
}
#sidebar .price_slider {
  margin: 0.5rem 0.4rem 1rem;
}
#sidebar .ui-slider {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--c-line);
}
#sidebar .ui-slider .ui-slider-range {
  position: absolute;
  height: 100%;
  background: var(--c-accent);
}
#sidebar .ui-slider .ui-slider-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translateY(-50%);
  cursor: grab;
}
#sidebar .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}
#sidebar .price_slider_amount .button {
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r);
  background: var(--c-ink);
  color: #fff;
  font-size: 0.85rem;
}
#sidebar .price_slider_amount .button:hover {
  background: var(--c-accent);
}

/* ---------- Card prodotto (loop classico) ------------------------------ */
ul.products {
  column-gap: 1.5rem;
  row-gap: 2.25rem;
}
ul.products li.product {
  display: flex;
  flex-direction: column;
  text-align: center;
}
ul.products li.product figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
}
/* Riquadro della foto con proporzioni fisse (3/4; sui touch 2/3, più sotto), uguale in tutte le card della
   fila: le bottiglie scontornate stanno intere con un margine bianco (in basso lo spazio per i pulsanti),
   le foto verticali (gdv-foto-intera, inc/cards.php) riempiono tutto il riquadro come su culinaries.fr.
   La foto è posizionata sopra il riquadro e il margine bianco è il padding della foto (object-fit lavora
   dentro il padding): così l'altezza del riquadro viene solo da aspect-ratio. Con la foto nel flusso e il
   padding sul riquadro, Safari su iPhone (13/11/2026) calcolava height: 100% sull'altezza intera del
   riquadro: le card delle bottiglie scontornate si allungavano e la foto si ingrandiva. */
ul.products li.product figure .ct-media-container {
  --gdv-card-pad-b: 3.9rem;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  padding: 0;
}
ul.products li.product figure img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100% !important;
  padding: 1rem 1rem var(--gdv-card-pad-b);
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
/* Foto intere: a tutto riquadro (la seconda foto perde la classe con Blocksy, resta data-gdv-foto) */
ul.products li.product figure img:is(.gdv-foto-intera, [data-gdv-foto="intera"]) {
  padding: 0;
  object-fit: cover !important;
}
/* Etichette sulla foto, uguali nelle card, nella scheda prodotto (Blocksy: .onsale, .out-of-stock-badge)
   e nei caroselli a blocchi (sections.css): minuscolo, monospazio, a pillola; "offerta" senape,
   "esaurito" verde scuro. Se ci sono tutte e due, "esaurito" va sotto "offerta". */
:is(ul.products li.product, .ct-product-gallery-container) :is(.onsale, .out-of-stock-badge) {
  --gdv-badge-gap: 0.7rem;
  top: var(--gdv-badge-gap);
  left: var(--gdv-badge-gap);
  right: auto;
  z-index: 2;
  height: auto;
  min-height: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: lowercase;
}
:is(ul.products li.product, .ct-product-gallery-container) .out-of-stock-badge {
  background: var(--c-ink);
  color: #fff;
}
:is(ul.products li.product figure, .ct-product-gallery-container):has(.onsale) .out-of-stock-badge {
  top: calc(var(--gdv-badge-gap) + 1.65rem);
}
/* .single-product .woocommerce-product-gallery: la regola sopra, con ul.products li.product, è più specifica */
.single-product .woocommerce-product-gallery .ct-product-gallery-container :is(.onsale, .out-of-stock-badge) {
  --gdv-badge-gap: 1.25rem;
  /* Con le miniature a sinistra (migrazione 041) Blocksy sposta l'etichetta oltre la loro colonna */
  left: var(--badge-left, var(--gdv-badge-gap));
  font-size: 0.8rem;
}

/* "Aggiungi al carrello" sopra la foto (subito dopo la figura nel markup) */
ul.products li.product .ct-woo-card-actions {
  position: relative;
  z-index: 2;
  margin: calc(-40px - 0.75rem) 0.75rem 0.75rem;
}
ul.products li.product .ct-woo-card-actions[data-add-to-cart] > * {
  opacity: 1;
  visibility: visible;
  transform: none;
}
ul.products li.product .ct-woo-card-actions .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: var(--r);
  background: var(--c-ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
ul.products li.product .ct-woo-card-actions .button:hover {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
/* Esauriti: "Leggi di più" in chiaro */
ul.products li.product.outofstock .ct-woo-card-actions .button {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text-soft);
}
ul.products li.product.outofstock .ct-woo-card-actions .button:hover {
  color: var(--c-ink);
}
ul.products li.product .added_to_cart {
  display: none;
}

/* Cantina, nome, prezzo. Cantina più grande e nome del vino più piccolo (richiesta del cliente del
   16/11/2026), uguali nelle card dei blocchi (sections.css) e nel carosello del carrello (checkout.css) */
ul.products li.product .entry-meta {
  justify-content: center;
  margin: 0.9rem 0 0;
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
}
ul.products li.product .entry-meta a {
  color: var(--c-text-soft);
  text-decoration: none;
}
ul.products li.product .entry-meta a:hover {
  color: var(--c-accent-text);
  text-decoration: underline;
}
ul.products li.product .woocommerce-loop-product__title {
  margin: 0.3rem 0 0;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.05;
}
ul.products li.product .woocommerce-loop-product__title a {
  color: var(--c-ink);
  text-decoration: none;
}
ul.products li.product .woocommerce-loop-product__title a:hover {
  color: var(--c-accent-text);
}
ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.35rem;
  margin-top: 0.5rem;
  color: var(--c-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
ul.products li.product .price ins {
  order: -1;
  text-decoration: none;
}
ul.products li.product .price del {
  color: var(--c-text-soft);
  font-size: 0.85rem;
  font-weight: 400;
}
/* Sul telefono cantine, nomi e prezzi più piccoli, nel catalogo e nelle card dei blocchi (sections.css) */
@media (max-width: 689.98px) {
  ul.products li.product .entry-meta,
  .gdv-section .gdv-pcard__producer {
    font-size: 0.875rem;
  }
  ul.products li.product .woocommerce-loop-product__title,
  .gdv-section .gdv-pcard__name {
    font-size: 1.1rem;
  }
  ul.products li.product .price,
  .gdv-section .gdv-pcard__price {
    font-size: 0.9rem;
  }
  ul.products li.product .price del,
  .gdv-pcard__price del {
    font-size: 0.78rem;
  }
}

/* Prezzo per i professionisti nelle card (catalogo e blocchi prodotti, inc/b2b.php): prezzo in rosso
   con la nota sull'IVA, sotto "Al pubblico" in piccolo */
.gdv-b2b--card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.gdv-b2b--card .gdv-b2b__now {
  color: var(--c-accent-text);
  font-weight: 700;
}
.gdv-b2b--card .gdv-b2b__now :is(ins, .amount) {
  color: inherit;
  text-decoration: none;
}
.gdv-b2b--card .gdv-b2b__now small {
  color: var(--c-text-soft);
  font-size: 0.75rem;
  font-weight: 500;
}
.gdv-b2b--card .gdv-b2b__public,
.gdv-b2b--card .gdv-b2b__public :is(del, ins, .amount) {
  color: var(--c-text-soft);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Tessera "Area professionisti" nella griglia */
ul.products li.gdv-promo-tile {
  display: flex;
}
li.gdv-promo-tile > a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--c-ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
}
li.gdv-promo-tile > a:hover {
  background: var(--c-ink-dark);
  color: #fff;
}
.gdv-promo-tile__pre {
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
li.gdv-promo-tile strong {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
}
.gdv-promo-tile__btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Paginazione ------------------------------------------------- */
.ct-pagination {
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.ct-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
}
.ct-pagination .page-numbers:hover {
  background: #fff;
}
.ct-pagination .page-numbers.current {
  background: var(--c-ink);
  color: #fff;
}

/* ---------- Mobile e tablet: filtri in un pannello laterale ------------- */
.gdv-filters-close {
  display: none;
}
.gdv-scrim {
  display: none;
}
@media (max-width: 999.98px) {
  .gdv-filters-toggle {
    display: none;
  }
  .gdv-filters-open {
    display: inline-flex;
  }
  [data-prefix="woo_categories"] #sidebar.ct-hidden-sm,
  [data-prefix="woo_categories"] #sidebar.ct-hidden-md {
    display: block !important;
  }
  [data-prefix="woo_categories"] #sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1001;
    width: min(380px, 88vw);
    padding: 1.25rem 1.25rem 2rem;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  body.gdv-filters-open #sidebar {
    transform: none;
  }
  .gdv-filters-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--c-ink);
    cursor: pointer;
  }
  .gdv-filters-close::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--gdv-i-close) center / contain no-repeat;
    mask: var(--gdv-i-close) center / contain no-repeat;
  }
  body.gdv-filters-open .gdv-scrim {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    background: rgba(0, 0, 0, 0.45);
  }
  body.gdv-filters-open {
    overflow: hidden;
  }
}

@media (max-width: 689.98px) {
  .gdv-shop-bar__in {
    padding-inline: 1rem;
  }
  .gdv-shop-bar__sort .woocommerce-ordering > span {
    display: none;
  }
  ul.products {
    column-gap: 1rem;
    row-gap: 1.75rem;
  }
  ul.products li.product .ct-woo-card-actions {
    margin: calc(-36px - 0.5rem) 0.5rem 0.5rem;
  }
  ul.products li.product .ct-woo-card-actions .button {
    min-height: 36px;
    padding: 0.35rem 0.4rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  ul.products li.product figure .ct-media-container {
    --gdv-card-pad-b: 3.3rem;
  }
}

/* ---------- Strumenti delle card (inc/cards.php), catalogo e blocchi dei pattern ---------- */
/* Cuore e sotto la lente (anteprima), in alto a destra della foto */
.gdv-card-tools {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.gdv-card-tools .gdv-wish-btn,
.gdv-quick-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
}
.gdv-card-tools .gdv-wish-btn::before {
  width: 18px;
  height: 18px;
}
.gdv-quick-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--gdv-i-zoom) center / contain no-repeat;
  mask: var(--gdv-i-zoom) center / contain no-repeat;
}
.gdv-quick-btn:hover,
.gdv-quick-btn:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent-text);
}
/* Con il mouse compaiono al passaggio sulla card (il cuore acceso resta) */
@media (hover: hover) {
  .gdv-card-tools > :not([aria-pressed="true"]) {
    opacity: 0;
    transform: translateX(6px);
  }
  :is(li.product, .wc-block-product):is(:hover, :focus-within) .gdv-card-tools > * {
    opacity: 1;
    transform: none;
  }
}

/* ×1 ×3 ×6 al posto di "Aggiungi al carrello", come culinaries.fr: a riposo sulla foto non c'è nessun
   pulsante, al passaggio del mouse compaiono i tre (o "Aggiungi al carrello"/"Leggi tutto" per i
   prodotti senza, es. esauriti); sugli schermi touch, dove il passaggio non c'è, i tre restano in vista */
.gdv-qty-add {
  display: flex;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.25);
}
.gdv-qty-add .gdv-qty-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 40px;
  margin: 0;
  padding: 0.45rem 0.25rem;
  border: 0;
  border-radius: 0;
  background: var(--c-ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.gdv-qty-add .gdv-qty-btn:hover,
.gdv-qty-add .gdv-qty-btn:focus-visible {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.gdv-qty-add .gdv-qty-btn small {
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 400;
}
/* Al passaggio il pulsante diventa senape: il -5% passa al verde scuro, altrimenti sparirebbe */
.gdv-qty-add .gdv-qty-btn:is(:hover, :focus-visible) small {
  background: var(--c-ink);
  color: #fff;
}
.gdv-qty-add .gdv-qty-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}
.gdv-qty-add .gdv-qty-btn.added::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--gdv-i-check-white) center / contain no-repeat;
}
.gdv-qty-add .added_to_cart {
  display: none;
}
:is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-add {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}
li.product:has(figure > .gdv-qty-add:not(.gdv-qty-add--single)) .ct-woo-card-actions,
.gdv-pcard__media:has(> .gdv-qty-add:not(.gdv-qty-add--single)) .gdv-pcard__btn {
  display: none;
}
@media (hover: hover) {
  /* Con il mouse i prodotti a una bottiglia tengono "Aggiungi al carrello" al posto del solo ×1 */
  :is(figure, .gdv-pcard__media) > .gdv-qty-add--single {
    display: none;
  }
  :is(li.product, .wc-block-product):is(:hover, :focus-within) :is(figure, .gdv-pcard__media) > .gdv-qty-add {
    visibility: visible;
    opacity: 1;
  }
  ul.products li.product .ct-woo-card-actions,
  .gdv-pcard__btn {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
  ul.products li.product:is(:hover, :focus-within) .ct-woo-card-actions,
  .wc-block-product:is(:hover, :focus-within) .gdv-pcard__btn {
    visibility: visible;
    opacity: 1;
  }
}
/* Sugli schermi touch, come culinaries.fr: in basso a destra della foto un tastino senape con la borsa
   (gdv-qty-toggle, inc/cards.php); un tocco apre ×1 ×3 ×6 in colonna sopra di lui e la borsa diventa
   una ×, un altro tocco, un tocco fuori o l'aggiunta al carrello li richiudono (theme.js). Anche i
   prodotti a una bottiglia (solo ×1). Sui touch la card non ha il cuore (la lista dei desideri resta
   nella scheda e nell'anteprima) e la foto è più alta, così la colonna ci sta */
.gdv-qty-toggle,
.gdv-notify-btn {
  display: none;
}
@media (hover: none) {
  li.product:has(figure > :is(.gdv-qty-add--single, .gdv-notify-btn)) .ct-woo-card-actions,
  .gdv-pcard__media:has(> :is(.gdv-qty-add--single, .gdv-notify-btn)) .gdv-pcard__btn {
    display: none;
  }
  /* Esauriti: al posto di "Leggi tutto" un tastino bianco con la campanella, nello stesso punto della
     borsa, che porta al modulo "Avvisami" della scheda */
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-notify-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--c-line), 0 2px 8px rgba(47, 58, 41, 0.12);
    color: var(--c-ink);
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-notify-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--gdv-i-bell) center / contain no-repeat;
    mask: var(--gdv-i-bell) center / contain no-repeat;
  }
  .gdv-card-tools .gdv-wish-btn--card {
    display: none;
  }
  ul.products li.product figure .ct-media-container,
  .gdv-pcard__media .wc-block-components-product-image a {
    --gdv-card-pad-b: 3rem;
    aspect-ratio: 2 / 3;
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-toggle {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 2px 8px rgba(47, 58, 41, 0.2);
    color: var(--c-on-accent);
    cursor: pointer;
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-toggle::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--gdv-i-bag) center / contain no-repeat;
    mask: var(--gdv-i-bag) center / contain no-repeat;
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-toggle[aria-expanded="true"] {
    background: var(--c-ink);
    color: #fff;
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-toggle[aria-expanded="true"]::before {
    width: 14px;
    height: 14px;
    -webkit-mask-image: var(--gdv-i-close);
    mask-image: var(--gdv-i-close);
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-add {
    left: auto;
    right: 0.75rem;
    bottom: calc(0.75rem + 40px + 0.35rem);
    flex-direction: column;
    width: 40px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(47, 58, 41, 0.2);
    transform: scaleY(0.6);
    transform-origin: center bottom;
    transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-toggle[aria-expanded="true"] + .gdv-qty-add {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-add .gdv-qty-btn {
    flex: none;
    min-height: 38px;
    padding: 0;
    font-size: 0.85rem;
  }
}
@media (hover: none) and (prefers-reduced-motion: reduce) {
  :is(ul.products li.product figure, .gdv-pcard__media) > .gdv-qty-add {
    transform: none;
  }
}

/* Seconda foto al passaggio del mouse, come culinaries.fr: entra scorrendo da destra sopra la prima, che
   intanto sfuma, e all'uscita torna indietro scoprendo la prima, già in vista. La seconda non sfuma mai.
   Nel catalogo è quella di Blocksy (.ct-swap; Blocksy le cambierebbe di colpo), nei blocchi
   img.gdv-pcard__swap (inc/cards.php); posizione e margini interni vengono dalle regole della prima
   (shop.css e sections.css, foto posizionata a tutto riquadro). Il riquadro della foto taglia
   quello che esce. Solo con il mouse: sui touch resta la prima. */
ul.products li.product figure img.ct-swap {
  /* .ct-swap viene prima della foto principale: senza z-index la prima, mentre sfuma (opacity sotto 1,
     quindi un nuovo livello), le passerebbe sopra e la seconda sembrerebbe comparire in dissolvenza.
     Etichette (2), strumenti (3) e pulsanti (2) restano sopra. Nei blocchi la seconda viene dopo: non serve. */
  z-index: 1;
}
.gdv-pcard__media .gdv-pcard__swap {
  opacity: 0;
}
@media (hover: hover) {
  :is(ul.products li.product figure img.ct-swap, .gdv-pcard__media .gdv-pcard__swap) {
    opacity: 1;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.45s cubic-bezier(0, 0, 0.2, 1);
  }
  :is(li.product, .wc-block-product):hover :is(figure img.ct-swap, .gdv-pcard__media .gdv-pcard__swap:not([data-src])) {
    transform: none;
  }
  /* La prima sfuma mentre la seconda entra; all'uscita torna subito, sotto la seconda che scorre via
     (la dissolvenza è solo nella regola del passaggio; "none" a riposo toglie quella di Blocksy, opacity e
     transform 0.5s, che varrebbe anche all'uscita) */
  :is(ul.products li.product figure img.ct-swap + img, .gdv-pcard__media img:has(+ .gdv-pcard__swap)) {
    transition: none;
  }
  :is(li.product, .wc-block-product):hover :is(figure img.ct-swap + img, .gdv-pcard__media img:has(+ .gdv-pcard__swap:not([data-src]))) {
    opacity: 0;
    transition: opacity 0.45s ease;
  }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  :is(ul.products li.product figure img.ct-swap, .gdv-pcard__media .gdv-pcard__swap) {
    transition: none;
  }
}

/* ---------- Anteprima del prodotto (lente, finestra di theme.js) -------- */
.gdv-qv-dialog {
  width: min(960px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}
.gdv-qv-dialog::backdrop {
  background: rgba(31, 39, 27, 0.55);
}
html.gdv-qv-open {
  overflow: hidden;
}
.gdv-qv-close {
  position: sticky;
  top: 0.75rem;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0.75rem 0.75rem -52px 0;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
}
.gdv-qv-close::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--gdv-i-close) center / contain no-repeat;
  mask: var(--gdv-i-close) center / contain no-repeat;
}
.gdv-qv-close:hover {
  border-color: var(--c-accent);
  color: var(--c-accent-text);
}
.gdv-qv-loading {
  margin: 0;
  padding: 4rem 2rem;
  color: var(--c-text-soft);
  text-align: center;
}
/* Bozza mentre arrivano i dati (theme.js): foto, cantina, nome e prezzo della card, poi la riga che pulsa */
.gdv-qv.is-loading .gdv-qv-loading {
  padding: 1.25rem 0 0;
  font-size: 0.9rem;
  text-align: left;
  animation: gdv-qv-wait 0.9s ease-in-out infinite alternate;
}
@keyframes gdv-qv-wait {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gdv-qv.is-loading .gdv-qv-loading {
    animation: none;
  }
}
.gdv-qv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.gdv-qv__media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--c-paper);
}
.gdv-qv__main {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.gdv-qv__main.gdv-foto-intera {
  object-fit: cover;
  mix-blend-mode: normal;
  border-radius: var(--r-md, 10px);
}
.gdv-qv__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gdv-qv__thumb {
  width: 64px;
  height: 64px;
  padding: 0.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
}
.gdv-qv__thumb[aria-pressed="true"] {
  border-color: var(--c-ink);
}
.gdv-qv__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gdv-qv__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2.5rem 2rem 2rem;
}
.gdv-qv__info > * {
  margin: 0;
}
.gdv-qv__brand {
  font-family: var(--f-mono);
  font-size: 0.85rem;
}
.gdv-qv__brand a {
  color: var(--c-text-soft);
  text-decoration: none;
}
.gdv-qv__brand a:hover {
  color: var(--c-accent-text);
  text-decoration: underline;
}
.gdv-qv__title {
  padding-right: 2.5rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}
.gdv-qv__price {
  color: var(--c-ink);
  font-size: 1.35rem;
  font-weight: 700;
}
.gdv-qv__price del {
  color: var(--c-text-soft);
  font-size: 1rem;
  font-weight: 400;
}
.gdv-qv__price ins {
  text-decoration: none;
}
.gdv-qv__info .stock {
  font-size: 0.9rem;
}
.gdv-qv__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  width: 100%;
  padding: 1rem 0;
  border-block: 1px solid var(--c-line);
}
.gdv-qv__facts dt {
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.75rem;
}
.gdv-qv__facts dd {
  margin: 0;
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.gdv-qv__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--c-text);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.gdv-qv__desc p {
  margin: 0 0 0.5rem;
}
.gdv-qv__buy {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
}
.gdv-qv__buy .gdv-qty-add,
.gdv-qv__buy > .button {
  flex: 1;
}
.gdv-qv__buy .gdv-qty-btn {
  min-height: 48px;
  font-size: 1rem;
}
.gdv-qv__buy > .button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--r);
  background: var(--c-ink);
  color: #fff;
}
.gdv-qv__buy .gdv-wish-btn {
  width: 48px;
  height: 48px;
}
.gdv-qv__more {
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.gdv-qv__more:hover {
  color: var(--c-accent-text);
}
@media (max-width: 689.98px) {
  .gdv-qv {
    grid-template-columns: minmax(0, 1fr);
  }
  .gdv-qv__media {
    padding: 1.25rem 1.25rem 1rem;
  }
  .gdv-qv__main {
    max-height: 38vh;
  }
  .gdv-qv__info {
    padding: 1.5rem 1.25rem 1.5rem;
  }
  .gdv-qv__title {
    padding-right: 0;
  }
}
