/* SempliceCommerce – frontend. I colori seguono la palette di Blocksy quando disponibile. */

:root {
	--scom-accent: var(--theme-palette-color-1, #1f6feb);
	--scom-accent-contrast: #fff;
	--scom-text: var(--theme-text-color, #1d2327);
	--scom-muted: #6b7280;
	--scom-border: var(--theme-border-color, #e5e7eb);
	--scom-bg: #fff;
	--scom-soft: #f6f7f9;
	--scom-radius: 10px;
	--scom-shadow: 0 12px 40px rgba(17, 24, 39, 0.16);
	--scom-z: 99999;
}

.scom-lock,
.scom-lock body {
	overflow: hidden;
}

/* ------------------------------------------------------------ Ricerca */

.scom-search {
	position: relative;
	width: 100%;
	max-width: 640px;
}

.scom-search__form {
	display: flex;
	align-items: center;
	margin: 0;
	border: 1px solid var(--scom-border);
	border-radius: 999px;
	background: var(--scom-bg);
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.scom-search__form:focus-within {
	border-color: var(--scom-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--scom-accent) 20%, transparent);
}

.scom-search .scom-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 18px;
	border: 0 !important;
	background: transparent;
	box-shadow: none !important;
	font-size: 15px;
}

.scom-search__submit {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--scom-text);
	cursor: pointer;
}

.scom-search.is-loading .scom-search__submit svg {
	animation: scom-pulse 0.8s ease-in-out infinite alternate;
}

.scom-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: calc(var(--scom-z) - 10);
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--scom-border);
	border-radius: var(--scom-radius);
	background: var(--scom-bg);
	box-shadow: var(--scom-shadow);
}

.scom-search__group {
	padding: 10px 10px 4px;
	color: var(--scom-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.scom-search__item,
.scom-search__cat,
.scom-search__all {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--scom-text);
	text-decoration: none;
}

.scom-search__cat span {
	color: var(--scom-muted);
}

.scom-search__item:hover,
.scom-search__item.is-active,
.scom-search__cat:hover,
.scom-search__cat.is-active,
.scom-search__all:hover,
.scom-search__all.is-active {
	background: var(--scom-soft);
}

.scom-search__item img {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.scom-search__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.scom-search__title {
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
	text-overflow: ellipsis;
}

.scom-search__title mark {
	padding: 0;
	background: none;
	color: inherit;
	font-weight: 700;
}

.scom-search__meta {
	color: var(--scom-muted);
	font-size: 12px;
}

.scom-search__oos {
	color: #b42318;
	font-size: 12px;
}

.scom-search__price {
	flex: none;
	font-size: 14px;
	font-weight: 600;
}

.scom-search__price del {
	color: var(--scom-muted);
	font-weight: 400;
}

.scom-search__all {
	justify-content: center;
	margin-top: 4px;
	border-top: 1px solid var(--scom-border);
	border-radius: 0 0 8px 8px;
	color: var(--scom-accent);
	font-weight: 600;
}

.scom-search__empty {
	padding: 18px;
	color: var(--scom-muted);
	text-align: center;
}

/* ------------------------------------------------------------ Filtri */

.scom-filters {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.scom-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.scom-filters__title {
	font-size: 18px;
	font-weight: 700;
}

.scom-filters__close,
.scom-filters-toggle,
.scom-filters-backdrop {
	display: none;
}

.scom-filter {
	margin: 0;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--scom-border);
}

.scom-filter__title {
	margin-bottom: 10px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.scom-filter__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scom-filter__list--child {
	margin-left: 22px;
}

.scom-filter__list li {
	margin: 0;
}

.scom-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
	font-size: 14px;
}

.scom-check input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--scom-accent);
}

.scom-filter__count {
	color: var(--scom-muted);
	font-size: 12px;
}

.scom-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.scom-chip {
	position: relative;
	cursor: pointer;
}

.scom-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.scom-chip span {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--scom-border);
	border-radius: 999px;
	font-size: 13px;
	transition: all 0.15s;
}

.scom-chip:hover span {
	border-color: var(--scom-text);
}

.scom-chip input:checked + span {
	border-color: var(--scom-accent);
	background: var(--scom-accent);
	color: var(--scom-accent-contrast);
}

.scom-chip input:focus-visible + span {
	outline: 2px solid var(--scom-accent);
	outline-offset: 2px;
}

.scom-price__slider {
	position: relative;
	height: 28px;
	margin: 4px 8px 10px;
}

.scom-price__track {
	position: absolute;
	top: 12px;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 4px;
	background: var(--scom-border);
}

.scom-price__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 4px;
	background: var(--scom-accent);
}

.scom-price__range {
	position: absolute;
	top: 0;
	left: -8px;
	width: calc(100% + 16px);
	height: 28px;
	margin: 0;
	background: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.scom-price__range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--scom-accent);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
}

.scom-price__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid var(--scom-accent);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
}

.scom-price__range::-moz-range-track {
	background: none;
}

.scom-price__inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.scom-price__inputs label {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 6px;
}

.scom-price__inputs input {
	width: 100%;
	min-width: 0;
	height: 36px;
	padding: 0 8px;
}

.scom-filters__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
}

.scom-filters[data-auto="1"] .scom-filters__apply {
	display: none;
}

.scom-filters__reset {
	color: var(--scom-muted);
	font-size: 14px;
}

.scom-loop {
	transition: opacity 0.2s;
}

.scom-loop.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

@media (max-width: 999px) {
	.scom-filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 16px;
		border: 1px solid var(--scom-border);
		border-radius: 999px;
		background: var(--scom-bg);
		color: var(--scom-text);
		font-weight: 600;
		cursor: pointer;
	}

	.scom-filters-toggle__count {
		min-width: 20px;
		padding: 1px 6px;
		border-radius: 999px;
		background: var(--scom-accent);
		color: var(--scom-accent-contrast);
		font-size: 12px;
		text-align: center;
	}

	.scom-filters {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: var(--scom-z);
		width: min(88vw, 380px);
		padding: 20px 16px;
		overflow-y: auto;
		background: var(--scom-bg);
		box-shadow: var(--scom-shadow);
		transform: translateX(-105%);
		transition: transform 0.25s ease;
	}

	.scom-filters-wrap.is-open .scom-filters {
		transform: none;
	}

	.scom-filters-wrap.is-open .scom-filters-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: calc(var(--scom-z) - 1);
		background: rgba(17, 24, 39, 0.45);
	}

	.scom-filters__close {
		display: block;
		padding: 0 4px;
		border: 0;
		background: none;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
	}

	.scom-filters .scom-filters__apply {
		display: inline-block;
		flex: 1;
	}

	.scom-filters__actions {
		position: sticky;
		bottom: -20px;
		padding-bottom: 16px;
		background: var(--scom-bg);
	}
}

/* ------------------------------------------------------------ Drawer e modale */

.scom-drawer,
.scom-modal {
	position: fixed;
	inset: 0;
	z-index: var(--scom-z);
	visibility: hidden;
	pointer-events: none;
}

.scom-drawer.is-open,
.scom-modal.is-open {
	visibility: visible;
	pointer-events: auto;
}

.scom-drawer__overlay,
.scom-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
	opacity: 0;
	transition: opacity 0.25s;
}

.is-open > .scom-drawer__overlay,
.is-open > .scom-modal__overlay {
	opacity: 1;
}

.scom-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100vw, 420px);
	background: var(--scom-bg);
	box-shadow: var(--scom-shadow);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scom-drawer.is-open .scom-drawer__panel {
	transform: none;
}

.scom-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--scom-border);
}

.scom-drawer__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 18px;
}

.scom-drawer__title .scom-cart-count {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--scom-soft);
	font-size: 13px;
}

.scom-drawer__close,
.scom-modal__close {
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--scom-text);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.scom-cart-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.scom-cart-empty {
	margin: auto;
	padding: 32px;
	text-align: center;
}

.scom-shipping-bar {
	padding: 14px 20px;
	background: var(--scom-soft);
	font-size: 14px;
}

.scom-shipping-bar p {
	margin: 0 0 8px;
}

.scom-shipping-bar__track {
	height: 6px;
	border-radius: 6px;
	background: var(--scom-border);
	overflow: hidden;
}

.scom-shipping-bar__track span {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: var(--scom-accent);
	transition: width 0.4s;
}

.scom-shipping-bar.is-complete .scom-shipping-bar__track span {
	background: #12b76a;
}

.scom-cart-notices:empty {
	display: none;
}

.scom-cart-notices {
	padding: 10px 20px 0;
}

.scom-cart-items {
	flex: 1;
	margin: 0;
	padding: 0 20px;
	overflow-y: auto;
	list-style: none;
}

.scom-cart-item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--scom-border);
	transition: opacity 0.2s;
}

.scom-cart-item.is-updating {
	opacity: 0.5;
	pointer-events: none;
}

.scom-cart-item__thumb img {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	object-fit: cover;
}

.scom-cart-item__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 14px;
}

.scom-cart-item__name {
	color: var(--scom-text);
	font-weight: 600;
	text-decoration: none;
}

.scom-cart-item__info .variation {
	margin: 0;
	color: var(--scom-muted);
	font-size: 12px;
}

.scom-cart-item__info .variation dt,
.scom-cart-item__info .variation dd,
.scom-cart-item__info .variation p {
	display: inline;
	margin: 0;
}

.scom-cart-item__price {
	color: var(--scom-muted);
	font-size: 13px;
}

.scom-cart-item__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
}

.scom-cart-item__remove {
	padding: 4px;
	border: 0;
	background: none;
	color: var(--scom-muted);
	cursor: pointer;
}

.scom-cart-item__remove:hover {
	color: #b42318;
}

.scom-qty {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: 4px;
	border: 1px solid var(--scom-border);
	border-radius: 999px;
}

.scom-qty__btn {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--scom-text);
	font-size: 16px;
	cursor: pointer;
}

.scom-qty .scom-qty__input {
	width: 38px;
	height: 30px;
	padding: 0;
	border: 0 !important;
	background: transparent;
	box-shadow: none !important;
	text-align: center;
	-moz-appearance: textfield;
}

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

.scom-qty--fixed {
	border: 0;
	color: var(--scom-muted);
}

.scom-cart-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 22px;
	border-top: 1px solid var(--scom-border);
}

.scom-cart-footer__row {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
}

.scom-cart-footer__note {
	margin: 0;
	color: var(--scom-muted);
	font-size: 12px;
}

.scom-cart-footer__checkout.button {
	width: 100%;
	padding: 14px;
	text-align: center;
}

.scom-cart-footer__cart {
	color: var(--scom-text);
	font-size: 14px;
	text-align: center;
}

.scom-cart-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: calc(var(--scom-z) - 20);
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--scom-accent);
	box-shadow: var(--scom-shadow);
	color: var(--scom-accent-contrast);
	cursor: pointer;
	transition: transform 0.15s;
}

.scom-cart-fab:hover {
	transform: scale(1.06);
}

.scom-cart-fab .scom-cart-count,
.scom-cart-button .scom-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.scom-cart-button {
	position: relative;
	display: inline-flex;
	color: inherit;
}

.scom-cart-button .scom-cart-count {
	top: -8px;
	right: -10px;
	background: var(--scom-accent);
}

/* Modale quick view */

.scom-modal__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(94vw, 960px);
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 14px;
	background: var(--scom-bg);
	box-shadow: var(--scom-shadow);
	opacity: 0;
	transform: translate(-50%, -46%);
	transition: opacity 0.25s, transform 0.25s;
}

.scom-modal.is-open .scom-modal__dialog {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.scom-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
}

.scom-qv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	padding: 32px;
}

.scom-qv__main img {
	width: 100%;
	height: auto;
	border-radius: var(--scom-radius);
}

.scom-qv__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.scom-qv__thumb {
	width: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	overflow: hidden;
}

.scom-qv__thumb.is-active {
	border-color: var(--scom-accent);
}

.scom-qv__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.scom-qv__title {
	margin: 0 0 8px;
	font-size: 26px;
}

.scom-qv__price {
	margin: 10px 0 16px;
	font-size: 22px;
	font-weight: 600;
}

.scom-qv__excerpt {
	margin-bottom: 20px;
	color: var(--scom-muted);
}

.scom-qv__more {
	display: inline-block;
	margin-top: 16px;
	font-weight: 600;
}

@media (max-width: 760px) {
	.scom-qv {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px;
	}

	.scom-modal__dialog {
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(30px);
	}

	.scom-modal.is-open .scom-modal__dialog {
		transform: none;
	}
}

.scom-spinner {
	width: 36px;
	height: 36px;
	margin: 80px auto;
	border: 3px solid var(--scom-border);
	border-top-color: var(--scom-accent);
	border-radius: 50%;
	animation: scom-spin 0.7s linear infinite;
}

.scom-error {
	padding: 32px;
	color: #b42318;
	text-align: center;
}

/* Pulsanti nelle griglie */

.products .product {
	position: relative;
}

.scom-qv-btn {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 8px 12px;
	border: 1px solid var(--scom-border);
	border-radius: 6px;
	background: var(--scom-bg);
	color: var(--scom-text);
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.15s;
}

.scom-qv-btn:hover {
	border-color: var(--scom-text);
}

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

.scom-wishlist-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--scom-text);
	cursor: pointer;
}

.scom-wishlist-btn svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	transition: transform 0.2s, fill 0.2s;
}

.scom-wishlist-btn.is-active svg {
	fill: #e11d48;
	stroke: #e11d48;
}

.scom-wishlist-btn.is-loading svg {
	transform: scale(0.85);
}

.scom-wishlist-btn--loop {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.scom-wishlist-btn--single {
	margin: 12px 0;
	font-weight: 600;
}

.scom-wishlist-link {
	position: relative;
	display: inline-flex;
	color: inherit;
}

.scom-wishlist-link .scom-wishlist-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #e11d48;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.scom-wishlist-page--empty {
	padding: 48px 0;
	text-align: center;
}

/* ------------------------------------------------------------ Badge */

.scom-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.onsale + .scom-badges {
	top: 44px;
}

.scom-badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.scom-badge--new {
	background: var(--scom-accent);
}

.scom-badge--low {
	background: #f79009;
}

.scom-badge--out {
	background: #6b7280;
}

/* ------------------------------------------------------------ Widget Elementor */

.scom-el {
	display: flex;
}

.scom-el > .scom-wishlist-page {
	flex: 1 1 100%;
}

/* ------------------------------------------------------------ Varie */

.scom-gtin {
	display: block;
}

.scom-gtin__barcode {
	display: block;
	margin-top: 6px;
}

.scom-form-notice {
	margin-bottom: 12px;
}

.scom-uppercase {
	text-transform: uppercase;
}

.scom-invoice-details ul {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------ Categorie */

.scom-cats {
	--cols: var(--c-d, 4);
	--gap: 20px;
	--radius: var(--scom-radius);
	--ratio: 1 / 1;
	--zoom: 1.06;
	margin: 0 0 32px;
}

@media (max-width: 999px) {
	.scom-cats {
		--cols: var(--c-t, 3);
	}
}

@media (max-width: 689px) {
	.scom-cats {
		--cols: var(--c-m, 2);
		--gap: 12px;
	}
}

.scom-cats__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.scom-cats__heading {
	margin: 0;
	font-size: clamp(20px, 2.4vw, 28px);
}

.scom-cats__nav {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.scom-cats__nav[hidden] {
	display: none;
}

.scom-cats__arrow {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--scom-border);
	border-radius: 50%;
	background: var(--scom-bg);
	color: var(--scom-text);
	cursor: pointer;
	transition: border-color 0.15s, opacity 0.15s;
}

.scom-cats__arrow:hover:not(:disabled) {
	border-color: var(--scom-text);
}

.scom-cats__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.scom-cats__list {
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.scom-cats--carousel .scom-cats__list {
	display: flex;
	padding: 4px 2px 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.scom-cats--carousel .scom-cats__list::-webkit-scrollbar {
	display: none;
}

.scom-cats--carousel .scom-cats__item {
	flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
	scroll-snap-align: start;
}

.scom-cats__item {
	margin: 0;
}

.scom-cats__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.scom-cats__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--ratio);
	border-radius: var(--radius);
	background: var(--scom-soft);
}

.scom-cats__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.scom-cats__link:hover .scom-cats__img {
	transform: scale(var(--zoom));
}

.scom-cats__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 2px 0;
	text-align: center;
}

.scom-cats__name {
	font-weight: 600;
	line-height: 1.3;
}

.scom-cats__count {
	color: var(--scom-muted);
	font-size: 13px;
}

.scom-cats--card .scom-cats__link {
	padding: 8px 8px 12px;
	border: 1px solid var(--scom-border);
	border-radius: calc(var(--radius) + 4px);
	background: var(--scom-bg);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.scom-cats--card .scom-cats__link:hover {
	border-color: transparent;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.1);
}

.scom-cats--overlay .scom-cats__link {
	position: relative;
}

.scom-cats--overlay .scom-cats__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 60%);
}

.scom-cats--overlay .scom-cats__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	padding: 16px 18px;
	color: #fff;
	text-align: left;
}

.scom-cats--overlay .scom-cats__name {
	font-size: 18px;
}

.scom-cats--overlay .scom-cats__count {
	color: rgba(255, 255, 255, 0.85);
}

.scom-cats__img--product {
	padding: 14%;
	background: #fff;
	object-fit: contain;
}

.scom-cats__initial {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: color-mix(in srgb, var(--scom-accent) 10%, var(--scom-bg));
	color: var(--scom-accent);
	font-size: clamp(26px, 3.5vw, 44px);
	font-weight: 700;
}

/* Cerchi a misura fissa (anche in griglie con poche colonne), centrati nella casella. */
.scom-cats--circle {
	--circle: 140px;
}

.scom-cats--circle .scom-cats__media {
	width: 100%;
	max-width: var(--circle);
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--scom-border);
	border-radius: 50%;
}

.scom-cats--circle .scom-cats__link:hover .scom-cats__media {
	border-color: var(--scom-accent);
}

@media (max-width: 689px) {
	.scom-cats--circle {
		--circle: 96px;
	}
}

.scom-cats--circle .scom-cats__name {
	font-size: 14px;
}

.scom-cats--circle .is-current .scom-cats__media {
	box-shadow: 0 0 0 3px var(--scom-accent);
}

.scom-cats--circle .is-current .scom-cats__name {
	color: var(--scom-accent);
}

/* ------------------------------------------------------------ Header */

.scom-container {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin: 0 auto;
	padding: 0 20px;
}

.scom-topbar {
	background: var(--scom-h-top-bg, #111827);
	color: var(--scom-h-top-text, #fff);
	font-size: 13px;
}

.scom-topbar__inner {
	display: grid;
	align-items: center;
	min-height: 36px;
	text-align: center;
}

.scom-topbar__msg {
	grid-area: 1 / 1;
	margin: 0;
	padding: 8px 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.4s, visibility 0.4s;
}

.scom-topbar__msg.is-active {
	visibility: visible;
	opacity: 1;
}

.scom-topbar__msg a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.scom-header {
	position: relative;
	z-index: 900;
	border-bottom: 1px solid var(--scom-border);
	background: var(--scom-h-bg, #fff);
	color: var(--scom-h-text, var(--scom-text));
	transition: box-shadow 0.2s;
}

.scom-header.is-sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.scom-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
}

.scom-header__main {
	display: grid;
	grid-template-areas: "logo search icons";
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}

.scom-header__logo {
	grid-area: logo;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.scom-header__logo-img {
	display: block;
	width: var(--scom-h-logo, 140px);
	max-width: 100%;
	height: auto;
}

.scom-header__site-name {
	font-size: 22px;
	font-weight: 700;
	white-space: nowrap;
}

.scom-header__search {
	grid-area: search;
	display: flex;
	justify-content: center;
}

.scom-header__search .scom-search {
	max-width: 680px;
}

.scom-header__icons {
	grid-area: icons;
	display: flex;
	align-items: center;
	gap: 4px;
}

.scom-header__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.15s;
}

.scom-header__icon:hover {
	background: var(--scom-soft);
}

.scom-header__icon a {
	color: inherit;
}

.scom-header__burger {
	grid-area: burger;
	display: none;
}

.scom-header__nav {
	border-top: 1px solid var(--scom-border);
	background: var(--scom-h-nav-bg, transparent);
}

.scom-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.scom-nav > li {
	position: relative;
	margin: 0;
}

.scom-nav a {
	display: block;
	padding: 13px 0;
	color: inherit;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.scom-nav > li > a:hover,
.scom-nav > .current-menu-item > a,
.scom-nav > .current-menu-ancestor > a {
	color: var(--scom-accent);
}

.scom-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.scom-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 10;
	min-width: 230px;
	margin: 0;
	padding: 8px 0;
	border: 1px solid var(--scom-border);
	border-radius: var(--scom-radius);
	background: var(--scom-bg);
	box-shadow: var(--scom-shadow);
	list-style: none;
	visibility: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.scom-nav li:hover > .sub-menu,
.scom-nav li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.scom-nav .sub-menu a {
	padding: 8px 18px;
	color: var(--scom-text);
	font-weight: 400;
}

.scom-nav .sub-menu a:hover {
	background: var(--scom-soft);
}

@media (max-width: 999px) {
	.scom-header__main {
		grid-template-areas: "burger logo icons" "search search search";
		grid-template-columns: auto 1fr auto;
		gap: 10px 6px;
		min-height: 0;
		padding-top: 10px;
		padding-bottom: 12px;
	}

	.scom-header__burger {
		display: inline-grid;
	}

	.scom-header__logo-img {
		width: min(var(--scom-h-logo, 140px), 42vw);
	}

	.scom-header__search .scom-search {
		max-width: none;
	}

	.scom-header__nav {
		display: none;
	}
}

/* Menu mobile */

.scom-drawer--left .scom-drawer__panel {
	right: auto;
	left: 0;
	width: min(88vw, 380px);
	transform: translateX(-100%);
}

.scom-drawer__scroll {
	flex: 1;
	padding: 4px 0 24px;
	overflow-y: auto;
}

.scom-mnav,
.scom-mnav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scom-mnav a {
	display: block;
	padding: 14px 20px;
	border-bottom: 1px solid var(--scom-border);
	color: var(--scom-text);
	font-weight: 500;
	text-decoration: none;
}

.scom-mnav .sub-menu {
	background: var(--scom-soft);
}

.scom-mnav .sub-menu a {
	padding: 11px 20px 11px 36px;
	font-size: 14px;
	font-weight: 400;
}

.scom-mnav--links {
	margin-top: 16px;
}

.scom-mnav--links a {
	padding: 10px 20px;
	border: 0;
	color: var(--scom-muted);
	font-weight: 400;
}

/* ------------------------------------------------------------ Pagina negozio */

.scom-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: calc(var(--scom-radius) + 6px);
	background: var(--scom-soft);
}

.scom-hero--image {
	min-height: clamp(220px, 32vw, 380px);
	color: #fff;
}

.scom-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.scom-hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.08) 75%);
}

.scom-hero__body {
	position: relative;
	z-index: 1;
	max-width: 760px;
	padding: clamp(20px, 4vw, 48px);
}

.scom-hero__crumbs {
	margin-bottom: 8px;
	font-size: 13px;
	opacity: 0.85;
}

.scom-hero__crumbs a {
	color: inherit;
}

.scom-hero__title {
	margin: 0 0 8px;
	color: inherit;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
}

.scom-hero__desc {
	font-size: 16px;
	opacity: 0.92;
}

.scom-hero__desc p:last-child {
	margin-bottom: 0;
}

.scom-subcats {
	margin-bottom: 20px;
}

.scom-toolbar {
	display: flex;
	clear: both;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin: 0 0 20px;
}

.scom-toolbar__per-page {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--scom-muted);
	font-size: 14px;
}

.scom-toolbar__per-page select {
	width: auto;
	min-width: 72px;
	height: 36px;
	padding: 0 28px 0 10px;
}

.scom-cols-switch {
	display: inline-flex;
	gap: 4px;
}

.scom-cols-switch button {
	--bar: var(--scom-muted);
	box-sizing: border-box;
	width: calc(var(--n) * 6px + 14px);
	height: 32px;
	padding: 7px;
	border: 1px solid var(--scom-border);
	border-radius: 6px;
	background-color: transparent;
	background-image: repeating-linear-gradient(90deg, var(--bar) 0 4px, transparent 4px 6px);
	background-clip: content-box;
	background-origin: content-box;
	cursor: pointer;
}

.scom-cols-switch button[aria-pressed="true"] {
	--bar: var(--scom-text);
	border-color: var(--scom-text);
}

@media (max-width: 999px) {
	.scom-cols-switch {
		display: none;
	}
}

/* Griglia */

.scom-grid .scom-loop ul.products {
	display: grid !important;
	grid-template-columns: repeat(var(--scom-cols, var(--scom-cols-d, 4)), minmax(0, 1fr)) !important;
	gap: 28px 20px !important;
	margin: 0 0 32px !important;
	padding: 0 !important;
}

.scom-grid .scom-loop ul.products::before,
.scom-grid .scom-loop ul.products::after {
	display: none !important;
}

.scom-grid .scom-loop ul.products > li.product {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

@media (max-width: 999px) {
	.scom-grid .scom-loop ul.products {
		grid-template-columns: repeat(var(--scom-cols-t, 3), minmax(0, 1fr)) !important;
	}
}

@media (max-width: 689px) {
	.scom-grid .scom-loop ul.products {
		grid-template-columns: repeat(var(--scom-cols-m, 2), minmax(0, 1fr)) !important;
		gap: 20px 12px !important;
	}
}

/* Schede moderne */

.scom-cards-modern ul.products li.product {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 10px 10px 14px !important;
	border: 1px solid var(--scom-border);
	border-radius: calc(var(--scom-radius) + 4px);
	background: var(--scom-bg);
	transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.scom-cards-modern ul.products li.product img {
	border-radius: var(--scom-radius);
}

.scom-cards-modern ul.products li.product .woocommerce-loop-product__title {
	padding-top: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.scom-cards-modern ul.products li.product .price {
	margin-bottom: 12px;
	color: var(--scom-text);
	font-weight: 700;
}

.scom-cards-modern ul.products li.product .price del {
	color: var(--scom-muted);
	font-weight: 400;
	opacity: 1;
}

.scom-cards-modern ul.products li.product .price ins {
	color: #b42318;
	text-decoration: none;
}

.scom-cards-modern ul.products li.product > .button {
	width: 100%;
	margin-top: auto !important;
	border-radius: 999px;
	text-align: center;
}

.scom-cards-modern .scom-wishlist-btn--loop {
	top: 18px;
	right: 18px;
}

.scom-cards-modern .scom-badges {
	top: 18px;
	left: 18px;
}

.scom-qv-btn svg {
	display: none;
}

.scom-cards-modern .scom-qv-btn {
	position: absolute;
	top: 64px;
	right: 18px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.scom-cards-modern .scom-qv-btn svg {
	display: block;
}

.scom-cards-modern .scom-qv-btn span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (hover: hover) {
	.scom-cards-modern ul.products li.product:hover {
		border-color: transparent;
		box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
		transform: translateY(-3px);
	}

	.scom-cards-modern ul.products li.product .scom-qv-btn {
		opacity: 0;
		transform: translateX(6px);
		transition: opacity 0.2s, transform 0.2s;
	}

	.scom-cards-modern ul.products li.product:hover .scom-qv-btn,
	.scom-cards-modern ul.products li.product .scom-qv-btn:focus-visible {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 689px) {
	.scom-cards-modern ul.products li.product {
		padding: 6px 6px 10px !important;
	}

	.scom-cards-modern ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px;
	}

	.scom-cards-modern ul.products li.product > .button {
		padding-right: 8px;
		padding-left: 8px;
		font-size: 13px;
	}

	.scom-cards-modern .scom-wishlist-btn--loop,
	.scom-cards-modern .scom-qv-btn {
		right: 12px;
	}
}

/* Seconda immagine al passaggio */

.scom-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--scom-radius);
}

.scom-thumb img {
	display: block;
	width: 100%;
	margin: 0 !important;
}

.scom-thumb__alt {
	position: absolute;
	inset: 0;
	height: 100% !important;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.35s;
}

@media (hover: hover) {
	li.product:hover .scom-thumb__alt {
		opacity: 1;
	}
}

/* Carica altri */

.scom-load-more {
	display: flex;
	justify-content: center;
	margin: 8px 0 40px;
}

.scom-load-more__btn {
	min-width: 240px;
	border-radius: 999px;
}

.scom-load-more__btn.loading {
	opacity: 0.6;
}

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

@keyframes scom-pulse {
	to {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scom-drawer__panel,
	.scom-modal__dialog,
	.scom-filters,
	.scom-loop,
	.scom-cats__img,
	.scom-topbar__msg,
	.scom-cards-modern ul.products li.product,
	.scom-thumb__alt {
		transition: none;
	}
}
