/* ============================
   FOND GÉNÉRAL BLANC
============================ */
.dbcom-cart-title,
.dbcom-cart-form {
  background: #fff;
}
.dbcom-cart-title {
  padding-top: 24px;
}
/* ============================
   LAYOUT GÉNÉRAL
============================ */
.dbcom-cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  background: #fff;
  padding: 24px 0;
}
.dbcom-cart-main {
  flex: 1 1 600px;
  min-width: 0;
}
.dbcom-cart-sidebar {
  flex: 0 0 340px;
  align-self: flex-start;
}
@media (max-width: 900px) {
  .dbcom-cart-sidebar {
    flex: 1 1 100%;
  }
}
/* ============================
   CARDS ARTICLES (5 colonnes : image / titre+marque / prix unit. / qté / total ligne)
============================ */
.dbcom-cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.dbcom-cart-item {
  display: grid;
  grid-template-columns: 90px 1fr 100px 90px 100px 32px;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: 
#FCF0EA;
  border-radius: 0px;
}
.dbcom-cart-item__thumbnail img {
  border-radius: 0px;
  display: block;
}
.dbcom-cart-item__name,
.dbcom-cart-item__name a {
  font-size: 16px;
  font-weight: 600;
  color: 
#AB5C5F;
  margin: 0 0 2px;
}
.dbcom-cart-item__brand {
  font-size: 13px;
  color: 
#AB5C5F;
  opacity: 0.8;
  margin-bottom: 2px;
}
.dbcom-cart-item__meta {
  font-size: 13px;
  color: 
#AB5C5F;
  opacity: 0.8;
}
.dbcom-cart-item__price,
.dbcom-cart-item__subtotal {
  color: 
#AB5C5F;
  font-weight: 600;
}
.dbcom-cart-item__quantity {
  color: 
#AB5C5F;
}
.dbcom-cart-item__remove a {
  display: block;
  text-align: center;
  color: 
#AB5C5F;
  opacity: 0.6;
  font-size: 18px;
  text-decoration: none;
}
/* ============================
   ACTIONS (mettre à jour le panier)
============================ */
.dbcom-cart-actions {
  margin-bottom: 24px;
}
/* ============================
   SIDEBAR RÉCAP PANIER
============================ */
.dbcom-cart-collaterals {
  background: 
#FCF0EA;
  border-radius: 0px;
  padding: 24px;
  height: fit-content;
}
.dbcom-totals-block {
  display: flex;
  flex-direction: column;
}
.dbcom-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
}
.dbcom-totals-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  color: 
#AB5C5F;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dbcom-totals-value {
  color: 
#AB5C5F;
  font-size: 15px;
  white-space: nowrap;
}
.dbcom-totals-row--subtotal {
  border-top: 1px solid rgba(171, 92, 95, 0.2);
  margin-top: 6px;
  padding-top: 16px;
}
.dbcom-totals-code {
  font-size: 12px;
  color: 
#AB5C5F;
  opacity: 0.7;
  margin-top: -6px;
  margin-bottom: 6px;
}
.dbcom-cart-collaterals .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0px;
  border-radius: 0px;
  margin-top: 20px;
  box-sizing: border-box;
    background-color : 
#f8ad3b;
    font-family : Inter;
    border-radius : 52px;
    font-size : 18px;
}
/* ============================
   CODE PROMO (dans la card, après le bouton checkout)
============================ */
.dbcom-cart-coupon {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(171, 92, 95, 0.2);
  display: flex;
  gap: 8px;
}
.dbcom-cart-coupon input#coupon_code {
  flex: 1;
  padding: 12px 14px;
  border-radius: 0px;
  border: 1px solid rgba(171, 92, 95, 0.3);
  background: #fff;
}
.dbcom-cart-coupon button {
  white-space: nowrap;
}
/* ============================
   RESPONSIVE MOBILE
============================ */
@media (max-width: 640px) {
  .dbcom-cart-item {
    grid-template-columns: 24px 70px 1fr;
    row-gap: 8px;
  }
  .dbcom-cart-item__price,
  .dbcom-cart-item__subtotal,
  .dbcom-cart-item__quantity {
    grid-column: 3;
  }
}
.dbcom-cart-collaterals .cart_totals {
  float: none;
  width: auto;
  clear: none;
}
.cart-collaterals {
  margin-top: 0px;
}


/* ============================
   FOND GÉNÉRAL BLANC
============================ */
.dbcom-checkout-title,
.dbcom-checkout-form {
  background: #fff;
}

.dbcom-checkout-title {
  padding-top: 24px;
}

/* ============================
   LAYOUT GÉNÉRAL (identique au panier)
============================ */
.dbcom-checkout-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  background: #fff;
  padding: 24px 0;
}

.dbcom-checkout-main {
  flex: 1 1 600px;
  min-width: 0;
}

.dbcom-checkout-sidebar {
  flex: 0 0 340px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .dbcom-checkout-sidebar {
    flex: 1 1 100%;
  }
}

/* ============================
   CHAMPS COORDONNÉES / ADRESSE
============================ */
.dbcom-checkout-customer-details h3 {
  color: #AB5C5F;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 32px 0 16px;
}

.dbcom-checkout-customer-details .form-row label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

/* Card beige autour du formulaire de facturation, comme les items du panier */
.dbcom-checkout-card {
  background: #FCF0EA;
  border-radius: 0px;
  padding: 24px;
  box-sizing: border-box;
}

.dbcom-checkout-customer-details h3:first-child {
  margin-top: 0;
}

.dbcom-checkout-customer-details .form-row input.input-text,
.dbcom-checkout-customer-details .form-row textarea,
.dbcom-checkout-customer-details .form-row select,
.dbcom-checkout-customer-details .select2-selection {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(171, 92, 95, 0.25);
  border-radius: 0px;
  background: #fff;
  box-sizing: border-box;
}

.dbcom-checkout-customer-details .form-row {
  margin-bottom: 16px;
}

.dbcom-checkout-customer-details .form-row-first,
.dbcom-checkout-customer-details .form-row-last {
  width: 48%;
}

/* ============================
   CARD RÉSUMÉ DE LA COMMANDE (= .dbcom-cart-collaterals du panier)
============================ */
.dbcom-checkout-summary-card {
  background: #FCF0EA;
  border-radius: 0px;
  padding: 24px;
  height: fit-content;
}

/* Neutraliser tout float hérité (WooCommerce/thème) sur la zone résumé de commande,
   qui ferait s'effondrer la card et sortirait son contenu du flux normal */
.dbcom-checkout-summary-card #order_review,
.dbcom-checkout-summary-card #payment {
  float: none !important;
  width: auto !important;
  clear: both !important;
}

.dbcom-checkout-summary-card::after {
  content: "";
  display: table;
  clear: both;
}

.dbcom-checkout-summary-title,
.dbcom-checkout-summary-title::before,
.dbcom-checkout-summary-title::after {
  all: unset !important;
}

.dbcom-checkout-summary-title {
  display: block !important;
  font-family: inherit !important;
  color: #AB5C5F !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  margin: 0 0 20px !important;
  white-space: normal !important;
}

/* ============================
   ARTICLES DANS LE RÉSUMÉ (version compacte des .dbcom-cart-item)
============================ */
.dbcom-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.dbcom-checkout-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
}

.dbcom-checkout-item__thumbnail {
  position: relative;
  width: 48px;
}

.dbcom-checkout-item__thumbnail img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0px;
  display: block;
}

.dbcom-checkout-item__qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #AB5C5F;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dbcom-checkout-item__name {
  color: #AB5C5F;
  font-weight: 600;
  font-size: 14px;
}

.dbcom-checkout-item__price {
  color: #AB5C5F;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================
   TOTAUX (classes .dbcom-totals-* identiques au panier)
============================ */
.dbcom-totals-block {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(171, 92, 95, 0.2);
  padding-top: 12px;
}

.dbcom-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
}

.dbcom-totals-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  color: #AB5C5F;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dbcom-totals-value {
  color: #AB5C5F;
  font-size: 15px;
  white-space: nowrap;
}

.dbcom-totals-row--subtotal {
  border-top: 1px solid rgba(171, 92, 95, 0.2);
  margin-top: 6px;
  padding-top: 16px;
}

/* ============================
   BOUTON "VALIDER LA COMMANDE" (= .checkout-button du panier, même pilule orange)
============================ */
#payment.woocommerce-checkout-payment {
  margin-top: 4px;
}

#payment .form-row.place-order button#place_order {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0px;
  height: 52px;
  line-height: 52px;
  border: none;
  box-sizing: border-box;
  background-color: #f8ad3b;
  font-family: Inter;
  border-radius: 52px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
}

#payment .wc_payment_methods {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

#payment .payment_method label {
  color: #AB5C5F;
  font-weight: 600;
}

#payment .woocommerce-info {
  background: #fff;
  border-radius: 0px;
  padding: 16px;
  color: #AB5C5F;
  border: 1px solid rgba(171, 92, 95, 0.3);
}

.woocommerce-terms-and-conditions-wrapper {
  font-size: 13px;
  color: #AB5C5F;
  margin-bottom: 12px;
}

/* ============================
   CODE PROMO (mêmes réglages que .dbcom-cart-coupon)
============================ */
.dbcom-checkout-coupon {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(171, 92, 95, 0.2);
}

/* On masque le texte toggle natif ("Avez-vous un code promo ? Cliquez ici...")
   et le message d'info, pour afficher directement le champ, comme sur le panier */
.dbcom-checkout-coupon .woocommerce-form-coupon-toggle,
.dbcom-checkout-coupon > .woocommerce-info {
  display: none !important;
}

.dbcom-checkout-coupon form.checkout_coupon.woocommerce-form-coupon {
  display: block !important;
}

.dbcom-checkout-coupon form.checkout_coupon.woocommerce-form-coupon {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.dbcom-checkout-coupon .woocommerce-form-coupon .form-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.dbcom-checkout-coupon .form-row-first {
  width: 100%;
}

.dbcom-checkout-coupon .form-row-last {
  width: auto !important;
}

.dbcom-checkout-coupon input#coupon_code {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 0px;
  border: 1px solid rgba(171, 92, 95, 0.3);
  background: #fff;
  box-sizing: border-box;
}

.dbcom-checkout-coupon button {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #AB5C5F !important;
  text-decoration: underline;
  padding: 0 !important;
  margin-top: 4px;
  font-family: Inter;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* ============================
   RESPONSIVE MOBILE
============================ */
@media (max-width: 640px) {
  .dbcom-checkout-customer-details .form-row-first,
  .dbcom-checkout-customer-details .form-row-last {
    width: 100%;
  }
}

/* ============================
   MESSAGE DE CONFIRMATION
============================ */
.woocommerce-thankyou-order-received {
  color: #AB5C5F;
  font-family: Inter, sans-serif;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ============================
   ENCADRÉ RÉCAP COMMANDE (remplace le cadre en pointillés)
============================ */
.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
  background: #FCF0EA;
  border: none !important;
  border-radius: 0;
  padding: 24px;
  margin: 20px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.woocommerce-order-overview li {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #AB5C5F;
  font-family: Inter, sans-serif;
  font-size: 15px;
}

.woocommerce-order-overview li strong {
  font-weight: 700;
  color: #AB5C5F;
}


/* ============================
   FOND BLANC GÉNÉRAL
============================ */
.woocommerce-account .woocommerce {
  background: #fff;
  padding: 65px;
}

/* ============================
   POLICE INTER PARTOUT SUR LA PAGE
============================ */
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce * {
  font-family: 'Inter', sans-serif;
}

/* ============================
   LAYOUT NAVIGATION + CONTENU (colonnes via float, comme le natif WooCommerce)
============================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: left;
  margin-right: 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: left;
  width: calc(100% - 280px);
  box-sizing: border-box;
}

.woocommerce-account .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 780px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

/* ============================
   ONGLETS DE NAVIGATION
============================ */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;

}

.woocommerce-MyAccount-navigation-link a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  color: #AB5C5F;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0px;
  background: transparent;
  transition: background 0.15s ease;
		padding-left : 10px;
}

.woocommerce-MyAccount-navigation-link a:hover {
  background: #FCF0EA;
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background: #FCF0EA;
  color: #AB5C5F;
  font-weight: 700;
	padding-left: 10px;
}

/* ============================
   CONTENU (tableau de bord, commandes, adresses, etc.)
============================ */
.woocommerce-MyAccount-content {
  color: #AB5C5F;
  font-size: 15px;
  line-height: 1.6;
}

.woocommerce-MyAccount-content a {
  color: #AB5C5F;
  text-decoration: underline;
}

.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
  padding: 12px;
  border-bottom: 1px solid rgba(171, 92, 95, 0.15);
}

.woocommerce-MyAccount-content .button {
  background-color: #f8ad3b;
  border: none;
  border-radius: 52px;
  color: #fff;
  padding: 10px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.woocommerce-MyAccount-content form .form-row input.input-text {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(171, 92, 95, 0.25);
  background: #fff;
  box-sizing: border-box;
}

/* Bouton "Modifier" sur les cards d'adresses : petit, couleur de la charte */
.woocommerce-Address-title.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.woocommerce-Address-title.title a.edit {
  font-size: 12px;
  color: #AB5C5F;
  background: transparent;
  border: 1px solid rgba(171, 92, 95, 0.4);
  padding: 4px 12px;
  border-radius: 52px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.woocommerce-Address-title.title a.edit:hover {
  background: #FCF0EA;
}

/* Labels du formulaire "Détails du compte" en Inter */
.woocommerce-EditAccountForm .form-row label,
.woocommerce-EditAccountForm .form-row legend {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: #AB5C5F;
}


/* ============================
   PANIER VIDE
============================ */
.dbcom-cart-empty {
  background: #FCF0EA;
  border-radius: 0px;
  padding: 48px 32px;
  margin-top: 24px;
  text-align: center;
}

.dbcom-cart-empty__message {
  color: #AB5C5F;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.dbcom-cart-empty__action {
  margin: 0;
}

.dbcom-cart-empty__action a.button.wc-backward {
  display: inline-block;
  background-color: #f8ad3b;
  border: none;
  border-radius: 52px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  text-decoration: none;
}