/* -----Категории на главной------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */
.categories-thumbs__item {
  display: inline-block;
  overflow: hidden;
  position: relative;
  border-radius: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Анимируем только контур и тень */
}

/* Фиксируем картинку, запрещаем любое движение */
.categories-thumbs__item img {
  display: block;
  width: 100%;
  height: auto;

}

.categories-thumbs__item:hover {
  transform: scale(1.01); /* Увеличиваем только контур */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Тень при наведении */
}

/* -----Баннеры на слайдере------------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */

.home-slider__banner {
  position: relative;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
  /* Принудительно включаем GPU-ускорение */
  transform: translate3d(0, 0, 0);
  /* Убираем возможные наслоения */

}

/* Яркая тень через псевдоэлемент (обходит ограничения overflow) */
.home-slider__banner {
  display: block;
  position: relative;
  border-radius: 8px;
  transition: all 0.4s ease;
  /* Фикс для GPU (если тень не работает) */
  transform: translateZ(0);
 
}

.home-slider__banner:hover {
  transform: translateY(-5px) translateZ(0); /* Подъём */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Тень */
}

/* Текст преймуществ */

.link_style_hover {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

/* Удален блок .link_style_hover:hover с изменением цвета текста */

.link_style_hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #000000; /* Цвет подчеркивания - для преимуществ */
  transition: width 0.3s ease;
}

.link_style_hover:hover::after {
  width: 100%;
}

/* фильтр в мобильной версии------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */
@media (max-width: 767px) {
  .select.select_size_s.select_init {
    width: 220px !important;
  }
}

/* Увеличение ширины меню валюты до 80px только на мобильных ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------*/
@media (max-width: 768px) {
    .select__dropdown {
        width: 70px !important;
        min-width: 70px !important;
    }
}
/* Сео-регион в мобильной версии ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------*/
/* Только для мобильных устройств */
@media (max-width: 768px) {
    .shop-regions-confirm-window {
        left: -125px !important;
    }
}

/* Стили для подсвеченного поля адреса (уменьшенная интенсивность)------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */
.address-highlight {
    border: 2px solid #333333 !important;        /* Тонкая темно-серая рамка вместо черной */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important; /* Очень легкая тень */
    transform: scale(1.005) !important;          /* Минимальное увеличение */
    transition: all 0.5s ease !important;
    background-color: #fafafa !important;        /* Легкое изменение фона */
}

/* Убедимся, что поле видимо */
.wa-step-shipping-section input[name*="street"],
.wa-step-shipping-section input[name*="address"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Мобильная адаптация -



/* Класс для скрытия нижнего меню в корзине через JS------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */
.hidden-on-order-page {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Дублирующее правило для надежности */
body .fixed-bar.hidden-on-order-page {
    display: none !important;
}

/* Кнопка виджет мессенджеров------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */
@media (max-width: 767px) {
    /* Уменьшение размера (оставляем как было) */
    .wca-body .wca-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
    
    .wca-body .wca-btn-bg {
        width: 30px !important;
        height: 30px !important;
    }
    
    .wca-body .wca-btn .wca-ico svg,
    .wca-body .wca-btn-icon svg {
        width: 15px !important;
        height: 15px !important;
    }
    
    .wca-body .wca-btn-icon {
        padding: 25% !important;
    }
    
    .wca-btn:after, 
    .wca-btn:before {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Перемещаем в левый нижний угол - 80px от нижнего края */
    .wca-body {
        left: 20px !important;
        right: auto !important;
        bottom: 80px !important;
    }
    
    .wca-body.wca-widget-loaded {
        left: 20px !important;
        bottom: 80px !important;
        right: auto !important;
    }
}

/* Мобильный рейтинг в футере - выравнивание по левому краю */
@media (max-width: 767px) {
    .footer-rating-widget {
        display: flex;
        justify-content: flex-start;
        margin: 15px 0;
        padding: 0px 0 0px 0px;
    }
    
    .yandex-badge-mobile {
        background: #222;
        color: white;
        border-radius: 8px;
        width: 150px;
        height: 50px;
        cursor: pointer;
        text-decoration: none;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: Arial, sans-serif;
        margin: 0;
    }
    
    .yandex-badge-mobile .rating {
        font-weight: bold;
        font-size: 18px;
        color: #fff;
    }
    
    .yandex-badge-mobile .stars {
        color: #FFC107;
        font-size: 14px;
        margin-left: 6px;
        position: relative;
        top: -4px; /* Подняли ещё выше (было -3px) */
    }
    
    .yandex-badge-mobile .yandex-logo {
        position: absolute;
        bottom: 6px; /* Опустили ниже (было 10px) для большего расстояния */
        left: 0;
        right: 0;
        text-align: center;
        font-size: 11px;
        opacity: 0.8;
        padding-left: 30px;
    }
    
    .yandex-badge-mobile .ya-red { 
        color: #FF0000;
        margin-left: 1px;
    }
}