/* Обнуление */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}

.nav a:hover {
    color: #666;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons a {
    color: #000;
    font-size: 18px;
    text-decoration: none;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 2px;
    background: #000;
    transition: 0.3s;
}

/* Мобильное меню */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 99;
    }
    .nav.active {
        display: flex;
    }
    .burger {
        display: flex;
    }
}

/* Герой */
.hero {
    height: 500px;
    background: url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?w=1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero .btn {
    background: #fff;
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero .btn:hover {
    background: #f0f0f0;
}

/* Секции */
.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    text-align: center;
}

/* Сетка товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-card .price {
    font-weight: 600;
    color: #333;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Категории */
.categories {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.category-item {
    position: relative;
    width: 250px;
    height: 250px;
    overflow: hidden;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Футер */
.footer {
    background: #f8f8f8;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #000;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer .container {
        grid-template-columns: 1fr;
    }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: #333;
}

/* Страница товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.product-images img {
    width: 100%;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
}

.product-info .price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-info .description {
    margin-bottom: 30px;
    color: #666;
}

.sizes {
    margin-bottom: 30px;
}

.sizes h3 {
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-options span {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.size-options span:hover {
    border-color: #000;
}

.add-to-cart {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.add-to-cart:hover {
    background: #333;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}
/* Новый стиль для раздела "О нас" в футере */
.footer .footer-about {
    grid-column: 1 / -1; /* занимает все колонки сетки */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer .footer-about h4 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer .footer-about p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}
/* Галерея товара */
.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #000;
}