/* Wishlist page — Your Wishlist layout */
.ucw-wishlist-page {
	/* max-width: 1100px;
	margin: 0 auto; */
	padding: 24px 20px 48px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #111;
}

.ucw-wishlist-page__title {
	margin: 0 0 28px;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}

.ucw-wishlist-page__back {
	margin: 0 0 16px;
	font-size: 0.9375rem;
}

.ucw-wishlist-page__back a {
	color: #555;
	text-decoration: none;
}

.ucw-wishlist-page__back a:hover {
	color: #111;
}

.ucw-wishlist-page__subtitle {
	margin: -16px 0 28px;
	font-size: 0.9375rem;
	color: #888;
}

.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 #ece6df;
	background: linear-gradient(135deg, #fffaf6 0%, #f7f1ea 100%);
	border-radius: 14px;
}

.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: #7a6757;
	overflow-wrap: anywhere;
}

.ucw-share-links__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-size: 0.875rem;
	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: rgba(15, 23, 42, 0.45);
}

.ucw-share-popup[hidden] {
	display: none !important;
}

.ucw-share-popup__panel {
	width: 100%;
	max-width: 460px;
	padding: 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.ucw-share-popup__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.ucw-share-popup__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	color: #1f2937;
}

.ucw-share-popup__subtitle {
	margin: 0;
	font-size: 0.9rem;
	color: #6b7280;
}

.ucw-share-popup__close {
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.ucw-share-popup__url-wrap {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	margin-bottom: 18px;
}

.ucw-share-popup__url {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #d6d3d1;
	border-radius: 12px;
	font-size: 0.875rem;
	color: #374151;
}

.ucw-share-popup__copy,
.ucw-share-popup__native {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid #d6d3d1;
	background: #fff;
	color: #111827;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.ucw-share-popup__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.ucw-share-popup__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #eadfd5;
	color: #3c3128;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.ucw-share-popup__item:hover {
	color: #111;
	border-color: #d8c4b4;
}

.ucw-share-links__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body.ucw-share-popup-open {
	overflow: hidden;
}

.ucw-wishlist-page__empty {
	text-align: center;
	padding: 48px 16px;
	color: #666;
}

.ucw-wishlist-page__empty-inline {
	color: #888;
	margin: 24px 0;
}

.ucw-wishlist-page__shop-link {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 24px;
	background: #c41e3a;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
}

.ucw-wishlist-page__shop-link:hover {
	background: #a01830;
	color: #fff;
}

/* Tabs */
.ucw-wishlist-tabs {
	display: flex;
	gap: 32px;
	margin-bottom: 0;
}

.ucw-wishlist-tabs__btn {
	position: relative;
	padding: 0 0 14px;
	border: none;
	background: none;
	font-size: 1rem;
	font-weight: 500;
	color: #888;
	cursor: pointer;
	transition: color 0.15s ease;
}

.ucw-wishlist-tabs__btn:hover {
	color: #333;
}

.ucw-wishlist-tabs__btn.is-active {
	color: #111;
	font-weight: 600;
}

.ucw-wishlist-tabs__btn.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: #c41e3a;
	border-radius: 1px;
}

.ucw-wishlist-tabs__line {
	height: 1px;
	background: #e8e8e8;
	margin-bottom: 32px;
}

/* 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-share-links {
		align-items: flex-start;
	}

	.ucw-share-popup__url-wrap,
	.ucw-share-popup__list {
		grid-template-columns: 1fr;
	}
}

/* Collection card */
.ucw-collection-card {
	display: flex;
	flex-direction: column;
}

.ucw-collection-card__preview {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Collection card canvas — 2×2 photo mosaic */
.ucw-collection-card__canvas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e8e8e8;
	border-radius: 2px;
	overflow: hidden;
	gap: 10px;
}

/* Each tile fills one grid cell */
.ucw-collection-card__tile {
	display: block;
	width: 100%;
	height: 100%;
	background: #ddd;
	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;
}

/* If 2 products, each spans a full row */
/* .ucw-collection-card__tile--0:nth-last-child(2),
.ucw-collection-card__tile--1:nth-child(2):last-child {
	grid-column: 1 / -1;
} */

.ucw-collection-card__tile--empty {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	background: #e8e8e8;
}

.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: 1rem;
	font-weight: 700;
	color: #111;
	text-decoration: none;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ucw-collection-card__name:hover {
	color: #333;
}

.ucw-collection-card__count {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: #999;
}

/* 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: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	color: #666;
	cursor: pointer;
}

.ucw-collection-card__menu-btn:hover {
	color: #111;
}

.ucw-collection-card__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	min-width: 220px;
	margin-top: 4px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ucw-collection-card__share {
	display: block;
}

.ucw-collection-card__dropdown a,
.ucw-collection-card__dropdown button {
	display: block;
	width: 100%;
	padding: 10px 16px;
	border: none;
	background: none;
	font-size: 0.875rem;
	text-align: left;
	color: #333;
	text-decoration: none;
	cursor: pointer;
}

.ucw-collection-card__dropdown a:hover,
.ucw-collection-card__dropdown button:hover {
	background: #f5f5f5;
}

.ucw-collection-card__delete {
	color: #c41e3a !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);
}

@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);
	}
}

.ucw-products-grid > li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}
