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

/* Загальні стилі лайтбоксів
========================== */
.shop-list-lightbox .lightbox-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.shop-list-lightbox.active .lightbox-background {
	opacity: 1;
	visibility: visible;
}

.shop-list-lightbox .lightbox-section {
	position: fixed;
	top: 0;
	right: -120vw;
	width: var(--shop-list-width);
	height: 100dvh;
	max-height: 100dvh;
	margin-top: 0;
	padding: var(--shop-list-padding);
	background: var(--light-gray);
	z-index: 9999;
	transition: right 0.3s ease;
	overflow-y: auto;
	border-radius: 0;
}

.shop-list-lightbox.active .lightbox-section {
	right: 0;
}

.shop-list-lightbox .lightbox-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: 100%;
}

/* Кнопка закриття
================ */
.shop-list-lightbox .close-lightbox {
	position: absolute;
	top: var(--shop-list-padding);
	right: var(--shop-list-padding);
	padding: 0;
	background: transparent;
	border-radius: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1;
}
.shop-list-lightbox .close-lightbox img {
	width: 22px;
	height: 22px;
}

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

.shop-list-lightbox .shop-list-header .h3 {
	margin: 0;
}

/* Тіло списку
=========== */
.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.wishlist-lightbox .shop-list-items {
	overflow: auto;
}
.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: 15px;
	height: 100%;
}
.shop-list-lightbox .shop-list-empty-message .icon {
	margin-bottom: 5px;
}
.shop-list-lightbox .shop-list-empty-message .h3 {
	margin: 0;
}
.shop-list-lightbox .shop-list-empty-message p {
	color: var(--dark-gray);
	margin: 0;
	text-align: center;
}
.shop-list-lightbox .shop-list-empty-message .btn {
	margin-top: 5px;
}

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

.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: 500;
}

.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;
}

/* Disabled стан кнопок */
.shop-list-lightbox .shop-list-actions .btn.disabled {
	pointer-events: none;
}
.shop-list-lightbox .shop-list-actions .btn.btn-primary.disabled {
	background: #e7e7e7;
	color: var(--gray);
	border-color: #e7e7e7;
}
.shop-list-lightbox .shop-list-actions .btn.btn-border.disabled {
	border-color: var(--gray);
	color: var(--gray);
}

/* Footnote */
.shop-list-lightbox .shop-list-footnote {
	font-size: 14px;
	line-height: 18px;
	color: var(--primary);
	text-align: center;
	margin: 20px 0 0;
}

/* Стани завантаження
================== */
.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;
}



/* Адаптив
======== */
@media (max-width: 768px) {
	.shop-list-lightbox .lightbox-section {
		width: var(--shop-list-mobile-width);
		right: -100%;
		padding: var(--shop-list-mobile-padding);
	}

	.shop-list-lightbox .close-lightbox {
		top: 20px;
		right: 20px;
		width: 32px;
		height: 32px;
	}

	.shop-list-lightbox .shop-list-header {
		margin-bottom: 20px;
		padding-right: 40px;
	}


	.shop-list-lightbox .shop-list-body {
		padding-right: 0;
	}
	.shop-list-lightbox .lightbox-content {
		padding-right: 10px;
	}
	.shop-list-lightbox .shop-list-footer {
		padding-top: 20px;
	}

	.shop-list-lightbox .cart-subtotal {
		font-size: 16px;
	}

	.shop-list-lightbox .shop-list-actions {
		flex-direction: column;
	}
	.shop-list-lightbox .shop-list-actions .btn {
		height: 45px;
		font-size: 14px;
	}


}



/* Лічильники
========== */
.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;
}

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

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

.cart-total-line .cart-summary-value {
	font-size: 20px;
	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: 500;
	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;
	}

	.cart-total-line .cart-summary-label {
		font-size: 16px;
	}

	.cart-total-line .cart-summary-value {
		font-size: 18px;
	}

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

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



