/* ============================================================
   SAKURA CART STYLES — version 1.3.1
   - Basé sur ton CSS fourni (aucune autre modification fonctionnelle)
   - Seule modification : couleur des boutons footer du drawer
   ============================================================ */

/* ============================================================
   MODULE 1 — VARIABLES GLOBALES SAKURA
   ============================================================ */

:root {
  --sakura-gold: #E9DF91;
  --sakura-gold-light: #EFE595;
  --sakura-marron: #2A1A1A;
  --sakura-black: #1A1A1A;

  /* Boutons footer APBD */
  --sakura-cta: #6B8E23;
  --sakura-cta-hover: #5f7a1d;

  /* Bordures */
  --sakura-orange-gold: #CBAA7C;
}

/* ============================================================
   MODULE 1.1 — GLOBALES FONTS
   ============================================================ */

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Philosopher:wght@400;700&display=swap');

/* Police par défaut pour tout le texte */
body,
p,
li,
span,
a,
input,
textarea,
select,
button {
    font-family: 'Poppins', sans-serif !important;
}

/* Police pour tous les titres */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Philosopher', sans-serif !important;
}


/* ============================================================
   MODULE 2 — LAYOUT FOODONLINE (DESKTOP)
   ============================================================ */

/* Colonne catégories (gauche) */
#fdoe-left-left-container {
  flex: 0 0 220px;
  max-width: 220px;
  background: var(--sakura-marron) !important;
  color: var(--sakura-gold);
  border-right: 1px solid var(--sakura-orange-gold);
  padding: 20px;
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  font-family: 'Poppins', sans-serif;
}

#fdoe-left-left-container h4.Category_heading {
  color: var(--sakura-gold);
  font-family: 'Philosopher', sans-serif;
  font-size: 22px;
  margin-bottom: 15px;
}

#fdoe-left-left-container a {
  color: #fff !important;
  text-decoration: none;
  padding: 6px 0;
  display: block;
  font-weight: 500;
}

#fdoe-left-left-container a:hover {
  color: var(--sakura-gold-light) !important;
}

/* Colonne produits (droite) */
#fdoe-left-container {
  flex: 1;
  min-width: 0;
  padding: 20px;
  background: var(--sakura-marron) !important;
}

/* ============================================================
   MODULE 3 — MENU FOODONLINE NATIF (MOBILE)
   ============================================================ */

@media (max-width: 768px) {

  /* Conteneur sticky */
  #fdoe_products_id.fdoe_menu_header {
    position: sticky;
    top: 60px;
    z-index: 9999;
    background: var(--sakura-marron);
    border-bottom: 1px solid var(--sakura-orange-gold);
    height: 52px;
    overflow: hidden;
    padding: 0;
  }

  /* UL scrollable */
  #fdoe_products_id .fdoe-menu-2 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    gap: 12px;
    height: 52px;
    align-items: center;
    padding: 0 12px !important;
    margin: 0 !important;
    list-style: none;
    scroll-behavior: smooth;
  }

  /* Liens */
  #fdoe_products_id .fdoe-menu-2 a {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(203,170,124,0.15);
    color: var(--sakura-gold) !important;
    font-weight: 600;
    text-decoration: none;
  }

  #fdoe_products_id .fdoe-menu-2 a:hover,
  #fdoe_products_id .fdoe-menu-2 .active > a {
    background: var(--sakura-orange-gold);
    color: #000 !important;
  }

  /* Scrollbar invisible */
  #fdoe_products_id .fdoe-menu-2::-webkit-scrollbar {
    display: none;
  }

  /* Fade doré */
  #fdoe_products_id.fdoe_menu_header::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to left,
      rgba(203,170,124,0.85),
      rgba(203,170,124,0)
    );
  }

  /* Masquer les flèches FoodOnline */
  #fdoemenuNext,
  #fdoemenuPrev {
    display: none !important;
  }
}
/* SAKURA — Masquer le menu mobile FoodOnline en desktop */

@media (min-width: 769px) {
    #fdoe_products_id.fdoe_menu_header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}



/* ============================================================
   MODULE 5 — DRAWER APBD (PANIER) — SAKURA GOLD + GRADIENT
   ============================================================ */

/* Fond + bordures + gradient doré */
#apbd-mini-cart-container .apbd-nmca-vt-content {
  background: linear-gradient(
      to bottom,
      rgba(233, 223, 145, 0.15) 0%,   /* doré léger en haut */
      var(--sakura-marron) 20%,      /* marron principal */
      var(--sakura-marron) 100%
  ) !important;
  border-left: 2px solid var(--sakura-orange-gold) !important;
  color: var(--sakura-gold) !important;
}

/* Header */
.apbd-nmca-vt-cart-header {
  background: transparent !important;
  border-bottom: 1px solid var(--sakura-orange-gold) !important;
}

/* Icône X de fermeture */
.apbd-nmca-vt-header-close-icon i {
  color: var(--sakura-gold) !important;
  background: transparent !important;
  border: 1px solid var(--sakura-orange-gold) !important;
  border-radius: 50%;
  padding: 4px;
  transition: all 0.2s ease-in-out;
}
.apbd-nmca-vt-header-close-icon i:hover {
  color: var(--sakura-orange-gold) !important;
  background: rgba(233, 223, 145, 0.15) !important;
}

/* Titre et texte du header */
.apbd-nmca-vt-header-left-side-title,
.apbd-nmca-vt-header-left-side-text {
  color: var(--sakura-gold) !important;
}

/* Images */
.apbd-nmca-vt-item-img img {
  border-radius: 6px !important;
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  border: 1px solid var(--sakura-orange-gold) !important;
}

/* Nom du produit */
.apbd-nmca-vt-item-name span,
.apbd-nmca-vt-item-name a {
  color: var(--sakura-gold) !important;
}

/* Prix unitaire + prix total */
.apbd-nmca-vt-item-properties .woocommerce-Price-amount,
.apbd-nmca-vt-item-price .woocommerce-Price-amount,
.apbd-nmca-vt-price-title .woocommerce-Price-amount {
  color: var(--sakura-gold) !important;
  -webkit-text-fill-color: var(--sakura-gold) !important;
}

/* Labels (Qty, Subtotal, Shipping, Total) */
.apbd-nmca-vt-item-qty span,
.apbd-nmca-vt-price-title span:first-child {
  color: var(--sakura-gold) !important;
}

/* Boutons + / - */
.apbd-nmca-vt-input-wrap {
  border: 1px solid var(--sakura-orange-gold) !important;
  border-radius: 6px !important;
}
.apbd-nmca-vt-input-icon {
  background: var(--sakura-marron) !important;
  color: var(--sakura-gold) !important;
}

/* Icône X (remove) */
.apbd-nmca-vt-item-remove-icon {
  color: var(--sakura-gold) !important;
}

/* Footer */
.apbd-nmca-vt-cart-footer {
  background: transparent !important;
  border-top: 1px solid var(--sakura-orange-gold) !important;
}

/* Bouton "Valider le panier" en doré */
.apbd-nmca-vt-checkout-button {
  background: var(--sakura-gold) !important;
  color: var(--sakura-marron) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: 1px solid var(--sakura-orange-gold) !important;
  transition: all 0.2s ease-in-out;
}
.apbd-nmca-vt-checkout-button:hover {
  background: var(--sakura-orange-gold) !important;
  color: #fff !important;
}



/* ============================================================
   MODULE HEADER — ALIGNEMENT LOGO / MENU / BURGER
   Compatible Noo Organici + Kubio + Edge
   ============================================================ */
/* ============================================================
   SAKURA — FIX HEADER NOO ORGANICI
   Logo à gauche — Menu centré — Burger à droite
   ============================================================ */
/* ============================================================
   SAKURA — FIX HEADER NOO ORGANICI (WPBakery)
   ============================================================ */
/* ============================================================
   SAKURA — FIX HEADER NOO ORGANICI (COMPATIBLE EDGE)
   ============================================================ */

/* 1) On neutralise TOUS les floats du thème */
.noo-header .navbar-header,
.noo-header .noo-main-menu,
.noo-header .noo-menu-option,
.noo-header .navbar-default,
.noo-header .menu-position {
    float: none !important;
}

/* 2) On transforme la ligne en flex propre */
.noo-header .menu-position {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    position: relative !important;
}

/* 3) LOGO à gauche */
.noo-header .navbar-header {
    order: 1;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
}

/* 4) MENU centré */
.noo-header .noo-main-menu {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
}

/* UL centré */
.noo-header .noo-main-menu > ul {
    display: flex !important;
    gap: 24px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* 5) BURGER à droite */
.noo-header .btn-navbar {
    order: 3;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    z-index: 10 !important;
}

/* 6) Masquer le burger en desktop */
@media (min-width: 992px) {
    .btn-navbar {
        display: none !important;
    }
}

/* 7) En mobile : menu caché, burger visible */
@media (max-width: 991px) {
    .noo-main-menu {
        display: none !important;
    }
    .btn-navbar {
        display: flex !important;
    }
}

/* 8) Supprimer le menu option parasite (ellipsis) */
.noo-menu-option {
    display: none !important;
}

/* 9) Fix Edge : empêche le recentrage automatique */
    @supports (-ms-ime-align:auto) {
        .noo-header .menu-position {
            justify-content: space-between !important;
        }
    }

/* ============================================================
   SAKURA — FIX LOGO HEIGHT (désactive le réglage Customizer)
   ============================================================ */
/* ============================================================
   SAKURA — Annule le positionnement absolu du header natif
   ============================================================ */
.noo-header.header-3 .navbar-header {
    position: relative !important; /* annule le absolute du thème */
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
}

/* ============================================================
   SAKURA — Restaurer le fond marron global du site
   ============================================================ */

html, body {
    background-color: var(--sakura-marron) !important;
}

/* WPBakery / Noo Organici wrappers */
body,
.site,
#page,
#main,
#primary,
#content,
#the_main_container,
#the_menu,
.noo-container,
.vc_row,
.vc_section {
    background-color: var(--sakura-marron) !important;
}

/* ============================================================
   SAKURA — Couleurs dorées pour le menu principal du header et 
   par defaut partout :-)
   ============================================================ */
color: var(--sakura-gold) !important;

/* Liens du menu */
.noo-header .noo-main-menu > ul > li > a {
    color: var(--sakura-gold) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Hover + item actif */
.noo-header .noo-main-menu > ul > li > a:hover,
.noo-header .noo-main-menu > ul > li.current-menu-item > a,
.noo-header .noo-main-menu > ul > li.current_page_item > a {
    color: var(--sakura-gold-light) !important;
}

/* Supprime les couleurs imposées par le thème */
.noo-header .noo-main-menu > ul > li > a:visited,
.noo-header .noo-main-menu > ul > li > a:focus {
    color: var(--sakura-gold) !important;
}

/* ============================================================
   SAKURA — Mise en valeur du texte dans .box_com_menu.midi
   ============================================================ */

/* Texte principal */
.box_com_menu.midi,
.box_com_menu.midi p,
.box_com_menu.midi span,
.box_com_menu.midi small {
    font-size: 18px !important; /* plus grand */
    line-height: 1.45 !important;
    color: var(--sakura-gold) !important; /* doré */
    font-weight: 300 !important; /* plus visible */
}

/* Si tu veux en blanc au lieu du doré */
.box_com_menu.midi.white-text,
.box_com_menu.midi.white-text p,
.box_com_menu.midi.white-text span,
.box_com_menu.midi.white-text small {
    color: #fff !important;
}
/* ============================================================
   SAKURA — Suppression des bordures parasites du header
   ============================================================ */

.noo-header,
.noo-header .navbar,
.noo-header .navbar-default,
.noo-header .navbar-header,
.noo-header .menu-position,
.noo-header .noo-main-menu {
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}

/* Certains thèmes ajoutent un border-bottom sur le header */
.noo-header.header-3 {
    border-bottom: none !important;
}

/* Supprime aussi les bordures internes éventuelles */
.noo-header * {
    border: none !important;
}


/* ============================================================
   SAKURA — Mise en valeur du texte "Menu Midi"
   ============================================================ */

/* Cible le texte descriptif sous le titre du produit */
.fdoe-item small,
.fdoe-item .fdoe_description small {
    font-size: 16px !important; /* plus grand */
    color: #fff !important; /* blanc */
    font-weight: 600 !important; /* plus visible */
    display: block !important; /* force un vrai bloc */
    margin-top: 4px !important;
}

/* Variante dorée si tu préfères */
.fdoe-item .fdoe_description small.sakura-gold {
    color: var(--sakura-gold) !important;
}

/* ============================================================
   SAKURA — Suppression de la bordure/ombre FoodOnline sur le header
   ============================================================ */
/* ============================================================
   SAKURA — Suppression de la bordure/ombre sur .noo-container.menu-position
   ============================================================ */

.noo-container.menu-position,
.noo-container.menu-position.affix,
.noo-container.menu-position.sticky,
.noo-container.menu-position.navbar-header,
.noo-header .noo-container.menu-position {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

/* Si FoodOnline ajoute un style inline */
.noo-container.menu-position[style] {
    border: none !important;
    box-shadow: none !important;
}

/* Supprime aussi les pseudo-éléments éventuels */
.noo-container.menu-position:before,
.noo-container.menu-position:after {
    content: none !important;
    display: none !important;
}


/* ============================================================
   SAKURA — Titre de catégorie doré
   ============================================================ */

.menu_titles .fdoe_title_text {
    color: var(--sakura-gold) !important; /* doré Sakura */
    -webkit-text-fill-color: #E9DF91 !important; /* contourne canvastext */
}
.fdoe-menu-title-icon {
    color: var(--sakura-gold) !important;
}

/* ============================================================
   SAKURA — Style du sticky panier
   ============================================================ */

/* Conteneur du drawer */
.apbd-nmca-opener-container.apbd-nmca-drawer {
    background-color: #2A1A1A !important; /* brun Sakura */
    color: var(--sakura-orange-gold) !important; /* doré Sakura */
    border-radius: 10px !important;
    box-shadow: none !important;
}

/* Icône panier */
.apbd-nmca-drawer-item-icon i.apmc.ap-cart-16 {
    color: #CBAA7C !important;
    font-size: 22px !important;
}

/* Quantité (odometer) */
.apbd-nmca-drawer-item-quantity .odometer,
.apbd-nmca-drawer-item-quantity .odometer * {
    color: #CBAA7C !important;
    -webkit-text-fill-color: #CBAA7C !important;
    font-weight: 700 !important;
}

/* Total (footer) */
.apbd-nmca-drawer-footer .odometer,
.apbd-nmca-drawer-footer .odometer *,
.apbd-nmca-drawer-footer span {
    color: var(--sakura-orange-gold) !important;
    -webkit-text-fill-color: #CBAA7C !important;
    font-weight: 600 !important;
}

/* Hover du drawer */
.apbd-nmca-opener-container.apbd-nmca-drawer:hover {
    background-color: #3D2A26 !important; /* brun un peu plus clair */
    color: #E9DF91 !important; /* doré clair */
}

/* ============================================================
   SAKURA — Fix couleur des liens du menu (Firefox)
   ============================================================ */

.noo-header .noo-main-menu > ul > li > a,
.noo-header .noo-main-menu > ul > li > a:visited,
.noo-header .noo-main-menu > ul > li > a:focus {
    color: var(--sakura-gold) !important; /* doré Sakura */
    -webkit-text-fill-color: var(--sakura-gold) !important;
}

/* Hover + actif */
.noo-header .noo-main-menu > ul > li > a:hover,
.noo-header .noo-main-menu > ul > li.current-menu-item > a,
.noo-header .noo-main-menu > ul > li.current_page_item > a {
    color: var(--sakura-gold-light) !important; /* doré clair */
    -webkit-text-fill-color: var(--sakura-gold-light) !important;
}

/* Neutralise le brun imposé par le thème */
.noo-header .noo-main-menu > ul > li > a[style],
.noo-header .noo-main-menu > ul > li > a span {
    color: var(--sakura-gold) !important;
}

/* ============================================================
   SAKURA — Restauration du hover sur le top menu
   ============================================================ */

.noo-header .noo-main-menu > ul > li > a:hover,
.noo-header .noo-main-menu > ul > li.current-menu-item > a,
.noo-header .noo-main-menu > ul > li.current_page_item > a {
    color: var(--sakura-gold-light) !important; /* doré clair */
    -webkit-text-fill-color: var(--sakura-gold-light) !important;
    transition: color 0.25s ease-in-out !important;
}

/* Optionnel : effet de surbrillance douce */
.noo-header .noo-main-menu > ul > li > a:hover {
    text-shadow: 0 0 6px rgba(233, 223, 145, 0.6) !important;
}

/* ============================================================
   SAKURA — Restauration des bordures manquantes sur les produits
   ============================================================ */

/* Cible toutes les variantes de conteneurs produits */
.fdoe-item,
.fdoe-item-inner,
.fdoe-item-wrap {
    border: 1px solid var(--sakura-orange-gold) !important; /* doré Sakura */
    border-radius: 0 !important; /* angle droit */
    background: var(--sakura-marron) !important; /* fond brun */
    box-shadow: none !important;
}

/* Si FoodOnline ajoute des styles inline */
.fdoe-item[style],
.fdoe-item-inner[style],
.fdoe-item-wrap[style] {
    border: 1px solid var(--sakura-orange-gold) !important;
}

/* Pour les produits en grille ou en colonne */
.fdoe-item:nth-child(n),
.fdoe-item-inner:nth-child(n),
.fdoe-item-wrap:nth-child(n) {
    border-color: var(--sakura-orange-gold) !important;
}
/* ============================================================
   SAKURA — Bouton Checkout (fix visuel final)
   ============================================================ */

/* Style principal */
#checkout_button_1,
a.button.checkout.from_menu {
    background: var(--sakura-gold) !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;

    font-weight: 600 !important;
    font-size: 0 !important; /* cache le texte natif */
    line-height: 1.2 !important;

    padding: 10px 18px !important;
    border-radius: 6px !important;
    border: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;

    box-shadow: none !important;
    text-transform: none !important;

    transition: background-color 0.25s ease, color 0.25s ease !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

/* Forcer la couleur sur tous les états */
#checkout_button_1,
#checkout_button_1:link,
#checkout_button_1:visited,
#checkout_button_1:active {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Hover harmonisé */
#checkout_button_1:hover,
a.button.checkout.from_menu:hover {
    background: var(--sakura-gold-light) !important;
    color: #000 !important;
}

/* Texte recréé proprement */
#checkout_button_1::before,
a.button.checkout.from_menu::before {
    content: "Valider le panier"; /* ← change ici si tu veux */
    display: inline-block;
    font-size: 15px; /* texte visible */
    line-height: 1.2;
    color: #000;
    font-weight: 600;
}
//////////////////////////////////////////////////////////////////////////////
/* Titre produit en doré — version qui bat le style inline + le thème */
#the_menu .fdoe-item .fdoe_title h5,
#the_menu .fdoe_main_container .fdoe_title h5 { ... }
div.fdoe_title {
    color: var(--sakura-gold) !important;
}

/* Prix en doré */
.fdoe_item_price .woocommerce-Price-amount,
.fdoe_item_price .woocommerce-Price-amount bdi,
.fdoe_item_price .woocommerce-Price-currencySymbol {
    color: var(--sakura-gold) !important;
    -webkit-text-fill-color: var(--sakura-gold) !important;
}
/* Short Description orange doré */
#the_menu .fdoe-item span.fdoe_description {
    color: var(--sakura-orange-gold) !important;
}

/****************************************************************************/

