/**
 * Térinéo — Header & Cart Drawer (CSS plugin)
 * Chargé via wp_enqueue_style avec priorité 100 → APRÈS le thème → gagne sans !important.
 */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@font-face {
  font-family: 'Sunday Club';
  src: url('https://terineo.com/wp-content/uploads/2026/05/Sunday-Club.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

/* ============================================================
   HEADER — full-width, sticky on scroll only
   ============================================================ */
#terineo-header.terineo-h{
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: #FEFAEE;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}
/* Sticky activé en JS quand scroll > 60px */
#terineo-header.terineo-h.is-fixed{
  position: fixed;
  top: 0;
  background: rgba(254,250,238,.78);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 4px 24px rgba(59,31,14,.08);
  animation: terineoHSlide .4s cubic-bezier(.4,0,.2,1);
}
@keyframes terineoHSlide {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
#terineo-header .terineo-h-inner{
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 88px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Logo */
#terineo-header .terineo-h-logo{
  justify-self: start;
  line-height: 0;
  text-decoration: none;
}
#terineo-header .terineo-h-logo img{
  height: 70px;
  width: auto;
  display: block;
}

/* Menu desktop */
#terineo-header .terineo-h-nav{
  display: inline-flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
  align-items: center;
}
#terineo-header .terineo-h-nav li{ display: block; }
#terineo-header .terineo-h-nav a{
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font: 500 14px/1 'Inter', sans-serif;
  color: #3B1F0E;
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
#terineo-header .terineo-h-nav a:hover{
  background: rgba(217,89,74,.08);
  color: #D9594A;
}
#terineo-header .terineo-h-nav a.is-active{
  background: #D9594A;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(217,89,74,.30);
}
#terineo-header .terineo-h-nav a.is-active:hover{
  background: #A34338;
  color: #fff;
}

/* Actions à droite */
#terineo-header .terineo-h-actions{
  display: flex;
  gap: 4px;
  justify-self: end;
  align-items: center;
}
#terineo-header .terineo-h-icon{
  width: 42px; height: 42px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3B1F0E;
  transition: background .2s, color .2s, transform .2s;
  position: relative;
  padding: 0;
}
#terineo-header .terineo-h-icon:hover{ background: #FAEFD7; }
#terineo-header .terineo-h-icon svg{
  width: 20px;
  height: 20px;
  display: block;
}

/* Cart button quand panier non-vide */
#terineo-header .terineo-h-cart.has-items{
  background: rgba(217,89,74,.10);
  color: #A34338;
}
#terineo-header .terineo-h-cart.has-items:hover{
  background: #D9594A;
  color: #fff;
}
#terineo-header .terineo-h-cart.is-pulse{
  animation: terineoHPulse .55s cubic-bezier(.4,0,.2,1.4);
}
@keyframes terineoHPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.20); }
  100% { transform: scale(1); }
}

/* ============================================================
   BADGE COMPTEUR (sur l'icône panier)
   ============================================================ */
#terineo-cart-count.terineo-cart-count{
  position: absolute;
  top: 2px;
  right: 2px;
  background: #D9594A;
  color: #fff;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font: 700 10px/1 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(217,89,74,.40);
  z-index: 10;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1.4);
}
#terineo-cart-count.terineo-cart-count.is-empty{ display: none; }

/* Burger mobile */
#terineo-header .terineo-h-burger{ display: none; }
#terineo-header .terineo-h-burger-bars{
  width: 22px; height: 14px;
  position: relative;
}
#terineo-header .terineo-h-burger-bars::before,
#terineo-header .terineo-h-burger-bars::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #3B1F0E;
  border-radius: 2px;
  transition: transform .3s, top .3s, bottom .3s;
}
#terineo-header .terineo-h-burger-bars::before{ top: 0; }
#terineo-header .terineo-h-burger-bars::after{ bottom: 0; }
#terineo-header .terineo-h-burger.is-open .terineo-h-burger-bars::before{ top: 6px; transform: rotate(45deg); }
#terineo-header .terineo-h-burger.is-open .terineo-h-burger-bars::after{ bottom: 6px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  #terineo-header .terineo-h-inner{
    grid-template-columns: auto 1fr auto;
    padding: 12px 16px;
    gap: 8px;
  }
  #terineo-header .terineo-h-nav{ display: none; }
  #terineo-header .terineo-h-logo img{ height: 54px; }
  #terineo-header .terineo-h-burger{ display: inline-flex; }
}

/* ============================================================
   OVERLAYS (mobile menu + cart drawer)
   ============================================================ */
.terineo-overlay{
  position: fixed;
  inset: 0;
  background: rgba(59,31,14,.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.terineo-overlay.is-open{
  opacity: 1;
  visibility: visible;
  transition: opacity .3s, visibility 0s 0s;
}

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
#terineo-mobile-menu.terineo-mobile-menu{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: #FEFAEE;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(59,31,14,.18);
  font-family: 'Inter', sans-serif;
}
#terineo-mobile-menu.terineo-mobile-menu.is-open{ transform: translateX(0); }
#terineo-mobile-menu .terineo-mobile-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(59,31,14,.08);
}
#terineo-mobile-menu .terineo-mobile-head img{ height: 36px; width: auto; }
#terineo-mobile-menu ul{
  list-style: none;
  padding: 16px 0;
  margin: 0;
  flex: 1;
}
#terineo-mobile-menu li{
  border-bottom: 1px solid rgba(59,31,14,.06);
}
#terineo-mobile-menu li:last-child{ border-bottom: none; }
#terineo-mobile-menu a{
  display: block;
  padding: 22px 28px;
  font: 700 24px/1.1 'Sunday Club', cursive;
  color: #3B1F0E;
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .25s;
}
#terineo-mobile-menu a:hover{
  background: #FCF6E4;
  padding-left: 36px;
}
#terineo-mobile-menu a.is-active{ color: #D9594A; }

/* Bouton close × commun (menu + cart) — !important pour battre les boutons du thème */
.terineo-close-x,
button.terineo-close-x,
#terineo-cart-close,
#terineo-menu-close{
  width: 38px !important;
  height: 38px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 999px !important;
  background: #FCF6E4 !important;
  background-color: #FCF6E4 !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  color: #3B1F0E !important;
  font: 600 26px/1 system-ui, -apple-system, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: background .2s, transform .2s, color .2s !important;
  flex-shrink: 0;
}
.terineo-close-x span{
  margin-top: -3px;
  pointer-events: none;
}
.terineo-close-x:hover,
button.terineo-close-x:hover,
#terineo-cart-close:hover,
#terineo-menu-close:hover{
  background: #3B1F0E !important;
  background-color: #3B1F0E !important;
  color: #fff !important;
  transform: rotate(90deg) !important;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
#terineo-cart-drawer.terineo-cart-drawer{
  position: fixed !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important;
  width: min(440px, 92vw) !important;
  height: 100vh !important;
  background: #FEFAEE !important;
  z-index: 999999 !important; /* AU-DESSUS de tout (header, theme, elementor) */
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
  font-family: 'Inter', sans-serif;
}
#terineo-cart-overlay.terineo-overlay{
  z-index: 999998 !important;
}
#terineo-cart-drawer.terineo-cart-drawer.is-open{ transform: translateX(0); }
#terineo-cart-drawer .terineo-cart-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(59,31,14,.08);
}
#terineo-cart-drawer .terineo-cart-title{
  font: 700 24px/1 'Sunday Club', cursive;
  color: #3B1F0E;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -.01em;
}
#terineo-cart-drawer .terineo-cart-title-count{
  background: #D9594A;
  color: #fff;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 'Inter', sans-serif;
}
#terineo-cart-drawer .terineo-cart-body{
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
  color: #3B1F0E;
  font: 400 14px/1.5 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   CART ITEMS — rendu CUSTOM (mes classes uniquement)
   ============================================================ */
#terineo-cart-drawer .terineo-cart-loading,
#terineo-cart-drawer .terineo-cart-empty{
  text-align: center;
  padding: 60px 20px;
  color: #5A3520;
}
#terineo-cart-drawer .terineo-cart-empty-icon{
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #FCF6E4;
  color: #D9594A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#terineo-cart-drawer .terineo-cart-empty-icon svg{ width: 28px; height: 28px; }
#terineo-cart-drawer .terineo-cart-empty-msg{
  font: 700 18px/1.3 'Sunday Club', cursive;
  color: #3B1F0E;
  margin: 0 0 4px;
}
#terineo-cart-drawer .terineo-cart-empty-sub{
  font: 400 14px/1.4 'Inter', sans-serif;
  color: #8A7C68;
  margin: 0;
}

#terineo-cart-drawer .terineo-cart-items{
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
#terineo-cart-drawer .terineo-cart-item{
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(59,31,14,.08);
  align-items: start;
}
#terineo-cart-drawer .terineo-cart-item:first-child{ padding-top: 4px; }
#terineo-cart-drawer .terineo-cart-item:last-child{ border-bottom: none; }
#terineo-cart-drawer .terineo-cart-item-img{
  display: block;
  width: 70px; height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #FCF6E4;
}
#terineo-cart-drawer .terineo-cart-item-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#terineo-cart-drawer .terineo-cart-item-info{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
#terineo-cart-drawer .terineo-cart-item-name{
  font: 700 14px/1.3 'Inter', sans-serif;
  color: #3B1F0E !important;
  text-decoration: none !important;
  display: block;
}
#terineo-cart-drawer .terineo-cart-item-name:hover{ color: #D9594A !important; }
#terineo-cart-drawer .terineo-cart-item-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#terineo-cart-drawer .terineo-cart-item-price{
  font: 700 14px/1 'Inter', sans-serif;
  color: #D9594A;
  white-space: nowrap;
}

/* Bouton remove × custom (pas de WC) */
#terineo-cart-drawer .terineo-cart-rm{
  width: 30px; height: 30px;
  border-radius: 999px;
  background: #D9594A;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 22px/1 system-ui, -apple-system, sans-serif;
  padding: 0;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(217,89,74,.30);
  transition: background .2s, transform .2s;
  align-self: start;
}
#terineo-cart-drawer .terineo-cart-rm span{ margin-top: -3px; pointer-events: none; }
#terineo-cart-drawer .terineo-cart-rm:hover{
  background: #A34338;
  transform: scale(1.10);
}

/* Boutons qty +/- custom */
#terineo-cart-drawer .terineo-qty{
  display: inline-flex;
  align-items: center;
  background: #FCF6E4;
  border-radius: 999px;
  padding: 4px;
  gap: 0;
}
#terineo-cart-drawer .terineo-qty-btn{
  width: 26px; height: 26px;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  font: 600 16px/1 system-ui, sans-serif;
  color: #3B1F0E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, color .2s;
}
#terineo-cart-drawer .terineo-qty-btn:hover{
  background: #D9594A;
  color: #fff;
}
#terineo-cart-drawer .terineo-qty-value{
  min-width: 24px;
  padding: 0 8px;
  text-align: center;
  font: 700 14px/1 'Inter', sans-serif;
  color: #3B1F0E;
  user-select: none;
}

/* Footer drawer : sous-total + boutons */
#terineo-cart-drawer .terineo-cart-foot{
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid #3B1F0E;
}
#terineo-cart-drawer .terineo-cart-subtotal{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0 18px;
}
#terineo-cart-drawer .terineo-cart-subtotal-label{
  font: 600 12px/1 'Inter', sans-serif;
  color: #5A3520;
  text-transform: uppercase;
  letter-spacing: .14em;
}
#terineo-cart-drawer .terineo-cart-subtotal-amount{
  font: 700 24px/1 'Inter', sans-serif;
  color: #3B1F0E;
  letter-spacing: -.01em;
}
#terineo-cart-drawer .terineo-cart-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#terineo-cart-drawer .terineo-cart-btn-outline,
#terineo-cart-drawer .terineo-cart-btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 999px;
  font: 700 12px/1 'Inter', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
  cursor: pointer;
}
#terineo-cart-drawer .terineo-cart-btn-outline{
  background: transparent;
  color: #3B1F0E !important;
  border: 1.5px solid #3B1F0E;
}
#terineo-cart-drawer .terineo-cart-btn-outline:hover{
  background: #3B1F0E;
  color: #FAEFD7 !important;
  border-color: #3B1F0E;
}
#terineo-cart-drawer .terineo-cart-btn-primary{
  background: #C04A3F;
  color: #fff !important;
  border: none;
  box-shadow: 0 14px 30px rgba(192,74,63,.30);
}
#terineo-cart-drawer .terineo-cart-btn-primary:hover{
  background: #A84036;
  transform: translateY(-2px);
}

/* === Mini-cart WC items === */
#terineo-cart-drawer ul.cart_list,
#terineo-cart-drawer ul.product_list_widget{
  list-style: none;
  padding: 0;
  margin: 0;
}
#terineo-cart-drawer ul.cart_list li,
#terineo-cart-drawer ul.product_list_widget li{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 18px 40px 18px 0;
  border-bottom: 1px solid rgba(59,31,14,.06);
  position: relative;
}
#terineo-cart-drawer ul li:last-child{ border-bottom: none; }
#terineo-cart-drawer ul li img{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}
#terineo-cart-drawer ul li a:not(.remove):not(.remove_from_cart_button){
  color: #3B1F0E;
  font: 700 14px/1.3 'Inter', sans-serif;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
#terineo-cart-drawer ul li .quantity{
  color: #5A3520;
  font: 500 13px/1.3 'Inter', sans-serif;
  display: block;
}
#terineo-cart-drawer ul li .quantity .amount{
  color: #3B1F0E;
  font-weight: 700;
}
#terineo-cart-drawer ul li dl,
#terineo-cart-drawer ul li dl.variation{
  display: none;
}

/* === BOUTON REMOVE × — !important partout pour battre WC + thème + cart-drawer plugin === */
#terineo-cart-drawer ul li a.remove,
#terineo-cart-drawer ul li a.remove_from_cart_button,
#terineo-cart-drawer ul.cart_list li a.remove,
#terineo-cart-drawer ul.product_list_widget li a.remove{
  position: absolute !important;
  top: 14px !important;
  right: 0 !important;
  left: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 999px !important;
  background: #D9594A !important;
  background-color: #D9594A !important;
  background-image: none !important;
  color: #fff !important;
  font: 700 22px/1 system-ui, -apple-system, "Helvetica Neue", sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(217,89,74,.35) !important;
  transition: background .2s, transform .2s !important;
  border: none !important;
  outline: none !important;
  z-index: 5 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  float: none !important;
  cursor: pointer !important;
}
#terineo-cart-drawer ul li a.remove:hover,
#terineo-cart-drawer ul li a.remove_from_cart_button:hover{
  background: #A34338 !important;
  background-color: #A34338 !important;
  transform: scale(1.10) !important;
  color: #fff !important;
}
/* Cache les éventuels doublons (plugin terineo-cart-drawer ou autre) */
#terineo-cart-drawer ul li a.remove ~ a.remove,
#terineo-cart-drawer ul li a.remove ~ a.remove_from_cart_button,
#terineo-cart-drawer ul li a.remove_from_cart_button ~ a.remove,
#terineo-cart-drawer ul li a.remove_from_cart_button ~ a.remove_from_cart_button,
#terineo-cart-drawer ul li [class*="ter-cd-remove"]:not(:first-of-type){
  display: none;
}

/* === Total + Boutons WC === */
#terineo-cart-drawer p.total{
  margin: 16px 0 0;
  padding: 18px 0;
  border-top: 2px solid #3B1F0E;
  font: 600 14px/1 'Inter', sans-serif;
  color: #5A3520;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-transform: uppercase;
  letter-spacing: .14em;
}
#terineo-cart-drawer p.total strong{ font-weight: 600; }
#terineo-cart-drawer p.total .amount{
  font: 700 22px/1 'Inter', sans-serif;
  color: #3B1F0E;
  letter-spacing: -.01em;
  text-transform: none;
}

/* Container des boutons : force flex column (même si WC ou theme dit row) */
#terineo-cart-drawer p.buttons,
#terineo-cart-drawer p.woocommerce-mini-cart__buttons,
#terineo-cart-drawer .woocommerce-mini-cart__buttons{
  margin: 16px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}
/* Reset WC defaults sur tous les boutons du panier */
#terineo-cart-drawer p.buttons a,
#terineo-cart-drawer .woocommerce-mini-cart__buttons a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 24px !important;
  border-radius: 999px !important;
  font: 700 12px/1 'Inter', sans-serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background .2s, transform .2s, color .2s !important;
  border: none !important;
  width: auto !important;
  margin: 0 !important;
  background-image: none !important;
  text-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
/* "Voir le panier" — outline ink (1er bouton, ou .button sans .checkout, ou href cart sans checkout) */
#terineo-cart-drawer p.buttons a.button:not(.checkout),
#terineo-cart-drawer p.buttons a.wc-forward:not(.checkout),
#terineo-cart-drawer p.buttons a[href$="/cart/"],
#terineo-cart-drawer p.buttons a[href*="/cart"]:not([href*="checkout"]),
#terineo-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout),
#terineo-cart-drawer .woocommerce-mini-cart__buttons a[href*="/cart"]:not([href*="checkout"]){
  background: transparent !important;
  background-color: transparent !important;
  color: #3B1F0E !important;
  border: 1.5px solid #3B1F0E !important;
  order: -1 !important;
  box-shadow: none !important;
}
#terineo-cart-drawer p.buttons a.button:not(.checkout):hover,
#terineo-cart-drawer p.buttons a[href*="/cart"]:not([href*="checkout"]):hover{
  background: #3B1F0E !important;
  background-color: #3B1F0E !important;
  color: #FAEFD7 !important;
}
/* "Commander" — coral plein */
#terineo-cart-drawer p.buttons a.checkout,
#terineo-cart-drawer p.buttons a[href*="checkout"],
#terineo-cart-drawer .woocommerce-mini-cart__buttons a.checkout,
#terineo-cart-drawer .woocommerce-mini-cart__buttons a[href*="checkout"]{
  background: #C04A3F !important;
  background-color: #C04A3F !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(192,74,63,.30) !important;
  border: none !important;
}
#terineo-cart-drawer p.buttons a.checkout:hover,
#terineo-cart-drawer p.buttons a[href*="checkout"]:hover{
  background: #A84036 !important;
  background-color: #A84036 !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* Empty state */
#terineo-cart-drawer p.woocommerce-mini-cart__empty-message{
  text-align: center;
  padding: 40px 20px;
  color: #5A3520;
  font: 500 16px/1.5 'Inter', sans-serif;
}

/* ============================================================
   BODY scroll lock quand drawer ouvert
   ============================================================ */
body.terineo-h-locked{ overflow: hidden; }

/* ============================================================
   FORCE : on cache la cart popup d'Elementor + autres popups cart
   pour que SEUL mon drawer s'affiche au clic.
   ============================================================ */
.elementor-menu-cart__container,
.elementor-menu-cart__main,
.elementor-menu-cart__products,
body > .widget_shopping_cart:not(#terineo-cart-drawer *),
.elementor-menu-cart--shown .elementor-menu-cart__container{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}
/* Garde le toggle Elementor visible (ce sera notre 2e icône cart si user a 2 headers)
   mais quand on click dessus, on attache notre handler pour ouvrir notre drawer */

/* ============================================================
   CART DRAWER — SECTION SUGGESTIONS (v1.3.0)
   "Compléter votre commande" : produits non présents au panier
   ============================================================ */
#terineo-cart-drawer .terineo-cart-suggestions{
  margin: 20px 0 0;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(59,31,14,.08);
  font-family: 'Inter', sans-serif;
}
#terineo-cart-drawer .terineo-cart-suggestions-head{
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding: 0 4px;
}
#terineo-cart-drawer .terineo-cart-suggestions-title{
  font: 700 13px/1.2 'Inter', sans-serif;
  color: #3B1F0E;
  letter-spacing: 0;
  text-transform: none;
}
#terineo-cart-drawer .terineo-cart-suggestions-sub{
  font: 500 11px/1.3 'Inter', sans-serif;
  color: #8A7C68;
  text-transform: uppercase;
  letter-spacing: .1em;
}
#terineo-cart-drawer .terineo-cart-suggestions-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#terineo-cart-drawer .terineo-cart-suggestion{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #FCF6E4;
  border: 1px solid rgba(59,31,14,.06);
  border-radius: 12px;
  transition: background .2s, border-color .2s, transform .2s;
}
#terineo-cart-drawer .terineo-cart-suggestion:hover{
  background: #fff;
  border-color: rgba(217,89,74,.20);
  transform: translateX(2px);
}
#terineo-cart-drawer .terineo-cart-suggestion-img{
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
#terineo-cart-drawer .terineo-cart-suggestion-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#terineo-cart-drawer .terineo-cart-suggestion-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#terineo-cart-drawer .terineo-cart-suggestion-name{
  font: 700 12.5px/1.3 'Inter', sans-serif !important;
  color: #3B1F0E !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#terineo-cart-drawer .terineo-cart-suggestion-name:hover{
  color: #D9594A !important;
}
#terineo-cart-drawer .terineo-cart-suggestion-price,
#terineo-cart-drawer .terineo-cart-suggestion-price .woocommerce-Price-amount{
  font: 800 12px/1 'Inter', sans-serif !important;
  color: #D9594A !important;
}
/* Bouton "+" rond coral */
#terineo-cart-drawer button.terineo-cart-suggestion-add{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: none;
  background: #D9594A;
  background-color: #D9594A;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  font: 700 18px/1 'Inter', sans-serif;
  text-indent: 0;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(217,89,74,.30);
  transition: background .2s, transform .15s, box-shadow .2s;
  visibility: visible;
  opacity: 1;
  flex-shrink: 0;
}
#terineo-cart-drawer button.terineo-cart-suggestion-add:hover{
  background: #A34338;
  background-color: #A34338;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(217,89,74,.45);
}
#terineo-cart-drawer button.terineo-cart-suggestion-add:active{
  transform: scale(.95);
}
#terineo-cart-drawer button.terineo-cart-suggestion-add.is-loading{
  background: #A34338;
  pointer-events: none;
}
#terineo-cart-drawer button.terineo-cart-suggestion-add.is-added{
  background: #2E8B57;
  background-color: #2E8B57;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(46,139,87,.30);
}
#terineo-cart-drawer .terineo-cart-suggestion-spinner{
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: terineoSugSpin .7s linear infinite;
}
@keyframes terineoSugSpin{
  to { transform: rotate(360deg); }
}

/* ============================================================
   ICÔNE ACCOUNT (Mon compte) — v1.3.1
   À gauche du panier dans le header
   ============================================================ */
#terineo-header .terineo-h-icon.terineo-h-account{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: #3B1F0E;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  padding: 0;
  margin: 0;
}
#terineo-header .terineo-h-icon.terineo-h-account:hover{
  background: rgba(217, 89, 74, 0.10);
  color: #D9594A;
  transform: translateY(-1px);
}
#terineo-header .terineo-h-icon.terineo-h-account:active{
  transform: scale(.95);
}
#terineo-header .terineo-h-icon.terineo-h-account svg{
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}
/* Connecté : petit dot vert en bas à droite */
#terineo-header .terineo-h-icon.terineo-h-account.is-logged{
  color: #D9594A;
}
#terineo-header .terineo-h-icon.terineo-h-account .terineo-account-dot{
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2E8B57;
  border: 2px solid #FEFAEE;
  box-shadow: 0 0 0 1px rgba(46,139,87,.20);
}
/* Adapte le dot quand le header devient sticky (fond blur) */
#terineo-header.is-fixed .terineo-h-icon.terineo-h-account .terineo-account-dot{
  border-color: rgba(254,250,238,.95);
}
