/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Black Condensed", "Helvetica Neue Condensed", "Helvetica Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    min-height: 100vh;
    text-transform: uppercase;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #A220E8 0%, #8B1FD9 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(162, 32, 232, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Search Bar Styles */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-bar {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Navigation Styles */
.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content Styles */
.main-content {
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Styles */
.sidebar {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(162, 32, 232, 0.2);
    border: 1px solid rgba(162, 32, 232, 0.2);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: #A220E8;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    background: linear-gradient(135deg, #A220E8 0%, #8B1FD9 100%);
    color: white;
    transform: translateX(5px);
}

.category-icon {
    font-size: 1.2rem;
}

/* Products Section Styles */
.products-section {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(162, 32, 232, 0.2);
    border: 1px solid rgba(162, 32, 232, 0.2);
}

.section-title {
    color: #A220E8;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Card Styles */
.product-card {
    background: #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(162, 32, 232, 0.2);
    border: 1px solid rgba(162, 32, 232, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(162, 32, 232, 0.3);
}

.product-image {
    width: 256px;
    height: 256px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
    border: 3px solid #A220E8;
    border-radius: 12px;
    margin: 50px auto 10px auto;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    font-size: 4rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    color: #f0f0f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    color: #A220E8;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-quantity {
    color: #888;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.no-products p {
    font-size: 1.1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #A220E8 0%, #8B1FD9 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(162, 32, 232, 0.4);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #A220E8 0%, #8B1FD9 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        margin: 0;
        max-width: 100%;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .products-section {
        order: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 320px;
    }
}
