/* Header Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #222;
}

.header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hide mobile-only close button on desktop */
.mobile-close { display: none; }

.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: #C27BA0;
}

.search-container .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.logo {
    flex: 1;
    text-align: center;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.icon-link {
    color: #222;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.icon-link:hover {
    color: #C27BA0;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #C27BA0;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 22px;
    height: 3px;
    background: #222;
    transition: 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

/* Disabled link style for coming-soon items */
.disabled-link {
    color: #888;
    cursor: default;
    font-style: italic;
    pointer-events: none;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 20px 30px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-item:hover a {
    color: #C27BA0;
}

.nav-item i {
    font-size: 10px;
    margin-left: 5px;
    color: #C27BA0;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: none;
    padding: 30px 40px;
    max-height: 80vh;
    overflow-y: auto;
}

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

/* NEW Products Grid - Fixed 4x2 layout with exactly 8 items */
.new-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    max-width: 100%;
}

.new-products-grid .product-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.new-products-grid .product-card:hover {
    transform: translateY(-3px);
}

.new-products-grid .product-card:hover .placeholder-img {
    background: #f0f0f0;
}

.product-image {
    margin-bottom: 8px;
}

.placeholder-img {
    width: 100%;
    height: 80px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 6px;
    font-size: 12px;
}

.new-products-grid .product-card h4 {
    font-size: 12px;
    margin-bottom: 4px;
    color: #222;
    line-height: 1.3;
}

.new-products-grid .product-card .price {
    font-size: 14px;
    font-weight: 600;
    color: #C27BA0;
}

/* Category Layout */
.category-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    max-height: 50vh;
}

.category-list-scroll {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 50vh;
    padding-right: 10px;
}

.category-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.category-list-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-list-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.category-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.category-list-scroll a {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-list-scroll a:hover {
    color: #C27BA0;
    border-bottom-color: #C27BA0;
}

.promo-banner-fixed {
    position: sticky;
    top: 0;
    height: fit-content;
}

.promo-banner-fixed .promo-banner-img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 8px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-list a {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.category-list a:hover {
    color: #C27BA0;
    border-bottom-color: #C27BA0;
}

.promo-banner {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.placeholder-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    border-radius: 8px;
}

/* Exclusives Layout */
.exclusives-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.exclusives-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exclusives-links a {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.exclusives-links a:hover {
    color: #C27BA0;
    border-bottom-color: #C27BA0;
}

/* Gift Layout */
.gift-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.gift-column a {
    display: block;
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 30px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s;
}

.gift-column a:hover {
    color: #C27BA0;
    border-color: #C27BA0;
    background: #fafafa;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .header {
        position: sticky;
        width: 100%;
    }
    
    .header-top {
        padding: 10px 15px;
        min-height: 60px;
    }
    
    /* Hide desktop search box on mobile */
    .search-container {
        display: none !important;
    }
    
    .logo {
        order: 1;
        flex: 1;
        text-align: left;
    }
    
    .header-icons {
        order: 2;
        flex: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .mobile-close {
        display: block;
        align-self: flex-end;
        font-size: 24px;
        color: #222;
        cursor: pointer;
        margin-bottom: 20px;
        padding: 10px;
    }
    
    .mobile-close:hover {
        color: #C27BA0;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item a {
        padding: 15px 0;
        text-align: left;
        font-size: 16px;
    }
    
    .mega-menu {
        display: none;
    }
    
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-layout,
    .exclusives-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gift-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-list a,
    .exclusives-links a {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* Desktop styles - hide mobile search icon */
@media screen and (min-width: 769px) {
    .mobile-search-icon {
        display: none !important;
    }
}

.promo-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); /* semi-transparent black overlay */
    text-align: center;
}

.promo-banner-overlay h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}