/*
 Theme Name:   Zoyero
 Description:  Zoyero
 Author:       Emanuele Valentino
 Author URI:   https://zoyero.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Global Font */
* {
    font-family: 'Gotham', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* ================================
COLORI JHEADER NERI 
   ================================ */

.site-logo.whb-250rtwdwz5p8e5b7tpw0 {
    filter: invert(1);
}

span.nav-link-text {
    color: #000;
}
.wd-tools-element .wd-tools-icon {
    color: #000;
}
.site-logo {
    filter: invert(1);
}
.wd-header-cart :is(.wd-cart-subtotal,.subtotal-divider,.wd-tools-count) {
    color: #000;
}
/* ================================
   STILE PRODOTTI COMPATTO
   ================================ */

/* Contenitore prodotto */
li.product {
    background: #fff !important;
    padding: 1.5rem 1rem !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Immagine del prodotto */
li.product a img {
    width: 100% !important;
    height: 380px !important; /* più basso per compattezza */
    object-fit: cover !important;
    object-position: center center !important;
    background-color: #f9f0f2 !important;
    transition: transform 0.4s ease !important;
    margin-bottom: 1.2rem !important; /* meno spazio sotto immagine */
}

li.product:hover a img {
    transform: scale(1.03) !important;
}

/* Titolo del prodotto */
.wd-entities-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.3 !important;
    color: #000 !important;
    font-family: Gotham, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Prezzo */

.products .woocommerce-Price-amount.amount {
    font-weight: 800 !important;
    color: #9e1b32 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 1rem !important;
    display: inline-block !important;
}

/* Bottone */
.wd-add-btn .button,
.wd-add-btn-replace .button,
.add_to_cart_button {
    display: inline-block !important;
    padding: 0.6rem 1.1rem !important;
    background: transparent !important;
    color: black !important;
    border: 2px solid black !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    font-family: Gotham, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: normal !important;
    margin-top: 0.5rem !important;
}

/* Hover bottone */
.wd-add-btn .button:hover,
.wd-add-btn-replace .button:hover,
.add_to_cart_button:hover {
    background: black !important;
    color: white !important;
}

/* Badge (SALE, ecc.) */
.onsale {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    background: black !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.8rem !important;
    text-transform: uppercase !important;
    z-index: 10 !important;
    border-radius: 0 !important;
    letter-spacing: 0.5px !important;
    font-family: Gotham, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Stelle rating */
.star-rating {
    font-size: 0.95rem !important;
    color: #000 !important;
    margin-bottom: 0.8rem !important;
}

/* Griglia card */
.products.columns-4 li.product,
.products.columns-3 li.product,
.products.columns-2 li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
}
/* === STILE BOTTONE "AGGIUNGI" - PAGINA PRODOTTO === */
/* ===== SOLO DESKTOP ===== */

@media screen and (min-width: 1025px) {
    /* Riduce leggermente la dimensione dell'immagine principale */
    .woocommerce-product-gallery__image img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
    }


    /* Riduce lo spazio attorno alla galleria */
    .woocommerce-product-gallery {
        padding: 10px 0;
    }

    /* Look più minimal */
    .woocommerce-product-gallery img {
        box-shadow: none;
        border: none;
    }
}

/* ===== STILE ACCORDION ===== */
.acf-accordion-wrapper {
    margin-top: 30px;
}

.acf-accordion-toggle {
    background: none;
    border: none;
    font-family: var(--desktop-accordion-title-font-family);
    font-weight: var(--desktop-accordion-title-font-weight);
    font-size: var(--desktop-accordion-title-font-size);
    line-height: var(--desktop-accordion-title-line-height);
    letter-spacing: var(--desktop-accordion-title-letter-spacing);
    text-transform: var(--desktop-accordion-title-text-case);
    text-decoration: var(--desktop-accordion-title-text-decoration);
    color: #000; /* testo nero quando chiuso */

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    width: 100%;
    text-align: start;

    border-bottom: 1px solid #ccc;
    cursor: pointer;
    position: relative;
}

/* Nessun effetto hover */
.acf-accordion-toggle:hover {
    background: none;
    color: inherit;
}

/* Quando aperto → testo color bordeaux */
.acf-accordion.active .acf-accordion-toggle {
    color: rgb(158, 27, 50);
}

/* Icona "+" e "–" */
.acf-accordion-toggle::after {
    content: "+";
    font-size: 18px;
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.acf-accordion.active .acf-accordion-toggle::after {
    content: "–";
}

/* Contenuto */
.acf-accordion-content {
    display: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #000; /* testo contenuto nero */
}

.acf-accordion.active .acf-accordion-content {
    display: block;
}
.quantity {
  display: inline-flex;
  border: 1px solid var(--wd-form-brd-color); /* usa colore di default */
  border-radius: 0; /* spigoli vivi */
  overflow: hidden;
  background: white;
}

.quantity input[type="button"],
.quantity input[type="number"] {
  border: none !important;         /* rimuove bordi interni */
  background: white !important;
  color: black !important;         /* forza testo nero */
  font-size: 16px;
  padding: 0 10px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  border-radius: 0 !important;     /* nessun arrotondamento */
}

.quantity input[type="number"] {
  width: 50px;
  -moz-appearance: textfield;
}

.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Stili personalizzati per single product */
.custom-hero-section {
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  margin-bottom: 80px; /* Più spazio sotto l'hero */
}

.custom-hero-section video,
.custom-hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ingredients-section {
  margin: 80px 0 100px; /* Più spazio sopra e sotto */
  padding: 0 20px;
  background: #fff;
}

.ingredients-title {
  text-align: center;
  font-size: 32px; /* Font più grande */
  font-weight: 700;
  margin-bottom: 60px; /* Più spazio sotto il titolo */
  text-transform: uppercase;
  letter-spacing: 3px; /* Più spaziatura tra le lettere */
  color: #000; /* Colore nero più visibile */
}

.custom-gallery-row {
  display: flex;
  justify-content: center;
  gap: 40px; /* Gap maggiore tra le immagini */
  margin: 0;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px; /* Immagini più grandi */
  flex: 1;
  background: #fff;
}

.custom-gallery-item img {
  width: 100%;
  height: 300px; /* Altezza fissa per tutte le immagini */
  object-fit: cover;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-gallery-item .custom-description {
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  padding: 0 10px;
}

.custom-gallery-item .custom-description h3,
.custom-gallery-item .custom-description h4 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-gallery-item .custom-description p {
  margin: 0;
  font-size: 15px;
}

/* Slider Prodotti Casuali */
.random-products-section {
  margin: 80px 0;
  padding: 60px 20px;
  background: #f8f8f8;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
}

.random-products-slider {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 0 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.random-products-slider::-webkit-scrollbar {
  height: 8px;
}

.random-products-slider::-webkit-scrollbar-track {
  background: #e0e0e0;
}

.random-products-slider::-webkit-scrollbar-thumb {
  background: #666;
}

.product-slide {
  min-width: 250px;
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-slide a {
  text-decoration: none;
  color: inherit;
}

.product-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.product-slide h4 {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px;
  line-height: 1.3;
}

.product-slide .price {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
  .ingredients-section {
    margin: 60px 0 80px;
    padding: 0 15px;
  }
  
  .ingredients-title {
    font-size: 24px;
    margin-bottom: 40px;
  }
  
  .custom-gallery-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .custom-gallery-item {
    max-width: 300px;
  }
  
  .random-products-section {
    margin: 60px 0;
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .product-slide {
    min-width: 200px;
  }
}
.product-tabs-wrapper {
    display: none;
}
.product_meta {
    display: none;
}.wd-compare-btn.product-compare-button.wd-action-btn.wd-style-text.wd-compare-icon {
    display: none;
}.wd-wishlist-btn.wd-action-btn.wd-style-text.wd-wishlist-icon {display: none;
}
.container.related-and-upsells {
   display: none;
}/* CSS specifico per Woodmart - Prodotti correlati centrati e dimensioni medie */
#carousel-822.wd-carousel-container.related-products,
.wd-carousel-container.related-products {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* Titolo centrato */
.wd-carousel-container.related-products .wd-el-title.title {
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* Contenitore carousel più grande */
.wd-carousel-container.related-products .wd-carousel-inner {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Ridimensiona le colonne del carousel - più spazio per prodotti più grandi */
.wd-carousel-container.related-products .wd-carousel {
    --wd-col-lg: 3 !important;
    --wd-col-md: 2 !important;
    --wd-col-sm: 2 !important;
    --wd-gap-lg: 20px !important;
    --wd-gap-sm: 15px !important;
}

/* Prodotti più grandi */
.wd-carousel-container.related-products .wd-carousel-item {
    max-width: 400px !important;
}

.wd-carousel-container.related-products .wd-product {
    max-width: 400px !important;
    margin: 0 auto !important;
}

/* Immagini più grandi */
.wd-carousel-container.related-products .product-image-link img {
    max-width: 400px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Titolo del prodotto leggermente più grande */
.wd-carousel-container.related-products .wd-entities-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-top: 15px !important;
}

/* Prezzo */
.wd-carousel-container.related-products .price {
    font-size: 18px !important;
    margin: 10px 0 !important;
}

/* Bottone */
.wd-carousel-container.related-products .wd-add-btn {
    margin-top: 10px !important;
}

/* Nascondi le frecce se c'è un solo prodotto */
.wd-carousel-container.related-products .wd-nav-arrows {
    display: none !important;
}

/* Nascondi la paginazione */
.wd-carousel-container.related-products .wd-nav-pagin-wrap {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    #carousel-822.wd-carousel-container.related-products,
    .wd-carousel-container.related-products {
        max-width: 100% !important;
        padding: 30px 15px !important;
    }
    
    .wd-carousel-container.related-products .wd-carousel-inner {
        max-width: 100% !important;
    }
    
    .wd-carousel-container.related-products .wd-carousel {
        --wd-col-lg: 2 !important;
        --wd-col-md: 2 !important;
        --wd-col-sm: 2 !important;
    }
    
    .wd-carousel-container.related-products .wd-carousel-item,
    .wd-carousel-container.related-products .wd-product {
        max-width: 160px !important;
    }
    
    .wd-carousel-container.related-products .product-image-link img {
        max-width: 140px !important;
    }
}

@media (max-width: 480px) {
    .wd-carousel-container.related-products .wd-carousel {
        --wd-col-lg: 1 !important;
        --wd-col-md: 1 !important;
        --wd-col-sm: 1 !important;
    }
    
    .wd-carousel-container.related-products .wd-carousel-item,
    .wd-carousel-container.related-products .wd-product {
        max-width: 250px !important;
    }
    
    .wd-carousel-container.related-products .product-image-link img {
        max-width: 200px !important;
    }
}