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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Шапка */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo h1 {
    font-size: 24px;
    color: #2563eb;
}

.logo p {
    font-size: 14px;
    color: #666;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact p {
    font-size: 14px;
    margin: 5px 0;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.cart-btn {
    padding: 12px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

#cart-count {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 5px;
}

/* Навигация */
nav {
    background: #1e293b;
    padding: 0;
}

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

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: #2563eb;
}

/* Главный баннер */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Каталог */
.catalog {
    padding: 80px 0;
    background: #f9fafb;
}

.catalog h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e293b;
}

.category-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #e5e7eb;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #2563eb;
    text-transform: uppercase;
    font-weight: 600;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: #1e293b;
}

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

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 15px;
}

.product-sizes {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.size-badge {
    padding: 5px 10px;
    background: #e5e7eb;
    border-radius: 5px;
    font-size: 12px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #059669;
}

/* О продукте */
.about {
    padding: 80px 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1e293b;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.about-item {
    text-align: center;
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e293b;
}

.about-item p {
    color: #666;
}

/* Почему мы */
.why {
    padding: 80px 0;
    background: #f9fafb;
}

.why h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e293b;
}

.why-content ul {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.why-content li {
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 50px;
}

.why-content li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    color: #10b981;
    font-size: 24px;
    font-weight: bold;
}

/* Контакты */
.contacts {
    padding: 80px 0;
    background: white;
}

.contacts h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1e293b;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 10px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2563eb;
}

/* Футер */
footer {
    background: #1e293b;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #1e293b;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input,
.modal-content textarea {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 16px;
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

#cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #2563eb;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    padding: 5px 10px;
    background: #e5e7eb;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.remove-btn {
    padding: 5px 15px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    padding: 20px 0;
    border-top: 2px solid #e5e7eb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Плавающая кнопка корзины */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.floating-cart-icon {
    font-size: 28px;
    color: white;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .floating-cart-icon {
        font-size: 24px;
    }
}
