:root {
    --primary: #D4A017; /* Honey gold */
    --primary-dark: #B8860B;
    --secondary: #8B4513; /* Jaggery brown */
    --light: #FFF8E1;
    --dark: #2C2416;
    --gray: #5D5D5D;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ===== MODERN NAVBAR REDESIGN ===== */

/* Header Styles - Modern Redesign */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
    gap: 30px;
}

/* Logo Section - Improved */
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.hamburger-menu {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px;
    color: var(--dark);
    background: none;
    border: none;
    border-radius: 8px;
    transition: var(--transition);
}

    .hamburger-menu:hover {
        background-color: var(--light);
        color: var(--primary);
    }

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 80px;
        width: auto;
        transition: var(--transition);
    }

    .logo:hover img {
        transform: scale(1.05);
    }

.logo-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.3px;
    padding: 8px 16px;
    border-left: 2px solid var(--primary);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    font-style: normal;
}

    .logo-tagline::before,
    .logo-tagline::after {
        display: none;
    }

/* Desktop Navigation - Modern Alignment */
.desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.navbar {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    height: 100%;
}

    .navbar li {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .navbar a {
        color: var(--dark);
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 8px;
        transition: var(--transition);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        font-size: 15px;
        height: 100%;
        position: relative;
    }

        .navbar a:hover {
            color: var(--primary);
            background-color: rgba(212, 160, 23, 0.08);
        }

        .navbar a.active {
            color: var(--primary);
            font-weight: 600;
        }

            .navbar a.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 20px;
                right: 20px;
                height: 2px;
                background: var(--primary);
                border-radius: 2px;
            }

/* Cart Item - Enhanced */
.cart-item {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .cart-badge.has-items {
        display: flex;
    }

/* User Info Section - Modern Alignment */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

    .user-info span {
        color: var(--dark);
        font-weight: 500;
        white-space: nowrap;
        font-size: 14px;
    }

.logout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

    .logout-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
    }

.user-info a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
}

.login-link {
    background: transparent;
    border: 1px solid #e0e0e0;
}

    .login-link:hover {
        background: #f8f9fa;
        color: var(--primary);
        border-color: var(--primary);
    }

.signup-link {
    background: var(--primary);
    color: white !important;
}

    .signup-link:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
    }

/* Mobile Navigation - Enhanced */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

    .mobile-nav.active {
        left: 0;
    }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .mobile-nav-header span {
        font-weight: 700;
        color: var(--dark);
        font-size: 1.2rem;
    }

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

    .close-mobile-menu:hover {
        background: #f5f5f5;
        color: var(--primary);
    }

.mobile-navbar {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

    .mobile-navbar li {
        margin: 0;
    }

        .mobile-navbar li a {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 1.2rem 1.5rem;
            color: var(--dark);
            text-decoration: none;
            border-bottom: 1px solid #f5f5f5;
            transition: var(--transition);
            font-size: 16px;
            font-weight: 500;
        }

            .mobile-navbar li a:hover {
                background: rgba(212, 160, 23, 0.08);
                color: var(--primary);
                padding-left: 2rem;
            }

.mobile-cart-badge {
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: auto;
    font-weight: 600;
}

    .mobile-cart-badge.has-items {
        display: inline-flex;
    }

.mobile-user-section {
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    padding: 1.5rem;
    background: #fafafa;
}

.mobile-user-welcome {
    padding: 1rem 0;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.mobile-logout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 10px;
}

    .mobile-logout-btn:hover {
        background: var(--primary-dark);
    }

.mobile-login-link,
.mobile-signup-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 0;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-login-link {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-signup-link {
    background: var(--primary);
    color: white !important;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    justify-content: center;
    border: none;
}

    .mobile-signup-link:hover {
        background: var(--primary-dark);
    }

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

    .mobile-nav-overlay.active {
        display: block;
    }

/* Cart Animation */
@keyframes cartBounce {
    0%, 20%, 60%, 100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(0.95);
    }
}

.cart-item.animate a {
    animation: cartBounce 0.6s ease;
}

/* ===== MAIN CONTENT ===== */
#mainContent {
    min-height: calc(100vh - 400px);
    padding: 20px 0;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .footer-logo img {
        height: 100px;
        width: 100px;
    }

    .footer-logo p {
        color: #ccc;
        line-height: 1.6;
        max-width: 300px;
    }

    .footer-logo a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.footer-links h3, .footer-address h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 8px;
}

    .footer-links h3:after, .footer-address h3:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--primary);
    }

.footer-links ul {
    list-style: none;
}

    .footer-links ul li {
        margin-bottom: 0.8rem;
    }

        .footer-links ul li a {
            color: #ccc;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .footer-links ul li a:hover {
                color: var(--primary);
                transform: translateX(5px);
            }

.footer-address p {
    margin-bottom: 1rem;
    color: #ccc;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .footer-address p i {
        color: var(--primary);
        margin-top: 4px;
    }

.payment-methods {
    margin-top: 1.5rem;
}

    .payment-methods img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius);
    }

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

    .footer-bottom p {
        color: #999;
        font-size: 0.9rem;
    }

.social-media {
    display: flex;
    gap: 1rem;
}

    .social-media a {
        color: #ccc;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: var(--transition);
        padding: 8px 12px;
        border-radius: var(--radius);
        background: rgba(255,255,255,0.05);
    }

        .social-media a:hover {
            color: var(--primary);
            background: rgba(212, 160, 23, 0.1);
            transform: translateY(-2px);
        }

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

    .whatsapp-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        background: #128C7E;
    }

.whatsapp-icon {
    font-size: 24px;
    margin-right: 10px;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 14px;
}

.whatsapp-number {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1100px) {
    .header-container {
        padding: 0 20px;
        gap: 20px;
    }

    .navbar a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .logo-tagline {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .logo-tagline {
        display: none;
    }

    .header-container {
        height: 70px;
        padding: 0 15px;
    }

    .user-info .login-link,
    .user-info .signup-link {
        display: none;
    }

    .user-info span {
        font-size: 13px;
    }

    .logout-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .user-info span {
        font-size: 0.9rem;
    }

    .mobile-nav {
        width: 280px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
    }

    #mainContent {
        padding: 15px 0;
    }
}

/* Mobile Phone Specific Styles */
@media (max-width: 576px) {
    .header-container {
        padding: 0 15px;
        height: 65px;
    }

    .logo img {
        height: 40px;
    }

    .hamburger-menu {
        font-size: 1.2rem;
        padding: 8px;
    }

    .mobile-nav {
        width: 85%;
        max-width: 300px;
    }

    .user-info span {
        display: none;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* WhatsApp Button for Mobile */
    .whatsapp-button {
        padding: 10px 15px;
        flex-direction: column;
        align-items: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    }

        .whatsapp-button:hover {
            width: 200px;
            height: auto;
            border-radius: 50px;
        }

    .whatsapp-icon {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 24px;
    }

    .whatsapp-text, .whatsapp-number {
        display: none;
    }

    .whatsapp-button:hover .whatsapp-text,
    .whatsapp-button:hover .whatsapp-number {
        display: block;
        text-align: center;
    }

    .whatsapp-text {
        font-size: 12px;
    }

    .whatsapp-number {
        font-size: 10px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        padding: 0 15px;
    }

    /* Mobile-specific header adjustments */
    .header-container {
        gap: 10px;
    }

    .logo-section {
        gap: 10px;
    }

    .hamburger-menu {
        font-size: 1.1rem;
        padding: 6px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 400px) {
    .header-container {
        padding: 0 12px;
    }

    .logo-section {
        gap: 8px;
    }

    .logo img {
        height: 36px;
    }

    .hamburger-menu {
        font-size: 1rem;
        padding: 5px;
    }

    .user-info {
        gap: 5px;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-logo img {
        height: 80px;
        width: 80px;
    }

    .footer-links h3, .footer-address h3 {
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding: 1rem 15px;
    }

    .social-media {
        gap: 0.5rem;
    }

        .social-media a {
            padding: 6px 10px;
            font-size: 0.8rem;
        }

    .whatsapp-button {
        bottom: 15px;
        right: 15px;
    }
}

/* Very Small Mobile Devices (iPhone 5/SE) */
@media (max-width: 320px) {
    .header-container {
        padding: 0 8px;
    }

    .logo img {
        height: 35px;
    }

    .mobile-nav {
        width: 90%;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-logo img {
        height: 70px;
        width: 70px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-media {
        flex-wrap: wrap;
        justify-content: center;
    }
}
