/* Luxury Perfume E-commerce - Premium Design */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #c5a059; /* Luxury Gold */
    --accent-hover: #b38f4d;
    --text-color: #333333;
    --bg-light: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .luxury-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 50px;
    border-bottom: 1px solid var(--accent-color);
}

.logo img {
    height: 70px; /* Increased size */
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.cart-icon {
    position: relative;
    color: var(--secondary-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.hamburger.active {
    position: relative;
    z-index: 1002;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Premium Intro Animation --- */
body.intro-active {
    overflow: hidden; /* Lock scroll during intro */
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    transition: opacity 1s ease, visibility 1s ease;
}

.intro-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.door-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.door {
    flex: 1;
    height: 100%;
    background: #050505;
    position: relative;
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 1px solid #111;
}

.left-door {
    transform-origin: left;
    border-right: 2px solid var(--accent-color);
}

.right-door {
    transform-origin: right;
    border-left: 2px solid var(--accent-color);
}

/* Luxury Door Panels */
.door-panel {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 1px solid rgba(197, 160, 89, 0.3); /* Sublte gold frame */
    box-shadow: inset 0 0 50px rgba(0,0,0,1);
}

.door-handle {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 100px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.left-door .door-handle { right: 20px; transform: translateY(-50%); }
.right-door .door-handle { left: 20px; transform: translateY(-50%); }

/* Light & Glow */
.golden-glow {
    position: absolute;
    width: 200px;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    z-index: 5;
    transition: opacity 2s ease;
}

/* Animation States */
.intro-overlay.open .left-door {
    transform: rotateY(-110deg);
}

.intro-overlay.open .right-door {
    transform: rotateY(110deg);
}

.intro-overlay.open .golden-glow {
    opacity: 0.6;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Smoke/Dust effect */
.intro-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 100%);
    pointer-events: none;
    z-index: 15;
    opacity: 0.3;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/home.jpg') center/cover no-repeat;
    transform: scale(1.3); /* Initial state for animation */
    z-index: -2;
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1); /* Smooth entry */
    opacity: 0;
    animation: heroEntry 2s forwards;
}

@keyframes heroEntry {
    from { transform: scale(1.3); opacity: 0; }
    to { transform: scale(1.1); opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-weight: 300;
}

.btn-premium {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn-premium:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-premium:hover::before {
    left: 0;
}

/* Social Buttons (shared) */
.social-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn i {
    color: white;
    font-size: 26px;
    border: none !important;
    text-decoration: none !important;
}

.social-facebook {
    --pulse-ring: rgba(24, 119, 242, 0.45);
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
    animation: pulse 2s infinite;
}

.social-instagram {
    --pulse-ring: rgba(225, 48, 108, 0.45);
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    animation: pulse 2s infinite;
}

.social-whatsapp {
    --pulse-ring: rgba(37, 211, 102, 0.4);
    background-color: #25d366;
    animation: pulse 2s infinite;
    width: 60px;
    height: 60px;
}

.social-whatsapp i {
    font-size: 30px;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.social-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.social-float .social-tooltip {
    right: 70px;
}

.social-inline .social-tooltip {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

.social-btn:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Floating WhatsApp */
.social-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Facebook & Instagram — centered below features */
.social-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 50px;
    width: 100%;
}

/* Categories Section */
.section {
    padding: 100px 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.category-card {
    height: 600px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
    transition: var(--transition);
}

.category-overlay h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.btn-discover {
    padding: 10px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-discover:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* About Section */
.about {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    text-align: center;
    padding: 20px;
    background: var(--secondary-color);
    border: 1px solid #eee;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-text p {
    color: #666;
}

/* Product Pages */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 50px 0;
}

.product-card {
    background: var(--secondary-color);
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--accent-color);
}

/* Checkout Page */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.checkout-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: var(--secondary-color);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-color);
}

.order-summary {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px;
    border-radius: 5px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 20px;
}

.btn-confirm {
    width: 100%;
    padding: 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 30px;
    transition: var(--transition);
}

.btn-confirm:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-links h4 {
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 14px;
}

/* Floating Particles */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    from { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.5; }
    to { transform: translateY(-100vh); opacity: 0; }
}

/* Luxury Card 3D Effect */
.category-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    perspective: 1000px;
}

.category-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 var(--pulse-ring, rgba(37, 211, 102, 0.4));
    }
    70% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Pack Selection UI */
.pack-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pack-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    font-size: 14px;
}

.pack-option:hover {
    border-color: var(--accent-color);
}

.pack-option.selected {
    border-color: var(--accent-color);
    background: rgba(197, 160, 89, 0.1);
    font-weight: bold;
}

.pack-price {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .category-grid {
        gap: 20px;
    }
    .about {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        background: rgba(0,0,0,0.95);
        height: 70px;
    }
    
    .header-icons {
        display: flex;
        align-items: center;
        gap: 25px; /* More space between cart and menu */
        order: 3;
    }

    .hamburger {
        display: flex;
        order: 4;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }

    .logo img {
        height: 50px;
    }

    .hero {
        height: 75vh; /* N9sna f toul bch tban kamla */
        background: #000;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
        padding-top: 78px; /* sous le header fixe */
    }

    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.75) 22%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }

    .hero-bg {
        background-image: url('images/background.jpeg') !important;
        background-size: 100% 100% !important; /* tban tswira kamla f telephone */
        background-position: center center !important;
        background-repeat: no-repeat !important;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 1 !important;
        transform: scale(1) !important;
        animation: none !important;
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100%;
        min-height: 0;
        background: transparent;
        padding: 0;
        opacity: 1 !important;
        animation: none !important;
        text-align: center;
    }

    .hero-content h1 {
        flex-shrink: 0;
        font-size: 1.45rem;
        line-height: 1.25;
        margin: 0;
        padding: 12px 18px 14px;
        background: rgba(0, 0, 0, 0.65);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
        color: #fff;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-top: auto;
        margin-bottom: 14px;
        padding: 0 20px;
        letter-spacing: 1px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
        color: #eee;
    }

    .hero-content .btn-premium {
        align-self: center;
        margin-bottom: 6vh;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    }

    .section {
        padding: 60px 20px;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.8;
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 10px;
    }

    .feature-card {
        padding: 15px 5px;
    }

    .feature-card h4 {
        font-size: 0.8rem;
    }

    .feature-card p {
        font-size: 0.7rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1001;
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    /* Grids for mobile */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .category-card {
        height: 300px;
    }
    .category-overlay h3 {
        font-size: 1.2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 0;
    }
    .product-card {
        padding: 10px;
    }
    .product-img {
        height: 180px;
    }
    .product-name {
        font-size: 0.9rem;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

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

