* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d1b4e 50%, #1a1f3a 100%);
    min-height: 100vh;
}

.site-header {
    background-color: rgba(26, 31, 58, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: #6c63ff;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.content-wrapper {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
}

.filters-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 0.6rem;
}

.filter-list a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
}

.filter-list a:hover {
    color: #6c63ff;
}

.checkbox-label {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: #c0c0c0;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.6rem;
}

.price-range {
    width: 100%;
    margin-bottom: 0.5rem;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

.products-area {
    width: 100%;
}

.results-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.result-count {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.sort-select {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.sort-select option {
    background: #1a1f3a;
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.3);
    border-color: rgba(108, 99, 255, 0.5);
}

.product-item.out-of-stock {
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sale-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.stock-badge {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
}

.product-photo {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 50%, #4845b4 100%);
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}

.product-title {
    padding: 1.2rem 1.2rem 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    min-height: 70px;
}

.product-pricing {
    padding: 0 1.2rem 1.5rem;
    font-size: 1.1rem;
}

.price-current {
    font-weight: 700;
    color: #6c63ff;
}

.price-old {
    text-decoration: line-through;
    color: #888;
    margin-right: 0.6rem;
    font-size: 0.95rem;
}

.price-sale {
    font-weight: 700;
    color: #ff6b6b;
}

.site-footer {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6c63ff;
}

.newsletter-section {
    max-width: 550px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: #6c63ff;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #5a52d5 0%, #4845b4 100%);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .filter-group {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .main-navigation a {
        font-size: 0.85rem;
    }
    
    .content-wrapper {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .filters-sidebar {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.2rem;
    }
    
    .results-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}