.announcement-bar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #47250E;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 999;
}

.navbar{
    top: 30px !important;
}

body{
    padding-top: 100px !important;
}

@media (max-width: 768px){
    .announcement-bar{
        font-size: 11px;
        padding: 5px 8px;
    }

    .navbar{
        top: 25px !important;
    }

    body{
        padding-top: 90px !important;
    }
}
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    background: rgba(253,246,238,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
/* Compact Navbar */

.nav-container{
    height: 55px !important;
    padding: 0 16px !important;
}

.nav-logo-img{
    height: 40px !important;
    width: auto !important;
}

.logo-main{
    font-size: 15px !important;
}

.logo-sub{
    font-size: 9px !important;
}

.nav-link{
    font-size: 14px !important;
    padding: 6px 12px !important;
}

.nav-search-btn,
.nav-account-btn,
.nav-cart-btn{
    width: 34px !important;
    height: 34px !important;
}
.nav-container{
    height: 50px !important;
}

.cart-badge{
    width: 16px !important;
    height: 16px !important;
    font-size: 8px !important;
}
/* .nav-container {
    height: 60px; */
@media (max-width: 991px) {
    .nav-container{
        height: 55px !important;
    }
}
body {
    padding-top: 72px;
}
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { font-size: 32px; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--orange); line-height: 1; }
.logo-sub { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 50px; font-weight: 500; font-size: 15px; color: var(--text-mid); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--orange); background: rgba(232,71,26,0.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-search-btn, .nav-account-btn, .nav-cart-btn {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--text-mid); transition: var(--transition); position: relative;
}
.nav-search-btn:hover, .nav-account-btn:hover, .nav-cart-btn:hover { background: rgba(232,71,26,0.1); color: var(--orange); }
.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--orange); color: white; font-size: 10px; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* FIX: hamburger had display:none inline only via responsive.css, but no base declaration.
   Setting display:none as default here; responsive.css sets display:flex on mobile. */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }

.nav-search-bar { display: none; border-top: 1px solid var(--border); padding: 16px 24px; background: white; }
.nav-search-bar.active { display: block; }
.search-container { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.search-container input { flex: 1; padding: 12px 20px; border: 2px solid var(--border); border-radius: 50px; font-size: 15px; min-width: 0; }
.search-container input:focus { border-color: var(--orange); }
.search-submit-btn { background: var(--orange); color: white; padding: 12px 24px; border-radius: 50px; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.search-submit-btn:hover { background: var(--orange-dark); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 600;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}
/* Cart Sidebar */
/* FIX: was width:420px fixed — wider than most mobile screens (375px).
   Changed to use max-width with 100vw cap so it never overflows the viewport. */
.cart-sidebar {
    position: fixed; top: 0; right: -100%; width: min(420px, 100vw); height: 100vh;
    background: white; z-index: 600; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border); }
.cart-sidebar-header h3 { font-size: 20px; }
.cart-close-btn { font-size: 28px; color: var(--text-mid); transition: var(--transition); }
.cart-close-btn:hover { color: var(--orange); }
.cart-items-container { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 60px 24px; }
.cart-empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.cart-empty p { color: var(--text-light); margin-bottom: 20px; }
.cart-sidebar-footer { padding: 20px 24px; border-top: 2px solid var(--border); }
.cart-subtotal, .cart-delivery, .cart-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.cart-total { font-weight: 700; font-size: 18px; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 4px; }
.btn-checkout { display: block; text-align: center; background: var(--orange); color: white; padding: 14px; border-radius: 50px; font-weight: 700; margin-top: 16px; transition: var(--transition); }
.btn-checkout:hover { background: var(--orange-dark); }
.btn-view-cart { display: block; text-align: center; padding: 12px; color: var(--orange); font-weight: 600; font-size: 14px; margin-top: 8px; }


/* MOBILE MENU FIX */
@media (max-width: 991px) {

    .mobile-menu {
        width: 85% !important;
        max-width: 320px !important;
        overflow-y: auto !important;
    }

    .mobile-menu-header {
        padding: 16px 20px !important;
    }

    .mobile-user-bar {
        padding: 14px 20px !important;
    }

    .mobile-nav-links {
        padding: 0 !important;
    }

    .mobile-nav-links li {
        width: 100%;
    }

    .mobile-nav-links li a,
    .mobile-logout-btn {
        display: block !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    #mobileClose {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }
}

@media (max-width: 575px) {

    .mobile-menu {
        width: 90% !important;
        max-width: 280px !important;
    }

    .mobile-user-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    .mobile-nav-links li a,
    .mobile-logout-btn {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
}


/* MOBILE NAVBAR FIX */
@media (max-width: 991px) {

    /* .nav-container{
        padding: 0 12px !important;
        height: 70px !important;
    } */

    .nav-logo{
        flex: 1;
        min-width: 0;
    }

    .logo-main{
        font-size: 16px !important;
    }

    .logo-sub{
        font-size: 10px !important;
    }

    .nav-actions{
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .nav-search-btn,
    .nav-account-btn,
    .nav-cart-btn,
    .hamburger{
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
    }

    .hamburger{
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .hamburger span{
        width: 18px !important;
    }
}

@media (max-width: 575px){

    .logo-sub{
        display:none !important;
    }

    .logo-main{
        font-size:14px !important;
    }

    .nav-logo-img{
        height:34px !important;
        max-width:70px !important;
    }

    .nav-search-btn{
        display:none !important;
    }
}
/* ========== PREMIUM NAVBAR ENHANCEMENTS ========== */

/* Glassmorphism navbar - enhanced */
.navbar {
    background: rgba(255,248,243,0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(232,71,26,0.1) !important;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}

/* Premium logo effect */
.nav-logo-img {
    filter: drop-shadow(0 2px 6px rgba(232,71,26,0.15));
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 4px 12px rgba(232,71,26,0.3));
    transform: scale(1.07) rotate(-2deg) !important;
}

/* Premium nav cart button */
.nav-cart-btn {
    background: linear-gradient(135deg, rgba(232,71,26,0.08), rgba(255,107,53,0.1)) !important;
    border: 1.5px solid rgba(232,71,26,0.15) !important;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.nav-cart-btn:hover {
    background: linear-gradient(135deg, #E8471A, #FF6B35) !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.08) !important;
}
.nav-cart-btn:hover .cart-badge {
    background: white !important;
    color: #E8471A !important;
}

/* Cart badge premium */
.cart-badge {
    background: linear-gradient(135deg, #E8471A, #FF6B35) !important;
    box-shadow: 0 2px 6px rgba(232,71,26,0.4) !important;
    font-size: 9px !important;
}

/* Premium search bar */
.nav-search-bar {
    background: rgba(255,248,243,0.98) !important;
    border-top: 1px solid rgba(232,71,26,0.1) !important;
    box-shadow: 0 12px 32px rgba(232,71,26,0.1) !important;
}
.search-container input {
    background: #FFF8F3 !important;
}
.search-container input:focus {
    background: white !important;
    box-shadow: 0 0 0 3px rgba(232,71,26,0.08) !important;
}

/* Premium hamburger animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: #E8471A !important;
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: #E8471A !important;
}
