/* =====================================================
   HEADER STYLES (Enhanced Mobile Responsive)
   ===================================================== */

/* Header & Navigation Styles */
.top-bar {
    background: #1e3a2f;
    color: #f7e9d3;
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: all 0.3s ease;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-container {
    padding: 8px 24px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: padding 0.3s ease;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a2f;
    margin: 0;
    line-height: 1.2;
    transition: font-size 0.3s ease;
}

.logo-text h1 span {
    color: #c57f1e;
}

.logo-text p {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: #5e6b5e;
    margin-top: 4px;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop a {
    text-decoration: none;
    font-weight: 500;
    color: #2c3e2b;
    transition: 0.2s;
    cursor: pointer;
}

.nav-desktop a:hover {
    color: #c57f1e;
}

/* Desktop Actions */
.desktop-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e3a2f;
    cursor: pointer;
    padding: 8px;
    transition: 0.2s;
}

.mobile-menu-btn:hover {
    color: #c57f1e;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0e3d6;
    background: linear-gradient(135deg, #1e3a2f 0%, #2a4a3c 100%);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.mobile-sidebar-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.mobile-sidebar-close:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-nav-links {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex: 1;
}

.mobile-nav-links li {
    margin-bottom: 16px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: #1e3a2f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    transition: 0.2s;
}

.mobile-nav-link:hover {
    background: #f0e3d6;
    color: #c57f1e;
}

.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0e3d6;
    background: #fefaf5;
}

.mobile-contact-info {
    margin-bottom: 16px;
}

.mobile-contact-info p {
    margin: 8px 0;
    color: #5a6557;
    font-size: 0.85rem;
}

.mobile-contact-info i {
    color: #c57f1e;
    width: 24px;
}

.mobile-shop-btn {
    width: 100%;
    background: #c57f1e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-shop-btn:hover {
    background: #9b6017;
    transform: translateY(-2px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #c57f1e;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(197, 127, 30, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-cart:hover {
    transform: scale(1.1);
    background: #9b6017;
}

.floating-cart:active {
    transform: scale(0.95);
}

.floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1e3a2f;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cart Icon Styles */
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e3a2f;
    transition: transform 0.2s ease;
    display: inline-block;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #c57f1e;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 30px;
    padding: 2px 6px;
    transition: all 0.2s ease;
}

/* =====================================================
   MOBILE RESPONSIVE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.7rem;
        padding: 6px 0;
        top: 0;
    }
    
    .navbar {
        top: 34px;
    }
    
    .navbar.scrolled {
        top: 34px;
    }
    
    .nav-container {
        padding: 12px 16px;
    }
    
    /* Hide desktop navigation and actions */
    .nav-desktop {
        display: none;
    }
    
    .desktop-actions {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Compact logo on mobile */
    .logo {
        gap: 8px;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    /* Hide text logo on mobile */
    .logo-text {
        display: none;
    }
    
    /* Scrolled state adjustments */
    .navbar.scrolled .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .navbar.scrolled .logo-text {
        display: none;
    }
    
    /* Floating cart visible on mobile */
    .floating-cart {
        display: flex;
    }
}

/* =====================================================
   SMALL MOBILE (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {
    .navbar {
        top: 30px;
    }
    
    .navbar.scrolled {
        top: 30px;
    }
    
    .nav-container {
        padding: 10px 12px;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .navbar.scrolled .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .mobile-sidebar {
        width: 100%;
        max-width: none;
    }
    
    .floating-cart {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: 16px;
        right: 16px;
    }
    
    .floating-cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-sidebar.active {
    animation: slideInRight 0.3s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.floating-cart {
    animation: bounceIn 0.5s ease;
}

/* Scroll effect for navbar */
.navbar.scrolled .logo-image {
    width: 45px;
    height: 45px;
}

.navbar.scrolled .logo-text h1 {
    font-size: 1.4rem;
}

.navbar.scrolled .logo-text p {
    font-size: 0.6rem;
}