/* Quantity Buttons CSS - Exact match to design */

/* Container dos controles de quantidade */
.woocommerce .quantity,
.woocommerce form.cart .quantity,
.elementor-widget-woocommerce-product-add-to-cart .quantity,
.elementor-widget-wc-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: fit-content !important;
    margin: 15px auto !important;
    box-sizing: border-box !important;
}

/* Botão de diminuir (-) - estilo clean */
.woocommerce .quantity .minus,
.woocommerce .quantity button[data-quantity="-1"],
.woocommerce .quantity input[type="button"][value="-"],
.woocommerce .quantity .qty-btn-minus,
.quantity button:first-child,
.quantity input[type="button"]:first-child {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #e8e8e8 !important;
    background: #ffffff !important;
    color: #cccccc !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Campo de quantidade (input) - estilo clean */
.woocommerce .quantity .qty,
.woocommerce .quantity input[type="number"],
.quantity input[type="number"] {
    width: 40px !important;
    height: 32px !important;
    text-align: center !important;
    border: none !important;
    border-top: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #333333 !important;
    box-sizing: border-box !important;
    font-weight: 400 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* Botão de aumentar (+) - estilo clean */
.woocommerce .quantity .plus,
.woocommerce .quantity button[data-quantity="+1"],
.woocommerce .quantity input[type="button"][value="+"],
.woocommerce .quantity .qty-btn-plus,
.quantity button:last-child,
.quantity input[type="button"]:last-child {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #e8e8e8 !important;
    background: #ffffff !important;
    color: #cccccc !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Hover effects para os botões */
.woocommerce .quantity button:hover,
.woocommerce .quantity input[type="button"]:hover,
.quantity button:hover,
.quantity input[type="button"]:hover {
    background: #f8f8f8 !important;
    border-color: #d8d8d8 !important;
    color: #999999 !important;
}

/* Active/pressed state */
.woocommerce .quantity button:active,
.woocommerce .quantity input[type="button"]:active,
.quantity button:active,
.quantity input[type="button"]:active {
    background: #f0f0f0 !important;
    transform: scale(0.98) !important;
}

/* Remove spinner do input number */
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.woocommerce .quantity .qty[type="number"],
.quantity input[type="number"] {
    -moz-appearance: textfield !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .woocommerce .quantity,
    .woocommerce form.cart .quantity,
    .elementor-widget-woocommerce-product-add-to-cart .quantity,
    .elementor-widget-wc-add-to-cart .quantity {
        margin: 20px auto 0 auto !important;
    }
    
    .woocommerce .quantity .minus,
    .woocommerce .quantity .plus,
    .woocommerce .quantity button,
    .woocommerce .quantity input[type="button"],
    .quantity button,
    .quantity input[type="button"] {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .woocommerce .quantity .qty,
    .woocommerce .quantity input[type="number"],
    .quantity input[type="number"] {
        width: 50px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .woocommerce .quantity,
    .woocommerce form.cart .quantity,
    .elementor-widget-woocommerce-product-add-to-cart .quantity,
    .elementor-widget-wc-add-to-cart .quantity {
        margin: 10px auto !important;
        justify-content: center !important;
    }
}

/* Force override any conflicting styles */
.woocommerce div.product form.cart .quantity {
    float: none !important;
    margin-right: 0 !important;
}

/* Elementor specific overrides */
.elementor-widget-woocommerce-product-add-to-cart .quantity,
.elementor-widget-wc-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

.elementor-widget-woocommerce-product-add-to-cart .quantity .qty,
.elementor-widget-wc-add-to-cart .quantity .qty {
    margin-right: 0 !important;
    vertical-align: top !important;
}