/* Nexus – funzioni negozio (v0.7): etichette, azioni sulla scheda, griglia, anteprima, carrello laterale, campioni,
   desideri e confronto, lista d'attesa, spedizione gratuita, consegna, regali, acquistati insieme, barra fissa, account. */

/* ---------- Scheda prodotto in griglia ---------- */
.woocommerce ul.products li.product { position: relative; }
.nx-cards-border .woocommerce ul.products li.product, .nx-cards-border.woocommerce ul.products li.product, body.nx-cards-border ul.products li.product { box-shadow: none !important; border: 1px solid var(--nx-line); }
body.nx-cards-flat ul.products li.product { box-shadow: none !important; background: transparent !important; padding: 0 0 1rem !important; }
body ul.products li.product .woocommerce-loop-product__link { position: relative; display: block; }
body ul.products li.product .nx-hover-img { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
@media (hover: hover) { body ul.products li.product:hover .nx-hover-img { opacity: 1; } }
.nx-loop-meta { display: flex; flex-wrap: wrap; gap: .2rem .6rem; margin: 0 0 .25rem; font-size: .78rem; letter-spacing: .02em; color: var(--nx-muted); }
.nx-loop-brand { font-weight: 700; color: var(--nx-fg); }
body ul.products li.product .price { color: var(--nx-price, var(--nx-muted)); }
@media (max-width: 760px) {
  body.nx-mcols-1 .woocommerce ul.products, body.nx-mcols-1.woocommerce ul.products, body.nx-mcols-1.woocommerce-page ul.products { grid-template-columns: 1fr !important; }
  body.nx-mcols-2 .woocommerce ul.products, body.nx-mcols-2.woocommerce ul.products, body.nx-mcols-2.woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .7rem; }
  body.nx-mcols-2 ul.products li.product { padding: .6rem .6rem .9rem !important; }
  body.nx-mcols-2 ul.products li.product .woocommerce-loop-product__title { font-size: .98rem; }
  body.nx-mcols-2 ul.products li.product .button { font-size: .85rem; padding-inline: .6rem; }
}

/* Pulsante «aggiungi» solo icona */
body.nx-atc-icon ul.products li.product .button { position: absolute; right: 1.6rem; top: calc(1rem + min(22vw, 240px) - 3.4rem); width: 2.8rem; min-height: 2.8rem; height: 2.8rem; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
body.nx-atc-icon ul.products li.product .added_to_cart { display: none; }
.nx-atc-icon .nx-atc-icon { display: inline-flex; }
body:not(.nx-atc-icon) .nx-atc-icon { display: none; }

/* Azioni in alto a destra: desideri, confronto, anteprima */
.nx-pacts { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3; display: flex; flex-direction: column; gap: .35rem; }
.nx-pact { display: inline-flex; width: 2.35rem; height: 2.35rem; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--nx-surface); color: var(--nx-fg); box-shadow: 0 6px 18px -8px rgb(8 12 50 / .45); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.nx-pact svg { width: 18px; height: 18px; }
.nx-pact:hover { transform: scale(1.08); color: var(--nx-primary); }
.nx-pact[aria-pressed="true"] { background: var(--nx-primary); color: var(--nx-on-primary); }
.nx-pact[data-nx-list="wish"][aria-pressed="true"] svg { fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .nx-pacts .nx-pact { opacity: 0; transform: translateX(6px); }
  li.product:hover .nx-pacts .nx-pact, li.product:focus-within .nx-pacts .nx-pact, .nx-pacts .nx-pact[aria-pressed="true"] { opacity: 1; transform: none; }
}
body.nx-cards-flat .nx-pacts { top: .6rem; right: .6rem; }

/* ---------- Etichette ---------- */
.nx-labels { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; pointer-events: none; }
body.nx-cards-flat .nx-labels { top: .6rem; left: .6rem; }
.nx-label { display: inline-block; padding: .32rem .7rem; border-radius: 99px; font: 700 .75rem/1 var(--nx-font-text); letter-spacing: .02em; background: var(--nx-fg); color: var(--nx-bg); }
.nx-labels-rect .nx-label { border-radius: 4px; }
.nx-label--sale { background: var(--nx-sale, var(--nx-accent)); color: var(--nx-on-accent); }
.nx-label--new { background: var(--nx-new, var(--nx-primary)); color: var(--nx-on-primary); }
.nx-label--hot { background: #c2410c; color: #fff; }
.nx-label--out { background: color-mix(in oklab, var(--nx-fg) 70%, var(--nx-bg)); color: var(--nx-bg); }
.nx-label--custom { background: var(--nx-surface); color: var(--nx-fg); box-shadow: inset 0 0 0 1px var(--nx-line); }
.woocommerce div.product { position: relative; }
.woocommerce div.product > .nx-labels { top: 1rem; left: 1rem; }

/* ---------- Scheda prodotto ---------- */
.nx-brand-tag { display: inline-flex; align-items: center; margin: 0 0 .6rem; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--nx-muted); text-decoration: none; }
.nx-brand-tag img { max-height: 38px; width: auto; }
.nx-list-actions { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1.2rem; }
.nx-list-btn--text { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem 0; border: 0; background: none; color: var(--nx-fg); font: 600 .92rem var(--nx-font-text); cursor: pointer; }
.nx-list-btn--text svg { width: 20px; height: 20px; }
.nx-list-btn--text[aria-pressed="true"] { color: var(--nx-primary); }
.nx-list-btn--text[data-nx-list="wish"][aria-pressed="true"] svg { fill: currentColor; }
.nx-buynow { margin-left: 0 !important; }
.nx-sizeguide-btn { display: inline-block; margin: 0 0 1rem; font-size: .92rem; }
body.nx-sticky-summary.woocommerce div.product .summary { position: sticky; top: 6rem; align-self: start; }
@media (min-width: 900px) {
  body.nx-thumbs-left .woocommerce-product-gallery { display: grid; grid-template-columns: 84px 1fr; gap: .8rem; }
  body.nx-thumbs-left .woocommerce-product-gallery .flex-viewport { grid-column: 2; grid-row: 1; }
  body.nx-thumbs-left .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: .6rem; margin: 0 !important; }
  body.nx-thumbs-left .woocommerce-product-gallery .flex-control-thumbs li { width: 100% !important; margin: 0 !important; }
  body.nx-thumbs-left .woocommerce-product-gallery__trigger { left: calc(84px + 1.4rem); right: auto; }
}
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 10px; opacity: .6; transition: opacity .2s; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }

/* Schede a fisarmonica */
.woocommerce-tabs.nx-accordion ul.tabs { display: none !important; }
.nx-accordion__head { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1.1rem .2rem; border: 0; border-bottom: 1px solid var(--nx-line); background: none; color: var(--nx-fg); font: 650 1.1rem var(--nx-font-display); text-align: left; cursor: pointer; }
.nx-accordion__head::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.nx-accordion__head[aria-expanded="true"]::after { transform: rotate(45deg); }
.woocommerce-tabs.nx-accordion .panel { padding: 1rem .2rem 1.4rem; margin: 0 !important; }

/* ---------- Anteprima rapida ---------- */
.nx-qv-layer .nx-popup__box { width: min(100%, 980px); padding: clamp(1rem, 3vw, 2rem); }
.nx-qv { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nx-qv__media { position: relative; }
.nx-qv__media .nx-labels { top: 1rem; left: 1rem; }
.nx-qv__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .6rem; border-radius: calc(var(--nx-radius) * .7); scrollbar-width: thin; }
.nx-qv__img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; border-radius: calc(var(--nx-radius) * .7); }
.nx-qv__summary .product_title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: .4rem; }
.nx-qv__summary form.cart { margin: 1.2rem 0; }
.nx-qv__more { display: inline-block; margin-top: .6rem; font-weight: 600; }
.nx-qv__loading { padding: 3rem 0; text-align: center; color: var(--nx-muted); }
@media (max-width: 760px) { .nx-qv { grid-template-columns: 1fr; } }

/* ---------- Carrello laterale ---------- */
.nx-cartdrawer { position: fixed; inset: 0; z-index: 130; }
.nx-cartdrawer[hidden] { display: none; }
.nx-cartdrawer__backdrop { position: absolute; inset: 0; background: rgb(8 12 30 / .5); animation: nx-fade .2s ease; }
.nx-cartdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(94vw, 420px); display: flex; flex-direction: column; background: var(--nx-bg); color: var(--nx-fg); box-shadow: -20px 0 50px -20px rgb(8 12 50 / .45); animation: nx-slide .25s cubic-bezier(.2, .8, .2, 1); }
.nx-cartdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--nx-line); }
.nx-cartdrawer__head h2 { margin: 0; font-size: 1.3rem; }
.nx-cartdrawer__close { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 1px solid var(--nx-line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.nx-cartdrawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem 1.4rem; }
.nx-cartdrawer .nx-fsb { margin: 1rem 1.3rem 0; }
.nx-cartdrawer .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.nx-cartdrawer ul.cart_list { margin: 0; padding: 0; list-style: none; }
.nx-cartdrawer ul.cart_list li { position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: .9rem; padding: .9rem 2rem .9rem 0; border-bottom: 1px solid var(--nx-line); }
.nx-cartdrawer ul.cart_list li.is-busy { opacity: .4; }
.nx-cartdrawer ul.cart_list li a:not(.remove) { grid-row: 1 / span 2; display: contents; color: inherit; text-decoration: none; font-weight: 600; }
.nx-cartdrawer ul.cart_list li img { grid-row: 1 / span 2; grid-column: 1; width: 64px !important; height: 64px; object-fit: cover; border-radius: 10px; margin: 0 !important; float: none !important; }
.nx-cartdrawer ul.cart_list li .quantity { grid-column: 2; font-size: .9rem; color: var(--nx-muted); }
.nx-cartdrawer ul.cart_list li a.remove { position: absolute; right: 0; top: .9rem; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--nx-muted) !important; background: var(--nx-tint); text-decoration: none; font-size: 1.1rem; line-height: 1; }
.nx-cartdrawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: auto 0 0; padding: 1.1rem 0 .8rem; border-top: 0; font-size: 1.05rem; }
.nx-cartdrawer .woocommerce-mini-cart__buttons { display: grid; gap: .6rem; margin: 0; }
.nx-cartdrawer .woocommerce-mini-cart__buttons .button { width: 100%; margin: 0 !important; text-align: center; }
.nx-cartdrawer .woocommerce-mini-cart__buttons .checkout { background: var(--nx-primary); color: var(--nx-on-primary); }
.nx-cartdrawer .woocommerce-mini-cart__empty-message { padding: 2rem 0; text-align: center; color: var(--nx-muted); }

/* Avvisi brevi */
.nx-toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 160; max-width: min(92vw, 420px); padding: .8rem 1.2rem; border-radius: 12px; background: var(--nx-fg); color: var(--nx-bg); font-weight: 600; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .5); transform: translate(-50%, 150%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.nx-toast.is-on { transform: translate(-50%, 0); }
.nx-toast.is-error { background: #b42318; color: #fff; }
.nx-has-mnav .nx-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
.single_add_to_cart_button.loading, [data-nx-fbt-add].loading { opacity: .6; pointer-events: none; }

/* ---------- Campioni ---------- */
select[data-nx-swatch-select] { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.woocommerce div.product form.cart .variations td.value { position: relative; }
.nx-swatches { display: flex; flex-wrap: wrap; gap: .45rem; padding: .2rem 0; }
.nx-swatch { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-surface); color: var(--nx-fg); font: 600 .9rem var(--nx-font-text); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.nx-swatch:hover { border-color: var(--nx-fg); }
.nx-swatch[aria-checked="true"], .nx-swatch.is-on { border-color: var(--nx-fg); box-shadow: 0 0 0 2px var(--nx-fg) inset; }
.nx-swatch.is-off { opacity: .35; text-decoration: line-through; }
.nx-swatch--color, .nx-swatch--image { width: 2.4rem; min-width: 2.4rem; height: 2.4rem; padding: 3px; border-radius: 50%; }
.nx-swatch-square .nx-swatch--color, .nx-swatch-square .nx-swatch--image { border-radius: 8px; }
.nx-swatch--color i, .nx-swatch--image img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.nx-swatch--color[aria-checked="true"], .nx-swatch--image[aria-checked="true"], .nx-swatch--color.is-on, .nx-swatch--image.is-on { box-shadow: 0 0 0 2px var(--nx-surface) inset, 0 0 0 1px var(--nx-fg); }
.nx-swatch--color.is-off::after, .nx-swatch--image.is-off::after { content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; background: var(--nx-fg); transform: rotate(-45deg); }
.nx-swatch--sm { width: 1.5rem; min-width: 1.5rem; height: 1.5rem; padding: 2px; font-size: .62rem; }
.nx-swatch--sm.nx-swatch--label { width: auto; padding: 0 .4rem; border-radius: 6px; }
.nx-loop-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .1rem 0 .6rem; }
.nx-loop-swatches__more { font-size: .78rem; color: var(--nx-muted); }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; padding: 0; border: 0; }
.woocommerce div.product form.cart .variations th label { display: block; margin: .9rem 0 .4rem; font-weight: 700; }
.woocommerce div.product form.cart .variations tr { display: block; }
.nx-noclear .reset_variations { display: none !important; }

/* ---------- Desideri e confronto ---------- */
.nx-listpage__empty { padding: 3rem 1rem; text-align: center; }
.nx-listpage__empty p { color: var(--nx-muted); max-width: 46ch; margin-inline: auto; }
.nx-listpage__loading { padding: 3rem 0; text-align: center; color: var(--nx-muted); }
.nx-compare { overflow-x: auto; margin: 1rem 0 2rem; border-radius: var(--nx-radius); background: var(--nx-surface); box-shadow: var(--nx-shadow); }
.nx-compare__table { width: 100%; min-width: 640px; border-collapse: collapse; }
.nx-compare__table th, .nx-compare__table td { padding: 1rem; border-bottom: 1px solid var(--nx-line); text-align: left; vertical-align: top; }
.nx-compare__table tbody th { width: 160px; font-size: .88rem; color: var(--nx-muted); font-weight: 600; }
.nx-compare__table thead th { position: relative; font-weight: 400; }
.nx-compare__table thead a { display: block; color: inherit; text-decoration: none; }
.nx-compare__table thead img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: .6rem; }
.nx-compare__table thead strong { display: block; margin-bottom: .6rem; font-family: var(--nx-font-display); font-size: 1.05rem; }
.nx-compare__del { position: absolute; top: .6rem; right: .6rem; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; background: var(--nx-tint); color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.nx-instock { color: #15803d; font-weight: 600; }
.nx-outstock { color: #b42318; font-weight: 600; }

/* ---------- Lista d'attesa ---------- */
.nx-waitlist { margin: 1rem 0 1.4rem; padding: 1.1rem 1.2rem; border-radius: calc(var(--nx-radius) * .7); background: var(--nx-tint); }
.nx-waitlist[hidden] { display: none; }
.nx-waitlist__title { margin: 0 0 .7rem; }
.nx-waitlist__row { display: flex; gap: .5rem; }
.nx-waitlist__row[hidden] { display: none; }
.nx-waitlist__row input[type="email"] { flex: 1; min-width: 0; min-height: 2.9rem; padding: .5rem 1rem; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface); color: var(--nx-fg); font: inherit; }
.nx-waitlist__consent { display: flex; gap: .5rem; align-items: flex-start; margin-top: .7rem; font-size: .84rem; color: var(--nx-muted); }
.nx-waitlist__msg { margin: .6rem 0 0; font-weight: 600; }
.nx-waitlist__msg:empty { display: none; }
.nx-waitlist__msg.is-error { color: #b42318; }
.nx-hp { position: absolute !important; left: -9999px !important; }

/* ---------- Spedizione gratuita, consegna, regali ---------- */
.nx-fsb { margin: 0 0 1.2rem; padding: .9rem 1rem; border-radius: 12px; background: var(--nx-tint); font-size: .92rem; }
.nx-fsb p { margin: 0 0 .5rem; font-weight: 600; }
.nx-fsb__track { height: 7px; border-radius: 99px; background: color-mix(in oklab, var(--nx-fg) 12%, transparent); overflow: hidden; }
.nx-fsb__track i { display: block; height: 100%; border-radius: inherit; background: var(--nx-primary); transition: width .5s ease; }
.nx-fsb.is-done .nx-fsb__track i { background: #16a34a; }
.nx-eta { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 1.2rem; padding: .7rem .9rem; border: 1px dashed var(--nx-line); border-radius: 12px; font-size: .92rem; }
.nx-eta svg { flex: none; color: var(--nx-primary); }
.nx-eta b { font-weight: 700; }
.nx-gift-hint { margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 12px; background: color-mix(in oklab, var(--nx-accent) 22%, var(--nx-bg)); font-weight: 600; }
.nx-gift-tag { display: inline-block; margin-left: .3rem; padding: .1rem .5rem; border-radius: 99px; background: color-mix(in oklab, var(--nx-accent) 30%, var(--nx-bg)); font-size: .78rem; font-weight: 700; white-space: nowrap; }

/* ---------- Spesso acquistati insieme ---------- */
.nx-fbt { grid-column: 1 / -1; margin: 2rem 0; padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--nx-radius); background: var(--nx-surface); box-shadow: var(--nx-shadow); }
.nx-fbt h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.nx-fbt__row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.nx-fbt__img img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; display: block; }
.nx-fbt__plus { font-size: 1.6rem; color: var(--nx-muted); }
.nx-fbt__list { margin: 0 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.nx-fbt__list label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nx-fbt__list .price { color: var(--nx-price, var(--nx-muted)); font-weight: 600; }
.nx-fbt__total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--nx-line); }
.nx-fbt__save { font-style: normal; color: #15803d; font-weight: 600; font-size: .9rem; }
.nx-fbt__save[hidden] { display: none; }
.nx-fbt__msg:empty { display: none; }

/* ---------- Barra fissa «Aggiungi al carrello» ---------- */
.nx-stickyatc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--nx-surface); border-top: 1px solid var(--nx-line); box-shadow: 0 -14px 40px -24px rgb(8 12 50 / .45); animation: nx-up .25s ease; }
.nx-stickyatc[hidden] { display: none; }
.nx-stickyatc__inner { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.nx-stickyatc__inner img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.nx-stickyatc__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nx-stickyatc__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-stickyatc__info .price { font-size: .92rem; color: var(--nx-price, var(--nx-muted)); }
.nx-has-mnav .nx-stickyatc { bottom: calc(64px + env(safe-area-inset-bottom)); }
@keyframes nx-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 600px) { .nx-stickyatc__inner img { display: none; } .nx-stickyatc__info .price { display: none; } }

/* ---------- Griglia: carica altri, filtri ---------- */
.nx-loadmore { display: flex; justify-content: center; margin: 1rem 0 2rem; }
.nx-loadmore[hidden] { display: none; }
.nx-filters-btn { display: none; }
@media (max-width: 900px) {
  .nx-filters-drawer .nx-filters-btn { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .55rem 1.1rem; border: 1px solid var(--nx-line); border-radius: 99px; background: var(--nx-surface); color: var(--nx-fg); font: 600 .95rem var(--nx-font-text); cursor: pointer; }
  .nx-filters-drawer.woocommerce .nx-with-sidebar .nx-sidebar, .nx-filters-drawer.woocommerce-page .nx-with-sidebar .nx-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 125; width: min(88vw, 360px); overflow-y: auto; padding: 1.4rem; background: var(--nx-bg); box-shadow: 20px 0 50px -20px rgb(8 12 50 / .4); transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .nx-filters-open .nx-with-sidebar .nx-sidebar { transform: none !important; }
  .nx-filters-open::after { content: ""; position: fixed; inset: 0; z-index: 124; background: rgb(8 12 30 / .45); }
}

/* ---------- Modalità catalogo e prezzi riservati ---------- */
.nx-catalog .nx-hb .nx-cart, .nx-catalog .nx-mnav__item--cart { display: none !important; }
.nx-price-login { font-size: .9rem; font-weight: 600; }

/* ---------- Account ---------- */
#customer_login.nx-tabbed { display: block; max-width: 520px; margin-inline: auto; }
#customer_login.nx-tabbed > div { width: 100% !important; float: none !important; }
.nx-login-tabs { display: flex; justify-content: center; gap: .3rem; margin: 0 auto 1.4rem; padding: .3rem; width: max-content; border-radius: 99px; background: var(--nx-tint); }
.nx-login-tabs button { padding: .55rem 1.3rem; border: 0; border-radius: 99px; background: transparent; color: var(--nx-fg); font: 600 .95rem var(--nx-font-text); cursor: pointer; }
.nx-login-tabs button[aria-selected="true"] { background: var(--nx-surface); box-shadow: 0 4px 14px -6px rgb(8 12 50 / .35); }
@media (min-width: 900px) {
  .nx-acc-side .woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 2.4rem; align-items: start; }
  .nx-acc-side .woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .nx-acc-side .woocommerce-MyAccount-navigation ul { flex-direction: column; gap: .2rem; padding: .5rem; border-radius: var(--nx-radius); background: var(--nx-surface); box-shadow: var(--nx-shadow); }
  .nx-acc-side .woocommerce-MyAccount-navigation a { border: 0; border-radius: 10px; padding: .65rem .9rem; }
  .nx-acc-side .woocommerce-MyAccount-navigation .is-active a { background: var(--nx-tint); color: var(--nx-primary); }
  .nx-acc-side .woocommerce-account .woocommerce-MyAccount-navigation, .nx-acc-side .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
}
.nx-account-block, .nx-thankyou-block, .nx-trust-block, .nx-cart-empty-block { margin: 1.6rem 0; }

/* Pulsanti WooCommerce con i colori del tema (Woo li colora di viola/grigio con selettori più specifici) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--nx-primary); color: var(--nx-on-primary, #fff); border: 0; font-weight: 650; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--nx-primary); color: var(--nx-on-primary, #fff); filter: brightness(1.08); }
.woocommerce ul.products li.product .button { background: var(--nx-surface); color: var(--nx-fg); box-shadow: inset 0 0 0 1.5px var(--nx-line); }
.woocommerce ul.products li.product .button:hover { background: var(--nx-primary); color: var(--nx-on-primary, #fff); box-shadow: none; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }
/* Prezzi dentro «Spesso acquistati insieme»: non ereditano il prezzo grande della scheda */
.woocommerce div.product .nx-fbt .price, .woocommerce div.product .nx-fbt span.price { font: 700 1rem var(--nx-font-text); color: var(--nx-fg); }
.woocommerce div.product .nx-fbt .price del { font-weight: 400; color: var(--nx-muted); }
