/* --- 1. VARIABLES & RESET (MATCHING INDEX.HTML) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- CHARCOAL & COPPER THEME --- */
    --primary: #36454F; 
    --primary-dark: #2A363D;
    --secondary: #5D5C61;
    --accent: #B87333;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --bg-light: #f3f4f6;
    --gradient: linear-gradient(135deg, #36454F 0%, #5D5C61 100%);
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- 2. HEADER LAYOUT (EXACT MATCH TO INDEX) --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    
    padding: 1rem 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- 3. HEADER ELEMENTS --- */

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    
    flex: 0 0 auto; 
    justify-content: center;
}

.site-logo {
    height: 70px; 
    width: auto;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NAV LINKS */
.nav-links {
    display: none;
}

@media(min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 30px;
        align-items: center;
        
        /* Ensures logo remains centered */
        flex: 1; 
    }

    .nav-links > a,
    .nav-item .menu-trigger {
        font-weight: 500;
        color: var(--text-dark);
        position: relative;
        cursor: pointer;
        padding: 5px 0; /* Space for the underline */
    }

    /* Hover Line Effect */
    .nav-links > a::after,
    .nav-item .menu-trigger::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background: var(--primary);
        transition: width 0.3s;
    }

    .nav-links > a:hover::after,
    .nav-item:hover .menu-trigger::after {
        width: 100%;
    }
    
    .nav-links > a:hover,
    .nav-item:hover .menu-trigger {
        color: var(--primary); 
    }
}

/* ICONS */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    
    /* Ensures logo remains centered */
    flex: 1; 
    justify-content: flex-end; 
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-dark);
    position: relative; /* FIX: Anchors the cart count */
}

.icon-btn:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- 4. MEGA MENU STYLES --- */
.nav-item {
    display: flex;
    align-items: center;
    position: static; 
}

.mega-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 40px 5%;
    opacity: 0;
    visibility: hidden;
    margin-top: 10px;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    gap: 40px;
}

.menu-column h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--accent); 
    display: inline-block;
    padding-bottom: 5px;
}

.menu-column ul li { margin-bottom: 12px; }

.menu-column ul li a {
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.2s;
}

.menu-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* --- 5. PAGE HEADER SECTION (SLIDESHOW) --- */
.page-header {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-bottom: 50px;
}

.slideshow-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    
    opacity: 0;
    animation: fadeInOut 20s infinite;
}

/* Animation timing */
.slideshow-images .slide:nth-child(1) { animation-delay: 0s; }
.slideshow-images .slide:nth-child(2) { animation-delay: 5s; }
.slideshow-images .slide:nth-child(3) { animation-delay: 10s; }
.slideshow-images .slide:nth-child(4) { animation-delay: 15s; }

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(1.05); } 
    3% { opacity: 1; transform: scale(1); }
    24% { opacity: 1; transform: scale(1); } 
    25% { opacity: 0; transform: scale(1.05); } 
    100% { opacity: 0; transform: scale(1.05); }
}

/* --- Content Overlay (Text) --- */
.page-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    z-index: 10;
    padding: 0 20px;
}

.page-header-content h1 { 
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-header-content p {
    font-size: 1.2rem;
    color: #f3f4f6;
    font-weight: 400;
    /* Corrected spacing above CTA button */
    margin-bottom: 4rem; 
    max-width: 800px;
}

/* --- CTA Button Styling (Matching Index Page) --- */
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.6);
}

/* --- 6. CATEGORY GRID BOXES --- */
#categories {
    scroll-margin-top: 120px; 
}

.category-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
}

.category-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-decoration: none;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Specific Images (Ensure you download these locally!) */
/* Specific Images */

.card-watches::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1524592094714-0f0654e20314?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.card-jewelry::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.card-bags::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1590874103328-eac38a683ce7?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.card-eyewear::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1511499767150-a48a237f0083?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.category-card:hover::before {
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.shop-now {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--white);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.shop-now:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateX(-50%) translateY(-5px);
}

.category-card:hover .shop-now {
    opacity: 1;
    bottom: 50px;
}

/* --- 7. TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    top: 100px;
    right: -350px;
    background: var(--gradient);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 500;
    font-size: 1rem;
    min-width: 280px;
}

.toast-notification.show {
    right: 0;
}

/* --- 8. FOOTER STYLES --- */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 5% 1rem;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #f8fafc;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
    text-shadow: 0 0 8px rgba(67, 97, 238, 0.4);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #64748b;
}