/* ================================================= */
/* STYLE GLOBAL WOOCOMMERCE – FERME ROMANAT          */
/* produit + panier + checkout                       */
/* Migré depuis Elementor CSS custom                 */
/* ================================================= */


/* ================================================= */
/* CARTES VISUELLES (structure commune)              */
/* ================================================= */

.woocommerce div.product .summary,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout #order_review {
    background: #F8F6F0;
    border: 1px solid #E6E6D8;
    border-radius: 10px;
    padding: 24px;
}


/* ================================================= */
/* BLOC COMMANDE PRODUIT                             */
/* ================================================= */

.woocommerce div.product form.cart {
    background: #F1EEE6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* ================================================= */
/* FORMULAIRES                                       */
/* ================================================= */

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce select,
.woocommerce textarea {
    background: #ffffff;
    border: 1px solid #cfcfc8;
    color: #4A4A45;
    padding: 12px 14px;
    border-radius: 6px;
    width: 100%;
}

/* focus */
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
    border-color: #0F3D2E;
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.15);
    outline: none;
}


/* ================================================= */
/* LABELS                                            */
/* ================================================= */

.woocommerce form .form-row label,
.woocommerce div.product form.cart label {
    color: #0F3D2E;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}


/* ================================================= */
/* ESPACEMENT FORMULAIRES                            */
/* ================================================= */

.woocommerce form .form-row {
    margin-bottom: 16px;
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 16px;
}


/* ================================================= */
/* BOUTONS                                           */
/* ================================================= */

.woocommerce button,
.woocommerce input[type="submit"],
.woocommerce .button {
    background: #2E6B54;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
}

.woocommerce button:hover,
.woocommerce input[type="submit"]:hover,
.woocommerce .button:hover {
    background: #0F3D2E;
}


/* ================================================= */
/* PRIX PRODUIT                                      */
/* ================================================= */

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0F3D2E;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E6E6D8;
}


/* ================================================= */
/* DESCRIPTION COURTE                                */
/* ================================================= */

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #4A4A45;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 5px;
    margin-bottom: 18px;
}

.woocommerce div.product .woocommerce-product-details__short-description strong {
    color: #0F3D2E;
}


/* ================================================= */
/* UNIFORMISATION LIVRAISON                          */
/* ================================================= */

.woocommerce-product-details__short-description ul li {
    color: #4A4A45;
}

.woocommerce-product-details__short-description ul li strong {
    color: #0F3D2E;
    font-weight: 600;
}


/* ================================================= */
/* QUANTITÉ                                          */
/* ================================================= */

.woocommerce input.qty {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.woocommerce .quantity {
    display: flex;
    align-items: center;
}

.woocommerce .quantity input {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #cfcfc8;
    background: #ffffff;
}

/* Flèches input number */
.woocommerce input.qty::-webkit-inner-spin-button,
.woocommerce input.qty::-webkit-outer-spin-button {
    opacity: 1;
    display: block;
}

/* Quantité panier mobile : aligner à droite, largeur limitée */
@media only screen and (max-width: 921px) {
    .woocommerce-cart table.shop_table .quantity {
        justify-content: flex-end;
    }
    .woocommerce-cart table.shop_table .quantity input {
        max-width: 80px;
    }
}


/* ================================================= */
/* FLÈCHES SELECT (tournée / livraison)              */
/* ================================================= */

.woocommerce select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: none !important;
}


/* ================================================= */
/* PANIER                                            */
/* ================================================= */

.woocommerce-cart table.shop_table tr {
    border-bottom: 1px solid #E6E6D8;
}

.woocommerce-cart table.shop_table tr:last-child {
    border-bottom: none;
}

/* bloc livraison panier */
.woocommerce-cart .cart_totals {
    background: #F1EEE6;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #E6E6D8;
}


/* ================================================= */
/* CHECKOUT STRUCTURE                                */
/* ================================================= */

.woocommerce-checkout #customer_details {
    background: none;
    border: none;
    padding: 0;
}


/* ================================================= */
/* TITRES CHECKOUT                                   */
/* ================================================= */

.woocommerce-checkout h3 {
    color: #8A5A3C;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}


/* ================================================= */
/* TABLEAU COMMANDE                                  */
/* ================================================= */

.woocommerce-checkout-review-order-table {
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    padding: 12px 6px;
}

.woocommerce-checkout-review-order-table tr {
    border-bottom: 1px solid #E6E6D8;
}

.woocommerce-checkout-review-order-table tr:last-child {
    border-bottom: none;
}

/* ligne produit */
.woocommerce-checkout-review-order-table tbody tr:first-child {
    background: #F4F2EC;
}


/* ================================================= */
/* TOTAL COMMANDE                                    */
/* ================================================= */

.woocommerce-checkout-review-order-table tfoot tr:last-child {
    border-top: 2px solid #DCD6CA;
    font-size: 20px;
    font-weight: 700;
    color: #0F3D2E;
}


/* ================================================= */
/* MESSAGE PAIEMENT                                  */
/* ================================================= */

.woocommerce-checkout .payment_box {
    background: #F1EEE6;
    border-radius: 6px;
    padding: 14px;
}


/* ================================================= */
/* PAIEMENT LIVRAISON                                */
/* ================================================= */

.woocommerce-checkout .payment_method_cod label::before {
    content: "💶 ";
    font-size: 18px;
    margin-right: 6px;
}


/* ================================================= */
/* BOUTON COMMANDER                                  */
/* ================================================= */

.woocommerce-checkout #place_order {
    background: #2E6B54;
    border: none;
    border-radius: 6px;
    padding: 14px;
    color: #ffffff;
    font-weight: 600;
}

.woocommerce-checkout #place_order:hover {
    background: #0F3D2E;
}


/* ================================================= */
/* SÉPARATEURS CHECKOUT – VOTRE COMMANDE             */
/* ================================================= */

#order_review .shop_table tbody tr {
    border-bottom: 1px solid #E6E6D8;
}

#order_review .shop_table tbody tr:last-child {
    border-bottom: none;
}

/* séparation livraison / total */
#order_review .shipping {
    border-bottom: 2px solid #DCD6CA;
    padding-bottom: 12px;
}

/* séparation avant paiement */
#order_review .woocommerce-checkout-payment {
    border-top: 2px solid #DCD6CA;
    margin-top: 16px;
    padding-top: 16px;
}


/* ================================================= */
/* CHECKOUT – FOND PRODUITS DANS VOTRE COMMANDE      */
/* ================================================= */

#order_review .shop_table tbody tr.cart_item {
    background: #F4F2EC;
}
