/* Порівняння товарів (до 3) */

[data-mini-compare] .mini-compare-content,
[data-mini-compare].dropdown.open .mini-compare-content {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.header-links .mini-compare > .mini-compare-heading .label,
#mini-compare-wrapper-regular .mini-compare-heading .label {
	display: none !important;
}

[data-mini-compare]:not(.is-empty) > .mini-compare-heading .count:not(:empty) {
	display: inline-block;
}

/* Кнопка на картці */
.category-products-grid .product-image-wrapper,
.home-cat-slider .product-image-wrapper,
.itemslider .product-image-wrapper {
	position: relative;
}

.estore-compare-btn {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	color: #444;
	font-size: 0.95rem;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.estore-compare-btn:hover {
	transform: scale(1.08);
	background: #fff;
	color: #111;
}

.estore-compare-btn.is-active {
	background: rgba(83, 235, 12, 0.18);
	color: #111;
	box-shadow: 0 2px 10px rgba(83, 235, 12, 0.25);
}

.estore-compare-btn--pdp {
	position: static;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.estore-compare-btn__icon {
	line-height: 1;
}

/* Модалка в шапці */
.estore-compare-shell {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.estore-compare-shell__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(2px);
}

.estore-compare-shell__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(520px, calc(100vw - 2rem));
	max-height: min(90vh, 560px);
	height: auto;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.estore-compare-shell__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid #ececec;
}

.estore-compare-shell__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.estore-compare-shell__close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
	color: #444;
}

.estore-compare-shell__body {
	padding: 0.75rem 1rem;
	overflow-y: auto;
	flex: 0 1 auto;
	min-height: 0;
	max-height: calc(90vh - 9rem);
}

.estore-compare-shell__hint {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: #666;
}

.estore-compare-shell__rows {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.estore-compare-shell__row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 2rem 0.55rem 0.65rem;
	background: #f7f7f8;
	border-radius: 8px;
	position: relative;
}

.estore-compare-shell__thumb {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
	background: #fff;
	border-radius: 6px;
}

.estore-compare-shell__title {
	font-size: 0.88rem;
	line-height: 1.35;
	font-weight: 600;
}

.estore-compare-shell__remove-corner {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	border: 0;
	background: transparent;
	color: #888;
	cursor: pointer;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.estore-compare-shell__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.15rem;
	border-top: 1px solid #ececec;
}

.estore-compare-shell__continue {
	border: 0;
	background: transparent;
	text-decoration: underline;
	color: #555;
	cursor: pointer;
	font-size: 0.9rem;
}

.estore-compare-shell__go.button {
	margin: 0;
	color: #000 !important;
	font-weight: 700;
}

.estore-compare-shell__go.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.estore-compare-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 10050;
	max-width: 320px;
}

.estore-compare-toast__inner {
	background: #1a1a1a;
	color: #fff;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid rgba(83, 235, 12, 0.35);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.estore-compare-toast__product {
	margin: 0 0 4px;
	font-weight: 600;
	font-size: 0.95rem;
}

.estore-compare-toast__msg {
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: #aaa;
}

.estore-compare-toast__btn {
	font-size: 0.85rem;
	padding: 6px 14px;
}

/* Сторінка порівняння */
.estore-compare-page-lead {
	color: #666;
	margin: 0 0 1rem;
}

.estore-compare-page-loading {
	color: #888;
}

.estore-compare-empty {
	text-align: center;
	padding: 1.5rem 1rem 2rem;
}

.estore-compare-empty__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.estore-compare-table-wrap {
	overflow-x: auto;
	margin: 0 0 1.5rem;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.estore-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 560px;
}

.estore-compare-table th,
.estore-compare-table td {
	padding: 0.75rem 0.85rem;
	border-bottom: 1px solid #eee;
	vertical-align: top;
	text-align: left;
	font-size: 0.9rem;
}

.estore-compare-table thead th {
	background: #fafafa;
	border-bottom: 1px solid #e5e5e5;
}

.estore-compare-table tbody th[scope="row"] {
	width: 140px;
	font-weight: 600;
	color: #555;
	background: #fcfcfc;
	white-space: nowrap;
}

.estore-compare-table__label-col {
	width: 140px;
}

.estore-compare-table__product-col {
	min-width: 180px;
	position: relative;
	padding-top: 2rem;
}

.estore-compare-table thead .estore-compare-table__product-col {
	text-align: center;
}

.estore-compare-table tbody td {
	text-align: center;
}

.estore-compare-table__remove {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 6px;
	background: #eee;
	color: #555;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.estore-compare-table__remove:hover {
	background: #53eb0c;
	color: #111;
}

.estore-compare-table__photo {
	display: block;
	margin: 0 auto 0.65rem;
	max-width: 120px;
}

.estore-compare-table__photo img {
	max-width: 100%;
	max-height: 110px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.estore-compare-table__name {
	display: block;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.65rem;
	color: #111;
	text-decoration: none;
	text-align: center;
}

.estore-compare-table__name:hover {
	color: #53eb0c;
}

.estore-compare-table__cart.button {
	margin: 0 auto;
	padding: 4px 10px;
	min-height: 0;
	height: auto;
	line-height: 1.25;
	font-size: 0.75rem;
	color: #000 !important;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.estore-compare-page-actions {
	text-align: center;
}

@media (max-width: 640px) {
	.estore-compare-table tbody th[scope="row"] {
		width: 100px;
		font-size: 0.8rem;
	}
}
