/* =========================================================
   ZRO Catalog Builder - Single Product
   Versão limpa
========================================================= */

/* Página / fundo */
.zcb-page-bg {
    width: 100%;
    min-height: 100vh;
    background: var(--zcb-page-bg, #ffffff);
}

body.single-zro_item,
body.single-zro_item #page,
body.single-zro_item #content,
body.single-zro_item .site-content,
body.single-zro_item .ast-container,
body.single-zro_item .ast-article-single,
body.single-zro_item .entry-content {
    background: var(--zcb-page-bg, #ffffff) !important;
}

/* Container principal */
.zcb-product {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 42px;
}

/* Breadcrumb */
.zcb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7280;
}

.zcb-breadcrumb a,
.zcb-breadcrumb span {
    color: #6b7280;
    text-decoration: none;
    font-weight: 700;
}

.zcb-breadcrumb a:hover {
    color: var(--zcb-primary, #111827);
}

/* Grid topo */
.zcb-product__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: 38px;
    align-items: start;
}

/* Galeria */
.zcb-gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.zcb-gallery__main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    cursor: zoom-in;
}

.zcb-gallery__placeholder {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #f3f4f6;
}

/* Setas da galeria */
.zcb-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none !important;
    border-radius: 999px;
    background: rgba(255,255,255,.94) !important;
    color: #111827 !important;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
    z-index: 3;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.zcb-gallery__arrow--prev {
    left: 16px;
}

.zcb-gallery__arrow--next {
    right: 16px;
}

.zcb-gallery__arrow::before {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    line-height: 1;
}

.zcb-gallery__arrow--prev::before {
    content: "←";
}

.zcb-gallery__arrow--next::before {
    content: "→";
}

.zcb-gallery__counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(17,24,39,.78);
    color: #fff;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 900;
    z-index: 3;
}

/* Miniaturas */
.zcb-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.zcb-gallery__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f3f4f6;
    cursor: pointer;
    transition: .2s ease;
}

.zcb-gallery__thumb:hover,
.zcb-gallery__thumb.is-active {
    border-color: var(--zcb-primary, #111827);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.zcb-gallery__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Card lateral */
.zcb-summary {
    background: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
    position: sticky;
    top: 24px;
}

.zcb-summary__badge {
    display: inline-flex;
    align-items: center;
    background: var(--zcb-primary, #111827);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.zcb-summary__title {
    margin: 0 0 18px;
    font-size: 40px;
    line-height: 1.08;
    color: #111827;
    font-weight: 950;
}

.zcb-summary__price {
    font-size: 34px;
    font-weight: 950;
    color: var(--zcb-primary, #111827);
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

/* Chips Marca / Modelo */
.zcb-tax-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 14px !important;
}

.zcb-tax-chips span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.zcb-tax-chips strong {
    color: #111827;
    margin-right: 4px;
}

/* Specs */
.zcb-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px !important;
}

.zcb-spec {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 11px 12px !important;
}

.zcb-spec__icon {
    flex: 0 0 auto;
    color: var(--zcb-primary, #111827);
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
}

.zcb-spec__label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 800;
    margin-bottom: 6px;
}

.zcb-spec__value {
    display: block;
    font-size: 15px;
    color: #111827;
    font-weight: 900;
}

/* Botão WhatsApp */
.zcb-whatsapp {
    width: 100%;
    min-height: 56px;
    margin-top: 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    background: var(--zcb-whatsapp, #16a34a);
    color: #fff !important;
    text-decoration: none;
    font-weight: 950;
    font-size: 17px;
    box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.zcb-summary__safe {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin: 14px 0 0;
}

/* Descrição */
.zcb-description {
    margin-top: 38px;
    background: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.zcb-description h2 {
    margin: 0 0 18px;
    font-size: 28px;
    color: #111827;
}

.zcb-description h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--zcb-primary, #111827);
    margin-top: 10px;
}

.zcb-description__content {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
}

/* Relacionados */
.zcr-related {
    margin-top: 38px;
    background: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.zcr-related h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
    color: #111827;
    font-weight: 900;
}

.zcr-related h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--zcb-primary, #111827);
    margin-top: 10px;
}

.zcr-related p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 16px;
}

.zcr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.zcr-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: .25s ease;
}

.zcr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.10);
}

.zcr-img {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

.zcr-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: .3s ease;
}

.zcr-card:hover .zcr-img img {
    transform: scale(1.04);
}

.zcr-body {
    padding: 22px;
}

.zcr-title {
    margin: 0 0 12px !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
    color: #111827 !important;
    font-weight: 900 !important;
}

.zcr-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--zcb-primary, #111827);
    margin-bottom: 18px;
}

.zcr-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 900;
}

/* Lightbox */
.zcb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(3,7,18,.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.zcb-lightbox.is-open {
    display: flex;
}

.zcb-lightbox__img {
    max-width: min(1280px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    transform: scale(1.02);
}

.zcb-lightbox__close,
.zcb-lightbox__arrow {
    position: absolute;
    border: none !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    cursor: pointer;
    border-radius: 999px;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.zcb-lightbox__close {
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
}

.zcb-lightbox__arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
}

.zcb-lightbox__arrow--prev {
    left: 24px;
}

.zcb-lightbox__arrow--next {
    right: 24px;
}

.zcb-lightbox__close::before {
    content: "×";
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
}

.zcb-lightbox__arrow::before {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
}

.zcb-lightbox__arrow--prev::before {
    content: "←";
}

.zcb-lightbox__arrow--next::before {
    content: "→";
}

.zcb-lightbox__counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 900;
}

/* Produto com apenas uma imagem */
.zcb-gallery--single .zcb-gallery__thumbs,
.zcb-gallery--single .zcb-gallery__counter,
.zcb-gallery--single .zcb-gallery__arrow {
    display: none !important;
}

.zcb-gallery--single .zcb-gallery__main {
    aspect-ratio: 4 / 3;
}

/* Ajuste final: produto com apenas uma imagem */
.zcb-product--single-image .zcb-product__grid {
    align-items: start !important;
}

.zcb-product--single-image .zcb-gallery {
    align-self: start !important;
}

.zcb-product--single-image .zcb-gallery__main {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}

.zcb-product--single-image .zcb-gallery__main-img {
    height: 100% !important;
    object-fit: cover !important;
}

/* Compactação refinada do card lateral */

.zcb-summary {
    padding: 24px !important;
}

.zcb-summary__badge {
    margin-bottom: 10px !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
}

.zcb-summary__title {
    font-size: 32px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
}

.zcb-summary__price {
    font-size: 28px !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

.zcb-tax-chips {
    margin: 0 0 12px !important;
}

.zcb-specs {
    gap: 8px !important;
}

.zcb-spec {
    padding: 10px !important;
    min-height: auto !important;
}

.zcb-spec__icon {
    font-size: 18px !important;
}

.zcb-spec__label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

.zcb-spec__value {
    font-size: 14px !important;
}

.zcb-whatsapp {
    min-height: 48px !important;
    margin-top: 14px !important;
    font-size: 15px !important;
}

.zcb-summary__safe {
    margin-top: 8px !important;
    font-size: 11px !important;
}

.zcb-gallery {
    height: auto !important;
    align-self: start !important;
}

/* Tablet */

@media(max-width:700px) {
    .zcb-gallery--single .zcb-gallery__main {
        aspect-ratio: 4 / 3;
    }
}

@media(max-width:1100px) {
    .zcb-product__grid {
        grid-template-columns: 1fr;
    }

    .zcb-summary {
        position: relative;
        top: auto;
    }
}

/* Mobile */
@media(max-width:700px) {
    .zcb-product {
        padding: 22px 14px;
    }

    .zcb-gallery__main {
        border-radius: 22px;
    }

    .zcb-gallery__thumbs {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .zcb-gallery__thumb {
        min-width: 78px;
        scroll-snap-align: start;
    }

    .zcb-summary {
        padding: 22px;
        border-radius: 22px;
    }

    .zcb-summary__title {
        margin-bottom: 10px !important;
        font-size: 29px;
    }

    .zcb-summary__price {
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
        font-size: 27px;
    }

    .zcb-specs {
        grid-template-columns: 1fr;
    }

    .zcb-description,
    .zcr-related {
        padding: 22px;
        border-radius: 22px;
    }

    .zcr-grid {
        grid-template-columns: 1fr;
    }

    .zcb-lightbox__arrow {
        width: 44px;
        height: 44px;
    }
}

/* Mobile intermediário */
@media(min-width:701px) and (max-width:900px) {
    .zcr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}