﻿/* ==========================================================================
   THE SCENT OF GORI'S - HOMEPAGE SPECIFIC STYLES (home.css)
   ========================================================================== */

/* Preloader Styling */
#page-preloader {
    position: fixed;
    inset: 0;
    background-color: #0D0D0D;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s ease;
}

    #page-preloader.loaded {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.preloader-bottle-svg {
    width: 90px;
    height: 120px;
    filter: drop-shadow(0 0 15px rgba(255, 111, 0, 0.6));
    animation: preloaderPulse 2s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
    0% {
        transform: scale(0.96);
        filter: drop-shadow(0 0 10px rgba(255, 111, 0, 0.4));
    }

    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 25px rgba(201, 162, 39, 0.8));
    }
}

.preloader-progress-bar {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FF6F00 0%, #C9A227 100%);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 111, 0, 0.8);
}

/* Mega Dropdown Animated Menus */
.nav-item-dropdown {
    position: relative;
}

.mega-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
}

.nav-item-dropdown:hover .mega-dropdown-menu,
.nav-item-dropdown:focus-within .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Category Card Styling */
.category-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 111, 0, 0.25);
    }

    .category-card .category-img {
        transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .category-card:hover .category-img {
        transform: scale(1.08);
    }

/* Product Cards */
.product-card {
    background: #18181C;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

    .product-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 111, 0, 0.4);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 111, 0, 0.2);
    }

    .product-card .img-primary,
    .product-card .img-secondary {
        transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .product-card:hover .img-primary {
        opacity: 0;
    }

    .product-card:hover .img-secondary {
        opacity: 1;
        transform: scale(1.06);
    }

/* Wishlist Heart Toggle */
.btn-wishlist {
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

    .btn-wishlist.active {
        color: #FF4D4D !important;
        background: rgba(255, 77, 77, 0.2) !important;
    }

        .btn-wishlist.active svg {
            fill: #FF4D4D;
        }

/* Hero Canvas & Particle Mist */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Limited Time Banner Border Glow */
.banner-glow-border {
    position: relative;
}

    .banner-glow-border::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 1.5rem;
        background: linear-gradient(135deg, #FF6F00, #C9A227, #E8C874, #FF6F00);
        background-size: 300% 300%;
        z-index: -1;
        animation: animatedGlowBorder 6s linear infinite;
        opacity: 0.8;
    }

@keyframes animatedGlowBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Swiper Controls Custom Styling */
.swiper-button-next-custom,
.swiper-button-prev-custom {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(27, 27, 27, 0.8);
    border: 1px solid rgba(255, 111, 0, 0.4);
    color: #F7F4EF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .swiper-button-next-custom:hover,
    .swiper-button-prev-custom:hover {
        background: #FF6F00;
        color: #FFFFFF;
        box-shadow: 0 0 20px rgba(255, 111, 0, 0.6);
    }

.swiper-pagination-bullet-active {
    background: #FF6F00 !important;
    width: 24px !important;
    border-radius: 12px !important;
}


/* Custom Utility Classes */
.btn-gold {
    background: linear-gradient(to right, #FF6F00, #C9A227);
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
    }

.btn-outline-gold {
    background: transparent;
    color: #C9A227;
    border: 1px solid #C9A227;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: rgba(201, 162, 39, 0.1);
    color: #FF6F00;
    border-color: #FF6F00;
}

.glass-panel-gold {
    background: rgba(27, 27, 27, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}