/**
 * Stili Frontend per il template del singolo prodotto Amore Bio
 * File: assets/css/frontend-product.css

--font-titoli: "Luna",sans-serif;
--fontGlobale: "Montserrat", sans-serif;
--colore-rosa: #f4abb9;
--colorePrimario: #579B58;
--coloreSecondario: #F7D565;
--coloreAccento: #BED865;


 */
 
.product-main-info {
    margin-bottom: 60px;
}

/* Titolo e info base */
.product-title {
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--coloreAccento) !important;
    line-height: 40px !important;
    -webkit-hyphens: none;  /* Per Chrome, Safari, Opera, Edge */
    -moz-hyphens: none;     /* Per Firefox */
    -ms-hyphens: none;      /* Per Internet Explorer */
    hyphens: none;          /* La regola standard */

}

.product-sku {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Descrizione breve */
.short-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #495057;
}

.ci-piace-section h4,
.formato-section h4,
.availability-status h4,
.brand-section h4,
.nutrition-table h4 {
    color: var(--colorePrimario) !important;
    margin-bottom: 5px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-top: 20px !important;
}

.ci-piace-section p,
.formato-section p {
    margin: 0;
    color: #000000;
    line-height: 1.6;
} 
  
.availability-status span.stato {
    font-size: 16px;
    color: #6c757d;
    border: 1px solid;
    border-radius: 0px;
    padding: 5px;
    /*animation: bounce 2s infinite;*/
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.availability-not {
    color: #dc3545;
}

.availability-not .emoji {
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.availability-low {
    color: #fd7e14;
}

.availability-normal {
    color: #0d6efd;
}

.availability-high {
    color: #198754;
}

/* Claims */
.claims-section {
    margin: 25px 0;
    padding: 15px 0;
}

.claim-logo {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.claim-logo:hover {
    transform: scale(1.1);
}

.claim-logo img {
    max-height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sezione prezzo e carrello */
.price-cart-section,
.price-cart-section form.cart {
    display: flex;
    gap: 30px; 
    align-items: center;
}
.price-cart-section .stock {
    display: none !important;
}
.price-cart-section .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--colorePrimario) !important;
    margin-bottom: 0px !important;
}
.price-cart-section .price span {
    color: var(--colorePrimario) !important;
}

.price-cart-section .price del {
    color: #9e9e9e;
    font-size: 1.5rem;
    margin-right: 10px;
} 

.price-cart-section .single_add_to_cart_button {
    background: var(--coloreAccento) !important;
    border: none;
    padding: 12px 30px !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-cart-section .single_add_to_cart_button:hover {
    background: var(--coloreSecondario) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 213, 101, 0.3);
}

/* Meta prodotto */
.product-meta-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.product-categories,
.product-tags {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-categories strong,
.product-tags strong {
    color: #495057;
    margin-right: 10px;
}

.single-product .product-categories a,
.single-product .product-tags a {
    color: var(--coloreAccento);
    text-decoration: none;
    padding: 3px 10px;
    background: transparent !important;
    border-radius: 15px;
    margin-right: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400 !important;
    font-family: "Oswald", sans-serif !important; 
}

.product-categories a:hover,
.product-tags a:hover {
    background: #e9ecef;
    color: #495057;
}

/* Tabs */
.product-tabs {
    margin-top: 60px;
}

.nav-tabs {
    border-bottom: none !important;
}

.nav-tabs .nav-link {
    color: #6c757d !important;
    border: none;
    padding: 15px 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px !important;
    background: #F7F5F1 !important;
    margin-right: 5px !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
    color: #FFF !important;
    background: var(--coloreSecondario) !important;
    border: none;
}

.brand-section h4 span {
    color: var(--coloreAccento) !important; 
}
.tab-content {
    padding: 40px 0;
}

/* Contenuto tabs */
.tab-pane h3,
.tab-pane h4 {
    color: #212529;
    margin-bottom: 20px;
    font-weight: 600;
}

.tab-pane h3 {
    font-size: 1.8rem;
}

.tab-pane h4 {
    font-size: 1.4rem;
    margin-top: 30px;
}

.conservation-section h4,
.origin-section h4 {
    font-size: 18px !important;
    text-transform: uppercase;
    color: #000 !important;
    font-weight: 800 !important;
    margin: 0 !important;
}
.allergen-section {
    border-left-color: #ffc107;
    background: #fffbf0;
    font-weight: bold;
}

/* Tabella nutrizionale */
.nutrition-table {
    margin-top: 40px;
}

.nutrition-table h4 {
    font-size: 30px !important;
    margin-top: 35px !important;
    margin-bottom: 25px !important;
}

.nutrition-table .table {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.nutrition-table .table thead {
    background: #28a745;
    color: white;
}

.nutrition-table .table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.nutrition-table .table tbody tr {
    transition: background 0.3s ease;
}

.nutrition-table .table tbody tr:hover {
    background: #f8f9fa;
}

.nutrition-table .table tbody td {
    padding: 12px 15px;
    border-color: #e9ecef;
}
.table.table-striped th {
    text-align: left !important;
}
  
/* Gallery prodotto sticky */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Prodotti correlati */
.related-products {
    margin-top: 80px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #212529;
}

 .product-gallery {
    position: sticky;
    top: 100px;
}
/* Swiper Gallery Styles */
.amore-bio-gallery-main {
    margin-bottom: 10px;
}
.amore-bio-gallery-main .swiper-slide {
    text-align: center;
    background: #fff;
}
 
.amore-bio-gallery-main img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0 !important;
    border: 1px solid #C6C6C6;
}
.amore-bio-gallery-thumbs {
    height: 100px;
}
.amore-bio-gallery-thumbs img {
    width: 100%;
    height: 100% !important;
    object-fit: contain !important;
    border: 1px solid #C6C6C6 !important;
    border-radius: 0 !important;
}
.amore-bio-gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s;
}
.amore-bio-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--colorePrimario) !important;
}
.amore-bio-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
    color: #C6C6C6 !important; 
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    display: none !important;
}

.swiper-button-prev, .swiper-container-rtl .swiper-button-next {
    background-image: url('/wp-content/uploads/2025/06/prev-arrow.svg') !important;
    left: 10px;
    right: auto;
}
.swiper-button-next, .swiper-container-rtl .swiper-button-prev {
    background-image: url('/wp-content/uploads/2025/06/next-arrow.svg') !important;
    right: 10px;
    left: auto;
}
/* Responsive */
@media (max-width: 991px) {
    .product-gallery {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .price-cart-section {
        position: inherit;
        bottom: 0;
        z-index: 100;
        margin: 20px 0px 0;
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 767px) {
    .product-title {
        font-size: 1.75rem;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 18px;
    }
      
    .claims-section {
        text-align: center;
    }
    
    .claim-logo img {
        max-height: 50px;
    }
    .nav-tabs {
        justify-content: center;
    }
}

/* Animazioni al caricamento */
.amore-bio-single-product [class*="section"] {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stampa */
@media print {
    .price-cart-section,
    .related-products,
    .nav-tabs {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }
}