/* Cascina Bonfiglio — SEZIONE: Cofanetto personalizzato (Figma 226:5949).
   Override on top of scheda.css. Layout identico ma:
   - niente prezzo/qty/bullets/rewards
   - CTA singolo "Scegli e componi"
   - solo 2 tab
   - reviews con summary 4.9★ a sinistra
   - sezione finale "Vuoi una soluzione già pronta?" con 2 cofanetti
*/

/* Hero — width pill larger to fit "vasetti di varie misure" */
.cb-cofanetto .cb-scheda__size-pill { padding: 6px 14px; }

/* Figma 226:5967: breadcrumb lowercase (vs scheda uppercase). */
.cb-cofanetto .cb-scheda__crumbs { text-transform: none; letter-spacing: 0.02em; }

/* Reviews — summary column stack (kicker/title/score/count). */
.cb-cofanetto-reviews .cb-scheda-reviews__summary { display: block; }
.cb-cofanetto-reviews .cb-scheda-reviews__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
    .cb-cofanetto-reviews .cb-scheda-reviews__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .cb-cofanetto-reviews .cb-scheda-reviews__list {
        grid-template-columns: 1fr;
    }
}

/* Figma 226:5979: lead-in grassetto scuro + body gray. */
.cb-cofanetto__desc-lead {
    margin: 40px 0 10px;
    font-family: var(--cb-font-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cb-brown);
    max-width: 700px;
}
.cb-cofanetto__desc {
    margin: 0 0 22px;
    font-family: var(--cb-font-body);
    font-size: 16px;
    line-height: 1.55;
    color: #51544c;
    max-width: 700px;
}

/* CTA singolo: full-width verde + wishlist a destra */
.cb-cofanetto__cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    margin-top: 40px;
}
.cb-cofanetto__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 20px;
    background: var(--cb-green);
    color: var(--cb-white);
    border: 0;
    border-radius: 999px;
    font-family: var(--cb-font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .2s ease;
}
.cb-cofanetto__cta:hover { background: var(--cb-green-dark, #6a8a4f); }

/* Suggested cofanetti (sezione "Vuoi una soluzione già pronta?") —
   Figma 226:6598: bg verde chiaro con onda sul top. */
.cb-cofanetto-suggested {
    position: relative;
    padding: 140px 24px 100px;
    background: #FFF5E6;
}
/* Onda bianca scalabile sul top — riusa il path dal Vector Figma 23:1166 (invertito V) */
.cb-cofanetto-suggested::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1845 80' preserveAspectRatio='none'><path d='M0 0H1845V80C1406.32 0 1237.48 80 743.236 50C347.841 30 0 80 0 80Z' fill='%23000'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1845 80' preserveAspectRatio='none'><path d='M0 0H1845V80C1406.32 0 1237.48 80 743.236 50C347.841 30 0 80 0 80Z' fill='%23000'/></svg>");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
/* Onda verde inferiore gestita dal footer .cb-footer__bite (riabilitato). */
.cb-cofanetto-suggested__kicker { color: #000 !important; }
.cb-cofanetto-suggested__title { color: #000 !important; }
.cb-cofanetto-card { background: #fff; }
.cb-cofanetto-suggested__inner {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}
.cb-cofanetto-suggested__kicker {
    margin: 0;
    font-family: var(--cb-font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 1.174px;
    text-transform: uppercase;
    color: #000;
}
.cb-cofanetto-suggested__title {
    margin: 0 0 60px;
    font-family: var(--cb-font-body);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 1.174px;
    color: #000;
}
.cb-cofanetto-suggested__title-accent {
    font-family: var(--cb-font-accent);
    font-style: italic;
    font-weight: 700;
    font-size: 1.35em;
    color: #000;
    padding-left: .05em;
}
.cb-cofanetto-suggested__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 395px));
    gap: 42px;
    justify-content: center;
}

.cb-cofanetto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    text-align: left;
}
.cb-cofanetto-card__media { aspect-ratio: 395 / 296; overflow: hidden; position: relative; }

/* Card listing-style dentro la sezione cofanetti suggeriti: foto fissa 297px,
   body bianco fissa 150px. */
.cb-cofanetto-suggested__grid .cb-card {
    aspect-ratio: auto !important;
    height: auto !important;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__media {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: 297px !important;
    aspect-ratio: auto !important;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__body {
    position: relative !important;
    inset: auto !important;
    height: 150px !important;
    min-height: 150px !important;
    text-align: left !important;
    gap: 0px;
    background: #fff !important;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__head,
.cb-cofanetto-suggested__grid .cb-card .cb-card__unit {
    text-align: left !important;
    align-items: flex-start !important;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__unit {
    text-transform: uppercase;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__price-wrap {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: left;
    color: #000;
    text-align: left;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__price {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 24px;
    font-weight: 700;
    line-height: 35px;
    min-height: auto;
}

/* Solo nella pagina cofanetto: padding bottom recensioni ridotto. */
body.cb-cofanetto-body .cb-rev {
    position: relative;
    background: #FFFFFF;
    padding: 50px 0 30px;
}

/* Breadcrumb cofanetto in uppercase. */
.cb-cofanetto .cb-scheda__crumbs,
.cb-cofanetto .cb-scheda__crumbs a,
.cb-cofanetto .cb-scheda__crumbs span,
body.cb-cofanetto-body .cb-scheda__crumbs,
body.cb-cofanetto-body .cb-scheda__crumbs a,
body.cb-cofanetto-body .cb-scheda__crumbs span {
    text-transform: uppercase;
}
/* Breadcrumb spostato sopra inner: deve occupare riga intera del grid 2-colonne. */
.cb-cofanetto .cb-scheda__crumbs--top {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

/* Mobile cofanetto: ordine identico alla scheda prodotto (eredita display:contents
   di gallery/info da scheda.css mobile). Aggiungo SOLO order per gli elementi
   cofanetto-specifici (desc-lead, desc, cta-row) per inserirli al posto giusto. */
@media (max-width: 768px) {
    /* Badges in 2 colonne (come scheda prodotto mobile). */
    body.cb-cofanetto-body .cb-scheda__badges {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }
    /* Elementi cofanetto-specifici: inserisco dopo i badges e prima dello sep. */
    body.cb-cofanetto-body .cb-cofanetto__desc-lead { order: 8; margin-top: 20px; }
    body.cb-cofanetto-body .cb-cofanetto__desc      { order: 9; margin-block-end: 0px; }
    body.cb-cofanetto-body .cb-cofanetto__cta-row   { order: 11; flex-direction: column; gap: 10px; margin-top: 0px; flex-direction: revert-layer; }
    /* La scheda prodotto applica order: 4 al .cb-scheda__thumbs-wrap, ma cofanetto
       ha solo .cb-scheda__thumbs (senza wrap): senza questa regola finivano in
       posizione 0 (prima di crumbs). */
    body.cb-cofanetto-body .cb-scheda__thumbs { order: 4 !important; margin: 0 0 18px; }
}

/* Separatore <hr> tra cofanetto-tabs e recensioni: stessa larghezza dei contenuti. */
.cb-cofanetto-sep__wrap {
    max-width: 1438px;
    margin: 0 auto;
    background: #fff;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 40px;
    padding: 0 45px;
}
.cb-cofanetto-sep {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0;
}
.cb-cofanetto-suggested__grid .cb-card .cb-card__title {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 22px;
    text-align: left;
    min-height: calc(1.05em * 1) !important;
}
.cb-cofanetto-card__like {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cb-cofanetto-card__like img { width: 18px; height: 17px; }
.cb-cofanetto-card__media img { width: 100%; height: auto; object-fit: cover; display: block; }
.cb-cofanetto-card__body { padding: 20px; }
.cb-cofanetto-card__kicker {
    margin: 0 0 6px;
    font-family: var(--cb-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--cb-green);
    text-transform: uppercase;
}
.cb-cofanetto-card__title {
    margin: 0 0 24px;
    font-family: var(--cb-font-heading, 'Nunito Sans', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--cb-brown, #3a2a1c);
}
.cb-cofanetto-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cb-cofanetto-card__price {
    margin: 0;
    font-family: var(--cb-font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--cb-brown);
}
.cb-cofanetto-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--cb-green);
    color: var(--cb-white);
    border: 0;
    border-radius: 999px;
    font-family: var(--cb-font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .2s ease;
}
.cb-cofanetto-card__cta:hover { background: var(--cb-green-dark, #6a8a4f); }

/* ---------- Overlay composer (Figma 226:6846 / 226:7418 / 230:8099) ----------
   Modal centrato 897xVar (radius 20). Stepper 3 vasetti progressivi.
   Tabs categorie pill. Grid prodotti 2x con bg cream + bottone verde rotondo.
   Step finale (3/3 pieni): color picker Panna/Verde + CTA "Aggiungi al carrello e concludi".
*/
.cb-cofanetto-overlay {
    position: fixed;
    inset: 0;
    z-index: 240; /* sopra al floating loyalty (230) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
/* Nasconde il floating loyalty sulla pagina cofanetto (collide col CTA verde
   "Scegli e componi" e col modal composer). */
body.cb-cofanetto-body .cb-loyalty-floater,
body.cb-cofanetto-open .cb-loyalty-floater {
    display: none !important;
}
.cb-cofanetto-overlay[hidden] { display: none; }
.cb-cofanetto-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 12, .55);
    animation: cb-fade-in .25s ease;
}
.cb-cofanetto-modal {
    position: relative;
    width: min(897px, 100%);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    box-sizing: border-box;
    overflow-y: auto;
    animation: cb-fade-in .2s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
@keyframes cb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cb-pop-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

.cb-cofanetto-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #51544c;
    cursor: pointer;
    transition: background .15s ease;
}
.cb-cofanetto-modal__close:hover { background: #f3eee5; }

.cb-cofanetto-modal__head { text-align: center; padding: 0 16px; }
.cb-cofanetto-modal__title {
    margin: 0 0 6px;
    font-family: var(--cb-font-body, 'Nunito Sans', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.cb-cofanetto-modal__sub {
    margin: 0;
    font-family: var(--cb-font-body, 'Nunito Sans', sans-serif);
    font-size: 18px;
    font-weight: 400;
    color: #000;
}
.cb-cofanetto-modal__sub strong { font-weight: 700; }

/* Stepper vasetti (3 slot progressivi). Linea sottile sotto, vasetti sopra. */
.cb-cofanetto-jars {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 40px);
    align-items: center;
    justify-content: center;
    gap: 175px;
    position: relative;
    width: 462px;
    max-width: 100%;
    height: 40px;
}
.cb-cofanetto-jars::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #d8d2c8;
    transform: translateY(-50%);
    z-index: 0;
}
.cb-cofanetto-jars__item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d8d2c8;
    color: #d8d2c8;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cb-cofanetto-jars__item.is-filled {
    background: var(--cb-green, #a8c780);
    border-color: var(--cb-green, #a8c780);
    color: #fff;
}
.cb-cofanetto-jars__icon { display: inline-flex; }
.cb-cofanetto-jars__icon svg { width: 22px; height: 26px; }

/* Tabs categorie (pill) */
.cb-cofanetto-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 0px;
}
.cb-cofanetto-tabs__btn {
    padding: 8px 22px;
    border: 1px solid #e0d9cd;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-family: var(--cb-font-body, 'Nunito Sans', sans-serif);
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cb-cofanetto-tabs__btn:hover { border-color: var(--cb-green, #a8c780); }
.cb-cofanetto-tabs__btn.is-active {
    background: var(--cb-green, #a8c780);
    border-color: var(--cb-green, #a8c780);
    color: #fff;
}

/* Grid prodotti (2 col x N row, bg cream, bottone Aggiungi pill verde) */
.cb-cofanetto-modal__body { padding: 0 8px; }
.cb-cofanetto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.cb-cofanetto-grid[hidden] { display: none; }

.cb-cofanetto-prod {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff5e6;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cb-cofanetto-prod.is-selected {
    border-color: var(--cb-green, #a8c780);
    box-shadow: 0 0 0 3px rgba(168, 199, 128, .25);
}
.cb-cofanetto-prod__media {
    width: 64px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.cb-cofanetto-prod__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cb-cofanetto-prod__body { min-width: 0; }
.cb-cofanetto-prod__title {
    margin: 0 0 1px;
    font-family: var(--cb-font-body);
    font-size: 13px;
    font-weight: 700;
    color: #000;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cb-cofanetto-prod__unit {
    margin: 0 0 4px;
    font-family: var(--cb-font-body);
    font-size: 11px;
    color: #51544c;
    line-height: 1;
}
.cb-cofanetto-prod__price {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 14px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.cb-cofanetto-prod__cta {
    align-self: center;
    min-width: 91px;
    padding: 7px 16px;
    background: var(--cb-green, #a8c780);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: var(--cb-font-body);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.cb-cofanetto-prod__cta:hover { background: var(--cb-green-dark, #6a8a4f); }
.cb-cofanetto-prod.is-selected .cb-cofanetto-prod__cta { background: #c47a6a; }
.cb-cofanetto-prod.is-selected .cb-cofanetto-prod__cta:hover { background: #a85b4b; }

/* Step3 finale: colore + CTA "Aggiungi al carrello e concludi" */
.cb-cofanetto-final {
    margin-top: 8px;
    padding: 18px 16px 4px;
    border-top: 1px solid #efe9e2;
    text-align: center;
}
.cb-cofanetto-final[hidden] { display: none; }
.cb-cofanetto-final__title {
    margin: 0 0 14px;
    font-family: var(--cb-font-body);
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.cb-cofanetto-colors {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 23px;
    margin: 0 auto 18px;
}
.cb-cofanetto-color {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.cb-cofanetto-color input { position: absolute; opacity: 0; pointer-events: none; }
.cb-cofanetto-color__swatch {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color .15s ease, transform .15s ease;
    background-clip: padding-box;
}
.cb-cofanetto-color__swatch--panna { background: #f3e6c8; }
.cb-cofanetto-color__swatch--verde { background: #a8c780; }
.cb-cofanetto-color:has(input:checked) .cb-cofanetto-color__swatch {
    border-color: var(--cb-brown, #3a2a1c);
    transform: scale(1.04);
}
.cb-cofanetto-color__label {
    font-family: var(--cb-font-body);
    font-size: 13px;
    color: #000;
}
.cb-cofanetto-final__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(644px, 100%);
    min-height: 48px;
    padding: 12px 24px;
    background: var(--cb-green, #a8c780);
    color: #fff;
    border: 0;
    border-radius: 100px;
    font-family: var(--cb-font-body);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}
.cb-cofanetto-final__cta:hover { background: var(--cb-green-dark, #6a8a4f); }
.cb-cofanetto-final__cta[disabled] { opacity: .5; cursor: not-allowed; }

/* ----- Responsive cofanetto ----- */
@media (max-width: 1280px) {
    .cb-cofanetto-suggested { padding: 100px 0px 70px !important; }
}

@media (max-width: 550px) {
    .cb-cofanetto-suggested__grid {
        grid-template-columns: repeat(1, minmax(0, 300px)) !important;
        gap: 20px !important;
        justify-content: center !important;
    }
}

.cb-cofanetto-suggested .cb-card {
    aspect-ratio: 175 / 350;
    border-radius: 20px !important;
}

@media (max-width: 1024px) {
    .cb-cofanetto-suggested { padding: 60px 0; }
    .cb-cofanetto-suggested__title { font-size: 30px; margin-bottom: 36px; }
    .cb-cofanetto-suggested__grid { gap: 24px; }
}

@media (max-width: 768px) {
    .cb-cofanetto-suggested { padding: 40px 0; }
    .cb-cofanetto-suggested__inner { padding: 0 16px; }
    .cb-cofanetto-suggested__title { font-size: 30px; line-height: 1.15; margin-bottom: 28px; letter-spacing: 0.5px; }
    .cb-cofanetto-suggested__title-accent { font-size: 1.3em; }
    /* grid 1 col 300px spostato in @media 500 (vedi sotto). */

    /* Card body cofanetto a 768: compatto, testi piu' piccoli, CTA stretto. */
    .cb-cofanetto-suggested__grid .cb-card .cb-card__body {
        height: auto !important;
        min-height: 0 !important;
        padding: 14px !important;
    }
    .cb-cofanetto-suggested__grid .cb-card .cb-card__unit {
        font-size: 11px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.5px;
    }
    .cb-cofanetto-suggested__grid .cb-card .cb-card__title {
        font-size: 17px !important;
        line-height: 1.2 !important;
        min-height: 0 !important;
    }
    .cb-cofanetto-suggested__grid .cb-card .cb-card__price {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
    .cb-cofanetto-suggested__grid .cb-card .cb-card__cta {
        font-size: 13px !important;
        padding: 8px 14px !important;
        gap: 6px;
    }
    /* Togli il "+" pseudo generato da listing.css mobile sulla CTA. */
    .cb-cofanetto-suggested__grid .cb-card .cb-card__cta::after { content: none !important; display: none !important; }
    .cb-cofanetto-card__body { padding: 16px; }
    .cb-cofanetto-card__title { font-size: 18px; margin-bottom: 14px; }
    .cb-cofanetto-card__price { font-size: 22px; }
    .cb-cofanetto-card__cta { font-size: 13px; padding: 8px 16px; }

    .cb-cofanetto__desc-lead { font-size: 17px; }
    .cb-cofanetto__desc { font-size: 14px; }
    .cb-cofanetto__cta-row { flex-direction: column; gap: 10px; }
    .cb-cofanetto__cta { width: 100%; padding: 12px 18px; font-size: 14px; }
}

/* Overlay composer responsive */
@media (max-width: 1024px) {
    .cb-cofanetto-modal { padding: 26px 28px 24px; }
    .cb-cofanetto-jars { gap: 120px; width: auto; }
}

@media (max-width: 768px) {
    .cb-cofanetto-overlay { padding: 12px; }
    .cb-cofanetto-modal { padding: 22px 18px 20px; max-height: calc(100vh - 24px); border-radius: 16px; }
    .cb-cofanetto-modal__close { top: 12px; right: 12px; }
    .cb-cofanetto-modal__title { font-size: 16px; }
    .cb-cofanetto-modal__sub { font-size: 14px; }

    .cb-cofanetto-jars { gap: 0; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
    .cb-cofanetto-jars__item { width: 36px; height: 36px; margin: 0 auto; }

    .cb-cofanetto-tabs { gap: 8px; }
    .cb-cofanetto-tabs__btn { padding: 6px 14px; font-size: 11px; }

    .cb-cofanetto-grid { grid-template-columns: 1fr; gap: 10px; }
    .cb-cofanetto-prod { padding: 10px; gap: 10px; grid-template-columns: 56px 1fr auto; }
    .cb-cofanetto-prod__media { width: 56px; height: 52px; }
    .cb-cofanetto-prod__title { font-size: 12px; }
    .cb-cofanetto-prod__cta { min-width: 78px; padding: 6px 12px; font-size: 10px; }

    .cb-cofanetto-final__title { font-size: 16px; }
    .cb-cofanetto-color__swatch { width: 60px; height: 60px; }
    .cb-cofanetto-final__cta { font-size: 14px; min-height: 44px; }
}

@media (max-width: 480px) {
    .cb-cofanetto-modal { padding: 18px 14px 16px; }
    .cb-cofanetto-prod__title { white-space: normal; }
}

/* =========================================================================
   Responsive intermedio 1025–1500px (laptop range) — pagina Cofanetto
   ========================================================================= */
@media (max-width: 1500px) {
    .cb-cofanetto-suggested { padding: 120px 24px 80px; }
    .cb-cofanetto-suggested__title { font-size: 34px; margin-bottom: 40px; }
    .cb-cofanetto-suggested__grid {
        grid-template-columns: repeat(2, minmax(0, 360px));
        gap: 32px;
    }
    .cb-cofanetto-card__title { font-size: 20px; margin-bottom: 18px; }
    .cb-cofanetto-card__price { font-size: 24px; }
}

@media (max-width: 1280px) {
    .cb-cofanetto-suggested { padding: 100px 24px 70px; }
    .cb-cofanetto-suggested__title { font-size: 30px; margin-bottom: 32px; }
    .cb-cofanetto-suggested__grid {
        grid-template-columns: repeat(2, minmax(0, 320px));
        gap: 24px;
    }
    .cb-cofanetto-card__body { padding: 18px; }
    .cb-cofanetto-card__title { font-size: 18px; margin-bottom: 16px; height: 50px; }
    .cb-cofanetto-card__price { font-size: 22px; }

    /* Reviews: titolo non spezza a metà su laptop intermedio */
    .cb-cofanetto-reviews .cb-scheda-reviews__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 1100px) {
    .cb-cofanetto-suggested__grid {
        grid-template-columns: repeat(2, minmax(0, 300px));
        gap: 20px;
    }
    .cb-cofanetto-reviews .cb-scheda-reviews__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Prezzi scontati nella card cofanetto: leggermente più piccoli e opachi */
.cb-cofanetto-card__price del,
.cb-cofanetto-card__price del .woocommerce-Price-amount {
    font-size: 0.72em;
    font-weight: 400;
    color: rgba(0, 0, 0, .40);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    margin-right: 6px;
}
.cb-cofanetto-card__price ins {
    text-decoration: none;
}
