.mgpt-wrap,
.mgpt-wrap * {
    box-sizing: border-box;
}

.mgpt-wrap {
    --mgpt-pink: #e91e73;
    --mgpt-dark: #252525;
    --mgpt-soft: #fff7fa;
    width: 100%;
    overflow: hidden;
    background: var(--mgpt-soft);
}

.mgpt-header {
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.mgpt-eyebrow {
    margin-bottom: 10px;
    color: var(--mgpt-pink);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.mgpt-heading {
    margin: 0;
    color: var(--mgpt-dark);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.035em;
}

.mgpt-subtitle {
    max-width: 680px;
    margin: 14px auto 0;
    color: #666166;
    font-size: 16px;
    line-height: 1.55;
}

.mgpt-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.mgpt-has-promo .mgpt-content-layout {
    grid-template-columns: minmax(220px, .29fr) minmax(0, 1fr);
}

.mgpt-catalog {
    min-width: 0;
}

.mgpt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.mgpt-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 140px;
    gap: 10px;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid #f2d7e1;
    border-radius: 999px;
    background: #fffafb;
    color: #2f2f2f;
    box-shadow: 0 5px 18px rgba(92, 33, 60, .035);
    font: inherit;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mgpt-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(92, 33, 60, .07);
}

.mgpt-tab:focus-visible {
    outline: 3px solid rgba(233, 30, 115, .22);
    outline-offset: 3px;
}

.mgpt-tab[aria-selected="true"] {
    border-color: var(--mgpt-pink);
    background: var(--mgpt-pink);
    color: #fff;
    box-shadow: 0 10px 28px rgba(233, 30, 115, .2);
}

.mgpt-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.mgpt-tab-icon i,
.mgpt-tab-icon svg {
    display: block;
}

.mgpt-panel[hidden] {
    display: none !important;
}

.mgpt-panel {
    opacity: 0;
    transform: translateY(7px);
}

.mgpt-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease;
}

.mgpt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mgpt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(64, 40, 52, .045);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(70, 30, 50, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mgpt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(70, 30, 50, .09);
}

.mgpt-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fbf4f7;
}

.mgpt-image-wrap img.mgpt-product-image,
.mgpt-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain;
    object-position: center;
    transition: transform .42s cubic-bezier(.22, .61, .36, 1);
}

.mgpt-zoom-enabled .mgpt-card:hover .mgpt-image-wrap img {
    transform: scale(1.045);
}

.mgpt-sale-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--mgpt-pink);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.mgpt-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.mgpt-product-category {
    margin-bottom: 7px;
    color: var(--mgpt-pink);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mgpt-product-title {
    margin: 0;
    color: var(--mgpt-dark);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.mgpt-product-title a {
    color: inherit;
    text-decoration: none;
}

.mgpt-product-title a:hover {
    color: var(--mgpt-pink);
}

.mgpt-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 20px;
    margin-top: 10px;
}

.mgpt-rating .star-rating {
    float: none;
    width: 5.4em;
    margin: 0;
    color: var(--mgpt-pink);
    font-size: 13px;
}

.mgpt-rating .star-rating::before,
.mgpt-rating .star-rating span::before {
    color: inherit;
}

.mgpt-rating-count {
    color: #8b8589;
    font-size: 12px;
    line-height: 1;
}

.mgpt-price {
    margin-top: 11px;
    color: #222;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.mgpt-price del {
    margin-left: 7px;
    color: #999;
    font-size: .78em;
    font-weight: 500;
    opacity: .8;
}

.mgpt-price ins {
    color: inherit;
    text-decoration: none;
}

.mgpt-product-button,
.mgpt-product-button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin: auto 0 0;
    margin-top: 15px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--mgpt-pink);
    color: #fff;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.mgpt-product-button:hover,
.mgpt-product-button.button:hover {
    transform: translateY(-1px);
    background: #c81760;
    color: #fff;
}

.mgpt-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mgpt-cart-icon svg {
    display: block;
}

.mgpt-view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.mgpt-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 25px;
    border: 1px solid var(--mgpt-pink);
    border-radius: 10px;
    background: #fff;
    color: var(--mgpt-pink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    transition: gap .2s ease, transform .2s ease, background-color .2s ease;
}

.mgpt-view-all:hover {
    gap: 13px;
    transform: translateY(-1px);
    background: #fff4f8;
    color: var(--mgpt-pink);
}

.mgpt-empty {
    padding: 28px;
    border: 1px dashed #efc7d8;
    border-radius: 14px;
    background: #fff8fb;
    color: #694b58;
    text-align: center;
}

/* Panel promocional inspirado en el mockup. */
.mgpt-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #fce8ef;
}

.mgpt-promo::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -100px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    pointer-events: none;
}

.mgpt-promo-phrase {
    position: relative;
    z-index: 2;
    padding: 28px 24px 12px;
    color: var(--mgpt-pink);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.mgpt-promo-image-wrap {
    position: relative;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
}

.mgpt-promo-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mgpt-promo-benefits {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 20px 22px 24px;
    border-radius: 30px 30px 0 0;
    background: rgba(255, 245, 249, .94);
    color: #343034;
    list-style: none;
    backdrop-filter: blur(6px);
}

.mgpt-promo-benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.mgpt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--mgpt-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1200px) {
    .mgpt-has-promo .mgpt-content-layout {
        grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr);
    }

    .mgpt-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .mgpt-tab {
        flex: 0 0 auto;
        min-width: 145px;
    }
}

@media (max-width: 1024px) {
    .mgpt-has-promo .mgpt-content-layout {
        grid-template-columns: 1fr;
    }

    .mgpt-promo {
        display: grid;
        grid-template-columns: .55fr .45fr;
        min-height: 340px;
    }

    .mgpt-promo-phrase {
        grid-column: 1 / -1;
    }

    .mgpt-promo-image-wrap {
        min-height: 250px;
    }

    .mgpt-promo-benefits {
        align-content: center;
        border-radius: 28px 0 0 0;
    }

    .mgpt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mgpt-wrap {
        padding: 28px 18px;
    }

    .mgpt-header {
        margin-bottom: 24px;
    }

    .mgpt-heading {
        font-size: clamp(30px, 10vw, 42px);
    }

    .mgpt-tabs {
        margin-right: -18px;
        padding-right: 18px;
    }

    .mgpt-tab {
        min-height: 44px;
        min-width: 132px;
        padding: 11px 17px;
    }

    .mgpt-grid {
        grid-template-columns: 1fr;
    }

    .mgpt-promo {
        display: flex;
        min-height: 0;
    }

    .mgpt-promo-image-wrap {
        min-height: 300px;
    }

    .mgpt-promo-benefits {
        border-radius: 26px 26px 0 0;
    }
}
