﻿/* Mini Card title */

.woocommerce-mini-cart__empty-message {
    font-size: 16px !important;
    font-weight: 400 !important;
    font-family: 'Plus Jakarta Sans';
}

.elementor-364 .elementor-element.elementor-element-091aa40 .elementor-toc__header-title {
    text-align: start;
    color: black;
    font-size: 16px;
}
.elementor-toc__toggle-button svg {
    fill: var(--toggle-button-color);
    height: 16px;
    width: 16px;
}

/* Mobile */
@media (max-width: 767px) {
    .elementor-menu-cart__main {
        margin-left: -150px;
    }
}


/* WooCommerce Checkout Button Official Color WhatsApp Icon */
button#place_order {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

button#place_order::before {
    content: "";
    display: inline-block;
    width: 24px; 
    height: 24px;
    margin-right: 10px; 
    /* অফিসিয়াল সবুজ-সাদা WhatsApp আইকন */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2325D366' d='M12.003 24c-1.933 0-3.834-.496-5.516-1.442L0 24l1.492-6.284A11.94 11.94 0 0 1 .064 12.005C.064 5.385 5.42 0 12.003 0 18.59 0 23.94 5.385 23.94 12.005c0 6.62-5.35 11.995-11.937 11.995z'/%3e%3cpath fill='%23FFF' d='M18.605 15.65c-.294-.146-1.745-.86-2.015-.96-.27-.1-.466-.147-.662.148-.196.295-.76.96-.93 1.156-.172.197-.344.22-.638.074-.294-.148-1.246-.46-2.373-1.464-.877-.78-1.47-1.744-1.642-2.04-.172-.295-.018-.456.128-.603.132-.133.295-.344.442-.516.147-.172.196-.295.295-.492.1-.197.05-.37-.025-.517-.074-.148-.662-1.597-.907-2.186-.238-.575-.48-.497-.66-.506-.172-.008-.368-.01-.564-.01-.196 0-.515.074-.785.37-.27.295-1.03 1.008-1.03 2.458 0 1.45 1.055 2.852 1.2 3.05.148.196 2.078 3.17 5.033 4.444.702.304 1.25.485 1.678.62.705.225 1.348.194 1.854.118.566-.085 1.745-.712 1.99-1.4.246-.688.246-1.278.173-1.4-.075-.123-.27-.197-.565-.344z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}



/* ==========================================
   RWEDA PNEUMATIQUES
   NOUVEAU DESIGN PAGE COMMANDE
   ========================================== */

/* Fond de la page */
body.woocommerce-checkout {
    background: #f7f8fa;
}

/* Conteneur du formulaire */
body.woocommerce-checkout form.checkout {
    max-width: 1200px;
    margin: 30px auto 60px;
}

/* Cartes modernes */
body.woocommerce-checkout
.woocommerce-billing-fields,
body.woocommerce-checkout
.woocommerce-shipping-fields,
body.woocommerce-checkout
.woocommerce-additional-fields,
body.woocommerce-checkout
#order_review,
body.woocommerce-checkout
.e-checkout__column-inner,
body.woocommerce-checkout
.e-checkout__order_review,
body.woocommerce-checkout
.e-checkout__order_review-2,
body.woocommerce-checkout
.e-checkout__order_review-3 {
    background: #ffffff !important;
    border: 1px solid #e7eaf0 !important;
    border-radius: 20px !important;
    padding: 26px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}

/* Titres */
body.woocommerce-checkout
.woocommerce-billing-fields h3,
body.woocommerce-checkout
#order_review_heading,
body.woocommerce-checkout
.e-checkout__order_review h3 {
    color: #111111;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 22px;
}

/* Libellés */
body.woocommerce-checkout
form .form-row label {
    display: block;
    color: #30343b;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Champs */
body.woocommerce-checkout
form .input-text,
body.woocommerce-checkout
form input[type="text"],
body.woocommerce-checkout
form input[type="email"],
body.woocommerce-checkout
form input[type="tel"],
body.woocommerce-checkout
form select,
body.woocommerce-checkout
form textarea,
body.woocommerce-checkout
.select2-container .select2-selection--single {
    width: 100%;
    min-height: 54px;
    background: #f9fafb !important;
    border: 1px solid #e2e5ea !important;
    border-radius: 12px !important;
    padding: 13px 15px !important;
    color: #111111 !important;
    font-size: 15px;
    box-shadow: none !important;
    transition: 0.2s ease;
}

/* Champs sélectionnés */
body.woocommerce-checkout
form .input-text:focus,
body.woocommerce-checkout
form textarea:focus,
body.woocommerce-checkout
form select:focus {
    outline: none !important;
    border-color: #e30620 !important;
    box-shadow: 0 0 0 3px rgba(227,6,32,0.08) !important;
}

/* Espacement */
body.woocommerce-checkout
form .form-row {
    margin-bottom: 18px;
}

/* Ville et adresse sur toute la largeur */
body.woocommerce-checkout
#billing_city_field,
body.woocommerce-checkout
#billing_address_1_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Tableau récapitulatif */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table {
    width: 100%;
    border: none !important;
    border-collapse: collapse;
    background: transparent;
}

body.woocommerce-checkout
.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout
.woocommerce-checkout-review-order-table td {
    padding: 16px 8px;
    border: none;
    border-bottom: 1px solid #eceff3;
    font-size: 14px;
    color: #333333;
}

/* Total */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.order-total th,
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.order-total td {
    font-size: 20px;
    font-weight: 800;
    color: #111111;
    border-bottom: none;
}

/* Zone paiement */
body.woocommerce-checkout #payment {
    background: #ffffff !important;
    border: none !important;
    border-radius: 14px;
}

body.woocommerce-checkout
#payment ul.payment_methods {
    background: #f9fafb !important;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    padding: 18px;
}

body.woocommerce-checkout
#payment div.payment_box {
    background: #f1f3f6 !important;
    color: #555555;
    border-radius: 10px;
}

body.woocommerce-checkout
#payment div.payment_box::before {
    display: none;
}

/* Bouton WhatsApp */
body.woocommerce-checkout
button#place_order {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100% !important;
    min-height: 60px;
    padding: 16px 20px !important;
    background: #e30620 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 13px !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(227,6,32,0.18);
    cursor: pointer;
    transition: 0.2s ease;
}

/* Survol */
body.woocommerce-checkout
button#place_order:hover {
    background: #b90019 !important;
    transform: translateY(-2px);
}

/* Garder l'icône WhatsApp */
body.woocommerce-checkout
button#place_order::before {
    flex-shrink: 0;
    margin-right: 0;
}

/* Messages */
body.woocommerce-checkout
.woocommerce-info,
body.woocommerce-checkout
.woocommerce-message,
body.woocommerce-checkout
.woocommerce-error {
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 767px) {

    body.woocommerce-checkout
    form.checkout {
        margin: 20px auto 40px;
    }

    body.woocommerce-checkout
    .woocommerce-billing-fields,
    body.woocommerce-checkout
    .woocommerce-shipping-fields,
    body.woocommerce-checkout
    .woocommerce-additional-fields,
    body.woocommerce-checkout
    #order_review,
    body.woocommerce-checkout
    .e-checkout__column-inner,
    body.woocommerce-checkout
    .e-checkout__order_review,
    body.woocommerce-checkout
    .e-checkout__order_review-2,
    body.woocommerce-checkout
    .e-checkout__order_review-3 {
        padding: 18px !important;
        border-radius: 15px !important;
    }

    body.woocommerce-checkout
    button#place_order {
        min-height: 56px;
        font-size: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-checkout
    button#place_order {
        transition: none;
    }

    body.woocommerce-checkout
    button#place_order:hover {
        transform: none;
    }
}


/* =========================================
   RWEDA - RÉCAPITULATIF PANIER PREMIUM
   ========================================= */

/* Carte du récapitulatif */
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .e-cart__column-inner {
    background: #ffffff !important;
    border: 1px solid #e8eaf0 !important;
    border-radius: 20px !important;
    padding: 28px !important;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
}

/* Masquer le formulaire de calcul de livraison */
body.woocommerce-cart .shipping-calculator-form,
body.woocommerce-cart .shipping-calculator-button {
    display: none !important;
}

/* Masquer l'adresse enregistrée */
body.woocommerce-cart .woocommerce-shipping-destination {
    display: none !important;
}

/* Titres */
body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .e-cart__column-inner h2 {
    color: #111111 !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
}

/* Lignes du récapitulatif */
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    padding: 17px 10px !important;
    border-bottom: 1px solid #edf0f3 !important;
}

/* Total */
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111111 !important;
}

/* Bouton finaliser */
body.woocommerce-cart
.wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100%;
    background: #e30620 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 13px !important;
    padding: 19px 20px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center;
    box-shadow: 0 8px 22px rgba(227,6,32,0.18);
    transition: 0.2s ease;
}

body.woocommerce-cart
.wc-proceed-to-checkout a.checkout-button:hover {
    background: #b90019 !important;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 767px) {
    body.woocommerce-cart .cart_totals,
    body.woocommerce-cart .e-cart__column-inner {
        padding: 18px !important;
        border-radius: 15px !important;
    }
}


/* Boutons du catalogue WooCommerce */
.woocommerce ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 13px 18px;

  background: #171717;
  color: #fff;
  border: 1px solid #171717;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.2px;

  box-shadow: 0 3px 8px rgb(0 0 0 / 8%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.woocommerce ul.products li.product .button:hover {
  background: #c8202f;
  border-color: #c8202f;
  color: #fff;
  box-shadow: 0 5px 14px rgb(200 32 47 / 18%);
}

.woocommerce ul.products li.product .button:focus-visible {
  outline: 3px solid #c8202f;
  outline-offset: 3px;
}

.woocommerce ul.products li.product .button:active {
  background: #991827;
  border-color: #991827;
}

.woocommerce ul.products li.product .button.loading {
  opacity: 0.65;
  pointer-events: none;
}

.woocommerce ul.products li.product .button.added {
  background: #176b43;
  border-color: #176b43;
  color: #fff;
}

/* Lien affiché après l'ajout au panier */
.woocommerce ul.products li.product a.added_to_cart {
  display: block;
  margin-top: 10px;
  color: #171717;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product .button {
    transition: none;
  }
}


/* Écriture du bouton Ajouter au panier */
.woocommerce ul.products li.product .button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: #fff;
  text-shadow: none;
}

/* Pagination : espacement et suppression du cadre global */
.woocommerce nav.woocommerce-pagination {
  margin: 40px 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  border: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Numéros et flèches */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;

  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  color: #262626;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

/* Page sélectionnée */
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

/* Survol et navigation au clavier */
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #c8202f;
  border-color: #c8202f;
  color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li a:focus-visible {
  outline: 3px solid #c8202f;
  outline-offset: 3px;
}

/* Points de suspension */
.woocommerce nav.woocommerce-pagination ul li span.dots {
  border-color: transparent;
  background: transparent;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price * {
  color: #171717 !important;
}


/* Masquer le fil d’Ariane et le compteur */
body.woocommerce-shop .woocommerce-breadcrumb,
body.woocommerce-shop .woocommerce-result-count {
  display: none !important;
}

/* En-tête de la boutique */
body.woocommerce-shop .woocommerce-products-header {
  margin: 30px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

/* Titre */
body.woocommerce-shop .woocommerce-products-header__title {
  margin: 0;
  color: #171717;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Petite ligne rouge sous le titre */
body.woocommerce-shop .woocommerce-products-header__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  background: #d71920;
  border-radius: 2px;
}

/* Menu de tri */
body.woocommerce-shop .woocommerce-ordering {
  margin: 0 0 24px;
}

body.woocommerce-shop .woocommerce-ordering select {
  min-height: 46px;
  max-width: 100%;
  padding: 10px 38px 10px 16px;
  background-color: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  color: #262626;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

body.woocommerce-shop .woocommerce-ordering select:focus-visible {
  outline: 2px solid #d71920;
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 600px) {
  body.woocommerce-shop .woocommerce-ordering,
  body.woocommerce-shop .woocommerce-ordering select {
    float: none;
    width: 100%;
  }
}


/* RWEDA – Correctif checkout mobile : à coller TOUT EN BAS de votre CSS actuel
   (il corrige les cartes imbriquées qui décalent et rétrécissent le formulaire) */
@media (max-width: 767px) {

  html, body { overflow-x: clip !important; }

  /* Formulaire pleine largeur, sans marge qui décale */
  body.woocommerce-checkout form.checkout {
    width: 100% !important; max-width: 100% !important;
    margin: 12px 0 32px !important; padding: 0 !important;
  }

  /* Colonnes l'une sous l'autre */
  body.woocommerce-checkout .e-checkout__container { display: block !important; }
  body.woocommerce-checkout .e-checkout__column {
    width: 100% !important; max-width: 100% !important;
    margin: 0 0 16px 0 !important; padding: 0 !important;
  }

  /* UNE seule carte par colonne */
  body.woocommerce-checkout .e-checkout__column-inner {
    padding: 14px !important; border-radius: 16px !important;
  }

  /* Les cartes à l'intérieur deviennent transparentes (plus de boîtes dans les boîtes) */
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .e-checkout__order_review,
  body.woocommerce-checkout .e-checkout__order_review-2,
  body.woocommerce-checkout .e-checkout__order_review-3 {
    padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
    border: 0 !important; box-shadow: none !important;
    border-radius: 0 !important; background: transparent !important;
  }

  /* Un champ par ligne */
  body.woocommerce-checkout .form-row,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last {
    width: 100% !important; float: none !important; display: block !important;
  }
  body.woocommerce-checkout .select2-container { width: 100% !important; }

  /* Tableau de commande */
  body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table td { padding: 10px 4px !important; }
}
