/* ===== Удаление подчеркиваний по всему сайту ===== */
/* Базовый стиль ссылки */
a {
  text-decoration: none;       /* без подчеркивания по умолчанию */
  font-weight: 500;            /* чуть выделенный текст */
  transition: all 0.2s ease;  /* плавное изменение при hover/focus */
  cursor: pointer;
}
/* При наведении мыши или фокусе (доступность) */
a:hover,
a:focus {
  color: #0065cc;              /* немного темнее для эффекта */
  outline: none;               /* убираем стандартный контур, если хотим кастомный */
}
/* Для клавиатурных пользователей — фокусная подсветка */
a:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

/* === Центрируем h1 на главной === */
.mainpage-text h1 {
    text-align: center;
}

/* Центрированный блок без жирного начертания */
#center {
    text-align: center;
}

/* ===== стиль кнопки "читать дальше" ===== */
.product-description-short {
    max-height: 450px;
    overflow: hidden;
    transition: max-height 0.9s ease;
    position: relative;
}
.product-description-short.expanded {
    max-height: none;
}
/* fade внизу */
.product-description-short::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.product-description-short.expanded::after {
    opacity: 0;
}
/* не замыливать форму отзывов */
.product_reviews .product-description-short::after {
    display: none;
}
/* кнопка */
.read-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #00457E;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.2s ease;
    transform: none;
}
/* hover */
.read-more-toggle:hover {
    background-color: #0065cc;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
/* МОДАЛКа написания отзыва */
#product-review-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    max-width: 90%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    z-index: 1100;
    padding: 20px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
}
/* УБИРАЕМ СТИЛИ ТЕМЫ ВНУТРИ МОДАЛКИ отзыва */
#product-review-form .review-form-fields {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}
/* крестик */
#product-review-form .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 5px;
}
#product-review-form .modal-close:hover {
    color: #000;
}
/* ===== END стиль кнопки "читать дальше" ===== */

/* ===== стиль верхнуго меню ===== */
.header_nav-sub>ul, .header_nav-sub>ul>li, .header_nav>ul, .header_nav>ul>li {
    z-index: 600;
}
/* Зафиксировали верхнюю панель */
.bg-bs-color.header-nav-block-outer {
    background: #00457E;
    position: sticky;
    top: 0; /* <— здесь магия */
    z-index: 500;
}
/* ===== Корзина в шапке ===== */
.header_cart {
    position: relative; /* Обязателен для работы z-index */
    z-index: 600; /* Корзина должна быть выше, чем поиск */
}
.header_cart a {
    text-decoration: none; /* Убираем подчёркивание у "Кошика" в шапке */
}

/* ===== Выпадающее окно мини-корзины ===== */
.js-cart-popup {
    font-size: 13px; /* Уменьшаем текст в корзине */
    z-index: auto; /* Не мешаем глобальному порядку слоёв */
}
/* ===== Элементы внутри мини-корзины ===== */
.js-cart-popup a,
.cart-popup a,
.cart-mini__product-info a,
.cart-mini__buttons a {
    text-decoration: none;
}
/* ===== Цены и названия товаров ===== */
.cart-mini__product-info a {
    font-size: 12px;
}
.cart-mini__product-price {
    font-size: 13px;
    font-weight: 500;
}

/* Кнопка "Каталог" */
.header-nav-categories-btn {
    margin: 3px auto;
    line-height: 40px;
    height: 40px;
    font-size: 20px;
    background-color: #00457E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 0 1.5px #ffffff;
}
/* Hover */
.header-nav-categories-btn:hover {
    background-color: #00579f;
}
/* ===== END стиль верхнуго меню ===== */

/* =====Стиль выпадающего меню главного каталога ===== */
.cat-menu {
    max-height: calc(100vh - 50px - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1.2;
}
.header-nav-categories_wrap.desktop-show .cat-menu {
    max-height: none;
    overflow: visible;
}
.cat-menu__el-title {
    font-weight: 500;
}
/* ===== END Стиль выпадающего меню главного каталога ===== */

/* Надпись характеристики под миниатюрой товара в каталоге */
.product-tile_features {
    font-size: 12px;
    line-height: 10px;
}
/* Скрываем все характеристики по умолчанию */
.product-tile_features .product-tile-features__item {
    display: none;
}
/* Показываем первую характеристику */
.product-tile_features .product-tile-features__item:first-child {
    display: block;
}
/* Показываем характеристику, если внутри есть цветной блок */
.product-tile_features .product-tile-features__item:has(.product_features__colors-short) {
    display: block;
}
/* Всегда показываем сам блок с цветами (если идет отдельно) */
.product-tile_features .product_features__colors-short {
    display: block;
}
/* По две строки для заголовка товара */
.product-tile_name a{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    height: calc(1.35em * 2);
}
/* кнопка карзины с ценой в каталоге */
.product-tile_bottom {
    padding: 4px 0;
}


/*  Для ленивой загрузки видео на странице */
.custom-video-preview {
  position: relative;
  width: 500px;
  height: 281px;
  float: left;
  margin: 0 1.5em 1.5em 0;
  cursor: pointer;
  overflow: hidden;
}
.custom-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.custom-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-shadow: 0 0 0.5em black;
  line-height: 1;
  pointer-events: none;
}

/* Стиль шариков под мини описание */
.product_features__colors-short {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* Подстрой под нужную ширину */
}
.product_features__colors-short span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 4px 0 0;
  vertical-align: middle;
}
/* Всплывающее окно корзины */
#popup-addcart {
    transform: scale(1.3);
    transform-origin: center center;
}

.header_main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; /* меньше расстояние между блоками */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Для загрузки категорий */
.uk-background-cover {
    padding-top: 56.2%; /* (240 / 427) * 100 = 56.2% */
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
}

/* Сдвинуть топ меню правее */
.js-header-nav-el {
  position: relative;
}

.js-header-nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.2);
  padding: 0;
  margin: 0;
  min-width: 250px; /* можно подкорректировать */
  /* border-top убран, чтобы полоска была ниже стрелки */
}

.js-header-nav-sub > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  position: relative; /* для абсолютного позиционирования стрелки */
  border-top: 3px solid #00457E; /* красная полоска */
}

.js-header-nav-sub > ul:before {
  content: "";
  position: absolute;
  top: -9px; /* стрелка над полоской */
  left: 5px; /* у левого края */
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #00457E; /* цвет стрелки */
  width: 0;
  height: 0;
  margin: 0;
}

.js-header-nav-sub > ul > li {
  margin: 0;
  padding: 0;
}

.js-header-nav-sub > ul > li > a {
  display: block;
  padding: 12px 12px;
  text-decoration: none;
  color: #000;
}

/* === Блок товаров под категориями === */
.top-products-block {
    background: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.top-products-title {
    display: block;
    width: calc(20% * 5 + 20px * 4); /* 5 карточек в ряду + 4 промежутка */
    max-width: 100%;
    margin: 0 auto 30px auto; /* центрируем над карточками */
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    background: #fff;
    padding: 10px 0;
    border-radius: 8px;
}

.top-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: stretch; /* карточки одинаковой высоты */
}

.product-card {
    flex: 0 1 calc(20% - 20px);
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background:#fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* плавные переходы для тени */
    transition: box-shadow 0.3s ease;
}

.product-card a {
    display: block;
    flex: 1 0 auto;
    overflow: hidden; /* чтобы изображение не вылезало за пределы */
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;

    /* плавная анимация для изображения */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05) translateY(-5px); /* слегка поднимаем и увеличиваем изображение */
    filter: brightness(1.05);
}

.product-card h3 {
    font-size: 14px;
    margin: 10px 0 5px 0;
    color: #333;
}

.product-card .price {
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

/* Тень при наведении на карточку */
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* === Адаптив === */
@media (max-width: 1200px) {
    .product-card { flex: 0 1 calc(25% - 20px); }
}
@media (max-width: 992px) {
    .product-card { flex: 0 1 calc(33.33% - 20px); }
}
@media (max-width: 768px) {
    .product-card { flex: 0 1 calc(50% - 20px); }
}
@media (max-width: 576px) {
    .product-card { flex: 0 1 100%; }
}
/* === Конец блока товаров под категориями === */

/* === Контейнер блока контактов в шапке === */
.header_contacts-text {
    display: flex;
    flex-direction: column;      /* телефоны вертикально */
    align-items: flex-end;       /* выравнивание по правому краю */
    gap: 2px;                    /* минимальный вертикальный отступ */
    font-size: 16px;
    line-height: 1.2;
    max-width: 220px;
}
/* Каждый телефон как flex-контейнер для картинки и текста */
.header_contact-item {
    display: flex;
    align-items: center;         /* выравниваем картинку по центру текста */
    gap: 4px;                    /* расстояние между иконкой и номером */
    text-decoration: none;
    color: inherit;
}
/* Иконка телефона — оставляем естественный размер */
.header_contact-item img {
    display: inline-block;
    vertical-align: middle;      /* центрируем по тексту */
    max-height: 1.2em;           /* чтобы не выходила за высоту строки */
}
/* Адаптивные размеры шрифта */
@media (max-width: 1200px) {
    .header_contacts-text {
        font-size: 15px;
    }
}
@media (max-width: 992px) {
    .header_contacts-text {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .header_contacts-text {
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .header_contacts-text {
        font-size: 12px;
        max-width: 100%;
    }
}
/* === END Контейнер блока контактов в шапке === */


/* === выравнивание разделов в футере по вертикали === */
.footer-content .clearfix {
    display: flex;
    flex-wrap: wrap;         /* перенос колонок на новую строку при нехватке места */
    align-items: flex-start; /* все колонки прижаты к верхнему краю */
}

.footer-content_col {
    flex: 1 1 auto;          /* колонки растягиваются равномерно */
    min-width: 220px;        /* можно ограничить минимальную ширину */
}
/* === END выравнивание разделов в футере по вертикали === */

/* ===========================
   Кнопка "Покупка в 1 клик" (ПК, минимализм)
   =========================== */
.button-fastorder__sk-oneclick {
    display: inline-flex;           /* Чтобы текст был по центру */
    align-items: center;            /* Центрируем по вертикали */
    justify-content: center;        /* Центрируем по горизонтали */
    padding: 10px 20px;             /* Отступы внутри */
    font-size: 16px;                /* Размер текста */
    font-weight: bold;              /* Жирный текст */
    color: #000;                    /* Чёрный текст */
    border: 2px solid #EE3D02;      /* Оранжевая рамка */
    border-radius: 4px;             /* Лёгкое скругление */
    background: #fff;               /* Белый фон */
    cursor: pointer;                /* Указатель при наведении */
}
/* ===========================
   Заголовок опции товара селект в карточке (мобильный)
   =========================== */
.product_option-select-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.5;
}
/* ===========================
   Select с более заметной рамкой и увеличенной высотой
   =========================== */
.product_option-select select {
    font-size: 16px;            /* Размер текста */
    color: #000;                /* Цвет текста */
    font-weight: bold;
    cursor: pointer;
    width: 100%;                /* Занимает всю ширину */
    box-sizing: border-box;
    height: 40px;               /* Высота select */
    line-height: 48px;          /* Выравнивание текста по центру */
    padding: 0 12px;            /* Горизонтальные отступы */
    border: 2px solid #EE3D02; /* Жирная рамка */
    border-radius: 6px;         /* Скруглённые углы */
    background-color: #fff;

}

/* ===========================
   Кнопка "Покупка в 1 клик" (ПК, минимализм)
   =========================== */
.button-fastorder__sk-oneclick {
    display: inline-flex;           /* Чтобы текст был по центру */
    align-items: center;            /* Центрируем по вертикали */
    justify-content: center;        /* Центрируем по горизонтали */
    padding: 10px 20px;             /* Отступы внутри */
    font-size: 16px;                /* Размер текста */
    font-weight: bold;              /* Жирный текст */
    color: #000;                    /* Чёрный текст */
    border: 2px solid #EE3D02;      /* Оранжевая рамка */
    border-radius: 4px;             /* Лёгкое скругление */
    background: #fff;               /* Белый фон */
    cursor: pointer;                /* Указатель при наведении */
}
 
/* Отзывы */
/* Иконки в отзыв товара */
.review_username-icon {
    margin-left: 8px; /* расстояние между "Від" и иконкой */
    vertical-align: middle; /* чтобы иконка была по центру текста */
}
/* Имя пользователя */
.username [itemprop="name"] {
    margin-right: 1em;        /* отступ после имени */
}
/* Название магазина */
.staff {
    display: inline-flex;        /* flex для центрирования */
    justify-content: center;      /* центр по горизонтали */
    align-items: center;          /* центр по вертикали */
    width: 12ch;                  /* ширина под текст (~12 символов) */
    white-space: nowrap;           /* запрет переносов */
    overflow: hidden;              /* обрезаем лишний текст */
    text-overflow: ellipsis;       /* троеточие, если текст длиннее */
    color: transparent;            /* скрываем старый текст */
    position: relative;            /* для ::after */
    height: 1em;                   /* высота блока под текст */
}

/* Вставляем текст "Київ-Меблі™" */
.staff::after {
    content: "Київ-Меблі™";
    color: black;
    position: absolute;            /* остаётся в потоке блока */
    left: 50%;                     /* центрируем горизонтально */
    top: 50%;                      /* центрируем вертикально */
    transform: translate(-50%, -50%); /* смещаем в центр */
}
/* Дата отзыва */
.review_date {
    margin-left: 1em;          /* отступ перед датой */
    font-size: 0.85em;         /* немного меньше шрифт */
    white-space: nowrap;       /* текст в одну строку */
}

/* Блок оконанчия заказа */
/* Текст "Номер вашого замовлення:" */
.checkout .checkout-result .s-description {
    font-size: 20px;       /* увеличенный размер текста */
    margin-bottom: 20px;
    color: #000;           /* можно оставить основной цвет текста */
}
/* Кнопка с номером заказа */
.checkout .checkout-result .s-order-number {
    display: inline-block;
    margin-left: 10px;     /* отступ от текста */
    padding: 8px 16px;
    background: #0065cc;   /* синий фон кнопки */
    color: #fff;           /* белый текст */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.checkout .checkout-result .s-order-number:hover {
    background: #00457E;   /* темнее при наведении */
}
/* Кнопка "Перейти на главную" */
.checkout .checkout-result .s-actions-wrapper a {
    display: inline-block;
    padding: 10px 20px;
    background: #0065cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.checkout .checkout-result .s-actions-wrapper a:hover {
    background: #00457E;
}

/* === Кнопки выбора опций в карточке товара === */
/* Стили кнопок-селектов опций */
.inline-select a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin: 3px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 2px solid #EE3D02;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.4s ease, background 0.3s ease, transform 0.25s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* Наведение — без оранжевого фона, просто тень и лёгкое затемнение */
.inline-select a:hover {
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
/* Активный (выбранный) вариант */
.inline-select a.selected {
  background: #EE3D02;
  color: #fff;
  border-color: #d73700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
/* При наведении на выбранный — немного темнее и чуть сильнее тень */
.inline-select a.selected:hover {
  background: #d73700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
/* кнопки выбора опций */
.product_options .inline-select a {
    border-radius: 8px;
}

/* Кнопка с большой иконкой корзины в карточке товара */
/* Большая кнопка "Купить" в карточке товара */
.button.addtocart-with-icon,
.product-tile_cart .addtocart {
    border-radius: 8px;
}
/* Иконка корзины */
.button.addtocart-with-icon i.fa-shopping-cart {
    font-size: 1.7em;
    margin-right: 0.35em;
}

/* === АНИМАЦИИ (корректно разделены: декор vs кнопки) === */
/* ДЕКОР (МОЖНО SCALE) */
.brands-list_el-img img,
.product_brand-img img,
.product-text-img,
.filter-opt-color {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}
/* Hover только для декоративных элементов */
.brands-list_el-img:hover img,
.product_brand-img:hover img,
.product-text-img:hover,
.filter-opt-color:hover {
  transform: scale(1.08);
}
/* КНОПКИ (БЕЗ SCALE — БЕЗ МЫЛА) */
.addtocart,
.button-fastorder__sk-oneclick {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  transform: none;
}
/* Hover для кнопок — только визуальные эффекты */
.addtocart:hover,
.button-fastorder__sk-oneclick:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
/* === END АНИМАЦИИ (корректно разделены: декор vs кнопки) === */

/* Более темная и компактная тень для кружков при наведении */
.filter-opt-color:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Картинки в тексте — мягкое увеличение без тени */
.product-text-img:hover {
  transform: scale(1.04);
}

/* === Банеры в карточке товара === */
.product-desc-img {
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
  will-change: transform;
}
.product-desc-img:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* === Swipebox === */
/* === Яркие и крупные стрелки Swipebox === */
#swipebox-arrows a {
  transform: scale(1.8);
  transform-origin: center center;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.7)); /* легкое свечение */
  opacity: 0.9;
  transition: all 0.25s ease;
}
#swipebox-arrows a:hover {
  transform: scale(2);
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.9)) brightness(1.2);
  opacity: 1;
}
/* === Контейнер превью Swipebox === */
#swipebox-thumbs {
  display: flex;
  flex-wrap: nowrap;           /* горизонтальная линия миниатюр */
  overflow-x: auto;            /* горизонтальная прокрутка */
  overflow-y: hidden;
  gap: 6px;                    /* расстояние между миниатюрами */
  padding: 2px 8px;
  scrollbar-width: thin;       /* тонкий скролл в Firefox */
}
/* Миниатюры */
#swipebox-thumbs a {
  flex: 0 0 auto;              /* фиксируем ширину миниатюры */
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#swipebox-thumbs a:hover {
  transform: scale(1.08);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
/* Прокрутка: оформление полосы */
#swipebox-thumbs::-webkit-scrollbar {
  height: 6px;
}
#swipebox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
}
#swipebox-thumbs::-webkit-scrollbar-track {
  background: transparent;
}
/* Воздух вокруг изображения */
#swipebox-slider .slide {
  padding-top: 10px;
  box-sizing: border-box;
}
/* Подганяем высоту изображения */
#swipebox-slider .slide img {
  max-height: calc(100vh - 90px);
  width: auto;
}
/* === END Swipebox === */

/* === Кнопки каталога Эффект наведения и нажатия: лёгкое поднятие и тень === */
.sidebar-cats_link {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.5s ease;
}
/* Наведение — лёгкое приподнятие */
.sidebar-cats_link:hover {
  transform: translateY(-2px); /* поднимаем элемент */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* мягкая тень */
  background-color: rgba(0, 123, 255, 0.05); /* еле заметный фон */
}
/* Эффект нажатия — как “нажатая кнопка” */
.sidebar-cats_link:active {
  transform: translateY(0); /* возвращаем на место */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 123, 255, 0.1);
}

/* звезды в категории */
.category-header {
    display: flex;
    align-items: center; /* выравнивание по центру по вертикали */
    gap: 12px; /* расстояние между названием и рейтингом */
}
.category-header h1.category-name {
    margin: 0; /* убираем лишние отступы h1 */
    font-size: 24px; /* можно подрегулировать под дизайн */
    line-height: 1.2; /* чтобы h1 не прыгал */
}
.category-rating-block {
    display: flex;
    align-items: center; /* выравниваем звезды и текст по центру */
    font-size: 16px; /* размер текста для количества отзывов */
}
.category-rating-block .rating-count {
    margin-left: 6px; /* немного отступаем от звёзд */
}
/* Десктоп — золотые звезды */
.category-rating-block i {
    color: #FFD700 !important; /* золотой цвет */
}

/* Кнопка для страницы тегов читать дальше */
.is-hidden {
    display: none;
}

/* Бейдж к левому краю */
.product_main-left .badge {
    left: 10px;
    right: auto;
    top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 20;
}
/* Бейдж матрасов в рулоне */
.badge-img {
  background: none !important;   /* убираем фон */
}
.badge-img img {
  display: block;
  width: 60px;   /* делай сколько нужно */
  height: auto;
}
/* Бейдж доставки */
.badge-delivery{
    background: rgba(255, 244, 237, 0.65);
    border: 1px solid rgba(238, 61, 2, 0.35);
    color: #C2410C !important;
}
.badge-delivery span,
.badge-delivery i{
    color: inherit !important;
}
/* Скрыть бейдж доставки ТОЛЬКО в карточке товара */
.product_main-left .badge-delivery{
    display: none !important;
}
/* Бейдж Lux Form */
.badge-luxe-form{
    background-color:#2B2B2B;
}
/* Бейдж кровати с матрасом */
.badge-mattress {
    background-color: #5B2C83;
}

/* шарики цветов в каталоге */
.product_features__colors-short span:nth-of-type(-n+9) .icon16.color {
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
.product_features__colors-short span:nth-of-type(-n+9) .icon16.color:hover {
    opacity: 1;
}

/* ===== Кнопка доставки в товаре ===== */
.delivery-info-wrap{
    display:flex;
    justify-content: flex-start;
    margin:10px 0;
}
/* основной элемент */
.delivery-btn{
    display:flex;
    align-items:flex-start;
    gap:12px;
    width:100%;
    max-width:440px;
    padding:8px 20px;
    background:#FFFFFF;
    border:1.5px solid #D2D2D2;  /* чуть выразительнее */
    border-radius:8px;
    text-decoration:none;
    cursor:pointer;
    box-sizing:border-box;
    transition:all 0.2s ease;
}
/* hover */
.delivery-btn:hover{
    border-color:#EE3D02;
    box-shadow:0 6px 16px rgba(238, 61, 2, 0.16);
}
/* иконка */
.delivery-btn i{
    font-size:32px;
    color:#1F7A3A;
    flex-shrink:0;
    margin-top:2px;
}
/* основной текст */
.delivery-btn span{
    display:block;
    font-size:16px;
    font-weight:700;
    color:#1A1A1A;
    line-height:1.25;
}
/* CTA */
.delivery-btn small{
    display:block;
    margin-top:2px;
    font-size:13px;
    font-weight:600;
    color:#EE3D02;
    line-height:1.25;
}

/* ===== ДЕСKTOP: цена + кнопка в одну линию ===== */
.product_add2cart {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* ===== Блок цены ===== */
.product_add2cart .product_prices {
    flex: 0 0 auto;          /* убрали растяжение */
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none !important;

    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* ===== Основная цена ===== */
.product_add2cart .product__price {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;

    line-height: 1;
    font-size: 28px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.4px;
}
/* ===== Прижимаем баннер доставки к правому краю (Десктоп) ===== */
.product_add2cart-services {
    padding: 8px 0px 0 0px; 
    margin: 0;
    background: transparent;
    border: none;
}
/* Убираем верхний отступ 15px и фиксируем линию */
.product_cart-desc {
    margin-top: 0 !important; /* Убирает пустоту над линией */
    padding-top: 5px !important; /* Делает аккуратный зазор под линией до текста */
}
/* ===== END ДЕСKTOP: цена + кнопка в одну линию ===== */

/* ===== Кнопка 3D КОНСТРУКТОР (вровень с доставкой + центр текста) ===== */
.product-3d-btn-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 15px;
}
/* кнопка */
.product-3d-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* ВАЖНО: центр текста */
    gap: 10px;
    width: 100%;
    max-width: 440px; /* как у delivery */
    padding: 8px 20px;
    background: #0065cc;
    border: 1.5px solid #005bd3;
    border-radius: 8px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
/* hover */
.product-3d-btn:hover {
    background: #004a99;
    border-color: #004a99;
    box-shadow: 0 6px 16px rgba(0, 91, 211, 0.18);
}
/* active */
.product-3d-btn:active {
    transform: translateY(0);
}
/* иконка */
.product-3d-btn::before {
    content: "🛠️";
    font-size: 18px;
    line-height: 1;
}
/* ===== END Кнопка конструктора кухни ===== */

/* ===== STIKY фото  и галереи в карточке товара со скролом справа === */
/* DESKTOP ONLY (СТАБИЛЬНЫЙ LAYOUT) */
@media (min-width: 900px) {
    /* 1. ОСНОВА LAYOUT */
    .product_main {
        display: flex;
        align-items: flex-start;
        flex-wrap: nowrap;
    }
    /* 2. ЛЕВАЯ КОЛОНКА (STICKY ГАЛЕРЕЯ) */
    .product_main-left {
        position: sticky;
        top: var(--header-height, 48px);
        align-self: flex-start;
        z-index: 5;
        overflow: visible;
    }
    /* галерея — без конфликтов */
    .product_gallery,
    .product_gallery-previews,
    #product-gallery {
        position: sticky;
        top: var(--header-height, 48px);
        z-index: 6;
    }
    /* 3. ПРАВАЯ КОЛОНКА */
    .product_main-right {
        flex: 1;
        min-width: 360px;
    }
    /* 4. КАРУСЕЛИ (SAFE MODE) */
    .product_gallery-main .owl-stage-outer {
        overflow: hidden !important;
    }
    .bx-viewport {
        overflow: hidden !important;
    }
    /* 5. SAFETY (УБИРАЕМ CONFLICTS) */
    .product_main-left,
    .product_main-right {
        transform: none;
    }
}
/* === END STIKY фото  и галереи в карточке товара со скролом справа === */

/* ===== STICKY Характеристики и отзывы ===== */
.tabs.js-tabs {
    background: #fff;
    position: sticky;
    top: var(--header-height, 46px);
    z-index: 50;
}
/* базовый таб */
.tabs_el,
li.tabs_el {
    font-weight: 600;
    padding: 0 20px;
    transition: background 0.2s ease, color 0.2s ease;
}
/* hover */
.tabs_el:hover {
    background: #f5f8fb;
    color: #000;
}
/* активный таб */
.tabs_el.active {
    color: #00457E;
    font-weight: 600;

    border-top: 3px solid #00457E;
    background: #fff;
}
/* ===== END STICKY Характеристики и отзывы ===== */

/* ===== кнопка перехода в бекенд ===== */
.admin-quick-links {
    position: fixed;
    left: auto !important;
    right: 5px !important;
    bottom: 120px;
    width: auto !important;
    z-index: 600;
}