body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;

}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgb(0, 0, 0);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Чтобы шапка была поверх всего */
    transform: translateY(-100%); /* Скрыт наверху */
    transition: transform 0.5s ease-in-out; /* Плавный переход */
}
.cookie-notice {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    z-index: 1000;
    opacity: 1;
    display: none;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Анимация затухания */
}

.cookie-notice.hide {
    opacity: 0;
    visibility: hidden;
}
.cookie-accept {
    background-color: #5d5d5d;
    border: none;
    color: white;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
}

.header.show {
    transform: translateY(0); /* Появление заголовка */
}
.logo_header{
    max-width: 150px;
    cursor: pointer;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.logo p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.cart-icon {
    width: 40px; /* Изменяй размер по желанию */
    height: auto;
}

/* Общий стиль для кнопки */


/* Стиль и анимация для эффекта круга */
.circle-effect {
    position: absolute;
    width: 10px; /* Изначальный маленький размер */
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.664); /* Полупрозрачный чёрный */
    transform: scale(0); /* Стартовое уменьшение */
    animation: circle-expand 0.6s ease-out forwards;
    pointer-events: none; /* Чтобы круг не блокировал клики */
}

/* Анимация увеличения круга */
@keyframes circle-expand {
    to {
        transform: scale(20); /* Задаем нужный размер по завершении */
        opacity: 0; /* Исчезает в конце анимации */
    }
}

.cart-button {
    background-color: #757575;
    color: white;
    border: none;
    border-radius: 50%; /* Круглая кнопка */
    width: 50px; /* Размер кнопки */
    height: 50px; /* Размер кнопки */
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Для позиционирования счетчика */
}
.smart-basket__min-icon{
    width: 30px; /* Задайте размер иконки */
    height: 30px;
    transition: transform 0.3s ease; /* Плавная анимация для трансформации */
}
.cart-button.open .cart-icon {
    transform: rotate(20deg) scale(1.2); /* Пример анимации: поворот и увеличение */
}

.cart-button:hover {
    transform: scale(1.05);
    background-color: #424242;
}
.smart-basket__min{
    margin-top: -25px;
    margin-left: -25px;
    background-color: rgba(255, 255, 255, 0);
    color: rgb(255, 255, 255);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    
    position: absolute;
}
.smart-basket__min-count{
    position: absolute; /* Абсолютное позиционирование */
    background-color: red; /* Цвет фона */
    color: white; /* Цвет текста */
    border-radius: 50%; /* Круглая форма */
    width: 20px; /* Ширина */
    height: 20px; /* Высота */
    display: flex; /* Flexbox для центрирования текста */
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
    font-size: 0.8rem; /* Размер шрифта */

    margin-top: -35px;
    margin-left: 30px;
}

.smart-basket__min-img {
margin-top: 100px;
}

.hero {
    background-image: url('../images/BG.jpg'); 
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    transition: height 0.5s ease; /* Плавный переход */
}

.hero.shrink {
    /* Стили для уменьшенного состояния */
    height: 60vh; /* Новая высота */
    transition: height 0.5s ease; /* Плавный переход */
}

.hero h1 {
    font-size: 3rem;
    text-align: center;
}

/* Контент */
.content {
    padding: 40px;
    text-align: center;
    display: flex;              /* Включаем flexbox для контейнера */
    gap: 20px;   
    position: relative;
    max-width: 100%; /* Убедитесь, что контейнеры не превышают ширину экрана */

}
.content2 {
    padding: 40px;
    text-align: center;
  
    gap: 20px;   
    position: relative;
    max-width: 100%; /* Убедитесь, что контейнеры не превышают ширину экрана */

}
h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}
h5 {
    font-size: 5rem;

    color: wheat;
    text-align: center;
}
.filter-buttons {
     
nav-down: 6;
}

.filter-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden; /* Убираем переполнение для эффекта волны */
    position: relative; /* Относительное позиционирование для псевдоэлемента */
    transition: background-color 0.3s ease;
}

.filter-btn:focus {
    outline: none; /* Убираем стандартное обводка при фокусе */
}

/* Эффект волны */
.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: #28a746;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0); /* Скрываем волны по умолчанию */
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0; /* Скрываем волны по умолчанию */
}

.filter-btn:active::before {
    transform: translate(-50%, -50%) scale(1); /* Увеличиваем волны при нажатии */
    opacity: 1; /* Делаем волны видимыми */
}

.filter-btn:hover {
    transition: color 0.3s; /* Плавный переход для цвета текста */
  background-color: #ddd; /* Цвет при наведении */
}

.filter-btn.active {
    transition: color 0.3s; /* Плавный переход для цвета текста */
  background-color: #28a745;
  color: white;
  border-color: #0056b3;
}

.product-card {
  display: none; /* По умолчанию скрываем все товары */
  padding: 15px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

#productList {
    display: flex;           /* Используем flexbox для горизонтального выравнивания */
    flex-wrap: wrap;         /* Чтобы товары переносились на новую строку при нехватке места */
    gap: 20px;               /* Расстояние между карточками товаров */
    background-color: #202020;
    border-radius: 25px; /* Круглая форма */
    flex: 1%;                    /* Список товаров занимает 70% ширины */
    padding: 10px;                    /* Отступы для внутреннего содержимого */
}
#productList2 {
    gap: 20px;               /* Расстояние между карточками товаров */
    background-color: #202020;
    border-radius: 25px; /* Круглая форма */
    flex: 0 0 80%;                    /* Список товаров занимает 70% ширины */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    text-align: start; /* Центрирование текста */
    padding: 10px;                    /* Отступы для внутреннего содержимого */
}
#productList2 h4 {
    font-size: 1.4rem;
    color: whitesmoke;
}
#productList2 h3 {
    font-size: 1rem;
    color: antiquewhite;
}
@media (max-width:850px){
    #productList2 h4 {
        font-size: 1rem;
        color: whitesmoke;
    }
    #productList2 h3 {
        font-size: 0.7rem;
        color: antiquewhite;
    }
}
a {
  color: #00aaff; /* Голубой цвет для ссылки */
  text-decoration: none; /* Убирает подчеркивание, если нужно */
}

a:hover {
  color: #0088cc; /* Цвет при наведении (опционально) */
}
.content {
    display: flex; /* Используем flexbox для выравнивания по горизонтали */
    gap: 20px; /* Отступ между боковой панелью и списком продуктов */
}
.productsearchlist{
    background-color: #202020;
    border-radius: 25px;
    flex: 0 0 17%;   
    gap: 20px;    
    position: sticky; /* Элемент будет фиксироваться при прокрутке */
    top: 80px; /* Позиция от верха экрана, когда элемент станет "прилипшим" */
    align-self: flex-start; /* Чтобы элемент оставался в начале контента */
    height: max-content;
    padding: 5px;                 
    transition: top 0.3s ease;
}
.fixed {
    position: fixed;
    top: 20px; /* Или другое значение в зависимости от вашего дизайна */
    left: 20px; /* Или другое значение в зависимости от вашего дизайна */
    z-index: 1000; /* Убедитесь, что он будет выше других элементов */
}

.productsearchlist2{
    background-color: #202020;
    border-radius: 25px;
    flex: 0 0 17%;   
    gap: 10px;    
    max-height: 250px;              
    padding: 10px;                 
    display: none; 
}
.productsearchlist h2{
    font-size: 1.5rem;
}
.productsearchlist2 h2{
    font-size: 1.5rem;
}
.search-input {
    width: 100%;
    padding: 0 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 60px;
    font-size: 15px;
    border-radius: 15px;
    transition: .5s;
    position: relative;
    font-family: 'Exo 2', 'Open Sans', sans-serif;
}

.product-card {
    border: 1px solid #ccc;  /* Добавим границу для наглядности */
    padding: 10px;
    text-align: center;      /* Центрируем текст внутри карточек */
    box-sizing: border-box;  /* Включаем padding в общую ширину */
}

.product-card {
    display: inline-block;
    background-color: rgb(212, 212, 212);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 20%;
    margin: 20px;
    height: auto;
    transition: transform 0.3s ease; /* Плавная анимация */
}

.product-card:hover {
    transform: scale(1.05);
}
.product-card::before {
    top: 52%;
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 800px;
    height: 500px;
    background: #ffffff54;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: -1;
}

.product-card:hover::before {
    transform: translateX(-50%) scale(1);
}

.product-image {
    width: 100%;
    border-radius: 10px;
    height: auto;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
}

.product-card p {
    font-size: 1.2rem;
    color: #333;
}

.buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    margin-top: 10px; 
    margin-bottom: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.loading-container {
    display: flex;
    justify-content: center;  /* Горизонтальное выравнивание по центру */
    align-items: center;      /* Вертикальное выравнивание по центру */
  }
  .loading-container p {
    font-size: 2rem;
  }
  #loading-animation {
    width: 500px;  /* Задай нужный размер видео */
    height: 500px;
  }
  
.footer-bottom h5 {
    color: #1a1a1a;
}
.buy-button::after {
    top: 66%;
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 800px;
    height: 600px;
    background: #46d367b0;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: -1;
  }
  .buy-button:hover::after {
    transform: translateX(-50%) scale(1);
  }
  .buy-button.out-of-stock:hover::after {
    transform: translateX(0%) scale(1);
  }
  .buy-button.out-of-stock2:hover::after {
    transform: translateX(0%) scale(1);
  }
/* Анимация тряски */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}
.buy-button.out-of-stock2 {
    background-color: #185131 !important;
    color: #FFFFFF !important;
    cursor: not-allowed !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Стиль для кнопки, когда товара нет в наличии */
.buy-button.out-of-stock {
    background-color: #454e49 !important;
    color: #FFFFFF !important;
    cursor: not-allowed !important;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    transform: scale(1.05); /* Легкое увеличение */
}

/* Стиль для кнопки с товаром в наличии */
.buy-button.in-stock {
    color: #FFFFFF;
}

/* Зелёное свечение и тряска при нажатии */
.buy-button.in-stock.active {
    animation: shake 0.3s ease;
    box-shadow: 0 0 10px #4CAF50, 0 0 20px #4CAF50;
}


.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0; /* Отступ сверху и снизу */
}

.quantity-button {
    background-color: #28a745; /* Цвет кнопок */
    color: white;
    border: none;
    border-radius: 5px; /* Скругление углов */
    padding: 5px 10px; /* Отступ внутри кнопки */
    font-size: 1rem; /* Размер шрифта */
    cursor: pointer; /* Курсор указателя */
    transition: background-color 0.3s; /* Плавный переход цвета фона */
}

.quantity-button:hover {
    background-color: #218838; /* Темный зеленый при наведении */
}

.quantity-input {
    width: 40px; /* Ширина поля ввода */
    text-align: center; /* Выравнивание текста по центру */
    margin: 0 5px; /* Отступ слева и справа */
    border: 1px solid #ccc; /* Граница поля ввода */
    border-radius: 5px; /* Скругление углов */
}
.product-card h2 {
    font-size: 1.5rem;
    margin-bottom: 00px;
    color: rgb(0, 0, 0);
}

/* Модальное окно (скрыто по умолчанию) */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(0); /* Начальное состояние */
    transition: transform 0.5s ease; /* Плавный переход */
    opacity: 0; /* Скрыто */
    z-index: 1000; /* На переднем плане */
    background: white; /* Фон модального окна */
    border-radius: 10px; /* Скругление углов */
    padding: 20px; /* Отступы */
}

.modal.show {
    transform: translate(-50%, -50%) scale(1); /* Конечное состояние */
    opacity: 1; /* Показать модальное окно */
}

.modal-content {
    position: absolute;
    top: -100%;
    left: 50%;
    width: 800px;
    height: 400px;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
    border-radius: 10px; /* Скругление углов */
}


.modal-content {
    top: 50%;
    transform: translate(-50%, -50%);
}
.modal-body {
    display: flex;
    align-items: flex-start; /* Вертикальное выравнивание по верхнему краю */
}

.modal-image {
    width: 300px; /* Задайте нужный размер изображения */
    height: 300px; /* Задайте нужный размер изображения */
    margin-right: 20px; /* Отступ между изображением и текстом */
    border-radius: 5px; /* Скругление углов изображения */
}

.modal-details {
    display: flex;
    flex-direction: column; /* Вертикальное расположение текста */
}

.modal-details h2 {
    font-size: 1.5rem; /* Размер шрифта для названия */
    margin-bottom: 5px; /* Отступ снизу */
}

.modal-details p {
    font-size: 1rem; /* Размер шрифта для описания и других данных */
    margin: 5px 0; /* Вертикальные отступы между строками */
}


.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
}
.modal-back {
    position: absolute;
    width: 4000px;
    height: 4000px;
    top: -2000px;
    right: -2000px;
    font-size: 1.5rem;
    cursor: default;
    background-color: #4b4b4b00;

}
.modal-back.show {
    position: absolute;
    width: 4000px;
    height: 4000px;
    top: -2000px;
    right: -2000px;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: #4b4b4bd8;

}
.modal-content h2 {
    color: #1a1a1a;
    font-size: 2rem;
}

.modal-content h5 {
    color: #1a1a1a;
    font-size: 1rem;
}
.modal-content h3 {
    color: #1a1a1a;
    position: absolute;
    margin-top: 350px;
    margin-left: -230px;
    font-size: 2rem;
}
.modal-content h4 {
    color: #67796c;

    position: absolute;
    margin-top: 300px;
    margin-left: 100px;
    font-size: 3rem;
}

/* Основные стили для футера */
.footer {
    background-color: #333;
    color: #fff;
    position: relative; /* Можно использовать fixed, если нужно фиксировать футер */
    bottom: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
  }
  
  .footer-section {
    max-width: 300px;
    margin: 10px;
  }
  
  .footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
  }
  
  .footer-section p {
    margin: 5px 0;
  }
  
  .footer-section a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer-section a:hover {
    text-decoration: underline;
  }
  
  .footer-bottom {
    background-color: #222;
    padding: 10px 0;
    font-size: 14px;
    margin-top: 10px;
  }
  .exitb{
    display: inline-block;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px; 
    margin-bottom: 20px;
    transition: background-color 0.3s;
    border-radius: 10px; /* Скругление углов */
    margin: 10px 0;
    position: relative;
    height: auto;
    width: 100%;
    background-color: #202020;
  }
  .exitb:hover{
    background-color: #272727;
  }

  .modal {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    padding-top: 500px;
    background-color: rgba(255, 255, 255, 0);
}

.modal-content {
    position: fixed;
    padding: 20px;
    background: white;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
}

.close-payment-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.payment-option {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.payment-option:hover {
    background-color: #45a049;
}



    /* Адаптация для мобильных устройств */
    @media (max-width: 1440px) {
        .product-card {
            max-width: 260px;
            width: 25%;
        }
      }
  /* Адаптация для мобильных устройств */
  @media (max-width: 768px) {
    
    .footer-content {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-section {
      max-width: none;
      width: 100%;
      text-align: center;
    }
  }
  
  
@media (max-width:850px){
    .footer-content {
        flex-direction: column;
        align-items: center;
      }
    
      .footer-section {
        max-width: none;
        width: 100%;
        text-align: center;
      }
	.product-card {
        display: inline-block;
        background-color: rgb(212, 212, 212);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        width: 145px;
        margin: 10px;
        height: 380px;
        transition: transform 0.3s;
    }
    h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        color: white;
    }
    .product-card h2 {
        font-size: 0.8em;
        margin-bottom: 10px;
        color: rgb(0, 0, 0);
    }
    .product-card p {
        font-size: 1.1em;
        margin-bottom: 00px;
        color: rgb(0, 0, 0);
    }
    .buy-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 0.8rem;
        cursor: pointer;
        margin-top: 10px; 
        margin-bottom: 20px;
        max-width: 100px;
        transition: background-color 0.3s;
    }
    .modal-image {
        width: 150px; /* Задайте нужный размер изображения */
        height: 150px; /* Задайте нужный размер изображения */
        margin-right: 20px; /* Отступ между изображением и текстом */
        border-radius: 5px; /* Скругление углов изображения */
    }
    .modal-content {
        /* position: absolute; */
        /* top: -100%; */
        /* left: 50%; */
        width: 78%;
        height: auto;
        /* transform: translateX(-50%); */
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.5s ease;
        border-radius: 10px;
    }
    .modal-content h2 {
        color: #1a1a1a;
        font-size: 1rem;
    }
    
    .modal-content h5 {
        color: #1a1a1a;
        font-size: 0.8rem;
    }
    .modal-content h3 {
        color: #1a1a1a;
        position: absolute;
        margin-top: 150px;
        margin-left: -140px;
        font-size: 1.5rem;
    }
    .modal-content h4 {
        color: #67796c;
    
        position: absolute;
        margin-top: 200px;
        margin-left: -140px;
        width: 150px;
        font-size: 2rem;
    }
    .hero {
        height: 30vh;
        width: 100%;
    }
    #productList{
        flex: 0 0 100%;                    /* Список товаров занимает 70% ширины */
        display: flex;           /* Используем flexbox для горизонтального выравнивания */
        flex-wrap: wrap;         /* Чтобы товары переносились на новую строку при нехватке места */
        gap: 10px;               /* Расстояние между карточками товаров */
        padding: 5px;                    /* Отступы для внутреннего содержимого */
    }
    #productList2{
        flex: 0 0 100%;                    /* Список товаров занимает 70% ширины */
        display: flex;           /* Используем flexbox для горизонтального выравнивания */
        flex-wrap: wrap;         /* Чтобы товары переносились на новую строку при нехватке места */
        gap: 10px;               /* Расстояние между карточками товаров */
        padding: 5px;                    /* Отступы для внутреннего содержимого */
    }
    .productsearchlist{
        display: none;
        position: absolute;
    }
    .productsearchlist2{
        display: block;

    }
}
/* Для мобильных устройств */
@media (max-width: 419px) {
    .buy-button{
        width: 70%;
        max-width: none;
    }
    .productList {
      width: 100%; /* Занимаем всю ширину экрана */
      margin: 0; /* Убираем внешние отступы */
      padding: 0; /* Убираем внутренние отступы */
    }
    .productList2 {
        width: 100%; /* Занимаем всю ширину экрана */
        margin: 0; /* Убираем внешние отступы */
        padding: 0; /* Убираем внутренние отступы */
        
      }
    
    .product-card {
      width: 100%; /* Каждая карточка продукта также на всю ширину */
      margin: 0; /* Убираем внешние отступы между карточками */
      padding: 10px; /* Минимальный отступ внутри карточек для контента */
      box-sizing: border-box; /* Убедимся, что padding не увеличивает ширину */
      height: inherit;
    }
  }
 