/*
 * Ecom Theme — WooCommerce: product cards, shop/category pages, quick view, wishlist.
 * Loaded after WooCommerce's own stylesheet and overrides its loop layout.
 */

/* ---------- Shared bits ---------- */

/* WooCommerce's ".woocommerce button.button" outranks single-class modifiers, so repeat its scope. */
.button.button--small,
.woocommerce .button.button--small { min-height: 38px; padding: 0 16px; font-size: 14px; }

.button.button--outline,
.woocommerce .button.button--outline,
.woocommerce a.button.button--outline,
.woocommerce button.button.button--outline {
	background: transparent;
	border-color: var(--color-border);
	color: var(--color-text);
}

.button.button--outline:hover,
.woocommerce .button.button--outline:hover {
	background: transparent;
	border-color: var(--color-text);
	color: var(--color-text);
	filter: none;
}

.badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: calc(var(--radius) * .6);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--color-bg);
	color: var(--color-text);
}

.badge--sale { background: var(--color-sale); color: #fff; }
.badge--label { background: var(--color-brand); color: var(--color-brand-contrast); }
.badge--new { background: var(--color-accent); color: var(--color-text); }
.badge--soldout { background: var(--color-text); color: var(--color-bg); }

/* Stars: a five-star string with the filled part clipped to the rating. */
.rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	line-height: 1;
	color: var(--color-muted);
}

.rating__stars {
	--pct: calc(var(--rating) / 5 * 100%);
	position: relative;
	display: inline-block;
	font-size: 13px;
	letter-spacing: 1px;
	line-height: 1;
	background: linear-gradient(90deg, #f5a623 var(--pct), var(--color-border) var(--pct));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rating__stars::before { content: "★★★★★"; }
.rating__value { font-weight: 600; color: var(--color-text); }

/* WooCommerce price markup */
.price,
.woocommerce .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	color: var(--color-text);
	font-weight: 600;
}

.price del,
.woocommerce .price del {
	order: 2;
	color: var(--color-muted);
	font-weight: 400;
	font-size: .88em;
	opacity: 1;
}

.price ins,
.woocommerce .price ins {
	order: 1;
	text-decoration: none;
	font-weight: 600;
	background: none;
}

.price-from { font-weight: 400; color: var(--color-muted); font-size: .9em; }

/* ---------- Product grid ---------- */

.woocommerce ul.products.product-grid,
ul.products.product-grid {
	display: grid;
	grid-template-columns: repeat(var(--cols-mobile, 2), minmax(0, 1fr));
	gap: 28px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products.product-grid::before,
.woocommerce ul.products.product-grid::after { display: none; }

@media (min-width: 768px) {
	.woocommerce ul.products.product-grid,
	ul.products.product-grid {
		grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr));
		gap: 36px 20px;
	}
}

@media (min-width: 1100px) {
	.woocommerce ul.products.product-grid,
	ul.products.product-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
}

/* ---------- Product card ---------- */

.woocommerce ul.products li.product.product-card,
.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
	text-align: left;
}

.product-card--align-center .product-card__body { align-items: center; text-align: center; }
.product-card--align-center .price { justify-content: center; }

.product-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--card-ratio, 4 / 5);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.product-card__image-link { display: block; height: 100%; }

.woocommerce ul.products li.product .product-card__img,
.product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: opacity .45s var(--ease), transform .8s var(--ease);
}

.product-card__img--hover { opacity: 0; }

@media (hover: hover) {
	.product-card:hover .product-card__img--hover { opacity: 1; }
}

.product-card.is-soldout .product-card__img { filter: grayscale(.4); opacity: .75; }

.product-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	pointer-events: none;
}

.wishlist-toggle {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-bg) 92%, transparent);
	color: var(--color-text);
	box-shadow: 0 2px 8px rgb(0 0 0 / .08);
	cursor: pointer;
	transition: transform .2s, color .2s;
}

.wishlist-toggle:hover { transform: scale(1.08); }
.wishlist-toggle[aria-pressed="true"] { color: var(--color-sale); }
.wishlist-toggle[aria-pressed="true"] svg path { fill: currentColor; }
.wishlist-toggle.is-pop { animation: heart-pop .35s var(--ease); }

@keyframes heart-pop {
	50% { transform: scale(1.25); }
}

.product-card__wishlist {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
}

.product-card__quick {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 3;
	min-height: 40px;
	border: 0;
	border-radius: var(--radius-btn);
	background: color-mix(in srgb, var(--color-bg) 94%, transparent);
	color: var(--color-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 14px rgb(0 0 0 / .08);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s, transform .25s var(--ease), background .2s;
}

.product-card__quick:hover { background: var(--color-bg); }

@media (hover: hover) {
	.product-card:hover .product-card__quick,
	.product-card__quick:focus-visible { opacity: 1; transform: none; }
}

/* Touch screens: no hover, so quick view stays hidden and the card links to the product. */
@media (hover: none) {
	.product-card__quick { display: none; }
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-top: 12px;
}

.woocommerce ul.products li.product .product-card__title,
.product-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.product-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
}

/* Whole card is clickable through the title link; buttons sit above it. */
.product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.product-card__subline {
	margin: 0;
	font-size: 13px;
	color: var(--color-muted);
	line-height: 1.4;
}

.woocommerce ul.products li.product .price,
.product-card__price {
	margin: 0;
	font-size: 15px;
}

.product-card__actions {
	position: relative;
	z-index: 2;
	width: 100%;
	margin-top: auto;
	padding-top: 6px;
}

.woocommerce ul.products li.product .button.product-card__cart,
.product-card__cart {
	width: 100%;
	min-height: 42px;
	margin: 0;
	font-size: 14px;
}

.woocommerce ul.products li.product .button.product-card__cart.loading { opacity: .6; }
.woocommerce ul.products li.product .button.product-card__cart.added::after { content: " ✓"; margin: 0; }
.woocommerce ul.products li.product .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	text-align: center;
}

/* Icon style: compact bag button in the corner of the body. */
.product-card:has(.product-card__cart--icon) .product-card__body { padding-right: 48px; }
.product-card__actions:has(.product-card__cart--icon) {
	position: absolute;
	right: 0;
	bottom: 0;
	width: auto;
}

.woocommerce ul.products li.product .button.product-card__cart--icon,
.product-card__cart--icon {
	width: 40px;
	min-height: 40px;
	height: 40px;
	padding: 0;
	overflow: hidden;
	font-size: 0;
	border-radius: 50%;
}

.product-card__cart--icon::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 767px) {
	.product-card__body { gap: 4px; padding-top: 10px; }
	.woocommerce ul.products li.product .product-card__title,
	.product-card__title { font-size: 14px; }
	.product-card__subline { display: none; }
	.woocommerce ul.products li.product .button.product-card__cart { min-height: 38px; padding: 0 8px; font-size: 13px; }
	.badge { font-size: 10px; padding: 3px 6px; }
	.wishlist-toggle { width: 32px; height: 32px; }
}

/* ---------- Shop page ---------- */

.shop-archive { padding-top: 0; }

.shop-hero {
	position: relative;
	padding-block: 28px 20px;
	background: var(--color-surface);
}

.shop-hero--image {
	display: grid;
	align-items: end;
	min-height: clamp(180px, 26vw, 320px);
	color: #fff;
	overflow: hidden;
}

.shop-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shop-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgb(0 0 0 / .55), rgb(0 0 0 / .05) 70%);
}

.shop-hero__inner { position: relative; z-index: 2; }

.shop-hero .woocommerce-breadcrumb {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--color-muted);
}

.shop-hero--image .woocommerce-breadcrumb,
.shop-hero--image .woocommerce-breadcrumb a { color: rgb(255 255 255 / .85); }

.shop-hero .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }

.shop-hero__title {
	margin: 0;
	font-size: calc(clamp(28px, 4vw, 44px) * var(--heading-scale, 1));
}

.shop-hero__desc {
	max-width: 720px;
	margin-top: 8px;
	color: var(--color-muted);
}

.shop-hero--image .shop-hero__desc { color: rgb(255 255 255 / .9); }
.shop-hero__desc p { margin: 0 0 .5em; }

.shop-subcats {
	padding-block: 16px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.shop-subcats .chip-list { flex-wrap: nowrap; }
.shop-subcats .chip { white-space: nowrap; background: var(--color-bg); }

.shop-layout {
	display: grid;
	gap: 32px;
	padding-block: 24px 64px;
}

@media (min-width: 1025px) {
	.shop-layout--sidebar { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
}

.shop-results { min-width: 0; }

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 20px;
}

.shop-toolbar .woocommerce-result-count {
	margin: 0;
	margin-right: auto;
	font-size: 14px;
	color: var(--color-muted);
}

.shop-toolbar .woocommerce-ordering { margin: 0; }

.shop-toolbar .woocommerce-ordering select {
	min-height: 38px;
	padding: 6px 36px 6px 12px;
	font-size: 14px;
	width: auto;
}

.shop-toolbar__filter { gap: 6px; }

.shop-toolbar__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--color-brand);
	color: var(--color-brand-contrast);
	font-size: 11px;
}

@media (min-width: 1025px) {
	.shop-layout--sidebar .shop-toolbar .shop-toolbar__filter { display: none; }
}

.active-filters { margin: -6px 0 20px; align-items: center; }

.chip--active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-surface);
	border-color: var(--color-surface);
}

.active-filters__clear { font-size: 14px; color: var(--color-muted); }

.shop-more { margin-top: 40px; text-align: center; }
.shop-more .button.is-loading { opacity: .6; pointer-events: none; }

.woocommerce nav.woocommerce-pagination { margin-top: 40px; }

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 6px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li { border: 0; overflow: visible; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-btn);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--color-brand);
	border-color: var(--color-brand);
	color: var(--color-brand-contrast);
}

.shop-empty {
	padding: 56px 24px;
	border: 1px dashed var(--color-border);
	border-radius: var(--radius);
	text-align: center;
}

.shop-empty p { color: var(--color-muted); }

/* ---------- Filters ---------- */

.shop-filters__head,
.shop-filters__foot,
.shop-filters__backdrop { display: none; }

.filter-group { border-bottom: 1px solid var(--color-border); }
.filter-group:first-child { border-top: 1px solid var(--color-border); }

.filter-group__title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.filter-group__title::-webkit-details-marker { display: none; }
.filter-group__title .icon { margin-left: auto; transition: transform .2s; }
.filter-group[open] > .filter-group__title .icon { transform: rotate(180deg); }

.filter-group__count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--color-brand);
	color: var(--color-brand-contrast);
	font-size: 11px;
}

.filter-list {
	display: grid;
	gap: 2px;
	max-height: 280px;
	margin: 0;
	padding: 0 0 14px;
	overflow-y: auto;
	list-style: none;
}

.filter-check,
.filter-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-size: 15px;
	text-decoration: none;
	color: var(--color-text);
}

.filter-link__count { margin-left: auto; font-size: 13px; color: var(--color-muted); }

.filter-check__box {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--color-border);
	border-radius: 4px;
	flex-shrink: 0;
	transition: background .15s, border-color .15s;
}

.filter-check:hover .filter-check__box { border-color: var(--color-text); }

.filter-check[aria-checked="true"] .filter-check__box {
	background: var(--color-brand);
	border-color: var(--color-brand);
}

.filter-check[aria-checked="true"] .filter-check__box::after {
	content: "";
	width: 5px;
	height: 9px;
	margin-top: -2px;
	border: solid var(--color-brand-contrast);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.filter-check__swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--swatch, #ccc);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
	flex-shrink: 0;
}

.filter-check[aria-checked="true"] .filter-check__swatch {
	outline: 2px solid var(--color-brand);
	outline-offset: 2px;
}

.price-filter { padding-bottom: 16px; }

.price-filter__fields {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-bottom: 10px;
}

.price-filter__fields label { flex: 1; }
.price-filter__fields span[aria-hidden] { padding-bottom: 12px; color: var(--color-muted); }
.price-filter__label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--color-muted); }
.price-filter input { min-height: 40px; padding: 6px 10px; }

.shop-filters__widgets { padding-top: 20px; }

/* Drawer mode: phones always, desktop when chosen in the Customizer. */
@media (max-width: 1024px) {
	.shop-filters { position: fixed; inset: 0; z-index: 210; visibility: hidden; }
}

.shop-layout--drawer .shop-filters { position: fixed; inset: 0; z-index: 210; visibility: hidden; }

@media (max-width: 1024px) {
	.shop-filters.is-open { visibility: visible; }
}

.shop-layout--drawer .shop-filters.is-open { visibility: visible; }

@media (max-width: 1024px) {
	.shop-filters .shop-filters__panel { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; display: flex; flex-direction: column; width: min(360px, 88vw); background: var(--color-bg); transform: translateX(-100%); transition: transform .3s var(--ease); }
	.shop-filters.is-open .shop-filters__panel { transform: none; }
	.shop-filters .shop-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--color-border); }
	.shop-filters .shop-filters__body { flex: 1; overflow-y: auto; padding: 0 20px; }
	.shop-filters .filter-group:first-child { border-top: 0; }
	.shop-filters .shop-filters__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--color-border); }
	.shop-filters .shop-filters__backdrop { display: block; position: absolute; inset: 0; background: rgb(0 0 0 / .4); opacity: 0; transition: opacity .3s; }
	.shop-filters.is-open .shop-filters__backdrop { opacity: 1; }
}

.shop-layout--drawer .shop-filters__panel { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; display: flex; flex-direction: column; width: min(360px, 88vw); background: var(--color-bg); transform: translateX(-100%); transition: transform .3s var(--ease); }
.shop-layout--drawer .shop-filters.is-open .shop-filters__panel { transform: none; }
.shop-layout--drawer .shop-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--color-border); }
.shop-layout--drawer .shop-filters__body { flex: 1; overflow-y: auto; padding: 0 20px; }
.shop-layout--drawer .filter-group:first-child { border-top: 0; }
.shop-layout--drawer .shop-filters__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--color-border); }
.shop-layout--drawer .shop-filters__backdrop { display: block; position: absolute; inset: 0; background: rgb(0 0 0 / .4); opacity: 0; transition: opacity .3s; }
.shop-layout--drawer .shop-filters.is-open .shop-filters__backdrop { opacity: 1; }

.shop-filters__title { font-family: var(--font-heading); font-size: 20px; font-weight: var(--heading-weight); }

@media (min-width: 1025px) {
	.shop-layout--sidebar .shop-filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
}

.admin-bar .shop-filters__panel { margin-top: 32px; }

@media (max-width: 782px) {
	.admin-bar .shop-filters__panel { margin-top: 46px; }
}

@media (min-width: 1025px) {
	.admin-bar .shop-layout--sidebar .shop-filters__panel { margin-top: 0; }
}

/* ---------- Quick view modal ---------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 220;
	display: grid;
	place-items: center;
	padding: 16px;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / .45);
	animation: fade-in .2s;
}

.modal__panel {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: var(--radius);
	background: var(--color-bg);
	box-shadow: 0 30px 60px rgb(0 0 0 / .2);
	animation: modal-in .3s var(--ease);
}

@keyframes modal-in {
	from { opacity: 0; transform: translateY(16px) scale(.98); }
}

.modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	background: var(--color-bg);
}

.modal__body { min-height: 240px; }
.modal__body.is-loading { display: grid; place-items: center; }

.modal__spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--color-border);
	border-top-color: var(--color-brand);
	border-radius: 50%;
	animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.quick-view {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.quick-view { grid-template-columns: 1fr 1fr; }
}

.quick-view__gallery {
	position: relative;
	background: var(--color-surface);
}

.quick-view__slides {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.quick-view__slides::-webkit-scrollbar { display: none; }

.quick-view__img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	max-height: 70vh;
	aspect-ratio: var(--card-ratio, 4 / 5);
	object-fit: cover;
	scroll-snap-align: start;
}

.quick-view__summary {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
}

.quick-view__title { margin: 0; padding-right: 40px; font-size: calc(clamp(22px, 2.6vw, 30px) * var(--heading-scale, 1)); }
.quick-view__price { font-size: 22px; }
.quick-view__excerpt { color: var(--color-muted); font-size: 15px; }
.quick-view__excerpt p { margin: 0 0 .6em; }

.quick-view__cart form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.quick-view__cart form.variations_form { display: block; }

.quick-view__cart table.variations { width: 100%; margin-bottom: 12px; border: 0; }
.quick-view__cart table.variations th,
.quick-view__cart table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
.quick-view__cart table.variations th { padding-bottom: 6px; font-size: 14px; font-weight: 600; }
.quick-view__cart table.variations td { padding-bottom: 12px; }
.quick-view__cart .reset_variations { display: inline-block; margin-top: 6px; font-size: 13px; }
.quick-view__cart .woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.quick-view__cart .quantity .qty { width: 72px; min-height: 46px; text-align: center; }
.quick-view__cart .single_add_to_cart_button { flex: 1; }

.quick-view__more { margin-top: 4px; font-size: 14px; font-weight: 500; }

@media (max-width: 767px) {
	.modal { padding: 0; align-items: end; }
	.modal__panel { max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; }
	.quick-view__img { max-height: 46vh; }
	.quick-view__summary { padding: 20px; }
}

/* ---------- Wishlist page ---------- */

.wishlist__empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 56px 24px;
	text-align: center;
	color: var(--color-muted);
}

.wishlist__empty .icon { color: var(--color-border); }
.wishlist .product-card.is-removing { opacity: .3; transition: opacity .3s; }

/* Digital downloads: "Free" price and the free-download box on the product page. */
.price-free { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--color-accent); color: #111; font-weight: 700; font-size: .9em; }
.ecom-dl-box { display: grid; gap: 8px; margin: 18px 0; }
.ecom-dl-box .button { width: 100%; justify-content: center; }
.ecom-dl-note { margin: 0; font-size: 14px; color: var(--color-muted); }

.ecom-field-hint { display: block; margin-top: 4px; font-size: 13px; color: var(--color-muted); }

.ecom-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ecom-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--color-brand); }
