/* ==========================================================================
   Incrediwear Italia · nuova scheda prodotto
   Stili dei blocchi. Tutte le classi hanno prefisso .iw- per non toccare
   Woodmart. In WordPress: Aspetto > Personalizza > CSS aggiuntivo
   (oppure Woodmart > Theme Settings > Custom CSS).
   ========================================================================== */

:root {
  --iw-orange: #fb661d;
  --iw-orange-btn: #fc8600;      /* colore attuale del pulsante ACQUISTA */
  --iw-orange-soft: #fff1e9;
  --iw-ink: #1b1e23;
  --iw-gray: #555a5f;
  --iw-line: #eaebec;
  --iw-bg-soft: #f7f7f7;
  --iw-white: #ffffff;
  --iw-star: #e6a000;
  --iw-radius: 12px;
  --iw-font: "Poppins", Arial, Helvetica, sans-serif;
}

.iw-section { font-family: var(--iw-font); color: var(--iw-ink); padding: 72px 20px; }
.iw-section--soft { background: var(--iw-bg-soft); }
/* due sezioni bianche di seguito: niente padding doppio, così lo spazio tra le sezioni resta uguale ovunque */
.iw-section:not(.iw-section--soft):not(.iw-section--dark) + .iw-section:not(.iw-section--soft):not(.iw-section--dark) { padding-top: 0; }
.iw-section--dark { background: var(--iw-ink); color: var(--iw-white); }
.iw-wrap { max-width: 1222px; margin: 0 auto; }
.iw-wrap--narrow { max-width: 820px; margin: 0 auto; }
.iw-h2 { font-family: var(--iw-font); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; color: inherit; }
.iw-h2--center { text-align: center; }
.iw-lead { font-size: 17px; line-height: 1.65; color: var(--iw-gray); margin: 0 0 40px; }
.iw-section--dark .iw-lead { color: #c9ccd0; }
.iw-lead--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.iw-lead--wide { max-width: 980px; }
.iw-lead--xwide { max-width: 1200px; }
.iw-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 35px; background: var(--iw-orange-btn); color: #fff !important; font: 600 14px/1 var(--iw-font); text-transform: uppercase; letter-spacing: .04em; text-decoration: none !important; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.iw-btn:hover { background: var(--iw-orange); transform: translateY(-1px); }

/* --- Stelle sopra il titolo ------------------------------------------- */
.iw-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font: 500 15px/1.3 var(--iw-font); color: var(--iw-gray) !important; text-decoration: none !important; margin-bottom: 12px; }
.iw-rating .iw-stars { font-size: 24px; letter-spacing: 3px; }
.iw-rating strong { font-size: 18px; }
.iw-rating:hover .iw-rating__count { color: var(--iw-orange); text-decoration: underline; }
.iw-stars { --iw-score: 100%; position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; color: #d8d9db; white-space: nowrap; flex-shrink: 0; }
.iw-stars::before { content: "★★★★★"; }
.iw-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--iw-score); overflow: hidden; color: var(--iw-star); }
.iw-rating strong { color: var(--iw-ink); font-weight: 600; }

/* --- Accordion (descrizione, caratteristiche, cura, taglie, spedizione) */
.iw-acc { font-family: var(--iw-font); border-top: 1px solid var(--iw-line); margin-top: 28px; }
.iw-acc details { border-bottom: 1px solid var(--iw-line); }
.iw-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--iw-ink); }
.iw-acc summary::-webkit-details-marker { display: none; }
.iw-acc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; flex-shrink: 0; margin-left: 16px; }
.iw-acc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.iw-acc summary:hover { color: var(--iw-orange); }
.iw-acc__body { padding: 0 2px 22px; font-size: 14.5px; line-height: 1.7; color: var(--iw-gray); }
.iw-acc__body p { margin: 0 0 10px; }
.iw-acc__body ul { margin: 0; padding-left: 18px; }
.iw-acc__body li { margin-bottom: 4px; }
.iw-acc__body h4 { font: 600 13px/1.4 var(--iw-font); text-transform: uppercase; letter-spacing: .05em; color: var(--iw-ink); margin: 14px 0 6px; }
.iw-mini-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.iw-mini-table th, .iw-mini-table td { border: 1px solid var(--iw-line); padding: 7px 10px; text-align: left; }
.iw-mini-table th { background: var(--iw-bg-soft); font-weight: 600; color: var(--iw-ink); }

/* --- "Usi Incrediwear se..." ------------------------------------------- */
.iw-uses { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.iw-uses__media { border-radius: var(--iw-radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--iw-line); }
.iw-uses__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iw-checklist { list-style: none; margin: 0; padding: 0; }
.iw-checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #e2e3e5; font-size: 16px; line-height: 1.55; }
.iw-checklist li:last-child { border-bottom: 0; }
.iw-checklist svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }

/* --- Scegli la taglia giusta ------------------------------------------- */
.iw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 36px; counter-reset: iw-step; }
.iw-step { background: var(--iw-bg-soft); border-radius: var(--iw-radius); padding: 28px 26px; }
.iw-step__num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--iw-orange); color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.iw-step h3 { font: 600 17px/1.35 var(--iw-font); margin: 0 0 8px; color: var(--iw-ink); }
.iw-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--iw-gray); }
.iw-center { text-align: center; }

/* --- Tabella comparativa ----------------------------------------------- */
.iw-compare { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; position: relative; margin-top: 8px; }
.iw-compare__head, .iw-compare__cell, .iw-compare__label, .iw-compare__corner { padding: 22px 24px; border-bottom: 1px solid #dcdee1; font-size: 15px; line-height: 1.55; }
.iw-compare__corner { padding: 0; }
.iw-compare__label { padding-left: 0; }
.iw-compare__label:nth-last-child(3) { border-bottom: 0; }
.iw-compare__head { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; min-height: 96px; }
.iw-compare__head img { height: 26px; width: auto; }
.iw-compare__label { font-weight: 600; display: flex; align-items: center; }
.iw-compare__cell { display: flex; gap: 14px; align-items: flex-start; }
.iw-compare__cell svg { width: 30px; height: 30px; flex-shrink: 0; }
.iw-compare__cell--no { color: var(--iw-gray); }
/* colonna Incrediwear in evidenza */
.iw-compare__head--iw, .iw-compare__cell--yes { background: var(--iw-orange-soft); border-left: 2px solid var(--iw-orange); border-right: 2px solid var(--iw-orange); }
.iw-compare__head--iw { border-top: 2px solid var(--iw-orange); border-radius: var(--iw-radius) var(--iw-radius) 0 0; }
.iw-compare__cell--last.iw-compare__cell--yes { border-bottom: 2px solid var(--iw-orange); border-radius: 0 0 var(--iw-radius) var(--iw-radius); }
.iw-compare__cell--last { border-bottom: 0; }

/* --- Che cos'è Incrediwear --------------------------------------------- */
.iw-benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 12px; }
.iw-benefit { text-align: center; padding: 26px 10px; border-radius: var(--iw-radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.iw-benefit svg { width: 56px; height: 56px; margin-bottom: 14px; }
.iw-benefit span { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }

/* --- Recensioni -------------------------------------------------------- */
.iw-rev-summary { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 8px; }
.iw-rev-summary__avg { font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.iw-rev-summary .iw-stars { font-size: 26px; }
.iw-rev-summary small { display: block; font-size: 14px; color: var(--iw-gray); margin-top: 6px; }
.iw-rev-source { text-align: center; font-size: 13px; color: var(--iw-gray); margin: 0 0 40px; }
.iw-rev-label { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.iw-rev-media { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-bottom: 44px; }
.iw-rev-media figure { margin: 0; scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: var(--iw-bg-soft); position: relative; aspect-ratio: 1; cursor: pointer; }
.iw-rev-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.iw-rev-media figure:hover img { transform: scale(1.04); }
.iw-rev-media figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(27,30,35,.8); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 20px; }
.iw-rev-list { display: grid; gap: 0; }
.iw-rev { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--iw-line); }
.iw-rev__who strong { display: block; font-size: 15px; }
.iw-rev__who span { display: block; font-size: 13px; color: var(--iw-gray); margin-top: 2px; }
.iw-rev__who .iw-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: #2c7a4b; }
.iw-rev__body .iw-stars { font-size: 15px; }
.iw-rev__body h3 { font: 600 16px/1.4 var(--iw-font); margin: 8px 0 6px; }
.iw-rev__body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--iw-gray); }
.iw-rev__date { font-size: 12.5px; color: #8a8f94; margin-top: 10px; display: block; }
.iw-rev-more { text-align: center; margin-top: 28px; }
.iw-rev-more--top { margin: -24px 0 44px; }
.iw-btn--outline { background: transparent; color: var(--iw-orange-btn) !important; box-shadow: inset 0 0 0 2px var(--iw-orange-btn); }
.iw-btn--outline:hover { background: var(--iw-orange-btn); color: #fff !important; }

/* --- FAQ --------------------------------------------------------------- */
.iw-faq { margin-top: 12px; }
.iw-faq details { background: var(--iw-white); border-radius: var(--iw-radius); margin-bottom: 12px; border: 1px solid var(--iw-line); transition: border-color .2s; }
.iw-faq details[open] { border-color: var(--iw-orange); }
.iw-faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-size: 16px; font-weight: 600; line-height: 1.45; position: relative; }
.iw-faq summary::-webkit-details-marker { display: none; }
.iw-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--iw-bg-soft); color: var(--iw-orange); font-size: 20px; font-weight: 400; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.iw-faq details[open] summary::after { content: "–"; background: var(--iw-orange); color: #fff; }
.iw-faq__a { padding: 0 24px 22px; font-size: 15px; line-height: 1.7; color: var(--iw-gray); }
.iw-faq__a p { margin: 0; }
.iw-faq__a a { color: var(--iw-orange); font-weight: 600; }

/* --- Tabella delle misure ---------------------------------------------- */
.iw-sizes { font-family: var(--iw-font); color: var(--iw-ink); background: var(--iw-white); }
.iw-sizes__head { padding: 28px 28px 20px; border-bottom: 3px solid var(--iw-orange); }
.iw-sizes__kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--iw-orange); margin-bottom: 4px; }
.iw-sizes__title { font: 600 26px/1.2 var(--iw-font); margin: 0 0 8px; color: var(--iw-ink); }
.iw-sizes__hint { margin: 0; font-size: 14px; line-height: 1.55; color: var(--iw-gray); max-width: 560px; }
.iw-sizes__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.iw-sizes__table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.iw-sizes__table thead th { position: sticky; top: 0; z-index: 2; background: var(--iw-ink); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 12px 8px; text-align: center; white-space: nowrap; }
.iw-sizes__table thead th.iw-sizes__prod { text-align: left; padding-left: 28px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; left: 0; z-index: 3; }
.iw-sizes__table tbody th[scope="row"] { text-align: left; font-weight: 400; padding: 12px 16px 12px 28px; min-width: 230px; background: var(--iw-white); position: sticky; left: 0; z-index: 1; }
.iw-sizes__table tbody th strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.iw-sizes__table tbody th span { display: block; font-size: 12px; color: var(--iw-gray); margin-top: 2px; line-height: 1.35; }
.iw-sizes__table td { text-align: center; padding: 12px 6px; white-space: nowrap; font-weight: 500; }
.iw-sizes__table tbody tr:not(.iw-sizes__group) > * { border-bottom: 1px solid var(--iw-line); }
.iw-sizes__table td.na { color: #c3c6c9; font-weight: 400; }
/* linee sottili grigie tra le colonne delle taglie */
.iw-sizes__table td { border-left: 1px solid var(--iw-line); }
.iw-sizes__table thead th + th { border-left: 1px solid rgba(255,255,255,.14); }
.iw-sizes__group th { text-align: left; background: var(--iw-bg-soft); color: var(--iw-orange); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 9px 28px; border-bottom: 1px solid var(--iw-line); position: sticky; left: 0; }
.iw-sizes__table tbody tr:not(.iw-sizes__group):hover > * { background-color: #fffaf6; }
.iw-sizes__table tr.is-current > * { background-color: var(--iw-orange-soft) !important; }
.iw-sizes__table tr.is-current th[scope="row"] { box-shadow: inset 4px 0 0 var(--iw-orange); }
.iw-sizes__table tr.is-current th strong::after { content: "Questo prodotto"; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 20px; background: var(--iw-orange); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.iw-sizes__foot { margin: 0; padding: 14px 28px 20px; font-size: 12.5px; color: var(--iw-gray); }
.iw-sizes__foot a { color: var(--iw-orange); font-weight: 600; }
.iw-sizes__dash { color: #c3c6c9; font-weight: 600; }

/* --- Fascia recensioni (sotto la hero della home) -------------------- */
.iw-fascia { font-family: var(--iw-font); color: var(--iw-ink); padding: 28px 20px; border-bottom: 1px solid var(--iw-line); }
.iw-fascia__in { max-width: 1222px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; }
.iw-fascia__faces { display: flex; }
.iw-fascia__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; box-shadow: 0 0 0 1px var(--iw-line); }
.iw-fascia__faces img:first-child { margin-left: 0; }
.iw-fascia__score { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--iw-gray); }
.iw-fascia__score strong { font-size: 28px; font-weight: 600; line-height: 1; color: var(--iw-ink); }
.iw-fascia__score .iw-stars { font-size: 20px; }
.iw-fascia__link { font: 600 14px/1.3 var(--iw-font); color: var(--iw-ink) !important; text-decoration: underline !important; text-underline-offset: 4px; white-space: nowrap; }
.iw-fascia__link:hover { color: var(--iw-orange) !important; }

/* --- Niente vedove da desktop (parola isolata sull'ultima riga) ---------- */
@media (min-width: 1025px) {
  .iw-section h2, .iw-section h3, .iw-rev__body h3, .iw-faq summary { text-wrap: balance; }
  .iw-section p, .iw-section li, .iw-step p, .iw-compare__cell span, .iw-acc__body p, .iw-acc__body li, .iw-faq__a p { text-wrap: pretty; }
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .iw-benefits { grid-template-columns: repeat(3, 1fr); }
  .iw-uses { gap: 40px; }
}
@media (max-width: 768px) {
  .iw-section { padding: 52px 16px; }
  .iw-uses { grid-template-columns: 1fr; }
  .iw-uses__media { aspect-ratio: 16 / 10; }
  .iw-steps { grid-template-columns: 1fr; gap: 14px; }
  .iw-benefits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .iw-benefit:last-child { grid-column: 1 / -1; }
  .iw-rev { grid-template-columns: 1fr; gap: 10px; }
  .iw-rev-summary__avg { font-size: 52px; }
  /* fascia: foto, poi media e stelle, sotto il numero di valutazioni e il link */
  .iw-fascia { padding: 22px 16px; }
  .iw-fascia__in { flex-direction: column; gap: 10px; }
  .iw-fascia__score { flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
  .iw-fascia__count { flex-basis: 100%; text-align: center; font-size: 14px; }
  .iw-sizes__head { padding: 22px 16px 16px; }
  .iw-sizes__title { font-size: 22px; }
  .iw-sizes__table { min-width: 640px; font-size: 13px; }
  .iw-sizes__table thead th.iw-sizes__prod, .iw-sizes__table tbody th[scope="row"], .iw-sizes__group th, .iw-sizes__foot { padding-left: 16px; }
  .iw-sizes__table tbody th[scope="row"] { min-width: 150px; max-width: 150px; box-shadow: 4px 0 8px -6px rgba(0,0,0,.18); }
  .iw-sizes__table tr.is-current th strong::after { display: block; width: max-content; margin: 4px 0 0; }
  /* tabella comparativa: etichetta su riga intera, sotto le due colonne */
  .iw-compare { grid-template-columns: 1fr 1fr; }
  .iw-compare__corner { display: none; }
  .iw-compare__label { grid-column: 1 / -1; justify-content: center; background: var(--iw-ink); color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-top: 14px; border-bottom: 0; }
  .iw-compare__cell--yes { border: 2px solid var(--iw-orange); border-radius: var(--iw-radius); margin: 8px 6px 0 0; }
  .iw-compare__cell--no { margin: 8px 0 0 6px; }
  .iw-compare__head--iw { border-bottom: 2px solid var(--iw-orange); border-radius: var(--iw-radius); margin-right: 6px; }
  .iw-compare__head { min-height: 72px; padding: 14px; font-size: 14px; }
  .iw-compare__head img { height: 18px; }
  .iw-compare__cell { padding: 16px 12px; font-size: 14px; gap: 8px; flex-direction: column; }
  .iw-compare__cell svg { width: 24px; height: 24px; }
}

/* ==========================================================================
   Integrazione con il tema Woodmart (solo schede con la nuova grafica)
   ========================================================================== */

/* sezioni con sfondo a tutta larghezza anche dentro il contenitore del tema */
.iw-scheda .iw-section--soft { box-shadow: 0 0 0 100vmax var(--iw-bg-soft); clip-path: inset(0 -100vmax); }
.iw-scheda .iw-section--dark { box-shadow: 0 0 0 100vmax var(--iw-ink); clip-path: inset(0 -100vmax); }
.iw-scheda .iw-h2, .iw-scheda .iw-step h3, .iw-scheda .iw-rev__body h3 { text-transform: none; }

/* colonne immagini / testo e miniature, come nell'anteprima (solo desktop):
   immagini 1,1 : testo 1, 56px in mezzo, miniature strette (5 per colonna, vedi scheda.js) */
@media (min-width: 1025px) {
	.iw-scheda .product-image-summary-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important; column-gap: 56px; }
	.iw-scheda .product-image-summary-inner > .wd-grid-col { grid-column: auto !important; }
	/* Woodmart riserva 132px alle miniature: con 76px + 10px di spazio la foto principale riempie la colonna */
	.iw-scheda .woocommerce-product-gallery { --wd-thumbs-width: 86px !important; }
	.iw-scheda .woocommerce-product-gallery .wd-gallery-thumb { flex: 0 0 76px !important; width: 76px !important; max-width: 76px !important; }
	.iw-scheda .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel { --wd-col-lg: 5 !important; }
	.iw-scheda .woocommerce-product-gallery .wd-gallery-images { flex: 1 1 auto !important; min-width: 0; }
}

/* le sezioni stanno già nel contenitore del tema (con i suoi margini): niente margini laterali doppi su desktop */
@media (min-width: 1025px) {
	.iw-scheda .iw-section { padding-left: 0; padding-right: 0; }
}

/* titolo prodotto nero come nell'anteprima */
.iw-scheda .summary .product_title { color: #000; }

/* contenitore delle tab rimasto vuoto (le due righe grigie): nascosto */
.iw-scheda .product-tabs-wrapper { display: none !important; }

/* aria sopra "Altre persone hanno scelto anche" (prima la dava il contenitore delle tab) */
.iw-scheda .related-and-upsells { margin-top: 80px; }

/* niente spazio bianco sopra il footer: l'ultima sezione (FAQ) arriva fino in fondo */
.iw-scheda main.wd-content-layout { padding-bottom: 0 !important; }

/* titolo "Altre persone hanno scelto anche" grande come gli altri titoli di sezione */
.iw-scheda .related-products .wd-el-title { font-family: var(--iw-font); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--iw-ink); text-transform: none; margin-bottom: 28px; }

/* "Ti potrebbe interessare…" di Woodmart: nascosto (gli upsell restano nel box "Aggiungi gli altri prodotti") */
.iw-scheda .upsells-carousel { display: none !important; }

/* stelle sopra il titolo e ancoraggio sotto l'header fisso */
.iw-scheda .iw-rating { display: inline-flex; }
.iw-scheda #iw-recensioni { scroll-margin-top: 110px; }

/* prezzo (dopo la descrizione breve) */
.iw-scheda .summary .price { margin-bottom: 22px; }
.iw-scheda .summary .price .woocommerce-price-suffix { font-size: 12.5px !important; font-weight: 400; color: var(--iw-gray); margin-left: 2px; }

/* Taglia / Colore: etichetta sopra, come nell'anteprima */
.iw-scheda table.variations { margin: 0 !important; width: 100%; }
.iw-scheda table.variations tbody, .iw-scheda table.variations tr { display: block; }
.iw-scheda table.variations tr { margin: 0 0 16px; }
.iw-scheda table.variations tr:last-child { margin-bottom: 0; }
.iw-scheda table.variations th.label, .iw-scheda table.variations td.value { display: block; width: auto; padding: 0; border: 0; text-align: left; }
.iw-scheda table.variations th.label label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #000; text-transform: none; letter-spacing: 0; }
.iw-scheda table.variations th.label label::after { content: none !important; }
.iw-scheda table.variations .wd-attr-selected { display: none !important; }
.iw-scheda table.variations select { appearance: none; -webkit-appearance: none; width: auto; min-width: 210px; max-width: 100%; height: auto; padding: 11px 40px 11px 16px; border: 1px solid #d5d7da; border-radius: 35px; font-size: 14px; line-height: 1.3; color: #000; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; box-shadow: none; }
.iw-scheda .wd-reset-var { flex-basis: 100%; margin-top: 8px; }

/* pallini colore */
.iw-scheda .wd-swatches-product { gap: 10px; }
.iw-scheda .wd-swatches-product .wd-swatch.wd-bg { width: 30px; height: 30px; min-width: 30px; margin: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: 0 0 0 1px #d5d7da; }
.iw-scheda .wd-swatches-product .wd-swatch.wd-bg::before, .iw-scheda .wd-swatches-product .wd-swatch.wd-bg::after { display: none; }
.iw-scheda .wd-swatches-product .wd-swatch.wd-bg .wd-swatch-bg { width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; }
.iw-scheda .wd-swatches-product .wd-swatch.wd-bg.wd-active { box-shadow: 0 0 0 2px var(--iw-orange); }

/* "Guida alle taglie" accanto alla scelta della taglia (quella di Woodmart non serve più) */
.iw-scheda .wd-sizeguide-btn { display: none !important; }
.iw-scheda .iw-taglia-cella { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.iw-guida-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--iw-font); color: #000 !important; text-decoration: underline !important; text-underline-offset: 3px; white-space: nowrap; }
.iw-guida-btn:hover { color: var(--iw-orange) !important; }

/* popup tabella misure */
.iw-sg { border: 0; border-radius: 12px; padding: 0; width: min(980px, 94vw); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.iw-sg::backdrop { background: rgba(27,30,35,.6); }
.iw-sg__close { position: sticky; top: 12px; float: right; margin: 12px 12px -46px 0; z-index: 2; border: 0; background: #f7f7f7; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: #1b1e23; padding: 0; }
.iw-sg__close:hover { background: var(--iw-orange); color: #fff; }
.iw-sg__img { display: block; width: 100%; height: auto; }

/* box IncrediPrime sopra quantità + Acquista: 30px sotto i colori, come nell'anteprima */
.iw-scheda .delivery-countdown-box,
.iw-scheda .single_variation_wrap .delivery-countdown-box { margin: 30px 0 22px !important; }

/* quantità + Acquista: il pulsante occupa il resto della riga
   (Woodmart blocca flex-grow, quindi si usa una larghezza minima: quantità 80px + spazio 12px) */
.iw-scheda .variations_button, .iw-scheda form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.iw-scheda form.cart .single_add_to_cart_button { min-width: calc(100% - 92px) !important; min-height: 46px; font-size: 15px; }

/* più aria sopra "Aggiungi gli altri prodotti Incrediwear" */
.iw-scheda .cc-ups { margin-top: 36px !important; }

/* accordion nella colonna del prodotto */
.iw-scheda .iw-acc { margin: 28px 0 24px; }
.iw-scheda .iw-acc__body h4 { margin-top: 14px; }
.iw-scheda .iw-acc__body h4:first-child { margin-top: 0; }
.iw-scheda .iw-acc__body ul { list-style: disc; }

/* ==========================================================================
   Recensioni nelle altre pagine (shortcode [incrediwear_recensioni] in Elementor)
   Stesse regole delle schede, con .iw-blocco al posto di .iw-scheda: il resto della pagina non cambia.
   ========================================================================== */

.iw-blocco .iw-section--soft { box-shadow: 0 0 0 100vmax var(--iw-bg-soft); clip-path: inset(0 -100vmax); }
/* titoli: gli stili globali di Elementor (.elementor-kit-… h2) non devono cambiarli */
.iw-blocco .iw-h2 { font: 600 clamp(26px, 3.2vw, 38px)/1.15 var(--iw-font); letter-spacing: -0.01em; color: var(--iw-ink); text-transform: none; margin: 0 0 16px; }
.iw-blocco .iw-rev__body h3 { font: 600 16px/1.4 var(--iw-font); text-transform: none; letter-spacing: 0; margin: 8px 0 6px; }
/* Elementor toglie l'ombra ai link (.elementor a) e rimette l'altezza automatica alle immagini (.elementor img) */
.iw-blocco .iw-btn--outline { box-shadow: inset 0 0 0 2px var(--iw-orange-btn); }
.iw-blocco .iw-rev-media img { height: 100%; }
/* la colonna di Elementor ha già i suoi margini laterali (anche su telefono): niente margini doppi,
   così il blocco resta allineato agli altri contenuti della pagina */
.iw-blocco .iw-section, .iw-blocco .iw-fascia { padding-left: 0; padding-right: 0; }
/* il link della fascia porta alla sezione completa: si ferma sotto l'header fisso */
.iw-blocco #iw-recensioni { scroll-margin-top: 110px; }
.iw-blocco .iw-fascia__faces img { height: 44px; border-radius: 50%; }
