/* ==========================================================
   SOLVARI — WooCommerce product cards (Blocksy loops)
   Applies to shop, category pages, related products and any
   [products] shortcode / Blocksy product grid.
   ========================================================== */

[data-products] {
	--grid-columns-gap: var(--sv-gap);
	row-gap: 40px;
}

/* Colors follow Blocksy's variables, so cards placed in dark sections
   (which set --theme-heading-color / --theme-text-color) stay readable. */
[data-products] .product {
	--sv-card-heading: var(--theme-heading-color, var(--sv-text));
	--sv-card-text: var(--theme-text-color, var(--sv-text));
	position: relative;
	font-family: var(--sv-font-sans);
	text-align: left;
}

/* ----- Image ----- */
[data-products] .product figure {
	position: relative;
	margin: 0 0 14px;
	overflow: hidden;
	background: var(--sv-image-bg);
	border-radius: var(--sv-radius);
}
[data-products] .product .ct-media-container {
	display: block;
	border-radius: var(--sv-radius);
	background: var(--sv-image-bg);
}
[data-products] .product .ct-media-container img {
	width: 100%;
	object-fit: cover;
	border-radius: var(--sv-radius);
}

/* ----- Hover image swap (front → back) -----
   The back image is an absolutely positioned layer inside the same
   <figure>, so it never changes the card's size (no layout shift).
   It only fades in on devices with real hover + a fine pointer, so a
   tap on a phone/tablet can't leave the card stuck on the back image. */
[data-products] .product figure .sv-card-back {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	opacity: 0;
	pointer-events: none; /* clicks still reach the product link below */
	transition: opacity 0.35s ease;
}
/* Badges and rating stay above the back image. */
[data-products] .product figure .sv-badge,
[data-products] .product figure .sv-card-rating,
[data-products] .product figure .onsale {
	z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
	[data-products] .product.sv-has-back:hover .sv-card-back,
	[data-products] .product.sv-has-back:focus-within .sv-card-back {
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	[data-products] .product figure .sv-card-back {
		transition: none;
	}
}

/* ----- Badges & rating pill (inside figure) ----- */
[data-products] .product .sv-card-badge {
	top: 12px;
	right: 12px;
}

[data-products] .product .onsale {
	position: absolute;
	top: 12px;
	right: 12px;
	left: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 8px;
	background: var(--sv-sale);
	color: #ffffff;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.2;
	border-radius: var(--sv-radius);
	text-transform: none;
}

.sv-card-rating {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: #ffffff;
	color: var(--sv-text);
	font-family: var(--sv-font-sans);
	font-size: 11px;
	font-weight: 300;
	line-height: 1.2;
}
.sv-card-rating svg {
	width: 10px;
	height: 10px;
	fill: currentColor;
}

/* ----- Title ----- */
[data-products] .product .woocommerce-loop-product__title {
	margin: 0 0 4px;
	font-family: var(--sv-font-sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: -0.005em;
	text-transform: none;
}
[data-products] .product .woocommerce-loop-product__title a {
	color: var(--sv-card-heading);
	text-decoration: none;
}
[data-products] .product .woocommerce-loop-product__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ----- Category sub-line (Blocksy meta) ----- */
[data-products] .product .entry-meta {
	order: 0;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 300;
	text-transform: none;
	letter-spacing: 0;
	opacity: 0.7;
}

/* ----- Size chips ----- */
.sv-card-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 6px 0 10px;
	padding: 0;
	list-style: none;
}
.sv-card-sizes li {
	min-width: 28px;
	margin: 0;
	padding: 3px 5px;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	font-family: var(--sv-font-sans);
	font-size: 10px;
	font-weight: 300;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: var(--sv-card-heading, var(--sv-text));
}
.sv-card-sizes li.is-out {
	text-decoration: line-through;
	opacity: 0.4;
}

/* ----- Price ----- */
[data-products] .product .price {
	display: block;
	margin: 0 0 8px;
	font-family: var(--sv-font-sans);
	font-size: 15px;
	font-weight: 300;
	color: var(--sv-card-heading);
}
[data-products] .product .price del {
	margin-right: 6px;
	opacity: 0.5;
}
[data-products] .product .price ins {
	text-decoration: none;
	color: var(--sv-sale);
}

/* ----- Add to cart / Select options ----- */
[data-products] .product .ct-woo-card-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 0.7em 1.2em;
	background: transparent;
	color: var(--sv-card-heading);
	border: 1px solid currentColor;
	border-radius: var(--sv-radius);
	box-shadow: none;
	font-family: var(--sv-font-sans);
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: none;
	transition: var(--sv-transition);
}
[data-products] .product .ct-woo-card-actions .button:hover {
	background: color-mix(in srgb, currentColor 12%, transparent);
	color: var(--sv-card-heading);
	border-color: currentColor;
}
[data-products] .product .ct-woo-card-actions .added_to_cart {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	color: var(--sv-card-heading);
}

/* ==========================================================
   Single product page
   ========================================================== */
.single-product .product-entry-wrapper {
	/* Wider gallery, like an editorial lookbook. Blocksy reads this var. */
	--product-gallery-width: 56%;
	column-gap: clamp(24px, 4vw, 72px);
}

/* Gallery */
.single-product .woocommerce-product-gallery .ct-media-container,
.single-product .woocommerce-product-gallery .flexy-items > *,
.single-product .woocommerce-product-gallery img {
	border-radius: var(--sv-radius);
}
.single-product .woocommerce-product-gallery .ct-media-container {
	background: var(--sv-image-bg);
}
.single-product .woocommerce-product-gallery .flexy-pills [data-active] img,
.single-product .woocommerce-product-gallery .flexy-pills img {
	border-radius: var(--sv-radius);
}

/* Summary */
.single-product .entry-summary {
	font-family: var(--sv-font-sans);
	color: var(--sv-text);
}
.single-product .entry-summary .product_title {
	margin-bottom: 6px;
	font-family: var(--sv-font-sans);
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--sv-text);
}
.single-product .entry-summary .price {
	margin-bottom: 18px;
	font-family: var(--sv-font-sans);
	font-size: 17px;
	font-weight: 300;
	color: var(--sv-text);
}
.single-product .entry-summary .price del {
	margin-right: 8px;
	opacity: 0.5;
}
.single-product .entry-summary .price ins {
	text-decoration: none;
	color: var(--sv-sale);
}
.single-product .entry-summary .woocommerce-product-details__short-description {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
	color: var(--sv-text-muted);
}
.single-product .entry-summary .ct-product-divider {
	border-color: var(--sv-divider);
	opacity: 1;
}

/* Variations: label row + buttons */
.single-product form.variations_form {
	position: relative;
}
.single-product table.variations,
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}
.single-product table.variations tr {
	margin-bottom: 16px;
}
.single-product table.variations th.label,
.single-product table.variations .label label {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 300;
	text-transform: none;
	letter-spacing: 0;
	color: var(--sv-text);
}
.sv-var-current {
	color: var(--sv-text);
}

/* The real <select> stays in the DOM for WooCommerce, hidden visually. */
.single-product select.sv-var-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.sv-var-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.single-product .sv-var-btn {
	appearance: none;
	min-width: 48px;
	min-height: 40px;
	margin: 0;
	padding: 0 12px;
	background: transparent;
	color: var(--sv-text);
	border: 1px solid color-mix(in srgb, var(--sv-text) 25%, transparent);
	border-radius: var(--sv-radius);
	box-shadow: none;
	font-family: var(--sv-font-sans);
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: uppercase;
	cursor: pointer;
	transition: var(--sv-transition);
}
.single-product .sv-var-btn:hover:not(:disabled) {
	border-color: var(--sv-text);
}
.single-product .sv-var-btn.is-selected {
	background: var(--sv-text);
	border-color: var(--sv-text);
	color: #ffffff;
}
.single-product .sv-var-btn:focus-visible {
	outline: 1px solid var(--sv-text);
	outline-offset: 2px;
}
.single-product .sv-var-btn.is-out,
.single-product .sv-var-btn:disabled {
	opacity: 0.35;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* "Clear" link not needed: clicking a selected size again deselects it. */
.single-product .reset_variations,
.single-product .reset_variations_alert {
	display: none !important;
}

/* Size guide link (top-right of the form) */
.single-product .sv-size-guide-link {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--sv-text);
	font-family: var(--sv-font-sans);
	font-size: 12px;
	font-weight: 300;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Variation price / stock message */
.single-product .woocommerce-variation-price .price {
	margin: 4px 0 10px;
}
.single-product .stock {
	font-size: 13px;
	font-weight: 300;
}
.single-product .stock.in-stock {
	color: var(--sv-stock-ok);
}
.single-product .stock.out-of-stock {
	color: var(--sv-stock-low);
}

/* Quantity + Add to cart */
.single-product .ct-cart-actions {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.single-product .entry-summary .quantity {
	border-radius: var(--sv-radius);
	--quantity-height: 48px;
}
.single-product .entry-summary .quantity input,
.single-product .entry-summary .quantity .ct-increase,
.single-product .entry-summary .quantity .ct-decrease {
	border-radius: var(--sv-radius);
}
.single-product .entry-summary .single_add_to_cart_button {
	flex: 1;
	min-height: 48px;
	padding: 0 1.75em;
	background: var(--sv-btn-bg);
	color: var(--sv-btn-text);
	border: 1px solid var(--sv-btn-bg);
	border-radius: var(--sv-radius);
	box-shadow: none;
	font-family: var(--sv-font-sans);
	font-size: 15px;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: none;
	transition: var(--sv-transition);
}
.single-product .entry-summary .single_add_to_cart_button:hover {
	background: var(--sv-btn-bg-hover);
	border-color: var(--sv-btn-bg-hover);
	color: var(--sv-btn-text);
}
.single-product .entry-summary .single_add_to_cart_button.disabled,
.single-product .entry-summary .single_add_to_cart_button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Trust points */
.sv-trust {
	display: grid;
	gap: 10px;
	margin: 20px 0 8px;
	padding: 16px 0 0;
	border-top: 1px solid var(--sv-divider);
	list-style: none;
}
.sv-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--sv-font-sans);
	font-size: 13px;
	font-weight: 300;
	color: var(--sv-text);
}
.sv-trust svg {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

/* Tabs / accordion (Description, Additional information, Reviews) */
.single-product .woocommerce-tabs {
	font-family: var(--sv-font-sans);
}
.single-product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--sv-divider);
}
.single-product .woocommerce-tabs ul.tabs li a,
.single-product .woocommerce-tabs .ct-accordion-heading {
	font-family: var(--sv-font-sans);
	font-size: 14px;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sv-text);
}
.single-product .woocommerce-tabs ul.tabs li.active a {
	font-weight: 700;
}
.single-product .woocommerce-tabs .ct-accordion-tab {
	border-color: var(--sv-divider);
}
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--sv-text);
}
.single-product .woocommerce-tabs table.shop_attributes th,
.single-product .woocommerce-tabs table.shop_attributes td {
	font-size: 14px;
	font-weight: 300;
	border-color: var(--sv-divider);
}

/* Related / upsells headings */
.single-product .related > h2,
.single-product .upsells > h2 {
	font-family: var(--sv-font-sans);
	font-size: clamp(22px, 2.2vw, 32px);
	font-weight: 300;
	letter-spacing: -0.03em;
	text-transform: none;
}

/* Size guide dialog */
.sv-dialog {
	width: min(720px, calc(100% - 32px));
	max-height: min(80vh, 760px);
	padding: 0;
	border: 0;
	border-radius: var(--sv-radius);
	background: #ffffff;
	color: var(--sv-text);
	font-family: var(--sv-font-sans);
}
.sv-dialog::backdrop {
	background: rgb(0 0 0 / 0.45);
}
.sv-dialog__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	background: #ffffff;
	border-bottom: 1px solid var(--sv-divider);
}
.sv-dialog__title {
	margin: 0;
	font-family: var(--sv-font-sans);
	font-size: 20px;
	font-weight: 300;
	letter-spacing: -0.02em;
}
.sv-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	color: var(--sv-text);
	cursor: pointer;
}
.sv-dialog__close svg {
	width: 18px;
	height: 18px;
}
.sv-dialog__body {
	padding: 20px 24px 28px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}
.sv-dialog__body table {
	width: 100%;
	border-collapse: collapse;
}
.sv-dialog__body th,
.sv-dialog__body td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--sv-divider);
	text-align: left;
}

/* ==========================================================
   Shop toolbar, active chips and filter drawer
   ========================================================== */
.sv-shop-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	font-family: var(--sv-font-sans);
	color: var(--sv-text);
}
.sv-shop-bar__left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.sv-shop-bar .sv-shop-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	background: var(--sv-bg-tint);
	color: var(--sv-text);
	border: 0;
	border-radius: var(--sv-radius);
	box-shadow: none;
	font-family: var(--sv-font-sans);
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: var(--sv-transition);
}
.sv-shop-bar .sv-shop-bar__btn:hover {
	background: color-mix(in srgb, var(--sv-text) 10%, var(--sv-bg-tint));
}
.sv-shop-bar .sv-shop-bar__btn:focus-visible {
	outline: 1px solid var(--sv-text);
	outline-offset: 2px;
}
.sv-shop-bar__btn svg {
	width: 14px;
	height: 14px;
}
.sv-shop-bar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--sv-text);
	color: #ffffff;
	font-size: 11px;
	border-radius: 9px;
}
.sv-shop-bar__count {
	margin: 0;
	font-size: 13px;
	font-weight: 300;
	color: var(--sv-text-muted);
}

/* Switch (In stock only) */
.sv-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: 8px;
	color: var(--sv-text);
	font-size: 13px;
	font-weight: 300;
	text-decoration: none;
}
.sv-switch:hover {
	color: var(--sv-text);
}
.sv-switch__track {
	position: relative;
	width: 36px;
	height: 20px;
	background: color-mix(in srgb, var(--sv-text) 25%, transparent);
	border-radius: 10px;
	transition: background-color 0.2s ease;
}
.sv-switch__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}
.sv-switch[aria-checked="true"] .sv-switch__track {
	background: var(--sv-text);
}
.sv-switch[aria-checked="true"] .sv-switch__thumb {
	transform: translateX(16px);
}
.sv-switch:focus-visible {
	outline: 1px solid var(--sv-text);
	outline-offset: 3px;
}

/* Active filter chips */
.sv-shop-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-family: var(--sv-font-sans);
}
.sv-shop-chips li {
	margin: 0;
}
.sv-shop-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid var(--sv-divider);
	color: var(--sv-text);
	font-size: 12px;
	font-weight: 300;
	text-decoration: none;
}
.sv-shop-chips a:hover {
	border-color: var(--sv-text);
}
.sv-shop-chips svg {
	width: 12px;
	height: 12px;
}
.sv-shop-chips .sv-shop-chips__clear {
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Drawer (right side) */
.sv-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 100%);
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	color: var(--sv-text);
	font-family: var(--sv-font-sans);
}
.sv-drawer[open] {
	animation: sv-drawer-in 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}
@keyframes sv-drawer-in {
	from { transform: translateX(40px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
.sv-drawer::backdrop {
	background: rgb(0 0 0 / 0.4);
}
.sv-drawer__form {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
}
.sv-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--sv-divider);
}
.sv-drawer__title {
	margin: 0;
	font-family: var(--sv-font-sans);
	font-size: 20px;
	font-weight: 300;
	letter-spacing: -0.02em;
}
.sv-drawer .sv-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 -8px 0 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--sv-text);
	cursor: pointer;
}
.sv-drawer__close svg {
	width: 18px;
	height: 18px;
}
.sv-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 24px 24px;
}
.sv-drawer__group {
	margin: 0;
	padding: 20px 0;
	border: 0;
	border-bottom: 1px solid var(--sv-divider);
}
.sv-drawer__group:focus {
	outline: none;
}
.sv-drawer__group legend {
	float: left;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
}
.sv-drawer__group legend + * {
	clear: both;
}

.sv-radio,
.sv-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 300;
	cursor: pointer;
}
.sv-radio input,
.sv-check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--sv-text);
}

.sv-size-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.sv-size-check {
	position: relative;
	cursor: pointer;
}
.sv-size-check input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.sv-size-check span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid color-mix(in srgb, var(--sv-text) 25%, transparent);
	font-size: 13px;
	font-weight: 300;
	text-transform: uppercase;
	transition: var(--sv-transition);
}
.sv-size-check input:checked + span {
	background: var(--sv-text);
	border-color: var(--sv-text);
	color: #ffffff;
}
.sv-size-check input:focus-visible + span {
	outline: 1px solid var(--sv-text);
	outline-offset: 2px;
}

.sv-color-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.sv-color-check {
	position: relative;
	cursor: pointer;
}
.sv-color-check input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.sv-color-check span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid color-mix(in srgb, var(--sv-text) 25%, transparent);
	font-size: 13px;
	font-weight: 300;
	transition: var(--sv-transition);
}
.sv-color-check__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}
.sv-color-check input:checked + span {
	border-color: var(--sv-text);
	box-shadow: inset 0 0 0 1px var(--sv-text);
}
.sv-color-check input:focus-visible + span {
	outline: 1px solid var(--sv-text);
	outline-offset: 2px;
}

.sv-price-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.sv-price-fields label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	font-weight: 300;
	color: var(--sv-text-muted);
}
.sv-price-fields input {
	height: 44px;
	padding: 0 12px;
	border: 1px solid color-mix(in srgb, var(--sv-text) 35%, transparent);
	border-radius: var(--sv-radius);
	background: #ffffff;
	color: var(--sv-text);
	font-size: 14px;
}

.sv-drawer__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	border-top: 1px solid var(--sv-divider);
}
.sv-drawer__clear {
	font-size: 13px;
	font-weight: 300;
	color: var(--sv-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sv-drawer .sv-drawer__apply {
	flex: 1;
	justify-content: center;
	min-height: 46px;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.sv-drawer[open] {
		animation: none;
	}
	.sv-switch__track,
	.sv-switch__thumb {
		transition: none;
	}
}

/* ==========================================================
   Slide-out cart drawer (reuses .sv-drawer shell)
   ========================================================== */
.sv-cart-drawer {
	display: none;
	flex-direction: column;
}
.sv-cart-drawer[open] {
	display: flex;
}
.sv-cart-drawer__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	transition: opacity 0.2s ease;
}
.sv-cart-drawer.is-busy .sv-cart-drawer__content {
	opacity: 0.5;
	pointer-events: none;
}

.sv-cart-drawer__empty {
	display: grid;
	gap: 16px;
	justify-items: start;
	padding: 32px 24px;
	font-size: 15px;
	font-weight: 300;
}
.sv-cart-drawer__empty p {
	margin: 0;
}

.sv-cart-drawer__items {
	flex: 1;
	margin: 0;
	padding: 8px 24px;
	overflow-y: auto;
	list-style: none;
}
.sv-cart-line {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--sv-divider);
}
.sv-cart-line__thumb {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--sv-image-bg);
}
.sv-cart-line__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sv-cart-line__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.sv-cart-line__added {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sv-stock-ok);
}
.sv-cart-line__name {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.3;
}
.sv-cart-line__name a {
	color: var(--sv-text);
	text-decoration: none;
}
.sv-cart-line__name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sv-cart-line__meta {
	margin: 0;
	font-size: 12px;
	font-weight: 300;
	color: var(--sv-text-muted);
}
.sv-cart-line__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}
.sv-cart-line__price {
	font-size: 14px;
	font-weight: 300;
}
.sv-cart-drawer .sv-cart-line__remove {
	align-self: flex-start;
	margin: 6px 0 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--sv-text-muted);
	font-family: var(--sv-font-sans);
	font-size: 12px;
	font-weight: 300;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Quantity stepper */
.sv-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid color-mix(in srgb, var(--sv-text) 25%, transparent);
}
.sv-cart-drawer .sv-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--sv-text);
	cursor: pointer;
}
.sv-cart-drawer .sv-qty__btn:hover:not(:disabled) {
	background: var(--sv-bg-tint);
}
.sv-cart-drawer .sv-qty__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.sv-qty__btn svg {
	width: 14px;
	height: 14px;
}
.sv-qty__value {
	min-width: 28px;
	font-size: 13px;
	font-weight: 300;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.sv-cart-drawer button:focus-visible,
.sv-cart-drawer a:focus-visible {
	outline: 1px solid var(--sv-text);
	outline-offset: 2px;
}

.sv-cart-drawer__foot {
	display: grid;
	gap: 10px;
	padding: 18px 24px 22px;
	border-top: 1px solid var(--sv-divider);
	text-align: center;
}
.sv-cart-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 300;
}
.sv-cart-drawer__note {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 300;
	color: var(--sv-text-muted);
	text-align: left;
}
.sv-cart-drawer__checkout {
	justify-content: center;
	width: 100%;
	min-height: 48px;
}
.sv-cart-drawer__view {
	font-size: 13px;
	font-weight: 300;
	color: var(--sv-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 690px) {
	[data-products] {
		row-gap: 28px;
	}
	[data-products] .product .woocommerce-loop-product__title,
	[data-products] .product .price {
		font-size: 14px;
	}
}
