/* Add custom CSS styles below */ 
/* =================================================================== */
/* M&E STORE - FINAL MASTER CODE WITH LOGO LOADER & ANIMATIONS         */
/* =================================================================== */

/* 1. ===== CORE DESIGN SYSTEM (VARIABLES) ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* M&E STORE Official Palette */
    --color-primary: #1e2b35;     /* Dark Navy Blue */
    --color-secondary: #b18b4c; /* Royal Gold */
    --color-background: #f0ebe5;  /* Soft Beige */
    --color-text-dark: #1e2b35;
    --color-text-light: #ffffff;

    /* Effects & Sizing */
    --radius: 22px;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* M&E STORE Logo URL */
    --logo: url('https://cdn.salla.sa/XeGyZd/Gus39GXZRwLhzPUbH9FiRZtoTnKvNoBUh3J1ApHT.png');
}


/* 2. ===== GLOBAL STYLES & ANIMATIONS ===== */
body {
    background-color: var(--color-background);
    font-family: 'Tajawal', sans-serif;
    color: var(--color-text-dark);
}

/* --- NEW: Elegant Logo Reveal Animation --- */
@keyframes elegant-reveal {
    0% {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(5px);
    }
    30% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    80% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        z-index: -1; /* Move it behind everything after animation */
    }
}



@keyframes swoop-snake {
    0%   { left: -15%; transform: translateY(-50%) rotate(0deg); }
    25%  { transform: translateY(-60%) rotate(-5deg); }
    50%  { left: 50%; transform: translateY(-50%) rotate(0deg); }
    75%  { transform: translateY(-40%) rotate(5deg); }
    100% { left: 115%; transform: translateY(-50%) rotate(0deg); }
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gold-pulse-glow {
    0%   { box-shadow: 0 0 15px rgba(177, 139, 76, 0.5); }
    50%  { box-shadow: 0 0 25px rgba(177, 139, 76, 0.8); }
    100% { box-shadow: 0 0 15px rgba(177, 139, 76, 0.5); }
}

@keyframes sway {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    75%  { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}


salla-slider.photos-slider .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
}


/* 3. ===== HEADER & NAVIGATION ===== */
.store-header {
    background-color: transparent !important;
    border-bottom: none !important;
    padding: 10px 0;
}
.main-nav-container.fixed-header .inner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    box-shadow: var(--shadow);
    margin: 5px auto;
    width: calc(100% - 40px);
}
.main-menu li > a {
    color: var(--color-primary) !important;
    font-weight: 700;
    transition: color 0.3s ease;
}
.main-menu li > a:hover {
    color: var(--color-secondary) !important;
}


/* 4. ===== HERO SLIDER & CATEGORIES ===== */
.s-block--hero-slider .home-slider__content > div {
    background: rgba(30, 43, 53, 0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.5rem;
    text-align: center;
}
.s-block--hero-slider .home-slider__content h2 {
    color: var(--color-text-light) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    font-size: 2.5rem;
}
.s-block--hero-slider .home-slider__content p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
}
.s-block--categories {
    padding: 1.5rem 1rem;
    margin: -60px auto 2rem auto;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}
.s-block--categories .s-category-card__image, 
.slide--cat-entry img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    object-fit: cover !important;
}
.slide--cat-entry h2 {
    color: var(--color-text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 8px;
    transition: var(--transition);
}
.slide--cat-entry:hover img {
    border-color: var(--color-secondary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(177, 139, 76, 0.3);
}
.slide--cat-entry:hover h2 {
    color: var(--color-secondary) !important;
}


/* 5. ===== BANNERS & PRODUCTS ANIMATIONS ===== */
.banner-entry, .banner--fixed {
    overflow: hidden;
    border-radius: var(--radius);
    transition: var(--transition);
}
.banner-entry .lazy__bg, .banner--fixed img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.banner-entry:hover .lazy__bg, .banner--fixed:hover img {
    transform: scale(1.1);
}
.s-product-card {
    overflow: hidden;
    transition: var(--transition);
}
.s-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.s-product-card .s-product-card-image a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}
.s-product-card:hover .s-product-card-image a::before {
    left: 150%;
}


/* 6. ===== FEATURES SECTION ===== */
.s-block--features__item {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    animation: gold-pulse-glow 2.5s infinite;
}
.s-block--features__item:hover {
    background-color: var(--color-secondary);
    animation: gold-pulse-glow 2.5s infinite, sway 1.5s infinite ease-in-out;
}
.s-block--features__item .feature-icon {
    background-color: transparent !important;
    margin-bottom: 1rem;
}
.s-block--features__item .feature-icon i {
    font-size: 40px;
    color: var(--color-secondary) !important;
    transition: color 0.4s ease;
}
.s-block--features__item:hover .feature-icon i {
    color: var(--color-text-light) !important;
}
.s-block--features__item h2,
.s-block--features__item p {
    color: var(--color-text-light) !important;
}


/* 7. ===== FOOTER & COPYRIGHT ===== */
.footer-is-light .store-footer {
    background: transparent;
    padding: 2rem 0;
}
.footer-is-light .store-footer .store-footer__inner {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    color: var(--color-text-light);
    background: linear-gradient(135deg, rgba(30, 43, 53, 0.85), rgba(30, 43, 53, 0.95));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}
.store-footer h3 {
    color: var(--color-secondary) !important;
}
.s-contacts-icon, .s-menu-footer-item a {
    color: #e0e0e0 !important;
}
.footer-is-light .store-footer .store-footer__inner::before {
    content: "";
    display: block;
    height: 110px;
    width: 140px;
    background-image: var(--logo);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: 50%;
    left: -15%;
    transform: translateY(-50%);
    animation: swoop-snake 20s ease-in-out infinite;
}
.alzaiem-copy-rights {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.alzaiem-footer-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-size: 200% 200%;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gradientMove 4s ease infinite;
}
.alzaiem-footer-link:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.banner-entry .lazy__bg, .banner--fixed img {
    background: transparent;
}

.s-button-element:not(:disabled):not([loading]) {
background: var(--color-primary-light);
}
/* ================================================= */
/* CORRECTED: Dynamic Navigation & Dropdown Menu     */
/* ================================================= */

/* Add a smooth transition for the background change */
.main-nav-container .inner {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* --- STATE 1: WHEN AT THE TOP OF THE PAGE (Solid Gray) --- */
.main-nav-container:not(.fixed-header) .inner {
    background: #818381 !important; /* The new slate gray color */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 50px; /* Maintain shape */
}

/* Text and icons for the gray background */
.main-nav-container:not(.fixed-header) .main-menu li > a,
.main-nav-container:not(.fixed-header) .header-btn__icon {
    color: #ffffff !important; /* White text and icons */
}
.main-nav-container:not(.fixed-header) .main-menu li > a:hover {
    color: var(--color-secondary) !important; /* Gold hover color */
}


/* --- STATE 2: WHEN SCROLLING DOWN (Glass Effect) --- */
.main-nav-container.fixed-header .inner {
    background: rgba(255, 255, 255, 0.15) !important; /* Original Glass background */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
}

/* Text and icons for the glass background */
.main-nav-container.fixed-header .main-menu li > a,
.main-nav-container.fixed-header .header-btn__icon {
    color: var(--color-primary) !important; /* Dark text */
}
.main-nav-container.fixed-header .main-menu li > a:hover {
    color: var(--color-secondary) !important; /* Gold hover */
}


/* --- PROFESSIONAL DROPDOWN MENU --- */
.main-menu .sub-menu {
    background: var(--color-primary) !important; /* Dark Navy background */
    border-radius: 12px !important;
    border: 1px solid var(--color-secondary) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-top: 10px;
    padding: 10px !important;
}

.main-menu .sub-menu li a {
    color: #ffffff !important;
    font-weight: 600;
    padding: 8px 15px !important;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-menu .sub-menu li a:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-primary) !important;
}


@media (max-width: 480px) {
.s-block--hero-slider .home-slider__content h2 {
  font-size: 1.5rem;
}
section:nth-of-type(2) {
  max-width: 100%;
}