/*
Theme Name: Le 290 PWA
Theme URI: https://le290.fr
Author: Le 290
Author URI: https://le290.fr
Description: Thème PWA Mobile-First sur-mesure pour le fast-food Le 290. Compatible WooCommerce. Ultra-léger, rapide et optimisé pour smartphones.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: le290
WC requires at least: 7.0
WC tested up to: 9.0
*/

/* ===================================================
   VARIABLES CSS — CHARTE GRAPHIQUE LE 290
   Rouge #D32F2F · Jaune #FFC107 · Noir #1A1A1A
=================================================== */
:root {
  --color-red:        #D32F2F;
  --color-red-dark:   #B71C1C;
  --color-yellow:     #FFC107;
  --color-yellow-dark:#F59F00;
  --color-black:      #1A1A1A;
  --color-dark:       #111111;

  /* Alias pour compatibilité avec l'ancien code */
  --color-primary:    #1A1A1A;
  --color-dark-old:   #D32F2F;

  --color-bg:         #F4F4F4;
  --color-surface:    #FFFFFF;
  --color-border:     #E8E8E8;
  --color-text:       #1A1A1A;
  --color-muted:      #888888;
  --color-success:    #2ECC71;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  30px;

  --shadow-card: 0 2px 10px rgba(0,0,0,0.07);
  --shadow-btn:  0 4px 16px rgba(211,47,47,0.35);
  --shadow-top:  0 -2px 16px rgba(0,0,0,0.10);

  --header-h:    62px;
  --bottomnav-h: 66px;
  --font-main:   'Nunito', 'Segoe UI', sans-serif;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottomnav-h) + 16px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }
ul, ol { list-style: none; }

/* Force Nunito partout — WooCommerce Blocks inclus */
.woocommerce,
.woocommerce *,
.wc-block-cart,
.wc-block-cart *,
.wc-block-checkout,
.wc-block-checkout *,
.wc-block-components-product-name,
.wc-block-components-product-price,
.wc-block-components-totals-item,
.wc-block-components-totals-item *,
.wc-block-components-button,
.wc-block-components-text-input *,
.wc-block-components-radio-control *,
.wc-block-components-order-summary *,
.wc-block-components-checkout-step *,
.wp-block-woocommerce-cart *,
.wp-block-woocommerce-checkout *,
.le290-page-content,
.le290-page-content *,
.woocommerce-MyAccount-navigation *,
.woocommerce-MyAccount-content * {
  font-family: var(--font-main) !important;
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
h2 { font-size: clamp(1rem, 4vw, 1.3rem); }
h3 { font-size: clamp(0.9rem, 3.5vw, 1.05rem); }

/* ===================================================
   HEADER FIXE — Rouge avec logo jaune
=================================================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  padding-right: 14px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

/* Logo */
#site-header .site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
#site-header .site-logo a span {
  color: var(--color-yellow) !important;
  font-weight: 900 !important;
  font-size: 1.4rem !important;
  letter-spacing: -0.03em;
}

/* Infos restaurant sous le logo */
.header-info {
  flex: 1;
  padding: 0 10px;
}
.header-info .header-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.header-info .header-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-top: 1px;
}

/* Actions header */
#site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton point de vente */
.header-location-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.20);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 6px 12px 6px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s;
}
.header-location-btn:active { background: rgba(0,0,0,0.32); }
.header-location-btn svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--color-yellow); }

/* Bouton panier header */
.header-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-black);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.header-cart-btn:active { transform: scale(0.92); }
.header-cart-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-red);
}
.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

/* ===================================================
   BANNIÈRE PROMO — Slider sous le header
=================================================== */
.home-banner {
  position: relative;
  background: var(--color-black);
  height: 150px;
  overflow: hidden;
}
.home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.home-banner-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.68));
  padding: 8px 14px 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.home-banner-overlay span {
  color: var(--color-yellow);
}

/* ===================================================
   HERO — Bloc "Commander ici"
=================================================== */
.home-hero {
  background: var(--color-red);
  padding: 14px 16px;
}
.home-hero h1 {
  color: var(--color-yellow);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 3px;
}
.home-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===================================================
   SCROLLER CATÉGORIES — Chips horizontales
=================================================== */
.category-scroller {
  background: #fff;
  padding: 10px 14px;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}
.category-scroller::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1.5px solid var(--color-border);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-muted);
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-pill.active,
.cat-pill:active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

/* ===================================================
   STREET-FOOD STYLE — Barres catégories + Grille produits
=================================================== */
.product-section {
  scroll-margin-top: calc(var(--header-h) + 52px);
  margin-bottom: 4px;
}

/* ── Liste des catégories ── */
.sf-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

/* ── Header produits (← NAANS) ── */
.sf-products-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 6px;
  position: sticky;
  top: var(--header-h);
  background: var(--color-bg);
  z-index: 50;
}
.sf-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sf-back-btn:active { background: var(--color-border); }
.sf-back-btn svg { width: 20px; height: 20px; }
.sf-products-header h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  margin: 0;
}

/* ── Barre de catégorie rouge (style street-food.ma) ── */
.sf-category-bar {
  background: var(--color-red);
  border-radius: var(--radius-md);
  margin: 6px 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  overflow: hidden;
  position: relative;
}
.sf-category-bar h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  z-index: 1;
}
.sf-category-bar .sf-cat-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-right: -4px;
  z-index: 1;
}

/* ── Grille de produits (2 colonnes) ── */
.sf-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 12px 6px;
}

/* ── Carte produit verticale ── */
.sf-product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: pointer;
  transition: transform 0.12s;
}
.sf-product-card:active { transform: scale(0.97); }

.sf-product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
}
.sf-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-product-info {
  padding: 10px 10px 36px;
}
.sf-product-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-product-desc {
  font-size: 0.7rem;
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-product-price {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
}

/* ── Bouton + (rond rouge en bas à droite) ── */
.sf-add-btn {
  position: absolute !important;
  bottom: 8px !important;
  right: 8px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: var(--color-black) !important;
  color: #fff !important;
  font-size: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  transition: transform 0.12s, background 0.18s !important;
  padding: 0 !important;
  text-decoration: none !important;
  border: none !important;
  z-index: 10 !important;
}
.sf-add-btn::after {
  content: '+' !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #fff !important;
}
.sf-add-btn.added::after { content: '✓' !important; }
.sf-add-btn:active { transform: scale(0.88) !important; background: var(--color-red) !important; }
.sf-add-btn.loading { opacity: 0.65 !important; }

/* ── Badge promo ── */
.woocommerce span.onsale {
  background: var(--color-yellow) !important;
  color: var(--color-black) !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  border-radius: var(--radius-sm) !important;
  top: 6px !important;
  left: 6px !important;
  min-height: unset !important;
  min-width: unset !important;
  padding: 3px 7px !important;
  line-height: 1.4 !important;
  z-index: 5 !important;
}

/* ── Archives WooCommerce (pages catégories) — garder le même style ── */
.woocommerce .products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
}
.woocommerce li.product,
ul.products li.product {
  background: var(--color-surface) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce li.product .woocommerce-loop-product__link,
ul.products li.product a.woocommerce-loop-product__link {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
}
.woocommerce li.product img,
ul.products li.product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.woocommerce li.product .product-card-body {
  padding: 10px !important;
}
.woocommerce li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: var(--color-text) !important;
  line-height: 1.3 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.woocommerce li.product .price,
ul.products li.product .price {
  font-size: 0.8rem !important;
  font-weight: 900 !important;
  color: var(--color-red) !important;
  margin: 0 !important;
}
.woocommerce li.product .add_to_cart_button,
ul.products li.product .add_to_cart_button {
  position: absolute !important;
  bottom: 8px !important;
  right: 8px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: var(--color-black) !important;
  color: #fff !important;
  font-size: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: none !important;
  z-index: 10 !important;
}
.woocommerce li.product .add_to_cart_button::after,
ul.products li.product .add_to_cart_button::after {
  content: '+' !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #fff !important;
}

/* ── Responsive ── */
@media (min-width: 450px) {
  .sf-products-grid,
  .woocommerce .products,
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ===================================================
   MODALE PRODUIT (style street-food.ma)
=================================================== */
.sf-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.sf-modal-content {
  background: var(--color-surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: sf-slide-up 0.25s ease-out;
  -webkit-overflow-scrolling: touch;
}
@keyframes sf-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.sf-modal-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 12px 0 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.sf-modal-close:active { background: rgba(0,0,0,0.7); }

.sf-modal-loading {
  padding: 60px;
  text-align: center;
  color: var(--color-muted);
  font-weight: 700;
}

/* Image en haut */
.sf-modal-img {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.sf-modal-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Infos produit */
.sf-modal-info {
  padding: 16px 18px 0;
}
.sf-modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-text);
  margin: 0 0 6px;
}
.sf-modal-price {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 8px;
}
.sf-modal-price del {
  opacity: 0.7;
}
.sf-modal-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

/* Formulaire + options */
.sf-modal-form {
  padding: 12px 18px 20px;
}
.sf-modal-form form.cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Options restructurées (cartes sauce/boisson) ── */
.sf-options-title {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 10px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-required {
  background: var(--color-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.sf-options-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sf-option-card {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  background: var(--color-surface) !important;
}
.sf-option-card input[type="radio"] {
  accent-color: var(--color-red) !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.sf-option-card:has(input:checked) {
  border-color: var(--color-red) !important;
  background: #fff5f5 !important;
}

/* Message d'erreur validation */
.sf-error-msg {
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.82rem;
  margin: 0 0 6px;
  padding: 8px 12px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1.5px solid var(--color-red);
}
.sf-opt-name {
  flex: 1;
  font-weight: 700;
  color: var(--color-text);
}
.sf-opt-price {
  font-weight: 800;
  color: var(--color-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Cacher les éléments bruts du plugin dans la modale */
.sf-modal-form .le290-options-wrap { display: none; }
/* Les radios bruts sont cachés car le JS les convertit en sf-option-card */

/* ══════════════════════════════════════════
   OPTIONS PRODUIT (Pain, Sauce, Condiments…)
   Rendu propre en grille 2 colonnes
════════════════════════════════════════════ */
.woocommerce-cart dl.variation,
.woocommerce-checkout dl.variation {
  display: grid !important;
  grid-template-columns: minmax(70px, max-content) minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  margin: 8px 0 0 !important;
  padding: 10px 12px !important;
  background: #FAFAFA;
  border-radius: 10px;
  border-left: 3px solid #E8171A;
  font-size: 0.82rem !important;
  line-height: 1.35;
  /* Empêcher la césure caractère par caractère qui donne "Cam/em/bert" */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.woocommerce-cart dl.variation dt,
.woocommerce-checkout dl.variation dt {
  grid-column: 1;
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 800;
  color: #666;
  text-transform: capitalize;
  white-space: nowrap;
}
.woocommerce-cart dl.variation dd,
.woocommerce-checkout dl.variation dd {
  grid-column: 2;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 500;
  color: #111;
  word-break: normal !important;
  overflow-wrap: break-word;
  hyphens: none;
}

/* ══════════════════════════════════════════════════
   PANIER — même style que le récap du checkout
   Layout en cards empilés (image et prix unitaire cachés)
   Ordre : Nom → Options → × Quantité → Sous-total → [×]
════════════════════════════════════════════════════ */
.woocommerce-cart table.shop_table_responsive.cart,
.woocommerce-cart table.cart {
  display: block !important;
  width: 100% !important;
  border: none !important;
  border-collapse: collapse;
}
.woocommerce-cart table.cart thead {
  display: none !important;
}
.woocommerce-cart table.cart tbody {
  display: block !important;
}

/* Chaque article = une "carte" empilée */
.woocommerce-cart table.cart tr.cart_item {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  padding: 18px 44px 18px 4px !important;
  border: none !important;
  border-bottom: 1px solid #EFEFEF !important;
  background: transparent !important;
}
.woocommerce-cart table.cart tr.cart_item:last-of-type {
  border-bottom: none !important;
}
.woocommerce-cart .cart_item td {
  display: block !important;
  border: none !important;
  padding: 0 !important;
  vertical-align: top;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* On masque image + prix unitaire (comme au checkout) */
.woocommerce-cart .cart_item .product-thumbnail,
.woocommerce-cart .cart_item .product-price {
  display: none !important;
}

/* Nom du produit + options (le dl.variation est dedans) */
.woocommerce-cart .cart_item .product-name {
  flex: 1 0 100%;
  font-weight: 800 !important;
  font-size: 1rem !important;
  color: #111 !important;
  margin-bottom: 8px;
}
.woocommerce-cart .cart_item .product-name a {
  color: #111 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}

/* Quantité affichée comme "× [1]" en rouge, façon checkout */
.woocommerce-cart .cart_item .product-quantity {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #E8171A !important;
  font-weight: 800;
  margin-top: 4px;
}
.woocommerce-cart .cart_item .product-quantity::before {
  content: "×";
  font-size: 1.05rem;
  color: #E8171A;
  font-weight: 900;
}
.woocommerce-cart .cart_item .product-quantity .qty {
  width: 52px !important;
  padding: 5px 4px !important;
  border: 1.5px solid #E8171A !important;
  border-radius: 8px !important;
  color: #E8171A !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  background: #FFF !important;
}

/* Sous-total aligné à droite, même ligne que la quantité */
.woocommerce-cart .cart_item .product-subtotal {
  flex: 0 0 auto;
  text-align: right !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: #111 !important;
  white-space: nowrap;
  margin-top: 4px;
}

/* Bouton × supprimer positionné en haut à droite */
.woocommerce-cart .cart_item .product-remove {
  position: absolute !important;
  top: 14px;
  right: 4px;
  padding: 0 !important;
}
.woocommerce-cart .cart_item .product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 1 !important;
  border-radius: 50%;
  background: #FFECEC !important;
  color: #E8171A !important;
  font-weight: 900;
  font-size: 16px !important;
  text-decoration: none !important;
}
.woocommerce-cart .cart_item .product-remove a.remove:hover {
  background: #E8171A !important;
  color: #fff !important;
}

/* Ligne "Coupon / Mettre à jour" au format bloc pleine largeur */
.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item + tr,
.woocommerce-cart table.cart tr:not(.cart_item) {
  display: block !important;
  padding: 12px 4px !important;
}
.woocommerce-cart table.cart tr:not(.cart_item) td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}
.woocommerce-cart .actions .coupon {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   MASQUER "Expédier à une adresse différente ?"
   Le billing = livraison pour un restaurant
════════════════════════════════════════════ */
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout #ship-to-different-address-checkbox {
  display: none !important;
}
.woocommerce-cart dl.variation dd p,
.woocommerce-checkout dl.variation dd p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline;
}

/* Nom du produit + quantité — mise en avant */
.woocommerce-cart .product-name > a,
.woocommerce-checkout .product-name,
.woocommerce-checkout .cart_item .product-name {
  font-weight: 800 !important;
  font-size: 0.95rem;
  color: #111;
  text-decoration: none;
}
.woocommerce-checkout .cart_item .product-quantity,
.woocommerce-cart .cart_item .product-quantity {
  color: #E8171A;
  font-weight: 800;
}

/* Ligne de séparation entre articles (checkout order review) */
.woocommerce-checkout table.shop_table tr.cart_item td,
.woocommerce-cart table.shop_table tr.cart_item td {
  padding: 12px 8px !important;
  vertical-align: top;
  border-bottom: 1px solid #EFEFEF !important;
}

/* Nom + options empilés proprement */
.woocommerce-cart .cart_item .product-name,
.woocommerce-checkout .cart_item .product-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Prix / Sous-total : bien lisibles */
.woocommerce-cart .cart_item .product-price,
.woocommerce-cart .cart_item .product-subtotal,
.woocommerce-checkout .cart_item .product-total {
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  vertical-align: top;
}

/* Image miniature carrée */
.woocommerce-cart .cart_item .product-thumbnail img,
.woocommerce-checkout .cart_item img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #EEE;
}

/* Bouton "×" supprimer article */
.woocommerce-cart .product-remove a.remove {
  width: 28px;
  height: 28px;
  line-height: 28px !important;
  border-radius: 50%;
  background: #FFECEC !important;
  color: #E8171A !important;
  font-weight: 900;
  font-size: 16px !important;
  text-align: center;
  transition: all 0.2s ease;
}
.woocommerce-cart .product-remove a.remove:hover {
  background: #E8171A !important;
  color: #fff !important;
}

/* En-têtes du tableau — plus discrets */
.woocommerce-cart table.shop_table thead th,
.woocommerce-checkout table.shop_table thead th {
  font-weight: 800;
  font-size: 0.85rem;
  color: #444;
  text-transform: none;
  padding: 10px 8px !important;
  border-bottom: 2px solid #EEE !important;
  white-space: nowrap;
}

/* Récap "Total panier" / totaux — carte plus arrondie et espacée */
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review .shop_table {
  background: #fff;
  border-radius: 16px;
  padding: 4px 8px;
}
.woocommerce-cart .cart_totals table tr th,
.woocommerce-cart .cart_totals table tr td,
.woocommerce-checkout #order_review tr th,
.woocommerce-checkout #order_review tr td {
  padding: 12px 8px !important;
  border-bottom: 1px solid #F0F0F0 !important;
  vertical-align: middle;
}
.woocommerce-cart .cart_totals .order-total td strong,
.woocommerce-checkout .order-total td strong {
  font-size: 1.15rem;
  color: #E8171A;
}

/* Cas des blocs WooCommerce (checkout Blocks) — options */
.wc-block-components-product-details {
  background: #FAFAFA;
  border-radius: 10px;
  border-left: 3px solid #E8171A;
  padding: 10px 12px !important;
  margin-top: 8px !important;
}
.wc-block-components-product-details__item {
  display: grid !important;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  font-size: 0.82rem !important;
  color: #111;
  margin: 0 !important;
  padding: 2px 0 !important;
}
.wc-block-components-product-details__item-name {
  font-weight: 800 !important;
  color: #666 !important;
}
.wc-block-components-product-details__item-value {
  color: #111 !important;
}

/* ══════════════════════════════════════════
   PAGE PANIER — masquer la ligne "Expédition"
   (reste visible au checkout)
════════════════════════════════════════════ */
.woocommerce-cart .cart_totals .shipping,
.woocommerce-cart .cart_totals tr.shipping,
.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
.woocommerce-cart .cart_totals .shipping-calculator-button,
.woocommerce-cart .wc-block-cart__totals-title + .wc-block-components-totals-wrapper .wc-block-components-totals-shipping,
.woocommerce-cart .wc-block-components-totals-shipping {
  display: none !important;
}

/* ── Livraison : champs à masquer (pays, département, code postal, address_2) ── */
.woocommerce-checkout .le290-livraison-hidden,
.woocommerce-checkout #billing_country_field.le290-livraison-hidden,
.woocommerce-checkout #billing_state_field.le290-livraison-hidden,
.woocommerce-checkout #billing_postcode_field.le290-livraison-hidden,
.woocommerce-checkout #billing_address_2_field.le290-livraison-hidden {
  display: none !important;
}

/* ── Bouton "Utiliser ma position actuelle" ── */
.le290-geoloc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: #FFF5F5;
  border: 1.5px dashed #E8171A;
  border-radius: 12px;
  color: #E8171A;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.le290-geoloc-btn:hover:not(:disabled) {
  background: #E8171A;
  color: #fff;
  border-style: solid;
}
.le290-geoloc-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.le290-geoloc-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Champ téléphone avec préfixe +212 non modifiable ── */
.le290-phone-wrap {
  display: flex !important;
  align-items: stretch;
  border: 1.5px solid #E8E8E8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.le290-phone-wrap:focus-within {
  border-color: #D32F2F;
  box-shadow: 0 0 0 1px #D32F2F;
}
.le290-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #F5F5F5;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #333;
  border-right: 1.5px solid #E8E8E8;
  user-select: none;
  white-space: nowrap;
}
.le290-phone-wrap #billing_phone {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
  padding: 12px 14px !important;
  font-family: "Nunito", sans-serif !important;
  letter-spacing: 0.5px;
}
.le290-phone-wrap #billing_phone:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

/* Cacher toute case MailPoet / opt-in marketing sur le checkout */
.woocommerce-checkout .mailpoet_checkout_optin,
.woocommerce-checkout .mailpoet-checkout-optin,
.woocommerce-checkout p.mailpoet_paragraph,
.woocommerce-checkout [id*="mailpoet"],
.woocommerce-checkout [class*="mailpoet"],
.woocommerce-checkout p:has(input[name*="mailpoet"]),
.woocommerce-checkout .form-row:has(input[name*="mailpoet"]),
.woocommerce-checkout label:has(input[name*="mailpoet"]),
.woocommerce-checkout p:has(input[id*="mailpoet"]),
.woocommerce-checkout .form-row:has(input[id*="mailpoet"]),
.woocommerce-checkout .wc-block-checkout__add-note ~ p:has(input[name*="mailpoet"]),
/* JS ajoute cette classe aux blocs opt-in marketing détectés par texte */
.le290-hide-optin {
  display: none !important;
}

/* Bouton ajouter au panier dans modale */
.sf-modal-form .single_add_to_cart_button {
  background: var(--color-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  padding: 16px !important;
  width: 100% !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
  cursor: pointer !important;
}
.sf-modal-form .single_add_to_cart_button:active {
  transform: scale(0.97) !important;
}

/* Quantité dans modale */
.sf-modal-form .quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-modal-form .quantity .qty {
  width: 60px !important;
  text-align: center !important;
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--color-border) !important;
  padding: 10px !important;
  font-weight: 800 !important;
}

/* ===================================================
   BARRE PANIER STICKY — En bas au-dessus de la nav
=================================================== */
#le290-cart-bar {
  position: fixed;
  bottom: var(--bottomnav-h);
  left: 0; right: 0;
  background: var(--color-black);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.16,1,.3,1);
}
#le290-cart-bar.visible {
  transform: translateY(0);
}
.cart-bar-info {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.cart-bar-total {
  font-size: 15px;
  font-weight: 900;
  color: var(--color-yellow);
  display: block;
}
.cart-bar-btn {
  background: var(--color-red);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(211,47,47,0.35);
  transition: background 0.18s, transform 0.12s;
}
.cart-bar-btn:active { transform: scale(0.96); background: var(--color-red-dark); }
.cart-bar-btn svg { width: 18px; height: 18px; }

/* ===================================================
   BOTTOM NAVIGATION — Noir avec actif jaune
=================================================== */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--color-black);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: var(--shadow-top);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.18s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg {
  width: 23px; height: 23px;
  transition: transform 0.18s;
}
.bottom-nav-item.active {
  color: var(--color-yellow);
}
.bottom-nav-item.active svg { transform: scale(1.1); }
.bottom-nav-item:active svg { transform: scale(0.88); }

/* Badge panier dans la nav */
.bottom-nav-item .nav-badge {
  position: absolute;
  top: 7px;
  left: calc(50% + 5px);
  background: var(--color-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--color-black);
}
.bottom-nav-item .nav-badge:empty { display: none; }

/* ===================================================
   LAYOUT PRINCIPAL
=================================================== */
.site-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* ===================================================
   ALERTE RESTAURANT FERMÉ
=================================================== */
.le290-closed-alert {
  background: #fff0f0;
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-red-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.le290-closed-alert svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-red); }

.le290-hours-alert {
  background: #fff8e1;
  border-left: 4px solid var(--color-yellow);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7a5800;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================================================
   TOAST AJAX — Notification ajout panier
=================================================== */
#le290-toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 80px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--color-black);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.08);
}
#le290-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#le290-toast .toast-icon { color: var(--color-yellow); font-size: 1rem; }

/* ===================================================
   MODALE POINT DE VENTE
=================================================== */
#le290-location-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
}
#le290-location-overlay.active { display: flex; }

#le290-location-modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 540px;
  animation: slideUp 0.3s cubic-bezier(.16,1,.3,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#le290-location-modal .modal-handle {
  width: 38px; height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
#le290-location-modal h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 5px;
  text-align: center;
}
#le290-location-modal .modal-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.location-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.location-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.location-option.selected,
.location-option:active {
  border-color: var(--color-red);
  background: #fff5f5;
}
.location-option .loc-icon {
  width: 40px; height: 40px;
  background: var(--color-red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.location-option .loc-icon svg { width: 20px; height: 20px; color: var(--color-yellow); }
.location-option .loc-info { flex: 1; }
.location-option .loc-name { font-weight: 800; font-size: 0.92rem; color: var(--color-text); }
.location-option .loc-address { font-size: 0.76rem; color: var(--color-muted); margin-top: 2px; }
.location-option .loc-hours { font-size: 0.73rem; font-weight: 700; margin-top: 3px; }
.location-option .loc-hours.open { color: var(--color-success); }
.location-option .loc-hours.closed { color: var(--color-red); }
.location-option .loc-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.location-option.selected .loc-radio { border-color: var(--color-red); background: var(--color-red); }
.location-option.selected .loc-radio::after {
  content: '';
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.location-closed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--color-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: not-allowed;
}

#btn-confirm-location {
  width: 100%;
  padding: 14px;
  background: var(--color-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(211,47,47,0.35);
  transition: transform 0.12s, background 0.18s;
}
#btn-confirm-location:active { transform: scale(0.97); }
#btn-confirm-location:disabled {
  background: var(--color-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* ===================================================
   PAGE PANIER — Classic + Blocks
=================================================== */

/* ── Panier Blocks (WooCommerce 8+) ── */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  padding: 0 12px !important;
  font-family: var(--font-main) !important;
}

/* Items du panier */
.wc-block-cart-items .wc-block-cart-items__row {
  background: var(--color-surface) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border) !important;
  padding: 12px !important;
  margin-bottom: 8px !important;
  box-shadow: var(--shadow-card) !important;
}
.wc-block-cart-items .wc-block-cart-items__row td {
  border: none !important;
}
.wc-block-cart-items .wc-block-cart-item__image img {
  border-radius: var(--radius-sm) !important;
}
.wc-block-cart-item__product .wc-block-components-product-name {
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  color: var(--color-text) !important;
}
.wc-block-cart-item__product .wc-block-components-product-price {
  font-weight: 900 !important;
  color: var(--color-red) !important;
}

/* Quantité — boutons +/- */
.wc-block-components-quantity-selector {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--color-border) !important;
  overflow: hidden !important;
}
.wc-block-components-quantity-selector__button {
  background: var(--color-bg) !important;
  font-weight: 900 !important;
  color: var(--color-text) !important;
  border: none !important;
}
.wc-block-components-quantity-selector__button:hover {
  background: var(--color-border) !important;
}
.wc-block-components-quantity-selector__input {
  font-weight: 800 !important;
  font-family: var(--font-main) !important;
}

/* Bouton supprimer */
.wc-block-cart-item__remove-link {
  color: var(--color-muted) !important;
  font-size: 0.85rem !important;
}

/* Totaux */
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper .wc-block-components-totals-item__label {
  font-weight: 800 !important;
  font-family: var(--font-main) !important;
}
.wc-block-components-totals-item__value {
  font-weight: 900 !important;
  font-family: var(--font-main) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

/* Bloc totaux — background */
.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart__sidebar .wc-block-components-panel {
  background: var(--color-surface) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-card) !important;
}

/* Bouton "Valider la commande" — Blocks */
.wc-block-cart__submit-button .wc-block-components-button,
.wc-block-cart__submit-button a,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wc-block-cart .wc-block-components-button:not(.is-link) {
  background: var(--color-red) !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  font-family: var(--font-main) !important;
  padding: 15px 24px !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
  border: none !important;
  color: #fff !important;
  transition: background 0.18s, transform 0.12s !important;
  width: 100% !important;
  text-align: center !important;
}
.wc-block-cart__submit-button .wc-block-components-button:active,
.wc-block-components-checkout-place-order-button:active {
  transform: scale(0.97) !important;
  background: var(--color-red-dark) !important;
}

/* Codes promo */
.wc-block-components-totals-coupon__form .wc-block-components-text-input input {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--color-border) !important;
  font-family: var(--font-main) !important;
  padding: 11px !important;
}
.wc-block-components-totals-coupon__button {
  background: var(--color-black) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 800 !important;
  font-family: var(--font-main) !important;
  color: #fff !important;
}

/* Livraison gratuite */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
  color: var(--color-success) !important;
  font-weight: 800 !important;
}

/* Panier vide */
.wc-block-cart .wc-block-cart__empty-cart__title,
.cart-empty {
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  color: var(--color-text) !important;
  font-family: var(--font-main) !important;
}

/* ── Panier Classic (shortcode) ── */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--color-red) !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  padding: 14px 24px !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
}
.woocommerce .cart_item td { padding: 10px 8px !important; }
.woocommerce-cart-form { padding: 0 12px !important; }

/* ===================================================
   PAGE PRODUIT UNIQUE
=================================================== */
.woocommerce div.product { padding: 0 !important; }
.woocommerce div.product .woocommerce-product-gallery { margin-bottom: 0 !important; }
.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: 0 !important;
  max-height: 280px !important;
  width: 100% !important;
  object-fit: cover !important;
}
.woocommerce div.product .summary { padding: 16px !important; }
.woocommerce div.product .product_title {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: var(--color-text) !important;
}
.woocommerce div.product p.price {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: var(--color-red) !important;
}
.woocommerce div.product .single_add_to_cart_button {
  background: var(--color-red) !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  padding: 14px 24px !important;
  width: 100% !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
  border: none !important;
  color: #fff !important;
  transition: background 0.18s, transform 0.12s !important;
}
.woocommerce div.product .single_add_to_cart_button:active { transform: scale(0.97) !important; }

/* Onglets produit (Avis, Description) */
.woocommerce div.product .woocommerce-tabs {
  padding: 0 16px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
  border-bottom: 2px solid var(--color-border) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  padding: 10px 16px !important;
  color: var(--color-muted) !important;
  font-family: var(--font-main) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom: 3px solid var(--color-red) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-red) !important;
}

/* Quantité sur page produit */
.woocommerce div.product .quantity .qty {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--color-border) !important;
  font-weight: 800 !important;
  font-family: var(--font-main) !important;
  padding: 10px !important;
  width: 70px !important;
}

/* Loupe / zoom sur image produit */
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  background: var(--color-surface) !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-card) !important;
}

/* Rupture de stock */
.woocommerce div.product .stock.out-of-stock {
  color: var(--color-red) !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
}
.woocommerce div.product .stock.in-stock {
  color: var(--color-success) !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
}

/* ===================================================
   MESSAGES WOOCOMMERCE
=================================================== */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-success {
  border-top-color: var(--color-red) !important;
  border-radius: var(--radius-md) !important;
  margin: 12px !important;
  font-family: var(--font-main) !important;
}
.woocommerce-message a.button {
  background: var(--color-red) !important;
  border-radius: var(--radius-lg) !important;
  color: #fff !important;
}
.woocommerce-error,
.wc-block-components-notice-banner.is-error {
  border-top-color: #c0392b !important;
  border-radius: var(--radius-md) !important;
  margin: 12px !important;
}

/* ===================================================
   CHECKOUT — Classic + Blocks
=================================================== */

/* ── Checkout Blocks ── */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input,
.wc-block-checkout select {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--color-border) !important;
  padding: 12px !important;
  font-size: 1rem !important;
  font-family: var(--font-main) !important;
  transition: border-color 0.18s !important;
}
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input:focus {
  border-color: var(--color-red) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px var(--color-red) !important;
}
.wc-block-checkout .wc-block-components-text-input label {
  font-weight: 700 !important;
  font-family: var(--font-main) !important;
}

/* Titres de section checkout */
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-title,
.wc-block-checkout h2 {
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  color: var(--color-text) !important;
  font-family: var(--font-main) !important;
}

/* Bouton "Passer la commande" — Blocks */
.wc-block-components-checkout-place-order-button {
  background: var(--color-red) !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  font-family: var(--font-main) !important;
  padding: 16px 24px !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
  border: none !important;
  color: #fff !important;
  width: 100% !important;
}

/* Méthodes de paiement */
.wc-block-checkout .wc-block-components-radio-control__option {
  background: var(--color-surface) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px !important;
  margin-bottom: 8px !important;
}
.wc-block-checkout .wc-block-components-radio-control__option--checked {
  border-color: var(--color-red) !important;
  background: #fff5f5 !important;
}

/* Résumé commande checkout */
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  font-family: var(--font-main) !important;
}
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-product-name {
  font-weight: 800 !important;
  font-family: var(--font-main) !important;
}

/* ── Checkout Classic ── */
.woocommerce-checkout #payment #place_order {
  background: var(--color-red) !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
  border: none !important;
  padding: 15px !important;
  width: 100% !important;
  font-family: var(--font-main) !important;
  color: #fff !important;
}
.woocommerce form .form-row label {
  font-weight: 700 !important;
  font-size: 0.83rem !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--color-border) !important;
  padding: 11px !important;
  font-size: 1rem !important;
  font-family: var(--font-main) !important;
  transition: border-color 0.18s !important;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--color-red) !important;
  outline: none !important;
}

/* ===================================================
   TOUS LES BOUTONS WOOCOMMERCE — Uniformiser
=================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.wc-block-components-button:not(.is-link):not(.wc-block-components-quantity-selector__button) {
  background: var(--color-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 900 !important;
  font-family: var(--font-main) !important;
  font-size: 0.92rem !important;
  padding: 12px 20px !important;
  transition: background 0.18s, transform 0.12s !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.woocommerce a.button:active,
.woocommerce button.button:active,
.wc-block-components-button:not(.is-link):active {
  transform: scale(0.97) !important;
  background: var(--color-red-dark) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--color-red) !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
}

/* Bouton "Retour à la boutique" */
.wc-block-cart .wc-block-cart__submit-container a.wc-block-components-button.outlined,
.woocommerce .return-to-shop a {
  background: transparent !important;
  color: var(--color-red) !important;
  border: 2px solid var(--color-red) !important;
}

/* Bloc point de vente dans le checkout */
.le290-selected-location-recap {
  background: var(--color-red);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
}
.le290-selected-location-recap svg { color: var(--color-yellow); width: 18px; height: 18px; flex-shrink: 0; }
.le290-selected-location-recap .change-loc {
  margin-left: auto;
  color: var(--color-yellow);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ===================================================
   SCROLL BARS & MISC
=================================================== */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
:focus-visible { outline: 2.5px solid var(--color-red); outline-offset: 2px; }

/* ===================================================
   SPINNER AJAX
=================================================== */
.le290-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================
   PAGES CLASSIQUES (Mon compte, CGV, etc.)
=================================================== */
.le290-page-content {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
}
.le290-page-content h1,
.le290-page-content h2,
.le290-page-content h3 {
  margin-bottom: 12px;
}
.le290-page-content p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===================================================
   MON COMPTE — Formulaires connexion / inscription
=================================================== */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.woocommerce-account h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--color-text);
}
.woocommerce-account .woocommerce-form label {
  display: block;
  font-weight: 700;
  font-size: 0.83rem;
  margin-bottom: 5px;
  color: var(--color-text);
}
.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.18s;
  margin-bottom: 12px;
}
.woocommerce-account .woocommerce-form input:focus {
  border-color: var(--color-red);
  outline: none;
}
.woocommerce-account .woocommerce-form .woocommerce-button,
.woocommerce-account .woocommerce-form button[type="submit"] {
  background: var(--color-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.32) !important;
  transition: background 0.18s, transform 0.12s !important;
  font-family: var(--font-main) !important;
}
.woocommerce-account .woocommerce-form button:active {
  transform: scale(0.97) !important;
}

/* Checkbox "Se souvenir de moi" */
.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lien mot de passe oublié */
.woocommerce-account .woocommerce-LostPassword a {
  color: var(--color-red);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
}

/* Layout 2 colonnes (login + register) sur mobile → colonne unique */
.woocommerce-account .u-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Mon compte — Dashboard navigation */
.woocommerce-MyAccount-navigation {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.woocommerce-MyAccount-navigation ul li:last-child a {
  border-bottom: none;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--color-red);
  color: #fff;
}
.woocommerce-MyAccount-navigation ul li a:active {
  background: #f5f5f5;
}

/* Mon compte — contenu */
.woocommerce-MyAccount-content {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  line-height: 1.6;
}
.woocommerce-MyAccount-content a {
  color: var(--color-red);
  font-weight: 700;
}

/* ===================================================
   RESPONSIVE — très petits écrans
=================================================== */
@media (max-width: 340px) {
  .woocommerce li.product img,
  ul.products li.product img,
  .woocommerce li.product .woocommerce-loop-product__link {
    width: 75px !important;
    height: 75px !important;
  }
}
/* ===================================================
   PROFILS D'OPTIONS PRODUIT — Le 290 v3
   Sandwich / Croque / Hummer / Finger food & Boisson
=================================================== */

/* Conteneur principal */
.le290-product-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 18px;
}

/* Groupe d'option */
.le290-opt-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Label du groupe */
.le290-opt-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.le290-required {
  color: var(--color-red);
  font-weight: 900;
}
.le290-opt-hint {
  font-weight: 600;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Liste horizontale de chips */
.le290-opt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Chip d'option */
.le290-opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--color-surface);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.le290-opt-chip:active {
  transform: scale(0.97);
}
.le290-opt-chip input[type="radio"],
.le290-opt-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Chip sélectionné */
.le290-opt-chip:has(input:checked) {
  border-color: var(--color-red);
  background: #fff5f5;
  color: var(--color-red);
}
.le290-opt-chip:has(input:checked) .le290-opt-price {
  color: var(--color-red);
}

/* Chip désactivé (condiment max atteint) */
.le290-opt-chip:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Prix dans une chip */
.le290-opt-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: #888;
  white-space: nowrap;
  border-left: 1px solid #ddd;
  padding-left: 7px;
  margin-left: 2px;
}

/* Chip payante — légère teinte jaune */
.le290-opt-paid:not(:has(input:checked)) {
  background: #FFFBF0;
  border-color: #E8C84A;
}
.le290-opt-paid:not(:has(input:checked)) .le290-opt-price {
  color: #B8860B;
  font-weight: 900;
}

/* Message d'erreur validation */
.le290-opt-error {
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.82rem;
  margin: 2px 0 0;
  padding: 7px 12px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1.5px solid var(--color-red);
}

/* Cacher l'ancienne structure brute si elle reste */
.sf-modal-form .le290-options-wrap,
.le290-options-wrap { display: none; }

/* ── Frites / Finger food : liste verticale (layout Image 3) ── */
.le290-opt-list--column {
  flex-direction: column;
  gap: 6px;
}
.le290-opt-list--column .le290-opt-chip {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  justify-content: space-between;
}
.le290-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.le290-opt-name-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}
.le290-opt-list--column .le290-opt-price {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
  font-size: 0.9rem;
  font-weight: 900;
  color: #888;
}
.le290-opt-list--column .le290-opt-paid:not(:has(input:checked)) .le290-opt-price {
  color: #B8860B;
}
/* Chip sélectionnée dans liste colonne */
.le290-opt-list--column .le290-opt-chip:has(input:checked) .le290-opt-name-text {
  color: var(--color-red);
}

/* ── Garantir visibilité des prix et options dans la modale ── */
.sf-modal-form .le290-product-options,
.le290-product-options {
  display: flex !important;
  flex-direction: column;
}
.sf-modal-form .le290-opt-price,
.le290-opt-price {
  display: inline-block !important;
  visibility: visible !important;
}
.sf-modal-form .le290-opt-group,
.le290-opt-group {
  display: flex !important;
  flex-direction: column;
}
.sf-modal-form .le290-opt-list--column .le290-opt-chip,
.le290-opt-list--column .le290-opt-chip {
  display: inline-flex !important;
  width: 100% !important;
  justify-content: space-between !important;
}
.sf-modal-form .le290-opt-row,
.le290-opt-row {
  display: flex !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* ── Panier vide ── */
.le290-empty-cart {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}
.le290-empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.le290-empty-cart h2 {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.le290-empty-cart p {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}
.le290-empty-cart-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}
.le290-empty-cart-btn:hover {
    background: #a93226;
    color: #fff;
}
/* ── Fond doodle fast-food ── */
body {
    background-color: #ffffff;
    background-repeat: repeat;
    background-size: 250px 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Crect width='500' height='500' fill='%23ffffff'/%3E%3Cg fill='none' stroke='%23e0e0e0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(20,15)'%3E%3Cpath d='M5,22 Q5,6 28,6 Q50,6 50,22 Z'/%3E%3Cpath d='M8,22 Q12,18 18,22 Q24,18 28,22 Q34,18 38,22 Q44,18 47,22'/%3E%3Cline x1='7' y1='25' x2='48' y2='25'/%3E%3Cpath d='M6,28 Q10,32 16,28 Q22,32 28,28 Q34,32 40,28 Q46,32 49,28'/%3E%3Crect x='6' y='31' width='43' height='4' rx='1'/%3E%3Cline x1='7' y1='38' x2='48' y2='38'/%3E%3Cpath d='M5,44 L50,44 L48,48 L7,48 Z'/%3E%3C/g%3E%3Cg transform='translate(130,10)'%3E%3Cpath d='M8,50 L2,22 L48,22 L42,50 Z'/%3E%3Cpath d='M2,22 L48,22' stroke-width='2.5'/%3E%3Cline x1='10' y1='22' x2='7' y2='5'/%3E%3Cline x1='16' y1='22' x2='14' y2='2'/%3E%3Cline x1='22' y1='22' x2='20' y2='4'/%3E%3Cline x1='28' y1='22' x2='30' y2='1'/%3E%3Cline x1='34' y1='22' x2='36' y2='3'/%3E%3Cline x1='40' y1='22' x2='42' y2='6'/%3E%3Cline x1='13' y1='22' x2='11' y2='8'/%3E%3Cline x1='25' y1='22' x2='26' y2='6'/%3E%3Cline x1='37' y1='22' x2='39' y2='4'/%3E%3C/g%3E%3Cg transform='translate(260,8)'%3E%3Cpath d='M10,15 L14,52 L40,52 L44,15 Z'/%3E%3Cpath d='M8,15 L46,15' stroke-width='2.2'/%3E%3Cpath d='M8,12 L46,12' stroke-width='2.2'/%3E%3Cline x1='30' y1='12' x2='38' y2='2'/%3E%3Ccircle cx='38' cy='2' r='1'/%3E%3Ccircle cx='27' cy='38' r='4'/%3E%3Cpath d='M25,36 L29,40 M29,36 L25,40'/%3E%3C/g%3E%3Cg transform='translate(390,20)'%3E%3Cpath d='M20,5 Q5,8 5,20 Q5,30 15,32 Q12,38 18,38 Q20,42 26,38 Q32,40 34,32 Q42,28 42,18 Q42,8 30,5 Q25,3 20,5 Z'/%3E%3Cpath d='M22,34 L20,50'/%3E%3Cpath d='M17,50 L25,50'/%3E%3Ccircle cx='15' cy='15' r='1.5'/%3E%3Ccircle cx='28' cy='12' r='1.5'/%3E%3Ccircle cx='22' cy='22' r='1.5'/%3E%3C/g%3E%3Cg transform='translate(40,110)'%3E%3Crect x='12' y='8' width='12' height='6' rx='2'/%3E%3Cpath d='M16,8 L16,3 L20,3 L20,8'/%3E%3Cpath d='M10,14 L10,42 Q10,46 14,46 L22,46 Q26,46 26,42 L26,14 Z'/%3E%3Cpath d='M10,24 L26,24'/%3E%3Cpath d='M14,30 L22,30'/%3E%3Cpath d='M14,34 L22,34'/%3E%3C/g%3E%3Cg transform='translate(140,105)'%3E%3Cellipse cx='20' cy='20' rx='18' ry='14'/%3E%3Cellipse cx='20' cy='20' rx='10' ry='8'/%3E%3Cellipse cx='48' cy='24' rx='14' ry='11'/%3E%3Cellipse cx='48' cy='24' rx='7' ry='5'/%3E%3Cellipse cx='35' cy='35' rx='12' ry='10'/%3E%3Cellipse cx='35' cy='35' rx='6' ry='4'/%3E%3C/g%3E%3Cg transform='translate(275,95)'%3E%3Cpath d='M12,18 L16,52 L36,52 L40,18 Z'/%3E%3Cline x1='10' y1='18' x2='42' y2='18'/%3E%3Ccircle cx='26' cy='10' r='8'/%3E%3Ccircle cx='20' cy='6' r='5'/%3E%3Ccircle cx='32' cy='6' r='5'/%3E%3Cline x1='28' y1='2' x2='32' y2='-4'/%3E%3Ccircle cx='32' cy='-5' r='2'/%3E%3Cpath d='M18,30 Q26,26 34,30'/%3E%3Cpath d='M19,38 Q26,34 33,38'/%3E%3C/g%3E%3Cg transform='translate(380,100)'%3E%3Cpath d='M5,20 L5,48 L45,48 L45,20 L35,10 L15,10 Z'/%3E%3Cline x1='5' y1='20' x2='45' y2='20'/%3E%3Cellipse cx='16' cy='30' rx='6' ry='4'/%3E%3Cellipse cx='32' cy='28' rx='6' ry='4'/%3E%3Cellipse cx='24' cy='36' rx='6' ry='4'/%3E%3Cellipse cx='15' cy='40' rx='5' ry='3'/%3E%3C/g%3E%3Cg transform='translate(15,220)'%3E%3Cpath d='M28,5 L5,50 L50,50 Z'/%3E%3Cpath d='M12,40 Q28,33 45,40'/%3E%3Ccircle cx='22' cy='28' r='3'/%3E%3Ccircle cx='32' cy='35' r='3'/%3E%3Ccircle cx='18' cy='40' r='2.5'/%3E%3Ccircle cx='38' cy='42' r='2.5'/%3E%3C/g%3E%3Cg transform='translate(120,215)'%3E%3Cpath d='M5,40 L20,5 L50,5 L35,40 Z'/%3E%3Cpath d='M18,10 Q28,15 33,10'/%3E%3Cpath d='M14,18 Q24,22 30,18'/%3E%3Ccircle cx='22' cy='26' r='2'/%3E%3Ccircle cx='28' cy='22' r='1.5'/%3E%3Cpath d='M10,32 Q22,36 32,32'/%3E%3C/g%3E%3Cg transform='translate(245,200)'%3E%3Cpath d='M5,18 Q5,5 30,5 Q55,5 55,18 Z'/%3E%3Cpath d='M5,18 L55,18'/%3E%3Cpath d='M6,21 L3,25 L10,24 L7,28 L14,27 L11,31 L55,31 L55,21 Z'/%3E%3Crect x='6' y='31' width='49' height='5' rx='1'/%3E%3Cpath d='M6,36 L56,36'/%3E%3Cpath d='M7,39 Q8,42 12,39 Q16,42 20,39 Q24,42 28,39 Q32,42 36,39 Q40,42 44,39 Q48,42 53,39'/%3E%3Crect x='6' y='42' width='49' height='4' rx='1'/%3E%3Cpath d='M5,46 L55,46 L53,50 L7,50 Z'/%3E%3C/g%3E%3Cg transform='translate(390,210)'%3E%3Crect x='8' y='8' width='30' height='42' rx='6'/%3E%3Cline x1='8' y1='16' x2='38' y2='16'/%3E%3Cline x1='8' y1='42' x2='38' y2='42'/%3E%3Cellipse cx='23' cy='5' rx='10' ry='3'/%3E%3Cpath d='M18,5 L20,2 L26,2 L28,5'/%3E%3Cpath d='M14,26 Q23,22 32,26'/%3E%3Cpath d='M14,32 Q23,28 32,32'/%3E%3C/g%3E%3Cg transform='translate(30,340)'%3E%3Cpath d='M5,22 Q5,10 18,10 L45,10 Q58,10 58,22 Q58,34 45,34 L18,34 Q5,34 5,22 Z'/%3E%3Cline x1='8' y1='22' x2='55' y2='22'/%3E%3Cpath d='M12,16 Q22,22 32,16 Q42,22 52,16' stroke-dasharray='3,2'/%3E%3C/g%3E%3Cg transform='translate(155,330)'%3E%3Cpath d='M5,40 L20,8 L30,40 Z'/%3E%3Cpath d='M22,40 L37,12 L47,40 Z'/%3E%3Cpath d='M15,35 Q22,30 30,35'/%3E%3Ccircle cx='20' cy='28' r='1.5'/%3E%3Ccircle cx='35' cy='30' r='1.5'/%3E%3C/g%3E%3Cg transform='translate(270,335)'%3E%3Crect x='5' y='15' width='40' height='25' rx='5'/%3E%3Cpath d='M15,15 Q25,5 35,15'/%3E%3Ccircle cx='25' cy='27' r='5'/%3E%3Ccircle cx='25' cy='27' r='2'/%3E%3C/g%3E%3Cg transform='translate(385,330)'%3E%3Ccircle cx='22' cy='22' r='20'/%3E%3Ccircle cx='14' cy='14' r='2.5' fill='%23e0e0e0'/%3E%3Ccircle cx='28' cy='12' r='2' fill='%23e0e0e0'/%3E%3Ccircle cx='18' cy='26' r='2.5' fill='%23e0e0e0'/%3E%3Ccircle cx='30' cy='28' r='2' fill='%23e0e0e0'/%3E%3Ccircle cx='22' cy='18' r='1.5' fill='%23e0e0e0'/%3E%3Ccircle cx='26' cy='34' r='2' fill='%23e0e0e0'/%3E%3C/g%3E%3Ccircle cx='95' cy='85' r='2'/%3E%3Ccircle cx='220' cy='75' r='1.8'/%3E%3Ccircle cx='360' cy='80' r='2'/%3E%3Ccircle cx='460' cy='75' r='1.5'/%3E%3Ccircle cx='80' cy='290' r='2'/%3E%3Ccircle cx='230' cy='300' r='1.5'/%3E%3Ccircle cx='460' cy='290' r='2'/%3E%3Ccircle cx='110' cy='400' r='1.8'/%3E%3Ccircle cx='340' cy='400' r='2'/%3E%3Ccircle cx='450' cy='400' r='1.5'/%3E%3Cg transform='translate(100,175)'%3E%3Cpath d='M6,15 Q6,8 10,5 Q8,10 12,8 Q10,12 14,15 Q10,16 6,15 Z'/%3E%3C/g%3E%3Cg transform='translate(200,165)'%3E%3Cline x1='5' y1='0' x2='5' y2='10'/%3E%3Cline x1='0' y1='5' x2='10' y2='5'/%3E%3Cline x1='2' y1='2' x2='8' y2='8'/%3E%3Cline x1='8' y1='2' x2='2' y2='8'/%3E%3C/g%3E%3Cg transform='translate(350,300)'%3E%3Cline x1='4' y1='0' x2='4' y2='8'/%3E%3Cline x1='0' y1='4' x2='8' y2='4'/%3E%3C/g%3E%3Cg transform='translate(330,165)'%3E%3Cpath d='M4,10 Q4,5 7,3 Q5,7 9,5 Q7,8 10,10 Q7,11 4,10 Z'/%3E%3C/g%3E%3Cg transform='translate(60,400)'%3E%3Cpath d='M4,10 Q4,5 7,3 Q5,7 9,5 Q7,8 10,10 Q7,11 4,10 Z'/%3E%3C/g%3E%3Cg transform='translate(185,410)'%3E%3Cpath d='M6,4 Q6,1 9,1 Q12,1 12,4 Q12,1 15,1 Q18,1 18,4 Q18,8 12,12 Q6,8 6,4 Z'/%3E%3C/g%3E%3Cpath d='M420,380 L425,370 L430,380 L435,370 L440,380'/%3E%3Ccircle cx='310' cy='420' r='6' stroke-dasharray='3,3'/%3E%3Ccircle cx='75' cy='460' r='5' stroke-dasharray='2,3'/%3E%3C/g%3E%3C/svg%3E");
}
/* ── Masquer "(vous n'êtes pas... Déconnexion)" ── */
.woocommerce-MyAccount-content > p:first-child a[href*="logout"],
.woocommerce-MyAccount-content > p:first-child a[href*="logout"] ~ * {
    display: none;
}

/* ── Boutons sélection restaurant header ── */
.header-locations {
    display: flex;
    gap: 6px;
    align-items: center;
}
.header-loc-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.20);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.header-loc-pill svg {
    width: 12px;
    height: 12px;
    color: var(--color-yellow);
}
.header-loc-pill.active {
    background: #fff;
    color: var(--color-red);
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-loc-pill.active svg {
    color: var(--color-red);
}
.header-loc-pill.closed {
    opacity: 0.55;
}
.header-loc-pill:not(.active):hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}
.pill-closed {
    font-size: 7px;
    background: rgba(0,0,0,0.35);
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
}
.header-loc-pill.active .pill-closed {
    background: var(--color-red);
    color: #fff;
}

/* ── Cacher le bloc info header ── */
.header-info {
    display: none !important;
}

/* ── Logo header ── */
#site-header .site-logo img,
#site-header .custom-logo {
    border-radius: 0;
}

/* ===================================================
   RESPONSIVE TABLETTES — iPad et écrans > 600px
=================================================== */
@media (min-width: 601px) {
  .site-main {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Hero banner pleine largeur */
  .home-hero {
    max-width: 100%;
  }

  /* Catégories et produits centrés mais plus larges */
  .sf-categories-list,
  .sf-products-grid,
  .woocommerce .products,
  ul.products {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Checkout et panier plus larges */
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout,
  .woocommerce-checkout,
  .woocommerce-cart {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .sf-products-grid,
  .woocommerce .products,
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .sf-products-grid,
  .woocommerce .products,
  ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .sf-categories-list,
  .sf-products-grid {
    max-width: 1100px;
  }
}