/* ==============================================
   Кастомные переопределения для Digistr + Partsix
   ============================================== */

/* --- Поиск: форма с выбором категории --- */
.predictive__search--form__row {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: #fff;
	border: 1px solid var(--border-color, #e0e0e0);
	border-radius: 5px;
	overflow: hidden;
}
/* Обёртка input — растягивается на всё свободное пространство */
.predictive__search--form__row .predictive__search--input__wrap {
	flex: 1 1 auto;
	display: flex;
}
/* Сам input: убираем правый отступ (он был для абсолютной кнопки) и рамку */
.predictive__search--form__row .predictive__search--input {
	flex: 1 1 auto;
	padding: 0 15px;
	border: none;
	outline: none;
	height: 4.5rem;
}
@media only screen and (min-width: 1200px) {
	.predictive__search--form__row .predictive__search--input { height: 5rem; }
}
/* Обёртка select с категориями */
.predictive__search--category__wrap {
	flex: 0 0 auto;
	position: relative;
	border-left: 1px solid var(--border-color, #e0e0e0);
	display: flex;
	align-items: center;
}
.predictive__search--category {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background: #f5f5f5;
	padding: 0 28px 0 10px;
	height: 100%;
	min-width: 120px;
	font-size: 1.3rem;
	cursor: pointer;
	outline: none;
}
.predictive__search--category__arrow {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #666;
}
/* Кнопка поиска — убираем position:absolute (конфликт с flex-строкой) */
.predictive__search--button {
	position: static !important;
	flex: 0 0 auto;
	width: 5.5rem;
	height: auto;
	border-radius: 0;
}

/* --- Bootstrap .fade конфликт: активная вкладка должна быть видна --- */
.tab-pane.fade.show { opacity: 1 !important; }

/* --- Карточка товара: предотвратить исчезновение изображения при hover --- */
/* style.css скрывает .product__primary--img ожидая secondary-image; у нас одно фото */
.product__items:hover .product__primary--img,
.product__card--items:hover .product__primary--img {
	opacity: 0.88 !important;
	visibility: visible !important;
}

/* --- Hero слайдер: полноэкранный --- */
.hero__slider--section {
	position: relative;
	margin: 0 auto;
	overflow: hidden;
}
.hero__slider--photo {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

.hero__slider--section a{
	width: 100%;
}
.swiper-wrapper,
.hero__slider--section .swiper-slide,
.hero__slider--section .swiper-slide > a {
	height: 100%;
}
.hero__slider--wrapper{
	width: 100%;
}
@media (max-width: 767px) {
.swiper-pagination-bullet {
    width: 1rem;
    height: 1rem;
}
}

/* --- Информационный блок преимуществ (3 колонки) --- */
.shipping__inner--3 {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.shipping__inner--3 .shipping__items {
	flex: 1 1 calc(33.333% - 20px);
	min-width: 200px;
}
@media (max-width: 991px) {
	.shipping__inner--3 .shipping__items { flex: 1 1 100%; }
}

/* --- Вкладки карточки товара (Описание / Отзывы / Характеристики) --- */
/* Панели скрыты по умолчанию; Partsix _script.js tab() добавляет .active */
.product__details--tab__content--inner {
	display: none;
}
.product__details--tab__content--inner.active {
	display: block;
}
.product__details--tab__content {
	background: #fff;
	padding: 25px;
	border: 1px solid #f0f0f0;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

/* --- TINY.box попап «Купить в 1 клик» --- */
/* tinybox.style.css не подключён в _header2.tpl, стили прописываем здесь */
.tmask {
	position: fixed !important;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,.55);
	z-index: 1000000;
}
.tbox {
	position: fixed !important;
	z-index: 1000001;
}
.tinner {
	border-radius: 12px !important;
	box-shadow: 0 8px 40px rgba(0,0,0,.18) !important;
	background: #fff !important;
	overflow: hidden;
}
.tcontent {
	padding: 20px;
}
/* Заменяем close.png на CSS-крестик */
.tclose {
	position: absolute;
	top: 10px; right: 10px;
	width: 30px; height: 30px;
	cursor: pointer;
	background: none !important;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.8rem; color: #666;
	border-radius: 50%;
	transition: background .15s;
}
.tclose::after { content: '\2715'; }
.tclose:hover { background: #f0f0f0 !important; color: #333; }

/* --- Карусель похожих товаров: стрелки навигации --- */
/* .swiper__nav--btn по умолчанию opacity:0;visibility:hidden — переопределяем */
.product__swiper--column4__activation .related-swiper-prev,
.product__swiper--column4__activation .related-swiper-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	opacity: 1 !important;
	visibility: visible !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
.product__swiper--column4__activation .related-swiper-prev { left: 0; }
.product__swiper--column4__activation .related-swiper-next { right: 0; }

/* --- Кнопка «В корзину» на карточке товара: всегда видна --- */
/* style.css скрывает .product__card--footer через opacity:0;visibility:hidden */
.product__card--footer {
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	padding: 0.5rem 0rem 0rem !important;
	background: transparent !important;
}
.product__card--footer::before {
	display: none !important;
}
/* Цена не скрывается при наведении на карточку */
.product__card:hover .product__card--price {
	opacity: 1 !important;
	visibility: visible !important;
}
/* Кнопка — на всю ширину */
.product__card--btn {
	display: block;
	width: 100%;
	text-align: center;
}
.product__details--info{
	position: relative;
}

/* --- Форма отзывов: CSS звёздный рейтинг --- */
.review__star--rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
	padding: 6px 0;
}
.review__star--rating input[type="radio"] {
	display: none;
}
.review__star--rating label {
	font-size: 2.4rem;
	color: #ccc;
	cursor: pointer;
	transition: color .1s;
	line-height: 1;
}
.review__star--rating input[type="radio"]:checked ~ label,
.review__star--rating label:hover,
.review__star--rating label:hover ~ label {
	color: #f5a623;
}
/* Алерты формы отзывов */
.review__form--alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 1.4rem;
	line-height: 1.5;
}
.review__form--alert svg { flex-shrink: 0; margin-top: 2px; }
.review__form--alert-success { background: #edf7ed; color: #2e7d32; }
.review__form--alert-success svg { stroke: #2e7d32; }
.review__form--alert-error   { background: #fdecea; color: #c62828; }
.review__form--alert-error svg   { stroke: #c62828; }
.review__form--privacy {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 1.3rem;
	color: #666;
}

/* ================================================================
   Корзина: пошаговая форма оформления заказа
   ================================================================ */
.cart-tabs.first-step {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 25px;
	margin-bottom: 20px;
}

/* --- Корзина: sidebar-обёртка левой колонки (checkout__sidebar) --- */
.checkout__sidebar {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 25px;
}
/* Разделитель строк продуктов */
.checkout__product--table .cart__table--body__items {
	border-bottom: 1px solid #f5f5f5;
}
.checkout__product--table .cart__table--body__items:last-child {
	border-bottom: none;
}
.checkout__product--table td.cart__table--body__list {
	padding: 12px 0;
	vertical-align: middle;
}
/* Название товара */
.product__description--name a {
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--text-color, #2c2c2c);
	line-height: 1.4;
}
.product__description--name a:hover { color: var(--secondary-color, #E04329); }
.product__description--variant {
	display: block;
	font-size: 1.2rem;
	color: #888;
	margin-top: 2px;
}
/* qty box внутри карточки товара корзины */
.checkout__product--table .quantity__box {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	overflow: hidden;
}
.checkout__product--table .quantity__box .quantity__value {
	width: 26px;
	height: 26px;
	background: #f5f5f5;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}
.checkout__product--table .quantity__box .quantity__value:hover {
	background: var(--secondary-color, #E04329);
	color: #fff;
}
.checkout__product--table .quantity__box .quantity__number {
	width: 32px;
	text-align: center;
	border: none;
	border-left: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	height: 26px;
	font-size: 1.3rem;
	padding: 0;
}
/* Кнопка удаления */
.checkout__product--table .cart__remove--btn:hover { color: var(--secondary-color, #E04329) !important; }
/* Итого строка */
.checkout__total--table {
	width: 100%;
	border-collapse: collapse;
}
.checkout__total--body .checkout__total--items td {
	padding: 8px 0;
	font-size: 1.35rem;
	border-bottom: 1px solid #f5f5f5;
}
.checkout__total--footer .checkout__total--footer__list {
	padding-top: 10px;
	font-size: 1.5rem;
	font-weight: 600;
}
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
/* Заголовки шагов */
.tabs-ttl {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 15px;
}
.tabs-ttl a {
	display: inline-block;
	padding: 6px 16px;
	font-size: 1.35rem;
	font-weight: 500;
	color: #555;
	background: #f5f5f5;
	border-radius: 6px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.tabs-ttl a:hover  { background: #e8e8e8; }
.tabs-ttl a.active { background: var(--secondary-color, #E04329); color: #fff; }
/* Заблокированные вкладки (ещё не достигнуты) */
.tabs-ttl a.tab-locked {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}
/* Поля формы внутри корзины */
.cart-tabs .checkout__input--field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 1.4rem;
	transition: border-color .2s;
}
.cart-tabs .checkout__input--field:focus {
	border-color: var(--secondary-color, #E04329);
	outline: none;
}
.cart-tabs .checkout__notes--textarea__field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 1.4rem;
	resize: vertical;
}
.cart-tabs .checkout__input--label { font-size: 1.35rem; font-weight: 500; }
/* Статусные сообщения (успех / отмена / ошибка оплаты) */
.cart__status--inner  { text-align: center; padding: 40px 20px; }
.cart__status--title  { margin: 15px 0 10px; font-size: 2.4rem; }
.cart__status--desc   { margin-bottom: 20px; color: #666; }

/* ================================================================
   Выпадающее меню: стандартный .header__sub--menu
   ================================================================ */
/* Hover-цвет для ссылок в обычном дропдауне */
.header__sub--menu__link:hover {
	color: var(--secondary-color, #E04329);
}
/* Разделитель между пунктами */
.header__sub--menu__items {
	border-bottom: 1px solid #f5f5f5;
}
.header__sub--menu__items:last-child {
	border-bottom: none;
}

/* ================================================================
   Мегаменю каталога: заголовок колонки + список дочерних
   ================================================================ */
/* Заголовок колонки — название родительской категории */
.header__mega--col__title {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-color, #2c2c2c);
	padding-bottom: 8px;
	margin-bottom: 6px;
	border-bottom: 2px solid var(--secondary-color, #E04329);
	transition: color 0.2s;
	line-height: 1.4;
}
.header__mega--col__title:hover {
	color: var(--secondary-color, #E04329);
}
/* Список дочерних категорий */
.header__mega--sub__menu {
	list-style: none;
	padding: 0;
	margin: 4px 0 0 0;
}
/* Hover для ссылок дочерних категорий */
.header__mega--sub__menu--title:hover {
	color: var(--secondary-color, #E04329);
}

/* ================================================================
   Личный кабинет: центрирование форм входа / регистрации
   ================================================================ */
.login__section--inner { margin: 0 auto; }
.account__login--inner { display: flex; flex-direction: column; flex: 1; }
.account__login .account__login--btn { margin-top: auto; }
.login__section .row { align-items: stretch; }
/* Форма профиля / смены пароля */
.account__wrapper .row { align-items: start; }
.account__wrapper .col-12 .account__login--btn { width: auto; min-width: 180px; }
/* ================================================================
  Мои стили
   ================================================================ */
.product__card--title a, .small__product--card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  
  /* Для браузеров без поддержки -webkit-line-clamp */
  @supports not (-webkit-line-clamp: 2) {
    max-height: 2.4em;
    display: block;
    position: relative;
    
    &::after {
      content: "...";
      position: absolute;
      bottom: 0;
      right: 0;
      background: white;
    }
  }
}
.product__card{
	min-height: 443px;
}
.product__card:hover .product__primary--img {
    opacity: 0.3;
   visibility: visible;
}
.widget__categories--menu__label{
	padding: 1.2rem 1rem;
}
#contactForm.fw input.text, #contactForm.fw textarea, #contactForm.fw .select{
	width: 100%
	;
}
.separator{
	color:var(--secondary-color);
}
.breadcrumb__content--menu li a{
	padding: 0px 20px 0 20px;
}
.last-breadcrumb__content{
	padding-left: 10px;

}
.breadcrumb__content--menu li{
	display: flex;
}
.breadcrumb__content--menu{
	flex-wrap: wrap;
}
#testimonials h2{
	margin-bottom: 15px;
	background: transparent;
}
.href-hidden{
	display: none;
}
#testimonials .testimonial a{
	font-weight: bold;
	font-size: 15px;
}
.widget__categories--menu__label .pointer-event{
	pointer-events: auto;
}

.widget__categories--sub__menu--link.active, .widget__categories--menu__text.active{
	color:#c62828;
}

.user-request-box input, .user-request-box textarea{
	width: 100%;
}
.ajax-form-submit .button{
        font-size: 1.5rem;
        line-height: 4.2rem;
        height: 4.2rem;
        padding: 0 2.5rem;
	    letter-spacing: 0.2px;
    border-radius: 2.4rem;
    background: var(--secondary-color);
    color: var(--text-white-color);
    border: 0;
	display: inline-block;
}
.tinner{
	width: 300px!important;
}
.ajax-form-submit .button:hover{
	color:#fff;
}




.product__swiper--hits .swiper__nav--btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__swiper--hits .hits-swiper-prev{
	left:0px;
}
.product__swiper--hits .hits-swiper-next{
	right:0px;
}
.checkout__total--footer__list  .cart-price{
    font-size: 2.2rem;
    font-weight: 600;
}
.checkout__total{
	border-top: 0px;
}

.checkout__total--footer__list::before{
	height: 0px;
}
.footer__section {
	position: relative;
	top:25px;
}

@media (max-width: 768px) {
.hero__slider--photo{
	max-width: 100%;
	height: auto;
}
.swiper-wrapper, .hero__slider--section .swiper-slide, .hero__slider--section .swiper-slide > a{
	height: auto;
}
.hero__slider--section{
	height: auto;
}
.swiper-pagination {
    bottom: 10px !important;
}
.product__card{
	min-height: 390px;
}
}
.container-cookie-message {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 13%;
    z-index: 1000;
   
}

.container-cookies {
    max-width: 1040px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.hidden {
    display: none !important;
} 

.cookies-message {
    background-color: #ffff;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    color: #303030;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    flex-wrap: nowrap;
}

.cookies-text {
    line-height: 1.4;
    margin-right: 25px;
    flex-grow: 1;
    font-size: 12px;
}

.cookies-link {
    color: #ed1d24;
    text-decoration: underline;
}

.cookies-button {
    background-color: #ed1d24;
    color: #ffff;
    border: none;
    padding: 10px 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.cookies-button:hover {
    background-color: #6e7172;
}


#scroll__top{
	z-index: 999999999;
}

.main__logo--img{
        top: -12px;
        position: relative;	
}
@media (max-width: 768px) {
    .cookies-message {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .cookies-text {
        font-size: 11px;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .cookies-button {
        font-size: 12px;
         padding:2px 10px;
    }
	.main__logo--img {
		top: -12px;
		position: relative;
	}
}

