/* Color Palette: Charcoal, Cream & Gold */
:root {
    --bg-cream: #FDFBF7;
    --charcoal: #212529;
    --charcoal-light: #343A40;
    --gold: #D4AF37;
    --gold-hover: #C5A028;
    --white: #FFFFFF;
    --gray-light: #E9ECEF;
    --gray-text: #6C757D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-cream);
    color: var(--charcoal);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--charcoal);
    color: var(--white);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--charcoal-light);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--gold);
    color: var(--charcoal);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Search Bar & Icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--charcoal-light);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 14px;
    width: 150px;
}

.search-box input::placeholder {
    color: #ADB5BD;
}

.search-box i {
    color: var(--gold);
    cursor: pointer;
}

.icon-btn {
    position: relative;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
}

.icon-btn .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: var(--charcoal);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Live Hero Slider */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background-color: var(--charcoal);
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 1.2s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray-light);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(33, 37, 41, 0.6);
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--gold);
    color: var(--charcoal);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 6px;
}

.btn-gold {
    display: inline-block;
    background-color: var(--gold);
    color: var(--charcoal);
    padding: 12px 30px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-gold:hover,
.btn-gold:active,
.btn-gold:focus {
    background-color: var(--charcoal);
    color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.03);
}

/* Collection Categories */
.categories {
    padding: 60px 20px;
}

.categories h2, .products-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--charcoal);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.cat-card:hover img {
    transform: scale(1.05);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(33, 37, 41, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-overlay h3 {
    color: var(--white);
    font-size: 24px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

/* Product Grid */
.products-section {
    padding-bottom: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Desktop Image Box */
.product-img-box {
    position: relative;
    height: 280px;
    background: var(--gray-light);
    width: 100%;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================================
   EXACT PHOTO TARGETING (Head-to-Chest Crop for All 8 Cards)
   ======================================================== */

/* 1. Kurti Girl Photo */
.product-img-box img[src*="photo-1701252068382"] {
    object-position: 35% 18%;
}

/* 2. Saree Girl Photo (Removes empty blue sky at top, shows face + saree chest) */
.product-img-box img[src*="photo-1727430228383"] {
    object-position: 50% 34%;
}

/* 3. Two Boys Jacket Photo (Removes empty sky at top, shows both faces + jackets) */
.product-img-box img[src*="photo-1760737854350"] {
    object-position: 50% 42%;
}

/* 4. Kidswear Photo */
.product-img-box img[src*="photo-1611428813653"] {
    object-position: 50% 25%;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E63946;
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--charcoal);
    transition: color 0.3s;
    z-index: 2;
}

.wishlist-btn:hover {
    color: #E63946;
}

.product-details {
    padding: 15px;
}

.category-tag {
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
}

.product-details h4 {
    font-size: 16px;
    margin: 5px 0 10px;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--charcoal);
}

.old-price {
    font-size: 13px;
    color: var(--gray-text);
    text-decoration: line-through;
}

.card-action-btns {
    display: flex;
    gap: 8px;
}

.btn-save, .btn-buy {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-save {
    background: var(--gray-light);
    color: var(--charcoal);
}

.btn-save:hover {
    background: #CED4DA;
}

.btn-buy {
    background: var(--gold);
    color: var(--charcoal);
}

.btn-buy:hover {
    background: var(--gold-hover);
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 60px 40px 30px 40px;
    border-top: 3px solid var(--gold);
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
}

.footer-col p {
    color: #ADB5BD;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ADB5BD;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-col i {
    color: var(--gold);
    margin-right: 8px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.social-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--charcoal-light);
    color: var(--white);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    width: fit-content;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.social-item i {
    font-size: 18px;
    color: var(--gold);
    margin-right: 10px;
}

.social-item:hover,
.social-item:active {
    border-color: var(--gold);
    background-color: var(--charcoal);
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--charcoal-light);
    font-size: 13px;
    color: #ADB5BD;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE FIXES
   ========================================== */

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

@media (max-width: 768px) {
    .nav-links, .search-box {
        display: none;
    }
    
    .cat-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }

    /* Mobile Image Box Height */
    .product-img-box {
        height: 330px;
        width: 100%;
    }

    /* Mobile Specific Face-to-Chest Fine Tuning */
    .product-img-box img[src*="photo-1701252068382"] {
        object-position: 35% 15%;
    }

    .product-img-box img[src*="photo-1727430228383"] {
        object-position: 50% 35%;
    }

    .product-img-box img[src*="photo-1760737854350"] {
        object-position: 50% 44%;
    }

    .product-img-box img[src*="photo-1611428813653"] {
        object-position: 50% 25%;
    }

    .cat-card {
        height: 250px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 20px 20px 20px;
    }
}