/* ===================================
   Enhanced Features for 2025
   Modern Patisserie Web Standards
   =================================== */

/* ========== SEASONAL SECTION ========== */
.seasonal-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 186, 64, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.seasonal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.seasonal-badge i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.seasonal-price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    border: 2px solid var(--primary-gold);
}

.seasonal-section img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.seasonal-section:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .seasonal-section > .container > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .seasonal-price-tag {
        position: static;
        margin-top: 1rem;
    }
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(234, 186, 64, 0.2);
    border-color: var(--primary-gold);
}

.testimonial-card .stars {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary-gold);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--cream);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
}

.testimonial-author h4 {
    color: var(--black);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== INSTAGRAM GALLERY ========== */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 186, 64, 0.9) 0%, rgba(200, 159, 45, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item:hover .instagram-overlay i {
    transform: scale(1);
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ========== PRODUCT QUICK VIEW MODAL ========== */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.quick-view-close:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.quick-view-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.quick-view-info h2 {
    color: var(--black);
    margin-bottom: 1rem;
}

.quick-view-info .price {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin: 1rem 0;
}

.quick-view-info .description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ========== ENHANCED PRODUCT CARDS ========== */
.product-card {
    cursor: pointer;
}

.product-quick-view-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--black);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
}

.product-card:hover .product-quick-view-btn {
    opacity: 1;
    transform: scale(1);
}

.product-quick-view-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ========== TRUST BADGES ========== */
.trust-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 3rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.trust-badge i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.trust-badge-text h4 {
    color: var(--black);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.trust-badge-text p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* ========== SCROLL PROGRESS INDICATOR ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-view-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .testimonial-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }

    .quick-view-grid {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.instagram-item,
.testimonial-card,
.quick-view-modal {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
