/*
Theme Name: Anesta Child
Template: anesta
Theme URI: http://anesta.ancorathemes.com/
Description: Anesta is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AncoraThemes
Author URI: http://ancorathemes.com/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/* Remove apenas o form.cart duplicado */
.woocommerce div.product form.cart:not(.variations_form),
.woocommerce-page div.product form.cart:not(.variations_form) {
    display: none !important;
}

/* Estilo para o formulário de variações */
.woocommerce div.product form.cart.variations_form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce div.product form.cart.variations_form .variations {
    margin-bottom: 10px !important;
}

.woocommerce div.product form.cart.variations_form .single_variation_wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Estilização dos botões de quantidade */
.quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--theme-color-text_light) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    width: fit-content !important;
    height: 45px !important;
    margin: 0 !important;
    background: #fff !important;
}

/* Input number sem setas */
.woocommerce .quantity input[type="number"],
.woocommerce-page .quantity input[type="number"],
.quantity input[type="number"] {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    border: none !important;
    border-left: 1px solid var(--theme-color-text_light) !important;
    border-right: 1px solid var(--theme-color-text_light) !important;
    width: 60px !important;
    text-align: center !important;
    font-size: 16px !important;
    padding: 5px !important;
    margin: 0 !important;
    height: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove setas do input number */
.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.quantity input[type="number"] {
    -moz-appearance: textfield !important;
}

/* Estilo dos botões */
.quantity button.plus,
.quantity button.minus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 20px !important;
    padding: 0 !important;
    color: var(--theme-color-text_dark) !important;
    transition: all 0.3s ease !important;
}

.quantity button.plus:hover,
.quantity button.minus:hover {
    background-color: var(--theme-color-text_light) !important;
    color: #fff !important;
}

/* Ajustes para mobile */
@media (max-width: 767px) {
    .quantity {
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    .quantity button.plus,
    .quantity button.minus {
        width: 40px !important;
    }
}

/* Manter títulos visíveis no mobile */
@media (max-width: 767px) {
    .woocommerce table.shop_table_responsive thead,
    .woocommerce-page table.shop_table_responsive thead {
        display: table-header-group !important;
    }
    
    .woocommerce table.shop_table_responsive tbody th,
    .woocommerce-page table.shop_table_responsive tbody th {
        display: table-cell !important;
    }
    
    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        display: table-cell !important;
        text-align: left !important;
    }
    
    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        display: none !important;
    }
}