/* Storefront navigation component — extracted from templates for CSP-friendly pages */

#navbar {
    transition: transform 0.3s ease;
}

#navbar.nav-scroll-hidden {
    transform: translateY(-100%);
}

body.nav-mobile-menu-open {
    overflow: hidden;
}

@keyframes gentle-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#unified-cart-count-badge {
    animation: gentle-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

#unified-cart-btn * {
    pointer-events: none;
}

#unified-cart-btn {
    cursor: pointer;
}

.hamburger-icon {
    width: 18px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #4b5563;
    border-radius: 1px;
    transition: all 0.2s ease;
}

button:hover .hamburger-line {
    background-color: #2563eb;
}

.mobile-menu-container {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-container.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.mobile-menu-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 280px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        right: 0.5rem;
        width: calc(100vw - 1rem);
        max-width: 320px;
    }
}

.mobile-menu-container.show .mobile-menu-panel {
    transform: translateY(0) scale(1);
}

.mobile-nav-link:hover {
    transform: translateX(4px);
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.nav-icon-home {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.nav-icon-products {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.nav-icon-admin {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
}
