.cms-shoppable .page-wrapper {
    grid-gap:0!important;
}

.cms-shoppable .breadcrumbs, .cms-shoppable .page.messages {
    display: none!important;
}


/* ================================================
   SHOPPABLE BANNER — Codzy
   ================================================ */

.shoppable-banner {
    margin: 0 0 64px;
    font-family: inherit;
}

/* ================================================
   CONTAINER: full-width banner image
   ================================================ */

.shoppable-banner__container {
    display: flex;
    align-items: stretch;
    min-height: 510px;
    background: #f7f7f7;
    padding: 0;
    overflow: hidden;
}

.shoppable-banner__image-wrapper {
    position: relative;
    overflow: hidden;
    background: #d0d0d0;
    flex: 1;
}

.shoppable-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================================
   DOTS
   ================================================ */

.shoppable-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    transition: box-shadow 0.2s, background 0.2s;
    z-index: 10;
}

.shoppable-dot__inner {
    width: 13px;
    height: 13px;
    background: #222;
    border-radius: 50%;
    display: block;
    transition: background 0.2s, transform 0.2s;
    position: relative;
    z-index: 2;
}

.shoppable-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: dot-pulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.9; }
    50%       { transform: scale(1.35); opacity: 0;   }
}

.shoppable-dot--active {
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.38);
}

.shoppable-dot--active::before {
    animation: none;
    display: none;
}

.shoppable-dot--active .shoppable-dot__inner {
    background: #FF7E00;
    transform: scale(1.15);
}

.shoppable-dot:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
}

.shoppable-dot:hover .shoppable-dot__inner {
    background: #FF7E00;
}

/* ================================================
   PRODUCT POPUP OVERLAY
   ================================================ */

.product-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    max-width: 1440px;
    width: 96%;
    height: 96vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 655px;
}

.product-popup__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    top: 50%;
    left: 50%;
    width: 101vw;
    height: 101vh;
    transform: translate(-50%, -50%);
}

.product-popup--open .product-popup__backdrop {
    opacity: 1;
}

.product-popup__dialog {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
    border-radius: 30px;
}

.product-popup--open .product-popup__dialog {
    transform: translateY(0);
    opacity: 1;
}

/* Close button */
.product-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, transform 0.2s;
    color: #333;
    padding: 9px;
}

.product-popup__close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

/* Full page link */
.product-popup__fullpage-link {
    position: absolute;
    top: 16px;
    right: 68px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: white!important;
    text-decoration: none!important;
    background: #0051ff!important;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.product-popup__fullpage-link:hover {
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
}

/* Popup body: 2-column layout */
.product-popup__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    gap: 0;
    padding-top: 60px; /* space for close button */
    justify-content: center;
}

/* Gallery column */
.product-popup__gallery {
    width: 50%;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    max-height: calc(100vh - 60px);
    overflow-y: hidden;
    padding: 0px 24px 0px 32px;
    border-right: 1px solid #eee;
}

/* Info column */
.product-popup__body .product-popup__info {
    flex: 1;
    padding: 0px 32px 48px 28px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    max-width: 39%;
    grid-template-columns: none;
    gap: 0;
}

/* Product name in popup */
.product-popup__info .product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 8px;
    padding-right: 0; /* avoid overlap with close/link buttons */
}

/* Description in popup */
.product-popup__description {
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-popup__description .detail-block-content {
    max-height: 300px;
    overflow-y: auto;
}

/* Downloads in popup */
.product-popup__downloads {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Lock body scroll when popup is open */
body.product-popup-body-lock {
    overflow: hidden;
}

.product-popup__info .shipping-btn {
    background: transparent;
    border: 2px solid #0051ff;
    padding: 1rem 1.8rem;
    font-weight: 500;
    border-radius: 8px;
    color: #0051ff;
    transition: .4s ease;
}
.product-popup__info .shipping-btn:hover {
    background: #0051ff;
    color: white;
}

.product-popup__body .gallery-main-wrapper {
    max-width: 75%;
}
.product-popup__body .gallery-thumbs-wrapper {
    width: 90px;
    flex-shrink: 0;
    position: relative;
    max-height: 463px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.product-popup__body .gallery-thumbs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    color: #555;
    cursor: pointer;
    transition: background .2s, color .2s;
    z-index: 2;
    padding: 0px;
}

.product-popup__body .gallery-thumbs-nav:hover {
    background: #f4f4f4;
    color: #111;
}

.product-popup__body .gallery-thumbs-nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.product-popup__body .gallery-thumbs-wrapper .gallery-thumbs-swiper {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.page-layout-1column .product-popup__info .product-info-main {
    width: 100%;
    float: none;
}

.dimensions-panel.sem-embalagem.active {
    border-radius: 0 20px 20px 20px;
}

.product-popup__info .dimensions-values {
    flex-wrap: wrap;
}
.product-popup__info .dimension-item img {
    max-height: 23px;
}
.product-popup__description.detail-block {
    height: min-content;
}

.product-popup__info .dimensions-tab:not(.active) {
    border: 0;
}

.product-popup__info .product-sku-wrapper {
    display: flex;
    align-items: center;
    grid-gap: .3rem;
}

.product-popup__info .shipping-result {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 1rem;
}
.product-popup__info .shipping-result .shipping-option .shipping-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-popup__info .shipping-result .shipping-option .shipping-info .shipping-time {
    font-weight: 600;
}

.dimensions-panel.com-embalagem:nth-child(2) {
    border-radius: 0 20px 20px 20px;
}


.product-popup__downloads .detail-block-content.downloads-list {
    grid-gap: 4rem;
    padding: 20px 0;
    width: 99%;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

/* ================================================
   MOBILE (<768px)
   ================================================ */

@media (max-width: 767px) {
    .product-popup__form .swatch-option {
        padding: 0 13px;
        font-size: 13px;
    }
    .product-popup__downloads .detail-block-content.downloads-list {
        grid-gap: 4rem;
        padding: 10px 0;
        width: 99%;
        flex-wrap: wrap;
    }
    .shoppable-banner__container {
        flex-direction: column;
        min-height: unset;
    }

    .shoppable-banner__image-wrapper {
        height: auto;
        flex: none;
    }

    .shoppable-dot {
        width: 28px;
        height: 28px;
    }

    .shoppable-dot__inner {
        width: 9px;
        height: 9px;
    }

    .product-popup__body {
        flex-direction: column;
        padding-top: 56px;
        grid-gap: 2rem;
        overflow-y: scroll;
        height: 96vh;
        justify-content: initial;
    }
    .product-popup__body .product-media-column {
        max-width: 100%;
        padding: 0;
    }
    
    .product-popup__body .product-gallery-custom {
        gap: 7px;
        align-items: center;
        padding-bottom: .8rem;
    }
    .product-popup__body .gallery-thumbs-wrapper {
        width: 100%;
    }
    .product-popup__body .gallery-thumbs-wrapper .gallery-thumbs-nav {
        display: none;
    }
    .product-popup__body .gallery-thumbs-wrapper .gallery-thumb {
        width: 81px;
        height: 81px;
    }
    .product-popup__body .gallery-main-wrapper {
        max-width: 100%;
    }

    .product-popup__gallery {
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .product-popup__body .product-popup__info {
        max-height: min-content;
        max-width: 100%;
        height: auto;
        overflow: initial;
        padding: 0px 15px 48px 15px;
    }

    .product-popup__info .shipping-btn {
        max-width:37%;
    }

    .product-popup__info {
        max-height: none;
        padding: 16px 16px 32px;
    }

    .product-popup__info .product-name {
        font-size: 16px;
        padding-right: 0;
    }

    .product-popup__fullpage-link {
        font-size: 11px;
        padding: 6px 10px;
        right: 62px;
        top: 12px;
    }

    .product-popup__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    .gallery-thumbs-swiper .swiper-slide {
        justify-items: center;
    }
    .product-popup__info .shipping-input-wrapper input {
        width:41%;
    }
    .product-popup__info .shipping-btn {
        max-width:45%;
        padding:1rem .2rem;
    }
    .product-popup__body .gallery-thumbs-wrapper .gallery-thumbs-swiper {
        height:auto;
    }
}

