/**
* Wishlist page template — mirrors the homepage product section design.
*/

.pe-wishlist-page {
	--pe-wishlist-brown: #735438;
	--pe-wishlist-brown-dark: #5b4635;
	--pe-wishlist-ink: #746557;
	--pe-wishlist-soft: #f4efeb;
	--pe-wishlist-line: #bdae9f;
	--pe-wishlist-red: #9e1c16;
	--pe-wishlist-green: #789d45;
	--pe-wishlist-muted: #897d72;
}

.pe-wishlist-page .site-content {
	padding-block: 0;
	background: #fff;
}

.pe-wishlist-page .site-content > .content-layout {
	display: block;
	width: min(calc(100% - 80px), 1600px);
	max-width: none;
	padding: clamp(96px, 8vw, 150px) 0 clamp(110px, 10vw, 170px);
}

.pe-wishlist-page .pe-wishlist-masthead {
	display: flex;
	min-height: 234px;
	padding: 42px 24px;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	background: var(--pe-wishlist-soft);
	color: var(--pe-wishlist-brown-dark);
	text-align: center;
}

.pe-wishlist-page .pe-wishlist-masthead h1 {
	margin: 0 0 16px;
	font-family: var(--pe-heading-font);
	font-size: clamp(2rem, 3vw, 2.65rem);
	font-weight: 700;
	line-height: 1;
}

.pe-wishlist-page .pe-wishlist-masthead__trail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	color: #887b70;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.55;
	text-transform: uppercase;
}

.pe-wishlist-page .pe-wishlist-masthead__trail a {
	color: inherit;
	text-decoration: none;
}

.pe-wishlist-page main.site-main {
	display: block;
}

.pe-wishlist {
	color: var(--pe-wishlist-ink);
}

.pe-wishlist *,
.pe-wishlist *::before,
.pe-wishlist *::after {
	box-sizing: border-box;
}

.pe-wishlist img {
	display: block;
	max-width: 100%;
}

.pe-wishlist__shell {
	width: min(calc(100% - 80px), 1500px);
	margin-inline: auto;
}

.pe-wishlist__count {
	margin: 0 0 54px;
	color: var(--pe-wishlist-muted);
	font-size: clamp(.95rem, 1.15vw, 1.1rem);
	font-weight: 700;
	letter-spacing: .06em;
	text-align: center;
}

/* Product grid — identical proportions to the homepage section-product grid. */
.pe-wishlist__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 72px clamp(24px, 3.2vw, 60px);
}

.pe-wishlist__grid .pe-product {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-align: center;
	transition: opacity 260ms ease, transform 260ms ease;
}

.pe-wishlist__grid .pe-product.is-removing {
	opacity: 0;
	transform: scale(.96);
	pointer-events: none;
}

.pe-wishlist__grid .pe-product__image {
	position: relative;
	display: block;
	margin-bottom: 27px;
	border-radius: 20px;
	background: #f2eee9;
	outline-offset: 5px;
	overflow: hidden;
}

.pe-wishlist__grid .pe-product__image-stage {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.pe-wishlist__grid .pe-product__image-face {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 1;
	transition: opacity 320ms ease;
}

.pe-wishlist__grid .pe-product__image-face--secondary {
	opacity: 0;
}

.pe-wishlist__grid .pe-product__image-face img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 420ms cubic-bezier(.2, .7, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
	.pe-wishlist__grid .pe-product--has-secondary.pe-product--secondary-ready:hover .pe-product__image-face--primary,
	.pe-wishlist__grid .pe-product--has-secondary.pe-product--secondary-ready:focus-within .pe-product__image-face--primary {
		opacity: 0;
	}

	.pe-wishlist__grid .pe-product--has-secondary.pe-product--secondary-ready:hover .pe-product__image-face--secondary,
	.pe-wishlist__grid .pe-product--has-secondary.pe-product--secondary-ready:focus-within .pe-product__image-face--secondary {
		opacity: 1;
	}

	.pe-wishlist__grid .pe-product--has-secondary.pe-product--secondary-ready:hover .pe-product__image-face--secondary img,
	.pe-wishlist__grid .pe-product--has-secondary.pe-product--secondary-ready:focus-within .pe-product__image-face--secondary img,
	.pe-wishlist__grid .pe-product:not(.pe-product--has-secondary):hover .pe-product__image-face img,
	.pe-wishlist__grid .pe-product:not(.pe-product--has-secondary):focus-within .pe-product__image-face img {
		transform: scale(1.045);
	}
}

.pe-wishlist__grid .pe-product__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 7px;
}

.pe-wishlist__grid .pe-product__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 28px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--pe-wishlist-red);
	box-shadow: 0 5px 16px rgb(63 26 16 / 18%);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
}

.pe-wishlist__grid .pe-product__badge--bestseller {
	background: var(--pe-wishlist-green);
	box-shadow: 0 5px 16px rgb(69 94 37 / 20%);
}

.pe-wishlist__grid .pe-product__badge--out-of-stock {
	background: var(--pe-wishlist-muted);
	box-shadow: 0 5px 16px rgb(72 62 52 / 20%);
}

.pe-wishlist__grid .pe-product__actions {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pe-wishlist__grid .pe-product__action {
	display: inline-grid;
	width: 42px;
	height: 42px;
	min-height: 42px;
	padding: 0;
	place-items: center;
	border: 1px solid rgb(115 84 56 / 16%);
	border-radius: 50%;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 7px 20px rgb(54 36 21 / 12%);
	color: var(--pe-wishlist-brown);
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.pe-wishlist__grid .pe-product__action svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.pe-wishlist__grid .pe-product__action:hover,
.pe-wishlist__grid .pe-product__action:focus-visible,
.pe-wishlist__grid .pe-product__wishlist.is-active {
	background: var(--pe-wishlist-brown);
	color: #fff;
}

.pe-wishlist__grid .pe-product__wishlist.is-active svg {
	fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
	.pe-wishlist__grid .pe-product__actions {
		opacity: 0;
		transform: translateX(8px);
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.pe-wishlist__grid .pe-product:hover .pe-product__actions,
	.pe-wishlist__grid .pe-product:focus-within .pe-product__actions {
		opacity: 1;
		transform: translateX(0);
	}
}
.pe-wishlist__grid .pe-product h3 {
	min-height: 4.1em;
	margin: 0 auto 17px;
	color: var(--pe-wishlist-brown);
	font-family: var(--pe-heading-font);
	font-size: clamp(16px, 1.2vw, 21px);
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -.015em;
}

.pe-wishlist__grid .pe-product h3 a {
	color: inherit;
	text-decoration: none;
}

/* A fixed minimum height keeps cards aligned when ratings are missing. */
.pe-wishlist__grid .pe-product__rating {
	display: flex;
	justify-content: center;
	min-height: 14px;
	margin: 0 0 12px;
}

.pe-wishlist__grid .pe-product__rating .star-rating {
	float: none;
	margin: 0;
	color: #f5a623;
	font-size: 14px;
}

.pe-wishlist__grid .pe-product__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 31px;
	padding: 8px 2px 6px;
	border-bottom: 1px solid var(--pe-wishlist-line);
	color: var(--pe-wishlist-brown);
	font-size: 10px;
	letter-spacing: .2em;
	line-height: 1.25;
	text-align: left;
	text-transform: uppercase;
}

.pe-wishlist__grid .pe-product__shop-link {
	flex: 0 0 auto;
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pe-wishlist__grid .pe-product__price {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: baseline;
	justify-content: flex-end;
	min-width: 0;
	color: var(--pe-wishlist-brown);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-align: right;
	white-space: nowrap;
}

.pe-wishlist__grid .pe-product__price .price {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	margin: 0;
}

.pe-wishlist__grid .pe-product__price .amount {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

.pe-wishlist__grid .pe-product__meta del {
	color: #a9a39d;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .08em;
	opacity: .72;
}

.pe-wishlist__grid .pe-product__meta ins {
	color: #b20d0d;
	font-weight: 700;
	text-decoration: none;
}

/* Primary per-card actions: Add to cart and Remove from wishlist. */
.pe-wishlist__grid .pe-product__footer {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.pe-wishlist__grid .pe-product__cart-button,
.pe-wishlist__grid .pe-product__remove {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 16px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.pe-wishlist__grid .pe-product__cart-button {
	border: 1px solid var(--pe-wishlist-brown);
	background: var(--pe-wishlist-brown);
	box-shadow: 0 7px 20px rgb(54 36 21 / 12%);
	color: #fff;
}

.pe-wishlist__grid .pe-product__cart-button svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.pe-wishlist__grid .pe-product__cart-button:hover,
.pe-wishlist__grid .pe-product__cart-button:focus-visible,
.pe-wishlist__grid .pe-product__cart-button.added {
	background: #5b4635;
	border-color: #5b4635;
	color: #fff;
}

.pe-wishlist__grid .pe-product__cart-button--out-of-stock {
	border: 1px solid var(--pe-wishlist-line);
	background: transparent;
	box-shadow: none;
	color: var(--pe-wishlist-muted);
	cursor: not-allowed;
	opacity: .78;
}

.pe-wishlist__grid .pe-product__remove {
	flex: 0 0 auto;
	border: 1px solid rgb(115 84 56 / 26%);
	background: transparent;
	color: var(--pe-wishlist-brown);
	cursor: pointer;
}

.pe-wishlist__grid .pe-product__remove svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.pe-wishlist__grid .pe-product__remove:hover,
.pe-wishlist__grid .pe-product__remove:focus-visible {
	background: var(--pe-wishlist-brown);
	border-color: var(--pe-wishlist-brown);
	color: #fff;
}

.pe-wishlist__grid .added_to_cart {
	display: none;
}

/* Loading skeletons shown while the wishlist cards are fetched. */
.pe-wishlist__loading {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 72px clamp(24px, 3.2vw, 60px);
}

.pe-wishlist__loading[hidden] {
	display: none;
}

.pe-wishlist__skeleton {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.pe-wishlist__skeleton-image {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 27px;
	border-radius: 20px;
	background: #f2eee9;
}

.pe-wishlist__skeleton-line {
	display: block;
	height: 13px;
	margin: 0 auto 10px;
	border-radius: 999px;
	background: #f2eee9;
	width: 72%;
}

.pe-wishlist__skeleton-line--title {
	width: 86%;
}

.pe-wishlist__skeleton-line--short {
	width: 44%;
	margin-bottom: 20px;
}

.pe-wishlist__skeleton-button {
	display: block;
	height: 44px;
	border-radius: 999px;
	background: #f2eee9;
}

.pe-wishlist__skeleton-image,
.pe-wishlist__skeleton-line,
.pe-wishlist__skeleton-button {
	animation: pe-wishlist-pulse 1400ms ease-in-out infinite;
}

@keyframes pe-wishlist-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .55; }
}

/* Empty and error states. */
.pe-wishlist__empty,
.pe-wishlist__error {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(24px, 5vw, 72px) 0 12px;
	text-align: center;
}

.pe-wishlist__empty[hidden],
.pe-wishlist__error[hidden] {
	display: none;
}

.pe-wishlist__empty-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 24px;
	fill: none;
	stroke: #d8c6b6;
	stroke-width: 1.4;
}

.pe-wishlist__empty-title {
	margin: 0 0 10px;
	color: var(--pe-wishlist-brown);
	font-family: var(--pe-heading-font);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 400;
	letter-spacing: -.015em;
}

.pe-wishlist__empty-text {
	max-width: 420px;
	margin: 0 0 30px;
	color: var(--pe-wishlist-muted);
	font-size: clamp(.95rem, 1.2vw, 1.05rem);
	line-height: 1.55;
}

.pe-wishlist__shop-button,
.pe-wishlist__retry-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 15px 34px;
	border: 1px solid var(--pe-wishlist-brown);
	border-radius: 999px;
	background: var(--pe-wishlist-brown);
	box-shadow: 0 7px 20px rgb(54 36 21 / 14%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.pe-wishlist__shop-button:hover,
.pe-wishlist__shop-button:focus-visible,
.pe-wishlist__retry-button:hover,
.pe-wishlist__retry-button:focus-visible {
	background: #5b4635;
	border-color: #5b4635;
	color: #fff;
}

.pe-wishlist__error-text {
	margin: 0 0 26px;
	color: var(--pe-wishlist-muted);
	font-size: clamp(.95rem, 1.2vw, 1.05rem);
}
/* Quick-view dialog — matches the dialog used by the homepage and shop grids. */
.pe-wishlist-page .pe-quick-view {
	width: min(calc(100% - 32px), 860px);
	max-height: min(720px, calc(100vh - 32px));
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 80px rgb(34 22 14 / 24%);
	color: var(--pe-wishlist-brown);
	overflow: hidden;
}

.pe-wishlist-page .pe-quick-view::backdrop {
	background: rgb(31 22 16 / 56%);
	backdrop-filter: blur(3px);
}

.pe-wishlist-page .pe-quick-view__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
}

.pe-wishlist-page .pe-quick-view__image {
	min-height: 440px;
	background: #f2eee9;
}

.pe-wishlist-page .pe-quick-view__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pe-wishlist-page .pe-quick-view__content {
	display: flex;
	padding: clamp(32px, 5vw, 64px);
	flex-direction: column;
	justify-content: center;
}

.pe-wishlist-page .pe-quick-view__eyebrow {
	margin: 0 0 14px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.pe-wishlist-page .pe-quick-view__content h3 {
	margin: 0 0 24px;
	font-family: var(--pe-heading-font);
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 400;
}

.pe-wishlist-page .pe-quick-view__price {
	margin-bottom: 28px;
	color: #b20d0d;
	font-weight: 700;
}

.pe-wishlist-page .pe-quick-view__link {
	align-self: flex-start;
	background: var(--pe-wishlist-brown);
}

.pe-wishlist-page .pe-quick-view__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	min-height: 42px;
	padding: 0 0 3px;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	color: var(--pe-wishlist-brown);
	font-size: 28px;
	font-weight: 300;
}

/* Tablet. */
@media (max-width: 1024px) {
	.pe-wishlist-page .site-content > .content-layout {
		width: min(calc(100% - 48px), 1060px);
	}

	.pe-wishlist__shell {
		width: min(calc(100% - 48px), 900px);
	}

	.pe-wishlist__grid,
	.pe-wishlist__loading {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 52px 30px;
	}

	.pe-wishlist__count {
		margin-bottom: 44px;
	}
}

/* Mobile. */
@media (max-width: 767px) {
	.pe-wishlist-page .site-content > .content-layout {
		width: min(calc(100% - 40px), 760px);
		padding-block: 72px 100px;
	}

	.pe-wishlist-page .pe-wishlist-masthead {
		min-height: 185px;
	}

	.pe-wishlist__shell {
		width: min(calc(100% - 32px), 720px);
	}

	.pe-wishlist__count {
		margin-bottom: 34px;
	}

	.pe-wishlist__grid,
	.pe-wishlist__loading {
		gap: 46px;
	}

	.pe-wishlist__grid .pe-product__footer {
		flex-direction: column;
	}

	.pe-wishlist__grid .pe-product__remove {
		width: 100%;
	}

	.pe-wishlist-page .pe-quick-view__layout {
		grid-template-columns: 1fr;
	}

	.pe-wishlist-page .pe-quick-view__image {
		min-height: 240px;
	}
}

/* Small phones — single column, like the homepage grid. */
@media (max-width: 420px) {
	.pe-wishlist__grid,
	.pe-wishlist__loading {
		grid-template-columns: minmax(0, 1fr);
		gap: 52px;
	}

	.pe-wishlist__grid .pe-product {
		width: 100%;
		max-width: 420px;
		margin-inline: auto;
	}

	.pe-wishlist__grid .pe-product h3 {
		min-height: 0;
		margin-bottom: 18px;
		font-size: 20px;
	}

	.pe-wishlist__grid .pe-product__meta {
		align-items: center;
		gap: 8px;
		font-size: 9px;
		letter-spacing: .19em;
	}

	.pe-wishlist__grid .pe-product__price {
		font-size: 10px;
		letter-spacing: .08em;
	}

	.pe-wishlist__grid .pe-product__meta del {
		font-size: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pe-wishlist *,
	.pe-wishlist *::before,
	.pe-wishlist *::after {
		transition: none !important;
		animation: none !important;
	}
}
