/* ============================================================
   gods3dplan — DESIGN PAGINA PRODOTTO E CARD (28/11)
   Caricato per ultimo in prodotto, catalogo, index, novita, idee-regalo.
   - colonna delle informazioni: testata, prezzo, descrizione, acquisto
   - scheda del pezzo a riquadri con icona, spedizione e resi a righe con icona
   - card prodotto: righe allineate tra card vicine, sottolineatura su più righe
   Caratteri: Bricolage Grotesque per titoli e valori, Instrument Sans per i testi
   e per le etichette in maiuscoletto spaziato.
   ============================================================ */

:root {
  --pdp-ink-3: #5E594F;   /* testo secondario leggibile, caldo */
  --pdp-ink-4: #8A8476;   /* etichette e note */
  --pdp-hair: rgba(21, 20, 15, .09);
  --pdp-paper: #FFFDF9;   /* fondo delle schede: carta calda, non bianco pieno */
}

/* etichetta tipografica comune: piccola, maiuscola, spaziata */
.pdp-cat, .pdp-badge, .pdp-price small, .pdp-opt-label, .pdp-info .field label, .pdp-tile dt, .pdp-panel-k {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase; font-feature-settings: "case" 1;
}

/* ---------- testa: categoria, novità, titolo ---------- */
.pdp-info { padding-top: 10px; max-width: 560px; }
.pdp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pdp-info .pdp-cat { padding-block: 10px; margin-block: -10px; gap: 9px; color: var(--cat-ink, var(--ink-2)); transition: color .3s; }
.pdp-info .pdp-cat:hover { color: var(--ink); }
.pdp-info .pdp-cat i { width: 6px; height: 6px; background: var(--cat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 18%, transparent); }
.pdp-info .pdp-badge {
  display: inline-flex; align-items: center; padding: 0 0 0 12px; border-radius: 0;
  background: none; box-shadow: inset 1px 0 0 var(--pdp-hair);
  color: var(--pdp-ink-4); font-size: 11.5px; letter-spacing: .18em;
}
.pdp-info .pdp-name {
  margin-top: 18px; font-weight: 640; font-size: clamp(2.3rem, 3.7vw, 3.4rem); line-height: 1; letter-spacing: -.045em;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.pdp-info .pdp-rate { margin-top: 12px; font-size: 13.5px; color: var(--pdp-ink-4); }
.pdp-info .pdp-rate b { font-weight: 650; color: var(--ink); }

/* ---------- prezzo e disponibilità ---------- */
.pdp-pricerow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 26px; padding: 18px 0; border-block: 1px solid var(--pdp-hair);
}
.pdp-info .pdp-price {
  margin: 0; align-items: baseline; gap: 12px; font-weight: 600; font-size: clamp(1.9rem, 2.4vw, 2.3rem); line-height: 1; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 48;
}
.pdp-info .pdp-price small { font-size: 11.5px; color: var(--pdp-ink-4); letter-spacing: .16em; }
.pdp-stock {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: var(--r-pill);
  background: rgba(201, 138, 18, .08); color: #7A5410;
  font-size: 13px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
}
.pdp-stock i { width: 7px; height: 7px; border-radius: 50%; background: #C98A12; box-shadow: 0 0 0 3px rgba(201, 138, 18, .18); }
.pdp-stock.is-pronto { background: rgba(18, 161, 80, .08); color: #0D6E38; }
.pdp-stock.is-pronto i { background: #12A150; box-shadow: 0 0 0 3px rgba(18, 161, 80, .18); }

/* ---------- descrizione ---------- */
.pdp-info .pdp-blurb {
  margin-top: 24px; max-width: 32em; font-size: 1.08rem; line-height: 1.7; letter-spacing: .002em;
  color: var(--ink-2); text-wrap: pretty;
}

/* ---------- opzioni e acquisto ---------- */
.pdp-info .pdp-opt { margin-top: 28px; }
.pdp-info .pdp-opt-label { align-items: baseline; gap: 12px; margin-bottom: 12px; color: var(--ink-2); }
.pdp-info .pdp-opt-label span { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--pdp-ink-4); }
.pdp-info .field label { color: var(--ink-2); }
.pdp-info .field label small { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--pdp-ink-4); }
#pdpPersonalizza:not(:empty) { margin-top: 28px; }
.pdp-info .pdp-buy { margin-top: 28px; }
.pdp-info .pdp-alt {
  margin-top: 16px; font-size: 13.5px; font-weight: 500; color: var(--pdp-ink-3);
  text-decoration-color: rgba(21, 20, 15, .2); text-underline-offset: 5px;
}
.pdp-info .pdp-alt:hover { color: var(--ink); }

/* ---------- sezioni: scheda del pezzo, spedizione e resi ---------- */
.pdp-panel { margin-top: 44px; }
.pdp-panel + .pdp-panel { margin-top: 36px; }
.pdp-panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pdp-panel-t {
  margin: 0; font-family: var(--font-display); font-size: 1.32rem; font-weight: 640; line-height: 1.15; letter-spacing: -.03em;
  font-variation-settings: "opsz" 32; color: var(--ink);
}
.pdp-panel-k { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--pdp-ink-4); white-space: nowrap; }
.pdp-panel-k::before {
  content: ""; width: 14px; height: 9px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(90deg, #1F8B4C 0 33.3%, #F4F1EA 33.3% 66.6%, #CE2B37 66.6%);
  box-shadow: 0 0 0 1px rgba(21, 20, 15, .08);
}

/* scheda del pezzo: riquadri separati da filetti, come una tabella disegnata */
.pdp-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden;
  border-radius: var(--r-md); background: var(--pdp-hair);
  box-shadow: 0 0 0 1px var(--pdp-hair), 0 30px 50px -40px rgba(60, 45, 25, .5);
}
.pdp-tiles.is-odd .pdp-tile:last-child { grid-column: 1 / -1; }
.pdp-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 14px;
  padding: 18px 18px 17px; background: var(--pdp-paper);
}
.pdp-tile-ic {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--cat) 9%, #fff); color: color-mix(in srgb, var(--cat) 70%, #15140F);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 16%, transparent);
}
.pdp-tile dt { align-self: end; padding-top: 2px; font-size: 11.5px; letter-spacing: .16em; color: var(--pdp-ink-4); }
.pdp-tile dd { margin: 0; min-width: 0; }
.pdp-tile dd b {
  display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 620; line-height: 1.2; letter-spacing: -.02em;
  font-variation-settings: "opsz" 24; font-variant-numeric: tabular-nums; color: var(--ink);
}
.pdp-tile dd small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--pdp-ink-3); text-wrap: pretty; }
.pdp-note { margin-top: 14px; max-width: 36em; font-size: 13px; line-height: 1.6; color: var(--pdp-ink-4); text-wrap: pretty; }

/* spedizione e resi: righe con icona, la prima (i tempi di questo pezzo) in evidenza */
.pdp-ship-list {
  margin: 0; padding: 6px; list-style: none; border-radius: var(--r-md); background: var(--pdp-paper);
  box-shadow: 0 0 0 1px var(--pdp-hair), 0 30px 50px -40px rgba(60, 45, 25, .5);
}
.pdp-ship-list li { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 14px; }
.pdp-ship-list li + li::before { content: ""; position: absolute; top: 0; left: 66px; right: 14px; height: 1px; background: var(--pdp-hair); }
.pdp-ship-list li.is-this { border-radius: 15px; background: color-mix(in srgb, var(--cat) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 14%, transparent); }
.pdp-ship-list li.is-this + li::before { display: none; }
.pdp-ship-ic {
  flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(21, 20, 15, .04); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--pdp-hair);
}
.is-this .pdp-ship-ic { background: var(--cat); color: #fff; box-shadow: 0 8px 16px -8px var(--cat); }
.pdp-ship-tx { min-width: 0; }
.pdp-ship-tx b {
  display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 620; line-height: 1.25; letter-spacing: -.02em;
  font-variation-settings: "opsz" 20; color: var(--ink);
}
.pdp-ship-tx small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--pdp-ink-3); text-wrap: pretty; }
.pdp-panel-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: rgba(21, 20, 15, .2); text-underline-offset: 5px; transition: text-decoration-color .3s, color .3s;
}
.pdp-panel-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- scena 3D e foto: indicatori piccoli, ai bordi ---------- */
.pdp-stage .stage-top { top: 14px; left: 14px; right: 14px; }
.pdp-stage .stage-print { min-height: 0; gap: 8px; padding: 3px 11px 3px 3px; font-size: 11.5px; }
.pdp-stage .stage-print .stage-replay { width: 26px; height: 26px; }
.pdp-stage .stage-print-txt b { font-size: 13px; }
.pdp-stage .stage-print .hud-bar { width: 34px; }
.pdp-stage .pdp-hint {
  bottom: 14px; padding: 5px 10px; background: rgba(21, 20, 15, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.pdp-stage.has-foto .pdp-thumbs { top: 62px; left: 14px; gap: 8px; }
.pdp-stage .pdp-thumbs button { width: 52px; border-radius: var(--r-sm); }
.pdp-stage .pdp-thumbs button.is-3d { font-size: 13px; }

/* ============================================================
   CARD PRODOTTO — etichette piccole agli angoli, righe allineate
   ============================================================ */
.prod .prod-media .prod-badge {
  top: 10px; left: 10px; padding: 4px 7px 4px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--ink); font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase;
}
.prod .prod-add {
  width: 36px; height: 36px; right: 10px; margin-top: calc(100% * var(--ar) - 46px); font-size: 17px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.prod .prod-add:hover { background: var(--ink); }
.prod .prod-add.added { background: #12A150; }

/* righe allineate: il titolo tiene sempre lo spazio di due righe, la descrizione di due,
   e «Foto reale» (o il voto) cade alla stessa altezza in tutte le card della fila */
.prod-grid .prod { display: flex; flex-direction: column; }
.prod-grid .prod-info { flex: 1 1 auto; grid-template-rows: auto auto auto 1fr; }
.prod-grid .prod-name { min-height: calc(2em * 1.12); }
.prod-grid .prod-desc { min-height: calc(2em * 1.5); }
.prod-grid .prod-meta { align-self: end; }

/* ============================================================
   CATALOGO — il conteggio una volta sola: numero grande, parola piccola
   ============================================================ */
.shop .shop-meta > .shop-count {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pdp-ink-4);
}
.shop-count b {
  font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -.035em; line-height: 1;
  font-variation-settings: "opsz" 32; font-variant-numeric: tabular-nums; color: var(--ink);
}

.shop .fchip[data-cat=""] { padding-inline: 18px; }

/* ---------- telefono ---------- */
@media (max-width: 900px) {
  .pdp-info { padding-top: 4px; max-width: none; }
  .pdp-info .pdp-name { margin-top: 14px; font-size: clamp(2rem, 9vw, 2.6rem); }
  .pdp-pricerow { margin-top: 20px; padding: 16px 0; }
  .pdp-panel { margin-top: 36px; }
  .pdp-panel + .pdp-panel { margin-top: 30px; }
  .pdp-stage.has-foto .pdp-thumbs { top: auto; bottom: 12px; left: 12px; }
  .pdp-stage .pdp-thumbs button { width: 42px; border-radius: var(--r-sm); }
  .pdp-stage .pdp-hint { left: auto; right: 12px; bottom: 12px; transform: none; }
  .prod-grid .prod-info { grid-template-rows: auto auto auto auto 1fr; }
}
@media (max-width: 600px) {
  .pdp-info .pdp-blurb { font-size: 1rem; line-height: 1.65; }
  .pdp-panel-t { font-size: 1.18rem; }
  .pdp-tiles { border-radius: var(--r-md); }
  .pdp-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; gap: 4px; padding: 14px 14px 13px; }
  .pdp-tile dt { align-self: auto; }
  .pdp-tile-ic { grid-row: auto; width: 32px; height: 32px; border-radius: var(--r-sm); margin-bottom: 6px; }
  .pdp-tile-ic svg { width: 16px; height: 16px; }
  .pdp-tile dd b { font-size: 1rem; }
  .pdp-tile dd small { font-size: 12px; }
  .pdp-ship-list { border-radius: var(--r-md); padding: 5px; }
  .pdp-ship-list li { gap: 12px; padding: 12px 11px; }
  .pdp-ship-list li + li::before { left: 61px; right: 11px; }
  .pdp-ship-ic { width: 36px; height: 36px; border-radius: var(--r-sm); }
  .pdp-ship-tx b { font-size: .97rem; }
  .prod .prod-media .prod-badge { top: 8px; left: 8px; padding: 3px 6px 3px 7px; font-size: 11.5px; letter-spacing: .12em; border-radius: 5px; }
  .prod .prod-add { width: 32px; height: 32px; right: 8px; margin-top: calc(100% * var(--ar) - 40px); font-size: 16px; }
  /* il cerchio resta di 32px, il tocco prende 44px */
  .prod .prod-add::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
}
/* telefono stretto (320px): «Personalizzabile» intero dentro la card: in minuscolo, senza spaziatura (puntini solo come ultima rete) */
@media (max-width: 360px) {
  html .prod .prod-media .prod-badge { text-transform: none; letter-spacing: 0; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   RIFINITURA (29/11) — galleria 3:4, stati dei controlli, acquisto
   ============================================================ */

/* pezzi con fotografie: la scena ha le proporzioni delle foto (3:4), così la foto si vede intera;
   su schermo largo la colonna è larga quanto la scena, senza vuoto tra scena e informazioni */
.pdp-stage.has-foto { aspect-ratio: 3 / 4; }
@media (min-width: 901px) {
  .pdp:has(> .pdp-stage.has-foto) {
    --stw: min(calc((100svh - 124px) * .75), 46vw, 640px);
    grid-template-columns: minmax(0, var(--stw)) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 96px);
  }
  .pdp-stage.has-foto { width: 100%; max-height: none; }
  .pdp:has(> .pdp-stage.has-foto) .pdp-info { max-width: 680px; }
}
.pdp-foto img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* miniature: stato attivo leggibile anche sopra la foto, fuoco da tastiera evidente */
.pdp-stage .pdp-thumbs button { transition: opacity .3s, border-color .3s, transform .5s var(--ease), box-shadow .3s; }
.pdp-stage .pdp-thumbs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(21, 20, 15, .55); }
.pdp-stage .pdp-thumbs button:active { transform: scale(.96); }
.pdp-stage .stage-replay { transition: transform .6s var(--ease), background .3s; }
.pdp-stage .stage-replay:hover { transform: rotate(-200deg); }
.pdp-stage .stage-replay:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* «Rivedi la stampa»: il cerchio resta di 26px, il tocco prende 44px */
#pdpReplay { position: relative; }
#pdpReplay::after { content: ""; position: absolute; inset: -9px; }

/* colori: anello pulito al passaggio e al fuoco */
.pdp-swatches .swatch:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .12), 0 0 0 3px var(--bg), 0 0 0 5px var(--cat-ink, var(--ink)); }

/* quantità: pulsanti con risposta al tocco, limite visibile */
.pdp-buy .qty { background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.pdp-buy .qty button { display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, transform .3s var(--ease); }
.pdp-buy .qty button:active:not(:disabled) { transform: scale(.9); }
.pdp-buy .qty button:disabled { color: rgba(21, 20, 15, .25); cursor: default; background: none; }
.pdp-buy .qty button:focus-visible { outline-offset: -2px; border-radius: 50%; }
.pdp-buy .qty span { font-family: var(--font-display); font-weight: 650; }

/* aggiungi al carrello: conferma verde, poi torna com'era */
#pdpAdd { transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .3s var(--ease); }
#pdpAdd:active { transform: scale(.985); }
#pdpAdd.is-added { background: #12A150; box-shadow: 0 18px 34px -18px rgba(18, 161, 80, .8); }
#pdpAdd.is-added .arr { background: #fff; color: #12A150; }

/* link secondari: sottolineatura che si accende */
.pdp-info .pdp-alt { transition: color .3s, text-decoration-color .3s; }
.pdp-info .pdp-alt:hover { text-decoration-color: currentColor; }
.pdp-info .pdp-cat:focus-visible, .pdp-info .pdp-alt:focus-visible, .pdp-panel-link:focus-visible { outline-offset: 4px; border-radius: 4px; }

/* scheda e spedizione: piccolo respiro tra i riquadri al passaggio */
.pdp-tile { transition: background .35s; }
.pdp-tile:hover { background: #fff; }

@media (max-width: 900px) {
  .pdp-stage.has-foto { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-stage .stage-replay:hover { transform: none; }
  .pdp-buy .qty button:active, #pdpAdd:active, .pdp-stage .pdp-thumbs button:active { transform: none; }
}
/* tela 3D raggiungibile col Tab: anello interno, il bordo arrotondato resta pulito */
.pdp-stage:has(canvas:focus-visible) { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(255, 255, 255, .9); }
.pdp-stage canvas:focus-visible { outline: none; }

/* ---------- la scheda si apre sulla foto vera; il 3D a un clic (29/11) ---------- */
.pdp-vedi3d {
  position: absolute; z-index: 5; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--r-pill, 999px);
  background: rgba(21, 20, 15, .62); color: #fff; font: 600 14px/1 var(--font-body, inherit); letter-spacing: .01em;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--sh-md); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), background .25s, visibility 0s .35s;
}
.pdp-stage.is-foto .pdp-vedi3d { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease) .15s, transform .45s var(--ease) .15s, background .25s, visibility 0s; }
.pdp-vedi3d:hover { background: rgba(21, 20, 15, .82); }
.pdp-vedi3d:active { transform: scale(.97); }
.pdp-vedi3d:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pdp-vedi3d svg { flex: none; }
/* versione senza 3D («soloFoto»): il pulsante nascosto resta nascosto (display: flex vinceva su [hidden]) */
.pdp-vedi3d[hidden] { display: none; }
@media (max-width: 900px) {
  .pdp-vedi3d { right: 12px; bottom: 12px; height: 38px; padding: 0 13px 0 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pdp-vedi3d { transition: none; transform: none; } }
/* il palco non deve mai scorrere di lato (il fuoco da tastiera o scrollIntoView lo spostavano di qualche decina di px) */
.pdp-stage { overflow: clip; }

/* ============================================================
   SECONDA REVISIONE (29/11)
   ============================================================ */
/* B12: etichette e note secondarie a ≥ 4,5:1 sulla carta */
:root { --pdp-ink-4: #6B665B; }
.pdp-info .pdp-badge, .pdp-info .pdp-price small, .pdp-panel-k, .pdp-note { color: #6B665B; }
/* B10: la galleria a foto sta tutta nello schermo (piega compresa): più bassa, quindi più stretta, foto mai tagliata */
@media (min-width: 901px) {
  .pdp:has(> .pdp-stage.has-foto) { --stw: min(max(calc((100svh - 300px) * .75), 380px), 46vw, 640px); }
}
/* B9: miniature nascoste quando il segno scelto non è quello fotografato */
.pdp-thumbs button[hidden] { display: none; }

/* ---------- dettagli (29/11, seconda passata) ---------- */
/* palco 3D con le foto: il distintivo «Strato» e le miniature con lo stesso passo (8 px) */
@media (min-width: 901px) { .pdp-stage.has-foto .pdp-thumbs { top: 56px; } }
/* portachiavi medaglione: l'anello non tocca il bordo, la catenella scende dall'alto */
.pdp-foto img[src*="/oroscopo-portachiavi."], .prod-media img[src*="/oroscopo-portachiavi."], .prod-media img[src*="/oroscopo-portachiavi-800."] {
  scale: 1.12; transform-origin: 50% 100%;
}
/* telefono: nel percorso si toglie «Catalogo» prima di tagliare il nome del pezzo */
@media (max-width: 600px) {
  #pdpCrumbs .crumbs > a[href="catalogo.html"], #pdpCrumbs .crumbs > a[href="catalogo.html"] + span[aria-hidden] { display: none; }
}
@media (max-width: 600px) {
  #pdpCrumbs .crumbs.is-stretta > a.crumb-cat { gap: 0; font-size: 0; }
}
/* tablet verticale: il riquadro foto/3D non supera il 60% dello schermo (foto sempre intera, centrata),
   così titolo, prezzo e «Aggiungi» restano vicini alla piega */
@media (min-width: 601px) and (max-width: 900px) {
  .pdp-stage.has-foto { width: min(100%, calc(60svh * .75)); max-height: 60svh; justify-self: center; }
}
/* «Aggiunto ✓»: il disco della freccia mostra la spunta, non un cerchio vuoto */
#pdpAdd.is-added .arr { background: #fff; color: #12A150; }
#pdpAdd.is-added .arr::before { content: "✓"; transform: none !important; font-weight: 700; }
#pdpAdd.is-added .arr::after { display: none; }
/* tablet: la barra d'acquisto fissa del telefono vale fino a 900 px (stesso componente, stesso aspetto) */
@media (min-width: 521px) and (max-width: 900px) {
  .pdp-buy { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; flex-wrap: nowrap; margin-inline: -6px; padding: 6px; border-radius: var(--r-pill); background: rgba(250, 246, 238, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--sh-md); }
  .pdp-buy .btn { flex: 1 1 auto; height: 52px; padding-left: 18px; font-size: 15px; }
  .pdp-buy .btn .arr { width: 36px; height: 36px; }
  .pdp-buy .qty { height: 52px; padding: 0 2px; }
  .pdp-buy .qty button { width: 40px; height: 40px; }
}
/* tela 3D: invisibile finché non ha disegnato il primo fotogramma */
#pdpCanvas { opacity: 0; transition: opacity .45s var(--ease); }
#pdpCanvas.is-pronto { opacity: 1; }

/* ============================================================
   GIRO 9 (30/11) — tocco e barra d'acquisto del telefono
   ============================================================ */
/* quantità: pulsanti da 44 px anche nella barra fissa (stessa larghezza di prima: il numero si stringe) */
@media (max-width: 900px) {
  .pdp-buy .qty button { width: 44px; height: 44px; }
  .pdp-buy .qty span { min-width: 22px; }
  /* miniature della galleria: almeno 44 px di larghezza al tocco */
  .pdp-stage .pdp-thumbs button { width: 44px; }
}
/* telefoni stretti: «Aggiungi al carrello · 3,90 €» non sta insieme al disco della freccia;
   il disco si toglie e la scritta si centra, la conferma resta (verde, con la spunta nel testo) */
@media (max-width: 420px) {
  .pdp-buy #pdpAdd { justify-content: center; padding: 0 12px; font-size: clamp(13px, 3.7vw, 15px); white-space: nowrap; }
  .pdp-buy #pdpAdd .arr { display: none; }
  #pdpAdd.is-added #pdpAddLbl::before { content: "✓\00a0"; font-weight: 700; }
}
/* barra fissa: il prezzo accanto alla scritta respira un filo di più attorno al «·» */
.pdp-add-prezzo { word-spacing: .1em; font-variant-numeric: tabular-nums; }

/* ============================================================
   SCHEDA DEL PEZZO, RIFINITURA (30/11)
   - «Pezzi» in evidenza su tutta la riga: numero grande, etichetta piccola,
     un quadratino per pezzo (al massimo due file, oltre 20 «+N»)
   - unità più piccole e staccate da uno spazio fisso, «×» attenuato
   ============================================================ */
.pdp-tile .pdp-u { font-size: .76em; font-weight: 560; letter-spacing: 0; color: var(--pdp-ink-3); }
.pdp-tile .pdp-x { font-weight: 500; color: var(--pdp-ink-4); }
.pdp-tile dd b { text-wrap: balance; }

.pdp-tile.pdp-pezzi {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto;
  grid-template-areas: "n dt dots" "n s dots";
  align-items: center; gap: 3px 18px; padding: 18px 20px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--cat) 6%, var(--pdp-paper)) 0%, var(--pdp-paper) 70%);
}
.pdp-pezzi:hover { background: #fff; }
.pdp-pezzi dd { display: contents; }
.pdp-pezzi dt { grid-area: dt; align-self: end; padding-top: 0; }
.pdp-pezzi .pdp-pezzi-n {
  grid-area: n; align-self: stretch; display: flex; align-items: center;
  min-width: 1.4em; padding-right: 18px; border-right: 1px solid var(--pdp-hair);
  font-family: var(--font-display); font-size: 2.7rem; font-weight: 640; line-height: .9; letter-spacing: -.05em;
  font-variation-settings: "opsz" 48; font-variant-numeric: lining-nums tabular-nums; color: var(--ink);
}
.pdp-pezzi dd small { grid-area: s; align-self: start; margin-top: 0; }
.pdp-pezzi-dots {
  grid-area: dots; justify-self: end;
  display: grid; grid-template-columns: repeat(var(--c, 10), 9px); grid-auto-rows: 9px; gap: 4px;
}
.pdp-pezzi-dots i {
  border-radius: 2.5px;
  background: color-mix(in srgb, var(--cat) 72%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 60%, #15140F 10%), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pdp-pezzi-dots em {
  align-self: center; justify-self: start; white-space: nowrap; font-style: normal;
  font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: .02em; color: var(--pdp-ink-3);
}
@media (max-width: 600px) {
  .pdp-tile.pdp-pezzi { grid-template-areas: "n dt dots" "n s s"; gap: 4px 14px; padding: 15px 14px 14px; }
  .pdp-pezzi .pdp-pezzi-n { padding-right: 14px; font-size: 2.3rem; }
  .pdp-pezzi-dots { align-self: end; grid-template-columns: repeat(var(--c, 10), 7px); grid-auto-rows: 7px; gap: 3px; }
  .pdp-pezzi-dots i { border-radius: 2px; }
}
