:root {
    --brand-green: #165221;
    --brand-green-vibrant: #228134;
    --brand-green-nature: #7E980B;
    --brand-red: #7B1008;
    --brand-red-deep: #99130A;
    --brand-red-bright: #F01E0F;
    --brand-gold: #c5a059;
    --brand-cream: #fdfaf5;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --brand-rhythm: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--brand-cream);
    color: #333;
    overflow-x: hidden;
    width: 100vw;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



/* Classic Ticker */
.moroccan-ticker {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-vibrant));
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticker-wrap {
    display: inline-block;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 60px;
    letter-spacing: 1px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Hero Animations */
.hero-slider {
    width: 200%;
    height: 100%;
    display: flex;
    animation: slideHero 15s infinite;
}

.hero-slide {
    width: 50%;
    height: 100%;
    background-size: cover;
    /* Fill the space */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero {
        height: 60vh !important;
        /* Adjust height for mobile */
    }

    .hero-slide {
        background-size: cover;
        background-position: center;
    }

    .hero-blur-bg {
        display: block;
        /* Show blur on mobile too to fill gaps */
        filter: blur(15px) brightness(0.5);
    }
}

@media (min-width: 769px) {
    .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to top, var(--brand-cream), transparent);
        z-index: 5;
    }
}


@keyframes slideHero {

    0%,
    45% {
        transform: translateX(0);
    }

    50%,
    95% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Golden Sparks */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--brand-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--brand-gold), 0 0 20px 5px rgba(197, 160, 89, 0.5);
    animation: sparkleAnim 3s infinite ease-in-out;
    opacity: 0;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }

    50% {
        transform: scale(1) translateY(-20px);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(-40px);
        opacity: 0;
    }
}

/* Premium Header */
.main-header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--brand-green);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-wrapper img {
    height: 35px !important;
    transition: 0.3s;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burger-btn {
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: 0.3s;
}

.burger-btn:hover {
    background: #f0f0f0;
}

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

.nav-link {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-red);
    border-color: var(--brand-gold);
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.luxury-btn {
    background: linear-gradient(135deg, #f0e6d6, #fff);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.2);
}

.cta-button {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(123, 16, 8, 0.4);
    transition: 0.4s var(--brand-rhythm);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: var(--brand-red-bright);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(240, 30, 15, 0.5);
    color: white;
}

.d-mobile-none {
    display: flex;
    /* Default for layouts I used */
}

.d-desktop-none {
    display: block;
}

@media (max-width: 768px) {
    .d-mobile-none {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .d-desktop-none {
        display: none !important;
    }
}

/* Side Menu (Left) */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 2100;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 50px 30px;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
}

.side-menu.active {
    left: 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2099;
    display: none;
    backdrop-filter: blur(5px);
}

.side-nav-link {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #111;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.side-cat-title {
    font-size: 0.75rem;
    color: var(--brand-gold);
    letter-spacing: 2px;
    font-weight: 800;
    margin: 30px 0 15px;
    text-transform: uppercase;
}

.side-sub-links {
    padding-left: 10px;
}

.side-sub-link {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

/* Grid 5 per row PC / 2 mobile */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 30px;
    max-width: 1500px;
    margin: 0 auto;
}

/* 4D Product Card Premium */
.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInRhythm 1s both;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(197, 160, 89, 0.2);
    border-color: var(--brand-gold);
}

.product-image-box {
    height: 300px;
    overflow: hidden;
    background: #fcfcfc;
    position: relative;
}

.product-image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover so images are not cut off */
    background-color: #fcfcfc;
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.product-card:hover img {
    transform: scale(1.05);
    /* reduced scaling effect slightly for contain */
}

.product-info {
    padding: 25px 20px;
    text-align: center;
    background: #fff;
    position: relative;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    font-size: 1.35rem;
    color: var(--brand-red);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.product-price::after {
    content: 'MAD';
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 700;
}

/* Filter Tabs (Capsule/Pill Style) */
.filter-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 30px 20px;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 55px;
    /* Stick under header */
    z-index: 900;
    background: rgba(253, 250, 245, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 12px 28px;
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50px;
    /* Capsule shape */
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.filter-tab:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold);
    color: var(--brand-green);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.15);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-vibrant));
    color: #fff;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(22, 82, 33, 0.3), 0 0 10px rgba(34, 129, 52, 0.2);
}

/* Modal Perfection */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    color: #444;
    cursor: pointer;
    z-index: 100;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.close:hover {
    background: var(--brand-red);
    color: #fff;
    transform: rotate(90deg);
}

.modal-content {
    background: #fff;
    width: 92%;
    max-width: 1000px;
    margin: 3vh auto;
    border-radius: 30px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
    max-height: 94vh;
    border: 2px solid rgba(197, 160, 89, 0.5);
    /* Cadre magique naturel */
    box-shadow: 0 0 30px rgba(27, 85, 59, 0.25), inset 0 0 15px rgba(197, 160, 89, 0.1);
    /* Glow nature */
}

.modal-image-side {
    flex: 1.1;
    background: #fafafa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-info-side {
    flex: 0.9;
    padding: 45px;
    overflow-y: auto;
}

.main-modal-img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    transition: 0.5s;
}

.modal-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
    overflow-x: auto;
    padding: 5px;
    justify-content: center;
}

.modal-thumb {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.modal-thumb.active {
    border-color: var(--brand-red);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .d-mobile-none {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .product-image-box {
        height: 200px;
    }

    .modal-content {
        display: block;
        width: 92%;
        max-height: 80vh;
        margin: 10vh auto;
        border-radius: 20px;
        overflow-y: auto;
        border: 2px solid rgba(197, 160, 89, 0.6);
        box-shadow: 0 0 25px rgba(27, 85, 59, 0.4);
    }

    .modal-image-side {
        height: auto;
        min-height: unset;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .modal-info-side {
        padding: 15px 15px 25px;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
    }

    #modal-desc {
        order: 5;
        margin-top: 20px !important;
    }

    .advantages-mini {
        order: 6;
    }

    .scroll-hint {
        display: none !important;
    }

    #order-form {
        order: 4;
        margin-top: 15px;
    }

    .main-modal-img {
        max-height: 100px;
        display: block;
        margin: 0 auto;
        width: auto;
        max-width: 100%;
    }

    .modal-thumbnails {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .modal-thumb {
        width: 50px;
        height: 50px;
    }

    .hero {
        height: 45vh;
    }

    .filter-tabs {
        justify-content: flex-start;
    }
}

/* Luxury Mode (Dark 4D) */
body.luxury-mode .main-header {
    background: rgba(15, 15, 15, 0.95);
    border-color: #222;
}

body.luxury-mode .product-card {
    background: #121212;
    border-color: #222;
}

body.luxury-mode .modal-content {
    background: #121212;
    color: #fff;
    border: 1px solid var(--brand-gold);
}

/* --- BLOG STYLES --- */
.blog-header {
    text-align: center;
    padding: 60px 20px;
    background: #fffcf5;
    border-bottom: 2px solid var(--brand-green);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-top: -30px;
}

.blog-header h1,
.article-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--brand-red);
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.back-btn:hover {
    color: var(--brand-red);
}

/* --- RARE DESIGN UPGRADES --- */

/* 5. Alive Button (Breathing Effect) */
@keyframes breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.alive-btn {
    animation: breathing 3s infinite ease-in-out;
    transition: all var(--brand-rhythm, 0.4s) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alive-btn:hover {
    background: #D4AF37;
    transform: translateY(-5px) scale(1.05);
    animation: none;
    box-shadow: 0 8px 0 #b38f2d, 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* 1. Product Aura (Glow on Hover) */
.product-card {
    transition: transform var(--brand-rhythm, 0.5s) ease, box-shadow var(--brand-rhythm, 0.5s) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card[data-category="honey"]:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-card[data-category="oil"]:hover {
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
}

.product-card.pack-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff, #fcfcfc);
}

/* 10. Luxury Minimal Mode */
body.luxury-minimal {
    background: #fff !important;
    color: #111 !important;
}

body.luxury-minimal .hero,
body.luxury-minimal .star-divider,
body.luxury-minimal .floating-particle,
body.luxury-minimal .section-divider {
    display: none !important;
}

body.luxury-minimal .main-header {
    background: white !important;
    border-bottom: 1px solid #eee;
}

body.luxury-minimal .nav-link {
    color: #444 !important;
    font-weight: 300;
    letter-spacing: 2px;
}

body.luxury-minimal .product-card {
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #eee;
}

/* 7. Signature Style */
.visual-signature {
    font-family: 'Dancing Script', cursive;
    /* I will add this font to index.php */
    font-size: 1.8rem;
    color: #D4AF37;
    opacity: 0.8;
    margin-top: 20px;
    display: block;
}

/* 9. Moments Sections */
.moment-section {
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.moment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.moment-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.moment-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.moment-section.active .moment-text {
    opacity: 1;
    transform: translateY(0);
}

/* General Layout Fix for Sales Notification position */
.sales-notification {
    bottom: 30px;
}

/* --- EMERGENCY LIST FIX --- */
/* Force Body Start at 0 */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
}

/* Force Flex for Desktop Nav */
@media (min-width: 993px) {
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
    }

    .mobile-menu-panel {
        display: none !important;
    }

    .desktop-nav {
        display: block !important;
    }
}

/* --- PREMIUM FEATURES v2026 --- */

/* 1. WOW Intro Loader */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fffcf5;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease-out;
}

.honey-drop {
    width: 40px;
    height: 40px;
    background: #D4AF37;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: dropFall 2s infinite ease-in-out;
    margin-bottom: 20px;
}

@keyframes dropFall {
    0% {
        transform: translateY(-50px) rotate(-45deg) scale(0.8);
        opacity: 0;
    }

    50% {
        transform: translateY(0) rotate(-45deg) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(20px) rotate(-45deg) scale(1);
        opacity: 0;
    }
}

.intro-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.intro-active .intro-logo {
    opacity: 1;
    transform: translateY(0);
}

/* 9. Smart Notifications (Social Proof) */
.sales-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9990;
    transform: translateX(-200%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--brand-green);
    max-width: 320px;
}

.sales-notification.active {
    transform: translateX(0);
}

.sales-notification img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.sales-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.3;
}

.sales-time {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* Trust Badges Section */
.trust-section {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 15px;
}

.trust-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--brand-red);
}

.trust-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Timeline */
.timeline-section {
    padding: 60px 20px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

/* Floating Nature Particles */
#nature-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.nature-particle {
    position: absolute;
    bottom: -50px;
    opacity: 0.15;
    font-size: 2rem;
    animation: floatParticle 15s linear infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.15;
    }

    80% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

.timeline-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.timeline-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--brand-green);
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- GRAND VIZIER: LUXURY UPGRADES --- */

/* --- LUXURY PRESTIGE CERTIFICATE STYLE --- */
.prestige-card {
    position: relative;
    max-width: 460px;
    /* Reduced width */
    width: 92%;
    /* Balanced for mobile */
    margin: -150px auto 40px;
    /* Deeper overlap into Hero */
    background: linear-gradient(135deg, #fdfaf5 0%, #fffcf8 100%);
    padding: 35px 25px;
    /* Compact padding */
    text-align: center;
    border-radius: 4px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 10px rgba(197, 160, 89, 0.05),
        inset 0 0 100px rgba(197, 160, 89, 0.03);
    z-index: 100;
    border: 1px solid #e0d5c1;
    overflow: visible;
    transition: 0.5s var(--brand-rhythm);
}

.prestige-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    pointer-events: none;
}

/* Zellige Pattern Decoration */
.prestige-zellige {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.15;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMEw2MCAzMEwzMCA2MEwwIDMwWiIgc3Ryb2tlPSIjYzVhMDU5IiBmaWxsPSJub25lIi8+PC9zdmc+');
    background-size: 20px 20px;
    z-index: 1;
}

.z-top-left {
    top: 0;
    left: 0;
    border-right: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 0 0 40px 0;
}

.z-bottom-right {
    bottom: 0;
    right: 0;
    border-left: 1px solid rgba(197, 160, 89, 0.2);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 40px 0 0 0;
}

/* Wax Seal (Sceau de Cire) */
.prestige-seal {
    position: absolute;
    top: -35px;
    right: 15px;
    width: 75px;
    /* Scaled down */
    height: 75px;
    background: radial-gradient(circle at 30% 30%, #b31d24, #7B1008);
    border-radius: 50%;
    box-shadow:
        0 10px 20px rgba(123, 16, 8, 0.4),
        inset -5px -5px 15px rgba(0, 0, 0, 0.3),
        inset 5px 5px 15px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    z-index: 105;
    transform: rotate(-15deg);
    border: 4px double rgba(0, 0, 0, 0.1);
    animation: sealFloat 4s infinite ease-in-out;
}

@keyframes sealFloat {

    0%,
    100% {
        transform: rotate(-15deg) translateY(0);
    }

    50% {
        transform: rotate(-10deg) translateY(-8px);
    }
}

.prestige-seal i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.prestige-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    /* Scaled down */
    color: var(--brand-green);
    margin-bottom: 10px;
    font-weight: 950;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 5;
}

.prestige-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 82, 33, 0.05);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-green-vibrant);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 129, 52, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(34, 129, 52, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 129, 52, 0);
    }
}

/* --- LUXURY SPIDERWEB FRAME & GLOW WORM --- */

.hero-spiderweb-frame {
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

/* The Animated Glow Worm (dayer b chabaka) - more intense */
.hero-spiderweb-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(197, 160, 89, 0.2) 5%,
            var(--brand-gold) 15%,
            rgba(197, 160, 89, 0.2) 25%,
            transparent 40%);
    animation: rotateWorm 3s linear infinite;
    /* Slightly faster */
    z-index: 1;
}

/* The Traditional Pattern Overlay (Chabaka) */
.hero-spiderweb-frame::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMEw2MCAzMEwzMCA2MEwwIDMwWiIgc3Ryb2tlPSJyZ2JhKDE5NywgMTYwLCA4OSwgMC4yKSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIi8+PC9zdmc+');
    background-size: 30px 30px;
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.hero-frame-inner {
    position: relative;
    z-index: 3;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* Luxury Radar Scan (Radar Dail Daw) - sharper & smoother */
.hero-radar-scan {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent 0%,
            rgba(197, 160, 89, 0.05) 10%,
            rgba(197, 160, 89, 0.3) 20%,
            rgba(197, 160, 89, 0.4) 22%,
            rgba(197, 160, 89, 0) 25%,
            transparent 100%);
    z-index: 4;
    animation: radarRotate 8s linear infinite;
    /* Faster rotation */
    pointer-events: none;
    transform-origin: center;
    mix-blend-mode: screen;
    /* Makes it look more like light */
}

@keyframes radarRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Glass Shine (Scan dail daw) */
.hero-glass-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    z-index: 5;
    animation: glassScan 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes glassScan {
    0% {
        left: -150%;
    }

    40%,
    100% {
        left: 150%;
    }
}

@keyframes rotateWorm {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Bee Animation */
@keyframes floatBee {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -20px) rotate(10deg);
    }

    50% {
        transform: translate(60px, 0px) rotate(-10deg);
    }

    75% {
        transform: translate(30px, 20px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.storytelling-section {
    position: relative;
    padding: 120px 20px;
    background: #fdfaf5;
    /* Parchment base */
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        url('https://www.transparenttextures.com/patterns/handmade-paper.png');
    overflow: hidden;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

/* Trust Badge Cards — Compact Style */
.trust-badge-card {
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.trust-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
    border-color: var(--brand-gold);
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-green), #228134);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 15px rgba(22, 82, 33, 0.25);
}

.trust-badge-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.trust-badge-desc {
    font-size: 0.78rem;
    color: var(--brand-gold);
    font-weight: 700;
}

@media (max-width: 768px) {

    /* Trust grid: 2 columns on mobile */
    .trust-section [style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.story-parchment-border {
    position: absolute;
    inset: 40px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    pointer-events: none;
    z-index: 1;
}

.storytelling-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 950;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--brand-green);
    position: relative;
    z-index: 2;
}

.heritage-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.heritage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMEw2MCAzMEwzMCA2MEwwIDMwWiIgc3Ryb2tlPSJyZ2JhKDE5NywgMTYwLCA4OSwgMC4wNSkiIGZpbGw9Im5vbmUiLz48L3N2Zz4=');
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.heritage-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.heritage-image-stack {
    position: relative;
    height: 450px;
}

.heritage-img {
    position: absolute;
    border-radius: 15px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.6s ease;
}

.heritage-img:hover {
    transform: scale(1.02) translateY(-10px);
}

@media (max-width: 768px) {
    .heritage-section {
        padding: 50px 0;
    }

    .heritage-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .heritage-content {
        text-align: center;
        padding: 0 20px;
    }

    .heritage-content h2 {
        font-size: 2rem;
    }

    .heritage-image-stack {
        height: 350px;
        width: 100%;
    }

    .h-img-1 {
        width: 80%;
    }

    .h-img-2 {
        width: 70%;
    }
}

/* --- SCARCITY & RARENESS --- */
.scarcity-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.scarcity-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scarcity-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.scarcity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-red));
    border-radius: 2px;
    transition: width 2s ease-out;
}

/* Glassmorphism Utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- RARE UX: VISUAL BREATHING & LIGHT --- */

/* 5. Ambient Light Overlay */
.ambient-light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    animation: ambientShift 30s infinite alternate linear;
}

@keyframes ambientShift {
    0% {
        background-position: 0% 0%;
        opacity: 0.3;
    }

    50% {
        background-position: 100% 100%;
        opacity: 0.6;
    }

    100% {
        background-position: 50% 0%;
        opacity: 0.3;
    }
}

/* 4. Typography Breathing */
.premium-breathing {
    animation: textBreath 12s infinite ease-in-out;
    display: inline-block;
}

@keyframes textBreath {

    0%,
    100% {
        transform: scale(1);
        letter-spacing: normal;
    }

    50% {
        transform: scale(1.02);
        letter-spacing: 1px;
    }
}

/* 8. Visual Breathing Space */
.breath-space {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

/* Easter Egg Animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}

/* Scroll Resistance Simulation Area */
.heritage-section,
.storytelling-section {
    scroll-snap-align: start;
}

/* Force 2 columns on mobile for product grid as requested by user */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 15px 12px !important;
    }

    .product-image-box {
        height: 180px !important;
        /* Better ratio for mobile */
    }

    .product-card {
        width: 100% !important;
        border-radius: 16px !important;
    }

    .product-title {
        font-size: 0.95rem !important;
        height: 2.6rem;
        /* Force 2 lines max */
        overflow: hidden;
    }

    .product-info {
        padding: 15px 10px !important;
    }

    .filter-tabs {
        top: 50px;
        /* Adjust for mobile header height */
        padding: 15px 10px;
    }
}

/* --- Enhanced Developer Signature --- */
.dev-credit {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.dev-credit:hover {
    opacity: 1;
}

/* Global Hero Decorations Removed as per user request */

/* Floating Light Particles (des truc) */
.hero-light-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--brand-gold);
    z-index: 6;
    animation: particleFloat 10s infinite alternate ease-in-out;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50px, -200px) scale(1);
        opacity: 0.2;
    }
}

.dev-link {
    color: var(--brand-gold) !important;
    font-weight: 900;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.dev-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}

.dev-link:hover::after {
    width: 100%;
}

.dev-icon {
    color: var(--brand-red);
    /* Heart color */
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

/* --- Extra Polish: Smooth Scroll Behavior --- */
html {
    scroll-behavior: smooth;
}

/* Fixed Modal CSS */
.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    background: #fdfdfd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.close:hover {
    color: var(--brand-red);
    transform: rotate(90deg) scale(1.1);
}

/* Footer Classes */
.luxury-footer {
    background: #0d0d0d;
    color: #fff;
    border-top: 5px solid var(--brand-gold);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    position: relative;
    z-index: 2;
}

.social-links a:hover {
    background: var(--brand-gold) !important;
    color: #000 !important;
    transform: translateY(-3px);
}

.footer-links a:hover {
    color: var(--brand-gold) !important;
    padding-left: 5px;
}

@media (min-width: 769px) {
    .burger-btn {
        display: none !important;
    }
}

/* --- OFFERS SELECTION SYSTEM --- */
.offers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-card {
    position: relative;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
}

.offer-card:hover {
    border-color: var(--brand-gold);
    background: #fffcf5;
}

.offer-card.active {
    border-color: var(--brand-green);
    background: rgba(45, 90, 39, 0.05);
}

.offer-check {
    font-size: 1.4rem;
    color: #ddd;
    transition: 0.3s;
}

.offer-card.active .offer-check {
    color: var(--brand-green);
    transform: scale(1.2);
}

.offer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.offer-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--brand-red);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--brand-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(139, 29, 36, 0.2);
}

.offer-savings {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-green);
    background: rgba(45, 90, 39, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 600px) {
    .offer-card {
        padding: 12px 15px;
    }

    .offer-name {
        font-size: 0.85rem;
    }

    .offer-price {
        font-size: 1.1rem;
    }
}