/* Custom Styles for Marrakech Theme */

:root {
    --primary-color: #000;
    --text-color: #fff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    /* Default: White BG, Black Text (Non-Homepage) */
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
}

/* Homepage Specific Body */
body.is_home {
    background-color: #000;
    color: #fff;
}

/* Header - Default (Non-Homepage) */
.main-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Default white header */
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header - Homepage Specific (Fixed & Transparent) */
body.is_home .main-header {
    position: fixed !important;
    padding: 30px 0;
    background: transparent !important;
    box-shadow: none;
}

/* Scrolled State (Applies to both, but main logic often for fixed header) */
/* On Homepage, when scrolled, it becomes white */
body.is_home .main-header.scrolled {
    background: #fff !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top-logo {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: margin 0.4s ease;
}

/* Shrink gap slightly on scroll */
.main-header.scrolled .header-top-logo {
    margin-bottom: 10px;
}

.logo-img {
    height: 60px;
    display: block;
    transition: all 0.4s ease;
    /* Default Link Color is Black/Dark, so logo should be normal */
    filter: none;
}

/* Homepage Logo: Initially White (Inverted) because transparent dark BG */
body.is_home .logo-img {
    filter: brightness(0) invert(1);
}

/* Homepage Scrolled Logo: Back to Black */
body.is_home .main-header.scrolled .logo-img {
    height: 40px;
    filter: none;
}




.header-bottom-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Default Nav Links: Black (Non-Homepage) */
.so-megamenu-wrapper .megamenu>li>a,
.so-megamenu-wrapper .megamenu>li>a span,
.header-bottom-nav a,
.nav-list li a {
    color: #000 !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Homepage Nav Links: White (Initially) */
body.is_home .so-megamenu-wrapper .megamenu>li>a,
body.is_home .so-megamenu-wrapper .megamenu>li>a span,
body.is_home .header-bottom-nav a,
body.is_home .nav-list li a {
    color: #fff !important;
}

/* Homepage Scrolled Nav Links: Black */
body.is_home .main-header.scrolled .so-megamenu-wrapper .megamenu>li>a,
body.is_home .main-header.scrolled .so-megamenu-wrapper .megamenu>li>a span,
body.is_home .main-header.scrolled .header-bottom-nav a,
body.is_home .main-header.scrolled .nav-list li a {
    color: #000 !important;
}

.so-megamenu-wrapper .megamenu>li>a:hover,
.header-bottom-nav a:hover,
.nav-list li a:hover {
    opacity: 0.8;
}

/* Swiper Slider */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img,
.swiper-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay for text readability at bottom */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.slide-content-wrapper {
    position: absolute;
    bottom: 100px;
    left: 100px;
    /* Left alignment */
    z-index: 10;
    color: #fff;
    text-align: left;
    max-width: 600px;
}

.slide-title-main {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.slide-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.slide-action-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.slide-action-link:hover {
    border-bottom-color: #fff;
}

/* Pagination Dots */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 40px;
    /* Dash style */
    height: 3px;
    border-radius: 0;
    margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Secondary Slider (2-col) & Tertiary (4-col) */
.secondary-slider-section,
.tertiary-slider-section,
.quaternary-slider-section {
    position: relative;
    width: 100%;
    padding: 5px 0;
    margin: 0;
    background: #fff;
}

.swiper-two-col {
    width: 100%;
    height: 90vh;
}

.swiper-four-col {
    width: 100%;
    height: 90vh;
    /* Consistent height */
}

/* Custom Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    /* Forces white color as requested */
    width: 50px;
    height: 50px;
    background: transparent;
    transition: all 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Drop shadow for visibility on light images */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 2rem;
    font-weight: bold;
}

/* Ensure images fill the slide in this mode */
.swiper-two-col .swiper-slide img,
.swiper-four-col .swiper-slide img,
.swiper-four-col-2 .swiper-slide img {
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .main-header {
        padding: 15px;
    }

    .nav-list {
        display: none;
    }

    .slide-content-wrapper {
        left: 20px;
        bottom: 50px;
        max-width: 90%;
    }

    .slide-title-main {
        font-size: 3rem;
    }

    .swiper-two-col,
    .swiper-four-col,
    .swiper-four-col-2 {
        height: 60vh;
    }
}

/* Rich Light Footer Styles */
.rich-footer {
    background-color: #fff;
    /* White background */
    color: #555;
    /* Darker text */
    padding-top: 80px;
    padding-bottom: 30px;
    font-family: var(--font-sans);
    font-size: 14px;
    border-top: 1px solid #eee;
    /* Subtle top separation */
}

.rich-footer a {
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget {
    margin-bottom: 40px;
}

.widget-title {
    color: #000;
    /* Black titles */
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-list li i {
    color: #000;
    /* Dark icons */
    font-size: 16px;
    margin-top: 3px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: #555;
    /* Dark links */
    position: relative;
    padding-left: 0;
}

.footer-links li a:hover {
    color: #000;
    padding-left: 5px;
    /* Subtle movement effect */
}

/* Newsletter Form */
.newsletter-text {
    margin-bottom: 20px;
}

.footer-newsletter-form .input-group {
    position: relative;
    border-bottom: 1px solid #000;
    /* Dark underline */
}

.footer-newsletter-form input {
    background: transparent;
    border: none;
    padding: 15px 0;
    color: #000;
    /* Dark input text */
    width: 100%;
}

.footer-newsletter-form input::placeholder {
    color: #888;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-bottom-color: #555;
}

.footer-newsletter-form button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000;
    /* Dark button icon */
    cursor: pointer;
    font-size: 16px;
}

.footer-newsletter-form button:hover {
    color: #555;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    /* Light border */
    border-radius: 50%;
    color: #000;
    /* Dark icon */
    transition: all 0.3s;
}

.social-icon:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #eee;
    /* Light divider */
    padding-top: 30px;
    margin-top: 20px;
}

.copyright-text {
    margin: 0;
    font-size: 13px;
}

.payment-icons {
    color: #000;
    /* Dark icons */
    font-size: 24px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .rich-footer {
        padding-top: 50px;
        text-align: center;
        /* Center align on mobile often looks better */
    }

    .contact-list li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .payment-icons {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Lookbook Category Grid Styles */
.lookbook-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    /* Tight gap like the example image */
    margin-top: 20px;
}

.lookbook-card {
    margin-bottom: 20px;
    position: relative;
    border: none !important;
    background: transparent !important;
}

.lookbook-card .pc-image-wrapper {
    position: relative;
    width: 100%;
    background-color: transparent !important;
    overflow: hidden;
}

.lookbook-card .pc-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lookbook-card:hover .pc-image-wrapper img {
    transform: scale(1.05);
}

/* Hidden elements in lookbook mode */
.lookbook-card .pc-bottom,
.lookbook-card .pc-badge-wrapper {
    display: none !important;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .lookbook-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lookbook-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .lookbook-grid-container {
        gap: 5px;
    }
}

/* Enhancing Category Header for Lookbook vibe */
.generic-product-top {
    text-align: center;
    padding: 40px 0 20px;
    background: transparent !important;
}

.generic-product-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 20px;
}

.gp-description {
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.generic-product-filter-section {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 30px;
}

.gpf-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-categories-wrapper ul {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-categories-wrapper ul li a {
    text-decoration: none;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.sub-categories-wrapper ul li a:hover {
    color: #000;
}

.gpf-sort select {
    border: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
    padding: 5px;
    outline: none;
}

/* Fancybox Customization - Darker Background */
/* For Fancybox v4/v5 */
:root {
    --fancybox-bg: rgba(0, 0, 0, 0.85);
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* For Fancybox v3 */
.fancybox-bg {
    background: #000 !important;
    opacity: 0.85 !important;
}

.fancybox-is-open .fancybox-bg {
    opacity: 0.9 !important;
}

/* Information Archives Grid */
.information-archives-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.information-archive-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    border: 1px solid #000;
    padding: 20px;
    text-decoration: none !important;
    color: #000;
    font-weight: 700;
    font-size: clamp(10px, 1.2vw, 14px);
    line-height: 1.4;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.iai-content {
    z-index: 2;
    position: relative;
}

.information-archive-item:hover {
    color: #fff;
}

.information-archive-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #000;
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.information-archive-item:hover::before {
    width: 150%;
    height: 150%;
    border-radius: 0;
}

@media (max-width: 1200px) {
    .information-archives-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .information-archives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .information-archives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}