/*
 * STORE_PRODUCT_SINGLE_CANONICAL_V4
 * Ficha producto ecommerce
 *
 * Esta hoja es la autoridad visual final de producto.php.
 * Usa las clases REALES del renderer.
 */


/* ==========================================================
   BASE
   ========================================================== */

.single-product,
.single-product *,
.single-editorial-flow,
.single-editorial-flow *{
    box-sizing:border-box;
}

.single-product{
    width:min(1440px,calc(100% - 40px));
    margin:32px auto 72px;

    display:grid;
    grid-template-columns:
        minmax(0,1.12fr)
        minmax(380px,.88fr);

    gap:14px;
    align-items:start;
}


/* ==========================================================
   GALERIA
   ========================================================== */

.single-gallery{
    min-width:0;
    align-self:start;
}

@media (min-width:981px){

    .single-gallery{
        position:sticky;
        top:88px;

        display:grid;
        grid-template-columns:68px minmax(0,1fr);
        gap:14px;

        max-height:calc(100vh - 110px);
    }

    .single-main-image{
        grid-column:2;
        grid-row:1;
    }

    .single-thumbs{
        grid-column:1;
        grid-row:1;
    }
}

.single-main-image{
    width:100%;
    aspect-ratio:1 / 1;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:#fff;
    border-radius:14px;
}

.single-main-image img{
    display:block;

    width:100%;
    height:100%;

    object-fit:contain;
    object-position:center;
}

.single-thumbs{
    display:flex;
    flex-direction:column;
    gap:9px;

    width:68px;
    max-height:600px;

    overflow-x:hidden;
    overflow-y:auto;
}

.single-thumbs img{
    display:block;

    width:64px;
    height:64px;

    object-fit:cover;
    border-radius:9px;
}


/* ==========================================================
   RAIL DERECHO
   ========================================================== */

.single-right-rail{
    width:100%;
    min-width:0;
    max-width:none;

    justify-self:stretch;
}

.single-right-rail > .single-info{
    width:100%;
    min-width:0;
}

.single-right-rail > .single-editorial-flow{
    width:100%;
    margin:30px 0 0;

    overflow:visible;
    background:transparent;
}


/* ==========================================================
   DESCRIPCION LARGA
   ========================================================== */

.single-right-rail .single-description{
    width:100%;
    margin:0 0 18px;
    padding:24px;

    border:1px solid rgba(15,23,42,.09);
    border-radius:18px;

    background:#fff;
}

.single-right-rail .single-description h2{
    margin:0 0 12px;

    font-size:25px;
    line-height:1.12;
}

.single-right-rail .single-description-text{
    font-size:14px;
    line-height:1.7;
}


/* ==========================================================
   BASE DE TODOS LOS BLOQUES CONFIGURABLES
   ========================================================== */

.single-right-rail .product-editorial{
    width:100%;
    margin:0;
}

.single-right-rail .product-editorial-block{
    --block-bg:#ffffff;
    --block-text:#172033;
    --block-muted:#64748b;
    --block-accent:var(--primary,#6d28d9);
    --block-card:#ffffff;
    --block-border:#e5e7eb;

    --block-button-bg:#111111;
    --block-button-text:#ffffff;

    --block-radius:18px;

    width:100%;
    min-width:0;
    max-width:100%;

    margin:0 0 18px;
    padding:0 !important;

    overflow:hidden;

    color:var(--block-text);
    background:var(--block-bg) !important;

    border:1px solid var(--block-border);
    border-radius:var(--block-radius);

    box-shadow:0 8px 26px rgba(15,23,42,.055);
}

.single-right-rail .product-editorial-inner{
    width:100% !important;
    max-width:100% !important;

    margin:0 !important;
    padding:26px !important;
}

.single-right-rail .product-editorial-block h1,
.single-right-rail .product-editorial-block h2,
.single-right-rail .product-editorial-block h3,
.single-right-rail .product-editorial-block h4,
.single-right-rail .product-editorial-block p,
.single-right-rail .product-editorial-block li,
.single-right-rail .product-editorial-block span,
.single-right-rail .product-editorial-block strong,
.single-right-rail .product-editorial-block a{
    max-width:100%;

    overflow-wrap:break-word;
    word-break:normal;
}

.single-right-rail .product-editorial-block h2{
    margin-top:0;

    color:var(--block-text);

    font-size:clamp(25px,3vw,34px);
    line-height:1.07;
    letter-spacing:-.025em;
}

.single-right-rail .product-editorial-block h3{
    color:var(--block-text);

    font-size:17px;
    line-height:1.25;
}

.single-right-rail .product-editorial-block p,
.single-right-rail .product-editorial-block li{
    color:var(--block-muted);

    font-size:14px;
    line-height:1.65;
}

.single-right-rail .product-story-kicker,
.single-right-rail .product-before-after-kicker,
.single-right-rail .product-steps-kicker,
.single-right-rail .product-testimonials-kicker,
.single-right-rail .product-warranty-kicker,
.single-right-rail .product-benefits-heading > span,
.single-right-rail .product-faq-head > span,
.single-right-rail .product-final-cta > span{
    color:var(--block-accent);
}


/* ==========================================================
   IMAGEN + TEXTO
   Clases reales:
   product-story
   product-story-media
   product-story-content
   ========================================================== */

.single-right-rail .product-story,
.single-right-rail .product-story.reverse{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;

    width:100%;
    min-width:0;
}

.single-right-rail .product-story-media{
    order:0;

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    min-width:0;

    /*
     * Formato editorial.
     * No supera un retrato 9:16.
     */
    aspect-ratio:4 / 5;

    overflow:hidden;

    background:var(--block-card);
    border:1px solid var(--block-border);

    border-radius:
        calc(var(--block-radius) - 4px);

    box-shadow:none;
}

.single-right-rail .product-story-media img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:100%;
    max-height:100%;

    aspect-ratio:auto !important;

    object-fit:contain !important;
    object-position:center !important;

    border-radius:0 !important;
}

.single-right-rail .product-story-content{
    order:1;

    width:100% !important;
    min-width:0;
    max-width:100% !important;
}

.single-right-rail
.product-story.reverse
.product-story-content{
    order:0;
}

.single-right-rail
.product-story.reverse
.product-story-media{
    order:1;
}

.single-right-rail .product-story-content h2{
    margin:0;
}

.single-right-rail .product-story-content p{
    margin:12px 0 0;
}


/* ==========================================================
   BENEFICIOS
   Clases reales:
   product-benefits-block
   product-benefits-heading
   product-benefits-grid
   product-benefit
   product-benefit-icon
   ========================================================== */

.single-right-rail
.product-editorial-block.product-benefits-block{
    background:var(--block-bg) !important;
}

.single-right-rail .product-benefits-heading{
    width:100%;
    max-width:100%;

    margin:0 0 20px !important;

    text-align:left !important;
}

.single-right-rail .product-benefits-heading h2{
    margin:8px 0 0 !important;
}

.single-right-rail .product-benefits-grid{
    display:grid !important;
    grid-template-columns:1fr !important;

    gap:10px !important;

    width:100%;
    min-width:0;

    background:transparent !important;
}

.single-right-rail .product-benefit{
    width:100%;
    min-width:0;
    min-height:0 !important;

    padding:17px !important;

    background:var(--block-card) !important;

    border:1px solid var(--block-border) !important;
    border-radius:
        calc(var(--block-radius) - 5px) !important;

    box-shadow:none !important;
}

.single-right-rail .product-benefit-icon{
    display:grid;
    place-items:center;

    width:38px !important;
    height:38px !important;

    margin:0 0 12px !important;

    border-radius:11px;

    background:color-mix(
        in srgb,
        var(--block-accent) 12%,
        transparent
    );

    color:var(--block-accent);

    font-size:20px !important;
}

.single-right-rail .product-benefit h3{
    margin:0;
}

.single-right-rail .product-benefit p{
    margin:7px 0 0;
}


/* ==========================================================
   ESTADISTICAS
   Clases reales:
   product-stats
   product-stats-grid
   product-stat
   ========================================================== */

.single-right-rail
.product-editorial-block.product-stats{
    background:var(--block-bg) !important;
    color:var(--block-text) !important;
}

.single-right-rail .product-stats-grid{
    display:grid !important;

    grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;

    gap:10px !important;
}

.single-right-rail .product-stat{
    width:100%;
    min-width:0;

    padding:18px 10px !important;

    text-align:center;

    background:var(--block-card);

    border:1px solid var(--block-border);
    border-radius:
        calc(var(--block-radius) - 5px);
}

.single-right-rail .product-stat strong{
    display:block;

    color:var(--block-accent);

    font-size:clamp(28px,5vw,42px) !important;
    line-height:1 !important;
}

.single-right-rail .product-stat span{
    display:block;

    max-width:100% !important;

    margin:8px auto 0 !important;

    color:var(--block-muted) !important;

    font-size:12px;
    line-height:1.4;
}


/* ==========================================================
   FAQ
   Clases reales:
   product-faq
   product-faq-head
   product-faq-item
   product-faq-answer
   ========================================================== */

.single-right-rail .product-faq{
    width:100% !important;
    max-width:100% !important;

    margin:0 !important;
    padding:26px !important;
}

.single-right-rail .product-faq-head{
    margin:0 0 18px !important;
}

.single-right-rail .product-faq-head h2{
    margin:8px 0 0 !important;
}

.single-right-rail .product-faq-item{
    width:100%;
    min-width:0;

    margin:0 !important;

    border:0 !important;
    border-top:1px solid var(--block-border) !important;

    border-radius:0 !important;
    background:transparent !important;

    box-shadow:none !important;
}

.single-right-rail .product-faq-item:last-child{
    border-bottom:
        1px solid var(--block-border) !important;
}

.single-right-rail .product-faq-item summary{
    position:relative;

    width:100%;

    padding:16px 34px 16px 0 !important;

    color:var(--block-text);

    font-size:14px;
    font-weight:750;
    line-height:1.35;

    cursor:pointer;
}

.single-right-rail .product-faq-item summary::after{
    right:2px !important;
}

.single-right-rail .product-faq-answer{
    padding:0 0 17px !important;

    color:var(--block-muted);

    font-size:13px;
    line-height:1.65;
}


/* ==========================================================
   ANTES / DESPUES
   Clases REALES:
   product-before-after
   product-before-after-head
   product-before-after-grid
   product-before-after-card
   product-before-after-label
   ========================================================== */

.single-right-rail
.product-editorial-block.product-before-after{
    padding:0 !important;
    background:var(--block-bg) !important;
}

.single-right-rail .product-before-after-head{
    width:100%;
    max-width:100%;

    margin:0 0 20px !important;
    text-align:center !important;
}

.single-right-rail .product-before-after-head h2{
    margin:8px 0 0 !important;
}

.single-right-rail .product-before-after-head p{
    max-width:36ch;

    margin:9px auto 0 !important;
}

.single-right-rail .product-before-after-grid{
    display:grid !important;

    grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;

    gap:10px !important;

    width:100%;
    max-width:100%;
}

.single-right-rail .product-before-after-card{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    min-width:0;

    margin:0 !important;
    padding:0 !important;

    /*
     * Máximo vertical 9:16.
     */
    aspect-ratio:9 / 16;

    overflow:hidden;

    background:var(--block-card) !important;

    border:1px solid var(--block-border) !important;
    border-radius:
        calc(var(--block-radius) - 5px) !important;

    box-shadow:none !important;
}

.single-right-rail
.product-before-after-card
img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:100% !important;
    max-height:100% !important;

    aspect-ratio:auto !important;

    object-fit:contain !important;
    object-position:center !important;

    margin:0 !important;
    padding:0 !important;

    border-radius:0 !important;
}

.single-right-rail .product-before-after-label{
    position:absolute !important;

    top:8px !important;
    left:8px !important;
    right:auto !important;
    bottom:auto !important;

    display:inline-flex !important;
    align-items:center;
    justify-content:center;

    width:auto !important;
    height:auto !important;

    min-width:0 !important;
    min-height:0 !important;

    max-width:calc(100% - 16px);

    margin:0 !important;
    padding:6px 9px !important;

    border:0 !important;
    border-radius:999px !important;

    background:var(--block-accent) !important;
    color:var(--block-button-text) !important;

    font-size:9px !important;
    font-weight:900 !important;
    line-height:1 !important;

    letter-spacing:.07em;
    text-transform:uppercase;

    backdrop-filter:none !important;
    box-shadow:0 3px 10px rgba(0,0,0,.10);

    z-index:2;
}


/* ==========================================================
   PASOS
   Clases reales:
   product-steps
   product-steps-head
   product-steps-list
   product-step
   product-step-number
   ========================================================== */

.single-right-rail
.product-editorial-block.product-steps{
    padding:0 !important;
    background:var(--block-bg) !important;
}

.single-right-rail .product-steps-head{
    margin:0 0 18px !important;
}

.single-right-rail .product-steps-head h2{
    margin:8px 0 0 !important;
}

.single-right-rail .product-steps-head p{
    margin:9px 0 0 !important;
}

.single-right-rail .product-steps-list{
    display:grid !important;
    grid-template-columns:1fr !important;

    gap:0 !important;

    width:100%;

    border-top:
        1px solid var(--block-border) !important;
}

.single-right-rail .product-step{
    display:grid !important;

    grid-template-columns:
        40px minmax(0,1fr) !important;

    gap:12px !important;

    width:100%;
    min-width:0;
    min-height:0 !important;

    padding:16px 0 !important;

    border:0 !important;
    border-bottom:
        1px solid var(--block-border) !important;

    border-radius:0 !important;
    background:transparent !important;

    box-shadow:none !important;
}

.single-right-rail .product-step-number{
    display:grid;
    place-items:center;

    width:34px !important;
    height:34px !important;

    border-radius:50%;

    background:var(--block-accent) !important;
    color:var(--block-button-text) !important;

    font-size:11px !important;
    font-weight:900;
}

.single-right-rail .product-step h3{
    margin:1px 0 5px !important;

    font-size:15px;
}

.single-right-rail .product-step p{
    margin:0 !important;

    font-size:12px;
    line-height:1.55;
}


/* ==========================================================
   TESTIMONIOS
   Clases REALES:
   product-testimonials
   product-testimonials-grid
   product-testimonial-card
   product-testimonial-quote
   product-testimonial-text
   product-testimonial-author
   ========================================================== */

.single-right-rail
.product-editorial-block.product-testimonials{
    background:var(--block-bg) !important;
}

.single-right-rail .product-testimonials-head{
    width:100%;
    max-width:100%;

    margin:0 0 18px !important;
    text-align:left !important;
}

.single-right-rail .product-testimonials-head h2{
    margin:8px 0 0 !important;
}

.single-right-rail .product-testimonials-grid{
    display:grid !important;
    grid-template-columns:1fr !important;

    gap:10px !important;
}

.single-right-rail .product-testimonial-card{
    position:relative;

    display:flex;
    flex-direction:column;

    width:100%;
    min-width:0;

    min-height:0 !important;

    padding:18px !important;

    background:var(--block-card) !important;

    border:1px solid var(--block-border) !important;
    border-radius:
        calc(var(--block-radius) - 5px) !important;

    box-shadow:none !important;
}

.single-right-rail .product-testimonial-quote{
    margin:0 0 8px !important;

    color:var(--block-accent) !important;

    font-size:34px !important;
    line-height:.75;
}

.single-right-rail .product-testimonial-text{
    margin:0 !important;

    color:var(--block-text) !important;

    font-size:14px;
    line-height:1.6;
}

.single-right-rail .product-testimonial-author{
    margin-top:14px !important;
    padding-top:12px !important;

    border-top:
        1px solid var(--block-border) !important;
}

.single-right-rail .product-testimonial-name{
    color:var(--block-text) !important;
}

.single-right-rail .product-testimonial-detail{
    color:var(--block-muted) !important;
}


/* ==========================================================
   GARANTIA
   Clases reales:
   product-warranty
   product-warranty-card
   product-warranty-copy
   product-warranty-badge
   product-warranty-media
   ========================================================== */

.single-right-rail
.product-editorial-block.product-warranty{
    padding:0 !important;
    background:var(--block-bg) !important;
}

.single-right-rail .product-warranty-card{
    display:grid !important;
    grid-template-columns:1fr !important;

    gap:18px !important;

    width:100%;
    min-width:0;

    padding:0 !important;

    overflow:visible !important;

    background:transparent !important;

    border:0 !important;
    border-radius:0 !important;

    box-shadow:none !important;
}

.single-right-rail .product-warranty-copy{
    min-width:0;
}

.single-right-rail .product-warranty-copy h2{
    margin:8px 0 0;
}

.single-right-rail .product-warranty-copy p{
    margin:10px 0 0;
}

.single-right-rail .product-warranty-badge{
    display:inline-flex;

    margin-top:14px;
    padding:9px 12px;

    border-radius:999px;

    background:var(--block-accent) !important;
    color:var(--block-button-text) !important;

    font-size:12px;
}

.single-right-rail .product-warranty-media{
    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;

    aspect-ratio:4 / 5;

    overflow:hidden;

    background:var(--block-card);

    border:1px solid var(--block-border);
    border-radius:
        calc(var(--block-radius) - 5px);
}

.single-right-rail .product-warranty-media img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:100% !important;
    max-height:100% !important;

    min-height:0 !important;

    object-fit:contain !important;
    object-position:center !important;

    margin:0 !important;

    border-radius:0 !important;
}


/* ==========================================================
   CTA FINAL
   Clases reales:
   product-final-cta
   product-editorial-inner
   ========================================================== */

.single-right-rail
.product-editorial-block.product-final-cta{
    margin:0 0 18px !important;

    background:var(--block-bg) !important;
}

.single-right-rail
.product-final-cta
.product-editorial-inner{
    width:100% !important;

    padding:30px 24px !important;

    border:0 !important;
    border-radius:0 !important;

    background:transparent !important;

    text-align:center;

    box-shadow:none !important;
}

.single-right-rail .product-final-cta h2{
    margin:8px 0 0 !important;
}

.single-right-rail .product-final-cta p{
    margin:12px auto 0 !important;

    font-size:14px;
}

.single-right-rail .product-final-cta a{
    display:inline-flex;

    align-items:center;
    justify-content:center;

    min-height:48px;

    margin-top:20px !important;
    padding:0 24px;

    border-radius:
        calc(var(--block-radius) - 6px) !important;

    background:var(--block-button-bg) !important;
    color:var(--block-button-text) !important;

    font-size:13px;
    font-weight:850;

    text-decoration:none;
}


/* ==========================================================
   VIDEO
   Clase real:
   product-video > video
   ========================================================== */

.single-right-rail
.product-editorial-block.product-video{
    display:flex;
    align-items:center;
    justify-content:center;

    width:100% !important;

    /*
     * Máximo vertical 9:16.
     */
    aspect-ratio:9 / 16;

    margin:0 0 18px !important;

    overflow:hidden;

    background:#000 !important;
}

.single-right-rail .product-video video{
    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:100% !important;
    max-height:100% !important;

    object-fit:contain !important;
    object-position:center !important;

    border-radius:0 !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width:980px){

    .single-product{
        width:min(760px,calc(100% - 32px));
        margin:24px auto 56px;

        grid-template-columns:1fr;
        gap:30px;
    }

    .single-gallery{
        position:static;

        display:grid;
        grid-template-columns:1fr;
        gap:12px;

        max-height:none;
    }

    .single-main-image{
        width:100%;
    }

    .single-thumbs{
        display:flex;
        flex-direction:row;

        width:100%;
        max-height:none;

        overflow-x:auto;
        overflow-y:hidden;
    }

    .single-thumbs img{
        flex:0 0 62px;
        width:62px;
        height:62px;
    }

    .single-right-rail{
        width:100%;
        max-width:none;

        justify-self:stretch;
    }
}


/* ==========================================================
   MOVIL
   ========================================================== */

@media (max-width:640px){

    .single-product{
        width:calc(100% - 22px);
        margin:14px auto 42px;

        gap:22px;
    }

    .single-right-rail
    .product-editorial-inner{
        padding:20px 15px !important;
    }

    .single-right-rail .product-faq{
        padding:20px 15px !important;
    }

    .single-right-rail
    .product-editorial-block h2{
        font-size:clamp(23px,7.5vw,30px);
    }


    /* Antes / Después permanece comparable */

    .single-right-rail
    .product-before-after-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        gap:7px !important;
    }

    .single-right-rail
    .product-before-after-label{
        top:6px !important;
        left:6px !important;

        padding:5px 7px !important;

        font-size:8px !important;
    }


    /* Estadísticas compactas */

    .single-right-rail
    .product-stats-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        gap:7px !important;
    }


    /* Los bloques con texto usan una columna */

    .single-right-rail .product-benefits-grid,
    .single-right-rail .product-steps-list,
    .single-right-rail .product-testimonials-grid{
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   MOVIL MUY ESTRECHO
   ========================================================== */

@media (max-width:380px){

    .single-product{
        width:calc(100% - 16px);
    }

    .single-right-rail
    .product-before-after-grid{
        gap:5px !important;
    }

    .single-right-rail
    .product-before-after
    .product-editorial-inner{
        padding-left:9px !important;
        padding-right:9px !important;
    }
}


/*
|--------------------------------------------------------------------------
| STORE_PRODUCT_COMMERCIAL_BENEFITS_V1
|--------------------------------------------------------------------------
*/

.single-commercial-benefits{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:14px 0 16px;
}

.single-commercial-benefit{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    padding:10px 11px;
    border:1px solid #dcefe3;
    border-radius:10px;
    background:#f2fbf5;
    color:#166534;
}

.single-commercial-benefit-icon{
    flex:0 0 auto;
    font-size:17px;
    line-height:1;
}

.single-commercial-benefit strong{
    min-width:0;
    font-size:11px;
    font-weight:800;
    line-height:1.35;
}

@media(max-width:520px){
    .single-commercial-benefits{
        grid-template-columns:1fr;
    }
}


/*
|--------------------------------------------------------------------------
| STORE_PRODUCT_BENEFITS_SVG_V1
|--------------------------------------------------------------------------
*/

.single-commercial-benefit-icon{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    color:#16a34a;
}

.single-commercial-benefit-icon svg{
    display:block;
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ==========================================================
   PRODUCTOS SIMILARES — CARRUSEL 3 PRODUCTOS
   STORE_LEFT_SIMILAR_PRODUCTS_V4
   ========================================================== */

@media (min-width:821px){

    .single-gallery{
        grid-column:1;
        grid-row:1;
    }

    .single-right-rail{
        grid-column:2;
        grid-row:1 / span 2;
    }

    .single-similar-products{
        grid-column:1;
        grid-row:2;
        width:100%;
        min-width:0;
        margin:16px 0 0;
        padding:14px 18px 16px;
        border:1px solid #e5e7eb;
        border-radius:8px;
        background:#fff;
        box-shadow:0 1px 4px rgba(15,23,42,.035);
    }

    .single-product:has(.single-similar-products) .single-gallery{
        position:relative !important;
        top:auto !important;
        max-height:none !important;
    }

    .single-similar-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
        margin:0 0 12px;
    }

    .single-similar-head h2{
        margin:0;
        color:#172033;
        font-size:15px;
        font-weight:850;
        line-height:1.2;
    }

    .single-similar-head > a{
        flex:0 0 auto;
        color:var(--secondary);
        font-size:10px;
        font-weight:800;
        text-decoration:none;
        white-space:nowrap;
    }

    .single-similar-carousel{
        position:relative;
        width:100%;
        min-width:0;
    }

    .single-similar-grid{
        display:grid;
        grid-auto-flow:column;
        grid-auto-columns:calc((100% - 24px) / 3);
        gap:12px;
        width:100%;
        min-width:0;
        overflow-x:auto;
        overflow-y:hidden;
        padding:0;
        scroll-snap-type:x mandatory;
        scroll-behavior:smooth;
        overscroll-behavior-inline:contain;
        scrollbar-width:none;
        -ms-overflow-style:none;
    }

    .single-similar-grid::-webkit-scrollbar{
        display:none;
        width:0;
        height:0;
    }

    .single-similar-card{
        min-width:0;
        scroll-snap-align:start;
    }

    .single-similar-image{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
        width:100%;
        aspect-ratio:1 / .92;
        overflow:hidden;
        background:#f7f7f7;
        border:1px solid #eef0f3;
        border-radius:6px;
    }

    .single-similar-image img{
        display:block;
        width:100%;
        height:100%;
        object-fit:contain;
        object-position:center;
    }

    .single-similar-discount{
        position:absolute;
        top:6px;
        right:6px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-height:21px;
        padding:0 6px;
        background:#fff0e6;
        color:#f97316;
        border-radius:3px;
        font-size:9px;
        font-weight:900;
        line-height:1;
    }

    .single-similar-no-image{
        font-size:30px;
    }

    .single-similar-name{
        display:-webkit-box;
        min-height:32px;
        margin-top:7px;
        overflow:hidden;
        color:#172033;
        font-size:11px;
        font-weight:750;
        line-height:1.28;
        text-decoration:none;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
    }

    .single-similar-price-row{
        display:flex;
        align-items:baseline;
        flex-wrap:wrap;
        gap:5px;
        margin-top:5px;
        line-height:1.12;
    }

    .single-similar-price-row strong{
        color:#111827;
        font-size:12px;
        font-weight:900;
    }

    .single-similar-price-row del{
        color:#94a3b8;
        font-size:9px;
    }

    .single-similar-arrow{
        position:absolute;
        top:42%;
        z-index:4;
        display:grid;
        place-items:center;
        width:36px;
        height:36px;
        padding:0;
        border:1px solid #e2e8f0;
        border-radius:50%;
        background:#fff;
        color:#2563eb;
        box-shadow:0 4px 14px rgba(15,23,42,.12);
        font-size:25px;
        font-family:Arial,sans-serif;
        line-height:1;
        cursor:pointer;
        transform:translateY(-50%);
    }

    .single-similar-arrow-prev{ left:-16px; }
    .single-similar-arrow-next{ right:-16px; }

    .single-similar-arrow:hover:not(:disabled){
        border-color:#bfdbfe;
        background:#eff6ff;
    }

    .single-similar-arrow:disabled{
        opacity:.28;
        cursor:default;
    }
}

@media (max-width:820px){

    .single-similar-products{
        width:100%;
        min-width:0;
        margin:12px 0 0;
        padding:13px 14px 14px;
        border:1px solid #e5e7eb;
        border-radius:8px;
        background:#fff;
    }

    .single-similar-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        margin-bottom:11px;
    }

    .single-similar-head h2{
        margin:0;
        font-size:14px;
        line-height:1.2;
    }

    .single-similar-head > a{
        flex:0 0 auto;
        font-size:10px;
        font-weight:800;
    }

    .single-similar-carousel{
        position:relative;
        min-width:0;
    }

    .single-similar-grid{
        display:grid;
        grid-auto-flow:column;
        grid-auto-columns:calc((100% - 10px) / 2);
        gap:10px;
        overflow-x:auto;
        overflow-y:hidden;
        padding:0;
        scroll-snap-type:x mandatory;
        scroll-behavior:smooth;
        scrollbar-width:none;
        -ms-overflow-style:none;
    }

    .single-similar-grid::-webkit-scrollbar{
        display:none;
        width:0;
        height:0;
    }

    .single-similar-card{
        min-width:0;
        scroll-snap-align:start;
    }

    .single-similar-image{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
        width:100%;
        aspect-ratio:1 / .92;
        overflow:hidden;
        background:#f7f7f7;
        border:1px solid #eef0f3;
        border-radius:6px;
    }

    .single-similar-image img{
        width:100%;
        height:100%;
        object-fit:contain;
    }

    .single-similar-discount{
        position:absolute;
        top:5px;
        right:5px;
        padding:4px 6px;
        background:#fff0e6;
        color:#f97316;
        border-radius:3px;
        font-size:9px;
        font-weight:900;
    }

    .single-similar-name{
        display:-webkit-box;
        min-height:31px;
        margin-top:6px;
        overflow:hidden;
        color:#172033;
        font-size:11px;
        font-weight:700;
        line-height:1.28;
        text-decoration:none;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
    }

    .single-similar-price-row{
        display:flex;
        align-items:baseline;
        flex-wrap:wrap;
        gap:5px;
        margin-top:5px;
        line-height:1.12;
    }

    .single-similar-price-row strong{
        font-size:12px;
        font-weight:900;
    }

    .single-similar-price-row del{
        color:#94a3b8;
        font-size:9px;
    }

    .single-similar-arrow{
        position:absolute;
        top:41%;
        z-index:4;
        display:grid;
        place-items:center;
        width:32px;
        height:32px;
        padding:0;
        border:1px solid #e2e8f0;
        border-radius:50%;
        background:#fff;
        color:#2563eb;
        box-shadow:0 4px 12px rgba(15,23,42,.12);
        font-size:22px;
        line-height:1;
        cursor:pointer;
        transform:translateY(-50%);
    }

    .single-similar-arrow-prev{ left:-12px; }
    .single-similar-arrow-next{ right:-12px; }

    .single-similar-arrow:disabled{
        opacity:.28;
        cursor:default;
    }
}

/* STORE_LEFT_SIMILAR_PRODUCTS_V4_END */


/* ==========================================================
   STORE_BUYBOX_SHOPIFY_REFERENCE_V2
   Inspirado en ficha Shopify compacta.
   Solo presentación; no cambia carrito ni checkout.
   ========================================================== */

.buybox-shopify{
    width:100%;
    max-width:none !important;
    display:flex;
    flex-direction:column;
    color:#111;
}

.buybox-shopify .buybox-rating{
    order:1;
    display:flex;
    align-items:center;
    gap:9px;
    margin:0 0 12px;
    font-size:12px;
}

.buybox-shopify .buybox-rating-stars{
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:2px 5px;
    border-radius:2px;
    background:#00b67a;
    color:#fff;
    font-size:12px;
    line-height:1;
    letter-spacing:1px;
}

.buybox-shopify .buybox-rating-copy{
    color:#333;
    font-size:12px;
}

.buybox-shopify .buybox-category{
    order:2;
    margin:0 0 8px;
    color:#667085;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
}

.buybox-shopify .buybox-title-share{
    order:3;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:12px;
}

.buybox-shopify .buybox-title{
    margin:0 !important;
    max-width:19ch;
    color:#0b0b0b;
    font-size:clamp(30px,2.8vw,42px) !important;
    line-height:1.08 !important;
    letter-spacing:-.035em !important;
}

.buybox-shopify .product-share{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:5px;
    padding-top:2px;
}

.buybox-shopify .product-share-btn{
    width:29px;
    height:29px;
    flex:0 0 29px;
}

.buybox-shopify .buybox-description{
    order:4;
    max-width:62ch;
    margin:16px 0 0;
    color:#667085;
    font-size:14px;
    line-height:1.65;
}

.buybox-shopify .buybox-price{
    order:5;
    margin:18px 0 0;
    padding:0;
    border:0;
}

.buybox-shopify .buybox-price-main{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:10px;
}

.buybox-shopify .single-price-original{
    order:1;
    color:#9a9a9a;
    font-size:15px;
    font-weight:500;
}

.buybox-shopify .single-price{
    order:2;
    color:#111;
    font-size:24px !important;
    font-weight:900;
}

.buybox-shopify .buybox-benefits{
    order:6;
    display:grid;
    gap:7px;
    margin:18px 0 0;
    padding:0;
    color:#222;
    font-size:13px;
    line-height:1.45;
    list-style:none;
}

.buybox-shopify .buybox-benefits li{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.buybox-shopify .buybox-check{
    color:#111;
    font-weight:900;
}

/* Los beneficios comerciales dejan de verse como cajas verdes grandes. */
.buybox-shopify .single-commercial-benefits{
    order:7;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px 14px !important;
    margin:14px 0 0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
}

.buybox-shopify .single-commercial-benefit{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    min-width:0;
    min-height:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.buybox-shopify .single-commercial-benefit-icon{
    display:none !important;
}

.buybox-shopify .single-commercial-benefit strong{
    color:#333 !important;
    font-size:11px !important;
    font-weight:650 !important;
    line-height:1.35 !important;
}

.buybox-shopify .single-commercial-benefit strong::before{
    content:'•';
    margin-right:6px;
    color:#111;
    font-weight:900;
}

.buybox-shopify .buybox-packs,
.buybox-shopify .buybox-quantity-tiers{
    order:8;
}

.buybox-shopify .buybox-presentations{
    margin-top:18px;
}

.buybox-shopify .buybox-packs-title,
.buybox-shopify .buybox-quantity-tiers-title{
    margin:0 0 9px;
    color:#222;
    font-size:12px;
    font-weight:700;
}

.buybox-shopify .buybox-quantity-tiers{
    margin-top:20px;
    padding:12px 10px 10px;
    border:1px solid #d8d4ce;
    border-radius:7px;
    background:#faf9f7;
}

.buybox-shopify .buybox-quantity-tier-list{
    display:grid;
    gap:9px;
}

.buybox-shopify .buybox-quantity-tier-card{
    position:relative;
    display:grid;
    grid-template-columns:18px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    min-height:48px;
    padding:10px 12px;
    border:1px solid #cfcfcf;
    border-radius:7px;
    background:#fff;
    cursor:pointer;
    transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease;
}

.buybox-shopify .buybox-quantity-tier-card:hover{
    border-color:#999;
}

.buybox-shopify .buybox-quantity-tier-card.is-selected,
.buybox-shopify .buybox-quantity-tier-card:has(.buybox-qty-tier-radio:checked){
    border-color:#111;
    box-shadow:inset 0 0 0 1px #111;
}

.buybox-shopify .buybox-quantity-tier-card.is-disabled{
    opacity:.42;
    cursor:not-allowed;
}

.buybox-shopify .buybox-qty-tier-radio{
    width:16px;
    height:16px;
    margin:0;
    accent-color:#111;
}

.buybox-shopify .buybox-quantity-tier-main{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    min-width:0;
}

.buybox-shopify .buybox-quantity-tier-main > strong{
    color:#111;
    font-size:12px;
    font-weight:850;
}

.buybox-shopify .buybox-quantity-tier-unit{
    display:inline-flex;
    align-items:center;
    min-height:20px;
    padding:3px 6px;
    border-radius:3px;
    background:#e7d2b6;
    color:#5f452d;
    font-size:8px;
    font-weight:800;
    white-space:nowrap;
}

.buybox-shopify .buybox-quantity-tier-badge{
    position:absolute;
    top:-9px;
    right:10px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    min-height:20px;
    padding:3px 8px;
    border-radius:3px 3px 0 0;
    background:#f4e2ce;
    color:#5e3a24;
    font-size:8px;
    font-weight:900;
    white-space:nowrap;
}

.buybox-shopify .buybox-quantity-tier-prices{
    display:flex;
    align-items:baseline;
    justify-content:flex-end;
    gap:7px;
    min-width:96px;
    text-align:right;
}

.buybox-shopify .buybox-quantity-tier-prices del{
    color:#aaa;
    font-size:10px;
    white-space:nowrap;
}

.buybox-shopify .buybox-quantity-tier-prices strong{
    color:#111;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

/* Presentaciones múltiples mantienen el mismo lenguaje visual. */
.buybox-shopify .buybox-pack-list{
    display:grid;
    gap:8px;
}

.buybox-shopify .buybox-pack-card{
    min-height:50px;
    padding:9px 11px;
    border-radius:7px;
}

.buybox-shopify .buybox-pack-name{
    font-size:12px;
}

.buybox-shopify .buybox-status{
    order:9;
    display:grid;
    gap:9px;
    margin-top:22px;
    padding:0;
    border:0;
}

.buybox-shopify .buybox-status-row{
    color:#222;
    font-size:12px;
}

.buybox-shopify .buybox-stock-dot{
    width:8px;
    height:8px;
    flex:0 0 8px;
    background:#ff9d00;
    box-shadow:none;
}

.buybox-shopify .buybox-urgency{
    color:#ff7800;
}

/* La cantidad visible la controlan ahora los radios 1 / 2 / 3. */
.buybox-shopify .buybox-quantity{
    display:none !important;
}

.buybox-shopify .buybox-actions{
    order:10;
    display:grid;
    gap:9px;
    margin-top:24px;
}

.buybox-shopify .single-button{
    width:100%;
    min-height:48px;
    padding:8px 18px;
    border-radius:999px !important;
    font-size:12px;
    font-weight:900;
    letter-spacing:.01em;
}

.buybox-shopify .buybox-buy-now{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    border-color:#050505 !important;
    background:#050505 !important;
    color:#fff !important;
}

.buybox-shopify .buybox-buy-now-label{
    line-height:1.05;
}

.buybox-shopify .buybox-buy-now-methods{
    color:#fff;
    font-size:8px;
    font-weight:600;
    line-height:1.1;
    opacity:.92;
}

.buybox-shopify .buybox-add-cart{
    border-color:#050505 !important;
    background:#050505 !important;
    color:#fff !important;
}

.buybox-shopify .buybox-cta-note{
    color:#667085;
    font-size:9px;
    line-height:1.35;
    text-align:center;
}

.buybox-shopify .buybox-guarantee{
    order:11;
    margin-top:16px;
    padding:0;
    border:0;
    background:transparent;
    color:#222;
    font-size:11px;
    line-height:1.45;
    text-align:center;
}

.buybox-shopify .buybox-trust{
    order:12;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-top:14px;
    padding:0;
    border:0;
    color:#667085;
    font-size:9px;
}

.buybox-shopify .buybox-trust a{
    color:inherit;
}

@media (max-width:820px){
    .buybox-shopify .buybox-title-share{
        grid-template-columns:1fr;
        gap:8px;
    }

    .buybox-shopify .buybox-title{
        max-width:none;
        font-size:clamp(29px,8vw,38px) !important;
    }

    .buybox-shopify .product-share{
        justify-content:flex-start;
    }

    .buybox-shopify .single-commercial-benefits{
        grid-template-columns:1fr 1fr !important;
    }

    .buybox-shopify .buybox-quantity-tier-card{
        grid-template-columns:17px minmax(0,1fr) auto;
        gap:8px;
        padding:10px;
    }

    .buybox-shopify .buybox-quantity-tier-prices{
        min-width:82px;
        gap:5px;
    }
}

@media (max-width:520px){
    .buybox-shopify .buybox-rating{
        margin-bottom:10px;
    }

    .buybox-shopify .buybox-title{
        font-size:clamp(27px,8.5vw,34px) !important;
    }

    .buybox-shopify .buybox-description{
        font-size:13px;
        line-height:1.6;
    }

    .buybox-shopify .single-commercial-benefits{
        grid-template-columns:1fr !important;
        gap:5px !important;
    }

    .buybox-shopify .buybox-quantity-tiers{
        padding:11px 8px 9px;
    }

    .buybox-shopify .buybox-quantity-tier-card{
        min-height:50px;
    }

    .buybox-shopify .buybox-quantity-tier-main > strong{
        font-size:11px;
    }

    .buybox-shopify .buybox-quantity-tier-prices strong{
        font-size:11px;
    }

    .buybox-shopify .single-button{
        min-height:46px;
    }
}

/* STORE_BUYBOX_SHOPIFY_REFERENCE_V2_END */


/* ==========================================================
   STORE_BUYBOX_REFERENCE_V3
   Visual de referencia ecommerce + datos dinámicos del admin
   ========================================================== */

.buybox-shopify{
    --bb-accent:var(--primary,#ff6a00);
    --bb-secondary:var(--secondary,#0b4aa2);
    --bb-green:#0eaa55;
    --bb-text:#111827;
    --bb-muted:#64748b;
    --bb-line:#e5e7eb;
    --bb-soft:#f7f9fc;

    width:100% !important;
    max-width:none !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:var(--bb-text);
}

/* Rating: badge izquierda + estrellas / valor derecha */
.buybox-shopify .buybox-rating-reference{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:0 0 14px;
}

.buybox-shopify .buybox-rating-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:34px;
    padding:7px 12px;
    border-radius:999px;
    background:#fff3d3;
    color:#b86d00;
    font-size:12px;
    font-weight:800;
    line-height:1.15;
}

.buybox-shopify .buybox-rating-badge > span:first-child{
    color:#ff9d00;
    font-size:17px;
}

.buybox-shopify .buybox-rating-score{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#475467;
    font-size:12px;
    white-space:nowrap;
}

.buybox-shopify .buybox-rating-score .buybox-rating-stars{
    min-height:0;
    padding:0;
    background:transparent;
    color:#ff9800;
    font-size:18px;
    letter-spacing:1px;
}

.buybox-shopify .buybox-rating-score strong{
    color:#344054;
    font-size:12px;
    font-weight:800;
}

.buybox-shopify .buybox-category{
    margin:0 0 10px;
    color:#718096;
    font-size:11px;
    font-weight:800;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.buybox-shopify .buybox-title-share{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:14px;
}

.buybox-shopify .buybox-title{
    max-width:none;
    margin:0 !important;
    color:var(--bb-secondary);
    font-size:clamp(34px,3vw,48px) !important;
    font-weight:900 !important;
    line-height:1.02 !important;
    letter-spacing:-.045em !important;
}

.buybox-shopify .product-share{
    gap:6px;
    padding-top:2px;
}

.buybox-shopify .product-share-btn{
    width:31px;
    height:31px;
    flex-basis:31px;
    border-radius:3px;
}

.buybox-shopify .buybox-description{
    margin:10px 0 0;
    max-width:60ch;
    color:#718096;
    font-size:14px;
    line-height:1.55;
}

/* Beneficios comerciales como en la referencia */
.buybox-shopify .single-commercial-benefits{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    margin:18px 0 0 !important;
}

.buybox-shopify .single-commercial-benefit{
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    min-height:68px !important;
    padding:11px 14px !important;
    border:1px solid #dce9e1 !important;
    border-radius:10px !important;
    background:#f3faf6 !important;
}

.buybox-shopify .single-commercial-benefit-icon{
    display:grid !important;
    place-items:center !important;
    width:34px !important;
    height:34px !important;
    color:var(--bb-green) !important;
}

.buybox-shopify .single-commercial-benefit-icon svg{
    width:26px !important;
    height:26px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.buybox-shopify .single-commercial-benefit-copy{
    min-width:0;
}

.buybox-shopify .single-commercial-benefit-copy strong{
    display:block;
    margin:0;
    color:#0d2d63 !important;
    font-size:13px !important;
    font-weight:850 !important;
    line-height:1.15 !important;
}

.buybox-shopify .single-commercial-benefit-copy strong::before{
    content:none !important;
}

.buybox-shopify .single-commercial-benefit-copy small{
    display:block;
    margin-top:3px;
    color:#53657b;
    font-size:10px;
    line-height:1.25;
}

/* Precio + urgencia */
.buybox-shopify .buybox-price{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:22px 0 0;
    padding:0 0 18px;
    border-bottom:1px solid var(--bb-line);
}

.buybox-shopify .buybox-price-main{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:10px;
    min-width:0;
}

.buybox-shopify .single-price-original{
    order:1;
    color:#9ca3af;
    font-size:15px;
}

.buybox-shopify .single-price{
    order:2;
    color:var(--bb-accent);
    font-size:34px !important;
    font-weight:950;
    line-height:1;
}

.buybox-shopify .buybox-price-urgency{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:54px;
    padding:9px 13px;
    border-radius:999px;
    background:#fff0f3;
    color:#c5283d;
}

.buybox-shopify .buybox-price-urgency[hidden]{
    display:none !important;
}

.buybox-shopify .buybox-price-urgency-icon{
    font-size:22px;
    line-height:1;
}

.buybox-shopify .buybox-price-urgency-copy{
    display:block;
}

.buybox-shopify .buybox-price-urgency-copy strong{
    display:block;
    margin:0;
    color:#d11f3d;
    font-size:12px;
    font-weight:900;
    line-height:1.15;
}

.buybox-shopify .buybox-price-urgency-copy small{
    display:block;
    margin-top:2px;
    color:#8c3341;
    font-size:10px;
    line-height:1.2;
}

/* Beneficios de ficha configurables: se conservan, pero compactos */
.buybox-shopify .buybox-benefits{
    margin:12px 0 0;
    gap:5px;
    color:#526174;
    font-size:11px;
}

.buybox-shopify .buybox-check{
    color:var(--bb-green);
}

/* Presentaciones */
.buybox-shopify .buybox-presentations{
    margin-top:16px;
}

.buybox-shopify .buybox-packs-title,
.buybox-shopify .buybox-quantity-tiers-title{
    margin:0 0 9px;
    color:#1f2b3d;
    font-size:13px;
    font-weight:850;
}

.buybox-shopify .buybox-pack-card{
    min-height:56px;
    padding:10px 13px;
    border:1px solid #cdd4df;
    border-radius:8px;
    background:#fff;
}

.buybox-shopify .buybox-pack-card:has(.buybox-pack-radio:checked){
    border-color:var(--bb-secondary);
    box-shadow:inset 0 0 0 1px var(--bb-secondary);
}

.buybox-shopify .buybox-pack-radio{
    accent-color:var(--bb-secondary);
}

.buybox-shopify .buybox-pack-name{
    color:#1f2b3d;
    font-size:12px;
    font-weight:800;
}

.buybox-shopify .buybox-featured-badge{
    background:#0d2d63 !important;
    color:#fff !important;
    border-radius:3px !important;
    font-size:8px !important;
    font-weight:900 !important;
}

.buybox-shopify .buybox-pack-save{
    border-radius:3px;
    background:#111827;
    color:#fff;
    font-size:8px;
    font-weight:900;
}

.buybox-shopify .buybox-pack-prices strong{
    color:#0b1528;
    font-size:13px;
    font-weight:950;
}

/* Compra más y ahorra: conserva 1 / 2 / 3 */
.buybox-shopify .buybox-quantity-tiers{
    margin-top:16px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
}

.buybox-shopify .buybox-quantity-tier-list{
    gap:8px;
}

.buybox-shopify .buybox-quantity-tier-card{
    min-height:54px;
    padding:10px 13px;
    border:1px solid #cfd5df;
    border-radius:8px;
    background:#fff;
}

.buybox-shopify .buybox-quantity-tier-card.is-selected,
.buybox-shopify .buybox-quantity-tier-card:has(.buybox-qty-tier-radio:checked){
    border-color:var(--bb-secondary);
    box-shadow:inset 0 0 0 1px var(--bb-secondary);
}

.buybox-shopify .buybox-qty-tier-radio{
    accent-color:var(--bb-secondary);
}

.buybox-shopify .buybox-quantity-tier-main > strong{
    color:#172033;
    font-size:12px;
    font-weight:850;
}

.buybox-shopify .buybox-quantity-tier-unit{
    min-height:18px;
    padding:2px 5px;
    background:#efe0c8;
    color:#6d4c2e;
    font-size:8px;
}

.buybox-shopify .buybox-quantity-tier-badge{
    top:-8px;
    right:10px;
    min-height:18px;
    padding:2px 7px;
    border-radius:4px 4px 0 0;
    background:#f6e6d2;
    color:#6b3f21;
    font-size:8px;
}

.buybox-shopify .buybox-quantity-tier-prices strong{
    color:#172033;
    font-size:12px;
}

/* Estado / entrega */
.buybox-shopify .buybox-status{
    display:grid;
    gap:7px;
    margin-top:15px;
}

.buybox-shopify .buybox-status-row{
    color:#526174;
    font-size:11px;
}

.buybox-shopify .buybox-stock-dot{
    background:#ff8b00;
}

/* Botones: CTA fuerte + secundario outline, como la referencia */
.buybox-shopify .buybox-actions{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.buybox-shopify .single-button{
    min-height:58px;
    border-radius:8px !important;
    font-size:15px;
    font-weight:900;
}

.buybox-shopify .buybox-buy-now{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 34px;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border:0 !important;
    background:var(--bb-accent) !important;
    color:#fff !important;
    box-shadow:0 8px 18px color-mix(in srgb,var(--bb-accent) 24%,transparent);
}

.buybox-shopify .buybox-buy-now:hover{
    filter:brightness(.97);
    transform:translateY(-1px);
}

.buybox-shopify .buybox-buy-now-copy{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:0;
}

.buybox-shopify .buybox-buy-now-label{
    font-size:17px;
    line-height:1.05;
}

.buybox-shopify .buybox-buy-now-methods{
    margin-top:3px;
    color:#fff;
    font-size:8px;
    line-height:1.1;
    opacity:.92;
}

.buybox-shopify .buybox-action-icon,
.buybox-shopify .buybox-action-arrow{
    display:grid;
    place-items:center;
}

.buybox-shopify .buybox-action-icon svg{
    width:27px;
    height:27px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.buybox-shopify .buybox-action-arrow svg{
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.buybox-shopify .buybox-add-cart{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:54px;
    padding:8px 16px;
    border:2px solid var(--bb-secondary) !important;
    background:#fff !important;
    color:var(--bb-secondary) !important;
    box-shadow:none !important;
}

.buybox-shopify .buybox-add-cart .buybox-action-icon svg{
    width:24px;
    height:24px;
}

.buybox-shopify .buybox-cta-note{
    margin:-2px 0 0;
    color:#718096;
    font-size:9px;
    line-height:1.3;
    text-align:center;
}

/* Garantía configurada desde ficha */
.buybox-shopify .buybox-guarantee{
    margin-top:13px;
    padding:9px 12px;
    border-radius:8px;
    background:#f8fafc;
    color:#46556a;
    font-size:10px;
}

/* Seguridad / IA */
.buybox-shopify .buybox-trust{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid #edf0f4;
    color:#334155;
}

.buybox-shopify .buybox-trust-item{
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    align-items:center;
    gap:8px;
    min-width:0;
    padding:0 14px;
    color:inherit;
    text-decoration:none;
}

.buybox-shopify .buybox-trust-item + .buybox-trust-item{
    border-left:1px solid #d9dee7;
}

.buybox-shopify .buybox-trust-icon{
    display:grid;
    place-items:center;
    color:var(--bb-green);
}

.buybox-shopify .buybox-trust-icon svg{
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.buybox-shopify .buybox-trust-item:nth-child(2) .buybox-trust-icon{
    color:var(--bb-secondary);
}

.buybox-shopify .buybox-trust-item strong{
    display:block;
    color:#20304a;
    font-size:10px;
    font-weight:850;
    line-height:1.2;
}

.buybox-shopify .buybox-trust-item small{
    display:block;
    margin-top:2px;
    color:#718096;
    font-size:8px;
    line-height:1.2;
}

@media (max-width:1050px){
    .buybox-shopify .buybox-title{
        font-size:clamp(30px,3.7vw,42px) !important;
    }

    .buybox-shopify .buybox-price{
        align-items:flex-start;
    }
}

@media (max-width:820px){
    .buybox-shopify .buybox-rating-reference{
        align-items:flex-start;
    }

    .buybox-shopify .buybox-title-share{
        grid-template-columns:1fr;
        gap:8px;
    }

    .buybox-shopify .buybox-title{
        font-size:clamp(30px,8vw,40px) !important;
    }

    .buybox-shopify .product-share{
        justify-content:flex-start;
    }

    .buybox-shopify .single-commercial-benefits{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .buybox-shopify .buybox-price{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .buybox-shopify .buybox-price-urgency{
        width:100%;
        border-radius:10px;
    }
}

@media (max-width:560px){
    .buybox-shopify .buybox-rating-reference{
        flex-wrap:wrap;
    }

    .buybox-shopify .buybox-rating-badge{
        min-height:30px;
        padding:6px 9px;
        font-size:10px;
    }

    .buybox-shopify .buybox-rating-score .buybox-rating-stars{
        font-size:16px;
    }

    .buybox-shopify .buybox-title{
        font-size:clamp(28px,9vw,36px) !important;
    }

    .buybox-shopify .single-commercial-benefits{
        gap:7px !important;
    }

    .buybox-shopify .single-commercial-benefit{
        min-height:62px !important;
        grid-template-columns:30px minmax(0,1fr) !important;
        padding:9px 10px !important;
    }

    .buybox-shopify .single-commercial-benefit-icon{
        width:28px !important;
        height:28px !important;
    }

    .buybox-shopify .single-commercial-benefit-icon svg{
        width:22px !important;
        height:22px !important;
    }

    .buybox-shopify .single-commercial-benefit-copy strong{
        font-size:11px !important;
    }

    .buybox-shopify .single-commercial-benefit-copy small{
        font-size:8px;
    }

    .buybox-shopify .single-price{
        font-size:30px !important;
    }

    .buybox-shopify .buybox-quantity-tier-card{
        grid-template-columns:17px minmax(0,1fr) auto;
        padding:9px 10px;
    }

    .buybox-shopify .buybox-quantity-tier-prices{
        min-width:78px;
    }

    .buybox-shopify .single-button{
        min-height:54px;
    }

    .buybox-shopify .buybox-buy-now-label{
        font-size:15px;
    }

    .buybox-shopify .buybox-trust-item{
        padding:0 8px;
    }

    .buybox-shopify .buybox-trust-item strong{
        font-size:9px;
    }

    .buybox-shopify .buybox-trust-item small{
        font-size:7px;
    }
}

/* STORE_BUYBOX_REFERENCE_V3_END */

/* ==========================================================
   STORE_QUANTITY_SAVINGS_V3
   Ahorro real contra el precio efectivo de 1 unidad
   ========================================================== */
.buybox-shopify .buybox-quantity-tier-list{
    gap:10px;
}

.buybox-shopify .buybox-quantity-tier-card{
    min-height:68px;
    padding:12px 14px;
    border-color:#d7dce5;
    border-radius:10px;
    transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.buybox-shopify .buybox-quantity-tier-card:hover:not(.is-disabled){
    border-color:#9aa7bb;
    transform:translateY(-1px);
}

.buybox-shopify .buybox-quantity-tier-card.is-selected,
.buybox-shopify .buybox-quantity-tier-card:has(.buybox-qty-tier-radio:checked){
    border-color:var(--bb-secondary);
    box-shadow:inset 0 0 0 1px var(--bb-secondary), 0 5px 16px rgba(11,74,162,.08);
    background:linear-gradient(90deg,rgba(11,74,162,.035),#fff 34%);
}

.buybox-shopify .buybox-quantity-tier-main{
    display:grid;
    grid-template-columns:max-content max-content;
    align-items:center;
    justify-content:start;
    column-gap:8px;
    row-gap:6px;
    min-width:0;
}

.buybox-shopify .buybox-quantity-tier-main > strong{
    font-size:13px;
    line-height:1.2;
}

.buybox-shopify .buybox-quantity-tier-unit{
    min-height:22px;
    padding:3px 7px;
    border-radius:5px;
    background:#f2dfc2;
    color:#71471f;
    font-size:10px;
    font-weight:900;
    line-height:1;
}

.buybox-shopify .buybox-quantity-tier-saving{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    min-height:22px;
    color:#08783f;
    font-size:10px;
    font-weight:750;
    line-height:1.2;
}

.buybox-shopify .buybox-quantity-tier-saving[hidden]{
    display:none !important;
}

.buybox-shopify .buybox-quantity-tier-saving-copy{
    display:inline-flex;
    align-items:center;
    gap:3px;
}

.buybox-shopify .buybox-quantity-tier-saving-copy strong{
    color:#08783f;
    font-size:11px;
    font-weight:950;
}

.buybox-shopify .buybox-quantity-tier-saving-percent{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:20px;
    padding:3px 7px;
    border-radius:999px;
    background:#e8f8ef;
    color:#08783f;
    border:1px solid #bfe9d0;
    font-size:9px;
    font-weight:950;
    letter-spacing:.02em;
    white-space:nowrap;
}

.buybox-shopify .buybox-quantity-tier-prices{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    gap:2px;
    min-width:112px;
    line-height:1.1;
}

.buybox-shopify .buybox-quantity-tier-reference{
    color:#9aa3af;
    font-size:10px;
    font-weight:650;
    text-decoration:line-through;
    text-decoration-thickness:1px;
    white-space:nowrap;
}

.buybox-shopify .buybox-quantity-tier-reference[hidden]{
    display:none !important;
}

.buybox-shopify .buybox-quantity-tier-total-label{
    color:#8a94a3;
    font-size:8px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.buybox-shopify .buybox-quantity-tier-card[data-qty="1"] .buybox-quantity-tier-total-label{
    display:none;
}

.buybox-shopify .buybox-quantity-tier-prices strong{
    color:#0b1528;
    font-size:15px;
    font-weight:950;
    letter-spacing:-.01em;
}

.buybox-shopify .buybox-quantity-tier-badge{
    top:-9px;
    right:11px;
    min-height:20px;
    padding:3px 8px;
    border-radius:5px 5px 0 0;
    background:#f6e6d2;
    color:#6b3f21;
    box-shadow:0 -1px 0 rgba(107,63,33,.06);
    font-size:9px;
    font-weight:950;
}

@media (max-width:520px){
    .buybox-shopify .buybox-quantity-tier-card{
        grid-template-columns:17px minmax(0,1fr) auto;
        gap:8px;
        min-height:72px;
        padding:11px 10px;
    }

    .buybox-shopify .buybox-quantity-tier-main{
        grid-template-columns:max-content minmax(0,max-content);
        column-gap:6px;
        row-gap:5px;
    }

    .buybox-shopify .buybox-quantity-tier-main > strong{
        font-size:12px;
    }

    .buybox-shopify .buybox-quantity-tier-unit{
        padding:3px 5px;
        font-size:9px;
    }

    .buybox-shopify .buybox-quantity-tier-saving{
        gap:4px;
        font-size:9px;
    }

    .buybox-shopify .buybox-quantity-tier-saving-copy strong{
        font-size:10px;
    }

    .buybox-shopify .buybox-quantity-tier-saving-percent{
        min-height:18px;
        padding:2px 5px;
        font-size:8px;
    }

    .buybox-shopify .buybox-quantity-tier-prices{
        min-width:88px;
    }

    .buybox-shopify .buybox-quantity-tier-prices strong{
        font-size:13px;
    }

    .buybox-shopify .buybox-quantity-tier-reference{
        font-size:9px;
    }
}

/* STORE_QUANTITY_SAVINGS_V3_END */

/* ==========================================================
   STORE_PRODUCT_TRUST_STRIP_V1
   Bloque de confianza al final de la ficha de producto
   ========================================================== */

.product-trust-strip{
    width:min(1440px,calc(100% - 40px));
    margin:34px auto 26px;
    padding:22px 28px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:stretch;
    border:1px solid var(--product-trust-divider,#e1e6ee);
    border-radius:22px;
    background:var(--product-trust-bg,#f7f8fa);
    box-shadow:0 12px 32px rgba(15,23,42,.05);
}

.product-trust-strip-item{
    min-width:0;
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:14px;
    align-items:center;
    padding:0 24px;
}

.product-trust-strip-item:first-child{
    padding-left:0;
}

.product-trust-strip-item:last-child{
    padding-right:0;
}

.product-trust-strip.with-dividers .product-trust-strip-item + .product-trust-strip-item{
    border-left:1px solid var(--product-trust-divider,#e1e5eb);
}

.product-trust-strip-icon{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    color:var(--product-trust-icon,var(--primary,#f59e0b));
}

.product-trust-strip-icon svg{
    display:block;
    width:38px;
    height:38px;
}

.product-trust-strip-copy{
    min-width:0;
    display:grid;
    gap:5px;
}

.product-trust-strip-copy strong{
    display:block;
    margin:0;
    color:var(--product-trust-title,#111827);
    font-size:15px;
    font-weight:850;
    line-height:1.25;
}

.product-trust-strip-copy small{
    display:block;
    color:var(--product-trust-text,#5f6f86);
    font-size:12px;
    line-height:1.45;
}

@media(max-width:980px){
    .product-trust-strip{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:0;
        padding:8px 22px;
    }

    .product-trust-strip-item{
        padding:18px 18px;
    }

    .product-trust-strip-item:first-child{
        padding-left:18px;
    }

    .product-trust-strip-item:last-child{
        padding-right:18px;
    }

    .product-trust-strip-item + .product-trust-strip-item{
        border-left:0;
    }

    .product-trust-strip.with-dividers .product-trust-strip-item:nth-child(even){
        border-left:1px solid var(--product-trust-divider,#e1e5eb);
    }

    .product-trust-strip.with-dividers .product-trust-strip-item:nth-child(n+3){
        border-top:1px solid var(--product-trust-divider,#e1e5eb);
    }
}

@media(max-width:620px){
    .product-trust-strip{
        width:calc(100% - 28px);
        grid-template-columns:1fr;
        margin:26px auto 18px;
        padding:4px 16px;
        border-radius:18px;
    }

    .product-trust-strip-item,
    .product-trust-strip-item:first-child,
    .product-trust-strip-item:last-child{
        grid-template-columns:42px minmax(0,1fr);
        gap:12px;
        padding:16px 4px;
        border-left:0;
    }

    .product-trust-strip-item:nth-child(even){
        border-left:0;
    }

    .product-trust-strip.with-dividers .product-trust-strip-item + .product-trust-strip-item,
    .product-trust-strip.with-dividers .product-trust-strip-item:nth-child(n+3){
        border-top:1px solid var(--product-trust-divider,#e1e5eb);
    }

    .product-trust-strip-icon{
        width:38px;
        height:38px;
    }

    .product-trust-strip-icon svg{
        width:32px;
        height:32px;
    }

    .product-trust-strip-copy strong{
        font-size:14px;
    }

    .product-trust-strip-copy small{
        font-size:11px;
    }
}

/* STORE_PRODUCT_TRUST_STRIP_V1_END */
