/*
 Theme Name:   Craft Beer Child
 Theme URI:    http://craft-beer.bold-themes.com
 Description:  Craft Beer Child Theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     craft-beer
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  craft-beer-child
*/


/* Theme customization starts here
-------------------------------------------------------------- */

/* Campi custom birra nella lista shop */
.beer-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px 0 4px;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #888;
}

.beer-custom-fields .beer-field {
    display: block;
}

.beer-custom-fields .beer-field strong {
    color: #666;
    font-weight: 600;
}

/* Carosello prodotti - pagina singolo prodotto */
.beer-carousel-section {
    padding: 40px 0 60px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    clear: both;
    overflow: hidden;
}

/* Nasconde gli item prima che Slick si inizializzi (evita flash di layout) */
.beer-carousel:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
}

.beer-carousel:not(.slick-initialized) .beer-carousel-item {
    min-width: 25%;
    flex-shrink: 0;
}

.beer-carousel-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C45508;
}

.beer-carousel .beer-carousel-item {
    padding: 0 15px;
    text-align: center;
}

.beer-carousel .beer-carousel-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.beer-carousel .beer-carousel-item a:hover {
    opacity: 0.85;
}

.beer-carousel .beer-carousel-img {
    overflow: hidden;
    margin-bottom: 12px;
    max-width: 250px;
    max-height: 250px;
    margin-left: auto;
    margin-right: auto;
}

.beer-carousel .beer-carousel-img img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.beer-carousel .beer-carousel-item a:hover .beer-carousel-img img {
    transform: scale(1.05);
}

.beer-carousel .beer-carousel-item-title {
    font-size: 1rem;
    margin: 0 0 6px;
    line-height: 1.3;
}

.beer-carousel .beer-carousel-price {
    font-size: 0.9rem;
    color: #C45508;
    font-weight: 600;
}

/* Frecce carosello */
.beer-carousel-section .slick-prev,
.beer-carousel-section .slick-next {
    width: 44px;
    height: 44px;
    z-index: 1;
}

.beer-carousel-section .slick-prev {
    left: -10px;
}

.beer-carousel-section .slick-next {
    right: -10px;
}

.beer-carousel-section .slick-prev:before,
.beer-carousel-section .slick-next:before {
    color: #C45508;
    font-size: 36px;
}
#product-2709 > section.related.products, #product-2680 > section.related.products, #product-2699 > section.related.products{
	display:none;
}

.btContent a {
    color: #C45508;
    }
a:hover {
    text-decoration: none;
    color: #C45508;
    }
.btContent a:hover {
    color: inherit;
    }
.btText a {
    color: #C45508;
    }

 div.summary.entry-summary > form > p > span {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.single-product .price ins {
    color: #C45508; /* prezzo scontato */
    text-decoration: none;
}

.single-product .price del {
    color: #999;
    font-size: 18px;
}
.products ul li.product .onsale, ul.products li.product .onsale {
    position: absolute;
    bottom: 4.4em;
    top: 0;
    left: 2em;
    right: auto;
    background: #C45508;
    color: white;
    opacity: .9;
    z-index: 1;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
	font-size:10px;
}
div.product .onsale {
    position: absolute;
    top: 1em;
    left: 0;
    background: #C45508;
    color: white;
    opacity: .9;
    z-index: 1;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
	font-size:10px;
}
/* badge come immagine nel catalogo */
.gluten-badge-img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px; /* puoi cambiare la dimensione */
    height: auto;
    z-index: 9;
}

.woocommerce ul.products li.product {
    position: relative;
}

/* badge singolo prodotto */
.single .gluten-badge-img.single {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px; /* più grande nella singola */
}

