/* Header Styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #d4a574;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:rem 20px;
}

/* Logo */
.logo h1 {
    font-family: 'Libre Baskerville', serif;
    color: #eb5b5b;
    font-size: 6rem;
    font-weight: 2500;
    font-style: bold;
    margin-top: 10px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: 'Libre Baskerville', serif;
    text-decoration: none;
    color: #333;
    font-weight: 900;
    font-size: 2.1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #eb5b5b;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px 15px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: #8b6f47;
}

.search-bar input {
    font-family: 'Libre Baskerville', serif;
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    width: 200px;
    font-size: 1rem;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: transform 0.2s ease;
}

.search-bar button:hover {
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
}

/* Mobile Header Containers */
.mobile-header-left,
.mobile-header-right {
    display: none;
}

/* Show logo on desktop (outside mobile containers) */
.logo {
    display: block;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Medium Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
    .header .container {
        max-width: 100%;
        padding: 1rem 30px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-actions {
        gap: 1rem;
    }
    
    .search-bar input {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 1rem;
        height: 50px;
        padding: 20px 15px 0;

        align-items: center;
    }
    
    /* Mobile Header Layout - 2 Flexbox Containers */
    .mobile-header-left {
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Hide desktop logo on mobile */
    .container > .logo:not(.mobile-header-left .logo) {
        display: none;
    }
    
    .mobile-header-left .logo h1 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-search-toggle {
        display: block;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        font-size: 1.2rem;
        padding: 8px;
        cursor: pointer;
        color: #333;
        transition: all 0.3s ease;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-search-toggle:hover {
        color: #8b6f47;
        background: #e9ecef;
        border-color: #8b6f47;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 100vh;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        z-index: 999;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 0;
        background: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0;
        height: 100vh;
        width: 100%;
    }
    
    .main-nav a {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        border-radius: 5px;
        transition: background 0.3s ease;
    }
    
    .main-nav a:hover {
        background: #eb5b5b;
        color: white;
    }
    
        
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .search-bar {
        display: none;
    }
    
    .user-actions {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        height: 50px;
        padding: 5px 10px 0;
        align-items: center;
    }
    
    .mobile-header-left .logo h1 {
        font-size: 1rem;
    }
    
    .mobile-search-toggle {
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .mobile-header-right {
        gap: 0.25rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .user-actions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .account-link,
    .cart-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .main-nav ul {
        gap: 0.25rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .header .container {
        max-width: 100%;
        padding: 1rem 40px;
    }
    
    .main-nav ul {
        gap: 2.5rem;
    }
    
    .main-nav a {
        font-size: 1.4rem;
    }
    
    .search-bar input {
        width: 250px;
        font-size: 1.1rem;
    }
    
    .logo h1 {
        font-size: 2.8rem;
    }
    
    .account-link,
    .cart-link {
        font-size: 1.1rem;
    }
}

/* Extra Large Desktop */
@media (min-width: 1600px) {
    .header .container {
        max-width: 100%;
        padding: 1.25rem 60px;
    }
    
    .main-nav ul {
        gap: 3rem;
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }
    
    .search-bar input {
        width: 300px;
        font-size: 1.2rem;
    }
    
    .logo h1 {
        font-size: 3.2rem;
    }
    
    .account-link,
    .cart-link {
        font-size: 1.2rem;
    }
}
