body {
    background-color: #F1E1C3;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
justify-content: center;
}

header {
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
}
.btn {
    display: inline-block;
    background-color: none;
    color: black;
    font-size: 18px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: none;
}

.top-navigation {
    background-color: none;
    padding: 5px;
    text-align: center;
    color: black;
    display: flex;
    justify-content: space-between; /* Располагаем элементы в панели навигации по краям */
    align-items: center; /* Выравниваем элементы по вертикали */
}

.left-navigation {
    display: flex;
}

.cart {
    margin-right: 20px;
}

.top-navigation a.btn {
    background-color: transparent;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
}

@media only screen and (max-width: 700px) {
    .top-navigation {
        flex-direction: column; /* Размещаем элементы панели навигации в столбец на мобильных устройствах */
    }
    .left-navigation {
        display: none; /* Скрываем обычную навигацию на мобильных устройствах */
    }
    .mobile-menu-btn {
        display: flex;
    }
.mobile-cart {
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 1000; /* Устанавливаем высокий уровень z-index, чтобы корзина была поверх других элементов */
}
}

.add-to-cart-form {

}
.mobile-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 230px;
    height: 100%;
    background-color: #333;
    color: #fff; /* Изменено на белый цвет текста */
    padding-top: 30px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    z-index: 1001;
}

.menu-icon {
    width: 20px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    border-radius: 2px;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #333;
    border-radius: 2px;
    position: absolute;
}

.menu-icon::before {
    top: -7px; /* расположение верхней полосы */
}

.menu-icon::after {
    bottom: -7px; /* расположение нижней полосы */
}

.mobile-menu-btn {
    background-color: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 20px;
    left: 10px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

@media only screen and (max-width: 700px) {
    .mobile-menu-btn {
        display: block;
    }
    .left-navigation {
        display: none;
    }
}

.hero {
    background-image: url('background.jpg'); /* Замени 'background.jpg' на путь к изображению для фона */
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

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


footer {
    background-color: #F1E1C3;
    color: #000;
    text-align: center;
    padding: 20px;
}

.categories ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.categories ul li {
    display: inline;
    margin-right: 20px;
}

.categories ul li a {
    text-decoration: none;
    color: #fff;
}

.new-arrivals {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.new-arrivals-item {
    width: calc(50% - 20px);
    margin-bottom: 20px;
}
        .cart-icon {
            width: 30px;
            height: 30px;
            margin-right: 10px;
        }
.top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-navigation {
    display: flex;
}

.cart {
    margin-right: 20px; /* Отступ справа для корзины */
}
.product-image {
    width: 150px;
    height: 150px;
    object-fit: cover; /* чтобы изображения соответствовали пропорциям */
}
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }
        .wrapper {
            min-height: 100%;
            display: flex;
            flex-direction: column;
        }
        .content {
            flex: 1;
        }
form {
    border: 1px solid #000;
    padding: 3px;
    margin-bottom: 20px;
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    color: black;
}
        .subcategories a {
            display: block;
            margin-bottom: 10px; /* Увеличиваем отступ между ссылками */
        }

    .product-image-container {
        position: relative;
        display: inline-block;
    }

    .product-image {
        transition: transform 0.3s ease; /* добавляем плавный переход */
    }

    .product-image:hover {
        transform: scale(1.5);
    }

    .product {
        width: 40%; /* Ширина каждого товара */
        display: inline-block;
        margin: 30px; /* Расстояние между товарами */
        vertical-align: top; /* Выравнивание товаров по верхнему краю */
        position: relative; /* Добавляем позиционирование для попапов */
    }
    .product-image-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2000;
        max-width: 90%; /* Ограничиваем максимальную ширину попапа */
        max-height: 90%; /* Ограничиваем максимальную высоту попапа */
        overflow: auto; /* Добавляем прокрутку, если попап выходит за пределы экрана */
    }

    .product-image-popup img {
        max-width: 100%; /* Устанавливаем максимальную ширину изображения в попапе */
        max-height: 100%; /* Устанавливаем максимальную высоту изображения в попапе */
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
    }

    .pagination {
        clear: both; /* Очистка плавающих элементов */
    }
.subcategories {
    column-count: 1; /* Разбиваем подкатегории на два столбца */
}
.new-arrivals {
    column-count: 4; /* Разбиваем товары на главной странице на три столбца */
}

.subcategories a,
.product {
    break-inside: avoid; /* Предотвращаем перекрытие элементов при разбивке на колонки */
}

.subcategories a {
    display: block;
    margin-bottom: 15px; /* Увеличиваем отступ между ссылками */
}

.product {
    width: calc(31% - 0px); /* Ширина каждого товара в два столбика */
    margin: 0 5px 10px 5px; /* Расстояние между товарами в двух столбиках */
    vertical-align: top; /* Выравнивание товаров по верхнему краю */
    position: relative; /* Добавляем позиционирование для попапов */
}

@media screen and (min-width: 768px) {
    .product {
        width: calc(31% - 0px); /* Ширина каждого товара в три столбика */
    }
}
.banner-image {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 800px) {
    .banner-image {
        width: 100%;
    }
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #D58C15;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover {
    background-color: #ffcc7a;
}

.button:focus {
    outline: none;
}
        .social-buttons {
            display: flex;
            gap: 10px;
        }

        .social-button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #3b5998;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
        }

        .social-button:hover {
            background-color: #2d4373;
        }

        /* Дополнительные стили для иконок */
        .fa {
            margin-right: 5px;
        }
.form-group {
    display: inline-block; /* Размещаем каждый элемент формы в строчку */
    margin-right: 10px; /* Добавляем небольшой отступ между элементами */
}

label {
    display: inline-block; /* Размещаем метки на той же строчке, что и поля ввода */
    width: 100px; /* Фиксируем ширину меток (можете изменить в соответствии с вашим дизайном) */
    text-align: right; /* Выравниваем текст меток по правому краю */
}

input[type="text"],
input[type="email"] {
    width: 200px; /* Фиксируем ширину текстовых полей (можете изменить в соответствии с вашим дизайном) */
}

button {
    display: block; /* Размещаем кнопку на новой строчке */
    margin-top: 10px; /* Добавляем отступ перед кнопкой */
}

.cart-icon {
    width: 30px; /* Устанавливаем размер иконки корзины */
    height: 30px;
}
.search-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирует по горизонтали */

}

.search-input-container {
    position: relative;
}

.search-input {
    max-width: 500px;
    height: 20px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-button {
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}
/* CSS */
.cart {
    position: relative; /* Устанавливаем позицию относительно для контейнера корзины */
    display: inline-block; /* Устанавливаем встроенный блок для контейнера корзины */
}

.cart-icon-container {
    position: relative; /* Устанавливаем позицию относительно для контейнера иконки */
}

.cart-quantity {
    position: absolute; /* Устанавливаем абсолютную позицию для цифры */
    top: -10px; /* Смещаем цифру вверх на 10px */
    right: -10px; /* Смещаем цифру вправо на 10px */
    background-color: red; /* Задаем красный цвет фона */
    color: white; /* Задаем белый цвет текста */
    border-radius: 50%; /* Создаем круглый фон */
    padding: 4px 8px; /* Добавляем отступы вокруг текста */
    font-size: 12px; /* Задаем размер шрифта */
}

.cart-link {
    position: absolute; /* Устанавливаем абсолютную позицию для ссылки */
    top: 0; /* Размещаем ссылку сверху */
    left: 0; /* Размещаем ссылку слева */
    width: 100%; /* Задаем ширину ссылки */
    height: 100%; /* Задаем высоту ссылки */
    z-index: 1; /* Устанавливаем индекс слоя, чтобы ссылка была доступной для щелчков */
}