/* Shop List (Cart & Wishlist) - Універсальні стилі
================================================== */
:root {
	--shop-list-width: 760px;
	--shop-list-padding: 24px;
	--shop-list-mobile-width: 100vw;
	--shop-list-mobile-padding: 20px 10px 20px 20px;
}

/* Загальні стилі лайтбоксів (popup по центру)
============================================= */
.shop-list-lightbox .lightbox-section {
	width: var(--shop-list-width);
	padding: var(--shop-list-padding);
}

/* Кнопка закриття
================ */
.shop-list-lightbox .close-lightbox img {
	width: 22px;
	height: 22px;
}

/* Product Item — видалення тільки іконкою */
.shop-list-lightbox .product-item__remove img {
	display: block;
}
.shop-list-lightbox .product-item__remove span {
	display: none;
}

/* Контент — footer залишається внизу, скролиться тільки body */
.shop-list-lightbox .lightbox-content {
	overflow-y: hidden;
}

/* Хедер
====== */
.shop-list-lightbox .shop-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-right: 45px;
}

.shop-list-lightbox .form-head {
	display: flex;
	align-items: center;
	gap: 15px;
}

.shop-list-lightbox .form-head img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.shop-list-lightbox .form-head .h2 {
	margin: 0;
	font-size: 24px;
	line-height: 28px;
	transform: none;
}

/* Тіло списку
=========== */
.shop-list-lightbox .shop-list-body {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	flex-grow: 1;
	padding-right: 10px;
}

.shop-list-lightbox .shop-list-items {
	display: flex;
	flex-direction: column;
	margin-bottom: 25px;
}
.shop-list-lightbox .shop-list-items .product-item__quantity {
	margin-top: 5px;
}

/* Порожній список
=============== */
.shop-list-lightbox .shop-list-empty-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
	height: 100%;

}
.shop-list-lightbox .shop-list-empty-message p {
	font-size: 16px;
	color: #999;
	margin: 0;
	text-align: center;
}

/* Футер (тільки для корзини)
========================== */
.shop-list-lightbox .shop-list-footer {
	margin-top: auto;
	border-top: 1px solid var(--border);
}

.shop-list-lightbox .cart-total {
	margin-bottom: 20px;
}

.shop-list-lightbox .cart-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	font-weight: 600;
}

.shop-list-lightbox .cart-subtotal span:first-child {
	color: var(--black);
}

.shop-list-lightbox .cart-subtotal .subtotal-value {
	color: var(--accent);
}

/* Кнопки дій
=========== */
.shop-list-lightbox .shop-list-actions {
	display: flex;
	gap: 10px;
}

.shop-list-lightbox .shop-list-actions .btn {
	width: 100%;
	justify-content: center;
	height: 50px;
}

.shop-list-lightbox .shop-list-actions .btn img {
	width: 20px;
	height: 20px;
	margin-right: 8px;
}

/* Стани завантаження
================== */
.shop-list-lightbox .shop-list-loading {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9);
	z-index: 10;
	justify-content: center;
	align-items: center;
}

.shop-list-lightbox.loading .shop-list-loading {
	display: flex;
}

.shop-list-lightbox .loader-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 4px solid #f3f3f3;
	border-top: 4px solid var(--primary);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.shop-list-lightbox.loading .shop-list-body {
	opacity: 0.6;
	pointer-events: none;
}

/* Upsell Block - Start */
.shop-list-lightbox .shop-list-upsell-wrapper {
	position: relative;
	margin-top: auto;
	padding-top: 25px;
	margin-bottom: 2px;
	border-top: 1px solid var(--border);
}

.shop-list-lightbox .shop-list-upsell-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.shop-list-lightbox .shop-list-upsell-header .h5 {
	font-size: 20px;
	line-height: 24px;
	color: var(--black);
	margin: 0;
}
.shop-list-upsell-products .options-group {
	display: none;
}

/* Upsell Scrollbar */
.shop-list-lightbox .shop-list-upsell-products .swiper-scrollbar {
	position: relative;
	height: 3px;
	background: var(--border);
	border-radius: 2px;
	margin-top: 20px;
}
.shop-list-lightbox .shop-list-upsell-products .swiper-scrollbar-drag {
	height: 100%;
	background: var(--black);
	border-radius: 2px;
	cursor: grab;
}
.shop-list-lightbox .shop-list-upsell-products .swiper-scrollbar-drag:active {
	cursor: grabbing;
}

.shop-list-lightbox .shop-list-upsell-products {
	position: relative;
}
.shop-list-lightbox .shop-list-upsell-products:not(.has-slider) {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}
.shop-list-lightbox .shop-list-upsell-products:not(.has-slider) .product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: calc(25% - 15px * 3 / 4);
}
.shop-list-lightbox .shop-list-upsell-products .product-card .btn {
	position: relative;
	bottom: initial;
	right: initial;
	width: 100%;
}
.shop-list-lightbox .shop-list-upsell-products .product-card {
	width: auto;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .product-hover-info .product-title,
.shop-list-lightbox .shop-list-upsell-products .product-card .product-hover-info .product-details {
	display: none;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .product-hover-info {
	top: 10px;
	left: 10px;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	padding: 0 5px;
	gap: 5px;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .product-hover-info .product-item__price {
	margin: 0px auto;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .option-block {
	gap: 6px;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .option-block span.option-value {
	font-size: 12px;
	line-height: 12px;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .add-to-cart-wrapper {
	margin-top: 0px;
}
.shop-list-lightbox .shop-list-upsell-products .product-card .variation-warning {
	width: fit-content;
	text-align: center;
	font-size: 12px;
	line-height: 14px;
}

.shop-list-upsell-wrapper .action-items,
.shop-list-upsell-wrapper .product-tags-or-badges{
	display: none!important;
}
.shop-list-upsell-wrapper .product-meta {
	display: none!important;
}
.shop-list-upsell-wrapper .product-card .btn {
	height: 35px !important;
	padding: 0 15px !important;
	font-size: 12px;
}
.shop-list-upsell-wrapper .product-card .add-to-cart-wrapper .custom-quantity-input[data-cart-quantity="0"] + .btn {
	padding: 0 15px !important;
}



.shop-list-upsell-wrapper .popup-header {
	margin-bottom: 5px;
}
.shop-list-upsell-wrapper .popup-header h4 {
	font-size: 12px;
	line-height: 14px;
	font-weight: 500;
}
.shop-list-upsell-wrapper .variation-popup-content {
	padding: 10px;
}
.shop-list-upsell-wrapper .variation-popup-content .variation-attribute-row label {
	margin-bottom: 5px;
	font-size: 10px;
	line-height: 10px;
}
.shop-list-upsell-wrapper .variation-popup-content .variation-options {
	gap: 4px;
}
.shop-list-upsell-wrapper .variation-popup-content .variation-option {
	height: 21px;
	padding: 0 6px;
	font-size: 11px;
	line-height: 11px;
}
.shop-list-upsell-wrapper .variation-popup-content .btn {
	height: 30px !important;
}
.shop-list-upsell-wrapper .variation-popup-content .variation-info .variation-price {
	font-size: 12px;
	line-height: 14px;
	font-weight: 500;
}

/* Upsell Block - End */

/* Адаптив
======== */
.shop-list-lightbox .wishlist-body .product-item__actions {
	margin-top: 5px;
}
@media (max-width: 768px) {
	.shop-list-lightbox {
		padding: 0;
	}
	.shop-list-lightbox .lightbox-section {
		width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		padding: var(--shop-list-mobile-padding);
		border-radius: 0;
		margin-top: 0;
	}
	.shop-list-lightbox .lightbox-content {
		max-height: calc(100dvh - 40px);
		padding-right: 10px;
	}

	.shop-list-lightbox .shop-list-header {
		margin-bottom: 20px;
		padding-right: 40px;
	}
	.shop-list-lightbox .form-head .h2 {
		font-size: 20px;
		line-height: 24px;
	}
	.shop-list-lightbox .shop-list-body {
		padding-right: 0;
	}
	.shop-list-lightbox .shop-list-footer {
		padding-top: 0px;
	}
	.shop-list-lightbox .cart-subtotal {
		font-size: 16px;
	}
	.shop-list-lightbox .shop-list-actions .btn {
		height: 45px;
		font-size: 14px;
	}
	.shop-list-lightbox .shop-list-upsell-products:not(.has-slider) .product-card {
		width: calc(50% - 15px * 1 / 2);
	}
	.shop-list-lightbox .wishlist-body .product-item__actions {
		margin-top: 5px;
	}
}

/* Специфічні налаштування для корзини
=================================== */
.cart-lightbox {
	--products-in-col: 4;
	--products-indent-w: 15px;
}

@media (max-width: 768px) {
	.cart-lightbox {
		--products-in-col: 2;
	}
}

/* Лічильники
========== */
.wishlist-counter:empty,
.cart-counter:empty {
	display: none;
}

















/* Інформаційний блок корзини (Скидки, Бонуси, Доставка)
====================================================== */
.cart-summary-info {
	margin-bottom: 20px;
}

.cart-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
}

.cart-summary-item.cart-discounts {
	padding: 15px 0;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

/* Детализация скидок */
.discount-items-detail {
	width: 100%;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed var(--border);
}

.discount-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2px 0;
	font-size: 12px;
	color: var(--text-light, #888);
}

.discount-detail-name {
	flex: 1;
}

.discount-detail-amount {
	flex-shrink: 0;
	color: var(--accent, #e74c3c);
}

.cart-summary-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
}

.cart-summary-label img {
	flex-shrink: 0;
}

.cart-summary-value {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

/* Підсумкова сума */
.cart-total-line {
	padding: 15px 0 5px;
}

.cart-total-line .cart-summary-label {
	color: var(--black);
}

.cart-total-line .cart-summary-value {
	color: var(--accent);
}

/* Блок бонусів */
.cart-bonuses .cart-summary-value {
	color: #27ae60;
}

.info-tooltip {
	background: none;
	border: none;
	padding: 0;
	cursor: help;
	opacity: 0.6;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.info-tooltip:hover {
	opacity: 1;
}

/* Прогрес безкоштовної доставки */
.cart-shipping-progress {
	flex-direction: column;
	align-items: stretch;
	padding: 15px 0;
	gap: 12px;
}

.shipping-progress-text {
	font-size: 14px;
	text-align: left;
}

.shipping-progress-bar {
	width: 100%;
}

.progress-track {
	position: relative;
	height: 8px;
	background: var(--border);
	border-radius: 4px;
	margin-top: 5px;
	overflow: visible;
}

.progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: linear-gradient(90deg, #000000, #b3a6a6);
	border-radius: 4px;
	transition: width 0.4s ease;
}

.progress-indicator {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	background: #fff;
	border: 2px solid #343434;
	border-radius: 50%;
	transition: left 0.4s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-indicator.reached {
	border-color: #27ae60;
}

.progress-label {
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	font-weight: 600;
	color: var(--black);
	white-space: nowrap;
	background: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	transition: all 0.3s ease;
}
.reached .progress-label {
	display: none;
}

.progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--text);
	opacity: 0.7;
}

/* Адаптив для інформаційного блоку */
@media (max-width: 768px) {
	.cart-summary-info {
		margin-bottom: 15px;
	}

	.cart-summary-item {
		padding: 8px 0;
		font-size: 13px;
	}

	.cart-summary-label img {
		width: 14px;
		height: 14px;
	}



	.shipping-progress-text {
		font-size: 12px;
	}

	.progress-label {
		font-size: 10px;
		top: -26px;
		padding: 2px 4px;
	}
}



