/* Legea Hub - WooCommerce: griglie prodotti, categoria, scheda prodotto */
:root{--lh-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='m4 12 5 5L20 6'/%3E%3C/svg%3E");--lh-bag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round' d='M5 8h14l1 13H4L5 8Zm3.500 0V6.500a3.500 3.500 0 0 1 7 0V8'/%3E%3C/svg%3E");--lh-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E")}

/* Messaggi */
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 25px;padding:14px 20px;background:#f6f6f6;border-left:4px solid var(--lh-dark);color:var(--lh-dark);font-size:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.woocommerce-error{border-left-color:var(--lh-accent);display:block}
.woocommerce-message .button,.woocommerce-info .button{order:2;padding:8px 18px}
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce .woocommerce-notices-wrapper{max-width:1440px;margin:0 auto;width:100%}

/* Valutazione a stelle */
.star-rating{position:relative;display:inline-block;font-size:12px;line-height:1.2;letter-spacing:3px;white-space:nowrap;overflow:hidden;font-family:Arial,sans-serif}
.star-rating::before{content:"\2605\2605\2605\2605\2605";color:#e1e1e1}
.star-rating span{position:absolute;left:0;top:0;height:100%;overflow:hidden;text-indent:-999em}
.star-rating span::before{content:"\2605\2605\2605\2605\2605";position:absolute;left:0;top:0;text-indent:0;color:#ffb400}

/* Prezzi ed etichette */
.price{line-height:24px;font-size:14px;color:var(--lh-dark);font-weight:700}
.price del{color:var(--lh-text);font-weight:400;margin-right:6px}
.price ins{text-decoration:none}
.vgwc-label{color:#fff;font-size:10px;padding:0 10px;text-transform:uppercase;display:block;line-height:22px;font-weight:700;text-align:center}
.products-thumb .product-lable{position:absolute;top:10px;left:10px;right:10px;z-index:1;display:flex;justify-content:space-between;pointer-events:none}
.products-thumb .vgwc-label.hot{margin-left:auto}
.hot{background:#ff6f00}
.vgwc-label.onsale{background:var(--lh-accent)}
.vgwc-label.outofstock{background:#8d8d8d}

/* ---------- Griglia prodotti ---------- */
ul.products,ul.products-list{list-style:none;margin:0;padding:0}
ul.products.products-list.grid{display:flex;flex-wrap:wrap;margin:0 -15px}
ul.products.products-list.grid>li.product{margin-bottom:5px}
.products-list.grid .product-wapper{position:relative;padding:0;margin:0 0 25px}
.products-list.grid .product-wapper .products-thumb{position:relative;margin:0;overflow:hidden;display:block;background:#f7f7f7}
.products-list.grid .product-wapper .products-thumb .woocommerce-LoopProduct-link{display:block}
.products-list.grid .product-wapper .products-thumb img{display:block;width:100%;height:auto}
.products-list.grid .product-wapper .product-button{position:absolute;display:flex;width:100%;justify-content:center;right:0;bottom:20px;z-index:9}
.products-list.grid .product-wapper .product-button>*{margin:0 5px;opacity:0;visibility:hidden;transform:translateY(10px);transition:.3s}
.products-list.grid .product-wapper:hover .product-button>*,.products-list.grid .product-wapper:focus-within .product-button>*{opacity:1;visibility:visible;transform:none}
.products-list.grid .product-wapper .product-button .button{display:inline-block;background:#fff;width:50px;height:50px;line-height:50px;padding:0;font-size:0;letter-spacing:0;white-space:nowrap;overflow:hidden;position:relative;color:var(--lh-dark)}
.products-list.grid .product-wapper .product-button .button::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;-webkit-mask:var(--lh-bag) center/contain no-repeat;mask:var(--lh-bag) center/contain no-repeat}
.products-list.grid .product-wapper .product-button .button.product_type_variable::before,.products-list.grid .product-wapper .product-button .button.product_type_grouped::before,.products-list.grid .product-wapper .product-button .button.product_type_external::before{-webkit-mask-image:var(--lh-arrow);mask-image:var(--lh-arrow)}
.products-list.grid .product-wapper .product-button .button:hover{background:var(--lh-accent);color:#fff}
.products-list.grid .product-wapper .product-button .button.loading{opacity:.6}
.products-list.grid .product-wapper .product-button .button.added{display:none}
.products-list.grid .product-wapper .product-button .added_to_cart{display:inline-flex;align-items:center;background:var(--lh-dark);color:#fff;height:50px;padding:0 16px;font-family:var(--lh-head);font-size:14px;letter-spacing:1px;text-transform:uppercase;opacity:1;visibility:visible;transform:none}
.products-list.grid .product-wapper .products-content{margin-top:20px}
.products-list.grid .product-wapper .products-content .rating{margin-bottom:3px}
.products-list.grid .product-wapper .products-content h3.product-title{font-size:12px;margin:0 0 6px;display:block;text-transform:uppercase;font-family:Arial,Helvetica,sans-serif;font-weight:500;line-height:1.3}
.products-list.grid .product-wapper .products-content h3.product-title a{color:var(--lh-dark)}
.products-list.grid .product-wapper .products-content h3.product-title a:hover{color:var(--lh-accent)}
.products-list.grid .product-wapper .products-content .price{line-height:100%;display:inline-block}
@media (max-width:767px){.products-list.grid .product-wapper .product-button{display:none}}

/* ---------- Categoria / negozio (disposizione di base; i CSS personalizzati esistenti la rifiniscono) ---------- */
.main-archive-product{margin-bottom:60px}
.main-archive-product>[class*=" col-"],.main-archive-product>[class^="col-"]{display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;align-items:start}
.main-archive-product .bwp-top-bar.top{grid-column:1;margin:0}
.main-archive-product .content-products-list{grid-column:2;position:relative;min-width:0}
.main-archive-product .bwp-top-bar.bottom{grid-column:2;clear:both;text-align:center;margin-top:30px}
.main-archive-product .bwp-top-bar.top:empty{display:none}
.main-archive-product .bwp-top-bar.top:empty+.content-products-list,.main-archive-product .bwp-top-bar.top:empty~.bwp-top-bar.bottom{grid-column:1/-1}
.woocommerce-no-products-found,.lgh-no-products{font-size:16px;color:var(--lh-dark);padding:30px 0}
@media (max-width:991px){.main-archive-product>[class*=" col-"],.main-archive-product>[class^="col-"]{display:block}}
.woocommerce-pagination{text-align:center}
.woocommerce-pagination ul{display:inline-flex;list-style:none;margin:0;padding:0;gap:6px}
.woocommerce-pagination ul li a,.woocommerce-pagination ul li span{display:inline-block;min-width:40px;height:40px;line-height:38px;padding:0 8px;border:1px solid #e1e1e1;color:var(--lh-dark);font-weight:500}
.woocommerce-pagination ul li span.current,.woocommerce-pagination ul li a:hover{background:var(--lh-dark);border-color:var(--lh-dark);color:#fff}
.lh-infinite .woocommerce-pagination ul{display:none}
.lh-load-more{display:none;margin:10px auto;width:34px;height:34px;border:3px solid #e1e1e1;border-top-color:var(--lh-dark);border-radius:50%;animation:lh-spin .8s linear infinite}
.lh-infinite.lh-loading .lh-load-more{display:block}
@keyframes lh-spin{to{transform:rotate(360deg)}}

/* ---------- Scheda prodotto (nuovo disegno) ---------- */
.lh-pdp-content{padding:0}
.lh-pdp{max-width:1440px;margin:0 auto;padding:24px 30px 0}
.lh-pdp-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:56px;align-items:start}
.lh-pdp-gallery,.lh-pdp-info{min-width:0}
.lh-pdp-gallery{align-self:stretch}

/* Galleria */
.lh-gallery .woocommerce-product-gallery__trigger{display:none!important}
.lh-gallery{margin:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:start;opacity:1!important;position:sticky;top:110px}
.lh-gallery[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.lh-gallery-thumbs{display:flex;flex-direction:column;gap:10px;max-height:min(78vh,760px);overflow-y:auto;scrollbar-width:none}
.lh-gallery-thumbs::-webkit-scrollbar{display:none}
.lh-gallery-thumb{padding:0;border:1px solid transparent;background:#f6f6f6;aspect-ratio:1/1;width:100%;overflow:hidden;cursor:pointer;opacity:.65;transition:opacity .2s,border-color .2s;flex:none}
.lh-gallery-thumb:hover{opacity:1;background:#f6f6f6}
.lh-gallery-thumb.is-active{opacity:1;border-color:var(--lh-dark)}
.lh-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.lh-gallery-stage{position:relative;min-width:0;background:#f6f6f6}
.lh-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lh-gallery-track::-webkit-scrollbar{display:none}
.lh-slide{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;aspect-ratio:1/1;max-height:min(78vh,760px);display:flex;align-items:center;justify-content:center;overflow:hidden}
.lh-slide>a{display:flex;width:100%;height:100%;align-items:center;justify-content:center;cursor:zoom-in}
.lh-slide img{display:block;width:100%;height:100%;object-fit:contain}
.lh-gallery-nav{position:absolute;top:50%;width:42px;height:42px;margin-top:-21px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--lh-dark);font-size:20px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.12);opacity:0;transition:opacity .2s,background .2s;z-index:2}
.lh-gallery-stage:hover .lh-gallery-nav,.lh-gallery-nav:focus-visible{opacity:1}
.lh-gallery-nav:hover{background:var(--lh-dark);color:#fff}
.lh-gallery-prev{left:14px}.lh-gallery-prev .lh-icon{transform:rotate(90deg)}
.lh-gallery-next{right:14px}.lh-gallery-next .lh-icon{transform:rotate(-90deg)}
.lh-gallery-count{position:absolute;right:14px;bottom:14px;background:rgba(255,255,255,.9);color:var(--lh-dark);font-size:12px;line-height:1;padding:7px 10px;border-radius:20px;z-index:2;font-weight:500}
.lh-gallery-labels{position:absolute;top:14px;left:14px;display:flex;gap:6px;z-index:2}

/* Colonna informazioni */
.lh-pdp-info .summary{float:none;width:100%;margin:0}
.breadcrumb-noheading .container{padding:0;max-width:none}
.breadcrumb-noheading .breadcrumb{font-size:12px;line-height:20px;color:var(--lh-dark);justify-content:flex-start;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap}
.breadcrumb-noheading .breadcrumb a{color:var(--lh-text)}
.breadcrumb-noheading .breadcrumb a:hover{color:var(--lh-accent)}
.single-product .lh-pdp-info .product_title{margin:0 0 10px;font-size:clamp(28px,2.6vw,42px);line-height:1.05;letter-spacing:.5px;color:var(--lh-dark);word-break:break-word;text-transform:none}
.single-product .woocommerce-product-rating{margin:0 0 12px;display:flex;align-items:center;gap:8px;font-size:12px}
.lh-pdp-price{margin:0 0 22px}
.lh-pdp-price .price{margin:0;font-family:Arial,Helvetica,sans-serif;font-size:24px;line-height:1.2;font-weight:700;color:var(--lh-dark)}
.lh-pdp-price .price del{font-size:17px}
.lh-pdp-price .price ins{color:var(--lh-accent)}
.lh-pdp-desc{margin:0 0 24px;font-size:14px;line-height:1.65;color:#6f6f6f}
.lh-pdp-desc p{margin:0 0 8px}
.lh-pdp-desc ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
.lh-pdp-desc ul li{position:relative;padding-left:22px}
.lh-pdp-desc ul li::before{content:"";position:absolute;left:0;top:.42em;width:12px;height:12px;background:var(--lh-dark);-webkit-mask:var(--lh-check) center/contain no-repeat;mask:var(--lh-check) center/contain no-repeat}

/* Guida alle taglie */
.lh-size-guide{display:flex;justify-content:flex-end;margin:0 0 -30px;position:relative;z-index:3}
.lh-size-open{background:none;border:0;padding:4px 0;font:500 13px/1.4 Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:none;color:var(--lh-dark);display:inline-flex;align-items:center;gap:7px}
.lh-size-open span{text-decoration:underline;text-underline-offset:3px}
.lh-size-open .lh-icon{font-size:20px}
.lh-size-open:hover{background:none;color:var(--lh-accent)}
.lh-size-modal[hidden]{display:none}
.lh-size-modal{position:fixed;inset:0;z-index:100000;background:rgba(34,34,34,.55);display:flex;align-items:center;justify-content:center;padding:20px}
.lh-size-box{position:relative;background:#fff;max-width:min(900px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:14px}
.lh-size-box img{display:block;max-width:100%;height:auto}
.lh-size-close{position:sticky;top:0;float:right;width:36px;height:36px;padding:0;border:1px solid #e1e1e1;border-radius:50%;background:#fff;color:var(--lh-dark);font-size:16px;display:flex;align-items:center;justify-content:center;margin:0 0 -36px auto;z-index:2}
.lh-size-close:hover{background:var(--lh-dark);color:#fff}

/* Varianti */
.lh-pdp-info form.cart{margin:0;padding:0}
.lh-pdp-info .variations_form table.variations{border:0;margin:0;width:100%;display:block}
.lh-pdp-info .variations_form table.variations tbody{display:block}
.lh-pdp-info .variations_form table.variations tr{display:block;margin:0 0 18px}
.lh-pdp-info .variations_form table.variations th,.lh-pdp-info .variations_form table.variations td{display:block;width:100%;border:0;padding:0;text-align:left;background:none;margin:0!important}
.lh-pdp-info .variations_form table.variations label{display:inline-block;margin:0 0 8px;font:700 12px/1.4 Arial,Helvetica,sans-serif;letter-spacing:1.2px;text-transform:uppercase;color:var(--lh-dark)}
.lh-pdp-info .variations_form table.variations select{width:100%;height:48px;padding:0 14px;border:1px solid #cfcfcf;color:var(--lh-dark);background:#fff;-webkit-appearance:auto;appearance:auto}
.lh-pdp-info .custom-swatches-wrapper{display:flex;flex-direction:column;gap:8px}
.lh-pdp-info .custom-swatch-selected-name{order:-1;min-height:0;font:400 13px/1.4 Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:0;color:#6f6f6f}
.lh-pdp-info .custom-swatch-selected-name:empty{display:none}
.lh-pdp-info .custom-swatches{display:flex;flex-wrap:wrap;gap:8px}
.lh-pdp-info .custom-swatch{transition:border-color .15s,box-shadow .15s,background .15s,color .15s}
.lh-pdp-info .custom-swatch:hover{transform:none}
.lh-pdp-info .custom-swatch-label{min-width:52px;height:46px;line-height:44px;padding:0 14px;border:1px solid #cfcfcf;border-radius:0;background:#fff;color:var(--lh-dark);font-size:14px;font-weight:500}
.lh-pdp-info .custom-swatch-label:hover{border-color:var(--lh-dark)}
.lh-pdp-info .custom-swatch-label.selected{background:var(--lh-dark);border-color:var(--lh-dark);color:#fff}
.lh-pdp-info .custom-swatch-color{width:38px;height:38px;border-radius:50%;border:1px solid #cfcfcf;box-shadow:inset 0 0 0 3px #fff}
.lh-pdp-info .custom-swatch-color:hover{border-color:var(--lh-dark)}
.lh-pdp-info .custom-swatch-color.selected{border:2px solid var(--lh-dark)}
.lh-pdp-info .custom-swatch.is-disabled{opacity:.3;position:relative}
.lh-pdp-info .custom-swatch-label.is-disabled{text-decoration:line-through;background:#f6f6f6}
.lh-pdp-info .reset_variations{display:inline-block;margin-top:10px;font-size:12px;color:#6f6f6f;text-decoration:underline;text-underline-offset:3px}
.lh-pdp-info .reset_variations:hover{color:var(--lh-accent)}
.lh-pdp-info .woocommerce-variation-price{margin:0 0 14px}
.lh-pdp-info .woocommerce-variation-price .price{font-size:22px;font-family:Arial,Helvetica,sans-serif}
.lh-pdp-info .woocommerce-variation-description p{margin:0 0 10px}
.lh-pdp-info .stock,.lh-pdp-info .woocommerce-variation-availability{margin:0 0 12px;font-size:13px;color:#2e7d32;font-weight:500}
.lh-pdp-info .stock.out-of-stock{color:var(--lh-accent)}

/* Quantità + aggiungi al carrello */
.lh-pdp-info .woocommerce-variation-add-to-cart,.lh-pdp-info form.cart:not(.variations_form):not(.grouped_form){display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 10px;align-items:stretch;margin:6px 0 0}
.lh-pdp-info .woocommerce-variation-add-to-cart>*,.lh-pdp-info form.cart:not(.variations_form):not(.grouped_form)>*{grid-column:1/-1;min-width:0}
.lh-pdp-info .woocommerce-variation-add-to-cart>.quantity:not(.hidden),.lh-pdp-info form.cart:not(.variations_form):not(.grouped_form)>.quantity:not(.hidden){grid-column:1}
.lh-pdp-info .woocommerce-variation-add-to-cart>.quantity:not(.hidden)+.single_add_to_cart_button,.lh-pdp-info form.cart:not(.variations_form):not(.grouped_form)>.quantity:not(.hidden)+.single_add_to_cart_button{grid-column:2}
.lh-pdp-info .wc-stripe-product-checkout-container{margin-top:10px}
.lh-pdp-info .quantity{position:relative;display:inline-flex;align-items:stretch;height:56px;border:1px solid #cfcfcf;background:#fff;margin:0;flex:none}
.lh-pdp-info .quantity.hidden{display:none}
.lh-pdp-info .quantity button.plus{order:3}
.lh-pdp-info .quantity input.qty{order:2;width:52px;height:100%;border:0;padding:0;text-align:center;font-size:16px;font-weight:700;color:var(--lh-dark);background:transparent;-moz-appearance:textfield;appearance:textfield}
.lh-pdp-info .quantity input.qty::-webkit-inner-spin-button,.lh-pdp-info .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.lh-pdp-info .quantity button.minus{order:1}
.lh-pdp-info .quantity button.plus,.lh-pdp-info .quantity button.minus{width:44px;height:100%;padding:0;border:0;background:transparent;color:var(--lh-dark);font:400 20px/1 Arial,sans-serif;letter-spacing:0}
.lh-pdp-info .quantity button.plus:hover,.lh-pdp-info .quantity button.minus:hover{background:#f3f3f3;color:var(--lh-dark)}
.lh-pdp-info .single_add_to_cart_button.button{flex:1 1 220px;height:56px;line-height:56px;padding:0 24px;margin:0;background:var(--lh-dark);color:#fff;font-family:var(--lh-head);font-size:19px;letter-spacing:1.5px;text-align:center;white-space:nowrap;transition:background .2s,opacity .2s}
.lh-pdp-info .single_add_to_cart_button.button:hover{background:var(--lh-accent);color:#fff}
.lh-pdp-info .single_add_to_cart_button.button.disabled,.lh-pdp-info .single_add_to_cart_button.button:disabled{background:#bdbdbd;cursor:not-allowed}
.lh-pdp-info .single_add_to_cart_button.button.loading{opacity:.7}
.lh-pdp-info .legea-garanzia-note{margin:18px 0 0!important}

/* Sezioni apribili */
.lh-acc-group{margin:28px 0 0;border-top:1px solid var(--lh-line)}
.lh-acc{border-bottom:1px solid var(--lh-line)}
.lh-acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;font-family:var(--lh-head);font-size:18px;letter-spacing:1px;color:var(--lh-dark);user-select:none}
.lh-acc>summary::-webkit-details-marker{display:none}
.lh-acc>summary .lh-icon{font-size:18px;transition:transform .2s;flex:none}
.lh-acc[open]>summary .lh-icon{transform:rotate(180deg)}
.lh-acc>summary:hover{color:var(--lh-accent)}
.lh-acc-body{padding:0 0 20px;font-size:14px;line-height:1.75;color:#6f6f6f}
.lh-acc-body>:first-child{margin-top:0}
.lh-acc-body h2{font-size:18px;margin:0 0 10px}
.lh-acc-body ul{padding-left:18px;margin:0 0 12px}
.lh-acc-body table.shop_attributes{border:0;margin:0;width:100%}
.lh-acc-body table.shop_attributes th,.lh-acc-body table.shop_attributes td{padding:9px 12px 9px 0;border-bottom:1px solid #f0f0f0;text-align:left;vertical-align:top;background:none}
.lh-acc-body table.shop_attributes tr:last-child th,.lh-acc-body table.shop_attributes tr:last-child td{border-bottom:0}
.lh-acc-body table.shop_attributes th{width:38%;font-weight:700;color:var(--lh-dark);text-transform:capitalize}
.lh-acc-body table.shop_attributes p{margin:0}
.lh-acc-body #reviews ol.commentlist{list-style:none;padding:0}

/* Codice, categorie, condivisione */
.lh-pdp-info .product_meta{margin:22px 0 0;font-size:12px;line-height:1.7;color:var(--lh-text)}
.lh-pdp-info .product_meta>span{display:block;margin:0 0 4px}
.lh-pdp-info .product_meta a,.lh-pdp-info .product_meta .sku{color:#6f6f6f}
.lh-pdp-info .product_meta a:hover{color:var(--lh-accent)}
.product_meta .wcml_currency_switcher{display:none!important}
.lh-share{display:flex;align-items:center;gap:14px;margin:16px 0 0;font-size:12px;color:var(--lh-text)}
.lh-share .social-share{display:flex;gap:6px}
.lh-share .social-share a{width:34px;height:34px;border:1px solid var(--lh-line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14px;color:var(--lh-dark);transition:.2s}
.lh-share .social-share a:hover{background:var(--lh-dark);border-color:var(--lh-dark);color:#fff}

/* Correlati */
.related,.upsells{position:relative;margin:80px auto 0;max-width:1440px;padding:0 30px;width:100%}
.related .title-block,.upsells>h2{text-align:left;margin:0 0 28px}
.related .title-block h2,.upsells>h2{font-size:30px;letter-spacing:.5px;color:var(--lh-dark);margin:0}
.related ul.products.products-list.grid,.upsells ul.products.products-list.grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px;margin:0}
.related ul.products.products-list.grid>li,.upsells ul.products.products-list.grid>li{width:100%;max-width:none;flex:none;padding:0}
.related .products-list.grid .product-wapper,.upsells .products-list.grid .product-wapper{margin-bottom:0}

/* Barra fissa con il pulsante */
.main-single-product .sticky-product{position:fixed;width:100%;bottom:0;left:0;background:#fff;z-index:9980;padding:10px 0;box-shadow:0 -6px 30px rgba(0,0,0,.08);transform:translateY(110%);transition:transform .25s ease;display:block}
.main-single-product .sticky-product.sticky{transform:translateY(0)}
.main-single-product .sticky-product .content{max-width:1440px;padding:0 30px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:16px}
.main-single-product .sticky-product .content-product{display:flex;align-items:center;min-width:0}
.main-single-product .sticky-product .item-thumb img{width:52px;height:52px;object-fit:cover;display:block;background:#f6f6f6}
.main-single-product .sticky-product .content-bottom{padding-left:14px;min-width:0}
.main-single-product .sticky-product .item-title{font-family:var(--lh-head);font-size:17px;letter-spacing:.5px;color:var(--lh-dark);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main-single-product .sticky-product .price{font-size:14px;font-weight:700;color:var(--lh-dark);line-height:1.4}
.main-single-product .sticky-product .select-cart-option{font-family:var(--lh-head);font-size:16px;letter-spacing:1.2px;text-transform:uppercase;line-height:46px;height:46px;color:#fff;background:var(--lh-dark);border:0;padding:0 26px;white-space:nowrap}
.main-single-product .sticky-product .select-cart-option:hover{background:var(--lh-accent);color:#fff}

@media (max-width:1199px){.lh-pdp-main{gap:32px;grid-template-columns:minmax(0,1fr) minmax(340px,.9fr)}}
@media (max-width:991px){
.lh-pdp{padding:0 0 0}
.lh-pdp-main{grid-template-columns:1fr;gap:22px}
.lh-gallery{position:static;grid-template-columns:1fr}
.lh-gallery-thumbs{display:none}
.lh-slide{max-height:none}
.lh-gallery-nav{display:none}
.lh-pdp-info{padding:0 15px}
.lh-pdp-desc ul{grid-template-columns:1fr}
.related,.upsells{margin-top:50px;padding:0 15px}
.related ul.products.products-list.grid,.upsells ul.products.products-list.grid{display:flex!important;grid-template-columns:none!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:6px;flex-wrap:nowrap;scrollbar-width:none}
.related ul.products.products-list.grid::-webkit-scrollbar,.upsells ul.products.products-list.grid::-webkit-scrollbar{display:none}
.related ul.products.products-list.grid>li,.upsells ul.products.products-list.grid>li{flex:0 0 62%;max-width:62%;scroll-snap-align:start}
.main-single-product .sticky-product{bottom:calc(46px + env(safe-area-inset-bottom));padding:8px 0;z-index:9989}
.main-single-product .sticky-product .content{padding:0 15px}
.main-single-product .sticky-product .item-thumb{display:none}
.main-single-product .sticky-product .content-bottom{padding-left:0}
.main-single-product .sticky-product .item-title{font-size:15px;max-width:44vw}
.main-single-product .sticky-product .select-cart-option{line-height:42px;height:42px;padding:0 18px;font-size:15px}
.single-product #bwp-footer{padding-bottom:110px}
}
@media (max-width:480px){
.lh-pdp-info .woocommerce-variation-add-to-cart,.lh-pdp-info form.cart:not(.variations_form):not(.grouped_form){gap:8px}
.lh-pdp-info .single_add_to_cart_button.button{flex:1 1 150px;padding:0 12px;font-size:18px}
}
@media (max-width:575px){.main-archive-product ul.products.products-list.grid>li.product{flex:0 0 50%;max-width:50%}.main-archive-product ul.products.products-list.grid{margin:0 -8px}.main-archive-product ul.products.products-list.grid>li.product{padding:0 8px}}

/* Personalizzazione (nome, numero) */
.lh-custom{margin:4px 0 18px;padding:16px 16px 6px;background:#f6f6f6}
.lh-custom-title{margin:0 0 12px;font:700 12px/1.4 Arial,Helvetica,sans-serif;letter-spacing:1.2px;text-transform:uppercase;color:var(--lh-dark)}
.lh-custom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.lh-custom-title{grid-column:1/-1}
.lh-custom-field{margin:0 0 12px;min-width:0}
.lh-custom-field.lh-custom-text:only-of-type,.lh-custom-field:last-child:nth-child(even){grid-column:1/-1}
.lh-custom-field label{display:block;margin:0 0 6px;font-size:13px;font-weight:500;color:var(--lh-dark)}
.lh-custom-field .required{color:var(--lh-accent);text-decoration:none;border:0}
.lh-custom-price{font-weight:700;color:var(--lh-dark);margin-left:4px}
.lh-custom-opt{font-weight:400;color:var(--lh-text)}
.lh-custom-field input{width:100%;height:48px;padding:0 14px;border:1px solid #cfcfcf;background:#fff;color:var(--lh-dark);font-size:16px;text-transform:uppercase}
.lh-custom-field input:focus{border-color:var(--lh-dark);box-shadow:0 0 0 1px var(--lh-dark)}
.lh-custom-number input{text-align:center;font-weight:700;letter-spacing:2px}
.lh-custom-hint{display:block;margin-top:4px;font-size:11px;color:var(--lh-text)}
@media (max-width:480px){.lh-custom{grid-template-columns:1fr}}
/* Telefono: due prodotti per riga anche sugli schermi stretti */
@media (max-width:575px){.legea-hub .main-archive-product .content-products-list>ul.products.products-list.row.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 10px!important}.legea-hub .content-products-list .product-title{min-height:0;font-size:12px}}
