﻿/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */
.site-header .header-phone,
.site-header .header-html-1 {
    display: block;
    line-height: 1.3;
}
/* Точная перекраска кнопки слайдера Bono */
.card-slider__button:not(:disabled):not(.disabled) {
    background-color: #D93829 !important;
    border-color: #D93829 !important;
    color: #FFFFFF !important;
}

.card-slider__button:not(:disabled):not(.disabled):hover {
    background-color: #B52B1E !important;
    border-color: #B52B1E !important;
}
/* Аккуратный блок кнопок в карточке товара на витрине Bono */
.shop-item__buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

.shop-item__buttons .shop-item__buttons-cart,
.shop-item__buttons a.button,
.shop-item__buttons button {
    font-size: 12px !important;
    line-height: 1.2 !important;
    padding: 7px 12px !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    max-width: 170px !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    background-color: #D93829 !important;
    border-color: #D93829 !important;
    color: #FFFFFF !important;
}

.shop-item__buttons .shop-item__buttons-cart:hover,
.shop-item__buttons a.button:hover,
.shop-item__buttons button:hover {
    background-color: #B52B1E !important;
    border-color: #B52B1E !important;
    color: #FFFFFF !important;
}
/* Единый красный стиль кнопок в карточке товара и белый текст при наведении */
.shop-item__buttons a,
.shop-item__buttons button,
.shop-item__buttons .shop-item__buttons-cart {
    background-color: #D93829 !important;
    border: 1px solid #D93829 !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    padding: 7px 12px !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    max-width: 175px !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.shop-item__buttons a:hover,
.shop-item__buttons a:focus,
.shop-item__buttons button:hover,
.shop-item__buttons button:focus,
.shop-item__buttons .shop-item__buttons-cart:hover {
    background-color: #B52B1E !important;
    border-color: #B52B1E !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.shop-item__buttons a span,
.shop-item__buttons button span,
.shop-item__buttons a:hover span,
.shop-item__buttons button:hover span {
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Кнопки на карточке товара: полностью скрыты без наведения, появляются только при наведении */
.shop-item .shop-item__buttons {
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    top: auto !important;
    bottom: 10px !important;
    transform: none !important;
}

.shop-item:hover .shop-item__buttons {
    display: flex !important;
}
/* Опускаем блок кнопок ниже белых кружочков при наведении на карточку в Bono */
.woocommerce ul.products li.product.shop-item .shop-item__buttons,
.shop-item .shop-item__buttons {
    display: none !important;
}

.woocommerce ul.products li.product.shop-item:hover .shop-item__buttons,
.shop-item:hover .shop-item__buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    position: absolute !important;
    top: auto !important;
    bottom: 10px !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
}
/* Скрываем стрелки и точки переключения на слайдере Swiper */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
  display: none !important;
}
/* Убираем белый фон при наведении на кнопку слайдера */
.card-slider__button:hover,
.swiper-slide:hover .card-slider__button,
.card-slider__body:hover .card-slider__button,
a:hover .card-slider__button {
  background-color: #D93829 !important;
  border-color: #D93829 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* На случай белого слоя или псевдоэлемента при наведении */
.card-slider__button:hover::before,
.card-slider__button:hover::after,
.swiper-slide:hover .card-slider__button::before,
.swiper-slide:hover .card-slider__button::after {
  background-color: transparent !important;
  opacity: 0 !important;
  content: none !important;
}