/* 1. General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #071a14; /* Deep Desert Emerald */
    font-family: 'Lato', sans-serif;
    color: #e3e0d6; /* Vintage Cream Text */
}

/* 2. Header & Navigation Container */
.main-header {
    background-color: #0d211d; /* Dark Emerald Core */
    border-bottom: 1px solid #b38b59; /* Shimmering Antique Gold */
    padding: 20px 40px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
}

/* 3. Left Side Links */
@media (max-width: 768px) {
    .nav-links-left {
        display: flex;
        overflow-x: auto; 
        white-space: nowrap;
        padding-bottom: 10px;
        background: #0d211d;
    }
    .navbar {
        padding: 10px;
    }
}

.nav-item {
    text-decoration: none;
    color: #ffffff; 
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-item:hover, .active {
    color: #b38b59; /* Antique Gold Accent */
}

/* 4. Dropdown Category Logic (Stable Hover) */
.dropdown {
    position: relative;
    padding-bottom: 20px; 
    margin-bottom: -20px; 
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #0d211d; /* Solid Dark Emerald Plate */
    border: 1px solid #b38b59; /* Antique Gold Outer Frame */
    min-width: 240px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
}

/* Show menu when hovering over the container */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: #e3e0d6; 
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #071a14; /* Deep Emerald Inset Hover */
    color: #b38b59; 
    padding-left: 25px;
}

/* 5. Login Button (Far Right Corner) */
.nav-auth-right {
    display: flex;
    align-items: center;
}

.login-btn {
    text-decoration: none;
    color: #b38b59; 
    border: 1px solid #b38b59;
    padding: 10px 30px; 
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    background: transparent;
}

.login-btn:hover {
    background-color: #b38b59;
    color: #071a14; /* Swapped contrast context */
    box-shadow: 0 0 15px rgba(179, 139, 89, 0.3);
}

/* 6. Typography Helper */
h1, h2, .playfair {
    font-family: 'Playfair Display', serif;
}

/* --- HERO SECTION MAIN CONTAINER --- */
.hero {
    padding: 40px 0; 
    background-color: #071a14; 
    min-height: 400px; 
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* Hero Typography Styles */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px; 
    line-height: 1.1;
    margin-bottom: 15px;
    color: #b38b59; /* Highlighting the title in Gold */
}

.hero-subtitle {
    font-size: 18px;
    color: #b38b59; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 16px;
    max-width: 400px; 
    margin-bottom: 25px;
    line-height: 1.5;
    color: #b0afaa;
}

/* Hero Button Customization */
.hero-btn {
    padding: 12px 25px;
    font-size: 14px;
    background-color: #b38b59; 
    color: #071a14; 
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    background-color: #ffffff; 
    color: #071a14;
    transform: translateY(-2px);
}

/* Image Integration Optimization */
.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-hero-img {
    width: 100%;
    max-width: 450px; 
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
    animation: fadeInRight 1.5s ease-out;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- FEATURED TREASURES SECTION --- */
.featured-treasures {
    background-color: #0d211d; /* Solid structural offset layer */
    padding: 80px 0;
    text-align: center;
}

.section-title {
    color: #b38b59; 
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Grid Layout Matrix */
.items-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Double Gold Luxury Frame Card */
.item-card {
    background: #071a14; 
    border: 6px double #b38b59; 
    width: 250px;
    padding: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.item-card:hover {
    transform: translateY(-10px);
    border-color: #e3e0d6;
}

/* FIXED IMAGE FRAME RATIOS */
.item-frame {
    width: 100%; /* Fixed item card rendering constraints from 10% */
    height: 200px; /* Elevated preview box depth */
    overflow: hidden;
    border: 1px solid rgba(179, 139, 89, 0.3);
    background: #0d211d;
}

.item-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Information Layout Fields */
.item-info h3 {
    font-family: 'Playfair Display', serif;
    color: #e3e0d6; 
    margin: 15px 0 5px;
    font-size: 1.1rem;
}

.price {
    color: #b38b59; /* Unified premium luxury pricing profile */
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.view-btn {
    display: inline-block;
    background: #0d211d; 
    color: #b38b59; 
    padding: 8px 20px;
    text-decoration: none;
    border: 1px solid #b38b59;
    font-size: 0.8rem;
    transition: 0.3s;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
}

.view-btn:hover {
    background: #b38b59; 
    color: #071a14;
}

.cart-btn-header {
    text-decoration: none;
    color: #b38b59 !important; 
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 15px;
    border-right: 1px solid rgba(179, 139, 89, 0.3);
    margin-right: 10px;
}

.cart-btn-header:hover {
    color: #ffffff !important; 
}

/* --- MOBILE & UTILITY RULES --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
        margin: 10px auto;
    }

    .gallery, .info {
        flex: none;
        width: 100%;
    }

    .title {
        font-size: 28px !important;
        text-align: center;
    }

    .price {
        text-align: center;
        margin-bottom: 15px;
    }

    .navigation-actions {
        max-width: 100% !important;
        width: 100%;
        margin: 20px 0;
    }

    .back-link, .premium-cart-btn, .whatsapp-contact-btn {
        padding: 15px; 
        font-size: 14px;
    }

    .thumb-grid {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .cart-table td {
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        padding: 15px 10px;
    }

    .cart-table td:first-child {
        flex-direction: column; 
        gap: 10px;
        background: rgba(179, 139, 89, 0.08); /* Transparent gold highlight map */
    }

    .item-name {
        font-size: 16px;
        text-align: center;
    }

    .checkout-box {
        width: 100%;
        padding: 20px 10px;
    }
}

/* --- CATEGORIES MATRIX SECTION --- */
.categories-section {
    padding: 60px 5%;
    background-color: #071a14; 
    border-top: 1px solid rgba(179, 139, 89, 0.2);
    text-align: center;
}

.categories-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    gap: 40px;
    flex-wrap: wrap; 
    max-width: 1200px;
    margin: 0 auto;
}

.cat-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    width: 120px;
}

.cat-item:hover {
    transform: translateY(-10px);
}

.cat-icon-frame {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cat-icon-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(179, 139, 89, 0.5));
}

.cat-name {
    color: #b38b59; 
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(179, 139, 89, 0.3);
    padding-top: 10px;
    width: 100%;
}

/* CATEGORY RESPONSIVE WRAPPERS */
@media (max-width: 768px) {
    .categories-grid {
        gap: 20px;
    }
    .cat-item {
        width: 100px;
    }
    .cat-icon-frame {
        width: 60px;
        height: 60px;
    }
    .cat-name {
        font-size: 11px;
    }
}