/* ==========================================================================
   1. LUXURY THEME VARIABLES & GLOBAL RESETS
   ========================================================================== */
:root {
    --gold: #D4AF37;
    --black: #000000;
    --grey: #F5F5F5;
    --dark-grey: #1A1A1A;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
    color: var(--black);
    overflow-x: hidden;
}


/* ==========================================================================
   2. NAVBAR & NAVIGATION LAYOUT
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 90px;
    background: var(--white);
    border-bottom: 1px solid var(--black);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-item {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 13px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    transition: 0.3s;
}

.sale-red {
    color: red !important; 
}

.has-mega-menu {
    position: static; 
} 

.has-mega-menu:hover .nav-item {
    color: var(--gold);
}

.has-mega-menu:hover .sale-red {
    color: var(--gold) !important;
}


/* ==========================================================================
   3. MEGA MENU SYSTEM
   ========================================================================== */
.mega-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 50px 10%;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
    z-index: 1000;
    justify-content: flex-start;
    gap: 80px;
}

.has-mega-menu:hover .mega-menu {
    display: flex;
}

.menu-column h3 {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-column ul {
    list-style: none;
}

.menu-column ul li a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    display: block;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.menu-column ul li a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* Social Media Brand Hovers */
.menu-column ul li a[href*="facebook"]:hover { color: #1877F2; }
.menu-column ul li a[href*="instagram"]:hover { color: #E4405F; }
.menu-column ul li a[href*="tiktok"]:hover { color: #000000; }
.menu-column ul li a[href*="x.com"]:hover { color: #000000; font-weight: bold; }


/* ==========================================================================
   4. SEARCH BOX & ICONS
   ========================================================================== */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-box {
    background: var(--grey);
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    font-size: 16px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 120px;
}

.icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
    cursor: pointer;
}


/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ff4757;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #111111;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
    background-color: #111111;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(5px);
}


/* ==========================================================================
   6. MAIN CONTENT ELEMENTS & SLIDER LAYOUT
   ========================================================================== */
.content-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin: 90px 0 40px;
    text-align: center;
    text-transform: uppercase;
    color: var(--black);
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    padding: 0 60px;
    margin-bottom: 100px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--black);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }


/* ==========================================================================
   6.1 GLOBAL CARD STYLING & TEAM GRID LAYOUT (FIXED)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 60px;
    margin-bottom: 100px;
}

.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    transition: all 0.3s ease;
}

.img-box {
    width: 100%;
    height: 380px; 
    background-color: #f9f9f9; 
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
    border-radius: 8px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 20px; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card p {
    margin-top: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
    transition: color 0.3s ease;
}

.price {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* Luxury Card Hovers */
.product-card:hover .img-box {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.product-card:hover .img-box img {
    transform: scale(1.05);
}

.product-card:hover p {
    color: var(--gold);
}


/* ==========================================================================
   7. INFINITE AUTO-SCROLLING MARQUEE STYLING
   ========================================================================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--white);
    padding: 30px 0 100px 0;
    position: relative;
}

/* দুই পাশে হালকা শ্যাডো ইফেক্ট যাতে ছবিগুলো মসৃণভাবে ভ্যানিশ হয় */
.marquee-container::before,
.marquee-container::after {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    content: "";
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.marquee-content {
    display: flex;
    width: max-content;
}

/* ট্র্যাকগুলোর লেআউট এবং অ্যানিমেশন কানেকশন */
.product-track-1,
.product-track-2 {
    display: flex;
    gap: 30px;
    padding-right: 30px; /* গ্যাপের সাথে ব্যালেন্স রাখার জন্য */
}

.product-track-1 {
    animation: luxuryMarquee 25s linear infinite;
}

.product-track-2 {
    animation: luxuryMarquee 25s linear infinite;
}

/* মাউস হোভার করলে স্ক্রোলিং সাময়িকভাবে থেমে যাবে (লাক্সারি ফিল দেওয়ার জন্য) */
.marquee-container:hover .product-track-1,
.marquee-container:hover .product-track-2 {
    animation-play-state: paused;
}

/* প্রতিটি ইমেজের কার্ড স্টাইল */
.marquee-card {
    width: 290px;
    height: 380px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.marquee-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* হোভার ইফেক্ট */
.marquee-card:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    cursor: pointer;
}

.marquee-card:hover img {
    transform: scale(1.05);
}


/* ==========================================================================
   10. KEYFRAMES ANIMATION ENGINE (UPDATED)
   ========================================================================== */
@keyframes luxuryMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* এটি পুরো একটা ট্র্যাক বামে সরিয়ে দেয় */
}


/* রেসপন্সিভনেস (মোবাইলের জন্য মারকিউ সাইজ কিছুটা ছোট করা) */
@media (max-width: 600px) {
    .marquee-card {
        width: 180px;
        height: 240px;
    }
    .product-track-1, .product-track-2 {
        gap: 15px;
        padding-right: 15px;
    }
}


/* ==========================================================================
   11. ULTRA-FLEXIBLE RESPONSIVE LAYOUTS (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1400px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        padding: 0 30px;
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 30px;
    }
    #category-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0 30px 80px 30px;
    }
}

/* 💻 TABLET & WINDOW SPLIT BREAKPOINT FIX */
@media (max-width: 950px) {
    .navbar {
        padding: 0 20px !important;
        height: 75px !important;
    }

    .logo-container {
        gap: 8px !important;
    }
    
    .logo-text {
        font-size: 20px !important;
        letter-spacing: 2px !important;
    }

    .brand-logo {
        height: 35px !important;
    }

    /* FIX: Hiding desktop inline menu links to avoid collision UI bugs */
    .nav-links {
        display: none !important; 
    }

    /* Keep Search Box and Icon Groupings safe and un-overlapped */
    .search-box {
        padding: 6px 12px !important;
    }

    .search-box input {
        width: 100px !important;
        font-size: 12px !important;
    }
    
    .nav-icons {
        gap: 15px !important;
    }

    .icons {
        gap: 12px !important;
        font-size: 18px !important;
    }

    /* Page Grid Layout Normalizations */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
        margin: 60px 0 30px;
    }
    #category-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 20px 60px 20px;
    }
}

@media (max-width: 850px) {
    .slider-container { 
        padding: 0 40px; 
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
    .hero-description {
        font-size: 15px;
    }
    .hero-btn {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/* 📱 MOBILE VIEWPORT CONFIGURATIONS */
@media (max-width: 600px) {
    .navbar {
        padding: 0 15px !important;
    }

    /* Hide search box input field inside navbar on tiny views to clean up spatial profile */
    .search-box {
        display: none !important; 
    }
    
    .logo-text {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    .section-title {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    .product-card p {
        font-size: 11px;
        letter-spacing: 1px;
    }
    .price {
        font-size: 13px;
    }
    .product-card button {
        padding: 10px 8px;
        font-size: 11px; /* Safely scales typography layout */
    }
    #category-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 15px 40px 15px;
    }
}

@media (max-width: 480px) {
    #category-product-grid {
        grid-template-columns: repeat(1, 1fr) !important; 
    }
}