/* Quick View — автономные стили (подключаются глобально в header.php) */

.catalog-element--quick-view {
	padding: 28px 36px 32px;
}

.catalog-element--quick-view .bx-catalog-element__decor-wrapp {
	display: none;
}

.catalog-element--quick-view__title {
	margin: 0 0 24px;
	padding-right: 44px;
	color: #000;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Две колонки: галерея слева, инфо справа */
.catalog-element--quick-view__layout {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: 32px;
}

.catalog-element--quick-view__gallery {
	flex: 0 0 42%;
	max-width: 42%;
	min-width: 0;
	position: relative;
}

.catalog-element--quick-view__gallery > .favorite {
	top: 0;
	right: 0;
	z-index: 15;
}

.catalog-element--quick-view__info {
	flex: 1 1 58%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Gallery */
.catalog-element--quick-view .bx-catalog-element__slider {
	width: 100% !important;
	flex: none !important;
	margin: 0 !important;
}

.catalog-element--quick-view .qv-gallery {
	width: 100%;
}

/* ——— Основной слайдер: всегда 1 слайд ——— */
.catalog-element--quick-view .qv-gallery-main {
	overflow: hidden;
	width: 100%;
}

.catalog-element--quick-view .qv-gallery-main .swiper-wrapper {
	align-items: stretch;
}

.catalog-element--quick-view .qv-gallery-main .swiper-slide,
.catalog-element--quick-view .qv-gallery-main .qv-gallery-slide {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: auto !important;
	flex-shrink: 0;
	box-sizing: border-box;
}

.catalog-element--quick-view .qv-gallery-main .swiper-slide img,
.catalog-element--quick-view .qv-gallery-main .qv-gallery-slide img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 220px !important;
	object-fit: contain !important;
}

.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-main .swiper-slide img,
.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-main .qv-gallery-slide img {
	max-height: none !important;
}

.catalog-element--quick-view .qv-gallery .bx-catalog-element__photo {
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	overflow: hidden;
}

.catalog-element--quick-view .qv-gallery .bx-catalog-element__photo-wrapp {
	align-items: center;
	min-height: 0;
}

.catalog-element--quick-view .qv-gallery-slide--placeholder {
	background: #fafafa;
	border: 1px dashed #e0e0e0;
	border-radius: 8px;
	min-height: 180px;
	padding: 16px;
}

.catalog-element--quick-view .qv-gallery-slide--placeholder img {
	max-height: 140px !important;
	opacity: 0.55;
}

.catalog-element--quick-view .qv-gallery-thumb--placeholder {
	background: #fafafa;
}

.catalog-element--quick-view .qv-gallery-thumb--placeholder img {
	opacity: 0.55;
	object-fit: contain !important;
}

/* ——— Превью: горизонтальные (обычные товары) ——— */
.catalog-element--quick-view .qv-gallery:not(.qv-gallery--pseudo) .qv-gallery-thumbs {
	margin-top: 10px;
	overflow: hidden;
	width: 100%;
}

.catalog-element--quick-view .qv-gallery:not(.qv-gallery--pseudo) .qv-gallery-thumbs .swiper-slide {
	width: 56px !important;
	height: 56px !important;
	flex-shrink: 0;
	cursor: pointer;
	opacity: 0.55;
	border: 1px solid #ffd7e1;
	border-radius: 6px;
	padding: 4px;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.catalog-element--quick-view .qv-gallery:not(.qv-gallery--pseudo) .qv-gallery-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	border-color: #f63f95;
}

.catalog-element--quick-view .qv-gallery:not(.qv-gallery--pseudo) .qv-gallery-thumbs .swiper-slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Buy row: цена | счётчик | кнопка */
.catalog-element--quick-view__buy-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 14px !important;
	margin: 0 0 20px !important;
}

.catalog-element--quick-view__buy-row .price-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	margin: 0 !important;
	flex-shrink: 0;
}

.catalog-element--quick-view__buy-row .product-item-detail-price-current {
	font-size: 36px !important;
	line-height: 1;
	text-wrap: nowrap;
	color: #000 !important;
	text-align: left !important;
	font-weight: 700;
}

.catalog-element--quick-view__buy-row .product-item-detail-price-old {
	font-size: 20px;
	text-align: left !important;
	color: #bdbdbd;
	text-decoration: line-through;
}

/* Счётчик количества */
.catalog-element--quick-view .product-item-quantity-block {
	order: unset !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	padding: 10px 17px;
	width: fit-content;
	height: fit-content;
	border-radius: 10px;
	background-color: #ffd7e1;
	flex-shrink: 0;
}

.catalog-element--quick-view .product-item-amount {
	padding: 0;
	text-align: center;
}

.catalog-element--quick-view .product-item-amount-field-container {
	display: flex;
	align-items: center;
	position: relative;
	max-width: 110px;
	margin: 0 !important;
}

.catalog-element--quick-view .product-item-amount-field-btn-plus,
.catalog-element--quick-view .product-item-amount-field-btn-minus {
	position: relative;
	display: block;
	min-width: 22px;
	height: 22px;
	border-radius: 10px;
	color: #525c68;
	vertical-align: middle;
	text-align: center;
	cursor: pointer;
}

.catalog-element--quick-view .product-item-amount-field-btn-plus:hover,
.catalog-element--quick-view .product-item-amount-field-btn-minus:hover {
	background: rgba(211, 211, 211, 0.71);
}

.catalog-element--quick-view .product-item-amount-field-btn-plus::after,
.catalog-element--quick-view .product-item-amount-field-btn-minus::after {
	position: absolute;
	inset: 0;
	content: '';
	opacity: 0.8;
}

.catalog-element--quick-view .product-item-amount-field-btn-plus::after {
	background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj4gIDxwYXRoIGZpbGw9IiM1MjVDNjgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTE4LDEyIEwxOCwwIEwxMiwwIEwxMiwxMiBMMCwxMiBMMCwxOCBMMTIsMTggTDEyLDMwIEwxOCwzMCBMMTgsMTggTDMwLDE4IEwzMCwxMiBMMTgsMTIgWiIvPjwvc3ZnPg==") no-repeat center;
	background-size: 10px;
}

.catalog-element--quick-view .product-item-amount-field-btn-minus::after {
	background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj4gIDxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSI2IiB5PSIxMiIgZmlsbD0iIzUyNUM2OCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+") no-repeat center;
	background-size: 10px;
}

.catalog-element--quick-view .product-item-amount-field-block {
	flex: 1;
}

.catalog-element--quick-view .product-item-amount-field {
	display: block;
	padding: 0;
	width: 100%;
	height: 28px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: transparent !important;
	color: #000;
	text-align: center;
	font-weight: 700;
	font-size: 24px;
	line-height: 28px;
}

.catalog-element--quick-view .product-item-amount-field:focus {
	outline: none !important;
}

.catalog-element--quick-view input.product-item-amount-field::-webkit-outer-spin-button,
.catalog-element--quick-view input.product-item-amount-field::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* Кнопка «Купить» — без иконки листика */
.catalog-element--quick-view__buy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 24px;
	min-width: 130px;
	max-width: 160px;
	width: auto !important;
	height: 52px !important;
	flex-shrink: 0;
	color: #000;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	background: #ffd7e1;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	position: relative;
}

.catalog-element--quick-view__buy-btn::before,
.catalog-element--quick-view__buy-btn::after {
	content: none !important;
	display: none !important;
	background: none !important;
}

.catalog-element--quick-view__buy-btn:hover,
.catalog-element--quick-view__buy-btn:focus {
	color: #fff !important;
	background: #f63f95 !important;
}

.catalog-element--quick-view__buy-btn.disable {
	opacity: 0.7;
	pointer-events: none;
}

/* PARFUM / pseudo-SKU — как на детальной странице */
.catalog-element--quick-view .product-item-properties-basket {
	margin-top: 16px;
	margin-bottom: 0;
	order: unset !important;
}

.catalog-element--quick-view .product-item-detail-volume {
	margin-bottom: 20px;
}

.catalog-element--quick-view .product-item-detail-volume__title {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 10px;
}

.catalog-element--quick-view .product-item-detail-volume__wrapp {
	display: grid;
	grid-template-columns: repeat(auto-fill, 55px);
	gap: 10px;
	max-height: calc(55px * 4 + 10px * 3);
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
}

.catalog-element--quick-view .product-item-detail-volume__input {
	display: none;
}

.catalog-element--quick-view .product-item-detail-volume__item {
	width: 55px;
	height: 55px;
	border: 1px solid rgba(214, 0, 53, 0);
	border-radius: 10px;
	overflow: hidden;
	transition: border 0.3s;
	cursor: pointer;
	position: relative;
}

.catalog-element--quick-view .product-item-detail-volume__name::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 100%;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 10px solid #212529;
	visibility: hidden;
	transition: all 0.3s;
	opacity: 0;
}

.catalog-element--quick-view .product-item-detail-volume__input:checked + .product-item-detail-volume__item,
.catalog-element--quick-view .product-item-detail-volume__item--current,
.catalog-element--quick-view .product-item-detail-volume__item:hover {
	border-color: rgba(214, 0, 53, 0.7);
}

.catalog-element--quick-view .product-item-detail-volume__item:hover .product-item-detail-volume__name,
.catalog-element--quick-view .product-item-detail-volume__item:hover .product-item-detail-volume__name::after {
	visibility: visible;
	opacity: 1;
}

.catalog-element--quick-view .product-item-detail-volume__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.catalog-element--quick-view .product-item-detail-volume__item--placeholder {
	background: #fafafa;
}

.catalog-element--quick-view .product-item-detail-volume__item--placeholder img {
	object-fit: contain;
	padding: 6px;
	opacity: 0.55;
}

.catalog-element--quick-view .product-item-detail-volume__name {
	visibility: hidden;
	transition: all 0.3s;
	opacity: 0;
	position: absolute;
	width: 200px;
	color: #f1f3f5;
	background-color: #212529;
	border-radius: 10px;
	padding: 10px 20px;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	font-size: 14px;
	line-height: normal;
	z-index: 1;
}

/* Галерея псевдо-ТП — как на детальной */
.catalog-element--quick-view .bx-catalog-element__select-prop-name {
	margin-bottom: 15px;
	background: #f63f95;
	color: #fff;
	padding: 5px;
	display: inline-block;
	border-radius: 3px;
	font-size: 18px;
	line-height: 1.2;
}

.catalog-element--quick-view .qv-gallery--pseudo .bx-catalog__slider-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: flex-start;
}

.catalog-element--quick-view .qv-gallery--pseudo .bx-catalog-element__photo {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	max-width: calc(100% - 66px);
	margin: 0;
	overflow: hidden;
}

.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-thumbs {
	width: 56px !important;
	height: 150px !important;
	margin-top: 0;
	margin-left: 0 !important;
	flex: 0 0 56px;
	overflow: hidden;
}

.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-thumbs .swiper-wrapper {
	align-items: center;
}

.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-thumbs .swiper-slide {
	width: 100% !important;
	height: 46px !important;
	flex-shrink: 0;
	box-sizing: border-box;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 1px solid #ffd7e1;
	border-radius: 6px;
	padding: 3px;
	transition: border-color 0.3s;
}

.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-thumbs .swiper-slide:hover,
.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-thumbs .swiper-slide.swiper-slide-thumb-active {
	border-color: #f63f95;
}

.catalog-element--quick-view .qv-gallery--pseudo .qv-gallery-thumbs .swiper-slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

.catalog-element--quick-view .qv-gallery--pseudo .bx-catalog-element__photo-wrapp .swiper-slide {
	position: relative;
}

.catalog-element--quick-view .qv-gallery--pseudo .bx-catalog-element__photo-wrapp .swiper-slide span {
	position: absolute;
	left: 20px;
	top: 20px;
	font-size: 14px;
	padding: 5px 10px;
	background-color: #ffd7e1;
	color: #fff;
}

.catalog-element--quick-view .qv-gallery--pseudo a.swiper-slide {
	cursor: zoom-in;
}

/* Properties list */
.catalog-element--quick-view .product-item-properties {
	margin: 0;
	padding: 0;
	list-style: none;
	order: unset !important;
}

.catalog-element--quick-view .product-item-properties__item {
	position: relative;
	margin: 0 0 6px;
	padding-left: 14px;
	font-size: 15px;
	line-height: 1.3;
}

.catalog-element--quick-view .product-item-properties__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f63f95;
	transform: translateY(-50%);
}

.catalog-element--quick-view .product-item-properties__item-title {
	font-weight: 700;
}

.catalog-element--quick-view .product-item-properties__item-result {
	font-weight: 400;
}

.catalog-element--quick-view .btn--not-avaible {
	margin-top: 8px;
}

@media (max-width: 767.98px) {
	.catalog-element--quick-view {
		padding: 18px 14px 20px;
	}

	.catalog-element--quick-view__title {
		margin-bottom: 16px;
		padding-right: 36px;
		font-size: 17px;
	}

	.catalog-element--quick-view__layout {
		flex-direction: column !important;
		gap: 18px;
	}

	.catalog-element--quick-view__gallery,
	.catalog-element--quick-view__info {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
	}

	.catalog-element--quick-view__buy-row {
		flex-wrap: wrap !important;
	}

	.catalog-element--quick-view__buy-btn {
		flex: 1 1 100%;
		max-width: none;
	}
}
