/* WooCommerce storefront — product cards, shop, cart, account, single */
.woocommerce .woocommerce-breadcrumb {
	font-size: .85rem; color: var(--sovo-ink-muted); margin-bottom: .85rem;
}

.sovo-shop-layout {
	display: grid; gap: 1.25rem;
}
@media (min-width: 1024px) {
	.sovo-shop-layout {
		grid-template-columns: minmax(0, 1fr) 280px; align-items: start;
	}
	/* Products stay on the left; filters on the right */
	.sovo-shop-layout__main { min-width: 0; }
	.sovo-shop-layout__sidebar { position: sticky; top: 88px; }
}
.sovo-shop-layout__sidebar {
	background: var(--sovo-surface-muted); border-radius: 16px; padding: 1rem;
	border: 1px solid var(--sovo-border);
}
.sovo-shop-layout__hint { margin: 0; color: var(--sovo-ink-muted); font-size: .9rem; }

.sovo-shop-toolbar {
	display: flex; gap: .65rem; align-items: center; justify-content: space-between;
	margin-bottom: 1rem;
}
.sovo-shop-toolbar__btn {
	min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--sovo-border);
	background: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
@media (min-width: 1024px) {
	.sovo-shop-toolbar__btn { display: none; }
}
@media (max-width: 1023px) {
	.sovo-shop-layout__sidebar {
		display: none; position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 70vh;
		overflow: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.12);
	}
	body.sovo-filters-open .sovo-shop-layout__sidebar { display: block; }
	body.sovo-filters-open::before {
		content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55;
	}
}

.sovo-tax-header { margin-bottom: 1rem; }
.sovo-tax-header__media { border-radius: 16px; overflow: hidden; margin-bottom: .65rem; }
.sovo-tax-header__media img { width: 100%; max-height: 180px; object-fit: cover; }
.sovo-tax-header__count { margin: 0; color: var(--sovo-ink-muted); font-size: .9rem; }

/* Product card — equal image height, non-overlapping controls */
.woocommerce ul.products li.product.sovo-product-card,
.sovo-product-card {
	background: transparent; border: 0; border-radius: 0; overflow: visible;
	padding: 0 !important; margin: 0 !important; width: auto !important; float: none !important;
	position: relative; text-align: left; display: flex; flex-direction: column;
}
.sovo-product-card__media {
	position: relative; border-radius: 14px; overflow: hidden; background: var(--sovo-surface-muted);
	aspect-ratio: var(--sovo-product-ratio, 1 / 1); width: 100%;
}
.sovo-product-card__image-link {
	display: block; position: absolute; inset: 0; z-index: 1;
}
.sovo-product-card__img,
.sovo-product-card__media img,
.sovo-product-card__media .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product a img {
	width: 100% !important; height: 100% !important; aspect-ratio: unset !important;
	object-fit: cover !important; margin: 0 !important; display: block;
}
.sovo-product-card__badges {
	position: absolute; top: .45rem; left: .45rem; display: flex; flex-direction: column; align-items: flex-start;
	gap: .25rem; z-index: 3; max-width: calc(100% - 3.2rem); pointer-events: none;
}
.sovo-badge {
	display: inline-flex; align-items: center; min-height: 22px; padding: 0 .45rem;
	border-radius: 999px; font-size: .65rem; font-weight: 700; background: #fff; color: var(--sovo-ink);
}
.sovo-badge--sale { background: var(--sovo-ink); color: #fff; }
.sovo-badge--new { background: #fff; }
.sovo-badge--best { background: var(--sovo-accent); }

.sovo-product-card__wish {
	position: absolute; top: .45rem; right: .45rem; z-index: 4;
	width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95);
	display: grid; place-items: center; color: var(--sovo-ink); text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.sovo-product-card__wish .sovo-wish-toggle {
	position: static !important; width: 34px; min-width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center;
}
.sovo-product-card__qv {
	position: absolute !important; left: .45rem; bottom: .45rem; right: auto !important; top: auto !important;
	z-index: 4; min-height: 30px; padding: 0 .55rem !important; border: 0; border-radius: 999px;
	background: rgba(255,255,255,.95) !important; font-size: .68rem; font-weight: 700; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.sovo-product-card__add {
	position: absolute; right: .45rem; bottom: .45rem; z-index: 4;
	width: 34px; height: 34px; border-radius: 10px; background: var(--sovo-accent) !important;
	color: var(--sovo-accent-ink) !important; display: grid; place-items: center;
	text-decoration: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
	box-shadow: 0 4px 12px rgba(255,184,0,.35); line-height: 1 !important;
}
.sovo-product-card__add.loading::after { content: ""; }

.sovo-product-card__body { padding: .65rem .1rem .25rem; }
.sovo-product-card__brand { font-size: .82rem; font-weight: 800; margin-bottom: .15rem; }
.sovo-product-card__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: .86rem; font-weight: 500; color: var(--sovo-ink-muted); text-decoration: none !important;
	margin-bottom: .25rem; min-height: 2.5em;
}
.sovo-product-card__discount { color: var(--sovo-success); font-size: .78rem; font-weight: 700; margin-bottom: .15rem; }
.sovo-product-card__price { font-size: 1rem; font-weight: 800; color: var(--sovo-ink); }
.sovo-product-card__price del {
	display: block; font-size: .82rem; font-weight: 500; color: var(--sovo-ink-soft); margin-top: .1rem;
}
.sovo-product-card__rating { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.sovo-product-card__reviews { font-size: .75rem; color: var(--sovo-ink-soft); }
.sovo-product-card__stock { margin-top: .25rem; font-size: .78rem; color: var(--sovo-danger); font-weight: 600; }

.woocommerce ul.products { display: grid !important; gap: .85rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (max-width: 768px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 769px) and (max-width: 1023px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--sovo-accent) !important;
	color: var(--sovo-accent-ink) !important;
	border-radius: var(--sovo-radius-pill) !important;
	border: 0 !important; font-weight: 700 !important; padding: .75rem 1.2rem !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--sovo-accent-hover) !important; }

.woocommerce span.onsale {
	background: var(--sovo-ink) !important; color: #fff !important;
	border-radius: 999px !important; min-height: 2em; line-height: 2em; padding: 0 .7em;
}

/* Single product */
.woocommerce div.product { margin-top: 1rem; }
.woocommerce div.product .product_title {
	font-family: var(--sovo-display); font-size: clamp(1.35rem, 3vw, 1.9rem);
}
.woocommerce div.product p.price { font-size: 1.35rem; font-weight: 800; }
.woocommerce-tabs ul.tabs { padding-left: 0 !important; }
.woocommerce-tabs ul.tabs li {
	border-radius: 12px 12px 0 0 !important; background: var(--sovo-surface-muted) !important;
}

.sovo-has-sticky-atc .site-main { padding-bottom: 5.5rem; }

/* Cart */
.woocommerce-cart-form .shop_table { border: 0 !important; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 10px; background: var(--sovo-surface-muted); }
.woocommerce-cart .product-remove a { color: var(--sovo-danger) !important; }

.sovo-cart-appbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem;
}
.sovo-cart-appbar__title { margin: 0; font-size: 1.35rem; }
.sovo-cart-deliver {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: .7rem .85rem; background: var(--sovo-surface-muted); border-radius: 12px; margin-bottom: 1rem;
	font-size: .88rem;
}
.sovo-cart-deliver a { color: var(--sovo-accent-hover); font-weight: 700; text-decoration: none !important; }

.sovo-cart-share {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: .85rem 1rem; border-radius: 14px; background: #fff6d9; margin: 1rem 0;
}
.sovo-cart-share p { margin: 0; font-size: .88rem; }

.sovo-sticky-checkout {
	display: none;
}
@media (max-width: 768px) {
	.sovo-has-sticky-checkout .sovo-sticky-checkout {
		display: flex; align-items: center; justify-content: space-between; gap: .75rem;
		position: fixed; left: 0; right: 0;
		bottom: calc(var(--sovo-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
		z-index: 45; padding: .8rem 1rem; background: #fff; border-top: 1px solid var(--sovo-border);
		box-shadow: 0 -8px 24px rgba(0,0,0,.06);
	}
	.sovo-has-sticky-checkout .site-main { padding-bottom: 5.5rem; }
	.sovo-sticky-checkout__label { display: block; font-size: .68rem; letter-spacing: .06em; color: var(--sovo-ink-soft); }
	.sovo-sticky-checkout__total { font-size: 1.15rem; font-weight: 800; }
	.sovo-sticky-checkout__btn {
		min-height: 48px; padding: 0 1.1rem; border: 0; border-radius: 14px;
		background: var(--sovo-accent); color: var(--sovo-accent-ink); font: inherit; font-weight: 800;
		text-decoration: none !important; display: inline-flex; align-items: center;
	}
}

/* Account — desktop sidebar + content; kill WC floats */
.woocommerce-account .site-main > .container,
.woocommerce-account .woocommerce {
	max-width: 100%;
}
.woocommerce-account .woocommerce {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 1.25rem !important;
	align-items: start;
	width: 100% !important;
}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	display: none !important; content: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
@media (min-width: 900px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: 260px minmax(0, 1fr) !important;
	}
	.woocommerce-account .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: 1;
	}
	.woocommerce-account .woocommerce-MyAccount-content {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}
}
.woocommerce-MyAccount-navigation ul {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
	background: #fff; border-radius: 18px; border: 1px solid var(--sovo-border); overflow: hidden;
}
.woocommerce-MyAccount-navigation a {
	display: flex; align-items: center; justify-content: space-between;
	padding: .95rem 1rem; text-decoration: none !important; font-weight: 600;
	border-bottom: 1px solid var(--sovo-border); background: #fff; color: var(--sovo-ink);
}
.woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-MyAccount-navigation .is-active a {
	background: var(--sovo-surface-muted); color: var(--sovo-ink);
}
.woocommerce-MyAccount-content {
	background: #fff; border: 1px solid var(--sovo-border); border-radius: 18px; padding: 1.25rem 1.35rem;
	min-width: 0;
}
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-account .u-columns,
.woocommerce-account .col2-set {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 1rem !important;
	float: none !important;
	width: 100% !important;
}
@media (min-width: 700px) {
	.woocommerce-account .u-columns,
	.woocommerce-account .col2-set,
	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr 1fr !important;
	}
}
.woocommerce-account .u-column1,
.woocommerce-account .u-column2,
.woocommerce-account .col-1,
.woocommerce-account .col-2,
.woocommerce-account .woocommerce-Address {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 1rem !important;
	border: 1px solid var(--sovo-border);
	border-radius: 14px;
	box-sizing: border-box;
}
.woocommerce-account .woocommerce-Address-title,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0 0 .65rem; font-size: 1.05rem; position: static !important;
}
.woocommerce-account form .form-row {
	width: 100% !important; float: none !important; margin-bottom: .85rem;
}
.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .form-row textarea,
.woocommerce-account form .form-row select {
	width: 100% !important; max-width: 100%; box-sizing: border-box;
}
.woocommerce-account .entry-title,
.woocommerce-account .page-title {
	margin: 0 0 1rem; text-align: left;
}

/* Login + Create account side by side */
.sovo-account-auth {
	max-width: 960px; margin: 1.5rem auto; padding: 0;
	border: 0; background: transparent;
}
.sovo-account-auth .u-columns,
.sovo-account-auth .col2-set {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 1.25rem !important;
	float: none !important; width: 100% !important;
}
@media (min-width: 768px) {
	.sovo-account-auth .u-columns,
	.sovo-account-auth .col2-set {
		grid-template-columns: 1fr 1fr !important;
	}
}
.sovo-account-auth .u-column1,
.sovo-account-auth .u-column2,
.sovo-account-auth .col-1,
.sovo-account-auth .col-2 {
	float: none !important; width: 100% !important; margin: 0 !important;
	padding: 1.25rem !important; border: 1px solid var(--sovo-border); border-radius: 18px; background: #fff;
}

/* Hide email-verify banners when disabled in Sovocart settings */
body.sovo-hide-email-verify .woocommerce-info[class*="verif"],
body.sovo-hide-email-verify .wc-block-components-notice-banner--email,
body.sovo-hide-email-verify .sovo-email-verify,
body.sovo-hide-email-verify [class*="email-verification"],
body.sovo-hide-email-verify [class*="confirm-email"] {
	display: none !important;
}

.sovo-account-hero {
	display: flex; align-items: center; gap: .85rem;
	padding: 1rem; margin: 0 0 1rem; border-radius: 14px;
	background: var(--sovo-surface-muted);
}
.sovo-account-hero__avatar {
	width: 56px; height: 56px; border-radius: 50%; background: #111; color: #fff;
	display: grid; place-items: center; flex-shrink: 0;
}
.sovo-account-hero__name { margin: 0; font-size: 1.1rem; font-weight: 800; }
.sovo-account-hero__meta { margin: .15rem 0 0; color: var(--sovo-ink-muted); font-size: .85rem; }

/* Order status timeline */
.sovo-order-track {
	margin: 1.5rem 0; padding: 1.15rem 1.25rem; border: 1px solid var(--sovo-border);
	border-radius: 16px; background: #fff;
}
.sovo-order-track__title { margin: 0 0 1rem; font-size: 1.1rem; }
.sovo-order-track__list {
	list-style: none; margin: 0; padding: 0 0 0 .35rem; position: relative;
}
.sovo-order-track__item {
	display: grid; grid-template-columns: 22px 1fr; gap: .75rem; position: relative;
	padding: 0 0 1.15rem;
}
.sovo-order-track__item:last-child { padding-bottom: 0; }
.sovo-order-track__item:not(:last-child)::before {
	content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px;
	background: #d8d8d8;
}
.sovo-order-track__item--done:not(:last-child)::before,
.sovo-order-track__item--current:not(:last-child)::before {
	background: #22a06b;
}
.sovo-order-track__dot {
	width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c8c8c8;
	background: #fff; box-sizing: border-box; z-index: 1;
}
.sovo-order-track__item--done .sovo-order-track__dot,
.sovo-order-track__item--current .sovo-order-track__dot {
	border-color: #22a06b; background: #22a06b;
	box-shadow: inset 0 0 0 4px #fff;
}
.sovo-order-track__item--done .sovo-order-track__dot::after,
.sovo-order-track__item--current .sovo-order-track__dot::after {
	content: ""; display: block; width: 6px; height: 10px; margin: 2px auto 0;
	border: solid #22a06b; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sovo-order-track__item--done .sovo-order-track__dot::after,
.sovo-order-track__item--current .sovo-order-track__dot::after {
	border-color: #fff; margin-top: 3px;
}
.sovo-order-track__item--current {
	background: #eefaf3; margin-inline: -.5rem; padding-inline: .5rem;
	border-radius: 10px; padding-top: .45rem; padding-bottom: .65rem;
}
.sovo-order-track__item--pending { color: var(--sovo-ink-muted); }
.sovo-order-track__label { display: block; font-size: .95rem; }
.sovo-order-track__meta { display: block; font-size: .82rem; color: var(--sovo-ink-muted); margin-top: .15rem; }
.sovo-order-track__note {
	margin: 1rem 0 0; padding: .75rem .9rem; border-radius: 12px;
	background: #eef5ff; color: #1a3a6b; font-size: .9rem;
}
.sovo-order-track__note--soon { background: #fff8e1; color: #6b5a1a; }

@media (max-width: 768px) {
	body.woocommerce-cart .sovo-bottom-nav,
	body.woocommerce-checkout .sovo-bottom-nav { /* sticky bars sit above via bottom offset */ }
}

/* Quick archive filters */
.sovo-filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.sovo-filter-chip {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 .8rem;
	border-radius: 999px; border: 1px solid var(--sovo-border); background: #fff;
	font-size: .82rem; font-weight: 600; text-decoration: none !important;
}
.sovo-filter-chip.is-active { background: var(--sovo-ink); color: #fff; border-color: var(--sovo-ink); }
.sovo-filter-chip--clear { color: var(--sovo-danger); }

/* Side cart */
.sovo-side-cart[hidden] { display: none !important; }
.sovo-side-cart { position: fixed; inset: 0; z-index: 1000; }
.sovo-side-cart__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.sovo-side-cart__panel {
	position: absolute; top: 0; right: 0; width: min(100%, 380px); height: 100%;
	background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.sovo-side-cart__header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.1rem; border-bottom: 1px solid var(--sovo-border);
}
.sovo-side-cart__header h2 { margin: 0; font-size: 1.15rem; }
.sovo-side-cart__close {
	width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer;
}
.sovo-side-cart__body { flex: 1; overflow: auto; padding: 1rem; }
body.sovo-side-cart-open { overflow: hidden; }

/* Free shipping progress */
.sovo-free-ship {
	margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 14px;
	background: #fff8e1; border: 1px solid #ffe082;
}
.sovo-free-ship p { margin: 0 0 .55rem; font-size: .9rem; font-weight: 600; }
.sovo-free-ship__bar {
	height: 8px; border-radius: 999px; background: #ffe9a8; overflow: hidden;
}
.sovo-free-ship__bar span {
	display: block; height: 100%; background: var(--sovo-accent); border-radius: inherit;
}

/* Saved for later */
.sovo-saved-later { margin-top: 2rem; }
.sovo-saved-later__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.sovo-saved-later__item {
	display: grid; grid-template-columns: 72px 1fr; gap: .85rem; align-items: center;
	padding: .75rem; border: 1px solid var(--sovo-border); border-radius: 14px;
}
.sovo-save-later { display: inline-block; margin-top: .35rem; font-size: .82rem; font-weight: 600; }

/* Single product */
.sovo-single-product {
	display: grid; gap: 1.5rem;
}
@media (min-width: 900px) {
	.sovo-single-product {
		grid-template-columns: 1.05fr .95fr; align-items: start;
	}
	.sovo-single-product .woocommerce-tabs,
	.sovo-single-product .related,
	.sovo-single-product .up-sells {
		grid-column: 1 / -1;
	}
}
.sovo-single-discount {
	margin: .25rem 0 .5rem; color: var(--sovo-success); font-weight: 800; font-size: .95rem;
}
.sovo-single-meta {
	list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
	font-size: .88rem; color: var(--sovo-ink-muted);
}
.sovo-single-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.woocommerce div.product form.cart { margin-top: 1rem; }
.woocommerce div.product form.cart .variations { margin-bottom: 1rem; }
.woocommerce div.product form.cart .button { min-height: 48px; }

/* Checkout / account polish */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row input,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row input,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row select,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row select,
.woocommerce-checkout .woocommerce-additional-fields .form-row textarea {
	border: 1px solid var(--sovo-border); border-radius: 10px; min-height: 44px; padding: .5rem .75rem;
}
.sovo-checkout-trust { font-size: .82rem; color: var(--sovo-ink-muted); margin-top: .75rem; }
.sovo-account-help { color: var(--sovo-ink-muted); font-size: .9rem; }
.sovo-continue-shopping { margin: .75rem 0 0; }

/* Block checkout: light theme alignment without overriding gateway iframes */
.sovo-block-checkout .wp-block-woocommerce-checkout,
.sovo-block-cart .wp-block-woocommerce-cart {
	font-family: var(--sovo-font);
}

/*
 * Payment method UI: style labels only. Never hide/force display of gateway
 * fields, iframes, or hosted widgets — gateways own their DOM.
 */
.woocommerce-checkout #payment {
	background: var(--sovo-surface-muted);
	border-radius: 16px;
	border: 1px solid var(--sovo-border);
}
.woocommerce-checkout #payment ul.payment_methods {
	padding: 1rem !important;
	border-bottom: 1px solid var(--sovo-border) !important;
}
.woocommerce-checkout #payment div.payment_box {
	background: #fff !important;
	border-radius: 12px;
}
.woocommerce-checkout #payment iframe,
.sovo-block-checkout iframe {
	max-width: 100%;
}
/* Do not apply overflow:hidden on payment boxes — breaks some hosted fields. */

/* Quick View */
.sovo-quick-view[hidden], .sovo-size-guide[hidden] { display: none !important; }
.sovo-quick-view, .sovo-size-guide { position: fixed; inset: 0; z-index: 1100; }
.sovo-quick-view__backdrop, .sovo-size-guide__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sovo-quick-view__dialog, .sovo-size-guide__dialog {
	position: relative; z-index: 1; margin: 4vh auto; width: min(920px, calc(100% - 1.5rem));
	max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; padding: 1.25rem;
	box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.sovo-quick-view__close, .sovo-size-guide__close {
	position: absolute; top: .5rem; inset-inline-end: .5rem; width: 40px; height: 40px;
	border: 0; background: transparent; font-size: 1.5rem; cursor: pointer;
}
.sovo-qv { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .sovo-qv { grid-template-columns: 1fr 1fr; } }
body.sovo-qv-open { overflow: hidden; }

/* Swatches */
.sovo-swatches { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .75rem; }
.sovo-swatch {
	min-width: 40px; min-height: 36px; padding: .25rem .55rem; border: 1px solid var(--sovo-border);
	border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600;
}
.sovo-swatch.is-selected { border-color: var(--sovo-ink); box-shadow: 0 0 0 1px var(--sovo-ink); }
.sovo-swatch--color {
	width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 999px;
	background: var(--sovo-swatch, #ccc);
}
.sovo-swatch--color .sovo-swatch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sovo-swatch--color { position: relative; }

/* Wishlist / compare toggles */
.sovo-wish-toggle, .sovo-compare-toggle {
	border: 1px solid var(--sovo-border); background: #fff; border-radius: 999px;
	min-height: 36px; padding: 0 .75rem; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600;
}
.sovo-wish-toggle.is-active, .sovo-compare-toggle.is-active { background: var(--sovo-ink); color: #fff; }

/* Sale countdown */
.sovo-sale-countdown { font-size: .78rem; font-weight: 700; color: var(--sovo-danger, #c0392b); margin: .25rem 0; }
.sovo-sale-countdown--card { font-size: .72rem; }

/* Sticky ATC visible via JS (not only mobile) */
.sovo-sticky-atc[hidden] { display: none !important; }
.sovo-has-sticky-atc .sovo-sticky-atc:not([hidden]) {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	position: fixed; inset-inline: 0; bottom: calc(var(--sovo-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px));
	z-index: 45; padding: .75rem 1rem; background: #fff; border-top: 1px solid var(--sovo-border);
	box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.sovo-sticky-atc__btn {
	min-width: 120px; min-height: 46px; border: 0; border-radius: 14px;
	background: var(--sovo-accent); color: var(--sovo-accent-ink, #111); font: inherit; font-weight: 800; cursor: pointer;
}
.sovo-sticky-atc__price { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.sovo-sticky-atc__off { color: var(--sovo-success); font-size: .78rem; font-weight: 700; }

/* Compare table */
.sovo-compare-table-wrap { overflow: auto; }
.sovo-compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sovo-compare-table th, .sovo-compare-table td { border: 1px solid var(--sovo-border); padding: .65rem; vertical-align: top; }
.sovo-compare-table img { max-width: 96px; height: auto; }
.sovo-list-empty { padding: 1.5rem 0; color: var(--sovo-ink-muted); }
.sovo-single-recent { margin-top: 2.5rem; }
.sovo-single-recent h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.sovo-share-product { margin-top: .75rem; }
.sovo-link-btn {
	border: 0; background: none; color: var(--sovo-accent-hover, #0a66c2); font: inherit; font-weight: 700;
	text-decoration: underline; cursor: pointer; padding: 0;
}
.sovo-size-guide-trigger { margin: 0 0 .75rem; }
.sovo-filters-close {
	display: none; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; margin-bottom: .5rem;
}
@media (max-width: 768px) {
	body.sovo-filters-open .sovo-filters-close { display: inline-flex; align-items: center; justify-content: center; }
}

/* Search suggest extras */
.sovo-search-suggest__heading {
	margin: .35rem .75rem 0; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sovo-ink-muted);
}
.sovo-search-suggest__all {
	display: block; padding: .65rem .75rem; font-size: .85rem; font-weight: 700; text-decoration: none !important;
}
.sovo-search-suggest__recent {
	display: block; width: 100%; text-align: start; border: 0; background: transparent; padding: .55rem .75rem;
	font: inherit; cursor: pointer;
}
.sovo-search-suggest li.is-active, .sovo-search-suggest li.is-active a { background: var(--sovo-surface-muted); }
