/* Nicora Plus: recensioni, scheda prodotto, ricerca, badge. Prefisso nx- per non toccare il resto del sito. */

/* ---------- Stelle ---------- */
.nx-stars { position: relative; display: inline-block; font-size: 17px; line-height: 1; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; }
.nx-stars-bg { color: #DDDDE8; }
.nx-stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--gold, #1D30D6); }
.nx-stars.sm { font-size: 14px; letter-spacing: 1px; }
.nx-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted, #4A4C63); }
.nx-rating b { color: var(--ink, #14152B); font-weight: 700; }
.nx-rating-empty { font-size: 14px; color: var(--muted, #4A4C63); text-decoration: underline; text-underline-offset: 3px; }
.n-card .nx-rating { margin: -2px 0 8px; }

/* ---------- Badge sulle schede ---------- */
.nx-card-tags { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.nx-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink, #14152B); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 10px rgba(20,21,43,.12); }
.nx-tag-gold { background: var(--gold, #1D30D6); color: #fff; }
.nx-tag-red { background: var(--red, #a33324); color: #fff; }
.nx-tag-green { background: #2f6b3a; color: #fff; }
.n-card { position: relative; }
.n-card-img { cursor: pointer; }
.n-card .n-card-title { cursor: pointer; }
.nx-stock { font-size: 13px; font-weight: 700; color: #2f6b3a; }
.nx-stock.low { color: var(--red, #a33324); }
.nx-stock.out { color: var(--muted, #4A4C63); }
.n-card .nx-stock { display: block; margin: 0 0 8px; }

/* ---------- Ricerca ---------- */
.nx-search-host { position: relative; }
.nx-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1200; min-width: 300px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line, #DDDDE8); box-shadow: 0 18px 48px rgba(20,21,43,.16); text-align: left; }
.nx-suggest a { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--ink, #14152B); text-decoration: none; }
.nx-suggest a:hover { background: var(--cream, #faf7f2); }
.nx-suggest img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--sand, #EEF0FB); }
.nx-suggest span { display: flex; flex-direction: column; min-width: 0; }
.nx-suggest b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-suggest small { font-size: 12.5px; color: var(--muted, #4A4C63); }
.nx-suggest em { font-style: normal; font-weight: 800; font-size: 15px; white-space: nowrap; }
.nx-suggest-all { width: 100%; margin-top: 4px; padding: 12px; border: 0; border-radius: 14px; background: var(--sand, #EEF0FB); color: var(--navy, #1D30D6); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.nx-suggest-empty { padding: 18px; font-size: 14.5px; color: var(--muted, #4A4C63); text-align: center; line-height: 1.5; }
.nx-search-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; padding: 14px 20px; border-radius: 18px; background: var(--cream, #faf7f2); border: 1.5px solid var(--line, #DDDDE8); font-size: 16px; }
.nx-search-bar b { color: var(--ink, #14152B); }
.nx-search-bar button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--navy, #1D30D6); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Strumenti catalogo (ordinamento) ---------- */
.nx-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted, #4A4C63); white-space: nowrap; }
.nx-sort select { height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1.5px solid var(--line, #DDDDE8); background: #fff 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='%23241611' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink, #14152B); cursor: pointer; }
.nx-tools-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* ---------- Scheda prodotto (modale) ---------- */
html.nx-lock, html.nx-lock body { overflow: hidden; }
.nx-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28,18,12,.55); backdrop-filter: blur(3px); }
.nx-modal[hidden] { display: none; }
.nx-sheet { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: nx-in .22s ease; }
@keyframes nx-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.nx-close { position: sticky; top: 14px; float: right; z-index: 3; width: 48px; height: 48px; margin: 14px 14px -62px 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 4px 16px rgba(0,0,0,.14); font-size: 30px; line-height: 1; color: var(--ink, #14152B); cursor: pointer; }
.nx-sheet-body { padding: 0 0 34px; }
.nx-pv { display: grid; grid-template-columns: 1fr 1fr; }
.nx-pv-img { position: relative; background: var(--sand, #EEF0FB); border-radius: 28px 0 0 0; overflow: hidden; }
.nx-pv-img img { display: block; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1; object-fit: cover; }
.nx-pv-tags { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; }
.nx-pv-info { padding: 44px 44px 20px; display: flex; flex-direction: column; gap: 14px; }
.nx-pv-info h2 { margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--ink, #14152B); }
.nx-pv-rating { text-decoration: none; width: fit-content; }
.nx-pv-desc { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted, #4A4C63); }
.nx-pv-price { display: flex; align-items: baseline; gap: 16px; }
.nx-pv-price strong { font-size: 34px; font-weight: 800; color: var(--ink, #14152B); }
.nx-pv-points { display: inline-flex; width: fit-content; padding: 8px 14px; border-radius: 999px; background: #EEF0FB; color: #1424A8; font-size: 14px; font-weight: 700; }
.nx-pv-buy { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.nx-pv-buy .n-stepper { flex: none; }
.nx-pv-add { flex: 1; min-height: 58px; font-size: 17px; }
.nx-pv-add.is-added { background: #2f6b3a !important; border-color: #2f6b3a !important; }
.nx-pv-trust { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted, #4A4C63); }
.nx-pv-trust li::before { content: "✓"; margin-right: 10px; color: #2f6b3a; font-weight: 800; }
.nx-pv-related, .nx-pv-reviews { margin: 34px 44px 0; }
.nx-pv-related h3, .nx-pv-reviews h3 { margin: 0 0 16px; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 26px; }
.nx-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nx-mini { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1.5px solid var(--line, #DDDDE8); border-radius: 18px; background: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.nx-mini:hover { border-color: var(--gold, #1D30D6); transform: translateY(-2px); }
.nx-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--sand, #EEF0FB); }
.nx-mini span { font-size: 14px; font-weight: 600; color: var(--ink, #14152B); line-height: 1.3; }
.nx-mini b { font-size: 15px; }
.nx-pv-reviews { padding-top: 30px; border-top: 1.5px solid var(--line, #DDDDE8); }
.nx-pv-rhead { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.nx-big-rating { display: flex; align-items: center; gap: 12px; }
.nx-big-rating strong { font-family: var(--serif, Georgia, serif); font-size: 44px; font-weight: 400; color: var(--ink, #14152B); }
.nx-big-rating small { color: var(--muted, #4A4C63); font-size: 14.5px; }
.nx-dist { display: grid; gap: 6px; min-width: 260px; }
.nx-dist div { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted, #4A4C63); }
.nx-dist i { height: 8px; border-radius: 99px; background: var(--sand, #EEF0FB); overflow: hidden; }
.nx-dist em { display: block; height: 100%; background: var(--gold, #1D30D6); border-radius: 99px; }
.nx-muted { color: var(--muted, #4A4C63); margin: 0; }
.nx-note { margin: 18px 0 0; font-size: 13px; color: var(--muted, #4A4C63); line-height: 1.5; }

/* ---------- Recensione ---------- */
.nx-review { padding: 20px 22px; border-radius: 20px; background: var(--cream, #faf7f2); border: 1.5px solid var(--line, #DDDDE8); }
.nx-review + .nx-review { margin-top: 12px; }
.nx-review-head { display: flex; align-items: center; gap: 12px; }
.nx-review-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-review-head b { font-size: 15.5px; color: var(--ink, #14152B); }
.nx-review-head small { font-size: 13px; color: var(--muted, #4A4C63); }
.nx-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy, #1D30D6); color: #fff; font-family: var(--serif, Georgia, serif); font-size: 18px; }
.nx-review p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink, #14152B); }
.nx-review-product { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--gold, #1D30D6); text-transform: uppercase; letter-spacing: .06em; }
.nx-badge { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.nx-badge-ok { background: #e9f3ea; color: #2f6b3a; }
.nx-badge-shop { background: #EEF0FB; color: #1424A8; }
.nx-reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold, #1D30D6); background: #fff; border-radius: 0 12px 12px 0; font-size: 14.5px; color: var(--muted, #4A4C63); }
.nx-reply b { display: block; margin-bottom: 2px; color: var(--ink, #14152B); font-size: 13.5px; }

/* ---------- Form recensione ---------- */
.nx-write { margin-bottom: 18px; border: 1.5px solid var(--line, #DDDDE8); border-radius: 20px; background: #fff; }
.nx-write summary { padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--navy, #1D30D6); cursor: pointer; list-style: none; }
.nx-write summary::-webkit-details-marker { display: none; }
.nx-write summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; }
.nx-write[open] summary::after { content: "−"; }
.nx-write .nx-rform { padding: 0 22px 20px; }
.nx-write-login { display: block; margin-bottom: 18px; padding: 18px 22px; border-radius: 20px; background: #EEF0FB; color: var(--ink, #14152B); text-decoration: none; font-size: 15.5px; }
.nx-write-login b { color: var(--navy, #1D30D6); }
.nx-rform { display: grid; gap: 12px; }
.nx-rstars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nx-rstars button { width: 46px; height: 46px; border: 0; background: none; padding: 0; font-size: 36px; line-height: 1; color: #DDDDE8; cursor: pointer; transition: transform .12s, color .12s; }
.nx-rstars button.on { color: var(--gold, #1D30D6); }
.nx-rstars button:hover { transform: scale(1.12); }
.nx-rstars-label { margin-left: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted, #4A4C63); }
.nx-rform textarea { min-height: 96px; resize: vertical; font: inherit; font-size: 16px; }
.nx-rform-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nx-rform-msg { font-size: 14.5px; font-weight: 600; color: var(--red, #a33324); }
.nx-rform-msg.ok { color: #2f6b3a; }

/* ---------- Home: sezione recensioni ---------- */
.nx-home-reviews { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.nx-home-score { padding: 32px; border-radius: 26px; background: var(--ink, #14152B); color: #fff; text-align: center; }
.nx-home-score strong { display: block; font-family: var(--serif, Georgia, serif); font-size: 72px; font-weight: 400; line-height: 1; }
.nx-home-score .nx-stars { font-size: 24px; margin: 12px 0 8px; }
.nx-home-score p { margin: 0; color: #E3E5F2; font-size: 15.5px; }
.nx-home-score .nx-dist { margin-top: 20px; text-align: left; }
.nx-home-score .nx-dist div { color: #E3E5F2; }
.nx-home-score .nx-dist i { background: rgba(255,255,255,.14); }
.nx-review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nx-review-grid .nx-review + .nx-review { margin-top: 0; }

/* ---------- Carrello: suggerimenti ---------- */
.nx-upsell { margin: 6px 0 26px; padding: 24px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line, #DDDDE8); }
.nx-upsell h3 { margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 24px; }
.nx-upsell > p { margin: 6px 0 16px; font-size: 15px; color: var(--muted, #4A4C63); }
.nx-upsell-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nx-up { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 18px; border: 1.5px solid var(--line, #DDDDE8); background: var(--cream, #faf7f2); }
.nx-up img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.nx-up span { font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.nx-up em { font-style: normal; font-size: 12px; font-weight: 800; color: #2f6b3a; text-transform: uppercase; letter-spacing: .04em; }
.nx-up-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-up-foot b { font-size: 15.5px; }
.nx-up button { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--navy, #1D30D6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.nx-up button:disabled { opacity: .5; }

.nx-more { margin-top: 30px; text-align: center; }
.nx-more .n-btn { min-width: 280px; }


/* ---------- Preferiti ---------- */
.nx-heart { position: absolute; z-index: 3; top: 12px; right: 12px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink, #14152B); box-shadow: 0 3px 12px rgba(20,21,43,.14); cursor: pointer; transition: transform .15s, color .2s; }
.nx-heart svg { width: 21px; height: 21px; }
.nx-heart:hover { transform: scale(1.08); }
.nx-heart.on { color: var(--red, #a33324); }
.nx-heart.on svg { fill: currentColor; }
.nx-heart.pop { animation: nx-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes nx-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.nx-heart.lg { position: static; flex: none; width: 50px; height: 50px; box-shadow: none; border: 1.5px solid var(--line, #DDDDE8); }
.nx-heart.lg svg { width: 24px; height: 24px; }
.nx-pv-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.nx-wish-btn { position: relative; }
.nx-wish-btn svg { width: 26px; height: 26px; }
.nx-wish-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--red, #a33324); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
.nx-wish-count[hidden] { display: none; }

.nx-drawer { position: fixed; inset: 0; z-index: 3100; background: rgba(28,18,12,.5); }
.nx-drawer[hidden] { display: none; }
.nx-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 50px rgba(0,0,0,.2); animation: nx-slide .25s ease; }
@keyframes nx-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.nx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1.5px solid var(--line, #DDDDE8); }
.nx-drawer-head h3 { margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 26px; }
.nx-drawer-head .nx-close { position: static; float: none; margin: 0; box-shadow: none; background: var(--sand, #EEF0FB); }
.nx-drawer-body { flex: 1; overflow: auto; padding: 14px 22px 24px; }
.nx-drawer-empty { padding: 50px 10px; text-align: center; color: var(--muted, #4A4C63); }
.nx-drawer-empty svg { width: 46px; height: 46px; color: var(--gold, #1D30D6); }
.nx-drawer-empty p { margin: 12px 0 22px; font-size: 15.5px; line-height: 1.5; }
.nx-drawer-empty b { color: var(--ink, #14152B); font-size: 17px; }
.nx-wish-list { list-style: none; margin: 0 0 18px; padding: 0; }
.nx-wish-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sand, #EEF0FB); }
.nx-wish-img { padding: 0; border: 0; background: none; cursor: pointer; }
.nx-wish-img img { display: block; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--sand, #EEF0FB); }
.nx-wish-list b { display: block; font-size: 15px; line-height: 1.3; color: var(--ink, #14152B); }
.nx-wish-list span { display: block; margin-top: 2px; font-weight: 800; font-size: 15px; }
.nx-wish-list small { font-size: 12.5px; color: var(--muted, #4A4C63); font-weight: 700; }
.nx-wish-acts { display: flex; gap: 6px; }
.nx-wish-add, .nx-wish-del { width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.nx-wish-add { background: var(--navy, #1D30D6); color: #fff; }
.nx-wish-add:disabled { opacity: .4; cursor: default; }
.nx-wish-del { background: var(--sand, #EEF0FB); color: var(--ink, #14152B); }
.nx-wish-all { min-height: 56px; }

/* ---------- Più venduti ---------- */
.nx-hot { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: #b4471f; }

/* ---------- Telefono ---------- */
@media (max-width: 900px) {
    .nx-modal { padding: 0; align-items: flex-end; }
    .nx-sheet { max-height: 94vh; border-radius: 24px 24px 0 0; }
    .nx-pv { grid-template-columns: 1fr; }
    .nx-pv-img { border-radius: 24px 24px 0 0; }
    .nx-pv-img img { aspect-ratio: 4 / 3; }
    .nx-pv-info { padding: 22px 18px 6px; gap: 12px; }
    .nx-pv-info h2 { font-size: 27px; }
    .nx-pv-desc { font-size: 15.5px; }
    .nx-pv-price strong { font-size: 28px; }
    .nx-pv-add { min-height: 54px; font-size: 16px; }
    .nx-pv-related, .nx-pv-reviews { margin: 26px 18px 0; }
    .nx-mini-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .nx-mini { padding: 6px; border-radius: 14px; }
    .nx-mini span { font-size: 12.5px; }
    .nx-mini b { font-size: 13.5px; }
    .nx-dist { min-width: 0; width: 100%; }
    .nx-big-rating strong { font-size: 36px; }
    .nx-close { width: 42px; height: 42px; margin: 10px 10px -52px 0; font-size: 26px; }
    .nx-home-reviews { grid-template-columns: 1fr; gap: 16px; }
    .nx-home-score { padding: 22px; }
    .nx-home-score strong { font-size: 54px; }
    .nx-review-grid { grid-template-columns: 1fr; gap: 10px; }
    .nx-review { padding: 16px; }
    .nx-review p { font-size: 15px; }
    .nx-suggest { position: fixed; top: auto; left: 12px; right: 12px; min-width: 0; margin-top: 8px; }
    .nx-tools-right { width: 100%; justify-content: space-between; margin-left: 0; }
    .nx-sort select { height: 40px; font-size: 14px; }
    .nx-upsell { padding: 16px; border-radius: 20px; }
    .nx-upsell h3 { font-size: 21px; }
    .nx-upsell-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nx-card-tags { top: 10px; left: 10px; }
    .nx-tag { padding: 4px 9px; font-size: 10.5px; }
    .n-card .nx-rating { font-size: 12.5px; gap: 4px; }
    .n-card .nx-stars { font-size: 12.5px; letter-spacing: 0; }
    .n-card .nx-stock { font-size: 12px; }
    .nx-more { margin-top: 20px; }
    .nx-more .n-btn { width: 100%; min-width: 0; }
    .nx-heart { top: 8px; right: 8px; width: 36px; height: 36px; }
    .nx-heart svg { width: 18px; height: 18px; }
    .nx-heart.lg { width: 44px; height: 44px; }
    .nx-drawer-panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; animation: nx-up .25s ease; }
    .nx-drawer-head { padding: 16px 18px; }
    .nx-drawer-body { padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); }
    .nx-hot { font-size: 11.5px; }
}
@keyframes nx-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Barra in alto da telefono: il cuore dei preferiti non deve allargare la barra */
@media (max-width: 600px) {
    .n-icons { gap: 0 !important; }
    .n-icons .n-icon-btn { width: 42px !important; height: 42px !important; }
    .nx-wish-btn svg { width: 22px; height: 22px; }
    .nx-wish-count { top: 0; right: -2px; min-width: 18px; height: 18px; font-size: 10.5px; }
}
@media (max-width: 360px) {
    .nx-wish-btn { display: none !important; }
}

/* ---------- Porta un amico: benvenuto ---------- */
.nx-ref-banner { position: fixed; left: 50%; bottom: 22px; z-index: 2900; display: flex; align-items: center; gap: 14px; width: min(560px, calc(100% - 32px)); padding: 16px 18px; border-radius: 20px; background: #fff; color: var(--ink, #14152B); box-shadow: 0 18px 50px rgba(20,21,43,.22); border: 1px solid var(--line, #DDDDE8); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.nx-ref-banner.in { transform: translate(-50%, 0); }
.nx-ref-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #EEF0FB; font-size: 24px; }
.nx-ref-banner b { display: block; font-size: 16px; }
.nx-ref-banner small { display: block; margin-top: 3px; font-size: 14px; color: var(--muted, #4A4C63); line-height: 1.4; }
.nx-ref-banner button { margin-left: auto; align-self: flex-start; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--sand, #EEF0FB); font-size: 22px; line-height: 1; color: var(--ink, #14152B); cursor: pointer; }

/* ---------- Ruota di benvenuto ---------- */
.nx-wheel-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 36px; width: min(860px, 100%); padding: 40px; border-radius: 28px; background: radial-gradient(120% 90% at 0% 0%, #F6F7FE 0%, #f4ead8 70%); box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: nx-in .25s ease; }
.nx-wheel-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 28px; line-height: 1; color: var(--ink, #14152B); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.nx-wheel-stage { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.nx-wheel-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(20,21,43,.25)); }
.nx-wheel-svg text { font-family: var(--sans, "Inter", system-ui, sans-serif); }
.nx-wheel-rot { transform-box: view-box; transform-origin: 50% 50%; }
.nx-wheel-pin { position: absolute; top: -6px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--gold, #1D30D6); filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.nx-wheel-eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #1D30D6); }
.nx-wheel-side h2 { margin: 8px 0 10px; font-family: var(--serif, Georgia, serif); font-size: 34px; line-height: 1.08; color: var(--ink, #14152B); }
.nx-wheel-side p { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--muted, #4A4C63); }
.nx-wheel-form { display: grid; gap: 10px; }
.nx-wheel-form input { min-height: 54px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line, #DDDDE8); background: #fff; font: inherit; font-size: 16px; color: var(--ink, #14152B); }
.nx-wheel-form input:focus { outline: none; border-color: var(--gold, #1D30D6); box-shadow: 0 0 0 4px rgba(29,48,214,.18); }
.nx-wheel-form .n-btn { min-height: 54px; justify-content: center; font-size: 16px; }
.nx-wheel-err { margin: 0 !important; color: var(--red, #a33324) !important; font-weight: 600; font-size: 14.5px !important; }
.nx-wheel-fine { display: block; margin-top: 12px; font-size: 13px; color: var(--muted, #4A4C63); }
.nx-wheel-later { margin-top: 10px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted, #4A4C63); text-decoration: underline; cursor: pointer; }
.nx-wheel-code { display: block; width: 100%; padding: 18px; border-radius: 18px; border: 2px dashed var(--gold, #1D30D6); background: #fff; font: 800 24px/1.1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .05em; color: var(--navy, #1D30D6); cursor: pointer; }
.nx-wheel-code small { display: block; margin-top: 6px; font: 600 12px/1 var(--sans, system-ui); color: var(--muted, #4A4C63); letter-spacing: .04em; }
.nx-wheel-acts { margin-top: 16px; }
.nx-wheel-acts .n-btn { width: 100%; min-height: 52px; justify-content: center; }

@media (max-width: 760px) {
    .nx-wheel-box { grid-template-columns: 1fr; gap: 14px; padding: 26px 18px 22px; border-radius: 24px 24px 0 0; max-height: 94vh; overflow-y: auto; }
    .nx-wheel-stage { max-width: 250px; }
    .nx-wheel-side { text-align: center; }
    .nx-wheel-side h2 { font-size: 26px; }
    .nx-wheel-side p { font-size: 15px; margin-bottom: 14px; }
    .nx-wheel-code { font-size: 20px; }
    .nx-ref-banner { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .nx-ref-banner { transition: none; }
}

/* Ruota: versione clean e minimale */
.nx-wheel-modal { background: rgba(28,18,12,.38); }
.nx-wheel-box { width: min(780px, 100%); gap: 40px; padding: 44px; border-radius: 30px; background: #fff; box-shadow: 0 30px 80px rgba(20,21,43,.25); }
.nx-wheel-svg { filter: drop-shadow(0 14px 26px rgba(20,21,43,.14)); }
.nx-wheel-pin { top: -2px; border-left-width: 12px; border-right-width: 12px; border-top: 22px solid var(--ink, #14152B); filter: none; }
.nx-wheel-x { background: var(--sand, #EEF0FB); box-shadow: none; width: 40px; height: 40px; font-size: 24px; }
.nx-wheel-side h2 { font-size: 40px; }
.nx-wheel-side p { font-size: 17px; }
.nx-wheel-form input { background: var(--cream, #faf7f2); border-color: transparent; }
.nx-wheel-form input:focus { background: #fff; }
.nx-wheel-code { background: var(--cream, #faf7f2); }
@media (max-width: 760px) {
    .nx-wheel-box { gap: 10px; padding: 28px 20px 24px; border-radius: 26px 26px 0 0; }
    .nx-wheel-stage { max-width: 220px; }
    .nx-wheel-side h2 { font-size: 30px; }
    .nx-wheel-side p { font-size: 15.5px; }
}

/* ---------- Prodotti con più gusti / formati ---------- */
.nx-optbox { display: flex; flex-direction: column; gap: 3px; padding: 8px 11px; border: 1px solid var(--line, #E3E5F2); border-radius: 12px; background: var(--sand, #f4efe6); cursor: pointer; text-align: left; }
.nx-optbox b { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #1D30D6); }
.nx-optbox span { font-size: 13px; line-height: 1.35; color: var(--muted, #4A4C63); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-from { font-size: .62em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #4A4C63); }
.nx-opts { margin: 4px 0 18px; }
.nx-opts-h { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #1D30D6); }
.nx-opts-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 280px; overflow-y: auto; padding: 2px; }
.nx-opt { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line, #E3E5F2); border-radius: 999px; background: #fff; color: var(--ink, #14152B); font: inherit; font-size: 14.5px; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.nx-opt small { font-size: 12.5px; font-weight: 700; color: var(--muted, #4A4C63); }
.nx-opt:hover { border-color: var(--ink, #14152B); }
.nx-opt.on { background: var(--ink, #14152B); border-color: var(--ink, #14152B); color: #fff; }
.nx-opt.on small { color: rgba(255,255,255,.8); }
.nx-opt.is-out { opacity: .45; text-decoration: line-through; cursor: default; }
.nx-pv-heart { display: contents; }
.nx-pv-stock { display: contents; }

/* Scelta del gusto: il bottone si fa notare dopo la scelta */
@keyframes nx-pulse { 0% { box-shadow: 0 0 0 0 rgba(29,48,214,.55); } 100% { box-shadow: 0 0 0 16px rgba(29,48,214,0); } }
.nx-pv-add.nx-pulse { animation: nx-pulse .9s ease-out 1; }
.nx-opt { min-height: 52px; font-size: 16px; }
.nx-opt.on { background: var(--brand, #1D30D6) !important; border-color: var(--brand, #1D30D6) !important; color: #fff !important; }
.nx-opt.on small { color: rgba(255,255,255,.85) !important; }
@media (max-width: 760px) {
    .nx-opts-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
    .nx-opt { width: 100%; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.25; }
    .nx-opt small { white-space: nowrap; }
}
