/* ==========================================================================
   Shop Io Sono Randagia (M6) – caricato solo nelle pagine di WooCommerce.
   Direzione: collage, carta strappata, nastri, segni a mano (docs/proposta-grafica-shop.md).
   Regole: lime e rosa SOLO come decoro (mai colore del testo); prezzi, varianti, pulsanti e totali
   sempre leggibili e senza effetti; ogni hover ha un equivalente da tastiera; movimento ridotto rispettato.
   Le funzioni sono quelle native di WooCommerce: qui solo l'aspetto.
   ========================================================================== */

.gea-shop-pagina {
	--gea-shop-bordo: rgba(41, 42, 39, .14);
	--gea-shop-ombra: 0 18px 30px -22px rgba(41, 42, 39, .55);
	--gea-strappo: polygon(0 3%, 6% 0, 22% 2%, 40% 0, 61% 3%, 80% 0, 100% 2%, 99% 50%, 100% 97%, 81% 100%, 60% 97%, 38% 100%, 19% 97%, 0 100%, 1% 50%);
	padding-top: 0 !important;
	background-color: var(--gea-avorio);
}
.gea-shop-pagina > .alignwide { margin-inline: auto; }

/* Occhiello con segno rosa (come nella Home) */
.gea-shop-pagina .gea-occhiello { display: flex; width: fit-content; }
.gea-shop-pagina .gea-occhiello::before { background: var(--gea-fluo-rosa); }
.gea-shop-pagina .gea-occhiello a { color: inherit; text-decoration: none; }
.gea-shop-pagina .gea-occhiello a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Apertura (landing) e intestazione di categoria
   ----------------------------------------------------------------------- */
.gea-shop-apertura, .gea-shop-intestazione { overflow-x: clip; } /* i nastri decorativi non allargano la pagina */
.gea-shop-apertura { padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 4vw, 6rem) !important; }
.gea-shop-apertura h1.gea-shop__titolo { font-size: clamp(2.8rem, 1.8rem + 5vw, 5.4rem); margin-bottom: .4em; }
.gea-shop-apertura__testo { max-width: 34rem; margin-top: 1.4rem !important; }
.gea-shop-intestazione { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) !important; }
.gea-shop-intestazione .gea-shop__titolo { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.4rem); }
.gea-shop-intestazione .wp-block-term-description { max-width: 40rem; margin-top: 1.2rem; }
.gea-shop-intestazione-ricerca { padding-top: var(--wp--preset--spacing--50); }

/* --------------------------------------------------------------------------
   Barra del catalogo: categorie a pillole + ordinamento
   ----------------------------------------------------------------------- */
.gea-shop-catalogo { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.gea-shop-barra { gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.gea-shop-filtri ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.gea-shop-filtri a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .5em 1.15em;
	border: 2px solid var(--gea-antracite);
	border-radius: 999px;
	background: var(--gea-avorio);
	color: var(--gea-antracite);
	font: 700 .9rem/1 var(--gea-titoli);
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .25s var(--gea-morbida), box-shadow .25s var(--gea-morbida), translate .3s var(--gea-elastica);
}
.gea-shop-filtri a:hover,
.gea-shop-filtri a:focus-visible { background: var(--gea-fluo-lime); box-shadow: 3px 3px 0 var(--gea-antracite); translate: -1px -1px; }
.gea-shop-filtri a[aria-current="page"] { background: var(--gea-antracite); color: var(--gea-avorio); }
/* Categoria attiva + hover/focus (7/11/2026): resta scura (sempre riconoscibile) con testo e ombra lime
   (contrasto ~15:1). Prima lo sfondo restava antracite e il testo diventava antracite: illeggibile. */
.gea-shop-filtri a[aria-current="page"]:hover,
.gea-shop-filtri a[aria-current="page"]:focus-visible { background: var(--gea-antracite); color: var(--gea-fluo-lime); box-shadow: 3px 3px 0 var(--gea-fluo-lime); }
.gea-shop-barra .woocommerce-ordering select,
.gea-shop-barra .wc-block-catalog-sorting select,
.gea-scheda-prodotto form.cart select { /* solo catalogo e scheda: i campi del checkout restano quelli di WooCommerce */
	min-height: 2.75rem;
	height: auto !important;
	padding: .55em 2.4em .55em 1em !important;
	line-height: 1.4 !important;
	border: 2px solid var(--gea-antracite);
	border-radius: 999px;
	background: var(--gea-avorio) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23292A27' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1em center;
	-webkit-appearance: none;
	appearance: none;
	color: var(--gea-antracite);
	font-weight: 600;
	font-size: 1rem;
}
.gea-shop-barra .woocommerce-ordering { margin: 0; }

/* --------------------------------------------------------------------------
   Card dei prodotti: foto su carta, nastro adesivo, inclinazione leggera
   ----------------------------------------------------------------------- */
.gea-shop-griglia .wc-block-product-template { gap: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1rem, .5rem + 1.5vw, 2rem) !important; }
.gea-shop-griglia .wc-block-product {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: .75rem .75rem 1.1rem;
	background: var(--gea-carta);
	box-shadow: 0 1px 0 rgba(41, 42, 39, .05), var(--gea-shop-ombra);
	rotate: -.8deg;
	transition: rotate .5s var(--gea-elastica), translate .5s var(--gea-elastica), box-shadow .3s var(--gea-morbida);
	text-align: left;
}
.gea-shop-griglia .wc-block-product:nth-child(2n) { rotate: .7deg; }
.gea-shop-griglia .wc-block-product:nth-child(3n) { rotate: -.3deg; }
.gea-shop-griglia .wc-block-product::before { /* nastro adesivo */
	content: "";
	position: absolute;
	top: -.65rem;
	left: 50%;
	z-index: 2;
	width: 38%;
	height: 1.35rem;
	translate: -50% 0;
	rotate: -4deg;
	background: color-mix(in srgb, var(--gea-fluo-lime) 72%, transparent);
	pointer-events: none;
}
.gea-shop-griglia .wc-block-product:nth-child(2n)::before { rotate: 5deg; background: color-mix(in srgb, var(--gea-fluo-rosa) 55%, transparent); }
.gea-shop-griglia .wc-block-product:hover,
.gea-shop-griglia .wc-block-product:focus-within { rotate: 0deg; translate: 0 -4px; box-shadow: 0 1px 0 rgba(41, 42, 39, .05), 0 26px 40px -24px rgba(41, 42, 39, .6); }
.gea-shop-griglia .wc-block-components-product-image { width: 100%; margin: 0 0 .85rem !important; }
.gea-shop-griglia .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 2px;
}
.gea-shop-card__titolo { margin: 0 0 .3rem !important; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem) !important; line-height: 1.2; }
.gea-shop-card__titolo a {
	color: var(--gea-antracite);
	text-decoration: none;
	background-image: linear-gradient(transparent 62%, var(--gea-fluo-lime) 62%, var(--gea-fluo-lime) 92%, transparent 92%);
	background-size: 0 100%;
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size .45s var(--gea-morbida);
}
.gea-shop-card__titolo a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* tutta la card porta al prodotto */
.gea-shop-card__titolo a:hover,
.gea-shop-card__titolo a:focus-visible,
.wc-block-product:hover .gea-shop-card__titolo a { background-size: 100% 100%; }
.gea-shop-card__prezzo,
.gea-shop-griglia .wc-block-components-product-price { margin: 0 0 .9rem !important; color: var(--gea-antracite); font-weight: 700; font-size: 1.05rem; }
.gea-shop-card__pulsante { position: relative; z-index: 2; margin-top: auto !important; } /* sopra il link della card */
.gea-shop-griglia .wc-block-components-product-button__button,
.gea-shop-pagina .wc-block-components-product-button__button {
	min-height: 2.75rem;
	padding: .6em 1.2em !important;
	border: 2px solid var(--gea-antracite) !important;
	border-radius: 999px !important;
	background: var(--gea-antracite) !important;
	color: var(--gea-avorio) !important;
	font: 700 .82rem/1 var(--gea-titoli) !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background-color .25s var(--gea-morbida), color .25s var(--gea-morbida), box-shadow .25s var(--gea-morbida);
}
.gea-shop-griglia .wc-block-components-product-button__button:hover,
.gea-shop-griglia .wc-block-components-product-button__button:focus-visible {
	background: var(--gea-fluo-lime) !important;
	color: var(--gea-antracite) !important;
	box-shadow: 3px 3px 0 var(--gea-antracite);
}
.gea-shop-griglia .added_to_cart { position: relative; z-index: 2; display: inline-block; margin-top: .5rem; color: var(--gea-bosco); font-weight: 700; }

/* Disponibilità: nella griglia solo «Esaurito», come un'etichetta di carta (testo reale, non solo colore) */
.gea-shop-griglia .wc-block-components-product-stock-indicator { display: none; margin: 0; }
.gea-shop-griglia .wc-block-components-product-stock-indicator--out-of-stock {
	position: absolute;
	top: 1.4rem;
	left: -.4rem;
	z-index: 2;
	display: block;
	padding: .35em .8em;
	background: var(--gea-antracite);
	color: var(--gea-avorio);
	font: 750 .78rem/1 var(--gea-titoli);
	letter-spacing: .08em;
	text-transform: uppercase;
	rotate: -6deg;
	box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .6);
}
.gea-shop-griglia .outofstock .wc-block-components-product-image img { filter: saturate(.55); }

/* Paginazione */
.gea-shop-pagina .wp-block-query-pagination { margin-top: 2.5rem; gap: .5rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Scheda prodotto
   ----------------------------------------------------------------------- */
.gea-scheda-prodotto { padding-top: var(--wp--preset--spacing--40) !important; }
.gea-scheda-prodotto__testa .woocommerce-breadcrumb,
.gea-scheda-prodotto__testa .wc-block-breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; }
.gea-scheda-prodotto__colonne { gap: clamp(2rem, 1rem + 4vw, 5rem) !important; }
.gea-scheda-prodotto__galleria { position: relative; }
.gea-scheda-prodotto__galleria .woocommerce-product-gallery {
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
	padding: .8rem .8rem 1.2rem;
	background: var(--gea-carta);
	box-shadow: var(--gea-shop-ombra);
	rotate: -.8deg;
}
.gea-scheda-prodotto__galleria .woocommerce-product-gallery::before { /* nastro */
	content: "";
	position: absolute;
	top: -.75rem;
	left: 12%;
	z-index: 5;
	width: 32%;
	height: 1.5rem;
	rotate: -5deg;
	background: color-mix(in srgb, var(--gea-fluo-lime) 72%, transparent);
	pointer-events: none;
}
.gea-scheda-prodotto__galleria::after { /* corona disegnata */
	content: "";
	position: absolute;
	top: -1.6rem;
	right: -.6rem;
	width: clamp(48px, 6vw, 76px);
	aspect-ratio: 64 / 48;
	background: var(--gea-fluo-rosa);
	-webkit-mask: url(../svg/corona.svg) center / contain no-repeat;
	mask: url(../svg/corona.svg) center / contain no-repeat;
	rotate: 14deg;
	pointer-events: none;
}
.gea-scheda-prodotto__galleria .woocommerce-product-gallery__image img,
.gea-scheda-prodotto__galleria .flex-viewport img { border-radius: 2px; }
.gea-scheda-prodotto__galleria .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; margin-top: .75rem !important; }
.gea-scheda-prodotto__galleria .flex-control-thumbs li { width: auto !important; margin: 0 !important; }
.gea-scheda-prodotto__galleria .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 2px; opacity: .65; transition: opacity .2s; }
.gea-scheda-prodotto__galleria .flex-control-thumbs img.flex-active,
.gea-scheda-prodotto__galleria .flex-control-thumbs img:hover { opacity: 1; outline: 3px solid var(--gea-fluo-lime); outline-offset: -3px; }
.gea-scheda-prodotto__galleria .woocommerce-product-gallery__trigger { z-index: 6; }

.gea-scheda-prodotto__acquisto > * + * { margin-top: 1.1rem; }
.gea-scheda-prodotto__categoria a { color: inherit; text-decoration: none; }
.gea-scheda-prodotto__titolo { margin-top: .4rem !important; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem) !important; line-height: 1.02; text-transform: uppercase; font-variation-settings: "wdth" 82; }
.gea-scheda-prodotto__prezzo,
.gea-scheda-prodotto .wc-block-components-product-price {
	display: inline-block;
	padding: .05em .3em;
	color: var(--gea-antracite);
	font: 800 clamp(1.5rem, 1.3rem + .8vw, 2rem)/1.1 var(--gea-titoli);
	background-image: linear-gradient(transparent 55%, var(--gea-fluo-lime) 55%, var(--gea-fluo-lime) 90%, transparent 90%);
}
.gea-scheda-prodotto .wc-block-components-product-stock-indicator { font-weight: 700; }
.gea-scheda-prodotto .wc-block-components-product-stock-indicator--out-of-stock { color: #8A1F11; }
.gea-scheda-prodotto__riassunto { font-size: 1.08rem; }

/* Modulo «Aggiungi al carrello» nativo */
.gea-scheda-prodotto form.cart { margin-top: 1.6rem; }
.gea-scheda-prodotto table.variations { width: 100%; border: 0; border-collapse: collapse; margin-bottom: 1rem; }
.gea-scheda-prodotto table.variations th,
.gea-scheda-prodotto table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.gea-scheda-prodotto table.variations th label { display: block; margin: .9rem 0 .4rem; font: 750 .85rem/1 var(--gea-titoli); letter-spacing: .08em; text-transform: uppercase; }
.gea-scheda-prodotto table.variations select { width: 100%; max-width: 22rem; }
.gea-scheda-prodotto .reset_variations { display: inline-block; margin-top: .6rem; color: var(--gea-bosco); font-weight: 600; }
.gea-scheda-prodotto .woocommerce-variation-price { margin: .5rem 0; font-weight: 800; font-size: 1.25rem; }
.gea-scheda-prodotto .woocommerce-variation-availability { font-weight: 700; }
.gea-scheda-prodotto .woocommerce-variation-add-to-cart,
.gea-scheda-prodotto form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.gea-scheda-prodotto .quantity input.qty {
	width: 5.5rem;
	min-height: 3rem;
	padding: .4em .6em;
	border: 2px solid var(--gea-antracite);
	border-radius: 999px;
	background: var(--gea-avorio);
	font: 700 1.05rem/1 var(--gea-titoli);
	text-align: center;
}
.gea-scheda-prodotto .single_add_to_cart_button {
	min-height: 3rem;
	padding: .8em 1.8em !important;
	border: 2px solid var(--gea-antracite) !important;
	border-radius: 999px !important;
	background: var(--gea-antracite) !important;
	color: var(--gea-avorio) !important;
	font: 750 .95rem/1 var(--gea-titoli) !important;
	letter-spacing: .07em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s var(--gea-morbida), color .25s var(--gea-morbida), box-shadow .25s var(--gea-morbida), translate .3s var(--gea-elastica);
}
.gea-scheda-prodotto .single_add_to_cart_button:hover,
.gea-scheda-prodotto .single_add_to_cart_button:focus-visible { background: var(--gea-fluo-lime) !important; color: var(--gea-antracite) !important; box-shadow: 4px 4px 0 var(--gea-antracite); translate: -2px -2px; }
.gea-scheda-prodotto .single_add_to_cart_button.disabled,
.gea-scheda-prodotto .single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; translate: none; }
.gea-scheda-prodotto .stock.out-of-stock { color: #8A1F11; font-weight: 700; }

/* Fisarmoniche (tabella taglie) */
.gea-shop-fisarmonica { margin-top: 1.6rem; border-top: 2px dashed color-mix(in srgb, var(--gea-antracite) 30%, transparent); border-bottom: 2px dashed color-mix(in srgb, var(--gea-antracite) 30%, transparent); }
.gea-shop-fisarmonica > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3rem;
	padding: .6rem 0;
	cursor: pointer;
	list-style: none;
	font: 750 .95rem/1.2 var(--gea-titoli);
	letter-spacing: .07em;
	text-transform: uppercase;
}
.gea-shop-fisarmonica > summary::-webkit-details-marker { display: none; }
.gea-shop-fisarmonica > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: rotate .3s var(--gea-morbida); }
.gea-shop-fisarmonica[open] > summary::after { rotate: 45deg; }
.gea-shop-fisarmonica__contenuto { padding: .4rem 0 1.2rem; overflow-x: auto; }
.gea-shop-fisarmonica__contenuto img { max-width: 100%; height: auto; }

/* Descrizione e schede (nativo «Dettagli del prodotto») */
.gea-scheda-prodotto__dettagli { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem) !important; }
.gea-scheda-prodotto__dettagli .wc-tabs,
.gea-scheda-prodotto__dettagli .tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem !important; padding: 0 !important; border: 0 !important; list-style: none; }
.gea-scheda-prodotto__dettagli .wc-tabs li,
.gea-scheda-prodotto__dettagli .tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.gea-scheda-prodotto__dettagli .wc-tabs li::before,
.gea-scheda-prodotto__dettagli .wc-tabs li::after { display: none !important; }
.gea-scheda-prodotto__dettagli ul.tabs.wc-tabs li a,
.gea-scheda-prodotto__dettagli .wc-tabs li a {
	display: inline-flex !important;
	min-height: 2.75rem;
	align-items: center;
	padding: .5em 1.15em !important;
	border: 2px solid var(--gea-antracite) !important;
	border-radius: 999px !important;
	background: var(--gea-avorio) !important;
	color: var(--gea-antracite) !important;
	font: 700 .85rem/1.2 var(--gea-titoli) !important;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
}
.gea-scheda-prodotto__dettagli ul.tabs.wc-tabs li.active a,
.gea-scheda-prodotto__dettagli .wc-tabs li.active a { background: var(--gea-antracite) !important; color: var(--gea-avorio) !important; }
.gea-scheda-prodotto__dettagli ul.tabs.wc-tabs li:not(.active) a:hover,
.gea-scheda-prodotto__dettagli ul.tabs.wc-tabs li:not(.active) a:focus-visible { background: var(--gea-fluo-lime) !important; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel { max-width: 50rem; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel > h2:first-child { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
/* Foto nella descrizione (indossate): griglia di piccole polaroid */
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description { max-width: none; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > p,
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > h2 { max-width: 50rem; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description:has(> figure.wp-block-image) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > :not(figure) { flex: 1 1 100%; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > figure.wp-block-image {
	flex: 0 1 calc(25% - .75rem);
	min-width: 130px;
	margin: 0;
	padding: .45rem .45rem 1rem;
	background: var(--gea-carta);
	box-shadow: var(--gea-shop-ombra);
}
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > figure.wp-block-image:nth-of-type(odd) { rotate: -1.2deg; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > figure.wp-block-image:nth-of-type(even) { rotate: 1deg; }
.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > figure.wp-block-image img { width: 100%; height: auto; }
.gea-scheda-prodotto__dettagli table.shop_attributes { border-collapse: collapse; }
.gea-scheda-prodotto__dettagli table.shop_attributes th,
.gea-scheda-prodotto__dettagli table.shop_attributes td { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--gea-shop-bordo); text-align: left; }

/* Correlati: stessa griglia del catalogo */
.gea-scheda-prodotto__correlati { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.gea-scheda-prodotto__correlati h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.gea-scheda-prodotto__correlati .wc-block-product {
	padding: .65rem .65rem 1rem;
	background: var(--gea-carta);
	box-shadow: var(--gea-shop-ombra);
	rotate: -.6deg;
}
.gea-scheda-prodotto__correlati .wc-block-product:nth-child(2n) { rotate: .6deg; }
.gea-scheda-prodotto__correlati .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; }

/* --------------------------------------------------------------------------
   Carrello e pagamento (blocchi nativi): fiducia prima del decoro
   ----------------------------------------------------------------------- */
.gea-shop-titolo-pagina { padding-top: var(--wp--preset--spacing--50); margin-bottom: 1.5rem; }
.gea-shop-titolo-pagina .wp-block-post-title {
	position: relative;
	width: fit-content;
	margin-top: .4rem;
	font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4rem);
	text-transform: uppercase;
	font-variation-settings: "wdth" 82;
}
.gea-shop-titolo-pagina .wp-block-post-title::after { /* un solo segno lime */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.1em;
	height: .22em;
	background: var(--gea-fluo-lime);
	-webkit-mask: url(../svg/sottolineatura.svg) center / 100% 100% no-repeat;
	mask: url(../svg/sottolineatura.svg) center / 100% 100% no-repeat;
	z-index: -1;
}
.gea-shop-pagina .wc-block-cart,
.gea-shop-pagina .wc-block-checkout { margin-top: 0; }
.gea-shop-pagina .wc-block-components-sidebar .wp-block-woocommerce-cart-totals-block,
.gea-shop-pagina .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	padding: 1.25rem 1.25rem .5rem;
	border-radius: 18px;
	background: var(--gea-carta);
	box-shadow: var(--gea-shop-ombra);
}
.gea-shop-pagina .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.gea-shop-pagina .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 800; font-size: 1.2rem; }
.gea-shop-pagina .wc-block-components-button:not(.is-link),
.gea-shop-pagina .wc-block-cart__submit-button,
.gea-shop-pagina .wc-block-components-checkout-place-order-button {
	min-height: 3.1rem;
	border-radius: 999px !important;
	background: var(--gea-antracite) !important;
	color: var(--gea-avorio) !important;
	font: 750 .95rem/1 var(--gea-titoli) !important;
	letter-spacing: .07em;
	text-transform: uppercase;
	transition: background-color .25s var(--gea-morbida), color .25s var(--gea-morbida), box-shadow .25s var(--gea-morbida);
}
.gea-shop-pagina .wc-block-components-button:not(.is-link):hover,
.gea-shop-pagina .wc-block-components-button:not(.is-link):focus-visible { background: var(--gea-bosco) !important; box-shadow: 4px 4px 0 var(--gea-fluo-lime); }
/* Carrello e cassa (10/11/2026): «Procedi al pagamento» ed «Effettua ordine» con lo stesso stile dei pulsanti di Io Sono Randagia (griglia dello
   shop: antracite, bordo antracite, pillola, Bricolage 700 maiuscolo; hover/focus lime con ombra antracite);
   «Continua gli acquisti» è la versione chiara, secondaria, subito sotto. */
.gea-shop-pagina .wc-block-components-button.wc-block-cart__submit-button,
.gea-shop-pagina .wc-block-components-button.wc-block-components-checkout-place-order-button,
.gea-shop-pagina .gea-continua {
	box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: .6em 1.2em !important;
	border: 2px solid var(--gea-antracite) !important;
	border-radius: 999px !important;
	font: 700 .82rem/1.2 var(--gea-titoli) !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: background-color .25s var(--gea-morbida), color .25s var(--gea-morbida), box-shadow .25s var(--gea-morbida);
}
.gea-shop-pagina .wc-block-components-button.wc-block-cart__submit-button,
.gea-shop-pagina .wc-block-components-button.wc-block-components-checkout-place-order-button { background: var(--gea-antracite) !important; color: var(--gea-avorio) !important; }
.gea-shop-pagina .gea-continua { margin-top: .75rem; background: transparent; color: var(--gea-antracite); }
.gea-shop-pagina .wc-block-components-button.wc-block-cart__submit-button:not(.is-link):hover,
.gea-shop-pagina .wc-block-components-button.wc-block-cart__submit-button:not(.is-link):focus-visible,
.gea-shop-pagina .wc-block-components-button.wc-block-components-checkout-place-order-button:not(.is-link):hover,
.gea-shop-pagina .wc-block-components-button.wc-block-components-checkout-place-order-button:not(.is-link):focus-visible,
.gea-shop-pagina .gea-continua:hover,
.gea-shop-pagina .gea-continua:focus-visible {
	background: var(--gea-fluo-lime) !important;
	color: var(--gea-antracite) !important;
	box-shadow: 3px 3px 0 var(--gea-antracite) !important;
}
.gea-shop-pagina .gea-continua:focus-visible, .gea-shop-pagina .wc-block-components-button.wc-block-cart__submit-button:focus-visible, .gea-shop-pagina .wc-block-components-button.wc-block-components-checkout-place-order-button:focus-visible { outline: 3px solid var(--gea-bosco); outline-offset: 3px; }
.gea-shop-pagina .wc-block-components-text-input input,
.gea-shop-pagina .wc-block-components-text-input textarea,
.gea-shop-pagina .wc-blocks-components-select .wc-blocks-components-select__select,
.gea-shop-pagina .wc-block-components-combobox .wc-block-components-combobox-control input { border: 1.5px solid rgba(41, 42, 39, .55) !important; border-radius: 12px !important; background: #fff !important; }
.gea-shop-pagina .wc-block-components-text-input.has-error input { border-color: #8A1F11 !important; }
.gea-shop-pagina .wc-block-components-validation-error { color: #8A1F11; font-weight: 600; }
.gea-shop-pagina .wc-block-components-checkout-step__title,
.gea-shop-pagina .wc-block-cart__totals-title { font-family: var(--gea-titoli); font-weight: 800; letter-spacing: .02em; }
.gea-shop-pagina .wc-block-components-radio-control__option { border-radius: 12px; }
.gea-shop-pagina .wc-block-components-quantity-selector { border-radius: 999px; }
.gea-shop-pagina .wc-block-components-product-name { color: var(--gea-antracite); font-weight: 700; }

/* Venditore (GEA 2 ETS) */
.gea-shop-chiusura { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-top: 1.25rem; border-top: 2px dashed color-mix(in srgb, var(--gea-antracite) 25%, transparent); }
.gea-venditore { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin: 0; font-size: .92rem; color: var(--gea-antracite); }
.gea-venditore__etichetta {
	padding: .2em .65em;
	background: var(--gea-fluo-lime);
	color: var(--gea-antracite);
	font: 750 .75rem/1.3 var(--gea-titoli);
	letter-spacing: .08em;
	text-transform: uppercase;
	rotate: -2deg;
}

/* Carrello su schermi stretti (7/11/2026). WooCommerce, nelle versioni mobile/small/medium, mette ogni
   riga su una griglia a colonne FISSE (immagine 80 px + prodotto 132 px), con il prodotto esteso su due
   colonne e il totale in una quarta colonna automatica: 80 + 132 + 11 + 51 + 3 spazi da 16 px = ~322 px,
   più dei 284 px utili a 320 px → la tabella sporgeva di ~24 px e la pagina scorreva di lato.
   Qui la colonna del prodotto diventa elastica (minmax(0, 1fr)) e il totale ha una sua colonna su misura:
   nessuna informazione nascosta, nome che va a capo, selettore della quantità e importi interi. */
.wc-block-cart.wp-block-woocommerce-filled-cart-block:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 80px minmax(0, 1fr) auto; }
.wc-block-cart.wp-block-woocommerce-filled-cart-block:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2 / 3; min-width: 0; }
.wc-block-cart.wp-block-woocommerce-filled-cart-block:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 3; }
.wc-block-cart.wp-block-woocommerce-filled-cart-block:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { overflow-wrap: anywhere; }

/* Su telefono la barra Adotta/Dona/Shop non copre carrello e pagamento */
@media (max-width: 781.98px) {
	body.woocommerce-cart .gea-barra-azioni.gea-barra-azioni.gea-barra-azioni,
	body.woocommerce-checkout .gea-barra-azioni.gea-barra-azioni.gea-barra-azioni { display: none !important; }
	.gea-shop-apertura__colonne { gap: 2.5rem !important; }
	.gea-shop-griglia .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.gea-shop-griglia .wc-block-product { padding: .5rem .5rem .9rem; }
	.gea-shop-griglia .wc-block-components-product-button__button { padding: .55em .8em !important; font-size: .74rem !important; letter-spacing: .03em; }
	.gea-shop-barra { flex-direction: column; align-items: flex-start !important; }
	.gea-shop-filtri ul { gap: .45rem; }
	.gea-shop-filtri a { padding: .45em .95em; font-size: .78rem; }
	.gea-scheda-prodotto__galleria .woocommerce-product-gallery { rotate: none; } /* ruotata uscirebbe dallo schermo */
	.gea-scheda-prodotto__galleria::after { right: .2rem; }
	.gea-scheda-prodotto__dettagli .woocommerce-Tabs-panel--description > figure.wp-block-image { flex-basis: calc(50% - .5rem); }
}

/* --------------------------------------------------------------------------
   Conferma dell'ordine
   ----------------------------------------------------------------------- */
.gea-conferma { padding-top: var(--wp--preset--spacing--50) !important; }
.gea-conferma__grazie {
	position: relative;
	margin-bottom: 2rem;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--gea-carta);
	box-shadow: var(--gea-shop-ombra);
	clip-path: var(--gea-strappo);
}
.gea-conferma__stato,
.gea-conferma__grazie .wc-block-order-confirmation-status { font: 800 clamp(1.8rem, 1.3rem + 2.5vw, 3rem)/1.05 var(--gea-titoli) !important; text-transform: uppercase; font-variation-settings: "wdth" 82; }
.gea-conferma__grazie .wc-block-order-confirmation-status p { font-family: var(--wp--preset--font-family--testo, inherit); font-size: 1.05rem; font-weight: 400; text-transform: none; }
.gea-conferma__grazie::after { /* X lime disegnata, firma Io Sono Randagia */
	content: "";
	position: absolute;
	top: 1rem;
	right: 1.2rem;
	width: clamp(46px, 6vw, 80px);
	aspect-ratio: 1;
	background: var(--gea-fluo-lime);
	-webkit-mask: url(../svg/croce.svg) center / contain no-repeat;
	mask: url(../svg/croce.svg) center / contain no-repeat;
	filter: drop-shadow(0 2px 0 rgba(41, 42, 39, .35));
}
.gea-conferma .wc-block-order-confirmation-summary { padding: 1rem 1.25rem; border-radius: 16px; background: var(--gea-avorio-2, #F1EBDD); }
.gea-conferma__dopo { margin-top: 2.5rem; display: grid; gap: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
	.gea-shop-griglia .wc-block-product,
	.gea-shop-filtri a,
	.gea-shop-card__titolo a,
	.gea-scheda-prodotto .single_add_to_cart_button { transition: none !important; }
	.gea-shop-griglia .wc-block-product:hover,
	.gea-shop-griglia .wc-block-product:focus-within { translate: none; }
}

/* Donazione facoltativa sopra il carrello (11/11/2026, come sul sito attuale): riquadro distinto dalle righe dei prodotti */
.gea-dona-carrello {
	display: grid; gap: 1rem 2rem; align-items: center;
	margin-block: 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
	padding: clamp(1rem, .8rem + 1vw, 1.5rem);
	border: 2px dashed var(--gea-antracite); border-radius: 18px;
	background: var(--gea-carta, #FBF6EA);
}
@media (min-width: 782px) { .gea-dona-carrello { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); } }
.gea-dona-carrello__occhiello { margin: 0 0 .25rem; font: 800 .72rem/1.2 var(--gea-titoli); letter-spacing: .08em; text-transform: uppercase; color: var(--gea-bosco); }
.gea-dona-carrello__titolo { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.15; }
.gea-dona-carrello__descrizione { margin: .35rem 0 0; }
.gea-dona-carrello__modulo { margin: 0; }
.gea-dona-carrello__etichetta { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .9rem; }
.gea-dona-carrello__riga { display: flex; flex-wrap: wrap; gap: .6rem; }
.gea-dona-carrello__importo { flex: 1 1 9rem; min-width: 0; min-height: 2.75rem; padding: .4rem .8rem; border: 1.5px solid rgba(41, 42, 39, .55); border-radius: 12px; background: #fff; font: inherit; color: var(--gea-antracite); }
.gea-dona-carrello__importo:focus-visible { outline: 3px solid var(--gea-bosco); outline-offset: 2px; }
.gea-dona-carrello__quantita { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 2.75rem; border: 1.5px solid rgba(41, 42, 39, .55); border-radius: 999px; background: #fff; }
.gea-dona-carrello__quantita input { width: 2.6rem; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.gea-dona-carrello__quantita input::-webkit-inner-spin-button, .gea-dona-carrello__quantita input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gea-dona-carrello__quantita button { width: 2.4rem; height: 2.6rem; border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; color: var(--gea-antracite); border-radius: 999px; }
.gea-dona-carrello__quantita button:focus-visible, .gea-dona-carrello__quantita input:focus-visible { outline: 3px solid var(--gea-bosco); outline-offset: 1px; }
.gea-dona-carrello__pulsante {
	flex: 1 1 11rem; min-height: 2.75rem; padding: .6em 1.2em; cursor: pointer; white-space: nowrap;
	border: 2px solid var(--gea-antracite); border-radius: 999px; background: var(--gea-antracite); color: var(--gea-avorio);
	font: 700 .82rem/1.2 var(--gea-titoli); letter-spacing: .06em; text-transform: uppercase;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.gea-dona-carrello__pulsante:not(:disabled):hover, .gea-dona-carrello__pulsante:not(:disabled):focus-visible { background: var(--gea-fluo-lime); color: var(--gea-antracite); box-shadow: 3px 3px 0 var(--gea-antracite); }
.gea-dona-carrello__pulsante:focus-visible { outline: 3px solid var(--gea-bosco); outline-offset: 3px; }
.gea-dona-carrello__pulsante:disabled { opacity: .45; cursor: not-allowed; }
.gea-dona-carrello__stato { margin: .4rem 0 0; font-size: .9rem; }
.gea-dona-carrello__stato:empty { display: none; }
.gea-dona-carrello__grazie { display: none; margin: 0; font-weight: 700; color: var(--gea-bosco); }
.gea-dona-carrello.is-aggiunta .gea-dona-carrello__modulo { display: none; }
.gea-dona-carrello.is-aggiunta .gea-dona-carrello__grazie { display: block; }

/* Pagamento: niente frase «stai effettuando il check-out come ospite» (testo svuotato in gea-core/includes/shop.php) */
.gea-shop-pagina .wc-block-checkout__guest-checkout-notice { display: none; }

/* Carrello vuoto (13/11/2026): icona e titolo come prima di WooCommerce 11.3, che ha tolto il proprio stile.
   Icona disegnata per il sito (faccina con lacrima), colore del testo. */
.wc-block-cart__empty-cart__title { margin-block: clamp(1rem, .5rem + 2vw, 2rem) .75rem; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.3; }
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	content: ""; display: block; width: 5em; height: 5em; margin: 0 auto 1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 0a50 50 0 1 1 0 100A50 50 0 0 1 50 0Zm-16 30a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm32 0a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM33 52c-4 7-7 11-7 15a7 7 0 0 0 14 0c0-4-3-8-7-15Zm11 18a4 4 0 0 0 3 6c6-2 12-1 17 4a4 4 0 0 0 6-5c-7-8-17-9-26-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 0a50 50 0 1 1 0 100A50 50 0 0 1 50 0Zm-16 30a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm32 0a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM33 52c-4 7-7 11-7 15a7 7 0 0 0 14 0c0-4-3-8-7-15Zm11 18a4 4 0 0 0 3 6c6-2 12-1 17 4a4 4 0 0 0 6-5c-7-8-17-9-26-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gea-carrello-vuoto__link a { color: var(--gea-bosco); text-decoration: underline; text-underline-offset: .2em; }

/* Scheda prodotto: la disponibilità si mostra una sola volta, con l'indicatore sotto il prezzo (si aggiorna anche
   alla scelta della variante). Il modulo «Aggiungi al carrello» la ripeteva per i prodotti semplici (13/11/2026);
   quella delle singole varianti, dentro il modulo, resta. */
.gea-scheda-prodotto .wp-block-add-to-cart-form > p.stock { display: none; }

/* Scheda prodotto: una galleria con una sola foto (es. Felpa Donna e Felpa Uomo) non si allarga a tutta la pagina.
   Le gallerie di WordPress fanno crescere l'ultima foto per riempire la riga; qui resta a misura normale, centrata.
   !important perché la regola di WordPress usa :not(#individual-image), più specifica (13/11/2026). */
.gea-scheda-prodotto .wp-block-gallery.has-nested-images:has(> figure.wp-block-image:only-of-type) { justify-content: center; }
.gea-scheda-prodotto .wp-block-gallery.has-nested-images > figure.wp-block-image:only-of-type { flex-grow: 0 !important; width: min(100%, 26rem) !important; }
