/* Castaldi · negozio: schede in griglia (Loop Item), archivio con i filtri di JetSmartFilters, pagina prodotto,
   carrello, cassa e conto. Misure del prototipo di Simone (categoria.html, prodotto.html, checkout.html, account.html). */

/* ---------- scheda prodotto nella griglia ---------- */
body .e-con.prod { position: relative; --padding-top: 14px; --padding-right: 14px; --padding-bottom: 14px; --padding-left: 14px; background: var(--bianco); border: 1px solid var(--bordo); border-radius: 24px; height: 100%; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
body .e-con.prod:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(34,34,34,.1); }
body .prod > .prod-img { aspect-ratio: 1 / 1; border-radius: 18px; background: var(--grigio); overflow: hidden; display: flex; align-items: center; justify-content: center; }
body .prod > .prod-img a, body .prod > .prod-img img { display: block; width: 100%; height: 100%; }
body .prod > .prod-img img { object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
body .e-con.prod:hover > .prod-img img { transform: scale(1.06); }
body .prod > .prod-etichette-box { position: absolute; top: 24px; left: 24px; z-index: 2; pointer-events: none; }
body .prod > .prod-etichette-box .prod-etichette { position: static; }
body .prod > .prod-cuore-box { position: absolute; top: 22px; right: 22px; z-index: 3; }
body .prod > .prod-cuore-box .prod-cuore { position: static; }
body .prod .prod-corpo.e-con { --padding-left: 4px; --padding-right: 4px; }
body .prod .prod-titolo .elementor-heading-title { font-family: var(--f-titoli); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
body .prod .prod-titolo .elementor-heading-title a { color: var(--ink); }
body .prod .prod-titolo .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; z-index: 1; }
body .prod .prod-piede.e-con { position: relative; z-index: 2; margin-top: auto; --padding-left: 4px; --padding-right: 4px; --padding-bottom: 4px; }
body .griglia-castaldi .elementor-loop-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 16px !important; }
body .griglia-castaldi .e-loop-item { height: 100%; }
body .griglia-castaldi .e-loop-item > .elementor-element { height: 100%; }
body .pagina-prodotto .griglia-castaldi .elementor-loop-container { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; }
body .e-loop-nothing-found-message, body .jsf-no-results { padding: 24px; border-radius: 20px; background: var(--grigio); color: var(--ink); }

/* ---------- archivio: percorso, sottocategorie, colonne ---------- */
body .chips-categorie { display: flex; flex-wrap: wrap; gap: 8px; }
body .chips-categorie .chip { text-decoration: none; }
body .chips-categorie .chip[aria-current="page"] { background: var(--blu); color: var(--bianco); transform: none; }
body .titolo-archivio { margin: 0; }
body .layout-shop.e-con { margin-top: 32px; }
body .layout-shop > .filtri-shop.e-con { --width: auto; flex: 1 1 260px; max-width: 300px; min-width: 0; position: sticky; top: 16px; }
body .layout-shop > .contenuto-shop.e-con { --width: auto; flex: 999 1 560px; min-width: 0; }
body .filtri-testa.e-con { margin-bottom: 4px; }
body .barra-risultati.e-con { margin-bottom: 0; }
body .barra-sinistra.e-con { --width: auto; }
body .conteggio-risultati { margin: 0; }
body .ar-fondo > .ar-vetrina.e-con { --width: auto; flex: 1.4 1 420px; min-width: 0; }
body .ar-fondo > .ar-cerchi.e-con { --width: auto; flex: 1 1 320px; min-width: 0; align-items: flex-start; }

/* filtri di JetSmartFilters con l'aspetto del prototipo */
body .filtro-castaldi { border-bottom: 1px solid var(--bordo); padding-block: 14px; }
body .filtro-castaldi .jet-filter-label { margin: 0 0 10px; font-family: var(--f-testo); font-size: 17px; font-weight: 700; color: var(--ink); }
body .filtro-castaldi .jet-checkboxes-list__row { margin: 0 0 8px; }
body .filtro-castaldi .jet-checkboxes-list__item { display: flex; align-items: center; gap: 12px; cursor: pointer; }
body .filtro-castaldi .jet-checkboxes-list__decorator { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--linea); background: var(--bianco); }
body .filtro-castaldi .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator { background: var(--blu); border-color: var(--blu); }
body .filtro-castaldi .jet-checkboxes-list__checked-icon { color: var(--bianco); fill: var(--bianco); }
body .filtro-castaldi .jet-checkboxes-list__label { font-size: 15px; color: var(--testo); }
body .filtro-castaldi .jet-filters-counter { color: #8A8A8A; font-size: 13px; }
body .filtro-castaldi .jet-filter-items-search__input { width: 100%; min-height: 44px; border: 1px solid var(--linea); border-radius: 999px; padding: 0 16px; margin-bottom: 10px; font-size: 15px; }
body .filtro-castaldi .jet-filter-items-moreless__toggle { margin-top: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--blu); cursor: pointer; }
body .filtro-castaldi .jet-range__slider__track { background: var(--grigio); }
body .filtro-castaldi .jet-range__slider__track__range { background: var(--blu); }
body .filtro-castaldi .jet-range__slider__input::-webkit-slider-thumb { background: var(--blu); border: 3px solid var(--bianco); box-shadow: 0 0 0 1px var(--blu); }
body .filtro-castaldi .jet-range__inputs__min, body .filtro-castaldi .jet-range__inputs__max { min-height: 44px; border: 1px solid var(--linea); border-radius: 14px; padding: 0 12px; font-size: 15px; }
body .filtro-castaldi .jet-range__values { margin-top: 8px; font-size: 14px; color: var(--testo); }
body .ordina-castaldi select, body .ordina-castaldi .jet-sorting-select { min-height: 44px; border: 1px solid var(--linea); border-radius: 999px; padding: 0 44px 0 18px; background: var(--bianco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; font: inherit; font-size: 15px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
body .ordina-castaldi .jet-sorting-label { display: none; }
body .paginazione-castaldi .jet-filters-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
body .paginazione-castaldi .jet-filters-pagination__item { margin: 0; }
body .paginazione-castaldi .jet-filters-pagination__link { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linea); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); background: var(--bianco); }
body .paginazione-castaldi .jet-filters-pagination__current .jet-filters-pagination__link { background: var(--ink); border-color: var(--ink); color: var(--bianco); }
body .paginazione-castaldi .jet-filters-pagination__dots { min-width: 30px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- pagina prodotto ---------- */
body .pagina-prodotto .sp-alto.e-con { margin-top: 28px; gap: clamp(28px, 4vw, 64px); }
body .sp-alto > .sp-galleria.e-con { --width: auto; flex: 1.1 1 460px; min-width: 0; }
body .sp-alto > .sp-info.e-con { --width: auto; flex: 1 1 400px; min-width: 0; }
body .occhiello-prodotto .prod-epoca { font-size: 14px; }
body .sp-info .titolo-l .elementor-heading-title, body .sp-info .product_title { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
body .prezzo--grande, body .prezzo--grande .woocommerce-Price-amount { font-size: clamp(36px, 3.4vw, 46px); }
body .prodotto-breve, body .prodotto-breve p { font-size: 18px; max-width: 60ch; }
body .prodotto-breve p:last-child { margin-bottom: 0; }
body .sp-azioni > .aggiungi-castaldi { flex: 1 1 240px; min-width: 0; }
body .aggiungi-castaldi form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
body .aggiungi-castaldi .quantity { display: inline-flex; }
body .aggiungi-castaldi .quantity .qty { width: 84px; min-height: 52px; border: 1px solid var(--linea); border-radius: 999px; text-align: center; font: inherit; font-weight: 700; color: var(--ink); }
body .aggiungi-castaldi .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--blu) !important; color: var(--bianco) !important; font-family: var(--f-testo); font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .2s; }
body .aggiungi-castaldi .single_add_to_cart_button:hover { transform: translateY(-2px); }
body .aggiungi-castaldi .stock { display: none; }
body .sp-info .stock.out-of-stock { color: var(--ink); font-weight: 700; }
body .galleria-castaldi .woocommerce-product-gallery { position: relative; margin: 0; }
body .galleria-castaldi .woocommerce-product-gallery__wrapper { margin: 0; }
body .galleria-castaldi .woocommerce-product-gallery__image { border-radius: 28px; background: #E9E9E9; overflow: hidden; }
body .galleria-castaldi .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
body .galleria-castaldi .flex-viewport { border-radius: 28px; }
body .galleria-castaldi .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
body .galleria-castaldi .flex-control-thumbs li { width: 96px !important; height: 72px; margin: 0 !important; }
body .galleria-castaldi .flex-control-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 14px; border: 2px solid transparent; background: #E9E9E9; opacity: 1 !important; cursor: pointer; }
body .galleria-castaldi .flex-control-thumbs img.flex-active { border-color: var(--blu); }
body .galleria-castaldi .woocommerce-product-gallery__trigger { position: absolute; top: 16px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: var(--bianco); display: flex; align-items: center; justify-content: center; text-indent: -9999px; overflow: hidden; }
body .galleria-castaldi .woocommerce-product-gallery__trigger::before { content: ""; width: 18px; height: 18px; text-indent: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
body .galleria-castaldi .onsale { display: none; }

/* schede della pagina prodotto a pillole */
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; border: 0; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs::before, body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li::before, body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li::after { display: none !important; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linea); background: var(--bianco); color: var(--ink); font-weight: 700; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li.active { background: none; border: 0; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li.active a { background: var(--ink); border-color: var(--ink); color: var(--bianco); }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper ul.tabs li a:hover { border-color: var(--ink); }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel.panel { max-width: 900px; margin: 0; padding: clamp(22px, 3vw, 40px); background: var(--bianco); border: 1px solid var(--bordo); border-radius: 28px; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel p { max-width: 68ch; margin: 0 0 14px; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel p:last-child { margin-bottom: 0; }
body .schede-castaldi table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 15px; }
body .schede-castaldi table.shop_attributes th, body .schede-castaldi table.shop_attributes td { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--bordo); text-align: left; background: none; font-style: normal; }
body .schede-castaldi table.shop_attributes th { width: 200px; color: var(--ink); font-weight: 700; }
body .schede-castaldi table.shop_attributes td p { margin: 0; padding: 0; }
body.single-product .schede-castaldi .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel a { color: var(--blu); font-weight: 700; }

/* ---------- avvisi di WooCommerce ---------- */
body .woocommerce-notices-wrapper:empty { display: none; }
body .woocommerce-message, body .woocommerce-info, body .woocommerce-error { margin: 0 0 16px; padding: 16px 18px; border: 0; border-radius: 16px; background: rgba(62,80,180,.08); color: var(--ink); list-style: none; }
body .woocommerce-error { background: rgba(200,40,40,.08); }
body .woocommerce-message::before, body .woocommerce-info::before, body .woocommerce-error::before { display: none; }
body .woocommerce-message .button, body .woocommerce-info .button { float: right; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bianco); display: inline-flex; align-items: center; font-weight: 700; }

@media (max-width: 860px) {
  body .layout-shop > .filtri-shop.e-con { position: fixed; max-width: none; }
}
