* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка и меню */
header {
    background-color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    color: #4dabf7;
    margin-right: 10px;
}

.logo span {
    color: #4dabf7;
}

/* Горизонтальное меню */
.main-nav {
    background-color: #16213e;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: #e6e6e6;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #0f3460;
    color: white;
}

.nav-menu a.active {
    background-color: #0f3460;
    color: #4dabf7;
}

.nav-menu a i {
    margin-right: 8px;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #4dabf7;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #339af0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Счетчик корзины в шапке */
.cart-counter {
    position: relative;
    margin-left: 20px;
}

.cart-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-badge {
    background-color: #4dabf7;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Основное содержимое */
main {
    flex: 1;
    padding: 40px 0;
}

/* Баннер */
.banner {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(15, 52, 96, 0.8)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.banner-content {
    color: white;
    max-width: 100%;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #4dabf7;
}

.banner p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Заголовки разделов */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
    font-size: 32px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4dabf7;
    margin: 10px auto;
    border-radius: 2px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
    font-size: 32px;
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4dabf7;
    margin: 10px auto;
    border-radius: 2px;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 30px;
    color: #666;
    padding: 10px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
}

.breadcrumb a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #339af0;
}

/* Карточки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 350px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #4dabf7;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    height: 150px;
    overflow: hidden;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
}

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

.btn-cart {
    background-color: #1a1a2e;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background-color: #0f3460;
}

.rating {
    color: #ffc107;
    font-size: 14px;
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #e9ecef;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #4dabf7;
    color: white;
}

/* Футер */
footer {
    background-color: #1a1a2e;
    color: #e6e6e6;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #4dabf7;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #4dabf7;
}

.footer-col p, .footer-col a {
    color: #aaa;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #4dabf7;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #aaa;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-counter {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        justify-content: center;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title, .page-title {
        font-size: 24px;
    }
}
/* Общие стили для страниц */

.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.page-banner .banner-content {
    color: white;
    max-width: 100%;
    padding: 30px;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #4dabf7;
}

.page-banner p {
    font-size: 20px;
    opacity: 0.9;
}