﻿
/** START PRODUCT HERO **/

.mf-product-hero__grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
    gap: 45px;
}

.mf-product-hero__media {
    position: sticky;
    top: 24px;
    align-self: start;
}

.mf-product-gallery__stage {
    border: 1px solid var(--mf-line);
    background: var(--mf-surface);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mf-product-gallery__stage::before {
    background: none;
}

.mf-product-gallery__image {
    background: var(--mf-surface);
    object-fit: cover;
    border-radius: 22px;
}

.mf-product-gallery__legend {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: calc(100% - 30px);
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f1a16;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 8px 20px rgba(31, 26, 22, 0.12);
    pointer-events: none;
}

.mf-product-gallery__arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
}

.mf-product-gallery__thumbs {
    gap: 10px;
    margin-top: 10px;
}

.mf-product-gallery__thumb {
    border: 2px solid transparent;
    border-radius: 10px;
}

.mf-product-gallery__thumb.is-active {
    border-color: var(--mf-accent);
}

.mf-product-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-inline: 0;
}

.mf-product-hero__badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 5px 10px;
    border: 1px solid #f3d486;
    border-radius: var(--radius-pill);
    background: #fff4cc;
    color: var(--color-primary-contrast);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mf-product-hero {
        overflow-x: hidden;
    }

    .mf-product-hero__grid,
    .mf-product-hero__media,
    .mf-product-hero__summary {
        min-width: 0;
        max-width: 100%;
    }

    .mf-product-hero__badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 6px;
        margin-top: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mf-product-hero__badges::-webkit-scrollbar {
        display: none;
    }

    .mf-product-hero__badge {
        flex: 0 0 auto;
        min-height: 26px;
        padding: 4px 10px;
        font-size: 11px;
        white-space: nowrap;
    }
}

.mf-product-hero__summary {
    width: 100%;
    min-width: 0;
    position: static;
    top: auto;
    padding-inline: 10px;
    border: 0;
    border-radius: 22px;
    box-shadow: none;
}

.mf-product-sales {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--color-text);
}

.mf-product-sales__title {
    margin: 0;
    color: var(--mf-ink);
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
}

.mf-product-sales__title span {
    color: var(--color-primary);
}

.mf-product-sales__description {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--mf-ink-soft);
    font-size: 14px;
    font-weight: 400; /* el subtítulo es <h2> por SEO: fijamos peso normal para que no se vea en negrita */
    line-height: 1.65;
}

.mf-product-sales__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 20px;
}

.mf-product-sales__price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.mf-product-sales__price .price {
    display: inline-flex;
    order: 1;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    color: var(--mf-accent);
    white-space: nowrap;
}

.mf-product-sales__price .price ins {
    order: 1;
    text-decoration: none;
}

.mf-product-sales__price .price del {
    display: inline-flex;
    order: 2;
    align-items: center;
    color: #7f766f;
    opacity: 1;
    text-decoration: line-through;
}

.mf-product-sales__price .price > .amount,
.mf-product-sales__price .price ins .amount {
    color: var(--mf-accent);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.mf-product-sales__price .price del .amount {
    color: #7f766f;
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .mf-product-sales__price .price del .amount {
        font-size: 13px;
    }
}

.mf-product-sales__saving {
    display: inline-flex;
    order: 2;
    align-items: center;
    min-height: 30px;
    padding: 0 15px;
    border-radius: var(--radius-pill);
    background: #fff4cc;
    color: var(--color-primary-contrast);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mf-product-sales__ship {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.mf-product-sales__ship-main {
    color: #2d735f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.mf-product-sales__ship-main svg {
    vertical-align: -3px;
    margin-right: 5px;
}

.mf-product-sales__ship-note {
    color: #8a8078;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.mf-product-sales__installments {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #e6dbcf;
    border-radius: 16px;
    background: #f4ece3;
    color: #7d736b;
}

.mf-product-sales__installments-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    color: #7d736b;
    flex: 0 0 auto;
}

.mf-product-sales__installments-icon svg {
    width: 13px;
    height: 13px;
}

.mf-product-sales__installments-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.mf-product-sales__installments-text strong {
    color: var(--color-text);
    font-weight: 700;
}

.mf-product-sales__installments-price {
    color: var(--color-text);
    font-weight: 700;
}

.mf-product-config {
    width: 100%;
    min-width: 0;
    margin-top: 30px;
}

.mf-product-config form.cart {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 25px;
    margin: 0;
}

.mf-product-config #wapo-total-price-table,
.mf-product-config .quantity {
    display: none !important;
}

.mf-product-hero__summary > *,
.mf-product-config > *,
.mf-product-config form.cart > * {
    box-sizing: border-box;
}

.mf-product-config__cta,
.mf-product-whatsapp,
.mf-product-sketch,
.mf-funko-type-selector {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.mf-product-config__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 66px;
    margin-top: 20px;
    border-radius: 14px;
    background: var(--mf-accent);
    box-shadow: 0 18px 34px rgba(243, 184, 5, 0.2);
    color: #3d2e00;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    transition: background-color var(--transition-normal), transform var(--transition-normal);
}

.mf-product-config__cta:hover {
    background: var(--mf-accent-hover);
    transform: translateY(-1px);
}

.mf-product-config__cta-arrow::before {
    content: "\2192";
    font-size: 1.1em;
    line-height: 1;
}

@media (max-width: 960px) {
    .mf-product-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mf-product-hero__summary {
        position: static;
        top: auto;
    }

    .mf-product-hero__media {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .mf-product-hero__summary {
        padding-inline: 0;
    }

    .mf-product-sales__video {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mf-product-sales__video-question {
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .mf-product-sales__video-link {
        align-self: flex-start;
    }

    .mf-product-gallery__slides {
        display: flex;
        gap: 20px;
        transition: transform var(--transition-normal);
        will-change: transform;
    }

    .mf-product-gallery__slide {
        position: relative;
        inset: auto;
        flex: 0 0 80%;
        opacity: 1;
        transform: none;
    }

    .mf-product-gallery__slide.is-active {
        opacity: 1;
        transform: none;
        z-index: auto;
    }

    .mf-product-sales__title {
        font-size: 30px;
    }

    .mf-product-sales__price-row {
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .mf-product-sales__saving {
        display: none;
    }

    .mf-product-sales__ship {
        flex: 0 0 auto;
        margin-left: auto;
        align-items: flex-end;
        text-align: right;
    }

    .mf-product-sales__installments {
        align-items: flex-start;
    }

    .mf-product-gallery__stage {
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: unset;
        margin-left: 10px;
    }

    .mf-product-gallery__slides {
        position: relative;
        inset: auto;
        align-items: flex-start;
    }

    .mf-product-gallery__slide {
        height: auto;
    }

    .mf-product-gallery__legend {
        right: 10px;
        bottom: 10px;
        min-height: 28px;
        max-width: calc(100% - 20px);
        padding: 0 10px;
        font-size: 10px;
    }

    .mf-product-gallery__image {
        display: block;
        border-radius: 20px;
        object-fit: contain;
        width: 100%;
        height: auto;
    }

    .mf-product-gallery__arrow {
        top: 50%;
        width: 32px;
        height: 32px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.82);
        transform: translateY(-50%);
    }

    .mf-product-gallery__arrow:hover {
        transform: translateY(-50%);
    }

    .mf-product-gallery__arrow--prev {
        left: 3px;
    }

    .mf-product-gallery__arrow--next {
        right: 3px;
    }

    .mf-product-gallery__thumbs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 14px;
    }

    .mf-product-gallery__thumb {
        width: 10px;
        height: 10px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(31, 26, 22, 0.18);
        box-shadow: none;
        overflow: hidden;
        flex: 0 0 auto;
    }

    .mf-product-gallery__thumb.is-active {
        background: var(--mf-accent);
        transform: scale(1.15);
    }

    .mf-product-gallery__thumb-image {
        display: none;
    }

    .mf-product-config__cta,
    .single_add_to_cart_button.button.alt {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .mf-product-sales__price-row {
        gap: 8px;
        align-items: flex-start;
    }
    .mf-product-sales__ship {
        flex-shrink: 1;
    }
    .mf-product-sales__ship-main {
        font-size: 12px;
    }
}

/** END PRODUCT HERO **/
