/**
 * CMC — ficha de produto (single-product).
 *
 * Camada visual por cima do template Divi Theme Builder (body template).
 * Não altera a estrutura do Divi: só re-estiliza os módulos existentes
 * (#imagem-produto, #produto, #produto-detalhes, related products).
 * Carregado apenas em is_product() — ver functions.php.
 *
 * Tokens alinhados com a loja nova: laranja #f58220, verde #00a650,
 * tinta #171717, CTA preto que aquece para laranja no hover.
 */

body.single-product {
    --pdp-ink: #171717;
    --pdp-muted: #6b6b6b;
    --pdp-hot: #f58220;
    --pdp-hot-soft: #fff1e4;
    --pdp-ok: #00a650;
    --pdp-line: #f0f0f0;
    --pdp-radius: 16px;
    --pdp-shadow: 0 8px 28px rgba(23, 23, 23, 0.08);
}

/* ------------------------------------------------------------------ */
/* Largura das linhas — alinhada com o resto da loja                  */
/* ------------------------------------------------------------------ */
body.single-product #page-container .et-db #et-boc .et-l .et_pb_section_3_tb_body .et_pb_row_1_tb_body.et_pb_row,
body.single-product #page-container .et-db #et-boc .et-l .et_pb_section_3_tb_body .et_pb_row_2_tb_body.et_pb_row,
body.single-product #page-container .et-db #et-boc .et-l .et_pb_section_4_tb_body .et_pb_row_4_tb_body.et_pb_row {
    width: min(1280px, calc(100% - 32px)) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
}

body.single-product #header-carousel,
body.single-product #slider-container,
body.single-product #infiniteSlider-marcas {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 980px) {
    body.single-product.cmc-h-on::after {
        left: 0 !important;
        transition: opacity 0.2s ease !important;
    }

    body.single-product.cmc-h-rail-off::after {
        opacity: 0 !important;
    }
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_section_1_tb_body.et_pb_section {
    padding-bottom: 0 !important;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_section_3_tb_body.et_pb_section {
    padding-top: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Palco: galeria + caixa de compra                                   */
/* ------------------------------------------------------------------ */
body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_1_tb_body.et_pb_row {
    display: grid !important;
    grid-template-columns: minmax(0, 686px) minmax(340px, 1fr);
    gap: 24px;
    align-items: start;
    justify-content: stretch !important;
    padding: 0 !important;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_1_tb_body > .et_pb_column {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
}

/* Coluna da galeria — sem cartão */
body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_1_tb_body {
    position: relative;
    z-index: 2;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_1_tb_body > .et_pb_column:nth-child(2) {
    position: relative;
    z-index: 1;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_1_tb_body:has(.is-zooming) {
    z-index: 80 !important;
}

body.single-product #imagem-produto {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    overflow: visible;
}

body.single-product #imagem-produto .et_pb_module_inner {
    width: 100%;
    overflow: visible;
}

body.single-product #imagem-produto .woocommerce-product-gallery {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    width: 100%;
    overflow: visible;
}

@media (min-width: 981px) {
    body.single-product #imagem-produto .woocommerce-product-gallery:has(ol.flex-control-thumbs li) {
        grid-template-columns: 72px 600px;
        gap: 14px;
    }

    body.single-product #imagem-produto .flex-viewport {
        grid-column: 2;
        grid-row: 1;
        width: 600px !important;
        max-width: 100% !important;
    }

    body.single-product #imagem-produto ol.flex-control-nav.flex-control-thumbs {
        grid-column: 1;
        grid-row: 1;
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        max-height: 600px;
        margin: 0 !important;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

body.single-product #imagem-produto .flex-viewport {
    position: relative;
    box-sizing: border-box;
    width: 600px !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #fafafa;
    cursor: crosshair;
}

body.single-product #imagem-produto .woocommerce-product-gallery__wrapper,
body.single-product #imagem-produto .woocommerce-product-gallery__image,
body.single-product #imagem-produto .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

body.single-product #imagem-produto .woocommerce-product-gallery__image img {
    display: block;
    width: 600px !important;
    height: 600px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    pointer-events: none;
}

/* Miniaturas — sem caixa, só canto suave */
body.single-product #imagem-produto ol.flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

body.single-product #imagem-produto ol.flex-control-thumbs li,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li {
    box-sizing: border-box;
    float: none !important;
    width: 72px !important;
    height: 72px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transform: none !important;
    opacity: 1;
}

body.single-product #imagem-produto ol.flex-control-thumbs li img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.72;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

body.single-product #imagem-produto ol.flex-control-thumbs li:hover,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li:hover {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.single-product #imagem-produto ol.flex-control-thumbs li:hover img,
body.single-product #imagem-produto ol.flex-control-thumbs li img.flex-active {
    opacity: 1;
}

body.single-product #imagem-produto ol.flex-control-thumbs li:has(img.flex-active) img,
body.single-product #imagem-produto ol.flex-control-thumbs li img.flex-active {
    box-shadow: 0 0 0 2px var(--pdp-hot);
}

/* Sem lupa — zoom à Amazon (malha + painel) */
body.single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

html.cmc-ready body.single-product .cmc-zoom-lens,
html.cmc-ready .cmc-zoom-lens {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    width: 200px;
    height: 200px;
    pointer-events: none;
    transition: none !important;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    border: 1px solid rgba(245, 130, 32, 0.9);
    background-color: rgba(245, 130, 32, 0.16);
    background-image:
        linear-gradient(rgba(245, 130, 32, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 130, 32, 0.55) 1px, transparent 1px);
    background-size: 10px 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

html.cmc-ready body.single-product .cmc-zoom-pane,
html.cmc-ready .cmc-zoom-pane,
body.single-product .cmc-zoom-pane,
.cmc-zoom-pane {
    position: fixed;
    z-index: 90;
    box-sizing: border-box;
    width: 600px;
    height: 600px;
    overflow: hidden;
    transition: none !important;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 23, 23, 0.14);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

body.single-product .woocommerce-product-gallery.is-zooming {
    z-index: 30;
}

body.single-product .woocommerce-product-gallery.is-zooming .cmc-zoom-pane,
body.single-product.is-pdp-zooming .cmc-zoom-pane {
    opacity: 1;
    visibility: visible;
}

html.cmc-ready body.single-product .cmc-zoom-pane img,
html.cmc-ready .cmc-zoom-pane img,
body.single-product .cmc-zoom-pane img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    max-width: none !important;
    max-height: none !important;
    width: auto;
    height: auto;
    object-fit: fill;
    object-position: 0 0;
    transition: none !important;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

@media (hover: none), (max-width: 980px) {
    body.single-product .cmc-zoom-lens,
    body.single-product .cmc-zoom-pane {
        display: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* Caixa de compra (#produto)                                         */
/* ------------------------------------------------------------------ */
body.single-product #produto {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    grid-template-areas:
        "marca marca marca"
        "nome-produto nome-produto nome-produto"
        "ref ref ref"
        "preco-produto preco-produto preco-produto"
        "adicionar-produto adicionar-produto adicionar-produto"
        "save save save"
        "icone-envio-produto envio-produto envio-produto"
        "icone-entrega-produto entrega-produto entrega-produto"
        "icone-assistencia-tecnica assistencia-tecnica assistencia-tecnica" !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    min-width: 0 !important;
    padding: 18px 18px 16px !important;
    overflow: visible !important;
    border: 1px solid var(--pdp-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(23, 23, 23, 0.05) !important;
}

/* Marca */
body.single-product #produto #marca.et_pb_text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

body.single-product #produto #marca a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pdp-hot-soft);
    color: var(--pdp-hot) !important;
    text-decoration: none;
}

body.single-product #produto #marca a:hover {
    background: var(--pdp-hot);
    color: #fff !important;
}

body.single-product #produto #marca.cmc-has-logo > .et_pb_text_inner > a[data-ref] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

body.single-product #produto .cmc-pdp-brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
}

body.single-product #produto .cmc-pdp-brand img {
    display: block;
    width: auto;
    max-width: 168px;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: multiply;
}

/* Título */
body.single-product #produto #nome-produto {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product #produto #nome-produto h1 {
    margin: 0;
    padding: 0;
    color: var(--pdp-ink) !important;
    font-size: clamp(20px, 2vw, 26px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1.2;
    word-spacing: 0.08em;
}

body.single-product #produto #nome-produto::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--pdp-hot);
}

/* Referência */
body.single-product #produto #ref.et_pb_text {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    color: #9a9a9a !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

body.single-product #produto #ref .et_pb_text_inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.single-product #produto .cmc-copy-ref {
    margin: 0;
    padding: 2px 8px;
    border: 1px solid var(--pdp-line);
    border-radius: 4px;
    background: #fff;
    color: var(--pdp-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

body.single-product #produto .cmc-copy-ref:hover {
    border-color: var(--pdp-hot);
    color: var(--pdp-hot);
}

body.single-product #produto .cmc-pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f8ee;
    color: #0b7a3b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
}

body.single-product #produto .cmc-pdp-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body.single-product #produto .cmc-pdp-stock.is-out {
    background: rgba(214, 40, 40, 0.12);
    color: #d62828;
}

body.single-product #produto .cmc-pdp-stock.is-wait {
    background: var(--pdp-hot-soft);
    color: #b85a0c;
}

body.single-product #produto #adicionar-produto p.stock.cmc-stock-moved {
    display: none !important;
}

/* Preço */
body.single-product #produto #preco-produto {
    margin: 12px 0 10px !important;
    padding: 12px 0 4px !important;
    border-top: 1px solid var(--pdp-line);
}

body.single-product #produto #preco-produto .et_pb_module_inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.single-product #produto #preco-produto p.price {
    display: flex !important;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px 12px;
    margin: 0;
    padding: 0;
    text-align: left !important;
    line-height: 1.1 !important;
}

body.single-product #produto #preco-produto p.price del {
    order: -1;
    flex: 1 0 100%;
    margin: 0 !important;
    color: #8a8a8a;
    font-size: 13px !important;
    font-weight: 600;
    text-align: left !important;
    text-decoration: line-through;
}

body.single-product #produto #preco-produto p.price del .amount {
    font-size: inherit !important;
    font-weight: 600 !important;
    color: inherit !important;
}

body.single-product #produto #preco-produto p.price ins {
    background: transparent;
    text-decoration: none;
}

body.single-product #produto #preco-produto p.price ins .woocommerce-Price-amount.amount,
body.single-product #produto #preco-produto p.price > .woocommerce-Price-amount.amount {
    margin-right: 0 !important;
    color: var(--pdp-ok) !important;
    font-size: clamp(28px, 3vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.05;
}

body.single-product #produto #preco-produto p.price > small,
body.single-product #produto #preco-produto p.price .woocommerce-price-suffix {
    padding-left: 10px;
    border-left: 1px solid #e4e4e4;
    color: #8a8a8a;
    font-size: 14px !important;
    font-weight: 400;
}

/* Selo de desconto (criado em product-single.js) */
body.single-product #produto .cmc-pdp-off {
    position: static;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 6px;
    background: #e10600;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Stock */
body.single-product #produto #adicionar-produto {
    margin: 0 0 4px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pdp-line);
}

body.single-product #produto #adicionar-produto p.stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f8ee;
    color: #0b7a3b !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

body.single-product #produto #adicionar-produto p.stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body.single-product #produto #adicionar-produto p.stock.out-of-stock {
    background: rgba(214, 40, 40, 0.12);
    color: #d62828 !important;
}

body.single-product #produto #adicionar-produto p.stock.available-on-backorder {
    background: var(--pdp-hot-soft);
    color: #b85a0c !important;
}

/* Quantidade + CTA */
body.single-product #produto #adicionar-produto form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 10px;
    width: 100% !important;
    margin: 0 !important;
}

body.single-product #produto #adicionar-produto form.cart .quantity,
body.single-product #produto #adicionar-produto form.cart .quantity.hidden {
    display: inline-flex !important;
    visibility: visible !important;
    flex: 0 0 auto;
    align-items: stretch;
    width: auto !important;
    min-width: 132px;
    height: 50px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

body.single-product #produto #adicionar-produto form.cart .quantity input.qty {
    box-sizing: border-box;
    width: 52px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--pdp-ink);
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

body.single-product #produto #adicionar-produto form.cart .quantity input.qty::-webkit-outer-spin-button,
body.single-product #produto #adicionar-produto form.cart .quantity input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

body.single-product #produto #adicionar-produto form.cart .quantity input.qty:only-child {
    border: 0 !important;
}

body.single-product .cmc-q-btn {
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--pdp-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

body.single-product .cmc-q-btn:hover:not(:disabled) {
    background: #f7f7f7;
    color: var(--pdp-hot);
}

body.single-product .cmc-q-btn:disabled {
    color: #c7c9cd;
    cursor: not-allowed;
}

body.single-product #produto #adicionar-produto form.cart button.single_add_to_cart_button {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    gap: 10px;
    height: 50px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #1f1f1f !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 0 20px -20px #f58220;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.single-product #produto #adicionar-produto form.cart button.single_add_to_cart_button::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    opacity: 1 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.15'/%3E%3Ccircle cx='18' cy='20' r='1.15'/%3E%3Cpath d='M3 4h2l2.35 11.2a1.6 1.6 0 0 0 1.57 1.25h9.28a1.6 1.6 0 0 0 1.57-1.25L21.5 8H7'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product #produto #adicionar-produto form.cart button.single_add_to_cart_button::after {
    display: none !important;
}

body.single-product #produto #adicionar-produto form.cart button.single_add_to_cart_button:hover {
    background: var(--pdp-hot) !important;
    box-shadow: 0 0 10px rgba(245, 130, 32, 0.4) !important;
}

body.single-product #produto #adicionar-produto form.cart button.single_add_to_cart_button.loading {
    opacity: 0.7;
}

/* Perks (envio / entrega / assistência) */
body.single-product #produto .et_pb_icon_0_tb_body,
body.single-product #produto .et_pb_icon_1_tb_body,
body.single-product #produto .et_pb_icon_2_tb_body {
    align-self: start;
    width: 40px !important;
    height: 40px;
    margin: 10px 0 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--pdp-hot-soft);
}

body.single-product #produto #icone-envio-produto.et_pb_icon_0_tb_body {
    margin-top: 14px !important;
}

body.single-product #produto .et_pb_icon_0_tb_body .et_pb_icon_wrap,
body.single-product #produto .et_pb_icon_1_tb_body .et_pb_icon_wrap,
body.single-product #produto .et_pb_icon_2_tb_body .et_pb_icon_wrap {
    padding: 0 !important;
}

body.single-product #produto .et_pb_icon_0_tb_body .et-pb-icon,
body.single-product #produto .et_pb_icon_1_tb_body .et-pb-icon,
body.single-product #produto .et_pb_icon_2_tb_body .et-pb-icon {
    color: var(--pdp-hot) !important;
    font-size: 18px !important;
}

body.single-product #produto .envio-produto.et_pb_text,
body.single-product #produto .entrega-produto.et_pb_text,
body.single-product #produto .assistencia-tecnica.et_pb_text {
    align-self: center;
    margin: 10px 0 0 !important;
    padding: 8px 0 0 !important;
    color: #4a4a4a;
    font-size: 13px;
    line-height: 1.35;
}

body.single-product #produto .envio-produto.et_pb_text {
    padding-top: 12px !important;
}

body.single-product #produto .envio-produto p,
body.single-product #produto .entrega-produto p,
body.single-product #produto .assistencia-tecnica p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

body.single-product #produto .cmc-perk-title {
    display: block;
    color: var(--pdp-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

body.single-product #produto .cmc-perk-title strong,
body.single-product #produto .cmc-perk-title span[style] {
    color: var(--pdp-hot) !important;
    font-weight: 700;
}

body.single-product #produto .cmc-perk-copy {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    color: #7a7a7a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* ------------------------------------------------------------------ */
/* Detalhes: informação do produto + suporte/pagamentos               */
/* ------------------------------------------------------------------ */
body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_2_tb_body.et_pb_row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    align-items: stretch;
    width: min(1280px, calc(100% - 32px)) !important;
    max-width: 1280px !important;
    margin-top: 28px !important;
    padding: 0 !important;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_2_tb_body > .et_pb_column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_3_tb_body {
    box-sizing: border-box;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_4_tb_body,
body.single-product .et_pb_column_4_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info {
    display: none !important;
}

/* Títulos de secção */
body.single-product .et_pb_text_11_tb_body h1,
body.single-product .et_pb_text_12_tb_body h1,
body.single-product .et_pb_text_13_tb_body h1,
body.single-product .et_pb_text_14_tb_body h1,
body.single-product .et_pb_text_15_tb_body h1,
body.single-product .et_pb_text_16_tb_body h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--pdp-ink) !important;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: left !important;
}

body.single-product .et_pb_text_11_tb_body h1::before,
body.single-product .et_pb_text_12_tb_body h1::before,
body.single-product .et_pb_text_13_tb_body h1::before,
body.single-product .et_pb_text_14_tb_body h1::before,
body.single-product .et_pb_text_15_tb_body h1::before,
body.single-product .et_pb_text_16_tb_body h1::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--pdp-hot);
}

body.single-product .et_pb_text_11_tb_body,
body.single-product .et_pb_text_12_tb_body,
body.single-product .et_pb_text_13_tb_body,
body.single-product .et_pb_text_14_tb_body,
body.single-product .et_pb_text_15_tb_body,
body.single-product .et_pb_text_16_tb_body {
    margin: 0 0 14px !important;
    padding: 0 !important;
}

/* Descrição + abas: os blocos .cmc-block passam a ser as caixas */
body.single-product .et_pb_wc_description_0_tb_body.et_pb_wc_description,
body.single-product .et_pb_wc_tabs_0_tb_body.et_pb_tabs {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

body.single-product .et_pb_wc_description_0_tb_body p {
    margin: 0 0 12px;
    color: #3a3a3a;
    font-size: 15px;
    line-height: 1.65em;
}

body.single-product .cmc-specs-src,
body.single-product .cmc-desc-empty,
body.single-product .cmc-tabs-absorbed {
    display: none !important;
}

body.single-product #produto > .cmc-pdp-links {
    grid-column: 1 / -1;
    min-width: 0;
}

body.single-product #produto .cmc-spec-box,
body.single-product #produto .cmc-spec-strip,
body.single-product #produto .cmc-spec-kicker,
body.single-product #produto .cmc-pdp-more {
    display: none !important;
}

body.single-product .cmc-details .cmc-pdp-facts {
    margin: 0 0 12px;
    padding: 0 0 0 18px;
    color: var(--pdp-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

body.single-product .cmc-details .cmc-pdp-facts li + li {
    margin-top: 4px;
}

body.single-product #produto .cmc-spec-strip {
    display: grid;
    margin: 0;
    padding: 0;
    border: 0;
}

body.single-product #produto .cmc-spec-strip > div {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--pdp-line);
}

body.single-product #produto .cmc-spec-strip > div:last-child {
    border-bottom: 0;
}

body.single-product #produto .cmc-spec-strip dt,
body.single-product .cmc-specs dt {
    margin: 0;
    overflow: hidden;
    color: var(--pdp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}

body.single-product #produto .cmc-spec-strip dd,
body.single-product .cmc-specs dd {
    margin: 0;
    color: var(--pdp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

body.single-product #produto .cmc-pdp-more {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--pdp-line);
    color: var(--pdp-hot);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.single-product #produto .cmc-pdp-more:hover {
    text-decoration: underline;
}

body.single-product #produto .cmc-pdp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--pdp-line);
}

body.single-product #produto .cmc-pdp-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 12px 7px 14px;
    overflow: hidden;
    border: 1px solid var(--pdp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pdp-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.single-product #produto .cmc-pdp-links a::after {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--pdp-hot);
    border-right: 1.5px solid var(--pdp-hot);
    transform: rotate(45deg);
}

body.single-product #produto .cmc-pdp-links a:hover {
    border-color: var(--pdp-hot);
    color: var(--pdp-hot);
}

/* Divi: .et-db e #et-boc são o mesmo nó — selectors longos com
   `.et-db #et-boc` não batem. Estas regras curtas é que valem. */
body.single-product .et_pb_row_2_tb_body.et_pb_row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(1280px, calc(100% - 32px)) !important;
    max-width: 1280px !important;
    margin-top: 28px !important;
    padding: 0 !important;
}

body.single-product .et_pb_column_3_tb_body,
body.single-product .et_pb_column_3_tb_body.et_pb_column_2_3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
}

body.single-product .cmc-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

body.single-product .cmc-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 22px 24px 8px;
    border: 1px solid var(--pdp-line);
    border-radius: 12px;
    background: #fff;
}

body.single-product .cmc-block-head {
    margin: 0 0 6px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--pdp-line);
    text-align: left;
}

body.single-product .cmc-block-idx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pdp-hot);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

body.single-product .cmc-block-idx::before {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
}

body.single-product .cmc-block-title {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    color: var(--pdp-ink);
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
}

body.single-product #ficha-tecnica {
    scroll-margin-top: calc(var(--cmc-h-offset, 118px) + 16px);
}

body.single-product .cmc-lead {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 72ch;
    margin: 0;
    padding: 8px 0 16px;
    color: #3a3a3a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

body.single-product .cmc-lead p {
    margin: 0;
}

body.single-product .cmc-lead-dl {
    margin: 0;
    padding: 4px 0 8px;
}

body.single-product .cmc-lead-dl > div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
    gap: 8px 28px;
    align-items: baseline;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--pdp-line);
}

body.single-product .cmc-lead-dl > div:last-child {
    border-bottom: 0;
}

body.single-product .cmc-lead-dl dt {
    margin: 0;
    color: var(--pdp-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

body.single-product .cmc-lead-dl dd {
    margin: 0;
    color: #3a3a3a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
}

body.single-product .cmc-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    margin: 0;
    padding: 4px 0 12px;
}

body.single-product .cmc-specs > div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--pdp-line);
}

body.single-product .cmc-specs dd {
    text-align: left;
}

body.single-product .cmc-specs > div:nth-child(odd),
body.single-product .cmc-specs > div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
}

/* Abas (informação adicional) */
body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tabs_controls {
    margin: 0 0 6px;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tabs_controls::after {
    display: none !important;
}

body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tabs_controls li {
    border: 0 !important;
    background: transparent !important;
}

body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tabs_controls li a {
    display: inline-block;
    padding: 0 0 8px !important;
    border-bottom: 3px solid var(--pdp-hot);
    color: var(--pdp-ink) !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_all_tabs {
    border: 0 !important;
    background: transparent !important;
}

body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tab {
    padding: 0 !important;
}

body.single-product .woocommerce-product-attributes {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
    padding: 11px 8px;
    border: 0;
    border-bottom: 1px solid var(--pdp-line);
    background: transparent !important;
    font-size: 14px;
    line-height: 1.4;
    text-align: left !important;
    vertical-align: baseline;
}

body.single-product .woocommerce-product-attributes th {
    width: 38%;
    color: var(--pdp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.single-product .woocommerce-product-attributes td {
    color: var(--pdp-ink);
    font-weight: 600;
}

body.single-product .woocommerce-product-attributes td p {
    margin: 0;
}

/* Coluna: meios de pagamento / suporte */
body.single-product .et_pb_column_4_tb_body.produto-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-content: start;
    align-items: center;
}

body.single-product .et_pb_column_4_tb_body.produto-info > .et_pb_text_14_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info > .et_pb_text_15_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info > .et_pb_text_16_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info > .et_pb_text_17_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info > .et_pb_text_18_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info > .et_pb_text_19_tb_body,
body.single-product .et_pb_column_4_tb_body.produto-info > #pagamentos-produto {
    grid-column: 1 / -1;
}

body.single-product .et_pb_column_4_tb_body .et_pb_text_17_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_18_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_19_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_20_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_21_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_22_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_23_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_24_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_25_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_26_tb_body {
    margin: 0 !important;
    padding: 14px 0 !important;
    border-top: 1px solid var(--pdp-line);
    color: var(--pdp-ink);
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.3em !important;
}

body.single-product .et_pb_column_4_tb_body .et_pb_text_17_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_18_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_text_19_tb_body {
    border-top: 0;
    padding-bottom: 8px !important;
}

body.single-product .et_pb_column_4_tb_body .et_pb_text_20_tb_body p,
body.single-product .et_pb_column_4_tb_body .et_pb_text_21_tb_body p,
body.single-product .et_pb_column_4_tb_body .et_pb_text_22_tb_body p,
body.single-product .et_pb_column_4_tb_body .et_pb_text_23_tb_body p,
body.single-product .et_pb_column_4_tb_body .et_pb_text_24_tb_body p,
body.single-product .et_pb_column_4_tb_body .et_pb_text_25_tb_body p,
body.single-product .et_pb_column_4_tb_body .et_pb_text_26_tb_body p {
    margin: 0;
    padding: 0;
}

body.single-product .et_pb_column_4_tb_body #pagamentos-produto,
body.single-product .et_pb_column_4_tb_body .et_pb_image_1_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_image_2_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_image_3_tb_body {
    margin: 0 !important;
    padding: 0;
}

body.single-product .et_pb_column_4_tb_body #pagamentos-produto {
    max-width: 280px;
    padding-bottom: 12px;
}

body.single-product .et_pb_column_4_tb_body .et_pb_image_1_tb_body {
    max-width: 64px;
}

body.single-product .et_pb_column_4_tb_body .et_pb_image_2_tb_body,
body.single-product .et_pb_column_4_tb_body .et_pb_image_3_tb_body {
    max-width: 40px;
}

body.single-product .et_pb_column_4_tb_body .et_pb_image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ */
/* Relacionados                                                       */
/* ------------------------------------------------------------------ */
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    color: var(--pdp-ink);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

body.single-product .related.products > h2::before,
body.single-product .upsells.products > h2::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: 26px;
    border-radius: 2px;
    background: var(--pdp-hot);
}

/* ------------------------------------------------------------------ */
/* Responsivo                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    body.single-product .cmc-specs {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    body.single-product .cmc-related-head {
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    body.single-product {
        --pdp-stick-h: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_1_tb_body.et_pb_row,
    body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_2_tb_body.et_pb_row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_2_tb_body.et_pb_row,
    body.single-product .et_pb_row_2_tb_body.et_pb_row {
        margin-top: 20px !important;
        gap: 16px;
    }

    body.single-product .cmc-details {
        gap: 16px;
    }

    body.single-product .cmc-block {
        padding: 18px 16px 6px;
    }

    body.single-product .cmc-lead-dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    body.single-product #ficha-tecnica {
        scroll-margin-top: 72px;
    }

    body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_1_tb_body {
        padding: 0 !important;
    }

    body.single-product #imagem-produto {
        max-width: min(100%, 280px) !important;
        margin-inline: auto !important;
    }

    body.single-product #imagem-produto .woocommerce-product-gallery {
        grid-template-columns: 1fr;
    }

    body.single-product #imagem-produto .flex-viewport {
        width: min(100%, 280px) !important;
        max-width: min(100%, 42dvh, 280px) !important;
        max-height: min(42dvh, 280px) !important;
        margin-inline: auto;
    }

    body.single-product #imagem-produto .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        aspect-ratio: auto;
        object-fit: contain;
    }

    body.single-product #imagem-produto ol.flex-control-nav.flex-control-thumbs {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        max-height: none;
        margin: 8px 0 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body.single-product #produto {
        padding: 16px 14px calc(12px + var(--pdp-stick-h)) !important;
    }

    body.single-product #produto #adicionar-produto {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 0 !important;
        min-height: 0 !important;
    }

    body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_3_tb_body {
        padding: 0 !important;
    }

    /* Barra de compra fixa no fundo (só produtos simples).
       No telemóvel o JS passa o form para body (.cmc-pdp-stick) para
       não ficar preso no stacking do Divi por baixo dos cards. */
    body.single-product #produto #adicionar-produto form.cart:not(.variations_form):not(.grouped_form),
    body.single-product form.cart.cmc-pdp-stick {
        position: fixed !important;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10025 !important;
        box-sizing: border-box;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid rgba(23, 23, 23, 0.08);
        background: #fff !important;
        box-shadow: 0 -10px 28px rgba(23, 23, 23, 0.12);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        isolation: isolate;
        transform: translateZ(0);
    }

    body.single-product #page-container,
    body.single-product #main-content,
    body.single-product #main-footer {
        padding-bottom: var(--pdp-stick-h) !important;
    }

    body.single-product #page-container .et-db #et-boc .et-l .et_pb_section_4_tb_body.et_pb_section {
        padding-top: 12px !important;
        padding-bottom: var(--pdp-stick-h) !important;
        min-height: 0 !important;
        background-image: none !important;
        overflow: visible;
    }

    body.single-product .related.products,
    body.single-product .et_pb_wc_related_products,
    body.single-product .cmc-pdp-slider-wrap {
        isolation: isolate;
        z-index: 0;
        overflow: hidden;
        padding-bottom: var(--pdp-stick-h);
    }

    body.single-product .related.products ul.products li.product,
    body.single-product .related.products .et_shop_image,
    body.single-product .related.products img {
        mix-blend-mode: normal !important;
        z-index: auto !important;
        transform: none !important;
    }

    body.single-product .related.products.is-loading,
    body.single-product .related.products.is-loading ul.products {
        min-height: 0 !important;
    }

    body.single-product .related.products > h2,
    body.single-product .et_pb_wc_related_products h2:not(.cmc-related-head h2) {
        display: none !important;
    }

    body.single-product .related.products ul.products,
    body.single-product .related.products ul.products.cmc-pdp-slider {
        padding: 8px 12px 20px !important;
    }

    body.single-product .related.products ul.products li.product,
    body.single-product .et_pb_wc_related_products ul.products li.product {
        flex-basis: min(240px, calc(100vw - 64px)) !important;
        width: min(240px, calc(100vw - 64px)) !important;
        min-width: min(220px, calc(100vw - 64px)) !important;
        max-width: min(240px, calc(100vw - 48px)) !important;
    }
}

@media (max-width: 640px) {
    body.single-product .cmc-specs > div,
    body.single-product .woocommerce-product-attributes th,
    body.single-product .woocommerce-product-attributes td {
        font-size: 13px;
    }

    body.single-product .cmc-specs > div {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 10px;
    }

    body.single-product #produto .cmc-spec-strip > div {
        padding: 9px 0;
    }

    body.single-product .cmc-block-title {
        font-size: 20px;
    }

    body.single-product #imagem-produto ol.flex-control-thumbs li,
    body.single-product .woocommerce div.product div.images .flex-control-thumbs li {
        width: 60px !important;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product #produto #adicionar-produto form.cart button.single_add_to_cart_button,
    body.single-product #imagem-produto ol.flex-control-thumbs li,
    body.single-product #imagem-produto ol.flex-control-thumbs li img {
        transition: none !important;
    }
}

/* ==== v2: acertos visuais ============================================ */

/* Aba única: o título do painel já diz tudo, esconde o controlo duplicado */
body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tabs_controls:has(li:only-child) {
    display: none !important;
}

body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tab h2,
body.single-product .et_pb_wc_tabs_0_tb_body .et_pb_tab > .et_pb_tab_content > h2 {
    margin: 24px 0 8px !important;
    padding: 0 0 0 12px !important;
    border-left: 4px solid var(--pdp-hot);
    color: var(--pdp-ink) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Marca: logótipo sem pílula atrás */
body.single-product #produto #marca a.cmc-pdp-brand,
body.single-product #produto #marca a.cmc-pdp-brand:hover {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
}

body.single-product #produto .cmc-pdp-brand img {
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(23, 23, 23, 0.12);
}

/* Quantidade: grupo único, sem molduras laranja do tema */
body.single-product #produto #adicionar-produto form.cart .quantity .cmc-q-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--pdp-ink) !important;
    font-family: inherit;
    transform: none !important;
}

body.single-product #produto #adicionar-produto form.cart .quantity .cmc-q-btn:hover:not(:disabled) {
    background: var(--pdp-hot-soft) !important;
    color: var(--pdp-hot) !important;
}

body.single-product #produto #adicionar-produto form.cart .quantity .cmc-q-btn:disabled {
    color: #c7c9cd !important;
}

body.single-product form.cart.cmc-pdp-stick {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 10px;
    width: 100% !important;
    margin: 0 !important;
}

body.single-product form.cart.cmc-pdp-stick .quantity,
body.single-product form.cart.cmc-pdp-stick .quantity.hidden {
    display: inline-flex !important;
    visibility: visible !important;
    flex: 0 0 auto;
    align-items: stretch;
    width: auto !important;
    min-width: 132px;
    height: 50px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

body.single-product form.cart.cmc-pdp-stick .quantity input.qty {
    box-sizing: border-box;
    width: 52px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--pdp-ink);
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
}

body.single-product form.cart.cmc-pdp-stick button.single_add_to_cart_button {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    gap: 10px;
    height: 50px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #1f1f1f !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

body.single-product form.cart.cmc-pdp-stick button.single_add_to_cart_button::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    opacity: 1 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.15'/%3E%3Ccircle cx='18' cy='20' r='1.15'/%3E%3Cpath d='M3 4h2l2.35 11.2a1.6 1.6 0 0 0 1.57 1.25h9.28a1.6 1.6 0 0 0 1.57-1.25L21.5 8H7'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product form.cart.cmc-pdp-stick button.single_add_to_cart_button::after {
    display: none !important;
}

body.single-product form.cart.cmc-pdp-stick .quantity .cmc-q-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--pdp-ink) !important;
    transform: none !important;
}

/* Galeria acompanha a leitura da coluna de compra */
@media (min-width: 981px) {
    body.single-product #page-container .et-db #et-boc .et-l .et_pb_column_1_tb_body {
        position: sticky;
        top: var(--cmc-h-offset, 118px);
        align-self: start;
    }
}

/* ------------------------------------------------------------------ */
/* Guardar — sai do canto, entra no painel                            */
/* ------------------------------------------------------------------ */
body.single-product #main-content > .clearfix:has(> .cmc-sv-toggle-wrap-single),
body.single-product #main-content > .clearfix:empty {
    display: none !important;
}

body.single-product #produto > .cmc-sv-toggle-wrap-single,
body.single-product #produto > .cmc-pdp-save {
    grid-area: save;
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    margin: 10px 0 4px !important;
    z-index: 2;
}

body.single-product #produto .cmc-sv-toggle-single {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--pdp-ink) !important;
}

body.single-product #produto .cmc-sv-toggle-single:hover,
body.single-product #produto .cmc-sv-toggle-single.is-on {
    border-color: var(--pdp-hot) !important;
    background: var(--pdp-hot-soft) !important;
    color: var(--pdp-hot) !important;
}

body.single-product #produto .cmc-sv-toggle-single .cmc-sv-toggle-label {
    font-size: 12px;
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Breadcrumb = sub-barra do header                                   */
/* ------------------------------------------------------------------ */
body.single-product #page-container .et-db #et-boc .et-l .et_pb_row_0_tb_body:not(:has(#breadcrumb_container)) {
    display: none !important;
}

body.single-product .cmc-pdp-crumbbar {
    position: relative;
    top: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0;
    background: var(--cmc-h-compact, #f4f4f4);
    border-top: 1px solid rgba(23, 23, 23, 0.06);
    box-sizing: border-box;
}

body.single-product .cmc-pdp-crumbbar #breadcrumb,
body.single-product .cmc-pdp-crumbbar #breadcrumb.custom-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 20px !important;
    overflow: hidden;
    color: #6b6b6b !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

body.single-product .cmc-pdp-crumbbar #breadcrumb .item,
body.single-product .cmc-pdp-crumbbar #breadcrumb a.item,
body.single-product .cmc-pdp-crumbbar #breadcrumb .item:not(.product) {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #6b6b6b !important;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: inherit;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

body.single-product .cmc-pdp-crumbbar #breadcrumb .item:hover:not(.product),
body.single-product .cmc-pdp-crumbbar #breadcrumb a.item:hover {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--pdp-hot) !important;
}

body.single-product .cmc-pdp-crumbbar #breadcrumb .sep {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    border: 0;
    border-top: 1.5px solid #b0b0b0;
    border-right: 1.5px solid #b0b0b0;
    border-radius: 0;
    background: transparent;
    transform: rotate(45deg);
}

body.single-product .cmc-pdp-crumbbar #breadcrumb .item.product {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--pdp-ink) !important;
    font-weight: 700;
    text-overflow: ellipsis;
}

body.single-product .cmc-pdp-crumbbar #breadcrumb i {
    display: none !important;
}

/* Relacionados: slider horizontal, cards de largura fixa */
body.single-product .et_pb_section_4_tb_body,
body.single-product .et_pb_wc_related_products,
body.single-product .related.products {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body.single-product .cmc-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
}

body.single-product .cmc-related-idx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pdp-hot);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.single-product .cmc-related-idx::before {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
}

body.single-product .cmc-related-head h2 {
    margin: 6px 0 0;
    padding: 0;
    color: var(--pdp-ink);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.single-product .cmc-related-head h2::before {
    display: none;
}

body.single-product .cmc-related-more {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1.5px solid var(--pdp-hot);
    border-radius: 2px;
    background: #fff;
    color: var(--pdp-hot);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.single-product .cmc-related-more:hover {
    background: var(--pdp-hot);
    color: #fff;
}

body.single-product .cmc-pdp-slider-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body.single-product .related.products ul.products,
body.single-product .related.products ul.products.cmc-pdp-slider {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    gap: 16px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 44px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    grid-template-columns: none !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
    display: none !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .related.products ul.products.columns-1 li.product,
body.single-product .related.products ul.products.columns-2 li.product,
body.single-product .related.products ul.products.columns-3 li.product,
body.single-product .related.products ul.products.columns-4 li.product,
body.single-product .related.products ul.products.columns-5 li.product,
body.single-product .related.products ul.products.columns-6 li.product,
body.single-product .et_pb_wc_related_products ul.products li.product {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    float: none !important;
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 12px 12px 16px !important;
    border: 1px solid var(--pdp-line);
    border-radius: 12px;
    background: #fff;
    scroll-snap-align: start;
    box-sizing: border-box;
}

body.single-product .related.products ul.products li.product:nth-child(n + 5),
body.single-product .related.products ul.products li.product:nth-child(n + 7),
body.single-product .related.products ul.products li.product:nth-child(n + 9) {
    display: flex !important;
}

body.single-product .cmc-pdp-rec-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 12px;
    overflow: hidden;
    background: #fafafa;
}

body.single-product .cmc-pdp-rec-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.single-product .cmc-pdp-rec-off {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    border-radius: 2px;
    background: #e31c23;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

body.single-product .related.products .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    margin: 0 0 6px;
    color: var(--pdp-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-transform: none;
}

body.single-product .related.products .cmc-pc-meta {
    margin: 0 0 8px;
    color: var(--pdp-muted);
    font-size: 11px;
    letter-spacing: 0.04em;
}

body.single-product .related.products .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    color: var(--pdp-ok);
    font-size: 18px;
    font-weight: 800;
}

body.single-product .related.products .price del {
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
}

body.single-product .related.products .price ins {
    text-decoration: none;
    color: var(--pdp-ok);
}

body.single-product .related.products .price small {
    color: var(--pdp-muted);
    font-size: 11px;
    font-weight: 600;
}

body.single-product .cmc-pdp-slider-btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(23, 23, 23, 0.12);
    cursor: pointer;
    transform: translateY(-50%);
}

body.single-product .cmc-pdp-slider-prev { left: 0; }
body.single-product .cmc-pdp-slider-next { right: 0; }

body.single-product .cmc-pdp-slider-btn span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto;
    border-top: 2px solid var(--pdp-ink);
    border-right: 2px solid var(--pdp-ink);
}

body.single-product .cmc-pdp-slider-prev span { transform: rotate(-135deg) translate(-1px, -1px); }
body.single-product .cmc-pdp-slider-next span { transform: rotate(45deg) translate(-1px, -1px); }

body.single-product .cmc-pdp-slider-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

body.single-product .cmc-pdp-slider-wrap:not(.is-scrollable) .cmc-pdp-slider-btn {
    display: none;
}

body.single-product .related.products.is-loading ul.products {
    min-height: 220px;
}

@media (max-width: 640px) {
    body.single-product .related.products ul.products,
    body.single-product .related.products ul.products.cmc-pdp-slider {
        padding: 4px 16px 24px !important;
        gap: 10px;
    }
    body.single-product .related.products ul.products li.product,
    body.single-product .et_pb_wc_related_products ul.products li.product {
        flex-basis: min(78vw, 280px) !important;
        width: min(78vw, 280px) !important;
        min-width: min(78vw, 280px) !important;
        max-width: min(78vw, 280px) !important;
    }
    body.single-product .cmc-pdp-slider-btn {
        display: none;
    }
}

/* Header + breadcrumb no telemóvel: pesquisa não tapa ícones, rasto cabe */
@media (max-width: 979px) {
    body.single-product header#cmc-header .cmc-h-bar,
    body.single-product .cmc-h-bar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.single-product header#cmc-header .cmc-h-logo img,
    body.single-product .cmc-h-logo img {
        height: 28px !important;
        max-width: 108px !important;
    }

    body.single-product header#cmc-header .cmc-h-search,
    body.single-product .cmc-h-search,
    body.single-product .cmc-h-search .cmc-s-form,
    body.single-product .cmc-h-search .cmc-s-bar,
    body.single-product .cmc-h-search .cmc-s-slot {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    body.single-product header#cmc-header .cmc-h-tools,
    body.single-product .cmc-h-tools {
        flex: 0 0 auto;
        gap: 0;
    }

    body.single-product .cmc-h-tools > a,
    body.single-product .cmc-h-tools > button,
    body.single-product .cmc-h-btn,
    body.single-product .cmc-h-tools .cmc-nt,
    body.single-product .cmc-h-tools .cmc-sv-btn {
        min-width: 40px !important;
        width: 40px;
        min-height: 40px !important;
        height: 40px;
        padding: 4px !important;
    }

    body.single-product .cmc-pdp-crumbbar #breadcrumb,
    body.single-product .cmc-pdp-crumbbar #breadcrumb.custom-breadcrumb {
        padding: 0 12px !important;
        gap: 6px;
    }

    body.single-product .cmc-pdp-crumbbar #breadcrumb .item:not(.product) {
        flex: 0 1 auto;
        max-width: 36%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.single-product .cmc-pdp-crumbbar #breadcrumb .item.product {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    body.single-product header#cmc-header .cmc-h-bar,
    body.single-product .cmc-h-bar {
        grid-template-columns: auto 44px auto !important;
        grid-template-areas: none !important;
        height: 56px !important;
    }

    body.single-product header#cmc-header .cmc-h-logo img,
    body.single-product .cmc-h-logo img {
        height: 26px !important;
        max-width: 96px !important;
    }

    body.single-product .cmc-h-tools .cmc-nt {
        display: none !important;
    }

    body.single-product .cmc-h-tools > *,
    body.single-product .cmc-h-tools > a,
    body.single-product .cmc-h-tools > button,
    body.single-product .cmc-h-btn {
        min-width: 36px !important;
        width: 36px !important;
        max-width: 36px !important;
        min-height: 36px !important;
        height: 36px !important;
        padding: 2px !important;
    }

    body.single-product #produto #marca.et_pb_text,
    body.single-product #produto #marca .et_pb_text_inner {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
        width: 100%;
    }

    body.single-product #produto .cmc-pdp-stock {
        max-width: 100%;
    }

    body.single-product .cmc-h-tools {
        display: flex !important;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    body.single-product .cmc-h-tools .cmc-c-mini,
    body.single-product .cmc-h-tools .cmc-h-profile,
    body.single-product .cmc-h-tools .cmc-sv-btn {
        display: inline-flex !important;
        position: relative !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    body.single-product #produto #nome-produto h1 {
        font-size: 16px !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.single-product #produto #preco-produto .et_pb_module_inner,
    body.single-product #produto #preco-produto p.price {
        flex-wrap: wrap;
        min-width: 0;
    }

    body.single-product #produto .cmc-pdp-off {
        margin-left: 0;
    }

    body.single-product header#cmc-header .cmc-h-search,
    body.single-product .cmc-h-search,
    body.single-product header#cmc-header .cmc-h-search .cmc-s-form,
    body.single-product .cmc-h-search .cmc-s-form,
    body.single-product header#cmc-header .cmc-h-search .cmc-s-bar,
    body.single-product .cmc-h-search .cmc-s-bar,
    body.single-product header#cmc-header .cmc-h-search .cmc-s-field,
    body.single-product .cmc-h-search .cmc-s-field {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    body.single-product .cmc-h-search .cmc-s-icon,
    body.single-product .cmc-h-search .cmc-s-clear,
    body.single-product .cmc-h-search .cmc-s-ghost-fill,
    body.single-product .cmc-h-search .cmc-s-type-wrap {
        display: none !important;
    }

    body.single-product .cmc-h-search .cmc-s-input {
        position: absolute !important;
        inset: 0 !important;
        opacity: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    body.single-product .cmc-h-search .cmc-s-submit {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: #171717 !important;
        pointer-events: none;
    }

    body.single-product .cmc-pdp-crumbbar #breadcrumb .item:not(.product):not(:first-child) {
        display: none;
    }

    body.single-product .cmc-pdp-crumbbar #breadcrumb .item:not(.product):not(:first-child) + .sep {
        display: none;
    }
}
