/* =============================================
   NAVBAR COMPONENT CSS
   ============================================= */

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.site-navbar.scrolled {
    background: rgba(255, 250, 240, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 210, 48, 0.2);
    box-shadow: 0 4px 24px rgba(43, 43, 43, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 24px;
}

/* Brand Logo */
.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(255, 210, 48, 0.4);
    transition: var(--transition);
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.navbar-brand-custom:hover .brand-icon {
    transform: rotate(-8deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.site-navbar.scrolled .brand-name {
    color: var(--dark);
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.site-navbar.scrolled .brand-tagline {
    color: var(--gray-500);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
}

.site-navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.site-navbar.scrolled .nav-links a:hover {
    color: var(--dark);
    background: rgba(255, 210, 48, 0.12);
}

.nav-links a:hover::after {
    width: 60%;
}

/* Nav actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    background: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.cart-btn:hover {
    background: var(--dark-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(43, 43, 43, 0.25);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: badgePulse 2s infinite;
}

.cart-badge.hidden {
    display: none;
}

.floating-cart-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(43, 43, 43, 0.34);
    z-index: 1030;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-cart-btn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-cart-btn:hover {
    background: var(--dark-soft);
    box-shadow: 0 16px 32px rgba(43, 43, 43, 0.32);
}

.floating-cart-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.floating-cart-icon i {
    line-height: 1;
}

.floating-cart-badge {
    top: -4px;
    right: -2px;
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
    border: 2px solid var(--white);
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 210, 48, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 210, 48, 0);
    }
}

.order-now-btn {
    background: var(--primary);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 210, 48, 0.3);
}

.order-now-btn:hover {
    background: var(--primary-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 210, 48, 0.45);
}

/* Mobile hamburger */
.hamburger-btn {
    display: none;
    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}

.site-navbar.scrolled .hamburger-btn {
    border-color: var(--gray-200);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.site-navbar.scrolled .hamburger-btn span {
    background: var(--dark);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
}

.mobile-menu .nav-links a {
    width: 100%;
    padding: 12px 16px;
}

.mobile-menu .mobile-btns {
    display: flex;
    gap: 10px;
}

.mobile-menu .mobile-btns>* {
    flex: 1;
    text-align: center;
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .desktop-actions {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .floating-cart-btn {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

@media (min-width: 993px) {
    .hamburger-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}
