/* Общие стили для страницы */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f2f2f2;
  background-image: url('img/fon/soft-texture.png');
  background-size: cover;
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  /* НЕ делаем display: flex здесь! */
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Основной контейнер */
.main-content {
    flex: 1;
    padding: 2px;
}

/* Таблица корзины */
#cart-table {
    width: 100%;
    border-collapse: collapse;
}

#cart-table th,
#cart-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

#cart-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Сумма заказа */
#total-amount {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Форма заказа */
#order-form {
    margin-top: 30px;
}







/* Шапка */
header {
    /*background-color: #ddd;*/
    color: #000000;
    padding: 0 10px 10px 10px; /* сверху 0, по бокам и снизу 30px */
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;

   /* box-shadow: 0 12px 9px #dddddd; /* <<< мягкая тень снизу */
}



/* Контейнер (единственная версия) */
.header-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding-top: 0px;          /* регулируй отступ сверху */
    padding-bottom: 0px;       /* регулируй отступ снизу */
    overflow: hidden;
    contain: paint;             /* изоляция перерисовок */
}

/* Заголовок */
.header-container h1 {
    font-size: 110px;
    font-family: 'Inter', cursive;
    background: linear-gradient(
        270deg,
        #0c1548, #17607a, #0b5574, #1e3c72, #2a5298, #102673, #113161
    );
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: night-sky 15s ease infinite;
    position: relative;
    z-index: 3;                 /* выше звёзд */
    will-change: background-position;
    transform: translateZ(0);   /* стабилизируем слой */
}
h1.store-title {
    margin: 20px 0 20px 0;
    line-height: 1;
}


/* Кликабельный заголовок-ссылка */
.header-title {
    position: relative;
    z-index: 4;                 /* точно выше звёзд */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Звёзды — общий базовый стиль */
.header-container::before,
.header-container::after {
    content: "";
    position: absolute;
    top: -200px; left: -200px; right: -200px; bottom: -200px;
    background-size: 1200px 800px;
    pointer-events: none;       /* главное: не перехватывать hover! */
    will-change: background-position, opacity;
}

/* дальние (медленные) */
/*.header-container::before {
    z-index: 1;
    background-image:
        radial-gradient(3px 3px at 20px 30px, #ffffff, transparent),
        radial-gradient(3px 3px at 250px 120px, #dbe9ff, transparent),
        radial-gradient(3px 3px at 500px 200px, #b8c6db, transparent),
        radial-gradient(3px 3px at 750px 80px, #9fcaff, transparent);
    animation: stars-move-slow 60s linear infinite, twinkle 5s ease-in-out infinite;
}*/

/* ближние (быстрые) */
/*.header-container::after {
    z-index: 2;
    background-image:
        radial-gradient(4px 4px at 100px 60px, #ffffff, transparent),
        radial-gradient(5px 5px at 400px 150px, #dbe9ff, transparent),
        radial-gradient(4px 4px at 700px 250px, #b8c6db, transparent),
        radial-gradient(5px 5px at 900px 100px, #ffffff, transparent);
    animation: stars-move-fast 30s linear infinite, twinkle 3s ease-in-out infinite;
}*/

/* анимации */
@keyframes night-sky {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes stars-move-slow {
    0% { background-position: 0 0; }
    100% { background-position: -1200px -800px; }
}
@keyframes stars-move-fast {
    0% { background-position: 0 0; }
    100% { background-position: -2400px -1600px; }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* подпись под заголовком */
.subtitle {
    font-size: 20px;
    color: #555;
    margin: 0px 0 10px 0;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}





/* Навигация */
.main-nav {
    text-align: center;
    margin-top: 0px;
    padding: 0px;
    
    box-shadow:  0px 2px 20px 5px #00000008;
}



/* Кнопка корзины */
#cart-button {
    padding: 10px 20px;
    /*background-color: #f4f4f4;*/ /* Серый фон */
    color: black; /* Черный текст */
    border: 0.0px solid black; /* Тонкий черный контур */
    border-radius: 15px;
    font-family: 'Roboto', sans-serif; /* Подключенный красивый шрифт */
    font-weight: 500; /* Полужирное начертание для лучшего визуального эффекта */
    cursor: pointer;
    position: absolute;
    top: 50px;
    right: 20px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Плавные изменения фона и текста */
   /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);*/
}


/* Эффект при наведении */
#cart-button:hover {
    background-color: #bdbdbd; /* Черный фон при наведении */
    color: #000000; /* Белый текст при наведении */
}

/* Кнопки категорий */
.category-button {
    margin: 1px 1px;
    padding: 10px 40px;
    background-color: #ffffff; /*  для кнопок категорий */
    color: #000000; /* Черный для шрифта в кнопках  */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;   /* Закругление кнопок */
    transition: background-color 0.3s ease;
}

.category-button:hover {
    color: black;
    background-color: #ddd; /* При наведении темнее */
}
.category-button img.category-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Стили для кнопки "Добавить в корзину" */
.add-to-cart {
    width: 120px;
    text-align: center;
    padding: 10px 0;
    background-color:  #1e7dc8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.add-to-cart-single {
    text-align: center;
    padding: 10px 0;
    width: 350px;
  background: #138808; /* зелёный, например */
} 

.add-to-cart:hover {
    background-color: #45a049;
}

/* ✅ Кнопка "Подробнее" */
.details-button {
    display: inline-block;
    width: 120px;
    text-align: center;
    padding: 10px 0;
    background-color: #8b8b8b;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.details-button:hover {
    background-color: #00000052;
}


 /*Стили для модального окна корзины 
.modal-content {
    background-color: white;
    padding: 20px;
    margin: 100px auto;
    width: 300px;
    border-radius: 10px;
    text-align: center; */
}

/* Кнопка "Закрыть" */
#close-cart {
    padding: 10px 20px;
    background-color: #f44336; /* Красный цвет для кнопки "Закрыть" */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Отступ сверху */
}

#close-cart:hover {
    background-color: #d32f2f; /* Темнее при наведении */
}

/* Кнопка "Оформить заказ" */
#checkout-order {
    padding: 10px 20px;
    background-color: #4CAF50; /* Зеленый цвет для кнопки "Оформить заказ" */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Отступ сверху */
}

#checkout-order:hover {
    background-color: #45a049; /* Темнее при наведении */
}

/* Баннер */
.banner-shadow {
  width: 100%;
  /* box-shadow: 0 -12px 6px #dddddd; */
}

.banner {
  width: 100%;
  height: 360px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

/* Изображения баннера */
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none !important;
}

/* Активное изображение */
.banner img.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

/* Точки-индикаторы (внутри баннера, снизу) */
.banner-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.banner-dots .dot.active {
  background-color: #333;
}

/* Стрелки */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255 255 255 / 15%);
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease, transform 0.2s;
  box-shadow:0 0 10px rgb(0 0 0 / 6%);
}

.banner-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.banner-arrow:hover {
  background-color: rgba(0 0 0 / 13%);
  color: white;
}

.banner-arrow.left {
  left: 15px;
}

.banner-arrow.right {
  right: 15px;
}

/* Планшеты и ноутбуки */
@media (max-width: 768px) {
  .banner {
    height: 240px;
  }
}

/* Мобильные */
@media (max-width: 480px) {
  .banner {
    height: 200px;
  }
}











/* Категории */
.categories {
    width: 90%;                /* Ширина блока на больших экранах */
    max-width: 1200px;         /* Ограничение максимальной ширины */
    margin: 2px auto;         /* Центровка по горизонтали и отступ сверху/снизу */
    padding: 2px 20px;

    text-align: center;
   /*  background-color: #ffffff;*/
  /*  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);*/
    border-radius: 18px;
}


.catalog {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 16px 6px 20px 6px;
}

/* Карточка товара */
.product{
  width:330px;                 /* фиксированная ширина */
  height:480px;                /* фиксированная высота карточки */
  padding:10px;
  box-sizing:border-box;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;

  display:flex;                /* колонка */
}
.product:hover{ box-shadow:0 0 30px #9d9d9d; }

/* Внутренняя колонка, растягивается на всю высоту */
.product-content{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

/* Фиксированная зона под изображение */
.product-image{
  height:300px;                /* <— основная “рамка” для фото */
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
}
.product-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;          /* вписываем любые пропорции */
  display:block;
  transition:transform .3s ease;
}
.product:hover .product-image img{ transform:scale(1.04); }

/*для скрола картинок на главной странице*/
/* твои базовые стили остаются как есть */
.product-image{
  position: relative;          /* чтобы стрелки/точки позиционировать внутри */
}
.product-image .pg-track{
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
/* чтобы не протекал горизонтальный скролл в родителя */
.product-image .pg-track{
  overscroll-behavior-x: contain;
  touch-action: pan-y; /* вертикальная прокрутка страницы разрешена, горизонталь — обрабатываем сами */
}


/* слайд = вкладка на всю ширину, контент по центру */
.product-image .pg-slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;         /* центрируем картинку по твоим правилам */
  justify-content: center;
  scroll-snap-align: center;
}

/* картинка в слайде — соблюдаем твои max-* и contain */
.product-image .pg-slide > img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* навигация */
.pg-prev,.pg-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border-radius:50%;
  border:0; cursor:pointer;
  background:rgb(0 0 0 / 5%);
  color:#fff; display:grid; place-items:center;
  box-shadow: 0 0 10px rgb(0 0 0 / 16%);
}
.pg-prev{ left:8px; } .pg-next{ right:8px; }
.pg-prev::before{ content:"‹"; font-size:18px; line-height:1; }
.pg-next::before{ content:"›"; font-size:18px; line-height:1; }
.pg-prev:disabled,.pg-next:disabled{ opacity:.35; cursor:default }

.pg-dots{
  position:absolute; left:50%; bottom:4px; transform:translateX(-50%);
  display:flex; gap:6px; padding:4px 8px; border-radius:999px;
  /*background:rgba(0,0,0,.25);*/
}
.pg-dot{
  width:6px; height:6px; border-radius:50%;
  background:rgba(217 217 217 / 55%);
  border:0; padding:0; cursor:pointer;
}
.pg-dot.active{ background:#b2adad; }

/* Заголовок — фиксируем место, чтобы не прыгал */
.product h2{
  font-size:16px;
  font-weight:500;
  margin:10px 0 6px;
  line-height:1.25;
  font-family: 'Roboto', sans-serif;

  min-height:40px;             /* под 2 строки (подберите при нужде) */
  display:-webkit-box;         /* необязательная обрезка до 2 строк */
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Низ карточки: цена + кнопки прижаты вниз */
.price-container{
  margin:20px 0 0 0;             /* ВАЖНО: прижимает блок к низу карточки */
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
}
.prices,
.buttons{ width:50%; box-sizing:border-box; }

.buttons{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

/* Цены */
.prices{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.new-price{
  font-family:'Rubik',sans-serif;
  color:#d60000;
  font-size:22px;
  font-weight:700;
  line-height:1.2;
}
.old-price{
  font-family:'Rubik',sans-serif;
  color:#999;
  font-size:14px;
  font-weight:500;
  text-decoration:line-through;
  line-height:1.2;
}


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

.modal-content {
    background-color: white;
    padding: 20px;
    margin: 100px auto;
    width: 300px;
    border-radius: 10px; */
}

#cart-items {
    list-style-type: none;
    padding: 0;
}

.info-section {
  
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #000;
  color: white;
  padding: 30px 20px;
  width: 100%;
  box-sizing: border-box;
  gap: 30px;
}
.info-left,
.info-center {
  border-right: 1px solid #444;
  padding-right: 15px;
}

.info-center,
.info-right {
  padding-left: 15px;
}

.info-left,
.info-center,
.info-right {
  flex: 1;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
}
.info-center {
  text-align: center;
}
.info-right {
  text-align: right;


}
@media (max-width: 768px) {
  .info-section {
    font-size: 13px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-left,
  .info-center,
  .info-right {
    text-align: center;
    margin-bottom: 0px;
  }
  .info-left,
.info-center,
.info-right {
  border: none;
  padding: 0;
}

}




/* Стили для навигации */
.main-nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.menu-toggle {
    display: none;  /* Скрываем кнопку на больших экранах */
}




    /* Стили для кнопки меню */
    .menu-toggle {
        display: block;  /* Показываем кнопку на мобильных устройствах */
        background-color: #333;
        color: #fff;
        padding: 10px;
        border: none;
        cursor: pointer;
        z-index: 1001;  /* Кнопка будет поверх меню */
        width: 100%;  /* Кнопка занимает всю ширину экрана */
        font-size: 18px;
        text-align: center;
    }

   



/* Обязательно для .details-button, чтобы не выглядела как ссылка */
.details-button {
    text-decoration: none;
    display: inline-block;
}
/* ===== Корзина ===== */
#cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
}

#cart-table th, #cart-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

#cart-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

#cart-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Кнопка удаления */
.remove-item {
    padding: 6px 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.remove-item:hover {
    background-color: #d32f2f;
}
.header-cart {
     /* background-color: #e6e6e6;*/
    padding: 0 30px;
    text-align: center;
    /*box-shadow: 0 -17px 6px #e6e6e6;*/ /* только вверх */
}


.header-cart h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 35px;
    margin: 0;
}


/* Итого */
#total-amount {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 0 10px;
}

/* ===== Форма оформления заказа ===== */
#order-form {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    margin-top: 30px;
    font-family: 'Roboto', sans-serif;
}

#order-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

/* Обычные поля формы */
#order-form label:not(.consent-item) {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

#order-form input,
#order-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

#order-form button {
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#order-form button:hover {
    background-color: #388e3c;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.form-buttons button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Оформить заказ */
#order-form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

#order-form button[type="submit"]:hover {
    background-color: #388e3c;
}

/* Очистить корзину */
.secondary-button {
    background-color: #ccc;
    color: #333;
    font-weight: bold;
}

.secondary-button:hover {
    background-color: #999;
    color: white;
}
.cart-wrapper {
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}
.in-cart {
    background-color: gray !important;
    color: white !important;
    cursor: default;
}
/* Всплывающее окно при добавлении в корзину */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #595959e8;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 6px 20px 7px rgba(0, 0, 0, 0.52);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-width: 280px;
    max-width: 90%;
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.notification-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.notification-buttons button {
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notification-buttons button:first-child {
    background-color: #ffffff;
    color: #4CAF50;
    font-weight: bold;
}

.notification-buttons button:first-child:hover {
    background-color: #e6e6e6;
}

.notification-buttons button:last-child {
    background-color: #388e3c;
    color: white;
}

.notification-buttons button:last-child:hover {
    background-color: #2e7d32;
}
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* полупрозрачный чёрный */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.notification-overlay.active {
    display: flex;
}
/* Иконка корзины плавающая */
.floating-cart {
    position: fixed;
    bottom: 132px;
    right: 22px;
    background-color: #ffffff42;
    color: #ffffff;
    padding: 15px 8px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    z-index: 999;
    cursor: pointer;

    /* скрытое состояние */
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    box-shadow: 0 0 14px 0px rgba(0, 0, 0, 60%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* когда показываем */
.floating-cart.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    animation: pulse 2s infinite;
}
/* уже есть .floating-cart и .floating-cart.show из прошлого шага */

/* эффект «встряхивания» при первом появлении */
.floating-cart.show.bounce {
  /* сначала короткий bounce, затем бесконечный pulse с задержкой */
  animation: cart-bounce 600ms ease-out, pulse 2s 800ms infinite;
}

/* ключевые кадры bounce */
@keyframes cart-bounce {
  0%   { transform: scale(0.85) translateY(12px); opacity: 0.0; }
  40%  { transform: scale(1.12) translateY(-6px); opacity: 1; }
  60%  { transform: scale(0.98) translateY(3px); }
  80%  { transform: scale(1.04) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}


@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
    }
}

.floating-cart:hover {
    animation: none;
    transform: scale(1.08);
}

#floating-cart-count {
    margin-left: -5px;
    background-color: transparent;
    color: #4caf50;
    border-radius: 50%;
    padding: 0px 8px;
    font-size: 24px;
    font-family: 'Rubik', sans-serif;
}

/*
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  gap: 8px;
  transition: background 0.3s ease;
}

.cart-button:hover {
  background-color: #45a049;
}

.cart-count {
  background-color: white;
  color: #4CAF50;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 14px;
  margin: 0px 10px 0px 0;
}
*/
/* Современный блок корзины */
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  color: inherit;
}

.cart-icon {
  position: relative;
  width: 40px;
  height: 20px;
  line-height: 0; /* чтобы не прыгало из-за inline */
}

.cart-svg {
  display: block;
  width: 28px;
  height: 28px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #0057ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-info {
  display: flex;
  flex-direction: column;
}

.cart-label {
  font-size: 12px;
  letter-spacing: .5px;
  color: #8e8e99;     /* светло-серый как на примере */
  text-transform: uppercase;
  font-weight: 600;
}

.cart-total {
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

/* Мобилка — подровняем размеры, если нужно */
@media (max-width: 768px) {
  .cart-svg { width: 24px; height: 24px; }
  .cart-badge { top: -6px; right: -6px; }
  .cart-total { font-size: 16px; }
  /* ваши правила для #cart-button можно оставить */
}




/* Новое для конпки меню */
/* При скрытом меню */
/* По умолчанию скрываем навигацию и подложку */
/* Подложка */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

/* Кнопка меню */
.menu-toggle-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1002;
  margin: 10px 0;
}

.menu-toggle {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 8px 16px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  max-width: 150px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}



/* МЕНЮ в мобильной версии */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  transform-origin: top center;
  background: white;
  padding: 20px;
  gap: 12px;
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  z-index: 1001;
  text-align: center;
  opacity: 0;
}

/* Активация меню */
.nav-links.active {
  display: flex;
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    transform: translateX(-50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}


/*Для страницы товара */
.product-details {
  padding:10px 20px 40px 20px; /* top, right, bottom, left */
  display: flex;
  justify-content: center;
  flex-grow: 1; /* Этот блок будет растягиваться, чтобы занять оставшееся пространство */
  box-shadow: 0px -12px 9px 3px #dddddd; /* <<< мягкая тень снизу */
}

.product-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
  align-items: flex-start;
}

.product-info img {
  max-width: 100%;
  width: 400px;
  border-radius: 12px;
}

.product-text {
  flex: 1;
  min-width: 250px;
}

.product-text h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.product-text .new-price {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  color: #d60000;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

.product-text .old-price {
    font-family: 'Rubik', sans-serif;
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  
   margin: 20px 0 10px 0;
}

.product-text .description {
  font-size: 16px;
  margin-bottom: 20px;
}


.product-gallery {
  max-width: 400px;
  margin: 0 auto;
}

.swiper-slide img {
  width: 100%;
  border-radius: 8px;
}

.thumbSwiper {
  margin-top: 10px;
}

.thumbSwiper .swiper-slide {
  width: 80px;
  height: 80px;
  opacity: 0.5;
  cursor: pointer;
}

.thumbSwiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #333;
  border-radius: 5px;
}
.thumbSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.mainSwiper {
  width: 100%;
  height: auto; /* Убираем фиксированную высоту */
}

.mainSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* Подстраивается под изображение */
}

.mainSwiper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

/* 📱 Адаптив: до 768px (включая 480px и ниже) */
@media (max-width: 768px) {
  /* Шапка */
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .header-container h1 {
    text-align: center;
    flex: none;
    font-size: 40px;
  }

  .subtitle {
        font-size: 14px;
    }
 

  /* Навигация */
  .main-nav {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  

  .menu-toggle {
    font-size: 15px;

  }
  .menu-toggle :hover {
 color: white;
 background-color: #a6a6a6;
}

  /* Категории */
  .categories {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .category-button {
    margin: 4px 1px;
    padding: 11px 19px;
    width: 100%;
    max-width: 160px;
    font-size: 14px;
  }

  /* Сетка товаров */
  .catalog {
    display: flex;
    flex-direction: column; /* ← Главный момент */
    align-items: center;
    gap: 20px;
  }

  .product {
    box-sizing: border-box;
    width: 380px;
    max-width: 98%;
    padding: 3%;
  }
/* Моб. версия корзины: карточки на CSS Grid, без правки HTML */
@media (max-width: 768px) {
  .cart-wrapper {
    overflow-x: visible;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  /* прячем шапку */
  #cart-table thead { display: none; }

  /* строка -> карточка */
  #cart-table tbody tr {
    display: grid;
    grid-template-areas:
      "name   name"
      "price  qty"
      "sum    discount"
      "remove remove";
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
  }

  /* убираем табличные границы/отступы */
  #cart-table,
  #cart-table tbody,
  #cart-table tr,
  #cart-table td { border: 0; }
  #cart-table td { padding: 0; font-size: 15px; }

  /* подпись поля из data-label */
  #cart-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
  }
  #cart-table td[data-label=""]::before { content: ""; display: none; }

  /* раскладка по колонкам (nth-child соответствует порядку th) */
  #cart-table td:nth-child(1) { grid-area: name; }
  #cart-table td:nth-child(2) { grid-area: price; }
  #cart-table td:nth-child(3) { grid-area: qty; justify-self: end; align-self: start; }
  #cart-table td:nth-child(4) { grid-area: sum; }
  #cart-table td:nth-child(5) { grid-area: discount; justify-self: end; }
  #cart-table td:nth-child(6) { grid-area: remove; justify-self: end; align-self: center; }

  /* чипы для значений (можешь обернуть цифры в <span>, но не обязательно) */
  #cart-table td:nth-child(2) span { background: #eef2ff; }  /* Цена */
  #cart-table td:nth-child(4) span { background: #ecfdf5; }  /* Сумма */
  #cart-table td:nth-child(5) span { background: #fee2e2; }  /* Скидка */
  #cart-table td:nth-child(2) span,
  #cart-table td:nth-child(4) span,
  #cart-table td:nth-child(5) span {
    display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 600; line-height: 1;
  }

  /* контрол количества — компактный (если у тебя +/- и инпут внутри td:3) */
  #cart-table td:nth-child(3) .qty {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid #e5e7eb; border-radius: 12px; padding: 6px 10px; background: #fafafa;
  }
  #cart-table td:nth-child(3) .qty button {
    border: 0; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; background: #f3f4f6;
  }
  #cart-table td:nth-child(3) .qty input,
  #cart-table td:nth-child(3) .qty .value { min-width: 24px; text-align: center; font-weight: 600; }

  /* крестик удаления (td:6) */
  #cart-table td:nth-child(6) .remove,
  #cart-table td:nth-child(6) button,
  #cart-table td:nth-child(6) a {
    background: transparent; border: 0; color: #ef4444; font-size: 20px; line-height: 1; padding: 6px;
  }

  /* отступ между карточками */
  #cart-table tbody tr + tr { margin-top: 12px; }
}

/* Небольшая косметика для «итого/скидка» под таблицей (если есть блок summary) */
@media (max-width: 768px) {
  .cart-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .cart-summary .total-chip,
  .cart-summary .discount-chip {
    padding: 8px 12px; border-radius: 999px; font-weight: 700;
  }
  .cart-summary .total-chip   { background: #ecfdf5; }
  .cart-summary .discount-chip{ background: #fee2e2; }
}

  /* Модальное окно 
  .modal-content {
    width: 90%;
    margin: 20px auto;
  }*/

  

  /* Корзина таблица 
  .cart-wrapper {
    overflow-x: auto;
  }

  #cart-table,
  #cart-table thead,
  #cart-table tbody,
  #cart-table th,
  #cart-table td,
  #cart-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  #cart-table thead {
    display: none;
  }

  #cart-table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
  }

  #cart-table td {
    text-align: left;
    padding: 8px 10px;
    font-size: 14px;
  }

  #cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #555;
  }

  .remove-item {
    width: 100%;
    box-sizing: border-box;
  }*/

  /* Страница товара */
  .product-info {
    flex-direction: column;
    align-items: center;
    /*text-align: center;*/
  }

  .product-text h2 {
    font-size: 18px;
  }

  .product-text .description {
    font-size: 15px;
  }
}
/* 💻 Скрыть кнопку "Меню" на больших экранах */
@media (min-width: 769px) {
  .menu-toggle-wrapper {
    display: none;
  }

  /* Также возвращаем видимую навигацию на десктопах */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    position: static;
    transform: none;
    background: none;
    padding: 0;
    box-shadow: none;
    width: auto;
    opacity: 1;
  }

  .menu-overlay {
    display: none !important;
  }
}
/* Показываем меню точно под кнопкой */
@media (max-width: 768px) {
  .main-nav {
    position: relative; /* Обязательно: для абсолютного позиционирования меню */
  }

  .nav-links {
    position: absolute;
    top: 100%; /* Показываем СРАЗУ под .main-nav */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    gap: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 1001;
    width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle-wrapper {
    position: relative;
    z-index: 1002; /* Поверх меню */
    display: flex;
    justify-content: center;
  }
}
/* 📌 Фикс "прыжка" меню при загрузке на больших экранах
   Устанавливаем начальное положение навигации,
   чтобы избежать мигания / смещения при загрузке страницы */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    justify-content: center;
    gap: 0px; /*растояние между кнопками в меню*/
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    background: none !important;
    box-shadow: none !important;
  }

  .menu-toggle-wrapper {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .product-info {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
  }

  .product-info img {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }

  .product-text {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 0 10px;
  }

  .add-to-cart-single {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-details {
    padding: 10px 10px 20px 10px;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }
}
/* Базовые стили для кнопок навигации */
.nav-button {
    margin: 0px 0 2px 0;
    padding: 10px 20px;
    width: 100%;
    background-color: #ffffff9e;
    color: black;
    text-decoration: none;
    border: 1px solid #d2d2d233;
    border-radius: 0px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-button:hover {
    background-color: #ddd;
    color: black;
}

/* Кнопка возврата — отдельный стиль */
.nav-button-return {
    background-color: #f4f4f4;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    width: auto;
    padding: 12px 24px;
    font-size: 16px;
    display: inline-block;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-button-return:hover {
    background-color: #bdbdbd;
    color: black;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .nav-button {
        font-size: 13px;
        padding: 8px 16px;
    }
     /* Кнопка корзины */
  #cart-button {
    position: static;
    margin:0 0 0px 20px;
    padding: 10px 5px;
    font-size: 14px;
  }

    .nav-button-return {
         
        margin:0 0 0 0;
        padding: 12.3px 3px;
        font-size: 14px;
        font-weight: 100;
    }

}
.header-title {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 0 6px 0;
}
.header-title:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     border-radius: 20px;
}
.product-description {
  margin-top: 20px;
  line-height: 1.6;
}

.product-description h3 {
  margin-top: 20px;
  font-size: 1.2em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.product-description ul {
  padding-left: 20px;
  list-style: disc;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.specs-table td {
  padding: 6px 10px;
  border: 1px solid #ccc;
}

.product-tabs {
  margin-top: 20px;
}
 /* Стили для характеристик*/
.tab-buttons {
  display: flex;
  flex-wrap: wrap; /* <-- Позволяет кнопкам переноситься */
  gap: 10px;
  margin-bottom: 10px;
  max-width: 100%; /* <-- Гарантирует, что блок не выйдет за родителя */
  box-sizing: border-box;
}

.tab-btn {
  flex: 1 1 auto; /* <-- Делает кнопки гибкими */
  min-width: 100px; /* <-- Минимальная ширина кнопки */
  padding: 10px;
  background-color: #eee;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.2s;
  box-sizing: border-box;
}


.tab-btn.active {
  background-color: #d4ebf2;
}

.tab-content {
  display: none;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.tab-content.active {
  display: block;
}
   /* Модальное окно для изображений */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 26px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  cursor: zoom-out;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90vw;   /* ширина максимум 90% экрана */
  max-height: 90vh;  /* высота максимум 90% экрана */
  width: auto;
  height: auto;
}


.modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  user-select: none;
}

#prevImage {
  left: 20px;
}

#nextImage {
  right: 20px;
}

.nav-btn:hover {
  color: #ccc;
}
@media (max-width: 768px) {
  .modal {
    display: none; /* по умолчанию скрыта */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }

  .modal.show {
    display: flex;
  }

  .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
  }
}
 /*для окон в карточке товара*/
/* Общий стиль текста */
#product-description,
#product-specs,
#product-features {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
}

/* Абзацы в описании */
#product-description p {
  margin-bottom: 1em;
}

/* Список преимуществ */
#product-features li {
  margin-bottom: 0.5em;
  list-style-type: "✔ ";
  padding-left: 5px;
}

/* Список характеристик */
#product-specs li {
  margin-bottom: 0.4em;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}
/*галочки в корзине*/
/* Обычные лейблы формы остаются блочными */
#order-form label:not(.consent-item) {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Блок согласий (контейнер) */
#order-form .consents {
  margin: 8px 0 16px;
  line-height: 1.4;
  text-align: left;
}

/* Строка согласия: селектор специфичнее, чем просто .consent-item */
#order-form .consents .consent-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin: 6px 0;
  cursor: pointer;
  font-weight: normal;
}

/* Чекбокс рядом с текстом */
#order-form .consents .consent-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Текст */
#order-form .consents .consent-item span {
  flex: 1 1 auto;
  line-height: 1.4;
}

/* Ссылки внутри согласий */
#order-form .consents .consent-item a {
  color: inherit;
  text-decoration: underline;
}
/*Стиль для кнопок количества*/
/* ===== Quantity Picker (количество) ===== */

:root{
  /* при желании подправь под цвет бренда */
  --accent: #3b82f6;           /* синий акцент */
  --accent-10: rgba(59,130,246,.10);
  --danger: #ef4444;
  --danger-10: rgba(239,68,68,.10);
  --surface: #f6f8fa;
  --border: #e5e7eb;
  --text: #111827;
}

.qty-wrap{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
  font-weight: 500;
}

.qty-wrap label{
  font-size: 14px;
  opacity: .8;
}

.qty-controls{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9999px;
}

.qty-controls button{
  width: 40px;
  height: 40px;
  border: 0;
  outline: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 20px;      /* символы − и + */
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.qty-controls button:hover{
  background: var(--accent-10);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.qty-controls button:active{
  transform: scale(.96);
}

.qty-controls button:focus-visible{
  box-shadow: 0 0 0 3px var(--accent-10);
}

#qty{
  width: 64px;
  height: 40px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

/* убираем стрелочки у number */
#qty::-webkit-outer-spin-button,
#qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#qty{ -moz-appearance: textfield; }

/* ===== Total (итог) ===== */

.product-total{
  margin: 10px 0 10px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 16px;
}

.product-total strong{
  font-size: 20px;
  font-weight: 800;
}

#total-price{
  font-feature-settings: "tnum" 1; /* ровные табличные цифры */
}

#total-discount{
  display: inline-block;
  padding: 0px 10px;
  border-radius: 9999px;
  background: var(--danger-10);
  color: var(--danger);
  font-weight: 700;
  font-size: 18px;
}

/* ===== Кнопка "Добавить в корзину" рядом с количеством (если стоят в один ряд) ===== */
.add-to-cart-single{
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  background: #45a049;
  color: #fff;
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}

.add-to-cart-single:hover{
  box-shadow: 0 8px 18px #4caf505e;
}

.add-to-cart-single:active{
  transform: translateY(1px) scale(.99);
}

.add-to-cart-single:disabled{
  opacity: .5;
  cursor: not-allowed;
}

/* ===== Адаптив ===== */
@media (max-width: 520px){
  .qty-controls button{ width: 36px; height: 36px; }
  #qty{ height: 36px; width: 56px; font-size: 15px; }
  .product-total strong{ font-size: 18px; }
}
/* крестик удаления в ячейке Удалить*/
.cell-remove { text-align:center; width: 56px; }
.remove-item{
  background: #ebdcdc42;
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #ef4444; /* под свой стиль */
}
.remove-item:hover{ background: rgba(239,68,68,.10); }
.id-badge{ margin-left:6px; font-size:12px; opacity:.6; }
/*Подсвет кнопки при пустой корзине*/
#order-form button[type="submit"]:disabled{
  opacity: .6;
  cursor: not-allowed;
}
/*Для контролов таблицы*/
.cell-qty { white-space: nowrap; }
.qty-controls--table{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid var(--border, #e5e7eb); border-radius:9999px; padding:4px;
  background:#fff;
}
.qty-controls--table .qty-dec,
.qty-controls--table .qty-inc{
  width:28px; height:28px; border:0; border-radius:50%;
  display:grid; place-items:center; font-size:16px; line-height:1;
  cursor:pointer; background:#f8fafc;
}
.qty-controls--table .qty-dec:hover,
.qty-controls--table .qty-inc:hover{ background:#eef2ff; }
.qty-controls--table .qty-input{
  width:48px; height:28px; border:0; text-align:center; font-weight:700;
  outline:none; background:transparent;
}
.cell-remove { text-align:center; width:56px; }
.remove-item{
  background: transparent; border: 0; padding: 6px 10px; border-radius: 8px;
  font-size: 18px; line-height: 1; cursor: pointer; color: #ef4444;
}
.remove-item:hover{ background: rgba(239,68,68,.10); }

/*Для общей скидки*/

#total-amount{
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
}
.cart-total-discount{
  display:inline-block;
  padding:4px 10px;
  border-radius:9999px;
  background: rgba(239,68,68,.10); /* подгоните под свой стиль */
  color:#ef4444;
  font-weight:700;
  font-size:13px;
}
/*Дл подсветки активной категории  */
.category-button.is-active{
  background:#111827; color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
/*для навигации категорий и названий*/
.breadcrumbs{font-size:14px;margin:8px 0;color:#6b7280}
.breadcrumbs a{color:inherit;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs .sep{margin:0 6px}

/*Для страницы помощи*/
.help-section { max-width: 540px; margin: 16px auto; padding: 20px; background:#fff; border:1px solid #eee; border-radius: 14px; }
.help-title { margin: 0 0 6px; font-size: 26px; font-family: "Roboto", system-ui, -apple-system, sans-serif; }
.help-subtitle { margin:0 0 18px; color:#555; }
.help-form { display: grid; gap: 14px; }
.help-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px){ .help-grid { grid-template-columns: 1fr; } }

.help-field { display: grid; gap: 6px; }
.help-field > span { font-size:14px;; color:#333; }
.help-field input, .help-field textarea {
  padding: 10px 12px; border:1px solid #ddd; border-radius: 10px; font: inherit; background:#fff;
}
.help-field input:focus, .help-field textarea:focus {
  outline: none; border-color: #72aaff; box-shadow: 0 0 0 3px rgba(114,170,255,.2);
}

.help-hint { font-size:12px; color:#777; }
.help-error { border-color:#d43; box-shadow: 0 0 0 3px rgba(212,67,67,.15) !important; }
.help-consent { display:flex; gap:10px; align-items:flex-start; font-size:14px; }
.help-consent input { transform: translateY(2px); }

.help-submit {
  padding: 12px 18px; border:1px solid #0d6efd; background:#0d6efd; color:#fff;
  border-radius: 999px; cursor:pointer; font-weight:600;
}
.help-submit[disabled] { opacity:.5; cursor:not-allowed; }
.help-status { min-height: 1em; font-size:14px; }

.hp-field { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }


/*Плавающая иконка помощи*/
.floating-help {
  position: fixed; right: 7px; bottom: 36px; /* над иконкой корзины */
  background: #ff0000d1; color:#ffffff; border:8px solid #ffffff; border-radius: 999px;
  padding: 16px 4px; text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,.12);
  font-weight: 600; font-family:'Rubik', sans-serif;
}
.floating-help:hover { box-shadow: 0 8px 28px rgba(0,0,0,.16); }

/*Стиль для окна после отправки сообщения о помощи*/
.help-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.help-modal.show { display: block; }
.help-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.help-modal__dialog {
  position: relative; margin: 10vh auto 0; max-width: 460px; width: calc(100% - 32px);
  background: #fff; border-radius: 16px; padding: 13px; box-shadow: 0 10px 40px rgba(0,0,0,.2);
  text-align: center;
}
.help-modal__title { margin: 0 0 8px; font-size: 22px; }
.help-modal__text { margin: 0 0 16px; color: #444; }
.help-modal__btn {
  padding: 10px 16px; border: 1px solid #0d6efd; background: #0d6efd; color: #fff;
  border-radius: 999px; font-weight: 600; cursor: pointer;
}
