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

:root {
    --primary-red: #EF4444;
    --primary-coral: #F87171;
    --dark-bg: #0F1419;
    --darker-bg: #0A0E13;
    --card-bg: #1A1F2E;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --border-color: #2D3748;
    --accent-blue: #1E293B;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    z-index: 100;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo svg {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo svg:hover {
    transform: rotate(360deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.nav-btn {
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    flex: 1;
    max-width: 500px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.search-bar svg {
    color: var(--text-gray);
    margin-right: 0.8rem;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.search-bar input::placeholder {
    color: var(--text-gray);
}

.cart-btn {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

.cart-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-title-wrapper svg {
    color: var(--primary-red);
}

.cart-title-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-items-count {
    background: var(--accent-blue);
    color: var(--text-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: var(--accent-blue);
    color: var(--text-white);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-gray);
}

.cart-empty svg {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.cart-empty h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-red);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-blue), var(--darker-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image svg {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
    opacity: 0.3;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cart-item-category {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    color: var(--primary-red);
    font-weight: 900;
    font-size: 1.2rem;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
}

/* Cart Footer */
.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    background: var(--card-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-red);
}

.payment-method {
    margin-bottom: 1.5rem;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.payment-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    color: var(--text-white);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.payment-option:hover {
    border-color: var(--primary-red);
}

.payment-option.selected {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
}

.checkout-btn {
    width: 100%;
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
}

.checkout-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.checkout-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Announcement Bar */
.announcement {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-coral));
    padding: 0.8rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 600;
    margin-top: 80px;
    animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    line-height: 0.95;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    color: var(--primary-red);
    display: block;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(239, 68, 68, 0.8), 0 0 60px rgba(239, 68, 68, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: slideUp 0.8s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideUp 0.8s ease 0.7s both;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}

.btn-hero.primary {
    background: var(--primary-red);
    color: white;
}

.btn-hero.primary:hover {
    background: #DC2626;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}

.btn-hero.secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-color);
}

.btn-hero.secondary:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-4px);
}

/* Products Section */
.products-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.section-header svg {
    color: var(--primary-red);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-white);
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.category-btn:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    min-height: 300px;
}

.product-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    font-size: 1.2rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--accent-blue), var(--darker-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.product-image svg {
    width: 80px;
    height: 80px;
    color: var(--primary-red);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.product-card:hover .product-image svg {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.product-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-red);
}

.add-to-cart {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.add-to-cart:hover {
    background: #DC2626;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-gray);
    margin-top: 5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .category-filters {
        gap: 0.7rem;
    }
    
    .category-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem 0.5rem 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.user-info:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-red);
}

.logout-btn svg {
    width: 16px;
    height: 16px;
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem 0.5rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-dropdown-trigger:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.05);
}

.user-dropdown-trigger img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
}

.user-dropdown-trigger .username {
    font-weight: 600;
    color: var(--text-white);
}

.user-dropdown-trigger svg {
    color: var(--text-gray);
    transition: transform 0.3s ease;
}

.user-dropdown-trigger.active svg {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.user-dropdown-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-red);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
}
