/* Wishlist page — Your Wishlist layout */
.ucw-wishlist-page {
	color: #2D161E;
	padding: 50px 0px;
}

.ucw-wishlist-page__title {
	color: #2D161E;
}

.ucw-wishlist-page__back a {
	color: rgb(45 22 30 / 0.7) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: transform 0.2s ease;
	font-family: 'Manrope', sans-serif;
}

.ucw-wishlist-page__back a:hover {
	transform: translateX(-3px);
}

.ucw-wishlist-page__subtitle {
	color: #4C0F2E;
	font-size: 18px;
	line-height: 22px;
	font-weight: 600;
	padding: 20px 0px;
}

.ucw-share-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: -12px 0 24px;
	padding: 16px 18px;
	border: 1px solid #4C0F2E;
	background: linear-gradient(135deg, #fffaf6 0%, #f7f1ea 100%);
}

.ucw-share-links__summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ucw-share-links__heading {
	font-size: 0.95rem;
	font-weight: 600;
	color: #4d3c2f;
}

.ucw-share-links__url {
	max-width: 100%;
	font-size: 0.8rem;
	color: #2D161E;
}

.ucw-share-links__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px !important;
	border: 0;
	background: #4C0F2E;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700;
	cursor: pointer;
}

.ucw-share-popup {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(45, 22, 30, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: ucwFadeIn 0.15s ease;
}

.ucw-share-popup[hidden] {
	display: none !important;
}

.ucw-share-popup__panel {
	width: 100%;
	max-width: 460px;
	padding: 30px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	animation: ucwSlideIn 0.18s ease;
}

.ucw-share-popup__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.ucw-share-popup__title {
	margin: 0 0 6px;
}

.ucw-share-popup__subtitle {
	margin: 0px !important;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
}

.ucw-share-popup__close {
	border: 0;
	background: transparent !important;
	box-shadow: none;
	padding: 0px !important;
	cursor: pointer;
}

.ucw-share-popup__url-wrap {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ucw-share-popup__url {
	min-height: 44px;
	flex: 1;
	min-width: 120px;
	padding: 10px 12px !important;
	font-size: 14px !important;
	border: 1px solid rgba(45, 22, 30, 0.15) !important;
	background: #FFFFFF !important;
	border-radius: 0px !important;
}

.ucw-share-popup__copy,
.ucw-share-popup__native {
	display: inline-flex;
	min-width: 100px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px !important;
	border: 1px solid #4C0F2E;
	background: #fff;
	color: #ffffff !important;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.ucw-share-popup__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ucw-share-popup__item {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	padding: 10px;
	background: rgb(235 226 219 / 60%);
	border: 1px solid #4C0F2E;
	color: #3c3128;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.ucw-share-popup__item:hover {
	color: #2D161E;
	border-color: #4C0F2E;
}

.ucw-share-links__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ucw-share-links__icon svg {
	width: 30px;
	height: 30px;
	display: block;
}

body.ucw-share-popup-open {
	overflow: hidden;
}

.ucw-wishlist-page__empty {
	text-align: center;
	padding: 0px;
}

.ucw-wishlist-page__empty-inline {
	margin: 24px 0;
}

.ucw-wishlist-page__shop-link {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 24px;
	background-color: #00000000;
	font-size: 14px !important;
	font-weight: 400;
	letter-spacing: 3px;
	color: #2D161E !important;
	border-style: solid;
	border-width: 1px 1px 1px 1px;
	border-color: #CABCB4;
	border-radius: 0px 0px 0px 0px;
	text-decoration: none !important;
}

/* Tabs */
.ucw-wishlist-tabs {
	display: flex;
	gap: 20px;
	margin-bottom: 0;
}

.ucw-wishlist-tabs__btn {
	position: relative;
	padding: 20px !important;
	border: 1px solid #4C0F2E !important;
	background-color: transparent !important;
	font-size: 14px !important;
	line-height: 20px !important;
	font-weight: 600 !important;
	color: #4C0F2E !important;
	cursor: pointer;
}

.ucw-wishlist-tabs__btn:hover {
	background-color: #4C0F2E !important;
	color: #FFFFFF !important;
}

.ucw-wishlist-tabs__btn.is-active {
	background-color: #4C0F2E !important;
	color: #FFFFFF !important;
}

.ucw-wishlist-tabs__line {
	height: 1px;
	margin-bottom: 20px;
}

/* Panels */
.ucw-wishlist-panel[hidden] {
	display: none !important;
}

.ucw-wishlist-panel.is-active {
	display: block;
}

/* Collections grid */
.ucw-collections-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 24px;
}

@media (min-width: 900px) {
	.ucw-collections-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.ucw-collections-grid {
		grid-template-columns: 1fr;
	}

	.ucw-wishlist-tabs__btn {
		padding: 14px !important;
	}
}

/* Collection card */
.ucw-collection-card {
	display: flex;
	flex-direction: column;
}

.ucw-collection-card__preview {
	display: block !important;
	text-decoration: none !important;
}

.ucw-collection-card__canvas.has-2-products {
	grid-template-rows: 1fr;
}

.ucw-collection-card__canvas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: rgb(255 255 255 / 40%);
	overflow: hidden;
	gap: 20px;
	padding: 20px;
}

/* Each tile fills one grid cell */
.ucw-collection-card__tile {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* If only 1 product, make it span both columns & rows (full-cover look) */
.ucw-collection-card__tile--0:first-child:last-child {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}

.ucw-collection-card__tile--empty {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	background: rgb(255 255 255 / 40%);
}

.ucw-collection-card__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ucw-collection-card__preview:hover .ucw-collection-card__tile img {
	transform: scale(1.05);
}

.ucw-collection-card__meta {
	padding-top: 14px;
}

.ucw-collection-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ucw-collection-card__name {
	font-size: 16px !important;
	font-weight: 700;
	color: #2D161E;
	text-decoration: none !important;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.ucw-collection-card__name:hover {
	color: #333;
}

.ucw-collection-card__count {
	margin: 4px 0 0 !important;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
}

/* Card menu */
.ucw-collection-card__menu {
	position: relative;
	flex-shrink: 0;
}

.ucw-collection-card__menu-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: none;
	background: transparent;
	cursor: pointer;
}

.ucw-collection-card__menu-btn svg {
	fill: #EBE2DB;
}

.ucw-collection-card__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	min-width: 220px;
	margin-top: 4px;
	padding: 10px;
	background: #fff;
	border: 1px solid #4C0F2E;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ucw-collection-card__share {
	display: block;
}

.ucw-collection-card__dropdown .wishlist-menu {
	display: block;
	width: 100%;
	border: none !important;
	background: none;
	font-size: 14px;
	line-height: 24px;
	font-weight: 500;
	text-transform: inherit;
	text-align: left;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: transform 0.1s ease;
	padding: 4px;
}

.ucw-collection-card__dropdown .wishlist-menu:hover {
	transform: scale(1.02);
	background: rgb(76 15 46 / 25%);
}

.ucw-collection-card__delete {
	color: #cf2e2e !important;
}

/* Products grid */
.ucw-products-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ucw-products-grid.products {
	display: grid;
	gap: 24px;
}

.ucw-products-grid.columns-4 {
	grid-template-columns: repeat(2, 1fr);
}

.ucw-products-grid .cst-product-card {
	margin-bottom: 20px;
}

.ucw-products-grid .cst-product-card .cst-product-info .cst-product-title a,
.ucw-recently-viewed-swiper ul .cst-product-card .cst-product-info .cst-product-title a {
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-decoration: none;
}

.ucw-products-grid .cst-product-card .cst-product-info .cst-price,
.ucw-recently-viewed-swiper ul .cst-product-card .cst-product-info .cst-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-weight: 600;
	color: #4c0f2e;
}

.ucw-products-grid .cst-product-card .cst-image-wrap img,
.ucw-recently-viewed-swiper ul .cst-product-card .cst-image-wrap img {
	width: 100% !important;
	aspect-ratio: 4 / 5 !important;
	;
	object-fit: cover !important;
	;
	object-position: center center !important;
	;
	margin-bottom: 0px !important;
}

.ucw-products-grid .cst-product-card .cst-product-info,
.ucw-recently-viewed-swiper ul .cst-product-card .cst-product-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 0 0;
}

.ucw-products-grid .cst-product-card .cst-product-info .cst-product-title,
.ucw-recently-viewed-swiper ul .cst-product-card .cst-product-info .cst-product-title {
	margin-bottom: 0px;
}


.ucw-recently-viewed .swiper-button-prev,
.ucw-recently-viewed .swiper-button-next {
	background: #4C0F2E;
	width: 35px !important;
	height: 35px !important;
}

.ucw-recently-viewed .swiper-button-prev::after,
.ucw-recently-viewed .swiper-button-next::after {
	font-size: 16px;
	color: #ffffff;
}

/* ── Delete Confirmation Modal ──────────────────────────────────────────── */
.ucw-delete-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(45, 22, 30, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	padding: 20px;
	animation: ucwFadeIn 0.15s ease;
}

@keyframes ucwFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.ucw-delete-modal {
	background: #fff;
	width: 100%;
	max-width: 460px;
	padding: 30px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	animation: ucwSlideIn 0.18s ease;
}

@keyframes ucwSlideIn {
	from {
		transform: translateY(-10px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.ucw-delete-modal__title {
	margin: 0 0 6px;
}

.ucw-delete-modal__actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.ucw-delete-modal__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	border: 1.5px solid transparent;
}

.ucw-delete-modal__btn--cancel {
	background-color: #00000000 !important;
	border: 1px solid #CABCB4 !important;
	color: #2D161E !important;
}

.ucw-delete-modal__btn--confirm {
	background: #2D161E;
	border-color: #2D161E;
	color: #fff !important;
}

@media (min-width: 768px) {
	.ucw-products-grid.columns-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.ucw-products-grid.columns-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}