/* ==========================================================================
   SHS Italia – Shop (template Elementor "Archivio prodotti" + Loop Item)
   Restyling solo CSS: struttura, filtri e query del template restano invariati.
   ========================================================================== */

/* Testata: le prime due sezioni del template (titolo + ricerca) → fascia blu notte */
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(-n+2) {
	background-color: var(--shs-ink) !important;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) !important;
	background-size: 48px 48px !important; background-position: -1px -1px !important;
	margin: 0 !important;
}
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) { padding: 56px 0 8px !important; }
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(2) { padding: 8px 0 48px !important; }
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(-n+2) > .elementor-container { max-width: 1200px; }
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) .elementor-heading-title {
	font-weight: 700; font-size: clamp(34px, 4.6vw, 60px);
	letter-spacing: -.04em; text-transform: none; color: #fff;
}
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) .elementor-icon-list-text,
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) .elementor-icon-list-icon i { color: rgba(255, 255, 255, .8); font-size: 15px; }
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) .elementor-icon-list-icon svg { fill: rgba(255, 255, 255, .8); }
body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) a:hover .elementor-icon-list-text { color: #fff; }

/* Ricerca */
body.shs [data-elementor-type="product-archive"] .elementor-widget-search .e-search-form { max-width: 720px; margin: 0 auto; }
body.shs [data-elementor-type="product-archive"] .elementor-widget-search .e-search-input-wrapper { flex: 1; }
body.shs [data-elementor-type="product-archive"] .elementor-widget-search .e-search-input {
	height: 56px; padding: 0 18px; border: 0 !important; border-radius: var(--shs-radius) 0 0 10px !important;
	background: #fff !important; font-size: 16px; color: var(--shs-text);
}
body.shs [data-elementor-type="product-archive"] .elementor-widget-search .e-search-submit {
	height: 56px; padding: 0 24px; border: 0; border-radius: 0 var(--shs-radius-sm) var(--shs-radius-sm) 0 !important;
	background: var(--shs-navy) !important; color: #fff !important;
	font-weight: 700; font-size: 15px;
}
body.shs [data-elementor-type="product-archive"] .elementor-widget-search .e-search-submit:hover { background: var(--shs-navy-2) !important; }

/* Area prodotti: sidebar filtri + griglia */
body.shs [data-elementor-type="product-archive"] > .e-con.e-parent { padding-top: 48px; padding-bottom: 96px; }
body.shs [data-elementor-type="product-archive"] > .e-con.e-parent > .e-con-inner { max-width: 1200px; gap: 48px; }

body.shs :is([data-elementor-type="product-archive"], .elementor-widget-taxonomy-filter) .elementor-widget-heading .elementor-heading-title, body.shs .e-con:has(> .elementor-widget-taxonomy-filter) > .elementor-widget-heading .elementor-heading-title {
	font-weight: 700; font-size: 16px; color: var(--shs-ink); text-transform: none;
}
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .e-filter,
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .shs-filter-links {
	display: flex; flex-direction: column; align-items: stretch; gap: 2px;
	padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--shs-line);
}
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .e-filter-item , body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .shs-filter-item {
	position: relative;
	display: flex; align-items: center; justify-content: flex-start !important; gap: 12px;
	width: 100%; min-height: 38px; padding: 0 10px 0 38px; margin: 0;
	border: 0; border-radius: var(--shs-radius-sm);
	background: transparent; color: var(--shs-text);
	font-size: 15px; font-weight: 400; text-align: left; text-transform: none;
	cursor: pointer;
}
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .e-filter-item::before , body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .shs-filter-item::before {
	content: ""; position: absolute; left: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
	border: 1px solid var(--shs-line-strong); border-radius: 2px; background: #fff; box-sizing: border-box;
}
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .e-filter-item:hover , body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .shs-filter-item:hover { background: var(--shs-bg); color: var(--shs-navy); }
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .e-filter-item[aria-pressed="true"] , body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .shs-filter-item[aria-pressed="true"] {
	background: var(--shs-bg); color: var(--shs-navy); font-weight: 600;
}
body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .e-filter-item[aria-pressed="true"]::before , body.shs .elementor-widget-taxonomy-filter.elementor-widget.elementor-widget .shs-filter-item[aria-pressed="true"]::before {
	border-color: var(--shs-navy);
	background: var(--shs-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Card prodotto (Loop Item) */
body.shs .elementor-widget-loop-grid .e-loop-item {
	height: 100%;
	background: #fff; border: 1px solid var(--shs-line); border-radius: var(--shs-radius);
	overflow: hidden; transition: border-color .2s;
}
body.shs .elementor-widget-loop-grid .e-loop-item:hover { border-color: var(--shs-navy); }
body.shs .elementor-widget-loop-grid .e-loop-item > .elementor-section,
body.shs .elementor-widget-loop-grid .e-loop-item > .e-con { height: 100%; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-wrap { padding: 0 0 20px !important; align-content: flex-start; }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget { margin-bottom: 0 !important; }

body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-theme-post-featured-image {
	margin-bottom: 18px !important; border-bottom: 1px solid var(--shs-line);
}
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-theme-post-featured-image a { display: block; }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-theme-post-featured-image img {
	display: block; width: 100%; height: 240px; padding: 20px; box-sizing: border-box;
	object-fit: contain; background: #fff; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-title { padding: 0 20px 10px; }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-title .elementor-heading-title,
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-title .elementor-heading-title a {
	font-weight: 600; font-size: 17px; line-height: 1.3;
	letter-spacing: -.015em; text-transform: none; color: var(--shs-ink);
}
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price { padding: 0 20px; text-align: left; }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price .price { justify-content: flex-start; text-align: left; }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price .price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0;
	font-size: 22px; font-weight: 700; color: var(--shs-ink);
}
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price .price ins { order: 1; text-decoration: none; color: var(--shs-ink); }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price .price del { order: 2; font-size: 15px; font-weight: 400; color: var(--shs-muted); }
body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price .price .woocommerce-price-suffix { order: 3; width: 100%; font-size: 12px; font-weight: 400; color: var(--shs-muted); }

body.shs .elementor-widget-loop-grid .elementor-loop-container { gap: 24px; }
body.shs .elementor-widget-loop-grid .elementor-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
body.shs .elementor-widget-loop-grid .elementor-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0;
	border-radius: var(--shs-radius-sm); box-shadow: inset 0 0 0 1px var(--shs-line);
	font-weight: 700; font-size: 15px; color: var(--shs-text);
}
body.shs .elementor-widget-loop-grid .elementor-pagination .page-numbers.current,
body.shs .elementor-widget-loop-grid .elementor-pagination a.page-numbers:hover { background: var(--shs-navy); color: #fff; box-shadow: none; }

@media (max-width: 767px) {
	body.shs [data-elementor-type="product-archive"] > .elementor-section:nth-child(1) { padding-top: 36px !important; }
	body.shs [data-elementor-type="product-archive"] > .e-con.e-parent { padding-top: 28px; padding-bottom: 56px; }
	body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-theme-post-featured-image img { height: 170px; padding: 12px; }
	body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-title { padding: 0 14px 8px; }
	body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price { padding: 0 14px; }
	body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-title .elementor-heading-title { font-size: 16px; }
	body.shs .elementor-widget-loop-grid .e-loop-item .elementor-widget-woocommerce-product-price .price { font-size: 19px; }
}

/* ==========================================================================
   Scheda prodotto (template Elementor "Prodotto singolo")
   ========================================================================== */
body.shs [data-elementor-type="product"] { padding: 40px 0 24px; }
body.shs [data-elementor-type="product"] > .elementor-section > .elementor-container,
body.shs [data-elementor-type="product"] > .e-con > .e-con-inner { max-width: 1200px; }
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-title .product_title {
	font-weight: 700; font-size: clamp(32px, 3.4vw, 46px);
	line-height: 1.05; letter-spacing: -.02em; text-transform: none; color: var(--shs-ink);
}
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-short-description { font-size: 17px; line-height: 1.6; color: var(--shs-muted); }
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-price .price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
	padding: 8px 0 4px; margin: 0; border: 0;
	font-weight: 700; font-size: 42px !important; letter-spacing: -.02em; color: var(--shs-ink);
}
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-price .price ins { order: 1; text-decoration: none; color: var(--shs-ink); }
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-price .price del { order: 2; font-size: 20px; font-weight: 400; letter-spacing: 0; color: var(--shs-muted); }
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-price .price .woocommerce-price-suffix { order: 3; width: 100%; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--shs-muted); }
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button {
	background: var(--shs-navy) !important; color: #fff !important; border-radius: var(--shs-radius) !important;
	font-weight: 700; font-size: 17px;
}
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button:hover { background: var(--shs-ink) !important; }
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs li a { }
/* Una sola linea sotto i tab: niente bordo sul pannello */
body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-data-tabs .woocommerce-Tabs-panel { border: 0 !important; padding-left: 0; padding-right: 0; }

@media (max-width: 767px) {
	body.shs [data-elementor-type="product"] { padding-top: 16px; }
	body.shs [data-elementor-type="product"] .elementor-widget-woocommerce-product-price .price { font-size: 34px !important; }
}

/* Correlati aggiunti dal tema sotto il template Elementor */
body.shs .shs-related-wrap { padding-bottom: 96px; }
body.shs .shs-related-wrap .related.products,
body.shs .shs-related-wrap .up-sells { margin-top: 48px; }

body.shs .shs-filter-item { text-decoration: none !important; }

/* ==========================================================================
   Vetrine prodotto nelle pagine interne: sezione interna con almeno due colonne
   "immagine + titolo" → stessa grafica delle card dello shop
   ========================================================================== */
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap:has(> .elementor-widget-image:first-child + .elementor-widget-heading:last-child) {
	height: 100%; padding: 0 0 20px !important; align-content: flex-start;
	background: #fff; border: 1px solid var(--shs-line); border-radius: var(--shs-radius);
	overflow: hidden; transition: border-color .2s;
}
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap:has(> .elementor-widget-image:first-child + .elementor-widget-heading:last-child):hover { border-color: var(--shs-navy); }
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child:has(+ .elementor-widget-heading:last-child) {
	margin: 0 0 18px !important; border-bottom: 1px solid var(--shs-line); text-align: center;
}
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child:has(+ .elementor-widget-heading:last-child) img {
	display: block; width: 100%; height: 240px; padding: 20px; box-sizing: border-box;
	object-fit: contain; background: #fff; border-radius: 0 !important; box-shadow: none !important;
}
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child { padding: 0 20px; margin: 0 !important; }
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child .elementor-heading-title {
	font-weight: 600 !important;
	font-size: 17px !important; line-height: 1.3 !important; letter-spacing: -.015em !important;
	text-transform: none !important; color: var(--shs-ink) !important; text-align: left;
}
body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child::after {
	content: "Prezzo su richiesta"; display: block; margin-top: 12px;
	font-weight: 700; font-size: 16px; color: var(--shs-navy);
}
@media (min-width: 768px) {
	body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) { gap: 24px; }
	body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column { flex: 1 1 0; width: auto; min-width: 0; }
}
@media (max-width: 767px) {
	body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap:has(> .elementor-widget-image:first-child + .elementor-widget-heading:last-child) { margin-bottom: 16px; }
	body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child:has(+ .elementor-widget-heading:last-child) img { height: 190px; }
	body.shs:not(.home) .elementor-inner-section > .elementor-container:has(> .elementor-column ~ .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child) > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:first-child + .elementor-widget-heading:last-child .elementor-heading-title { font-size: 17px !important; }
}
