/* =========================================================
   MCB PDP FINAL V6
   Protótipo aprovado -> implementação real
   ========================================================= */

body.single-product,
body.single-product #page,
body.single-product .mcb-site,
body.single-product .mcb-main {
    overflow-x: hidden !important;
}

body.single-product {
    background: #fbf8f3 !important;
}

body.single-product .mcb-final-pdp.product {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.single-product .mcb-final-pdp.product::before,
body.single-product .mcb-final-pdp.product::after {
    display: none !important;
    content: none !important;
}

body.single-product .mcb-final-pdp-shell {
    width: 100%;
    padding: 26px 0 92px;
    background: #fbf8f3;
}

body.single-product .mcb-final-pdp-shell__inner {
    width: min(calc(100% - 44px), 1280px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.single-product .mcb-final-pdp__breadcrumb {
    margin: 0 0 20px;
}

body.single-product .mcb-final-pdp__breadcrumb .woocommerce-breadcrumb {
    margin: 0 !important;
    color: #776b6e !important;
    font-size: 11px !important;
}

/* ---------- HERO ---------- */
body.single-product .mcb-final-pdp__hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr) !important;
    align-items: start !important;
    gap: clamp(30px, 4vw, 58px) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.single-product .mcb-final-pdp__gallery,
body.single-product .mcb-final-pdp__summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* ---------- GALERIA ---------- */
body.single-product .mcb-final-pdp__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f4ece6;
}

body.single-product .mcb-final-pdp__main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

body.single-product .mcb-final-pdp__zoom {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #441320;
    cursor: pointer;
}

body.single-product .mcb-final-pdp__zoom svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

body.single-product .mcb-final-pdp__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 7px;
    margin-top: 8px;
}

body.single-product .mcb-final-pdp__thumb {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    background: #fff;
    opacity: .7;
    cursor: pointer;
}

body.single-product .mcb-final-pdp__thumb:hover,
body.single-product .mcb-final-pdp__thumb.is-active {
    opacity: 1;
    border-color: #441320;
}

body.single-product .mcb-final-pdp__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.12;
    object-fit: cover;
}

/* ---------- LIGHTBOX ---------- */
body.single-product .mcb-final-pdp__lightbox {
    width: min(92vw, 900px);
    max-width: 900px;
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: #fff;
}

body.single-product .mcb-final-pdp__lightbox::backdrop {
    background: rgba(20,8,11,.78);
}

body.single-product .mcb-final-pdp__lightbox > img {
    display: block;
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

body.single-product .mcb-final-pdp__lightbox-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #441320;
    font-size: 27px;
    cursor: pointer;
}

/* ---------- SUMMARY ---------- */
body.single-product .mcb-final-pdp__summary {
    position: static !important;
    top: auto !important;
    padding-top: 2px;
}

body.single-product .mcb-final-pdp__summary > * {
    max-width: 100% !important;
}

body.single-product .mcb-final-pdp__eyebrow {
    margin: 0 0 9px;
    color: #6d5c60;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
}

body.single-product .mcb-final-pdp__eyebrow a {
    color: inherit !important;
    text-decoration: none !important;
}

body.single-product .mcb-final-pdp__heading .product_title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    color: #441320 !important;
    font-family: var(--mcb-display) !important;
    font-size: clamp(40px, 3.6vw, 58px) !important;
    font-weight: 400 !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

body.single-product .mcb-final-pdp__ref {
    margin: 0 0 15px;
    color: #9b8f91;
    font-size: 10px;
}

body.single-product .mcb-final-pdp__heading > .price {
    display: block !important;
    margin: 0 0 14px !important;
    color: #441320 !important;
    font-size: 23px !important;
    font-weight: 700 !important;
}

body.single-product .mcb-final-pdp__rating .woocommerce-product-rating {
    margin: 0 0 16px !important;
}

body.single-product .mcb-final-pdp__excerpt {
    padding: 0 0 21px;
    border-bottom: 1px solid rgba(68,19,32,.14);
}

body.single-product .mcb-final-pdp__excerpt .woocommerce-product-details__short-description {
    width: 100% !important;
    margin: 0 !important;
    color: #43383b;
    font-size: 14px !important;
    line-height: 1.68 !important;
}

/* ---------- VARIAÇÕES ---------- */
body.single-product .mcb-final-pdp__buy {
    padding-top: 21px;
}

body.single-product .mcb-final-pdp__buy form.cart,
body.single-product .mcb-final-pdp__buy .variations_form,
body.single-product .mcb-final-pdp__buy table.variations,
body.single-product .mcb-final-pdp__buy table.variations tbody,
body.single-product .mcb-final-pdp__buy .single_variation_wrap {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.single-product .mcb-final-pdp__buy table.variations {
    margin: 0 0 9px !important;
}

body.single-product .mcb-final-pdp__buy table.variations tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin: 0 0 16px !important;
}

body.single-product .mcb-final-pdp__buy table.variations th,
body.single-product .mcb-final-pdp__buy table.variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
}

body.single-product .mcb-final-pdp__buy table.variations label {
    display: block !important;
    color: #441320 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.single-product .mcb-final-pdp__buy .wpcvs-terms,
body.single-product .mcb-final-pdp__buy .variable-items-wrapper,
body.single-product .mcb-final-pdp__buy .cgkit-attribute-swatches,
body.single-product .mcb-final-pdp__buy .swatchly-type-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100% !important;
}

/* Quantidade + CTA */
body.single-product .mcb-final-pdp__buy .woocommerce-variation-add-to-cart,
body.single-product .mcb-final-pdp__buy .woocommerce-variation-add-to-cart-enabled,
body.single-product .mcb-final-pdp__buy form.cart:not(.variations_form) {
    display: grid !important;
    grid-template-columns: 80px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 19px 0 0 !important;
}

body.single-product .mcb-final-pdp__buy .quantity {
    float: none !important;
    width: 80px !important;
    min-width: 80px !important;
    margin: 0 !important;
}

body.single-product .mcb-final-pdp__buy .quantity .qty {
    width: 80px !important;
    min-width: 80px !important;
    height: 52px !important;
    min-height: 52px !important;
}

body.single-product .mcb-final-pdp__buy .single_add_to_cart_button {
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    transform: none !important;
    border-radius: 0 !important;
    background: #441320 !important;
    color: #fff !important;
}

/* ---------- BENEFÍCIOS ---------- */
body.single-product .mcb-final-pdp__benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 26px;
    border-top: 1px solid rgba(68,19,32,.13);
    border-bottom: 1px solid rgba(68,19,32,.13);
}

body.single-product .mcb-final-pdp__benefits article {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 9px;
    min-width: 0;
    padding: 16px 12px;
    border-right: 1px solid rgba(68,19,32,.1);
    border-bottom: 1px solid rgba(68,19,32,.1);
}

body.single-product .mcb-final-pdp__benefits article:nth-child(2n) {
    border-right: 0;
}

body.single-product .mcb-final-pdp__benefits article:nth-last-child(-n+2) {
    border-bottom: 0;
}

body.single-product .mcb-final-pdp__benefits article > span {
    color: #441320;
    font-size: 18px;
    line-height: 1.2;
}

body.single-product .mcb-final-pdp__benefits p {
    margin: 0;
}

body.single-product .mcb-final-pdp__benefits strong {
    display: block;
    margin-bottom: 3px;
    color: #441320;
    font-size: 11px;
}

body.single-product .mcb-final-pdp__benefits small {
    display: block;
    color: #756a6d;
    font-size: 10px;
    line-height: 1.4;
}

/* ---------- EXTRAS ---------- */
body.single-product .mcb-final-pdp__extras {
    margin-top: 20px;
}

body.single-product .mcb-final-pdp__extras > * {
    max-width: 100% !important;
}

body.single-product .mcb-final-pdp__extras .commercekit-pdp-sticky,
body.single-product .mcb-final-pdp__extras .commercekit-pdp-sticky-inner,
body.single-product .mcb-final-pdp__extras .cgkit-sticky-atc,
body.single-product .mcb-final-pdp__extras .shoptimizer-product-prevnext {
    display: none !important;
}

/* ---------- DETAILS ---------- */
body.single-product .mcb-final-pdp__details {
    width: 100%;
    margin-top: 68px;
    padding-top: 38px;
    border-top: 1px solid rgba(68,19,32,.12);
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 27px !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(68,19,32,.12);
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs::before,
body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0 0 12px !important;
    color: #7a6d70 !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs li.active a {
    color: #441320 !important;
    box-shadow: inset 0 -2px 0 #441320;
}

body.single-product .mcb-final-pdp__details .woocommerce-tabs .panel {
    float: none !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    color: #403639;
    font-size: 14px;
    line-height: 1.75;
}

/* ---------- RELACIONADOS ---------- */
body.single-product .mcb-final-pdp__related {
    width: 100%;
    margin-top: 66px;
    padding-top: 42px;
    border-top: 1px solid rgba(68,19,32,.12);
}

body.single-product .mcb-final-pdp__related .related,
body.single-product .mcb-final-pdp__related .upsells {
    float: none !important;
    width: 100% !important;
    margin: 0 0 54px !important;
}

body.single-product .mcb-final-pdp__related .related > h2,
body.single-product .mcb-final-pdp__related .upsells > h2 {
    margin: 0 0 23px !important;
    color: #441320 !important;
    font-family: var(--mcb-display) !important;
    font-size: clamp(34px, 4vw, 48px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

body.single-product .mcb-final-pdp__related ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 30px 16px !important;
}

/* Corrige cards relacionados */
body.single-product .mcb-final-pdp__related ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

body.single-product .mcb-final-pdp__related ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
}

/* ---------- TABLET ---------- */
@media (max-width: 920px) and (min-width: 721px) {
    body.single-product .mcb-final-pdp-shell__inner {
        width: calc(100% - 26px) !important;
    }

    body.single-product .mcb-final-pdp__hero {
        grid-template-columns: minmax(0,.92fr) minmax(330px,1.08fr) !important;
        gap: 24px !important;
    }

    body.single-product .mcb-final-pdp__heading .product_title {
        font-size: clamp(32px,4.5vw,42px) !important;
    }

    body.single-product .mcb-final-pdp__benefits {
        grid-template-columns: 1fr !important;
    }

    body.single-product .mcb-final-pdp__benefits article {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(68,19,32,.1) !important;
    }

    body.single-product .mcb-final-pdp__benefits article:last-child {
        border-bottom: 0 !important;
    }

    body.single-product .mcb-final-pdp__related ul.products {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
    body.single-product .mcb-final-pdp-shell {
        padding-top: 16px;
        padding-bottom: 58px;
    }

    body.single-product .mcb-final-pdp-shell__inner {
        width: calc(100% - 24px) !important;
    }

    body.single-product .mcb-final-pdp__breadcrumb {
        margin-bottom: 14px;
    }

    body.single-product .mcb-final-pdp__hero {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    body.single-product .mcb-final-pdp__thumbs {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    body.single-product .mcb-final-pdp__thumbs::-webkit-scrollbar {
        display: none;
    }

    body.single-product .mcb-final-pdp__thumb {
        flex: 0 0 64px;
        width: 64px;
    }

    body.single-product .mcb-final-pdp__thumb img {
        height: 74px;
        aspect-ratio: auto;
    }

    body.single-product .mcb-final-pdp__heading .product_title {
        font-size: clamp(34px,9.8vw,46px) !important;
        line-height: 1 !important;
    }

    body.single-product .mcb-final-pdp__benefits {
        grid-template-columns: 1fr !important;
    }

    body.single-product .mcb-final-pdp__benefits article {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(68,19,32,.1) !important;
    }

    body.single-product .mcb-final-pdp__benefits article:last-child {
        border-bottom: 0 !important;
    }

    body.single-product .mcb-final-pdp__details {
        margin-top: 46px;
        padding-top: 29px;
    }

    body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap;
        gap: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    body.single-product .mcb-final-pdp__details .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
    }

    body.single-product .mcb-final-pdp__related {
        margin-top: 48px;
        padding-top: 32px;
    }

    body.single-product .mcb-final-pdp__related ul.products {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 26px 9px !important;
    }
}
/* =========================================================
   MCB PDP FINAL V6.1 · VIDEO MEDIA SUPPORT
   ========================================================= */

body.single-product .mcb-final-pdp__main[hidden],
body.single-product .mcb-final-pdp__video[hidden],
body.single-product .mcb-final-pdp__zoom[hidden] {
    display: none !important;
}

body.single-product .mcb-final-pdp__video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: contain;
    object-position: center center;
    background: #f4ece6;
}

body.single-product .mcb-final-pdp__thumb--video {
    position: relative;
}

body.single-product .mcb-final-pdp__thumb--video::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(20, 8, 11, .20),
            rgba(20, 8, 11, .02) 55%
        );
    pointer-events: none;
}

body.single-product .mcb-final-pdp__thumb--video::after {
    content: "▶";
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: rgba(68,19,32,.88);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 4px 18px rgba(20,8,11,.18);
}

body.single-product
.mcb-final-pdp__thumb--video.is-active::after {
    background: #441320;
}

@media (max-width: 767px) {
    body.single-product .mcb-final-pdp__video {
        aspect-ratio: 4 / 5;
        object-fit: contain;
    }

    body.single-product
    .mcb-final-pdp__thumb--video::after {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}


/* =========================================================
   MCB PDP FINAL V6.2 · PURCHASE WRAPPER FIX

   CommerceKit wraps the real WooCommerce variation UI in
   .commercekit-pdp-sticky-inner. Inside the custom MCB PDP
   this wrapper must remain in normal document flow.
   Scope intentionally limited to the real purchase area.
   ========================================================= */

body.single-product
.mcb-final-pdp__buy
.commercekit-pdp-sticky-inner {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}


/* =========================================================
   MCB PDP FINAL V6.3 · CALLBACK OVERLAY FIX

   Shoptimizer's fixed "Request a Call Back" control overlaps
   purchase benefits/content on product pages. The callback
   remains available elsewhere on the site; only PDPs hide it.

   Scope intentionally limited to WooCommerce single products.
   ========================================================= */

body.single-product .call-back-feature {
    display: none !important;
}
