:root {
    --color-cream: #FDF7E4;      
    --color-soft-peach: #FAEED1; 
    --color-taupe: #DED0B6;      
    --color-light-brown: #BBAB8C; 
    --color-dark-brown: #493628;
}

/* Header Styles */
.header {
    background-color: var(--color-soft-peach);
    padding: 10px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 120px;
    height: auto;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 80px;
}

.desktop-nav a {
    color: var(--color-dark-brown);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 16px;
}

.desktop-nav a:hover {
    background-color: #FFBD5A;
    color: var(--color-dark-brown);
}

/* Mobile Navigation - Hidden by default */
.mobile-nav {
    display: none;
}

/* Desktop Icons */
.icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icons a {
    color: var(--color-dark-brown);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.icons i {
    font-size: 20px;
    color: var(--color-dark-brown);
    transition: color 0.3s;
}

.icons a:hover i {
    color: var(--color-light-brown);
}

/* Cart Counter Styles */
.cart-icon-container {
    position: relative;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
}

.cart-counter.large-count {
    min-width: 24px;
    width: auto;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 10px;
}

/* Hamburger Menu - Hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-brown);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Body padding for fixed header */
body {
    padding-top: 100px;
    margin: 0;
}

/* Tablet Responsive */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .header {
        padding: 10px 40px;
    }
    
    .desktop-nav {
        gap: 40px;
    }
    
    .desktop-nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .logo img {
        width: 100px;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .header {
        padding: 10px 20px;
        height: 70px;
    }
    
    .logo img {
        width: 80px;
    }
    
    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Hide desktop navigation and icons on mobile */
    .desktop-nav {
        display: none;
    }
    
    .icons {
        display: none;
    }
    
    /* Show mobile navigation */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-soft-peach);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    .mobile-nav a {
        color: var(--color-dark-brown);
        text-decoration: none;
        font-size: 1.2rem;
        padding: 15px 30px;
        width: 80%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 2px solid transparent;
    }
    
    .mobile-nav a:hover {
        background-color: #FFBD5A;
        transform: translateX(10px);
    }
    
    /* Mobile menu icons section */
    .mobile-nav-icons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-top: 20px;
        border-top: 1px solid var(--color-taupe);
        margin-top: 20px;
    }
    
    .mobile-nav-icons a {
        font-size: 1.1rem;
        padding: 12px 30px;
        width: 80%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0 auto;
        position: relative;
    }
    
    .mobile-nav-icons a:hover {
        background-color: #FFBD5A;
    }
    
    .mobile-nav-icons .cart-counter {
        position: absolute;
        top: 5px;
        right: 20px;
        background-color: #e74c3c;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: bold;
    }
    
    /* Adjust body padding for mobile */
    body {
        padding-top: 70px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .header {
        padding: 10px 15px;
        height: 60px;
    }
    
    .logo img {
        width: 70px;
    }
    
    .mobile-nav {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 20px;
    }
    
    .mobile-nav a {
        font-size: 1.1rem;
        padding: 12px 25px;
        width: 85%;
    }
    
    .mobile-nav-icons a {
        font-size: 1rem;
        padding: 10px 25px;
        width: 85%;
    }
    
    body {
        padding-top: 60px;
    }
}