/* ==========================================================================
   Dettaglio prodotto
   ========================================================================== */

.nf-product { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(56px, 6vw, 88px); }

.nf-product__crumb {
    font-family: var(--nf-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nf-muted);
    margin-top: clamp(56px, 7vw, 96px);
    padding-top: 24px;
    border-top: 1px solid var(--nf-hairline);
}
.nf-product__crumb a { color: var(--nf-muted); transition: color .2s ease; }
.nf-product__crumb a:hover { color: var(--nf-ink); }
.nf-product__crumb span { color: var(--nf-ink); }

/* Barra garanzie — 4 punti allineati, sotto la breadcrumb */
.nf-product__usp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 3vw, 32px);
    margin-top: 22px;
    padding-top: 26px;
    padding-bottom: 26px;
    border-top: 1px solid var(--nf-hairline);
    border-bottom: 1px solid var(--nf-hairline);
}
.nf-product__usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--nf-sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nf-body);
    padding-left: clamp(16px, 3vw, 32px);
    border-left: 1px solid var(--nf-hairline);
}
.nf-product__usp-item:first-child { padding-left: 0; border-left: none; }
.nf-product__usp-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--nf-accent); }

@media (max-width: 720px) {
    .nf-product__usp { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .nf-product__usp-item:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 420px) {
    .nf-product__usp { grid-template-columns: 1fr; }
    .nf-product__usp-item { padding-left: 0 !important; border-left: none !important; }
}

.nf-product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
@media (max-width: 860px) { .nf-product__layout { grid-template-columns: minmax(0, 1fr); } }

/* Gallery — rail di thumbnail verticale a sinistra, immagine grande a destra */
.nf-product__gallery {
    display: flex;
    gap: clamp(12px, 1.4vw, 20px);
}
@media (max-width: 860px) { .nf-product__gallery { flex-direction: column-reverse; } }

.nf-product__main {
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--nf-hairline);
}
.nf-product__main img { width: 100%; height: 100%; object-fit: cover; }

.nf-product__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 56px;
    flex-shrink: 0;
    order: -1;
}
@media (max-width: 860px) { .nf-product__thumbs { flex-direction: row; width: auto; overflow-x: auto; order: 1; } .nf-product__thumb { width: 64px; } }

.nf-product__thumb {
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px var(--nf-hairline);
    padding: 0;
    cursor: pointer;
    background: none;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}
.nf-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nf-product__thumb.is-active { box-shadow: inset 0 0 0 1.5px var(--nf-ink); }
.nf-product__thumb--swatch { display: block; }

/* Info */
.nf-product__info {
    position: sticky;
    top: 112px;
    padding-left: clamp(0px, 2vw, 32px);
}
@media (max-width: 860px) { .nf-product__info { padding-left: 0; } }

.nf-product__over { margin-bottom: 10px; }

.nf-product__title {
    font-family: var(--nf-serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 1.8vw, 1.9rem);
    line-height: 1.15;
    margin: 0 0 6px;
}

.nf-product__price { font-family: var(--nf-sans); font-size: 15px; letter-spacing: 0.02em; margin-bottom: 6px; }
.nf-product__price-old { color: var(--nf-muted); text-decoration: line-through; margin-right: 10px; }
.nf-product__price-now { color: var(--nf-accent); }

.nf-product__tax { font-size: 12.5px; color: var(--nf-muted); margin: 0 0 26px; }
.nf-product__tax a { border-bottom: 1px solid var(--nf-muted); }

.nf-product__desc { font-size: 14px; line-height: 1.7; color: var(--nf-body); max-width: 440px; margin: 0 0 30px; }

/* Opzioni — cappate alla stessa larghezza di descrizione/bottone così label e valore restano vicini */
.nf-product__option { margin-bottom: 26px; max-width: 440px; }

.nf-product__option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--nf-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nf-muted);
    margin-bottom: 12px;
}
.nf-product__option-value { color: var(--nf-ink); }

.nf-product__guide-link { border-bottom: 1px solid rgba(28, 26, 22, 0.4); color: var(--nf-ink); }

.nf-product__colors { display: flex; gap: 12px; }
.nf-product__color {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(28, 26, 22, 0.18);
    box-shadow: inset 0 0 0 2px var(--nf-bg);
    display: inline-block;
    transition: transform 0.2s ease-out;
}
.nf-product__color:hover { transform: scale(1.08); }
.nf-product__color.is-active { border: 1.5px solid var(--nf-ink); box-shadow: inset 0 0 0 2px var(--nf-bg), 0 0 0 1px var(--nf-ink); }
.nf-product__color.is-disabled { opacity: 0.35; pointer-events: none; }

.nf-product__sizes { display: flex; gap: 20px; flex-wrap: wrap; }
.nf-product__size {
    font-family: var(--nf-sans);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--nf-muted);
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}
.nf-product__size:hover { color: var(--nf-ink); }
.nf-product__size.is-active { color: var(--nf-ink); border-bottom-color: var(--nf-ink); }
.nf-product__size.is-disabled { opacity: 0.4; text-decoration: line-through; pointer-events: none; }

.nf-product__guide {
    display: none;
    border: 1px solid var(--nf-hairline-strong);
    margin-top: 14px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--nf-body);
}
.nf-product__guide.is-open { display: block; }

/* Add to cart */
.nf-product__add { width: 100%; max-width: 440px; text-align: center; margin-top: 4px; }
.nf-product__add[disabled] { opacity: 0.5; pointer-events: none; }

.nf-product__availability {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    font-family: var(--nf-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--nf-body);
}
.nf-product__dot { width: 7px; height: 7px; border-radius: 50%; background: #4a7a52; display: inline-block; }
.nf-product__dot.is-off { background: #b0483a; }

/* Accordions — link sottolineati impilati, niente box/segno + */
.nf-product__accs { margin-top: 30px; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.nf-product__acc button {
    display: block;
    background: none;
    border: none;
    border-bottom: 1px solid var(--nf-ink);
    cursor: pointer;
    padding: 0;
    margin-bottom: 2px;
    font-family: var(--nf-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nf-ink);
    text-align: left;
}
.nf-product__acc-body { display: none; font-size: 13.5px; line-height: 1.7; color: var(--nf-body); padding-top: 10px; }
.nf-product__acc-body p { margin: 0; }
.nf-product__acc-body a { color: var(--nf-ink); text-decoration: underline; text-underline-offset: 2px; }
.nf-product__acc.is-open .nf-product__acc-body { display: block; }

/* Customizzazione su richiesta */
.nf-product__custom {
    margin-top: 30px;
    max-width: 440px;
    padding: 20px;
    border: 1px solid var(--nf-hairline-strong);
}
.nf-product__custom-title {
    font-family: var(--nf-serif);
    font-weight: 400;
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.nf-product__custom-body { font-size: 13.5px; line-height: 1.6; color: var(--nf-body); margin: 0 0 16px; }
.nf-product__custom .nf-btn { width: auto; padding-left: 22px; padding-right: 22px; }

/* Lista tipologie di spedizione (dinamica dal CMS) */
.nf-product__ship-list { list-style: none; margin: 0 0 14px; padding: 0; }
.nf-product__ship-list li { padding: 5px 0; border-bottom: 1px solid var(--nf-hairline); }
.nf-product__ship-list li:last-child { border-bottom: none; }
.nf-product__ship-list strong { font-weight: 400; }
.nf-product__ship-free { color: var(--nf-muted); }

/* Related — titolo semplice (non italic/small-caps come .nf-over) */
.nf-product__related { margin-top: clamp(56px, 7vw, 96px); }
.nf-product__related-over {
    font-family: var(--nf-serif);
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    font-size: clamp(1.3rem, 1.6vw, 1.6rem);
    color: var(--nf-ink);
    margin-bottom: 28px;
}
.nf-product__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 44px);
}
@media (max-width: 900px) { .nf-product__related-grid { grid-template-columns: 1fr; } }

.nf-card__colors-count { font-size: 12px; color: var(--nf-muted); margin-top: 4px; }
