/* PÃƒÂ¡gina de produto Ã¢â‚¬â€ layout alinhado e responsivo
   Carregado depois de product-show-2026.css, por isso estas regras prevalecem. */

/* ------------------------------------------------------------------ HERO */
.mk-product-page .mkp-hero {
    display: grid;
    padding: 22px 22px 26px;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr) minmax(300px, 0.84fr);
    grid-template-areas: "media intro buy";
    gap: 24px;
    align-items: start;
    width: 100%;
}

.mk-product-page .mkp-hero > * {
    min-width: 0;
}

.mk-product-page .mkp-hero__media {
    grid-area: media;
}

.mk-product-page .mkp-hero__intro {
    grid-area: intro;
    padding-top: 0;
}

.mk-product-page .mkp-hero__buy {
    grid-area: buy;
    position: sticky;
    top: 108px;
    align-self: start;
}

/* ------------------------------------------------------------- GALERIA */
.mk-product-page .mkp-gallery {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
}

.mk-product-page .mkp-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 0;
}

.mk-product-page .mkp-gallery__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #eef2f6;
    background: #f6f8f7;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mk-product-page .mkp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    box-sizing: border-box;
    display: block;
}

.mk-product-page .mkp-gallery__thumb:hover {
    border-color: #b9cfc3;
}

.mk-product-page .mkp-gallery__thumb.is-active {
    border-color: #0B5D3B;
    box-shadow: 0 0 0 3px rgba(11, 93, 59, .12);
}

.mk-product-page .mkp-gallery__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .32);
}

.mk-product-page .mkp-gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #eef2f6;
    background: #fff;
    overflow: hidden;
}

.mk-product-page .mkp-gallery__main img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ------------------------------------------------------------- INTRO */
.mk-product-page .mkp-intro__title {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
}

.mk-product-page .mkp-intro__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mk-product-page .mkp-intro__summary {
    color: #475569;
    font-size: .9rem;
    line-height: 1.6;
}

/* --------------------------------------------------------- CARTÃƒÆ’O COMPRA */
.mk-product-page .mkp-buy {
    width: 100%;
}

.mk-product-page .mkp-buy__actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 800;
}

/* ------------------------------------------------------------- TABS */
.mk-product-page .product-show-tabs-card__items {
    background: #fff;
    border-bottom: 1px solid #e6ebe8;
    border-radius: 14px 14px 0 0;
    padding: 0 10px;
    gap: 4px !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.mk-product-page .product-show-tabs-card__items::-webkit-scrollbar {
    display: none;
}

.mk-product-page .product-show-tabs-card__items .navbar-item {
    position: relative;
    height: 54px;
    padding: 0 14px;
    font-size: .92rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.mk-product-page .product-show-tabs-card__items .navbar-item:hover,
.mk-product-page .product-show-tabs-card__items .navbar-item.active {
    color: #0B5D3B;
}

.mk-product-page .product-show-tabs-card__items .navbar-item.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px;
    background: #0B5D3B;
}

.mk-product-page .product-show-tabs-card__mask {
    display: none;
}

/* ------------------------------------------------------- FICHA TÃƒâ€°CNICA */
.mk-product-page .mkp-specs-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px;
}

.mk-product-page .mkp-specs-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
}

.mk-product-page .mkp-specs-card__empty {
    color: #64748b;
    font-size: .88rem;
    margin: 0;
}

.mk-product-page .mkp-specs {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
}

.mk-product-page .mkp-specs__row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    border-top: 1px solid #eef2f6;
}

.mk-product-page .mkp-specs__row:first-child {
    border-top: 0;
}

.mk-product-page .mkp-specs__row:nth-child(even) {
    background: #fbfdfc;
}

.mk-product-page .mkp-specs__name {
    padding: 12px 16px;
    font-size: .86rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-right: 1px solid #eef2f6;
}

.mk-product-page .mkp-specs__value {
    padding: 12px 16px;
    font-size: .88rem;
    color: #0f172a;
    line-height: 1.55;
}

/* ------------------------------------------------------- RESPONSIVO */
@media (max-width: 1199px) {
    .mk-product-page .mkp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "media intro"
            "buy buy";
        gap: 20px;
    }

    .mk-product-page .mkp-hero__buy {
        position: static;
        top: auto;
        margin-top: 4px;
    }
}

@media (max-width: 991px) {
    .mk-product-page .mkp-gallery {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
    }

    .mk-product-page .mkp-gallery__thumb {
        width: 64px;
        height: 64px;
    }

    .mk-product-page .mkp-gallery__main {
        padding: 10px;
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    .mk-product-page .mkp-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "media"
            "intro"
            "buy";
        gap: 16px;
    }

    .mk-product-page .mkp-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-product-page .mkp-gallery__main {
        order: 1;
        aspect-ratio: 4 / 3;
    }

    .mk-product-page .mkp-gallery__thumbs {
        order: 2;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }

    .mk-product-page .mkp-gallery__thumb {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    .mk-product-page .mkp-specs__row {
        grid-template-columns: 1fr;
    }

    .mk-product-page .mkp-specs__name {
        border-right: 0;
        background: transparent;
        padding: 12px 16px 2px;
        border-top: 1px solid #eef2f6;
    }

    .mk-product-page .mkp-specs__row:first-child .mkp-specs__name {
        border-top: 0;
    }

    .mk-product-page .mkp-specs__value {
        padding: 4px 16px 12px;
    }

    .mk-product-page .product-show-tabs-card__items .navbar-item {
        height: 48px;
        padding: 0 10px;
        font-size: .85rem;
    }

    .mk-product-page .product-show-tabs-card__items .navbar-item.active::after {
        left: 10px;
        right: 10px;
    }
}

/* ============================================================
   GALERIA — decisão final
   Desktop: miniaturas em coluna à esquerda
   Mobile:  faixa horizontal centrada, deslizável
   ============================================================ */

@media (max-width: 767px) {
    .mk-product-page .mkp-hero__media {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .mk-product-page .mkp-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }

    .mk-product-page .mkp-gallery__main {
        order: 1 !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        padding: 8px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .mk-product-page .mkp-gallery__main img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

    .mk-product-page .mkp-gallery__thumbs {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 0 6px !important;
        -webkit-overflow-scrolling: touch;
    }

    .mk-product-page .mkp-gallery__thumb {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 58px !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .mk-product-page .mkp-gallery__thumb img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        display: block !important;
    }
}
/* --------------------------------------------------------- CUPÃO */
.mk-product-page .mkp-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f3, #ffe9e4);
    border: 1px solid #ffd9cf;
}
.mk-product-page .mkp-coupon__tag {
    background: #e63b2e;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.mk-product-page .mkp-coupon__text { color: #7f1d1d; font-size: .85rem; }
.mk-product-page .mkp-coupon__pct { margin-left: auto; font-weight: 800; color: #e63b2e; font-size: 1rem; white-space: nowrap; }

/* ------------------------------------------------------ GARANTIAS */
.mk-product-page .mkp-guarantees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.mk-product-page .mkp-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    background: #fff;
}
.mk-product-page .mkp-guarantee__tick {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e7f5ec;
    color: #0B5D3B;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mk-product-page .mkp-guarantee > div > strong {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.mk-product-page .mkp-guarantee > div > span {
    display: block;
    margin-top: 2px;
    font-size: .75rem;
    color: #64748b;
    line-height: 1.35;
}

/* ----------------------------------------------------------- ZOOM */
.mk-product-page .mkp-gallery__main img {
    transition: transform .18s ease;
    will-change: transform;
}
.mk-product-page .mkp-gallery__main img.mk-zoomed {
    transform: scale(1.9);
}

@media (max-width: 575px) {
    .mk-product-page .mkp-guarantees {
        grid-template-columns: 1fr;
    }
}