/* ===================================
   PRODUCT PAGE - ENHANCED UI/UX
   Fire animations, hover effects, beautiful interactions
   =================================== */

/* Fire Animation Keyframes */
@keyframes flicker {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    25% { transform: translateY(-2px) scale(1.05, 0.95); opacity: 0.9; }
    50% { transform: translateY(-4px) scale(1.08, 0.92); opacity: 1; }
    75% { transform: translateY(-1px) scale(1.03, 0.97); opacity: 0.95; }
}

@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 0, 0.4), 0 0 40px rgba(255, 165, 0, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.3); }
}

@keyframes flame {
    0% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-5px) scaleY(1.1); }
    100% { transform: translateY(0) scaleY(1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes candleGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Nav Link Glow Hover Effect */
.nav-link {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #d4af7a;
    text-shadow: 0 0 10px rgba(212, 175, 122, 0.5);
}

/* Enhanced Product Section */
.product-section {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, 
        rgba(12, 12, 12, 1) 0%, 
        rgba(20, 15, 15, 1) 50%,
        rgba(12, 12, 12, 1) 100%);
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(110, 31, 42, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Product Layout Enhancement */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Gallery Enhancement */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-image-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(110, 31, 42, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(110, 31, 42, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-image-main:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(255, 107, 0, 0.3);
}

.product-image-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-image-main:hover img {
    transform: scale(1.05);
}

.product-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 107, 0, 0.2) 0%, 
        rgba(255, 165, 0, 0.1) 30%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: candleGlow 3s ease-in-out infinite;
}

.product-image-main:hover .product-glow {
    opacity: 1;
}

/* Product Info Enhancement */
.product-info {
    animation: fadeInUp 0.8s ease-out;
}

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

.product-name {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    background: linear-gradient(135deg, #ffffff 0%, #d4af7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Price Display - Simple and Clean */
.product-price-display {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(110, 31, 42, 0.2);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.price-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 8px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #d4af7a;
    font-family: var(--font-serif);
}

/* Fire Button Effect */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #6e1f2a 0%, #8b2836 100%);
    border: none;
    padding: 20px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 10px 30px rgba(110, 31, 42, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 0, 0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(110, 31, 42, 0.6),
        0 0 60px rgba(255, 107, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: fireGlow 1.5s ease-in-out infinite;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

/* Fragrance Selector Enhancement */
.fragrance-selector {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(110, 31, 42, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    color: #ffffff;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fragrance-selector:hover {
    border-color: rgba(110, 31, 42, 0.6);
    box-shadow: 0 4px 20px rgba(110, 31, 42, 0.3);
    transform: translateY(-2px);
}

.fragrance-selector:focus {
    outline: none;
    border-color: #6e1f2a;
    box-shadow: 0 0 0 4px rgba(110, 31, 42, 0.2);
}

/* Product Features Enhancement */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-item {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(110, 31, 42, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    background: rgba(110, 31, 42, 0.1);
    border-color: rgba(110, 31, 42, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(110, 31, 42, 0.3);
}

.feature-item i {
    font-size: 1.75rem;
    color: #d4af7a;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Care Instructions Enhancement */
.product-care {
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.product-care details {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(110, 31, 42, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-care details:hover {
    background: rgba(110, 31, 42, 0.05);
    border-color: rgba(110, 31, 42, 0.3);
}

.product-care summary {
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d4af7a;
    user-select: none;
}

.product-care summary::before {
    content: '🕯️';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.product-care details[open] summary::before {
    transform: scale(1.2);
}

/* Sparkle Effect on Hover */
.sparkle-container {
    position: relative;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #d4af7a;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s ease-out forwards;
}

.product-care summary::marker {
    color: #d4af7a;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .product-section {
        padding: 80px 0 60px;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .product-image-main {
        border-radius: 16px;
    }
    
    .product-name {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .product-price-display {
        padding: 20px 24px;
        margin: 24px 0;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .product-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .product-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 24px 0;
    }
    
    .feature-item {
        padding: 16px;
        flex-direction: row;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 18px 32px;
        font-size: 1rem;
    }
    
    .fragrance-selector {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .product-care {
        margin-top: 32px;
    }
    
    /* Reduce motion for mobile performance */
    .product-image-main:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    /* Simplify animations */
    * {
        animation-duration: 0.3s !important;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-layout {
        gap: 60px;
    }
    
    .product-name {
        font-size: 2.75rem;
    }
}

/* Smooth Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
.product-section.loading {
    opacity: 0.5;
    pointer-events: none;
}

.product-section.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(110, 31, 42, 0.2);
    border-top-color: #6e1f2a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }