/* ==========================================================
   SERVAUX - PÁGINA INDIVIDUAL DO PRODUTO
   Arquivo: 03-produto-individual.css
   Versão consolidada e corrigida - galeria mobile compatível com FlexSlider
   ========================================================== */

/* ==========================================================
   1. BASE GERAL
   ========================================================== */

/*
   Desktop e tablet utilizam floats para preservar compatibilidade
   com as abas, produtos relacionados e upsells.

   No mobile, o produto passa a usar uma grade de uma coluna para
   impedir que qualquer regra do tema mantenha galeria e resumo
   lado a lado.
*/

body.single-product div.product {
    width: 100% !important;
    min-width: 0 !important;
}

body.single-product div.product::after {
    content: "";
    display: block;
    clear: both;
}

body.single-product div.product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
    clear: both !important;
    display: block !important;
    width: 100% !important;
}


/* ==========================================================
   2. DESKTOP GRANDE
   ========================================================== */

@media (min-width: 1200px) {
    body.single-product div.product {
        display: block !important;
    }

    body.single-product div.product div.images,
    body.single-product div.product .woocommerce-product-gallery {
        float: left !important;
        width: 48% !important;
        max-width: 760px !important;
        margin-left: 150px !important;
        margin-right: 3% !important;
        margin-bottom: 45px !important;
    }

    body.single-product div.product div.summary,
    body.single-product div.product .summary {
        float: right !important;
        width: 46% !important;
        margin-bottom: 45px !important;
    }

    body.single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        max-height: 760px !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}


/* ==========================================================
   3. DESKTOP / NOTEBOOK MÉDIO
   ========================================================== */

@media (min-width: 1025px) and (max-width: 1199px) {
    body.single-product div.product {
        display: block !important;
    }

    body.single-product div.product div.images,
    body.single-product div.product .woocommerce-product-gallery {
        float: left !important;
        width: 42% !important;
        max-width: 620px !important;
        margin-right: 4% !important;
        margin-bottom: 40px !important;
    }

    body.single-product div.product div.summary,
    body.single-product div.product .summary {
        float: right !important;
        width: 54% !important;
        margin-bottom: 40px !important;
    }

    body.single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        max-height: 620px !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}


/* ==========================================================
   4. TABLET
   ========================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    body.single-product div.product div.images,
    body.single-product div.product .woocommerce-product-gallery {
        float: none !important;
        clear: both !important;
        width: 80% !important;
        max-width: 620px !important;
        margin: 25px auto 30px !important;
    }

    body.single-product div.product div.summary,
    body.single-product div.product .summary {
        float: none !important;
        clear: both !important;
        width: 90% !important;
        max-width: 760px !important;
        margin: 0 auto 40px !important;
    }

    body.single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        max-height: 560px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    body.single-product div.product .woocommerce-tabs,
    body.single-product .related.products,
    body.single-product .upsells.products {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* ==========================================================
   5. MOBILE - ESTRUTURA DEFINITIVA EM UMA COLUNA
   ========================================================== */

@media (max-width: 767px) {

    /* ------------------------------------------------------
       5.1 CONTÊINER PRINCIPAL
       ------------------------------------------------------ */

    html body.single-product,
    html body.single-product #page,
    html body.single-product .site,
    html body.single-product .site-content,
    html body.single-product .content-area,
    html body.single-product .site-main,
    html body.single-product main,
    html body.single-product .woocommerce {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body.single-product.woocommerce-page .woocommerce div.product,
    html body.single-product .woocommerce div.product,
    html body.single-product main div.product,
    html body.single-product .site-main div.product {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 18px 14px 38px !important;
        clear: both !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product::before,
    html body.single-product div.product::after {
        display: none !important;
        content: none !important;
    }


    /* ------------------------------------------------------
       5.2 GALERIA
       Compatível com o FlexSlider do WooCommerce
       ------------------------------------------------------ */

    html body.single-product.woocommerce-page div.product div.images,
    html body.single-product.woocommerce-page div.product .woocommerce-product-gallery,
    html body.single-product .woocommerce div.product div.images,
    html body.single-product .woocommerce div.product .woocommerce-product-gallery {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 1 !important;
        position: relative !important;
        inset: auto !important;
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 430px !important;
        margin: 0 auto 26px !important;
        padding: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /*
       A janela visível pode ocupar 100% da galeria.
       O overflow permanece oculto para exibir somente o slide ativo.
    */
    html body.single-product
    .woocommerce-product-gallery .flex-viewport {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid #111111 !important;
        border-radius: 22px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    /*
       Não force width, display, float ou transform no wrapper.
       Essas propriedades são calculadas dinamicamente pelo FlexSlider.
    */
    html body.single-product
    .woocommerce-product-gallery__wrapper {
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /*
       Não force width, max-width ou float nos slides.
       Cada imagem recebe sua largura pelo JavaScript do WooCommerce.
    */
    html body.single-product
    .woocommerce-product-gallery__image {
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    html body.single-product
    .woocommerce-product-gallery__image > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 260px !important;
        margin: 0 !important;
        padding: 8px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    html body.single-product
    .woocommerce-product-gallery__image img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 390px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    html body.single-product
    .woocommerce-product-gallery__trigger {
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 20 !important;
    }

    html body.single-product .flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 12px 0 0 !important;
        padding: 2px 0 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin !important;
        box-sizing: border-box !important;
    }

    html body.single-product .flex-control-thumbs li {
        float: none !important;
        flex: 0 0 68px !important;
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        height: 68px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #d9e2ec !important;
        border-radius: 11px !important;
        background: #ffffff !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body.single-product .flex-control-thumbs li img {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 3px !important;
        border: 0 !important;
        border-radius: 10px !important;
        object-fit: contain !important;
        background: #ffffff !important;
        opacity: 0.58 !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease !important;
    }

    html body.single-product .flex-control-thumbs li img:hover,
    html body.single-product .flex-control-thumbs li img.flex-active {
        opacity: 1 !important;
    }


    /* ------------------------------------------------------
       5.3 RESUMO DO PRODUTO
       ------------------------------------------------------ */

    html body.single-product.woocommerce-page div.product div.summary,
    html body.single-product.woocommerce-page div.product .summary,
    html body.single-product .woocommerce div.product div.summary,
    html body.single-product .woocommerce div.product .summary {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 2 !important;
        position: static !important;
        inset: auto !important;
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 auto 34px !important;
        padding: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .summary,
    html body.single-product div.product .summary > *,
    html body.single-product div.product .summary form,
    html body.single-product div.product .summary table,
    html body.single-product div.product .summary .woocommerce-product-details__short-description,
    html body.single-product div.product .summary .product_meta {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .product_title,
    html body.single-product div.product .summary .product_title {
        width: 100% !important;
        margin: 0 0 12px !important;
        font-size: clamp(25px, 7vw, 30px) !important;
        line-height: 1.08 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    html body.single-product div.product
    .woocommerce-product-details__short-description {
        margin: 0 0 16px !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    html body.single-product div.product .summary .product_meta {
        display: block !important;
        margin: 10px 0 18px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body.single-product div.product .summary .product_meta > span {
        display: block !important;
        width: 100% !important;
        margin: 5px 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body.single-product div.product .summary .price,
    html body.single-product div.product p.price,
    html body.single-product div.product span.price {
        display: block !important;
        width: 100% !important;
        margin: 14px 0 16px !important;
        font-size: 29px !important;
        line-height: 1.1 !important;
    }

    html body.single-product div.product .summary .stock {
        display: block !important;
        width: 100% !important;
        margin: 8px 0 16px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }


    /* ------------------------------------------------------
       5.4 QUANTIDADE, BOTÃO E WISHLIST
       ------------------------------------------------------ */

    /*
       O deslocamento observado não vinha das duas colunas do grid,
       mas do wrapper do Elementor, que centralizava o form.cart como
       um item de largura reduzida.

       Estes seletores neutralizam tanto a estrutura padrão da página
       quanto o template personalizado da Servaux.
    */
    body.single-product .summary
    .elementor-widget-woocommerce-product-add-to-cart,
    body.single-product .summary
    .elementor-widget-woocommerce-product-add-to-cart
    > .elementor-widget-container,
    body.single-product .summary
    .elementor-add-to-cart,
    body.single-product .summary
    .elementor-element:has(form.cart),
    body.single-product .summary
    .elementor-widget-container:has(form.cart),
    body.single-product .servaux-product-info-column
    .elementor-widget-woocommerce-product-add-to-cart,
    body.single-product .servaux-product-info-column
    .elementor-widget-woocommerce-product-add-to-cart
    > .elementor-widget-container,
    body.single-product .servaux-product-info-column
    .elementor-add-to-cart,
    body.single-product .servaux-product-info-column
    .elementor-element:has(form.cart),
    body.single-product .servaux-product-info-column
    .elementor-widget-container:has(form.cart) {
        --width: 100% !important;
        --flex-grow: 1 !important;
        --flex-shrink: 1 !important;

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        align-self: stretch !important;
        justify-self: stretch !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;

        text-align: left !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /*
       O conjunto possui 302px:
       72px da quantidade + 10px de espaço + 220px do botão.

       align-self, justify-self e margin-right:auto impedem que
       Elementor, tema ou WooCommerce centralizem o formulário.
    */
    html body.single-product div.product
    form.cart:not(.variations_form):not(.grouped_form),
    body.single-product .servaux-product-info-column
    form.cart:not(.variations_form):not(.grouped_form) {
        display: grid !important;
        grid-template-columns: 72px 220px !important;
        grid-auto-flow: row !important;
        grid-auto-rows: auto !important;

        column-gap: 10px !important;
        row-gap: 0 !important;

        justify-content: start !important;
        justify-items: stretch !important;
        align-items: stretch !important;
        align-content: start !important;

        align-self: flex-start !important;
        justify-self: start !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 302px !important;

        margin: 16px auto 12px 0 !important;
        margin-inline-start: 0 !important;
        margin-inline-end: auto !important;
        padding: 0 !important;

        clear: both !important;
        float: none !important;
        position: static !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;

        text-align: left !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product form.cart .quantity,
    body.single-product .servaux-product-info-column form.cart .quantity {
        grid-column: 1 !important;
        grid-row: 1 !important;

        float: none !important;
        display: block !important;

        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;

        margin: 0 !important;
        padding: 0 !important;

        justify-self: start !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product form.cart .quantity .qty,
    body.single-product .servaux-product-info-column
    form.cart .quantity .qty {
        display: block !important;

        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;

        height: 52px !important;
        min-height: 52px !important;

        margin: 0 !important;
        padding: 0 8px !important;

        border-radius: 10px !important;
        text-align: center !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product
    form.cart .single_add_to_cart_button,
    body.single-product .servaux-product-info-column
    form.cart .single_add_to_cart_button {
        grid-column: 2 !important;
        grid-row: 1 !important;

        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;

        height: 52px !important;
        min-height: 52px !important;

        margin: 0 !important;
        padding: 10px 14px !important;

        justify-self: start !important;
        align-self: stretch !important;

        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        text-align: center !important;
        white-space: normal !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* Link personalizado "Ver carrinho" após a inclusão via AJAX. */
    html body.single-product div.product form.cart
    .servaux-single-view-cart {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;

        display: inline-flex !important;
        width: auto !important;
        max-width: 302px !important;

        margin: 6px 0 0 !important;
        justify-self: start !important;
        text-align: left !important;
        white-space: normal !important;
    }

    /* Wishlist dentro ou fora do form.cart. */
    html body.single-product div.product form.cart
    > .yith-wcwl-add-to-wishlist,
    html body.single-product div.product form.cart
    > .servaux-product-wishlist,
    html body.single-product div.product form.cart
    > .servaux-wishlist-wrap,
    html body.single-product div.product form.cart
    > .servaux-wishlist-login-required,
    html body.single-product div.product form.cart
    > [class*="wishlist"],
    html body.single-product div.product .summary
    .yith-wcwl-add-to-wishlist,
    html body.single-product div.product .summary
    .servaux-product-wishlist,
    html body.single-product div.product .summary
    .servaux-wishlist-wrap,
    html body.single-product div.product .summary
    .servaux-wishlist-login-required {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;

        float: none !important;
        clear: both !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 302px !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 10px 0 !important;
        padding: 0 !important;

        align-self: flex-start !important;
        justify-self: start !important;

        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product form.cart
    [class*="wishlist"] a,
    html body.single-product div.product .summary
    .yith-wcwl-add-to-wishlist a,
    html body.single-product div.product .summary
    .servaux-product-wishlist a,
    html body.single-product div.product .summary
    .servaux-wishlist-wrap a,
    html body.single-product div.product .summary
    .servaux-wishlist-login-required a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 auto !important;
        padding: 7px 8px !important;

        color: #0099ff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product form.cart
    [class*="wishlist"] :is(i, svg),
    html body.single-product div.product .summary
    .yith-wcwl-add-to-wishlist :is(i, svg),
    html body.single-product div.product .summary
    .servaux-product-wishlist :is(i, svg),
    html body.single-product div.product .summary
    .servaux-wishlist-wrap :is(i, svg),
    html body.single-product div.product .summary
    .servaux-wishlist-login-required :is(i, svg) {
        flex: 0 0 auto !important;
        display: inline-block !important;
        width: 19px !important;
        height: 19px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Produtos variáveis e agrupados preservam a estrutura própria. */
    html body.single-product div.product form.variations_form,
    html body.single-product div.product form.grouped_form {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body.single-product div.product form.variations_form
    table.variations,
    html body.single-product div.product form.grouped_form
    table.group_table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    html body.single-product div.product form.variations_form
    .single_variation_wrap {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* ------------------------------------------------------
       5.6 CALCULADORA DE FRETE
       ------------------------------------------------------ */

    html body.single-product div.product .summary
    .servaux-product-shipping-calculator,
    html body.single-product div.product .summary
    .servaux-shipping-calculator,
    html body.single-product div.product .summary
    .servaux-superfrete-calculator,
    html body.single-product div.product .summary
    .servaux-frete-calculator,
    html body.single-product div.product .summary
    .product-shipping-calculator {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 24px 0 0 !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .summary
    .servaux-product-shipping-calculator form,
    html body.single-product div.product .summary
    .servaux-shipping-calculator form,
    html body.single-product div.product .summary
    .servaux-superfrete-calculator form,
    html body.single-product div.product .summary
    .servaux-frete-calculator form,
    html body.single-product div.product .summary
    .product-shipping-calculator form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .summary
    .servaux-product-shipping-calculator input,
    html body.single-product div.product .summary
    .servaux-shipping-calculator input,
    html body.single-product div.product .summary
    .servaux-superfrete-calculator input,
    html body.single-product div.product .summary
    .servaux-frete-calculator input,
    html body.single-product div.product .summary
    .product-shipping-calculator input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .summary
    .servaux-product-shipping-calculator button,
    html body.single-product div.product .summary
    .servaux-shipping-calculator button,
    html body.single-product div.product .summary
    .servaux-superfrete-calculator button,
    html body.single-product div.product .summary
    .servaux-frete-calculator button,
    html body.single-product div.product .summary
    .product-shipping-calculator button {
        min-width: 105px !important;
        margin: 0 !important;
    }


    /* ------------------------------------------------------
       5.7 ABAS E PRODUTOS RELACIONADOS
       ------------------------------------------------------ */

    html body.single-product div.product .woocommerce-tabs {
        grid-column: 1 / -1 !important;
        order: 3 !important;
    }

    html body.single-product div.product .woocommerce-tabs,
    html body.single-product .related.products,
    html body.single-product .upsells.products {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 34px auto 0 !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .woocommerce-tabs ul.tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
    }

    html body.single-product div.product .woocommerce-tabs ul.tabs li {
        float: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}


/* ==========================================================
   6. AJAX NO CARRINHO DA PÁGINA INDIVIDUAL
   ========================================================== */

body.single-product form.cart .servaux-single-view-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 10px !important;
    padding: 0 !important;
    color: #0099ff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(3px) !important;
    pointer-events: none !important;
    transition:
        color 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0.18s !important;
}

body.single-product form.cart .servaux-single-view-cart.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition:
        color 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0s !important;
}

body.single-product form.cart .servaux-single-view-cart:hover {
    color: #007ed6 !important;
    text-decoration: underline !important;
}

body.single-product form.cart .single_add_to_cart_button.loading {
    opacity: 0.72 !important;
    cursor: progress !important;
}

body.single-product form.cart .single_add_to_cart_button.added::after {
    content: "✓";
    margin-left: 8px;
    font-weight: 900;
}

@media (max-width: 767px) {
    body.single-product form.cart .servaux-single-view-cart {
        margin: 10px 0 0 !important;
        width: 100% !important;
    }
}


/* ==========================================================
   7. REMOVER "VER CARRINHO" DUPLICADO
   ========================================================== */

body.single-product form.cart
.added_to_cart.wc-forward:not(.servaux-single-view-cart) {
    display: none !important;
}

/* ==========================================================
   8. ESTRUTURA RESPONSIVA DO TEMPLATE ELEMENTOR
   ========================================================== */

@media (max-width: 1024px) {
    body.single-product .servaux-product-layout {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 30px !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    body.single-product .servaux-product-gallery-column,
    body.single-product .servaux-product-info-column {
        --width: 100% !important;
        --flex-grow: 0 !important;
        --flex-shrink: 1 !important;

        position: static !important;
        inset: auto !important;

        display: block !important;
        flex: 0 0 100% !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body.single-product .servaux-product-gallery-column
    .woocommerce-product-gallery {
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 620px !important;
        margin: 0 auto !important;
    }

    body.single-product .servaux-product-info-column > *,
    body.single-product .servaux-product-info-column
    .elementor-element,
    body.single-product .servaux-product-info-column
    .elementor-widget-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767px) {
    body.single-product .servaux-product-layout {
        gap: 24px !important;
        padding: 18px 14px 38px !important;
    }

    body.single-product .servaux-product-gallery-column
    .woocommerce-product-gallery {
        max-width: 430px !important;
    }
}


/* ==========================================================
   9. AJUSTES PARA CELULARES ESTREITOS
   ========================================================== */

@media (max-width: 380px) {
    html body.single-product div.product
    form.cart:not(.variations_form):not(.grouped_form),
    body.single-product .servaux-product-info-column
    form.cart:not(.variations_form):not(.grouped_form) {
        grid-template-columns: 64px 210px !important;

        width: 100% !important;
        max-width: 282px !important;

        margin-left: 0 !important;
        margin-right: auto !important;

        align-self: flex-start !important;
        justify-self: start !important;
    }

    html body.single-product div.product form.cart .quantity,
    html body.single-product div.product form.cart .quantity .qty,
    body.single-product .servaux-product-info-column form.cart .quantity,
    body.single-product .servaux-product-info-column
    form.cart .quantity .qty {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
    }

    html body.single-product div.product
    form.cart .single_add_to_cart_button,
    body.single-product .servaux-product-info-column
    form.cart .single_add_to_cart_button {
        width: 210px !important;
        min-width: 0 !important;
        max-width: 210px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 14px !important;
    }

    html body.single-product div.product form.cart
    > [class*="wishlist"],
    html body.single-product div.product .summary
    .yith-wcwl-add-to-wishlist,
    html body.single-product div.product .summary
    .servaux-product-wishlist,
    html body.single-product div.product .summary
    .servaux-wishlist-wrap,
    html body.single-product div.product .summary
    .servaux-wishlist-login-required {
        width: 282px !important;
    }

    html body.single-product div.product form.cart
    [class*="wishlist"] a,
    html body.single-product div.product .summary
    .yith-wcwl-add-to-wishlist a,
    html body.single-product div.product .summary
    .servaux-product-wishlist a,
    html body.single-product div.product .summary
    .servaux-wishlist-wrap a,
    html body.single-product div.product .summary
    .servaux-wishlist-login-required a {
        font-size: 13px !important;
        white-space: normal !important;
    }

    html body.single-product
    .woocommerce-product-gallery__image > a {
        min-height: 235px !important;
    }

    html body.single-product
    .woocommerce-product-gallery__image img {
        max-height: 350px !important;
    }

    html body.single-product .flex-control-thumbs li {
        flex-basis: 64px !important;
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        height: 64px !important;
    }
}