/*
 * FEVA SOUL — shop/PDP components (M3).
 *
 * Conditionally enqueued (is_shop() || is_product_taxonomy() || is_product())
 * — see inc/enqueue.php — kept out of main.css so the homepage never loads
 * filter-drawer/PDP styling it doesn't use. Reuses every token, .btn,
 * .screen-reader-text, and focus-visible rule already defined in main.css
 * rather than redeclaring them.
 */

/* ---------- Shared product grid ---------- */
/* Used by the shop/category/collection loop, related products, and
   Complete the Look — one grid definition for every product listing. */

.product-grid {
	display: grid;
	/* minmax(0, 1fr), not 1fr: a bare 1fr track can't shrink below its
	   content, so one long nowrap product title widened its column and,
	   through the 2:3 media box, made that card's image taller than the rest. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-6) var(--space-4);
}

@media (max-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-4) var(--space-3);
	}
}

@media (max-width: 480px) {
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Archive header ---------- */

.archive-header {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-8) var(--page-margin) var(--space-6);
}

.archive-header--has-hero {
	padding: 0 0 var(--space-6);
}

.archive-header__hero {
	aspect-ratio: 16 / 5;
	overflow: hidden;
	margin-bottom: var(--space-8);
}

.archive-header__hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.archive-header--has-hero .archive-header__inner {
	padding: 0 var(--page-margin);
}

.archive-header__title {
	font-size: 28px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.archive-header__description {
	margin-top: var(--space-2);
	max-width: 640px;
	color: var(--color-muted);
}

@media (max-width: 1024px) {
	.archive-header {
		padding-top: var(--space-5);
		padding-bottom: var(--space-4);
	}

	.archive-header--has-hero {
		padding-top: 0;
	}

	.archive-header__hero {
		margin-bottom: var(--space-5);
	}
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-4) var(--page-margin) 0;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.breadcrumb__inner {
	display: inline;
}

.breadcrumb a {
	color: var(--color-muted);
	text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
	color: var(--color-ink);
}

.breadcrumb__sep {
	margin: 0 var(--space-1);
	color: var(--color-line);
}

/* ---------- Shop layout (filter sidebar + product listing) ---------- */

.shop-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: var(--space-8);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--page-margin) var(--space-12);
}

@media (max-width: 1024px) {
	.shop-layout {
		grid-template-columns: 1fr;
	}
}

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

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

/* ---------- Product toolbar (count + filter trigger + sort) ---------- */

.product-toolbar {
	padding-bottom: var(--space-4);
	margin-bottom: var(--space-4);
	border-bottom: 1px solid var(--color-line);
}

.product-toolbar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.product-toolbar__controls {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.product-toolbar__count {
	margin: 0;
	font-size: 13px;
	color: var(--color-muted);
}

/* Filter trigger and sort share one control skin: same height, border,
   type and icon size, so the pair reads as a matched set on mobile. */
.product-toolbar__filter-trigger,
.product-sort__select {
	box-sizing: border-box;
	height: 44px;
	margin: 0;
	background: var(--color-paper);
	border: 1px solid var(--color-line);
	border-radius: 0;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	/* iOS Safari form controls do not inherit body color — without an
	   explicit color they render in the webview's blue system tint. */
	color: var(--color-ink);
	cursor: pointer;
}

.product-toolbar__filter-trigger {
	display: none;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 0 var(--space-3);
}

.product-toolbar__filter-trigger:hover,
.product-sort__select:hover {
	border-color: var(--color-ink);
}

.product-toolbar__filter-trigger:active {
	background: var(--color-sand);
}

.product-toolbar__filter-trigger:focus-visible,
.product-sort__select:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

.product-toolbar__filter-trigger .icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ---------- Sort (branded orderby select) ---------- */

.product-sort {
	margin: 0;
	min-width: 0;
}

.product-sort__control {
	position: relative;
	display: block;
}

/* Native select, native picker (iOS wheel), one chevron: the theme icon. */
.product-sort__select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	padding: 0 calc(var(--space-3) * 2 + 12px) 0 var(--space-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-sort__chevron {
	position: absolute;
	top: 50%;
	right: var(--space-3);
	width: 12px;
	height: 12px;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--color-ink);
}

@media (max-width: 1024px) {
	.product-toolbar {
		padding-bottom: var(--space-3);
		margin-bottom: var(--space-3);
	}

	.product-toolbar__row {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-2);
	}

	.product-toolbar__controls {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.product-toolbar__filter-trigger {
		display: inline-flex;
		width: 100%;
	}

	/* Title case keeps "Price: Low to High" inside a half-width control at 375. */
	.product-sort__select {
		letter-spacing: 0.02em;
		text-transform: none;
	}
}

/* ---------- Active filters (chips + Clear All) ---------- */

.active-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-3);
}

.active-filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.active-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	background: var(--color-sand);
	border: 1px solid var(--color-line);
	padding: var(--space-1) var(--space-2);
	font-size: 11px;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--color-ink);
}

.active-filters__chip:hover,
.active-filters__chip:focus-visible {
	border-color: var(--color-ink);
}

.active-filters__remove-icon {
	width: 10px;
	height: 10px;
}

.active-filters__clear {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: underline;
	color: var(--color-muted);
}

.active-filters__clear:hover,
.active-filters__clear:focus-visible {
	color: var(--color-ink);
}

/* ---------- Filter panel (desktop sidebar / mobile drawer) ---------- */

.product-filter-panel__overlay {
	display: none;
}

.product-filter-panel__header {
	display: none;
}

.product-filter-panel__drawer {
	position: static;
}

@media (max-width: 1024px) {
	.product-filter-panel {
		position: fixed;
		inset: 0;
		z-index: 60;
		visibility: hidden;
	}

	.product-filter-panel.is-open {
		visibility: visible;
	}

	.product-filter-panel__overlay {
		display: block;
		position: absolute;
		inset: 0;
		background: rgba(22, 21, 19, 0.4);
		opacity: 0;
		transition: opacity 0.2s ease;
	}

	.product-filter-panel.is-open .product-filter-panel__overlay {
		opacity: 1;
	}

	.product-filter-panel__drawer {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(360px, 88vw);
		background: var(--color-paper);
		display: flex;
		flex-direction: column;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	.product-filter-panel.is-open .product-filter-panel__drawer {
		transform: translateX(0);
	}

	.product-filter-panel__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: var(--space-4);
		border-bottom: 1px solid var(--color-line);
	}

	.product-filter-panel__title {
		font-size: 14px;
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}

	.product-filter-panel__close {
		background: none;
		border: none;
		padding: var(--space-1);
		color: var(--color-ink);
		cursor: pointer;
	}

	.product-filter-panel__body {
		padding: var(--space-4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.product-filter-panel__overlay,
	.product-filter-panel__drawer {
		transition: none;
	}
}

/* ---------- Filter fields ---------- */

.filter-fields__group {
	border: none;
	margin: 0 0 var(--space-6);
	padding: 0;
}

.filter-fields__legend {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: var(--space-3);
}

.filter-fields__options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.filter-fields__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	text-decoration: none;
	color: var(--color-ink);
	font-size: 13px;
	cursor: pointer;
}

.filter-fields__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1px solid var(--color-line);
	flex-shrink: 0;
}

.filter-fields__check {
	width: 10px;
	height: 10px;
	opacity: 0;
}

.filter-fields__toggle.is-checked .filter-fields__box {
	background: var(--color-ink);
	border-color: var(--color-ink);
}

.filter-fields__toggle.is-checked .filter-fields__check {
	opacity: 1;
	color: var(--color-paper);
}

.filter-fields__toggle:focus-visible,
.filter-fields__swatch:focus-visible,
.filter-fields__pill:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

.filter-fields__options--swatches {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.filter-fields__swatch {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--color-line);
	cursor: pointer;
	position: relative;
}

.filter-fields__swatch.is-checked {
	box-shadow: 0 0 0 2px var(--color-paper), 0 0 0 3px var(--color-ink);
}

.filter-fields__options--pills {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.filter-fields__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-line);
	font-size: 12px;
	text-decoration: none;
	color: var(--color-ink);
	cursor: pointer;
}

.filter-fields__pill.is-checked {
	background: var(--color-ink);
	color: var(--color-paper);
	border-color: var(--color-ink);
}

.filter-fields__price {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.filter-fields__price input[type="number"] {
	width: 64px;
	border: 1px solid var(--color-line);
	padding: var(--space-2);
	font-size: 13px;
	background: var(--color-paper);
	color: var(--color-ink);
}

.filter-fields__price input[type="number"]:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 1px;
}

.filter-fields__price-sep {
	color: var(--color-muted);
}

.filter-fields__price-apply {
	padding: var(--space-2) var(--space-3);
	font-size: 11px;
}

/* ---------- WooCommerce widget controls inside filter panel ---------- */
/*
 * The custom filter system uses .filter-fields__* controls styled to ink/paper.
 * WooCommerce may also inject native layered-nav or attribute-filter widgets
 * into the filter panel via hooks. These rules normalise any such widget output
 * to the FEVASOUL design language without touching the custom filter controls.
 */

/* accent-color: suppress browser-default blue on any native checkbox/radio WC injects */
.product-filter-panel input[type="checkbox"],
.product-filter-panel input[type="radio"] {
	accent-color: var(--color-ink);
}

/* WC layered nav / attribute filter widget links */
.product-filter-panel .woocommerce-widget-layered-nav-list a,
.product-filter-panel .wc-layered-nav-term a,
.product-filter-panel .widget_layered_nav a {
	color: var(--color-ink);
	text-decoration: none;
}

.product-filter-panel .woocommerce-widget-layered-nav-list__item--chosen a,
.product-filter-panel .wc-layered-nav-term--chosen a,
.product-filter-panel .chosen a {
	font-weight: 600;
}

/* Price slider widget — normalise any WC default blue handle */
.product-filter-panel .ui-slider .ui-slider-handle,
.product-filter-panel .price_slider_amount button {
	color: var(--color-ink);
	background: var(--color-ink);
	border-color: var(--color-ink);
}

/* ---------- Empty state ---------- */

.empty-state {
	text-align: center;
	padding: var(--space-16) var(--page-margin);
	max-width: 480px;
	margin: 0 auto;
}

.empty-state__title {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin-bottom: var(--space-2);
}

.empty-state__text {
	color: var(--color-muted);
	margin-bottom: var(--space-4);
}

/* ---------- Collection grid + card ---------- */

.collection-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-6);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--page-margin) var(--space-12);
}

@media (max-width: 768px) {
	.collection-grid {
		grid-template-columns: 1fr;
	}
}

.collection-card {
	display: block;
	text-decoration: none;
	color: var(--color-ink);
	position: relative;
}

.collection-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-sand);
}

.collection-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.collection-card:hover .collection-card__image {
	transform: scale(1.03);
}

.collection-card__image--placeholder {
	background: var(--color-sand);
}

.collection-card__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2);
	padding-top: var(--space-3);
}

.collection-card__name {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.collection-card__cta {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: underline;
	color: var(--color-muted);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.collection-card__image {
		transition: none;
	}
}

/* ---------- PDP shell (gallery-left / info-right) ---------- */

.pdp {
	display: grid;
	grid-template-columns: minmax(0, 62%) minmax(0, 38%);
	gap: var(--space-8);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-6) var(--page-margin) var(--space-12);
	position: relative;
}

.pdp__gallery {
	position: sticky;
	top: calc(var(--header-height) + var(--announcement-height) + var(--space-4));
	align-self: start;
}

@media (max-width: 1024px) {
	.pdp {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}

	/* Disable sticky on single-column layout */
	.pdp__gallery {
		position: static;
	}
}

.pdp__info {
	min-width: 0;
}

/* PDP product title — Cormorant editorial treatment */
.pdp__info .product_title {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(28px, 3.5vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 var(--space-2);
	color: var(--color-ink);
}

/* PDP price — approved colors, override WooCommerce defaults.
   Specificity: .woocommerce div.product .pdp__info .price = (0,3,1)
   beats WC's .woocommerce div.product p.price = (0,2,2). */
.woocommerce div.product .pdp__info .price,
.pdp__info .price {
	color: #44403C !important;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 var(--space-4);
	display: block;
}

.woocommerce div.product .pdp__info .price del,
.woocommerce div.product .pdp__info .price del .woocommerce-Price-amount,
.pdp__info .price del,
.pdp__info .price del .woocommerce-Price-amount {
	color: var(--color-muted) !important;
	font-weight: 400;
	margin-right: var(--space-2);
	text-decoration: line-through;
}

.woocommerce div.product .pdp__info .price ins,
.woocommerce div.product .pdp__info .price ins .woocommerce-Price-amount,
.pdp__info .price ins,
.pdp__info .price ins .woocommerce-Price-amount {
	text-decoration: none;
	color: #A16207 !important;
}

.pdp__badge {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	z-index: 2;
	background: var(--color-ink);
	color: var(--color-paper);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: var(--space-1) var(--space-2);
}

.pdp__badge--sale {
	background: #a4342a;
}

.pdp__meta {
	margin-top: var(--space-4);
	font-size: 12px;
	color: var(--color-muted);
}

.pdp__meta .sku {
	color: var(--color-ink);
}

.pdp__size-guide-trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	background: none;
	border: none;
	padding: 0;
	margin-bottom: var(--space-3);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: underline;
	color: var(--color-muted);
	cursor: pointer;
}

.pdp__size-guide-trigger:hover,
.pdp__size-guide-trigger:focus-visible {
	color: var(--color-ink);
}

.pdp__size-guide-trigger .icon {
	width: 14px;
	height: 14px;
}

/* ---------- FEVA PDP Gallery ---------- */

/*
 * Reset WooCommerce's bundled gallery CSS which applies
 * width:25% to .woocommerce-product-gallery__image:nth-child(n+2).
 * Our figures no longer carry that class, but keep this as a safety net.
 */
.feva-pdp-gallery .woocommerce-product-gallery__image {
	width: 100% !important;
	flex: none !important;
	float: none !important;
}

/* Gallery wrapper — WooCommerce sets opacity:0; JS fades it in.
   Force full column width; WC/flexslider default float rules must not constrain it. */
.feva-pdp-gallery,
.woocommerce-product-gallery.feva-pdp-gallery {
	position: relative;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	box-sizing: border-box;
}

/*
 * Two-up image stage — mobile-first.
 *
 * Base state (all widths): single column. The desktop two-up is an
 * enhancement applied only inside min-width: 1025px below. The two column
 * declarations live in mutually exclusive media ranges, so the rendered
 * layout no longer depends on source order — a CSS optimizer that
 * combines or reorders stylesheets cannot resurrect the second column
 * on mobile.
 */
.feva-pdp-gallery__stage {
	display: grid !important;
	grid-template-columns: 1fr;
	width: 100% !important;
	gap: var(--space-3);
	align-items: start;
}

/* Each frame is a fixed-ratio portrait container so both images are equal height. */
.feva-pdp-gallery__frame {
	aspect-ratio: 2 / 3 !important;
	overflow: hidden !important;
	margin: 0;
	padding: 0;
	line-height: 0;
	position: relative !important;
	display: block !important;
}

/*
 * contain: garment/model is fully visible, no cropping.
 * background: var(--color-sand) fills the letterbox area.
 */
.feva-pdp-gallery__img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
	object-fit: contain !important;
	object-position: center top;
	background: var(--color-sand);
}

/* Reset WooCommerce zoom/flexslider from constraining gallery frames */
.feva-pdp-gallery .zoomImg,
.feva-pdp-gallery .zoomContainer {
	display: none !important;
}

.feva-pdp-gallery__stage,
.feva-pdp-gallery__frame {
	max-width: none !important;
}

/*
 * Secondary frame: desktop-only enhancement (two-up >= 1025px).
 *
 * Declared after the generic frame rules, with a two-class selector that
 * outranks `.feva-pdp-gallery__frame` at equal importance, so the mobile
 * hide wins regardless of rule order. The desktop re-show uses mutually
 * exclusive media ranges, so it cannot be beaten by this hide on any
 * viewport even if stylesheets are combined or reordered.
 */
.feva-pdp-gallery__frame.feva-pdp-gallery__frame--secondary {
	display: none !important;
}

@media (min-width: 1025px) {
	.feva-pdp-gallery__stage {
		grid-template-columns: 1fr 1fr;
	}

	.feva-pdp-gallery__frame.feva-pdp-gallery__frame--secondary {
		display: block !important;
	}
}

/* Circular thumbnail dots strip */
.feva-pdp-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-4);
	padding: 0;
}

.feva-pdp-thumbs__dot {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	padding: 0;
	background: none;
	border: 2px solid transparent;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.15s ease;
}

.feva-pdp-thumbs__dot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.feva-pdp-thumbs__dot.is-active,
.feva-pdp-thumbs__dot:focus-visible {
	border-color: #A16207;
	outline: none;
}

.feva-pdp-thumbs__dot:hover:not(.is-active) {
	border-color: var(--color-muted);
}

/* ---------- Accordion tabs ---------- */

.product-tabs {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-8) var(--page-margin);
	border-top: 1px solid var(--color-line);
}

.product-tabs__item {
	border-bottom: 1px solid var(--color-line);
}

.product-tabs__heading {
	margin: 0;
}

.product-tabs__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	background: none;
	border: none;
	padding: var(--space-4) 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-ink);
	cursor: pointer;
	text-align: left;
}

.product-tabs__icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.product-tabs__icon--minus {
	display: none;
}

.product-tabs__trigger[aria-expanded="true"] .product-tabs__icon--plus {
	display: none;
}

.product-tabs__trigger[aria-expanded="true"] .product-tabs__icon--minus {
	display: block;
}

.product-tabs__panel {
	padding: 0 0 var(--space-4);
	color: var(--color-muted);
}

.product-tabs__panel table {
	width: 100%;
}

/* ---------- Related products / Complete the Look ---------- */

.related-products,
.complete-the-look {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-10) var(--page-margin);
}

.related-products__heading,
.complete-the-look__heading {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin-bottom: var(--space-6);
}

/* ---------- Sticky add-to-bag (mobile only) ---------- */

.sticky-add-to-bag {
	display: none;
}

@media (max-width: 1024px) {
	.sticky-add-to-bag {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		background: var(--color-paper);
		border-top: 1px solid var(--color-line);
		transform: translateY(100%);
		transition: transform 0.2s ease;
	}

	.sticky-add-to-bag:not([hidden]) {
		transform: translateY(0);
	}
}

.sticky-add-to-bag__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) var(--page-margin);
}

.sticky-add-to-bag__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sticky-add-to-bag__name {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sticky-add-to-bag__price {
	font-size: 13px;
	color: var(--color-muted);
}

.sticky-add-to-bag__cta {
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.sticky-add-to-bag {
		transition: none;
	}
}

/* ---------- Size Guide modal ---------- */

.size-guide-modal[hidden] {
	display: none;
}

.size-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
}

.size-guide-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(22, 21, 19, 0.5);
}

.size-guide-modal__dialog {
	position: relative;
	z-index: 1;
	background: var(--color-paper);
	width: min(560px, 92vw);
	max-height: 85vh;
	overflow-y: auto;
}

.size-guide-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--color-line);
}

.size-guide-modal__title {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.size-guide-modal__close {
	background: none;
	border: none;
	padding: var(--space-1);
	cursor: pointer;
}

.size-guide-modal__body {
	padding: var(--space-5);
}

.size-guide-modal__intro {
	color: var(--color-muted);
	margin-bottom: var(--space-4);
}

.size-guide-modal__table-wrap {
	overflow-x: auto;
}

.size-guide-modal__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.size-guide-modal__table th,
.size-guide-modal__table td {
	border: 1px solid var(--color-line);
	padding: var(--space-2) var(--space-3);
	text-align: center;
}

.size-guide-modal__note {
	margin-top: var(--space-4);
	font-size: 12px;
	color: var(--color-muted);
}

/* ---------- Variation pill selectors (progressive enhancement) ---------- */
/* select[hidden] is only ever set once product-page.js has successfully
   built the pill skin (decision #7) — if that script errors, the native
   select stays visible and these rules never apply. WooCommerce's own
   `.woocommerce div.product form.cart .variations select { display:
   inline-block }` outranks a bare `.variations select[hidden]`, which is
   what left the dropdowns visible next to the buttons; matching its
   specificity keeps them hidden. */

.variations select[hidden],
.woocommerce div.product form.cart .variations select[hidden] {
	display: none;
}

/* Label above the pills instead of WooCommerce's two-column table.
   Scoped to forms whose skin built, so the fallback keeps the table. */
.woocommerce div.product form.cart.has-variation-swatches .variations,
.has-variation-swatches .variations tbody,
.has-variation-swatches .variations tr,
.woocommerce div.product form.cart.has-variation-swatches .variations th,
.woocommerce div.product form.cart.has-variation-swatches .variations td {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	text-align: left;
	line-height: 1.4;
}

/* form.cart is a flex row (quantity + button); the table must own a full row. */
.woocommerce div.product form.cart.has-variation-swatches .variations {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 var(--space-5);
}

.has-variation-swatches .variations tr + tr {
	margin-top: var(--space-5);
}

.woocommerce div.product form.cart.has-variation-swatches .variations th {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
	margin-bottom: var(--space-3);
}

.woocommerce div.product form.cart.has-variation-swatches .variations label {
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-ink);
}

.variation-swatches__current {
	font-size: 13px;
	color: var(--color-muted);
}

.has-variation-swatches .reset_variations {
	display: inline-block;
	margin-top: var(--space-3);
	font-size: 12px;
	color: var(--color-muted);
	text-decoration: underline;
}

.variation-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.variation-swatches__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: 56px;
	min-height: 44px;
	padding: 0 var(--space-5);
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: var(--color-paper);
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.02em;
	color: var(--color-ink);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.variation-swatches__pill:hover:not(:disabled):not(.is-selected) {
	border-color: var(--color-ink);
}

.variation-swatches__pill.is-selected {
	background: var(--color-ink);
	color: var(--color-paper);
	border-color: var(--color-ink);
}

.variation-swatches__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
	flex: none;
}

.variation-swatches__pill.is-selected .variation-swatches__dot {
	box-shadow: 0 0 0 1px var(--color-paper);
}

/* Out of stock: still selectable, so WooCommerce shows its own stock message. */
.variation-swatches__pill.is-out-of-stock {
	color: var(--color-muted);
	border-style: dashed;
	text-decoration: line-through;
}

.variation-swatches__pill.is-out-of-stock.is-selected {
	color: var(--color-paper);
	border-style: solid;
}

/* Unavailable: this combination does not exist. */
.variation-swatches__pill.is-unavailable {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}

.variation-swatches__pill:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.variation-swatches__pill {
		min-width: 52px;
		padding: 0 var(--space-4);
	}
}

/* ---------- Quantity stepper (progressive enhancement) ---------- */

/* Row: quantity pill + add to cart button + wishlist button */
.woocommerce div.product form.cart,
.woocommerce div.product .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* Pill quantity wrapper */
.quantity {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--color-line, #e3dfd7);
	border-radius: 999px;
	padding: 0 0.25rem;
	height: 48px;
	background: var(--color-paper);
	flex-shrink: 0;
}

/* Visible quantity number (replaces hidden input display) */
.quantity__display {
	width: 44px;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	color: #141414;
	line-height: 1;
	display: inline-block;
	flex-shrink: 0;
}

.quantity .qty {
	width: 44px;
	border: none;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	background: transparent !important;
	color: #141414 !important;
	-moz-appearance: textfield;
	outline: none;
}

/* WooCommerce overrides .woocommerce .quantity .qty — beat it */
.woocommerce .quantity .qty,
.woocommerce div.product .quantity .qty {
	color: #141414 !important;
	background: transparent !important;
}

/* Hide the native input when type=hidden (WC sets this for single-variation) */
.quantity input[type="hidden"].qty {
	display: none !important;
}

/*
 * Hide the native number input once the JS stepper has initialised.
 * data-stepper-ready is set ON the .quantity wrapper itself by product-page.js,
 * so the selector must be .quantity[data-stepper-ready] .qty (attribute on the
 * same element), not [data-stepper-ready] .quantity .qty (attribute on ancestor).
 * The native input stays in the DOM so WooCommerce can read/submit its value.
 */
.quantity[data-stepper-ready] .qty,
.woocommerce .quantity[data-stepper-ready] .qty,
.woocommerce div.product .quantity[data-stepper-ready] .qty {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	overflow: hidden !important;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity__step {
	background: none;
	border: none;
	width: 36px;
	height: 36px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: var(--color-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	flex-shrink: 0;
}

.quantity__step:hover,
.quantity__step:focus-visible {
	background: var(--color-sand, #f5f4f1);
}

/* Add to Cart button — dark pill */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.woocommerce div.product form.cart button[type="submit"] {
	flex: 1;
	min-width: 160px;
	height: 48px;
	padding: 0 2rem;
	background: var(--color-ink, #141414) !important;
	color: var(--color-paper, #fff) !important;
	border: none !important;
	border-radius: 999px !important;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s ease;
	box-shadow: none !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
	opacity: 0.85;
}

.woocommerce div.product form.cart .single_add_to_cart_button:disabled,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Wishlist button — round outline circle */
.pdp__wishlist-btn {
	width: 48px;
	height: 48px;
	border: 1.5px solid var(--color-line, #e3dfd7);
	border-radius: 999px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.2s ease;
	padding: 0;
}

.pdp__wishlist-btn:hover,
.pdp__wishlist-btn:focus-visible {
	border-color: var(--color-ink, #141414);
}

.pdp__wishlist-btn .icon {
	width: 18px;
	height: 18px;
}

/* Pulse on wishlist toggle — keyframe defined in main.css */
.pdp__wishlist-btn.is-pulsing {
	animation: wishlist-pulse 150ms ease-in-out both;
}

@media (prefers-reduced-motion: reduce) {
	.pdp__wishlist-btn.is-pulsing {
		animation: none;
	}
}

/* ── WooCommerce reviews ─────────────────────────────────────────────────── */

.woocommerce-Reviews {
	padding-top: var(--space-6);
}

.woocommerce-Reviews-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-6);
}

.woocommerce-noreviews {
	font-size: 14px;
	color: var(--color-ink-muted, var(--color-ink));
	margin-bottom: var(--space-6);
}

/* Review list */
.commentlist {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-8);
}

.commentlist .comment {
	padding: var(--space-6) 0;
	border-bottom: 1px solid var(--color-line);
}

.commentlist .comment:first-child {
	border-top: 1px solid var(--color-line);
}

.commentlist .comment_container {
	display: flex;
	gap: var(--space-4);
}

.commentlist .comment-text {
	flex: 1;
	min-width: 0;
}

.commentlist .meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	margin-bottom: var(--space-3);
}

.commentlist .woocommerce-review__author {
	font-size: 13px;
	font-weight: 600;
}

.commentlist .woocommerce-review__date {
	font-size: 12px;
	color: var(--color-ink-muted, var(--color-ink));
}

/* Star rating — WC uses a font-based percentage-width technique; keep it,
   only restyle the colors to match FEVA SOUL palette */
.star-rating {
	color: var(--color-ink);
	font-size: 14px;
	line-height: 1;
}

.commentlist .description p {
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 0;
}

/* Review form */
#review_form_wrapper {
	margin-top: var(--space-8);
}

#review_form_wrapper .comment-reply-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-6);
}

#review_form .comment-form-rating label,
#review_form .comment-form-comment label,
#review_form .comment-form-author label,
#review_form .comment-form-email label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-2);
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--color-line);
	background: var(--color-paper);
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--color-ink);
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

#review_form input[type="text"]:focus-visible,
#review_form input[type="email"]:focus-visible,
#review_form textarea:focus-visible {
	outline: none;
	border-color: var(--color-ink);
}

#review_form .form-submit {
	margin-top: var(--space-4);
}

/* ─── Express payment buttons — pill shape (PDP + cart) ─────────────────── */
/*
 * Each Stripe button (Apple Pay, Google Pay, Link) renders in its own iframe.
 * Apply border-radius ONLY to individual per-button wrappers and iframes —
 * NOT to the parent container (.wc-block-components-express-payment__event-buttons)
 * which stacks multiple buttons. Applying radius+overflow to the container
 * clips the top/bottom of the stacked buttons into half-pill shapes.
 */

/* Per-button outer divs that Stripe injects (one per payment method) */
.wc-stripe-express-checkout-element > div,
#wc-stripe-express-checkout-element > div,
.wc-stripe-payment-request-wrapper,
.wc-stripe-payment-request-button,
#wc-stripe-payment-request-wrapper,
.wc-stripe-link-button,
.wc-block-components-express-payment__event-buttons > div,
.wc-block-components-express-payment__event-buttons > button {
	border-radius: 999px !important;
	overflow: hidden !important;
}

/* Stripe iframes — one per button, safe to clip individually */
.wc-stripe-express-checkout-element iframe,
#wc-stripe-express-checkout-element iframe,
#wc-stripe-express-checkout-wrapper iframe,
.wc-stripe-payment-request-wrapper iframe,
.wc-stripe-link-button iframe,
.wc-block-components-express-payment__event-buttons iframe {
	border-radius: 999px !important;
	overflow: hidden !important;
}

/* Parent containers: NO radius, NO overflow:hidden */
.wc-stripe-express-checkout-element,
#wc-stripe-express-checkout-element,
#wc-stripe-express-checkout-wrapper,
.wc-block-components-express-payment__event-buttons,
.wc-block-components-express-payment {
	border-radius: 0 !important;
	overflow: visible !important;
}

