/* ================================
   PRODUCT DETAIL PAGE STYLES
   ================================ */

/* PRODUCT HERO */
.product-hero {
    min-height: 60vh; display: flex;
    align-items: center; justify-content: center;
    text-align: center; color: white;
    position: relative; overflow: hidden;
    margin-top: 60px; padding: 80px 0 60px;
}
.product-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(-45deg, var(--verde-notte), var(--verde-bosco), #0B3D20, #0A2E1C);
    background-size: 400% 400%;
    animation: prodGrad 10s ease infinite;
}
@keyframes prodGrad {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.product-hero-glow {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(0,109,59,0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 40%, rgba(206,43,55,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(212,168,67,0.15) 0%, transparent 40%);
}
.product-hero-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center;
    gap: 4rem; max-width: 1100px;
    margin: 0 auto; padding: 0 2rem;
}
.product-hero-img {
    flex-shrink: 0; width: 380px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

/* ================================
   PRODUCT CAROUSEL
   ================================ */
.product-carousel {
    width: 100%;
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
}
.carousel-main {
    position: relative; width: 100%;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 12px;
}
.carousel-main-img {
    max-width: 90%; max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    animation: prodFloat 5s ease-in-out infinite;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.carousel-main-img.fade-out {
    opacity: 0; transform: scale(0.95);
}
@keyframes prodFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}
/* Arrows */
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(0,0,0,0.35);
    color: var(--oro); border: 1px solid rgba(212,168,67,0.3);
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; backdrop-filter: blur(6px);
    opacity: 0;
}
.product-carousel:hover .carousel-arrow { opacity: 1; }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
.carousel-arrow:hover {
    background: rgba(212,168,67,0.3);
    border-color: var(--oro);
    transform: translateY(-50%) scale(1.1);
}
/* Thumbnails */
.carousel-thumbs {
    display: flex; gap: 8px;
    justify-content: center; flex-wrap: nowrap;
    overflow-x: auto; max-width: 100%;
    padding: 4px 0;
    scrollbar-width: none;
}
.carousel-thumbs::-webkit-scrollbar { display: none; }
.carousel-thumb {
    width: 48px; height: 48px;
    object-fit: contain; border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    cursor: pointer; flex-shrink: 0;
    transition: all 0.3s; opacity: 0.5;
    padding: 3px;
}
.carousel-thumb:hover {
    opacity: 0.85;
    border-color: rgba(212,168,67,0.5);
}
.carousel-thumb.active {
    opacity: 1;
    border-color: var(--oro);
    box-shadow: 0 0 12px rgba(212,168,67,0.3);
}
/* Glow behind product */
.product-hero-img::before {
    content: ''; position: absolute;
    width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.2) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}
.product-hero-text { text-align: left; }
.product-hero-text .breadcrumb {
    font-size: 0.82rem; color: rgba(255,255,255,0.5);
    margin-bottom: 1rem; letter-spacing: 1px;
}
.product-hero-text .breadcrumb a {
    color: rgba(255,255,255,0.5); text-decoration: none;
    transition: color 0.3s;
}
.product-hero-text .breadcrumb a:hover { color: var(--oro); }
.product-hero-text h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    background: linear-gradient(135deg, #fff 0%, var(--oro-chiaro) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s linear infinite;
    margin-bottom: 0.5rem;
}
@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.product-hero-text .product-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-style: italic;
    color: rgba(255,255,255,0.8); line-height: 1.7;
    margin-bottom: 1.5rem;
}
.product-hero-text .product-tagline strong {
    color: var(--oro-chiaro); font-style: normal;
}
/* Eco pill */
.eco-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,109,59,0.3); border: 1px solid rgba(0,163,86,0.4);
    color: #7dffb3; padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
}
/* Color accent line */
.product-accent-line {
    display: flex; justify-content: center; gap: 0;
    margin: 1rem 0;
}
.product-accent-line span {
    height: 4px; width: 40px; transition: width 0.5s;
}
.product-hero:hover .product-accent-line span { width: 55px; }
/* Per-product accent colors */
.accent-strong { background: linear-gradient(90deg, #E91E63, #FF4081); }
.accent-heat { background: linear-gradient(90deg, #FF6B35, #FF9800); }
.accent-freeze { background: linear-gradient(90deg, #1E88E5, #42A5F5); }
.accent-cbd { background: linear-gradient(90deg, #2E7D32, #66BB6A); }

/* ================================
   PRODUCT DESCRIPTION SECTION
   ================================ */
.product-desc-section {
    padding: 100px 0; background: var(--crema);
    position: relative;
}
.product-desc-section::before {
    content: ''; position: absolute; top: 0;
    left: 0; right: 0; height: 150px;
    background: linear-gradient(180deg, var(--avorio) 0%, transparent 100%);
    pointer-events: none;
}
.product-desc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}
.product-desc-content h2 {
    font-size: 2rem; color: var(--verde-bosco);
    margin-bottom: 1.5rem;
}
.product-desc-text {
    font-size: 1.05rem; line-height: 2;
    color: var(--testo); margin-bottom: 2rem;
}
.product-desc-text strong { color: var(--verde); }
/* Feature list */
.product-features-list {
    list-style: none; padding: 0;
}
.product-features-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid var(--crema-scura);
    font-size: 0.95rem; color: var(--testo);
    transition: transform 0.3s, background 0.3s;
    padding-left: 8px; border-radius: 4px;
}
.product-features-list li:hover {
    transform: translateX(8px);
    background: rgba(212,168,67,0.05);
}
.product-features-list li .feat-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    background: var(--verde-bosco); border: 1.5px solid var(--oro);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--oro);
    transition: transform 0.3s;
}
.product-features-list li:hover .feat-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ================================
   INGREDIENTS SECTION
   ================================ */
.ingredients-section {
    padding: 100px 0; background: var(--verde-bosco);
    position: relative; overflow: hidden;
}
/* Floating orbs */
.ing-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); z-index: 0;
    animation: ingOrbFloat 12s ease-in-out infinite;
}
.ing-orb:nth-child(1) { width: 350px; height: 350px; background: rgba(0,109,59,0.15); top: -10%; left: -5%; animation-delay: 0s; }
.ing-orb:nth-child(2) { width: 250px; height: 250px; background: rgba(212,168,67,0.08); bottom: -5%; right: -5%; animation-delay: 4s; }
@keyframes ingOrbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px,-15px) scale(1.05); }
}
.ingredients-inner { position: relative; z-index: 1; }
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 1rem;
}
.ingredient-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,168,67,0.12);
    border-radius: 12px; padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.ingredient-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(212,168,67,0.08), transparent);
    opacity: 0; transition: opacity 0.5s;
}
.ingredient-card:hover::before { opacity: 1; }
.ingredient-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212,168,67,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.ingredient-card .ing-icon {
    width: 60px; height: 60px;
    background: rgba(212,168,67,0.1);
    border: 1.5px solid rgba(212,168,67,0.3);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.2rem;
    transition: transform 0.3s;
    animation: iconBounce 4s ease-in-out infinite;
}
.ingredient-card:nth-child(2) .ing-icon { animation-delay: 0.5s; }
.ingredient-card:nth-child(3) .ing-icon { animation-delay: 1s; }
.ingredient-card:nth-child(4) .ing-icon { animation-delay: 1.5s; }
.ingredient-card:nth-child(5) .ing-icon { animation-delay: 2s; }
.ingredient-card:nth-child(6) .ing-icon { animation-delay: 2.5s; }
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.ingredient-card:hover .ing-icon {
    transform: scale(1.15) rotate(5deg);
}
.ingredient-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--oro); font-size: 1.15rem;
    margin-bottom: 0.6rem; font-style: italic;
}
.ingredient-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem; line-height: 1.7;
}

/* ================================
   USAGE / HOW TO USE SECTION
   ================================ */
.usage-section {
    padding: 100px 0; background: var(--crema-scura);
}
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.usage-step {
    background: white; padding: 2.5rem 2rem;
    border-radius: 8px; text-align: center;
    border: 1px solid rgba(212,168,67,0.12);
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.usage-step::after {
    content: ''; position: absolute; bottom: 0;
    left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--verde), var(--oro));
    transform: scaleX(0); transition: transform 0.4s;
}
.usage-step:hover::after { transform: scaleX(1); }
.usage-step:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.usage-step .step-num {
    width: 48px; height: 48px; margin: 0 auto 1.2rem;
    background: var(--verde-bosco); color: var(--oro);
    border: 2px solid var(--oro); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700;
    transition: transform 0.3s;
}
.usage-step:hover .step-num { transform: scale(1.15) rotate(5deg); }
.usage-step h4 {
    font-family: 'Playfair Display', serif;
    color: var(--verde-bosco); font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.usage-step p { color: var(--grigio); font-size: 0.9rem; line-height: 1.7; }

/* ================================
   CTA / BACK SECTION
   ================================ */
.product-cta-section {
    padding: 80px 0;
    background: var(--crema);
    text-align: center;
}
.product-cta-section .cta-back {
    display: inline-block; padding: 16px 50px;
    background: transparent; color: var(--oro);
    text-decoration: none; border: 2px solid var(--oro);
    border-radius: 50px; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.product-cta-section .cta-back::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: var(--oro); transition: all 0.6s;
    transform: translate(-50%,-50%); z-index: 0;
}
.product-cta-section .cta-back:hover::before { width: 400px; height: 400px; }
.product-cta-section .cta-back:hover {
    color: var(--verde-bosco); border-color: var(--oro);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--oro-glow);
}
.product-cta-section .cta-back span { position: relative; z-index: 1; }

/* ================================
   PRODUCT RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .product-hero-inner {
        flex-direction: column; text-align: center;
        gap: 2rem;
    }
    .product-hero-text { text-align: center; }
    .product-hero-img { width: 260px; }
    .carousel-thumb { width: 40px; height: 40px; }
    .carousel-arrow { opacity: 1; width: 32px; height: 32px; font-size: 0.85rem; }
    .product-desc-grid { grid-template-columns: 1fr; }
    .ingredients-grid { grid-template-columns: 1fr; }
    .usage-grid { grid-template-columns: 1fr; }
}
