/* Custom Header Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400;500&display=swap');

header.new-header {
    background-color: #f5f0e6;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Left: Logo --- */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-icon img {
    height: 70px;
    width: auto;
}



/* --- Center: Navigation --- */
.header-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-decoration: none;
    /* Removed transition here to avoid conflict */
    position: relative;
    padding: 5px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}


/* Dropdown Styles */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1200;
    /* Higher than header default */
    border-radius: 4px;
    display: block;
    /* Override any potential display:none if we kept the name, but good for safety */
}

.nav-item:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
    text-transform: capitalize;
}

.header-dropdown-item:hover {
    background-color: #f9f9f9;
    color: #ee3239;
}

/* --- Right: Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-wrapper {
    position: relative;
    margin-right: 10px;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #111;
    transition: transform 0.2s ease;
}

.search-icon-btn:hover {
    transform: scale(1.1);
}

.header-search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.header-search-form:focus-within {
    border-color: #333;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
    width: 150px;
    padding: 5px;
}

.search-input::placeholder {
    color: #999;
    opacity: 0.7;
}

.action-icon {
    color: #111;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    position: relative;
}

.action-icon:hover {
    opacity: 0.7;
    color: #111;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ee3239;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* --- Responsive --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #111;
    cursor: pointer;
}

@media (max-width: 991px) {
    header.new-header {
        padding: 15px 20px;
    }

    .header-nav {
        display: none;
        /* Hide nav on tablet/mobile, use mobile menu */
    }

    .mobile-toggle {
        display: block;
    }

    .logo-icon img {
        height: 45px;
        /* Smaller logo for mobile */
        width: auto;
        object-fit: contain;
        /* Prevent distortion */
    }

    .header-logo {
        flex-shrink: 0;
        /* Prevent squashing */
        margin-right: 10px;
    }

    .search-input {
        width: 100px;
        /* Smaller search input on tablet */
    }

    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .search-input {
        width: 0;
        /* Hide input text on small mobile, show only icon/expandable if we had JS, or just small width */
        padding: 0;
        opacity: 0;
        /* For now, let's keep it visible but very small or just hide it to save space if it breaks layout. 
           Actually, let's make it 80px. */
        width: 80px;
        opacity: 1;
        padding: 5px;
        font-size: 0.8rem;
    }

    .logo-icon img {
        height: 35px;
        /* Even smaller for phone */
    }
}