/* Header Styles - Reusable Component */


.header-container {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex-shrink: 0;
    display:flex;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.right-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-link:hover {
    color: #6366f1;
}

.signup-link {
    background: #6366f1;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.signup-link:hover {
    background: #5558e3;
    color: white !important;
}

.user-actions {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.cart-container {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    transition: background 0.3s ease;
    position: relative;
}

.cart-link:hover {
    background: #e5e7eb;
}

.cart-icon {
    width: 22px;
    height: 22px;
    fill: #333;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-toggle:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-arrow {
    width: 18px;
    height: 18px;
    fill: #666;
    transition: transform 0.3s ease;
}

.user-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    fill: #666;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.mobile-menu {
    display: flex;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-icon {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.close-sidebar {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.close-sidebar svg {
    width: 24px;
    height: 24px;
    fill: #666;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-username {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.sidebar-guest {
    font-weight: 600;
    color: #666;
    font-size: 1.1rem;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-weight: 500;
    position: relative;
}

.sidebar-link:hover {
    background: #f3f4f6;
}

.sidebar-icon {
    width: 22px;
    height: 22px;
    fill: #666;
    flex-shrink: 0;
}

.sidebar-badge {
    position: absolute;
    right: 1.5rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .main-nav {
        display: block;
    }

    .user-actions {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 3%;
        height: 60px;
    }

    .logo-img {
        height: 38px;
    }

    .right-content {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 4%;
        height: 60px;
    }

    .logo-img {
        height: 35px;
    }

    .sidebar {
        width: 85%;
        max-width: 320px;
    }
}*/