:root {
	--wd-text-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(118,118,118);
	--wd-text-font-size: 16px;
	--wd-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(255,255,255);
	--wd-alternative-color: rgb(255,255,255);
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(255,255,255);
	--btn-accented-bgcolor-hover: rgb(255,255,255);
	--wd-form-brd-width: 2px;
	--notices-success-bg: rgb(255,255,255);
	--notices-success-color: rgb(0,0,0);
	--notices-warning-bg: rgb(221,51,51);
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: url();
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
	--wd-popup-padding: 15px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(0,0,0);
	background-image: none;
}
.wd .product-label.onsale {
	background-color: rgb(221,51,51);
}
.wd .product-label.new {
	background-color: rgb(129,215,66);
}
.wd .product-label.featured {
	background-color: rgb(221,51,51);
}
.wd .product-label.out-of-stock {
	background-color: rgb(221,51,51);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery.thumbs-position-left {
	--wd-thumbs-width: 100px;
	--wd-thumbs-height: 100px;
}

@media (max-width: 1024px) {
	.woocommerce-product-gallery.thumbs-position-left {
		--wd-thumbs-width: 100px;
	--wd-thumbs-height: 100px;
	}

}

@media (max-width: 768.98px) {
	.woocommerce-product-gallery.thumbs-position-left {
		--wd-thumbs-width: 100px;
	--wd-thumbs-height: 100px;
	}

}
:root{
--wd-container-w: 1400px;
--wd-form-brd-radius: 5px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 12px;
}



.wd-page-title {
background-color: #0a0a0a;
}

.wd-content-layout {
    padding-block: 0px!important;
}


/* STAR BEERS - FORM CONTATTI A 2 COLONNE */

.wpcf7 .sbco-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
    width: 100%;
    margin-bottom: 28px;
}

.wpcf7 .sbco-grid-field {
    width: 100%;
    min-width: 0;
}

.wpcf7 .sbco-grid-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #153e35;
    margin-bottom: 10px;
}

.wpcf7 .sbco-grid-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7 .sbco-grid-field input {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: 52px;
    box-sizing: border-box;
    padding: 12px 15px;
    background: #faf9f6;
    border: 1px solid #e2ded5;
    border-radius: 0;
    font-size: 14px;
    color: #173c33;
    transition: border-color .25s ease;
}

.wpcf7 .sbco-grid-field input:focus {
    border-color: #be985c;
    outline: none;
}

/* Smartphone: torna a una colonna */
@media (max-width: 767px) {
    .wpcf7 .sbco-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* ===================================================================
   STAR BEERS S.R.L. | CATALOGO PREMIUM V4 — CARD UNIFORMI
   Compatibile con WoodMart 8.6.x + WooCommerce + Loop Item Gutenberg.
   Destinazione: Aspetto > Personalizza > CSS aggiuntivo
   oppure WoodMart > Impostazioni tema > CSS personalizzato.

   IMPORTANTE:
   - SOSTITUIRE il precedente blocco CSS “Categorie Premium” con questo.
   - Non mantenere contemporaneamente le versioni V2/V3/V4.
   - NON incollare questo codice nel widget HTML di Elementor.
   - Si applica SOLO agli archivi categoria WooCommerce (tax-product_cat).
   - Non altera le pagine del singolo prodotto.
   - Non imposta il numero di colonne: usa quello deciso in WoodMart.
   =================================================================== */

/* 01. Colori STAR BEERS e area catalogo */
body.tax-product_cat .wd-products {
  --sb-forest: #123b2f;
  --sb-forest-dark: #0d2c23;
  --sb-gold: #b89059;
  --sb-ivory: #f7f6f2;
  --sb-outline: #e7e2d9;
  --sb-muted: #8c978f;

  background: var(--sb-ivory);
  padding: 12px;
  border-radius: 14px;
  /* Tutte le righe della griglia hanno la medesima altezza. */
  align-items: stretch;
  grid-auto-rows: minmax(0, 1fr);
}

/* 02. Scheda prodotto: contenitore raffinato, dimensioni ordinate */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) {
  position: relative;
  min-width: 0;
  max-width: 100%;
  /* WoodMart Loop Item: ogni card occupa tutta l’altezza della riga. */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  height: 100% !important;
  min-height: 400px;
  align-self: stretch;
  box-sizing: border-box;
  padding: 18px 16px 22px !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #e7e2d9 !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 16px rgba(15, 49, 37, .035);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item):hover {
  border-color: #d5b781 !important;
  box-shadow: 0 16px 32px rgba(13, 44, 35, .10);
  transform: translateY(-3px);
}

/* Mantiene neutri eventuali wrapper interni dei modelli predefiniti. */
body.tax-product_cat .wd-products :is(.product-wrapper, .wd-product-wrapper) {
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

/* Se il modello Gutenberg ha un wrapper interno, allungalo con la card. */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) > :is(.product-wrapper, .wd-product-wrapper) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

/* 03. CORREZIONE ESSENZIALE: immagini bottiglie uniformi, mai gigantesche.
   Funziona anche con il blocco Product thumbnail del Loop Item Gutenberg. */
body.tax-product_cat .wd-products :is(
  .wd-product-thumb,
  .product-element-top,
  .product-image-link,
  .product-thumbnail,
  .wd-product-image,
  .wp-block-image
) {
  width: 100%;
  max-width: 100%;
  height: 240px !important;
  max-height: 240px !important;
  overflow: hidden;
  border-radius: 9px;
  background: #f9f8f5;
  margin: 0 0 17px !important;
  flex-shrink: 0;
}

/* Le foto sono sempre contenute per intero, senza ritagliare etichette. */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) img {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  height: 240px !important;
  max-height: 240px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 12px;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  transition: transform .3s ease;
}

/* Prevenzione di overflow su immagini e collegamenti del Loop Item. */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) :is(a, picture, figure) {
  max-width: 100%;
}

body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item):hover img {
  transform: scale(1.025);
}

/* 04. Testo: gerarchia pulita e leggibile. */
body.tax-product_cat .wd-products :is(
  .wd-entities-title,
  .product-title,
  .wd-product-title,
  .wc-block-components-product-name
) {
  margin: 0 0 9px !important;
  /* Riserva tre righe di titolo, anche per nomi brevi. */
  height: 4.35em;
  min-height: 4.35em;
  max-height: 4.35em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #123b2f !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: -.012em;
  text-align: center;
  overflow-wrap: anywhere;
}

body.tax-product_cat .wd-products :is(
  .wd-entities-title,
  .product-title,
  .wd-product-title,
  .wc-block-components-product-name
) a {
  color: #123b2f !important;
  text-decoration: none !important;
}

body.tax-product_cat .wd-products :is(
  .wd-entities-title,
  .product-title,
  .wd-product-title
) a:hover {
  color: #a17b45 !important;
}

/* Marchio e categoria: secondari rispetto al nome. */
body.tax-product_cat .wd-products :is(
  .wd-product-brands,
  .wd-product-brand,
  .wd-product-cats,
  .wd-product-categories,
  .posted_in,
  .wd-product-category
) {
  color: #88958c !important;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

body.tax-product_cat .wd-products :is(
  .wd-product-brands,
  .wd-product-brand,
  .wd-product-cats,
  .wd-product-categories,
  .posted_in,
  .wd-product-category
) a {
  color: #88958c !important;
}

/* 05. Catalogo vetrina: nessun carrello / prezzo nella griglia. */
body.tax-product_cat .wd-products :is(
  .price,
  .wd-add-btn,
  .add_to_cart_button,
  .product_type_simple,
  .wd-quick-shop
) {
  display: none !important;
}

/* 06. Tablet: foto proporzionate e schede compatte. */
@media (min-width: 768px) and (max-width: 1199px) {
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) {
    padding: 14px 12px 19px !important;
    min-height: 370px;
  }
  body.tax-product_cat .wd-products :is(
    .wd-product-thumb, .product-element-top, .product-image-link,
    .product-thumbnail, .wd-product-image, .wp-block-image
  ),
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) img {
    height: 205px !important;
    max-height: 205px !important;
  }
}

/* 07. Smartphone: lascia a WoodMart la scelta di 1 o 2 colonne. */
@media (max-width: 767px) {
  body.tax-product_cat .wd-products {
    padding: 6px;
    border-radius: 10px;
  }
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) {
    padding: 11px 9px 15px !important;
    min-height: 320px;
    border-radius: 10px !important;
  }
  body.tax-product_cat .wd-products :is(
    .wd-product-thumb, .product-element-top, .product-image-link,
    .product-thumbnail, .wd-product-image, .wp-block-image
  ),
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) img {
    height: 165px !important;
    max-height: 165px !important;
  }
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) img {
    padding: 8px;
  }
  body.tax-product_cat .wd-products :is(
    .wd-entities-title, .product-title, .wd-product-title,
    .wc-block-components-product-name
  ) {
    font-size: 12.5px !important;
    line-height: 1.42 !important;
  }
  body.tax-product_cat .wd-products :is(
    .wd-product-brands, .wd-product-brand, .wd-product-cats,
    .wd-product-categories, .wd-product-category
  ) {
    font-size: 11px !important;
  }
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item):hover {
    transform: none;
  }
}

/* 08. Dimensioni molto strette. */
@media (max-width: 390px) {
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) {
    min-height: 300px;
  }
  body.tax-product_cat .wd-products :is(
    .wd-product-thumb, .product-element-top, .product-image-link,
    .product-thumbnail, .wd-product-image, .wp-block-image
  ),
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) img {
    height: 146px !important;
    max-height: 146px !important;
  }
}

/* Accessibilità: movimento ridotto e focus visibile. */
@media (prefers-reduced-motion: reduce) {
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item),
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) img {
    transition: none !important;
    transform: none !important;
  }
}
body.tax-product_cat .wd-products a:focus-visible {
  outline: 2px solid #b89059;
  outline-offset: 3px;
}

/* Impaginazione uniforme dei Loop Item personalizzati.
   Se WoodMart offre “Even product grid” nel modello, lasciarlo attivo.
   Nessuna regola CSS per nascondere o mostrare lo SKU. */


/* =========================================================
   STAR BEERS - Sidebar filtri catalogo / categorie prodotto
   Stile premium coordinato con il sito
   Compatibile con WooCommerce + WoodMart
   ========================================================= */

/* Scope: shop e categorie prodotto */
body.post-type-archive-product .widget-area,
body.tax-product_cat .widget-area,
body.post-type-archive-product .wd-sidebar,
body.tax-product_cat .wd-sidebar,
body.post-type-archive-product .shop-sidebar,
body.tax-product_cat .shop-sidebar,
body.post-type-archive-product aside.sidebar-container,
body.tax-product_cat aside.sidebar-container {
  position: relative;
}

body.post-type-archive-product .widget-area .widget,
body.tax-product_cat .widget-area .widget,
body.post-type-archive-product .wd-sidebar .widget,
body.tax-product_cat .wd-sidebar .widget,
body.post-type-archive-product .shop-sidebar .widget,
body.tax-product_cat .shop-sidebar .widget,
body.post-type-archive-product aside.sidebar-container .widget,
body.tax-product_cat aside.sidebar-container .widget {
  background: #f8f6f0;
  border: 1px solid #e5ddd0;
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(19, 45, 38, 0.05);
}

/* Contenitore generale sidebar */
body.post-type-archive-product .widget-area,
body.tax-product_cat .widget-area,
body.post-type-archive-product .wd-sidebar,
body.tax-product_cat .wd-sidebar,
body.post-type-archive-product .shop-sidebar,
body.tax-product_cat .shop-sidebar,
body.post-type-archive-product aside.sidebar-container,
body.tax-product_cat aside.sidebar-container {
  padding-top: 2px;
}

/* Titoli widget */
body.post-type-archive-product .widget-area .widget-title,
body.tax-product_cat .widget-area .widget-title,
body.post-type-archive-product .wd-sidebar .widget-title,
body.tax-product_cat .wd-sidebar .widget-title,
body.post-type-archive-product .shop-sidebar .widget-title,
body.tax-product_cat .shop-sidebar .widget-title,
body.post-type-archive-product aside.sidebar-container .widget-title,
body.tax-product_cat aside.sidebar-container .widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eadfcd;
  color: #173d32;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

body.post-type-archive-product .widget-area .widget-title::before,
body.tax-product_cat .widget-area .widget-title::before,
body.post-type-archive-product .wd-sidebar .widget-title::before,
body.tax-product_cat .wd-sidebar .widget-title::before,
body.post-type-archive-product .shop-sidebar .widget-title::before,
body.tax-product_cat .shop-sidebar .widget-title::before,
body.post-type-archive-product aside.sidebar-container .widget-title::before,
body.tax-product_cat aside.sidebar-container .widget-title::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #c79f62;
  border-radius: 999px;
  flex: 0 0 auto;
}

/* Liste filtri */
body.post-type-archive-product .widget-area ul,
body.tax-product_cat .widget-area ul,
body.post-type-archive-product .wd-sidebar ul,
body.tax-product_cat .wd-sidebar ul,
body.post-type-archive-product .shop-sidebar ul,
body.tax-product_cat .shop-sidebar ul,
body.post-type-archive-product aside.sidebar-container ul,
body.tax-product_cat aside.sidebar-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.post-type-archive-product .widget-area li,
body.tax-product_cat .widget-area li,
body.post-type-archive-product .wd-sidebar li,
body.tax-product_cat .wd-sidebar li,
body.post-type-archive-product .shop-sidebar li,
body.tax-product_cat .shop-sidebar li,
body.post-type-archive-product aside.sidebar-container li,
body.tax-product_cat aside.sidebar-container li {
  margin: 0;
  padding: 0;
}

/* Link standard dei filtri */
body.post-type-archive-product .widget-area li a,
body.tax-product_cat .widget-area li a,
body.post-type-archive-product .wd-sidebar li a,
body.tax-product_cat .wd-sidebar li a,
body.post-type-archive-product .shop-sidebar li a,
body.tax-product_cat .shop-sidebar li a,
body.post-type-archive-product aside.sidebar-container li a,
body.tax-product_cat aside.sidebar-container li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0;
  color: #355246;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .22s ease, transform .22s ease;
}

body.post-type-archive-product .widget-area li a:hover,
body.tax-product_cat .widget-area li a:hover,
body.post-type-archive-product .wd-sidebar li a:hover,
body.tax-product_cat .wd-sidebar li a:hover,
body.post-type-archive-product .shop-sidebar li a:hover,
body.tax-product_cat .shop-sidebar li a:hover,
body.post-type-archive-product aside.sidebar-container li a:hover,
body.tax-product_cat aside.sidebar-container li a:hover {
  color: #173d32;
  transform: translateX(3px);
}

/* Conteggi prodotti */
body.post-type-archive-product .count,
body.tax-product_cat .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #efe5d6;
  color: #9a7440;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Stato attivo selezionato */
body.post-type-archive-product .chosen a,
body.tax-product_cat .chosen a,
body.post-type-archive-product .current-cat > a,
body.tax-product_cat .current-cat > a,
body.post-type-archive-product .woocommerce-widget-layered-nav-list__item--chosen a,
body.tax-product_cat .woocommerce-widget-layered-nav-list__item--chosen a {
  color: #173d32 !important;
  font-weight: 700;
}

/* Widget filtri attivi */
body.post-type-archive-product .widget_layered_nav_filters ul,
body.tax-product_cat .widget_layered_nav_filters ul,
body.post-type-archive-product .woocommerce-widget-layered-nav-filters ul,
body.tax-product_cat .woocommerce-widget-layered-nav-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.post-type-archive-product .widget_layered_nav_filters ul li,
body.tax-product_cat .widget_layered_nav_filters ul li,
body.post-type-archive-product .woocommerce-widget-layered-nav-filters ul li,
body.tax-product_cat .woocommerce-widget-layered-nav-filters ul li {
  margin: 0;
}

body.post-type-archive-product .widget_layered_nav_filters ul li a,
body.tax-product_cat .widget_layered_nav_filters ul li a,
body.post-type-archive-product .woocommerce-widget-layered-nav-filters ul li a,
body.tax-product_cat .woocommerce-widget-layered-nav-filters ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: auto;
  background: #173d32;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transform: none !important;
}

body.post-type-archive-product .widget_layered_nav_filters ul li a::before,
body.tax-product_cat .widget_layered_nav_filters ul li a::before,
body.post-type-archive-product .woocommerce-widget-layered-nav-filters ul li a::before,
body.tax-product_cat .woocommerce-widget-layered-nav-filters ul li a::before {
  content: "×";
  font-size: 16px;
  line-height: 1;
  opacity: .85;
}

/* Select dropdown dei filtri */
body.post-type-archive-product select,
body.tax-product_cat select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #ddd2bf;
  border-radius: 12px;
  background: #fff;
  color: #173d32;
  font-size: 14px;
}

body.post-type-archive-product select:focus,
body.tax-product_cat select:focus {
  outline: none;
  border-color: #c79f62;
  box-shadow: 0 0 0 3px rgba(199, 159, 98, 0.15);
}

/* Search widget */
body.post-type-archive-product .widget_search form,
body.tax-product_cat .widget_search form,
body.post-type-archive-product .woocommerce-product-search,
body.tax-product_cat .woocommerce-product-search {
  position: relative;
}

body.post-type-archive-product .widget_search input[type="search"],
body.tax-product_cat .widget_search input[type="search"],
body.post-type-archive-product .woocommerce-product-search input[type="search"],
body.tax-product_cat .woocommerce-product-search input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  border: 1px solid #ddd2bf;
  border-radius: 12px;
  background: #fff;
  color: #173d32;
}

body.post-type-archive-product .widget_search button,
body.tax-product_cat .widget_search button,
body.post-type-archive-product .woocommerce-product-search button,
body.tax-product_cat .woocommerce-product-search button {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #173d32;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Colonne / testi widget categorie e attributi */
body.post-type-archive-product .widget_product_categories li,
body.tax-product_cat .widget_product_categories li,
body.post-type-archive-product .woocommerce-widget-layered-nav-list__item,
body.tax-product_cat .woocommerce-widget-layered-nav-list__item,
body.post-type-archive-product .widget_rating_filter li,
body.tax-product_cat .widget_rating_filter li {
  border-bottom: 1px solid #efe7da;
}

body.post-type-archive-product .widget_product_categories li:last-child,
body.tax-product_cat .widget_product_categories li:last-child,
body.post-type-archive-product .woocommerce-widget-layered-nav-list__item:last-child,
body.tax-product_cat .woocommerce-widget-layered-nav-list__item:last-child,
body.post-type-archive-product .widget_rating_filter li:last-child,
body.tax-product_cat .widget_rating_filter li:last-child {
  border-bottom: 0;
}

/* Pulsante reset filtri se presente */
body.post-type-archive-product .wd-clear-filters,
body.tax-product_cat .wd-clear-filters,
body.post-type-archive-product .reset_variations,
body.tax-product_cat .reset_variations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #c79f62;
  color: #173d32 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Sidebar sticky su desktop */
@media (min-width: 1025px) {
  body.post-type-archive-product .widget-area,
  body.tax-product_cat .widget-area,
  body.post-type-archive-product .wd-sidebar,
  body.tax-product_cat .wd-sidebar,
  body.post-type-archive-product .shop-sidebar,
  body.tax-product_cat .shop-sidebar,
  body.post-type-archive-product aside.sidebar-container,
  body.tax-product_cat aside.sidebar-container {
    position: sticky;
    top: 120px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  body.post-type-archive-product .widget-area .widget,
  body.tax-product_cat .widget-area .widget,
  body.post-type-archive-product .wd-sidebar .widget,
  body.tax-product_cat .wd-sidebar .widget,
  body.post-type-archive-product .shop-sidebar .widget,
  body.tax-product_cat .shop-sidebar .widget,
  body.post-type-archive-product aside.sidebar-container .widget,
  body.tax-product_cat aside.sidebar-container .widget {
    border-radius: 16px;
    padding: 18px;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  body.post-type-archive-product .widget-area .widget,
  body.tax-product_cat .widget-area .widget,
  body.post-type-archive-product .wd-sidebar .widget,
  body.tax-product_cat .wd-sidebar .widget,
  body.post-type-archive-product .shop-sidebar .widget,
  body.tax-product_cat .shop-sidebar .widget,
  body.post-type-archive-product aside.sidebar-container .widget,
  body.tax-product_cat aside.sidebar-container .widget {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
  }

  body.post-type-archive-product .widget-area .widget-title,
  body.tax-product_cat .widget-area .widget-title,
  body.post-type-archive-product .wd-sidebar .widget-title,
  body.tax-product_cat .wd-sidebar .widget-title,
  body.post-type-archive-product .shop-sidebar .widget-title,
  body.tax-product_cat .shop-sidebar .widget-title,
  body.post-type-archive-product aside.sidebar-container .widget-title,
  body.tax-product_cat aside.sidebar-container .widget-title {
    font-size: 12px;
  }

  body.post-type-archive-product .widget-area li a,
  body.tax-product_cat .widget-area li a,
  body.post-type-archive-product .wd-sidebar li a,
  body.tax-product_cat .wd-sidebar li a,
  body.post-type-archive-product .shop-sidebar li a,
  body.tax-product_cat .shop-sidebar li a,
  body.post-type-archive-product aside.sidebar-container li a,
  body.tax-product_cat aside.sidebar-container li a {
    font-size: 14px;
  }
}

/* ================================================================
   STAR BEERS | CATALOGO PREMIUM - CORREZIONE CARD COMPATTE
   Versione: 2026-11-03

   Da AGGIUNGERE IN FONDO al CSS già presente.
   Non sostituire il CSS che regola le fotografie dei prodotti.

   - Nasconde il contatore "XX articoli nella categoria"
   - Mantiene le card della stessa altezza ALL'INTERNO DELLA RIGA
   - Elimina lo spazio eccessivo tra titolo e categoria/marchio
   - Non modifica dimensioni delle immagini, filtri o colonne
   - Solo archivi di categoria WooCommerce
   ================================================================ */

/* 1) Nasconde il contatore del template STAR BEERS Archivio Premium. */
body.tax-product_cat #sbca-archive .sbca-results {
  display: none !important;
}

/* 2) Evita che l'altezza della riga più alta si ripeta su tutte le righe. */
body.tax-product_cat .wd-products {
  grid-auto-rows: auto !important;
  align-items: stretch !important;
}

/* 3) Card compatte, ma allineate tra loro nella medesima riga. */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) {
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  padding-bottom: 16px !important;
}

/* 4) Impedisce ai wrapper del Loop Item di spingere la categoria in basso. */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item)
:is(.product-wrapper, .wd-product-wrapper, .wd-product-inner, .product-element-bottom, .wd-product-info) {
  justify-content: flex-start !important;
}

/* 5) Elimina le 3 righe FISSE riservate ai titoli dal vecchio CSS V4.
      Mantiene circa 2 righe come allineamento, ma senza tagliare nomi lunghi. */
body.tax-product_cat .wd-products :is(
  .wd-entities-title,
  .product-title,
  .wd-product-title,
  .wc-block-components-product-name,
  .wp-block-post-title
) {
  height: auto !important;
  min-height: 2.8em !important;
  max-height: none !important;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

/* 6) Categoria e marchio direttamente sotto il titolo. */
body.tax-product_cat .wd-products :is(
  .wd-product-brands,
  .wd-product-brand,
  .wd-product-cats,
  .wd-product-categories,
  .wd-product-category,
  .posted_in,
  .wp-block-post-terms
) {
  margin-top: 3px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 7) Eventuali elementi informativi non devono occupare spazio "auto". */
body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item)
:is(.wd-product-cats, .wd-product-brands, .wd-product-category, .wp-block-post-terms) {
  align-self: center;
}

/* Smartphone: compatte senza compromettere la leggibilità. */
@media (max-width: 767px) {
  body.tax-product_cat .wd-products :is(.wd-product, .product-grid-item) {
    padding-bottom: 12px !important;
  }
  body.tax-product_cat .wd-products :is(
    .wd-entities-title, .product-title, .wd-product-title,
    .wc-block-components-product-name, .wp-block-post-title
  ) {
    min-height: 2.8em !important;
    margin-bottom: 4px !important;
  }
}


/* ============================================================
   STAR BEERS | PALETTE COORDINATA AL LOGO ORIGINALE
   Adatto ai blocchi HTML Elementor elaborati per STAR BEERS.
   Da incollare in Aspetto > Personalizza > CSS aggiuntivo.
   NON sostituisce i CSS inseriti direttamente in tutti i widget.
   ============================================================ */

/* MODIFICA SOLO QUESTI VALORI PER CAMBIARE LA PALETTE */
:root {
  --star-arancio: #E56F05;       /* arancione del logo */
  --star-bordeaux: #651F2A;      /* lettere del logo */
  --star-bordeaux-scuro: #40111C;
  --star-bordeaux-chiaro: #7B3441;
  --star-arancio-chiaro: #FFC17D;
  --star-arancio-testo: #A94700; /* leggibile su fondo chiaro */
  --star-avorio: #FFF8EF;
  --star-crema: #F6EDE6;
  --star-bianco: #FFFFFF;
  --star-testo: #2C2024;
  --star-testo-secondario: #6C5E61;
  --star-bordo: #E9D9D1;
}

/* HOME 2026 PUBBLICATA: .sb-h26 */
.sb-h26 {
  --forest: var(--star-bordeaux) !important;
  --forest2: var(--star-bordeaux-scuro) !important;
  --ink: var(--star-testo) !important;
  --gold: var(--star-arancio) !important;
  --goldlight: var(--star-arancio-chiaro) !important;
  --cream: var(--star-crema) !important;
  --ivory: var(--star-avorio) !important;
  --muted: var(--star-testo-secondario) !important;
}

/* HOME VERSIONE ALTERNATIVA: #sb-home-premium */
#sb-home-premium {
  --sb-forest: var(--star-bordeaux) !important;
  --sb-forest2: var(--star-bordeaux-chiaro) !important;
  --sb-deep: var(--star-bordeaux-scuro) !important;
  --sb-gold: var(--star-arancio) !important;
  --sb-gold2: var(--star-arancio-chiaro) !important;
  --sb-ivory: var(--star-avorio) !important;
  --sb-warm: var(--star-crema) !important;
  --sb-ink: var(--star-testo) !important;
  --sb-muted: var(--star-testo-secondario) !important;
  --sb-line: var(--star-bordo) !important;
}

/* HEADER WOODMART PERSONALIZZATO */
.sbnav26 {
  --forest: var(--star-bordeaux) !important;
  --deep: var(--star-bordeaux-scuro) !important;
  --night: var(--star-bordeaux-scuro) !important;
  --gold: var(--star-arancio) !important;
  --goldlight: var(--star-arancio-chiaro) !important;
  --cream: var(--star-avorio) !important;
  --muted: #EAD0D2 !important;
}

/* PAGINA CHI SIAMO */
#sb-about-completo {
  --sb-forest: var(--star-bordeaux) !important;
  --sb-pine: var(--star-bordeaux-chiaro) !important;
  --sb-forest-soft: #884550 !important;
  --sb-gold: var(--star-arancio) !important;
  --sb-gold-light: var(--star-arancio-chiaro) !important;
  --sb-ivory: var(--star-avorio) !important;
  --sb-cream: var(--star-crema) !important;
  --sb-ink: var(--star-testo) !important;
  --sb-muted: var(--star-testo-secondario) !important;
}

/* CATALOGO CATEGORIE */
#sb-products {
  --forest: var(--star-bordeaux) !important;
  --green: var(--star-bordeaux-chiaro) !important;
  --gold: var(--star-arancio) !important;
  --ivory: var(--star-avorio) !important;
  --ink: var(--star-testo) !important;
  --muted: var(--star-testo-secondario) !important;
}

/* CONTATTI */
.sbco {
  --forest: var(--star-bordeaux) !important;
  --forest2: var(--star-bordeaux-chiaro) !important;
  --deep: var(--star-bordeaux-scuro) !important;
  --cream: var(--star-crema) !important;
  --ivory: var(--star-avorio) !important;
  --gold: var(--star-arancio) !important;
  --goldlight: var(--star-arancio-chiaro) !important;
  --ink: var(--star-testo) !important;
  --gray: var(--star-testo-secondario) !important;
  --line: var(--star-bordo) !important;
}

/* PAGINE: IMPIANTI DI SPILLATURA e DIVENTA CLIENTE */
.sb-acq26 {
  --sb-forest: var(--star-bordeaux) !important;
  --sb-dark: var(--star-bordeaux-scuro) !important;
  --sb-gold: var(--star-arancio) !important;
  --sb-pale: var(--star-arancio-chiaro) !important;
  --sb-paper: var(--star-avorio) !important;
  --sb-ivory: var(--star-crema) !important;
  --sb-ink: var(--star-testo) !important;
  --sb-muted: var(--star-testo-secondario) !important;
}

/* PICCOLE CORREZIONI AI PULSANTI (testo leggibile sull'arancione) */
.sb-h26 .sb-btn-gold,
#sb-products .sb-button:not(.sb-button--line) {
  color: var(--star-bordeaux-scuro) !important;
}

/* LEGGIBILITA': collegamenti ai form e focus tastiera */
.sb-h26 a:focus-visible,
.sbnav26 a:focus-visible,
#sb-products a:focus-visible,
#sb-about-completo a:focus-visible,
.sbco a:focus-visible,
.sb-acq26 a:focus-visible {
  outline-color: var(--star-arancio-chiaro) !important;
}

/* NOTA: alcuni colori sono scritti direttamente (#HEX, rgba, gradienti)
   nei singoli widget; una ricorrezione completa di quei dettagli richiede
   l'aggiornamento delle regole originali. Questa patch agisce sui token
   verificati, preservando i selettori e i comportamenti esistenti. */

