/* Personalizzazioni Mobile e Selettore Quantità */

/* Stile per i pulsanti +/- di quantità */
.woocommerce .quantity,
.quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1.5px solid #e1e8ed;
    border-radius: 30px;
    padding: 3px;
    background-color: #f8fafc;
    max-width: 130px;
    justify-content: space-between;
    box-sizing: border-box;
}

.qty-btn-f392607c {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    padding: 0;
    margin: 0;
}

.qty-btn-f392607c:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

.woocommerce .quantity .qty,
.quantity .qty {
    width: 40px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ottimizzazione Mobile Layout */
@media screen and (max-width: 767px) {
    /* Ottimizzazione layout prodotti e formati */
    .woocommerce-product-gallery, 
    .summary.entry-summary {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    /* Allineamento compatto pulsante acquisto e quantità */
    .woocommerce div.product form.cart {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .woocommerce div.product form.cart .quantity {
        margin: 0 !important;
        flex-shrink: 0;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button {
        flex-grow: 1 !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 30px !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
