/*   
Theme Name: WBR
Theme URI: /
Description: Тема сайта
Author: EpicMan2
Author URI: -
Version: 1.0
.

.
*/

.catalog-wrap {
	width: 100%;
}

.catalog-main-wrap {
	clear: both;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
	color: #111 !important;
}

.catalog-chips .wpc-filters-labels { margin: 0; padding: 0; }
.catalog-chips .wpc-filter-chips-list {
	list-style-type: none;
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.catalog-chips .wpc-filter-chip {
    margin: 0 !important;
    padding: 0 !important;
	color: #fff !important;
}

.catalog-chips span {
	color: #fff !important;
}

.catalog-chips .wpc-filter-chip a {
	display: block;
	color: #fff !important;
	background: #999;
	transition: 0.5s;
	border-radius: 2rem;
	padding: 0.4rem 0.9rem 0.5rem 0.9rem;
	font-size: 0.9rem;
	height: 40px !important;
}

.catalog-chips .wpc-filter-chip a:hover {
	color: #fff;
	background: #666;
}

/* Скрываем системную ссылку "Просмотр корзины" после AJAX добавления */
form.cart .added_to_cart,
.tovar-btns .added_to_cart {
    display: none !important;
}

.woocommerce-no-products-found {
	width: 100%;
}

@media (min-width: 992px) {
	.main-banner-wrap-2 div img {
		height: 100%;
		object-fit: cover !important;
		width: 100%;
	}
}

.custom-variation-ul li.out-of-stock {
    opacity: 0.4;
    position: relative;
    pointer-events: none;
}
.custom-variation-ul li.out-of-stock a,
.custom-variation-ul li.out-of-stock span {
    color: #999 !important;
    text-decoration: line-through;
}

/* Состояние: Предзаказ */
.custom-variation-ul li.pre-order {
    border: 1px dashed #cccccc;
}
.custom-variation-ul li.pre-order a,
.custom-variation-ul li.pre-order span {
    color: #666666;
}

.custom-variation-ul li.pre-order::after {
    content: 'предзаказ';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #ff9900;
    white-space: nowrap;
}


.tovar-opis-text {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.tovar-opis-text.truncated {
    max-height: 80px;
}

.tovar-opis-text.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
}

.tovar-opis-more {
    display: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 8px;
	border-bottom: none !important;
}

.catalog-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3.3 / 4.5;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
}

.catalog-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
}

.woocommerce div.product {
	margin-bottom: 2rem;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
	background-color: transparent !important;
	border-radius: 100px !important;
	padding: 0 !important;
}

.dgwt-wcas-search-submit {
	display: none !important;
}

.search-block input {
	width: 100% !important;
	padding: 1.2rem 2rem !important;
	font-size: 1.0rem !important;
	background-color: #fff !important;
	border-radius: 100px !important;
}

.wp-block-paragraph {
	margin-bottom: 1rem;
}

.gallery {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    align-items: flex-start;
}

.gallery .main-container {
    flex: 1; 
    position: relative;
    background: #f9f9f9;
}

.gallery .main-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery .thumbnails {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    flex-shrink: 0;
    overflow-y: scroll !important;
    padding-right: 5px; 
    
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
}

.gallery .thumbnails::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.gallery .thumbnails::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 4px;
}

.gallery .thumbnails .thumb {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.gallery .thumbnails .thumb:hover,
.gallery .thumbnails .thumb.active {
    opacity: 1;
    border-color: #333333;
}

@media screen and (max-width: 900px) {
    .gallery {
        flex-direction: column !important;
        gap: 10px;
    }

    .gallery .thumbnails {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        max-height: none !important;
    }

    .gallery .thumbnails .thumb {
        height: auto;
        object-fit: cover;
    }
}

.forminator-iti-input.iti .iti__country-container {
	right: 30px !important;
}

.forminator-error-message {
	font-size: 0.75rem;
	padding: 5px 20px;
	display: inline-block;
	color: #ff0000;
}

.forminator-response-message  {
	font-size: 0.75rem;
	padding: 5px 20px;
	display: inline-block;
	color: green;
	opacity: 0.7;
	font-weight: var(--semibold);
}

.forminator-row {
	margin-bottom: 0.6rem !important;
}

.wc-block-cart__submit-button {
    background-image: var(--btn-bg) !important;
    border-radius: 100px !important;
    color: #ffffff !important;
	min-height: 72px !important;
}

.wc-block-cart__submit-button div {
    color: #ffffff !important;
	font-weight: var(--bold);
}

.wc-block-components-totals-coupon__button {
    background-image: var(--btn-bg) !important;
    border-radius: 100px !important;
    color: #ffffff !important;
	min-height: 72px !important;
}

.wc-block-components-totals-coupon__button div {
    color: #ffffff !important;
	font-weight: var(--bold);
}

#wc-block-components-totals-coupon__input-coupon {
	border-radius: 100px !important;
	min-height: 72px !important;
	padding: 1.2rem 2rem !important;
}

#wc-block-components-totals-coupon__input-coupon + label {
	display: none !important;
}

.wc-block-components-checkout-place-order-button {
    background-image: var(--btn-bg) !important;
    border-radius: 100px !important;
    color: #ffffff !important;
	min-height: 72px !important;
}

.wc-block-components-checkout-place-order-button div {
    color: #ffffff !important;
	font-weight: var(--bold);
}

.page-content-block {
	background-color: #fff;
	border-radius: 2rem;
	margin-top: 3rem;
	margin-bottom: 1rem;
	padding: 3rem;
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.wc-block-components-form input:not([type="checkbox"]):not([type="radio"]), .wc-block-components-form select {
	border-radius: 100px !important;
	min-height: 72px !important;
	padding: 1.2rem 2rem !important;
	font-size: 1.0rem !important;
}

.wc-block-components-form input:not([type="checkbox"]):not([type="radio"]) + label, .wc-blocks-components-select__label {
	left: 40px !important;
}

.tovar-opis-teaser p {
	color: #666;
	font-size: 1rem;
	line-height: 1.4rem;
	margin-top: 0.6rem;
	margin-bottom: 0.6rem;
}

.yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;

	border: 0;
	cursor: pointer;
	text-decoration: none;

    background: var(--btn-bg);
	padding: 1.4rem 2.1rem 1.35rem 2.1rem;
	color: var(--btn-fontcolor);
	transition: all 0.5s;
	border-radius: 4.3rem;
	font-size: 1rem;
	font-weight: var(--semibold);
	position: relative;
}

.yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;

	background-image: url("/wp-content/themes/wbr/assets/img/fav-2.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button__label {
	display: inline-block;
}

.yith-wcwl-icon {
    display: none !important;
}

/* Modal */
/* =========================================================
   ADD TO CART POPUP
   ========================================================= */

.addcart-popup-storage {
	display: none;
}


.addcart-popup {
	position: relative;
	display: block;

	width: min(1100px, calc(100vw - 40px));

	box-sizing: border-box;

	background: #fff;

	border-radius: 4px;
}


.addcart-popup__inner {
	position: relative;
	width: 100%;
}


.addcart-popup__content {
	padding: 35px;
}


.addcart-popup__close {
	position: absolute;

	top: 15px;
	right: 15px;

	z-index: 10;

	width: 32px;
	height: 32px;

	padding: 0;

	border: 0;

	background: transparent;

	font-size: 22px;
	line-height: 32px;

	cursor: pointer;
}


.addcart-popup .modalzag {
	margin-top: 0;
	text-align: center;
}


.addcart-popup .modalopis {
	text-align: center;
}


.addcart-popup__actions {
	display: flex;

	align-items: center;
	justify-content: center;

	gap: 15px;

	margin: 25px 0 35px;
}


.addcart-popup__continue,
.addcart-popup__cart {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	min-width: 190px;
	min-height: 46px;

	box-sizing: border-box;

	padding: 10px 25px;

	text-align: center;

	cursor: pointer;
}


.addcart-popup__recommendations-title {
	margin: 0 0 20px;

	font-size: 20px;
	font-weight: 600;
	text-align: center;
}


.addcart-popup__loading,
.addcart-popup__empty {
	padding: 30px 0;
	text-align: center;
}


.addcart-popup__products {
	width: 100%;
}


.addcart-popup__products ul.products {
	margin-bottom: 0;
}


@media (max-width: 767px) {

	.addcart-popup {
		width: calc(100vw - 20px);
	}


	.addcart-popup__content {
		padding: 30px 15px 20px;
	}


	.addcart-popup__actions {
		flex-direction: column;
	}


	.addcart-popup__continue,
	.addcart-popup__cart {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.arcticmodal-container_i {
		width: 100%;
	}

	.arcticmodal-container_i2 {
		padding: 8px !important;
	}

	.addcart-popup {
		width: 100%;
		max-width: none;
	}
}

/* =========================================================
   FORMINATOR — PHONE MASK
   ========================================================= */

.ru-phone-mask {
	position: relative;

	display: block;

	width: 100%;

	background: transparent !important;
}


/*
 * Настоящий input.
 *
 * Его текст больше НЕ прозрачный.
 * Поэтому каретка и цифры всегда совпадают.
 */
.forminator-ui .ru-phone-mask__input,
.ru-phone-mask__input {
	position: relative;

	z-index: 2;

	width: 100%;
}


/*
 * Только оставшаяся часть:
 *
 * ___) ___-__-__
 *
 * Она располагается сразу после настоящего текста.
 */
.ru-phone-mask__ghost {
	position: absolute;

	z-index: 3;

	top: 0;
	bottom: 0;

	display: flex;
	align-items: center;

	width: auto;

	color: #aaa;

	white-space: pre;

	pointer-events: none;

	background: transparent !important;

	/*
	 * ВАЖНО:
	 * никакого padding здесь нет.
	 *
	 * left рассчитывает JS относительно
	 * настоящего padding input.
	 */
	padding: 0;
	margin: 0;
}


/*
 * Чтобы ghost использовал ровно ту же
 * типографику, что и Forminator input.
 */
.ru-phone-mask__ghost {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

.pagination li {
	flex-grow: 0 !important;
}

.addcart-popup__cart {
	color: #fff !important;
}