/* ========================================
   Global Header & Container Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.7;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .header-actions {
        gap: 8px;
    }

    .cart-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
}

/* Navigation Styles */
.nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    padding: 8px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: #eab308;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #eab308;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 256px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(229, 231, 235, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-content {
    padding: 16px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: #eab308;
    background: rgba(254, 240, 138, 0.8);
}

.dropdown-dot {
    width: 8px;
    height: 8px;
    background: #eab308;
    border-radius: 50%;
    margin-right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover .dropdown-dot {
    opacity: 1;
}

.dropdown-arrow-right {
    margin-left: auto;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-arrow-right {
    color: #eab308;
}

.dropdown-footer {
    padding: 16px 24px;
    background: linear-gradient(to right, rgba(254, 240, 138, 0.5), rgba(249, 250, 251, 0.5));
    border-top: 1px solid rgba(229, 231, 235, 1);
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

/* Responsive visibility */
@media (max-width: 1280px) {
    .nav-desktop {
        display: none;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }
    
    .shop-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 16px;
    }

    /* Touch-friendly buttons */
    .btn,
    button {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }

    /* Ensure readable text */
    p,
    li {
        font-size: 16px;
        line-height: 1.6;
    }
}