/* ===== PAGE LA CARTE — Styles spécifiques (complètent index.css) ===== */

/* Menu "La carte" actif dans le header */
.header__nav-link--active {
  color: var(--blue-secondary) !important;
}

.header__nav-link--active::after {
  width: 100%;
}

/* Hero : titre centré "LA CARTE", image dédiée, hauteur réduite d’environ 30 % */
.hero--carte {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../assets/images/hero/hero_carte.png');
  aspect-ratio: 1024 / 287;
  max-height: 406px;
}

/* Ombre dégradée pour liser le menu et le titre */
.hero--carte::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}

.carte-hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: #000;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 16px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(255, 255, 255, 0.8);
  margin: 0;
  pointer-events: none;
}

/* Barre de navigation catégories (sous le hero) — fond blanc, une seule ligne, toujours visible au scroll */
.carte-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.carte-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.carte-nav__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 20px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carte-nav__links::-webkit-scrollbar {
  display: none;
}

.carte-nav__link {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-title);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.carte-nav__link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--grey-body);
}

.carte-nav__link.is-active {
  background: var(--blue-main);
  color: var(--grey-title);
}

.carte-nav__panier {
  flex-shrink: 0;
  border-radius: 999px;
}

/* Sections de liste (NOUVEAUTÉS, BOISSONS, etc.) */
.carte-section {
  padding: 48px 0 56px;
  border-bottom: 1px solid #e8e8e8;
}

.carte-section:last-of-type {
  border-bottom: none;
}

.carte-section__title {
  margin-bottom: 28px;
}

/* Grille 4 colonnes comme sur la maquette (même design que TABLEAU DES DÉPARTS / coups de cœur) */
.carte-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.carte-section__grid .product-card {
  box-shadow: none;
  border-radius: 0;
}

.carte-section__grid .product-card:hover {
  box-shadow: none;
}

.carte-section__grid .product-card__img {
  border-radius: var(--radius);
  box-shadow: none;
}

.carte-section__grid .product-card__body {
  padding: 14px 0 18px;
}

/* Responsive page carte */
@media (max-width: 1024px) {
  .hero--carte {
    aspect-ratio: auto;
    height: 35vh;
    min-height: 224px;
  }

  .carte-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .carte-nav__inner {
    gap: 12px;
  }

  .carte-nav__links {
    gap: 0 12px;
  }
}

@media (max-width: 768px) {
  .hero--carte {
    aspect-ratio: auto;
    height: 28vh;
    min-height: 175px;
  }

  .carte-hero__title {
    font-size: 28px;
  }

  .carte-nav {
    padding: 12px 0;
  }

  .carte-nav__inner {
    gap: 8px;
  }

  .carte-nav__links {
    gap: 0 8px;
    /* Indice visuel du scroll horizontal sur mobile */
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 0;
  }

  .carte-nav__link {
    font-size: 13px;
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .carte-nav__panier {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .carte-section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .carte-section {
    padding: 28px 0 36px;
  }

  .carte-section__title {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero--carte {
    aspect-ratio: auto;
    height: 25vh;
    min-height: 140px;
  }

  .carte-hero__title {
    font-size: 24px;
  }

  .carte-nav {
    padding: 10px 0;
  }

  .carte-nav .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .carte-nav__link {
    font-size: 12px;
    padding: 10px 12px;
  }

  .carte-section {
    padding: 24px 0 32px;
  }

  .carte-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .carte-section__title {
    margin-bottom: 16px;
  }
}

/* ===== POPUP CHOIX PLAT (maquette) ===== */
.popup-plat {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-plat.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-plat__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-plat__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.popup-plat.is-open .popup-plat__box {
  transform: scale(1);
}

.popup-plat__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}

.popup-plat__close:hover {
  background: var(--white);
  color: var(--grey-body);
}

.popup-plat__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

.popup-plat__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-plat__content {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.popup-plat__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--grey-title);
  margin: 0 0 8px;
  line-height: 1.3;
}

.popup-plat__desc {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 12px;
  line-height: 1.5;
}

.popup-plat__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-plat__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-secondary);
}

.popup-plat__icons {
  display: flex;
  gap: 8px;
  font-size: 1rem;
}

.popup-plat__icons i {
  color: var(--grey-title);
}

.popup-plat__icons .icon--red { color: #c0392b; }
.popup-plat__icons .icon--orange { color: #e67e22; }
.popup-plat__icons .icon--blue { color: var(--blue-secondary); }

.popup-plat__supplements {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.popup-plat__supplements-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-title);
  margin: 0 0 12px;
}

.popup-plat__supplement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--grey-body);
}

.popup-plat__supplement:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

.popup-plat__supplement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-secondary);
  flex-shrink: 0;
}

.popup-plat__supplement-label {
  flex: 1;
}

.popup-plat__supplement-price {
  font-weight: 500;
  color: var(--blue-secondary);
}

.popup-plat__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.popup-plat__qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.popup-plat__qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--grey-title);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.popup-plat__qty-btn:hover {
  background: var(--blue-main);
  border-color: var(--blue-secondary);
}

.popup-plat__qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
}

.popup-plat__add {
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  background: var(--blue-main);
  color: var(--grey-title);
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.popup-plat__add:hover {
  background: var(--blue-secondary);
  color: var(--grey-body);
}

/* ===== POPUP CHOIX LIVRAISON / CLICK & COLLECT ===== */
.popup-choix {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-choix.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-choix__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-choix__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.popup-choix.is-open .popup-choix__box {
  transform: scale(1);
}

.popup-choix__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.popup-choix__close:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-choix__content {
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popup-choix__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.2s;
}

.popup-choix__option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.popup-choix__icon {
  font-size: 2rem;
  color: var(--grey-title);
}

.popup-choix__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-title);
  letter-spacing: 0.02em;
}

.popup-choix__desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
}

.popup-choix__separator {
  display: block;
  height: 1px;
  background: #e0e0e0;
  margin: 0 8px;
}

/* ===== POPUP LIVRAISON (adresse + carte) ===== */
.popup-livraison {
  position: fixed;
  inset: 0;
  z-index: 212;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-livraison.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-livraison__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-livraison__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease, max-width 0.35s ease;
}

.popup-livraison.is-open .popup-livraison__box {
  transform: scale(1);
}

/* État élargi avec carte */
.popup-livraison.has-map .popup-livraison__box {
  max-width: min(90vw, 720px);
}

/* Frise décorative en haut (comme page d'accueil) */
.popup-livraison__frise {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.popup-livraison__frise img {
  width: 100%;
  height: auto;
  display: block;
}

/* En-tête : flèche retour (gauche) + fermer (droite), posé sur la frise */
.popup-livraison__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  z-index: 3;
  pointer-events: none;
}

.popup-livraison__header .popup-livraison__back,
.popup-livraison__header .popup-livraison__close {
  pointer-events: auto;
}

.popup-livraison__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.popup-livraison__back:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--grey-body);
}

.popup-livraison__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.popup-livraison__close:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-livraison__main {
  display: flex;
  min-height: 360px;
}

/* Centrer le formulaire quand la carte n'est pas affichée */
.popup-livraison:not(.has-map) .popup-livraison__main {
  justify-content: center;
}

/* Avec carte : carte à gauche, formulaire à droite */
.popup-livraison.has-map .popup-livraison__map-wrap {
  order: 1;
}

.popup-livraison.has-map .popup-livraison__form {
  order: 2;
  border-left: 1px solid #eee;
}

.popup-livraison__form {
  padding: 24px 28px 28px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.popup-livraison__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--grey-title);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.popup-livraison__form .popup-livraison__field,
.popup-livraison__form .popup-livraison__loader,
.popup-livraison__form .popup-livraison__error,
.popup-livraison__form .popup-livraison__btn-position,
.popup-livraison__form .popup-livraison__ou,
.popup-livraison__form .popup-livraison__link-id {
  width: 100%;
  max-width: 320px;
}

.popup-livraison__btn-position {
  font-weight: 600;
}

.popup-livraison__field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--white);
}

.popup-livraison__field-icon {
  color: #888;
  font-size: 1rem;
  flex-shrink: 0;
}

.popup-livraison__input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--grey-title);
  outline: none;
}

.popup-livraison__input::placeholder {
  color: #aaa;
}

/* Loader pendant le géocodage (masqué par défaut, affiché uniquement pendant la recherche) */
.popup-livraison__loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 24px;
}

.popup-livraison__loader.is-visible {
  display: flex;
}

.popup-livraison__loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--blue-secondary);
  border-radius: 50%;
  animation: popup-livraison-spin 0.7s linear infinite;
}

@keyframes popup-livraison-spin {
  to { transform: rotate(360deg); }
}

.popup-livraison__loader-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-title);
}

.popup-livraison__error {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c0392b;
  width: 100%;
  max-width: 320px;
}

.popup-livraison__btn-position {
  width: 100%;
  padding: 14px 20px;
  background: var(--grey-title, #535353);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-livraison__btn-position:hover {
  background: #444;
}

.popup-livraison__btn-position:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.popup-livraison__ou {
  display: block;
  text-align: center;
  margin: 20px 0 16px;
  font-size: 0.9rem;
  color: #999;
  position: relative;
}

.popup-livraison__ou::before,
.popup-livraison__ou::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e0e0e0;
}

.popup-livraison__ou::before {
  left: 0;
}

.popup-livraison__ou::after {
  right: 0;
}

.popup-livraison__link-id {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.popup-livraison__link-id:hover {
  color: var(--blue-main);
}

.popup-livraison__map-wrap {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 360px;
}

.popup-livraison.has-map .popup-livraison__map-wrap {
  display: block;
}

.popup-livraison__map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #e8e8e8;
}

@media (max-width: 640px) {
  .popup-livraison.has-map .popup-livraison__main {
    flex-direction: column;
  }

  .popup-livraison.has-map .popup-livraison__form {
    order: 1;
    border-left: none;
    border-bottom: 1px solid #eee;
    max-width: none;
  }

  .popup-livraison.has-map .popup-livraison__map-wrap {
    order: 2;
  }

  .popup-livraison__map-wrap {
    min-height: 260px;
  }

  .popup-livraison__map {
    min-height: 260px;
  }
}

/* ===== POPUP CLICK & COLLECT — Choix Minigare (même logique que LIVRAISON) ===== */
.popup-minigare {
  position: fixed;
  inset: 0;
  z-index: 212;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-minigare.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-minigare__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-minigare__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.popup-minigare.is-open .popup-minigare__box {
  transform: scale(1);
}

/* Frise décorative (auvents bleu clair / blanc comme maquette) */
.popup-minigare__frise {
  display: block;
  position: relative;
  height: 56px;
  background: linear-gradient(135deg, #b8d4e8 0%, #e8f2f8 50%, var(--white) 100%);
  border-radius: 0 0 24px 24px;
}

.popup-minigare__frise-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.popup-minigare__frise-shape--1 {
  width: 80px;
  height: 40px;
  top: 8px;
  left: 20%;
  border-radius: 40px 40px 0 0;
}

.popup-minigare__frise-shape--2 {
  width: 100px;
  height: 44px;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50px 50px 0 0;
  background: #a8cce0;
}

.popup-minigare__frise-shape--3 {
  width: 70px;
  height: 36px;
  top: 10px;
  right: 18%;
  border-radius: 35px 35px 0 0;
}

.popup-minigare__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  z-index: 3;
  pointer-events: none;
}

.popup-minigare__header .popup-minigare__back,
.popup-minigare__header .popup-minigare__close {
  pointer-events: auto;
}

.popup-minigare__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.popup-minigare__back:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--grey-body);
}

.popup-minigare__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.popup-minigare__close:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-minigare__main {
  padding: 60px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.popup-minigare__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--grey-title);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  line-height: 1.3;
}

.popup-minigare__field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 20px;
  background: var(--white);
  text-align: left;
}

.popup-minigare__field-icon {
  color: #b8d4e8;
  font-size: 1rem;
  flex-shrink: 0;
}

.popup-minigare__input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--grey-title);
  outline: none;
}

.popup-minigare__input::placeholder {
  color: #aaa;
}

.popup-minigare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popup-minigare__item {
  margin: 0;
  padding: 0;
}

.popup-minigare__item-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}

.popup-minigare__item-btn:hover {
  background: rgba(184, 212, 232, 0.15);
}

.popup-minigare__item:last-child .popup-minigare__item-btn {
  border-bottom: none;
}

.popup-minigare__item-icon {
  color: #b8d4e8;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.popup-minigare__item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popup-minigare__item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-title);
}

.popup-minigare__item-desc {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  line-height: 1.35;
}

/* ===== POPUP MON PANIER ===== */
.popup-panier {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-panier.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-panier__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-panier__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.popup-panier.is-open .popup-panier__box {
  transform: translateY(0);
}

.popup-panier__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.popup-panier__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}

.popup-panier__close:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-panier__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--grey-title);
  margin: 0;
}

.popup-panier__profile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-title);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.popup-panier__profile:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-panier__livraison {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 20px;
  background: #f5f5f5;
  border-radius: 999px;
  margin: 16px 20px;
  font-size: 0.9rem;
  color: var(--grey-title);
}

.popup-panier__livraison-sep {
  width: 1px;
  height: 16px;
  background: #ddd;
}

.popup-panier__livraison-lieu,
.popup-panier__livraison-heure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.popup-panier__livraison-lieu i,
.popup-panier__livraison-heure i {
  color: var(--blue-secondary);
  font-size: 0.85rem;
}

.popup-panier__items {
  padding: 0 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.popup-panier__item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.popup-panier__item:last-child {
  border-bottom: none;
}

.popup-panier__item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.popup-panier__item-body {
  flex: 1;
  min-width: 0;
}

.popup-panier__item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-title);
  margin: 0 0 4px;
}

.popup-panier__item-desc {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 8px;
  line-height: 1.4;
}

.popup-panier__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.popup-panier__item-qty-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.popup-panier__item-qty {
  font-size: 0.9rem;
  color: var(--blue-secondary);
  font-weight: 500;
}

.popup-panier__item-plus {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--blue-main);
  color: var(--blue-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.popup-panier__item-plus:hover {
  background: var(--blue-secondary);
  color: var(--white);
}

.popup-panier__item-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-title);
  flex-shrink: 0;
}

.popup-panier__item-delete {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--blue-secondary);
  text-decoration: none;
}

.popup-panier__item-delete:hover {
  text-decoration: underline;
}

.popup-panier__completer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 20px;
  padding: 14px 20px;
  background: var(--blue-main);
  color: var(--grey-title);
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.popup-panier__completer:hover {
  background: var(--blue-secondary);
  color: var(--grey-body);
}

.popup-panier__suggestions {
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.popup-panier__suggestions-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-title);
  margin: 0 0 12px;
}

.popup-panier__suggestions .popup-panier__item {
  padding: 12px 0;
}

.popup-panier__resume {
  padding: 16px 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.popup-panier__resume-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--grey-title);
  padding: 4px 0;
}

.popup-panier__resume-row--total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
}

.popup-panier__commander {
  margin: 0 20px 24px;
  padding: 16px 24px;
  background: var(--blue-main);
  color: var(--grey-title);
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.popup-panier__commander:hover {
  background: var(--blue-secondary);
  color: var(--grey-body);
}

@media (min-width: 769px) {
  .popup-panier {
    align-items: center;
  }

  .popup-panier__box {
    border-radius: var(--radius);
    max-height: 85vh;
    transform: scale(0.95);
  }

  .popup-panier.is-open .popup-panier__box {
    transform: scale(1);
  }
}
