/* =========================================================
   PRODUCT HERO
========================================================= */

.product-hero {
    --product-hero-sticky-top: 24px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 56px;
    padding: 36px 0 52px;
    color: #222;
}

.product-hero__col1,
.product-hero__col2,
.product-hero__gallery,
.product-hero__details {
    min-width: 0;
}

.product-hero__col1 {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-hero__col2 {
    align-self: stretch;
}

.product-hero__col1 > .product-reviews {
    padding: 0;
}

.product-hero__col1 .product-reviews__summary {
    flex-wrap: wrap;
    gap: 20px;
}

.product-hero__content {
    min-width: 0;
    overflow-x: auto;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.product-hero__content img,
.product-hero__content video,
.product-hero__content iframe {
    max-width: 100%;
}

.product-hero__content img,
.product-hero__content video {
    height: auto;
}

/* =========================================================
   ESPECIFICACIONES FICHA TECNICA
========================================================= */

.product-hero__specifications {
    margin-top: 24px;
}

.product-hero__specifications-link,
.product-hero__specifications img {
    display: block;
}

.product-hero__specifications img {
    width: 100%;
    height: auto;
}

.product-hero__specifications-link {
    color: #c40929;
    text-decoration: none;
}

.app-modal__dialog:has(.product-specifications-modal) {
    max-width: 960px;
}

.product-specifications-modal img {
    display: block;
    width: 100%;
    height: auto;
}

.product-specifications-modal a {
    display: inline-block;
    margin-top: 12px;
    color: #c40929;
    font-size: 12px;
}


/* =========================================================
   GALERÍA
========================================================= */

.product-hero__gallery {
    align-self: start;
    width: 100%;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
}

.product-hero__gallery > .product-hero__image-stage {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.product-hero__gallery > .product-hero__thumbs {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    min-height: 0;
    contain: size;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 3px;
}

.product-hero__gallery > .product-hero__position {
    grid-column: 2;
    grid-row: 2;
}

.product-hero__image-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
}

.product-hero__videos-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.product-hero__videos-link:hover {
    border-color: #f10c33;
    color: #f10c33;
}

#product-videos {
    scroll-margin-top: 140px;
}

.product-hero__zoom {
    position: relative;
    display: block;
    padding: 20px;
    background: #fff;
    cursor: crosshair;
}

.product-hero__zoom img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
}


/* Hint */

.product-hero__zoom-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 11px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    color: #777;
    font-size: 11px;
    pointer-events: none;
}


/* Arrows */

.product-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #333;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.product-hero__arrow:hover {
    background: #f10c33;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.product-hero__arrow--prev {
    left: 14px;
}

.product-hero__arrow--next {
    right: 14px;
}


/* Thumbnails */

.product-hero__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 2px 4px;
    scrollbar-width: thin;
}

.product-hero__thumbs button,
.product-hero__thumbs .product-hero__videos-link {
    flex: 0 0 72px;
    padding: 4px;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.product-hero__thumbs button:hover,
.product-hero__thumbs .product-hero__videos-link:hover {
    transform: translateY(-2px);
}

.product-hero__thumbs button[aria-pressed="true"] {
    border-color: #f10c33;
    box-shadow: 0 0 0 1px #f10c33;
}

.product-hero__thumbs img {
    display: block;
    width: 100%;
    height: 62px;
    object-fit: contain;
}


/* Position */

.product-hero__position {
    margin: 8px 0 0;
    color: #999;
    font-size: 12px;
    text-align: center;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.product-hero__details {
    position: sticky;
    top: var(--product-hero-sticky-top);
    padding-top: 4px;
}

.product-hero h1 {
    margin: 10px 0 14px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* Badge */

.product-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 5px;
    background: #fff0f3;
    color: #d00d31;
    font-size: 11px;
    font-weight: 700;
}


/* Metrics */

.product-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 9px 16px;
    color: #000;
    font-size: 13px;
}

.product-hero__metrics > span {
    position: relative;
}

.product-hero__rating {
    color: #000;
    text-decoration: none;
}

.product-hero__rating > span:first-child {
    color: #f5b301;
    font-size: 17px;
}


/* =========================================================
   PRECIO
========================================================= */

.product-hero__pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin: 22px 0;
}

.product-hero__pricing strong {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.product-hero__pricing del {
    color: #999;
    font-size: 15px;
}

.product-hero__discount {
    padding: 5px 7px;
    border-radius: 5px;
    background: #fff0f3;
    color: #d00d31;
    font-size: 12px;
    font-weight: 700;
}
.product-hero__separator {
    /* padding-bottom: 22px; */
    border-bottom: 1px solid #eee;
    margin-bottom: 22px;
}
/* =========================================================
   CUPONES
========================================================= */
.app-modal__dialog:has(.coupon-container) {
    max-width: 900px;
    width: 100%;
}


/* =========================================================
   OFERTAS
========================================================= */
.product-hero__shipping {
    margin-bottom: 16px;
    color: #00a650;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
}

.product-hero__offers {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 18px 0;

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

    /* Ocultar scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-hero__offers::-webkit-scrollbar {
    display: none;
}

.product-hero__offer {
    display: flex;
    align-items: center;
    flex: 0 0 auto;

    white-space: nowrap;
    min-height: 30px;
    padding: 0 12px;

    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #f8fafc;

    color: #374151;
    font-size: 13px;
    line-height: 1;
}

.product-hero__offer button {
    margin-left: 8px;
    padding: 4px 9px;

    border: 0;
    border-radius: 5px;

    background: #f10c33;
    color: #fff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    white-space: nowrap;
}

.product-hero__offer button:hover {
    background: #d90b2d;
}

/* =========================================================
   VARIANTES
========================================================= */

.product-hero__variants {
    margin-bottom: 22px;
}

.product-hero__options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.product-hero__options > .product-hero__variants {
    flex: 1 1 160px;
    min-width: 0;
    margin-bottom: 0;
}


.product-hero__variants h2 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.product-hero__variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-hero__variants a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.product-hero__variants a:hover {
    border-color: #aaa;
}

.product-hero__variants a[aria-current="true"] {
    border-color: #f10c33;
    box-shadow: 0 0 0 1px #f10c33;
    background: #fff8f9;
}

.product-hero__variants img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* =========================================================
   REGALOS
========================================================= */
.product-hero__gifts {
    flex: 1 1 140px;
    min-width: 0;
}
.product-hero__gifts-header{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.product-hero__gifts-header span{
    padding: 2px 6px;
    border-radius: 4px;
    background: #168447;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.product-hero__gifts h2 {
    font-size: 14px;
    font-weight: 600;
}

.product-hero__gifts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-hero__gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid #ccebd9;
    border-radius: 8px;
    background: #f5fcf7;
    color: #168447;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
}

.product-hero__gift:hover {
    border-color: #168447;
}

.product-hero__gift img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.product-hero__gifts p {
    margin: 6px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 1.4;
}

.product-gift-picker > p {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.product-gift-picker__list {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.product-gift-picker__option {
    display: grid;
    grid-template-columns: 18px 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
    cursor: pointer;
    font-size: 13px;
}

.product-gift-picker__option:hover {
    border-color: #fac2cc;
}

.product-gift-picker__option > span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
    font-weight: 600;
}

.product-gift-picker__option:has(input:checked) {
    border-color: #f10c33;
    background: #fff5f7;
}

.product-gift-picker__option input {
    accent-color: #f10c33;
    flex-shrink: 0;
}

.product-gift-picker__option img {
    display: block;
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
    object-fit: contain;
}

.product-gift-picker__option small {
    display: block;
    margin-top: 8px;
    color: #168447;
}

@media (max-width: 400px) {
    .product-gift-picker__option {
        grid-template-columns: 18px 88px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .product-gift-picker__option img {
        width: 88px;
        height: 88px;
    }
}

.product-gift-picker button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* =========================================================
   COMPRA
========================================================= */

.product-hero__purchase {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}


/* Stock */

.product-hero__stock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 17px;
    font-size: 13px;
    font-weight: 600;
}

.product-hero__stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a9b55;
}

.product-hero__stock-dot--low {
    background: #e59a00;
}

.product-hero__stock-dot--out {
    background: #aaa;
}


/* Quantity */

.product-hero__purchase label {
    display: block;
    margin-bottom: 7px;
    color: #666;
    font-size: 12px;
}

.product-hero__quantity {
    display: flex;
    width: 138px;
    height: 42px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-hero__quantity button {
    width: 40px;
    padding: 0;
    border: 0;
    background: #fafafa;
    color: #333;
    font-size: 19px;
    cursor: pointer;
}

.product-hero__quantity button:hover {
    background: #f2f2f2;
}

.product-hero__quantity input {
    min-width: 0;
    width: 58px;
    border: 0;
    outline: 0;
    background: #fff;
    text-align: center;
    font: inherit;
}


/* Purchase buttons */

.product-hero__buy,
.product-hero__cart {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease;
}

.product-hero__buy {
    border: 1px solid #f10c33;
    background: #f10c33;
    color: #fff;
}

.product-hero__buy:hover {
    background: #d90b2d;
    border-color: #d90b2d;
}

.product-hero__cart {
    margin-top: 9px;
    border: 1px solid #f10c33;
    background: #fff;
    color: #f10c33;
}

.product-hero__cart:hover {
    background: #fff5f7;
}


/* Payments */

.product-hero__payments {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    text-align: center;
}

.product-hero__payments img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 8px;
}

.product-hero__payments button {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #777;
    font: inherit;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.product-hero__payments button:hover {
    color: #f10c33;
}


/* Warranty */

.product-hero__warranty {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.product-hero__warranty strong {
    color: #333;
}

.product-hero__warranty a {
    margin-left: 4px;
    color: #c40929;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Delivery */

.product-hero__delivery {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 11px;
    line-height: 1.6;
}


/* Status */

.product-hero__status {
    margin: 10px 0 0;
    color: #555;
    font-size: 12px;
}


/* =========================================================
   ZOOM
========================================================= */

.product-hero__zoom-panel {
    position: absolute;
    z-index: 20;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,.10);
    pointer-events: none;
    display: block;
}

.product-hero__zoom-panel img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
}

.product-hero__zoom-panel [data-zoom-level] {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 20px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 11px;
}

.product-hero__lens {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(241,12,51,.5);
    background: rgba(241,12,51,.08);
}


/* =========================================================
   GENERAL
========================================================= */

.product-hero button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.product-hero button:focus-visible,
.product-hero a:focus-visible {
    outline: 2px solid #f10c33;
    outline-offset: 3px;
}

.product-hero [hidden] {
    display: none !important;
}

.app-modal__dialog:has(.product-hero__payment-content) {
    max-width: 600px;
    width: 100%;
}

.product-hero__payment-content {
    color: #444;
    line-height: 1.6;
    overflow-wrap: anywhere;
    overflow-x: auto;
}
.product-hero__payment-content h3{
    margin: 0 0 8px;
    font-size: 14px;
}

.product-hero__payment-content p{
    margin: 0 0 8px;
    font-size: 13px;
}

.product-hero__payment-content ul{
    list-style: disc;
    margin: 0 0 8px 20px;


}

.product-hero__payment-content img {
    max-width: 100%;
    height: auto;
}


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

@media (max-width: 1000px) {

    .product-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
        gap: 30px;
    }

    .product-hero h1 {
        font-size: 18px;
    }

    .product-hero__pricing strong {
        font-size: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .product-hero {
        display: block;
        padding: 18px 0 35px;
    }

    .product-hero__gallery {
        width: 100%;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 8px;
    }

    .product-hero__col1 {
        gap: 24px;
    }

    .product-hero__col2 {
        margin-top: 32px;
    }

    .product-hero__zoom {
        padding: 12px;
        cursor: default;
    }

    .product-hero__zoom-hint {
        display: none;
    }

    .product-hero__zoom-panel,
    .product-hero__lens {
        display: none !important;
    }

    .product-hero__arrow {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .product-hero__thumbs {
        gap: 8px;
        padding-top: 11px;
    }

    .product-hero__thumbs button,
    .product-hero__thumbs .product-hero__videos-link {
        flex-basis: 64px;
    }

    .product-hero__thumbs .product-hero__videos-link {
        min-height: 64px;
    }

    .product-hero__thumbs img {
        height: 56px;
    }

    .product-hero__position {
        margin-top: 7px;
    }

    .product-hero__details {
        position: static;
        padding-top: 0;
    }

    .product-hero h1 {
        margin-top: 9px;
        font-size: 18px;
    }

    .product-hero__pricing {
        margin-top: 20px;
    }

    .product-hero__pricing strong {
        font-size: 30px;
    }

    .product-hero__purchase {
        margin-top: 22px;
        padding: 18px;
    }

}


/* =========================================================
   TOUCH / NO HOVER
========================================================= */

@media (hover: none), (pointer: coarse) {

    .product-hero__zoom {
        cursor: default;
    }

    .product-hero__zoom-hint,
    .product-hero__zoom-panel,
    .product-hero__lens {
        display: none !important;
    }

}
