/* ============================================================
   BERLUXE — Feuille de style principale
   Thème : Blanc cassé (#FAF7F2) + Or (#B8893B)
   Approche : Mobile-First stricte
   ============================================================ */

:root {
  color-scheme: light;
  --color-background: #faf7f2;
  --color-surface: #ffffff;
  --color-text: #1f1b16;
  --color-muted: #6b6258;
  --color-brand: #b8893b;
  --color-brand-hover: #9c7230;
  --color-border: rgba(31, 27, 22, 0.1);
  --color-border-strong: rgba(31, 27, 22, 0.2);
  --color-photo-bg: #efeae2;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "DM Serif Display", Georgia, serif;
}

/* ---------- Reset de base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: calc(100% - 24px);
  max-width: 1120px;
  margin-inline: auto;
}

/* ============================================================
   1. HEADER (Mobile-first — 60px, une seule ligne)
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

main {
  padding-top: 60px;
}

.header-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-brand);
}

.brand-logo {
  max-height: 40px;
  width: auto;
}

.brand-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
}

/* Menu caché sur mobile */
.site-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-search-toggle,
.site-cart-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  border-radius: 8px;
}

.site-cart-link {
  position: relative;
}

.site-cart-icon,
.site-search-icon {
  width: 22px;
  height: 22px;
}

.site-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: bold;
}

.site-cart-count[hidden] {
  display: none;
}

/* Formulaire de recherche (popover, caché par défaut) */
.site-search-popover {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.12);
  z-index: 1010;
}

.site-search-popover.is-open {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search-popover input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.site-search-popover .button-primary {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-search-popover .button-primary:hover {
  background: var(--color-brand-hover);
}

/* ============================================================
   2. GRILLE DES PRODUITS — 2 colonnes sur mobile
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

/* ============================================================
   2.5. TIROIR DE FILTRES — Catalogue (Drawer)
   ============================================================ */

.catalogue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.catalogue-toolbar .result-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(184, 137, 59, 0.1);
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}

.btn-open-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-filters:hover {
  background: var(--color-brand);
  color: #ffffff;
}

.btn-open-filters svg {
  width: 18px;
  height: 18px;
}

/* Drawer — panneau latéral */
.filters-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.filters-panel.is-open {
  transform: translateX(0);
}

.filters-panel[hidden] {
  display: none !important;
}

/* Overlay */
.filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.filters-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Bouton fermer X */
.btn-close-filters {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.btn-close-filters:hover {
  color: var(--color-text);
  background: rgba(31, 27, 22, 0.05);
}

.filters-content {
  padding: 20px 16px 24px;
  overflow-y: auto;
  flex: 1;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field select,
.form-field input {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  height: 48px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field select:focus,
.form-field input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(184, 137, 59, 0.1);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-brand);
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.filter-actions .button-primary {
  flex: 1;
  min-width: 140px;
  height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
}

.filter-actions .text-link {
  font-size: 0.85rem;
  color: var(--color-muted);
  align-self: center;
}

/* Body scroll lock */
body.filters-open {
  overflow: hidden;
}

/* Desktop — drawer en sidebar permanente */
@media (min-width: 768px) {
  .filters-content {
    padding: 24px;
    overflow: visible;
  }

  .filter-actions {
    flex-wrap: nowrap;
  }

  .filter-actions .button-primary {
    flex: 1;
  }
}

/* ============================================================
   3. TABLETTE (à partir de 768px) — 3 colonnes, header 72px
   ============================================================ */

@media (min-width: 768px) {
  .site-header {
    height: 72px;
  }

  main {
    padding-top: 72px;
  }

  .container {
    width: calc(100% - 48px);
  }

  .brand-logo {
    max-height: 48px;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  /* Menu affiché sur tablette et plus */
  .site-nav {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0 !important;
    transform: translate(-50%, -50%);
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav a {
    padding: 8px 10px;
    font-weight: 600;
    color: var(--color-brand);
  }

  /* Grille : 3 colonnes sur tablette */
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
  }
}

/* ============================================================
   4. ORDINATEUR (à partir de 1024px) — 4 colonnes
   ============================================================ */

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 32px;
  }
}

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   5. HERO — Bannière d'accueil (Mobile-first)
   ============================================================ */

.storefront-hero {
  position: relative;
  padding: 56px 20px;
  background: var(--color-photo-bg);
  background-image:
    linear-gradient(rgba(31, 27, 22, 0.55), rgba(31, 27, 22, 0.55)),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  color: #ffffff;
}

.hero-description {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-search input[type="search"],
.hero-search input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
}

.hero-search input[type="search"]::placeholder,
.hero-search input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-search button {
  width: 100%;
  padding: 12px 20px;
  background: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--color-brand-hover);
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.trust-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  background: #ffffff;
  border-radius: 999px;
}

/* ============================================================
   6. CARROUSEL — Produits vedette (Mobile-first)
   ============================================================ */

.home-carousel-section {
  padding: 40px 20px;
  background: var(--color-background);
}

.product-carousel {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.carousel-slide {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: transparent;
  border: none;
  border-radius: 20px;
}

.carousel-slide.active {
  display: flex;
}

.carousel-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.carousel-slide-visual {
  flex: 0 0 auto;
  width: 100%;
  height: 140px;
  aspect-ratio: 1 / 1;
  background: var(--color-photo-bg);
  border-radius: 16px;
  overflow: hidden;
}

.carousel-slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.carousel-slide-copy h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.carousel-slide-copy p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.carousel-slide-copy .product-card-price {
  font-size: 1rem;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  padding: 0 16px;
  z-index: 10;
  pointer-events: none;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(31, 27, 22, 0.1);
  transition: background 0.2s;
}

.carousel-arrow:hover {
  background: #ffffff;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border: none;
  background: var(--color-border-strong);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}

.carousel-dots button.active {
  background: var(--color-brand);
  transform: scale(1.4);
}

/* ============================================================
   7. SECTIONS — Catégories, Promos, Nouveautés
   ============================================================ */

.storefront-main {
  padding: 40px 20px;
  background: var(--color-background);
}

.storefront-section {
  margin-bottom: 48px;
}

.storefront-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-brand);
  line-height: 1.2;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.category-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.2;
}

.category-image-wrapper {
  display: grid;
  place-items: center;
}

.category-image-wrapper svg {
  width: 32px;
  height: 32px;
  color: var(--color-brand);
}

.category-admin-image {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  object-fit: cover;
}

.category-image-upload-field {
  grid-column: 1 / -1;
}

.category-image-upload-field input[type="file"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-muted);
  font: inherit;
}

.category-image-upload-field input[type="file"]::file-selector-button {
  max-width: 100%;
  margin-right: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--color-brand);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-image-upload-field input[type="file"]::file-selector-button:hover {
  background: var(--color-brand-dark, #805b26);
  transform: translateY(-1px);
}

.category-image-upload-field input[type="file"]:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.28);
  outline-offset: 2px;
}

.text-link {
  display: inline-block;
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.875rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  color: var(--color-muted);
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 1rem;
}

/* ============================================================
   8. PRODUITS — Badges, Wholesale, Formulaires d'ajout panier
   ============================================================ */

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 5;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.badge {
  background: var(--color-brand);
}

.badge-promo {
  background: var(--color-danger);
}

.badge-unavailable {
  background: var(--color-muted);
}

.cart-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-add-feedback {
  margin: 0;
  font-size: 0.8rem;
  min-height: 1.2em;
}

/* ============================================================
   9. TABLETTE (à partir de 768px) — Compléments
   ============================================================ */

@media (min-width: 768px) {
  .storefront-hero {
    padding: 96px 40px;
    text-align: left;
  }

  .hero-content {
    margin: 0;
    max-width: 600px;
  }

  .hero-search {
    flex-direction: row;
    max-width: 520px;
  }

  .hero-search input[type="search"],
  .hero-search input[type="text"] {
    flex: 1 1 auto;
  }

  .hero-search button {
    width: auto;
    flex: 0 0 auto;
  }

  .trust-points {
    justify-content: flex-start;
    margin-top: 0;
  }

  .carousel-slide {
    padding: 24px;
    gap: 24px;
  }

  .carousel-slide-visual {
    width: 160px;
    height: 160px;
  }

  .carousel-slide-copy h3 {
    font-size: 1.125rem;
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .category-name {
    font-size: 0.75rem;
  }
}

/* ============================================================
   10. ORDINATEUR (à partir de 1024px) — Compléments
   ============================================================ */

@media (min-width: 1024px) {
  .storefront-main {
    padding: 60px 32px;
  }

  .storefront-hero {
    padding: 120px 64px;
  }

  .hero-search {
    max-width: 640px;
  }

  .carousel-slide {
    padding: 32px;
    gap: 32px;
  }

  .carousel-slide-visual {
    width: 45%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ============================================================
   11. FOOTER — Moderne, 3 colonnes sur desktop
   ============================================================ */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-content {
  padding: 40px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-brand);
}

.footer-slogan {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-brand);
}

.footer-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-trust li {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-copyright {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

/* ============================================================
   12. PRODUITS — Raffinements cartes
   ============================================================ */

.product-image-placeholder {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: var(--color-photo-bg);
}

/* ============================================================
   13. TABLETTE & DESKTOP — Footer et catégories
   ============================================================ */

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .category-name {
    font-size: 0.85rem;
  }
}

/* ============================================================
   URGENCE — Alignement en-têtes de section (écrase les règles précédentes)
   ============================================================ */

.section-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  gap: 12px !important;
}

.section-heading > div {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
}

.section-heading h2 {
  margin: 0 !important;
}

.section-heading a,
.text-link {
  color: var(--color-brand) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
}

@media (min-width: 768px) {
  .section-heading {
    flex-direction: row !important;
    align-items: flex-end !important;
  }
}

/* ============================================================
   MOBILE UNIQUEMENT (max-width: 767px) — Réduction des tailles
   ============================================================ */

/* ============================================================
   14. MENU BURGER MOBILE
   ============================================================ */

.menu-mobile-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--color-brand);
  cursor: pointer;
  margin-right: 4px;
}

.menu-mobile-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
  display: block;
  padding: 12px;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Cacher le bouton burger sur ordinateur */
@media (min-width: 768px) {
  .menu-mobile-btn {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================================
   MOBILE UNIQUEMENT (max-width: 767px) — Style Oraimo
   ============================================================ */

@media (max-width: 767px) {
  /* En-tête de section : empile proprement titre et lien */
  .section-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .section-heading h2 {
    font-size: 1.3rem !important;
  }

  .text-link {
    font-size: 0.85rem !important;
  }
}

/* Grille : 2 colonnes collées */
.product-grid {
  gap: 8px !important;
  padding: 0 8px !important;
}

/* Sécurité : éviter que les SVG ne deviennent géants */
svg {
  max-width: 100%;
  max-height: 100%;
}

/* ============================================================
   16. ALIGNEMENT HEADER MOBILE (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {
  .brand-logo {
    max-width: 84px;
  }

  .site-nav {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    gap: 2px;
  }

  .header-actions {
    margin-left: 0 !important;
  }

  .site-nav a {
    font-size: 0.75rem !important;
    padding: 6px 3px !important;
    padding-right: 0 !important;
    color: var(--color-brand) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }
}

/* ============================================================
   CORRECTION TIROIR DE FILTRES
   ============================================================ */

.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.filters-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.filters-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-brand);
  font-size: 1.3rem;
}

@media (min-width: 768px) {
  .filters-header {
    display: none; /* Sur PC, pas besoin du bouton fermer */
  }
}

/* ============================================================
   CORRECTION D'URGENCE — CACHER LE TIROIR PAR DÉFAUT
   ============================================================ */

/* Sur mobile, le tiroir est caché à droite */
#filters-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 400px !important;
  background: #ffffff !important;
  z-index: 2000 !important;
  transform: translateX(100%) !important; /* Caché par défaut */
  transition: transform 0.3s ease !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Quand on ajoute la classe .is-open, le tiroir glisse */
#filters-drawer.is-open {
  transform: translateX(0) !important; /* Visible */
}

/* Le fond sombre (overlay) est caché par défaut */
#filters-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease !important;
}

/* Quand on ajoute .is-open, l'overlay devient visible */
#filters-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Finitions des commandes du panneau de filtres */
.filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.filter-actions .button-primary {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 50px;
  border: 1px solid #a9782e;
  border-radius: 12px;
  background: linear-gradient(135deg, #c99b52, #a9782e);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(169, 120, 46, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.filter-actions .button-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(169, 120, 46, 0.28);
}

.filter-actions .text-link {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.filter-actions .text-link:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background: rgba(184, 137, 59, 0.07);
}

.btn-close-filters {
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 27, 22, 0.08);
}

.btn-close-filters:hover {
  color: #7c5420;
  border-color: rgba(184, 137, 59, 0.35);
  background: #fbf5ea;
}

.btn-open-filters:focus-visible,
.btn-close-filters:focus-visible,
.filter-actions .button-primary:focus-visible,
.filter-actions .text-link:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.35);
  outline-offset: 3px;
}

/* ============================================================
   DESIGN DU TIROIR DE FILTRES (Esthétique Premium)
   ============================================================ */

/* En-tête du tiroir */
.filters-header {
  padding: 24px 24px 16px !important;
  border-bottom: 1px solid var(--color-border) !important;
  background: #ffffff !important;
}

.filters-header h2 {
  font-family: var(--font-heading) !important;
  color: var(--color-brand) !important;
  font-size: 1.6rem !important;
  margin: 0 !important;
}

.btn-close-filters {
  font-size: 1.8rem !important;
  color: var(--color-text) !important;
  background: #f5eddc !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
}

.btn-close-filters:hover {
  background: #e8d9b5 !important;
}

/* Contenu du tiroir */
.filters-content {
  padding: 24px !important;
  background: #faf7f2 !important;
}

/* Les champs (Select, Input) */
.filters-grid .form-field {
  margin-bottom: 16px !important;
  gap: 8px !important;
}

.filters-grid .form-field span {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--color-brand) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.filters-grid .form-field select,
.filters-grid .form-field input {
  height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid var(--color-border-strong) !important;
  background: #ffffff !important;
  font-size: 0.95rem !important;
  padding: 0 16px !important;
  color: var(--color-text) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.filters-grid .form-field select:focus,
.filters-grid .form-field input:focus {
  border-color: var(--color-brand) !important;
  box-shadow: 0 0 0 3px rgba(184, 137, 59, 0.15) !important;
}

/* La case à cocher (Promotion) */
.filters-grid .checkbox-field {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid var(--color-border-strong) !important;
  cursor: pointer !important;
  margin-top: 8px !important;
}

.filters-grid .checkbox-field input {
  width: 22px !important;
  height: 22px !important;
  accent-color: var(--color-brand) !important;
}

.filters-grid .checkbox-field span {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
}

/* Les boutons d'action (Appliquer / Effacer) */
.filters-grid .filter-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

.filters-grid .filter-actions .button-primary {
  width: 100% !important;
  height: 52px !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--color-brand) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(184, 137, 59, 0.3) !important;
  cursor: pointer !important;
}

.filters-grid .filter-actions .button-primary:hover {
  background: var(--color-brand-hover) !important;
}

.filters-grid .filter-actions .text-link {
  text-align: center !important;
  font-size: 0.9rem !important;
  color: var(--color-muted) !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

/* Fiche produit et panier : finition mobile-first */
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 27, 22, 0.08);
}

.product-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery > .product-image-placeholder-large {
  aspect-ratio: 1 / 1;
  max-height: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 27, 22, 0.08);
}

.product-gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.product-gallery-thumbnail {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 3px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.product-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-gallery-thumbnail.is-active {
  border: 2px solid var(--color-brand);
  box-shadow: 0 0 0 3px rgba(184, 137, 59, 0.12);
}

.product-detail-copy {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 27, 22, 0.06);
}

.product-detail-copy h1,
.related-products h2 {
  font-family: var(--font-heading);
}

.product-detail-copy h1 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.detail-prices {
  margin: 18px 0;
}

.detail-prices .price-current {
  margin: 0;
  color: var(--color-brand);
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.detail-prices .price-regular {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.product-description {
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-description h2 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 1.05rem;
}

.product-description p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.product-detail-copy .cart-add-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

.product-detail-copy .cart-add-form .form-field {
  margin: 0;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
}

.quantity-stepper button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #f5eddf;
  color: #805b26;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.quantity-stepper button:hover {
  background: #ead9b8;
}

.quantity-stepper input {
  width: 52px;
  height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.quantity-stepper input:focus {
  outline: none;
}

.product-add-button,
.product-cart-placeholder,
.cart-summary .button-primary,
.empty-state .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(184, 137, 59, 0.22);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-add-button:hover,
.cart-summary .button-primary:hover,
.empty-state .button-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(184, 137, 59, 0.28);
}

.product-add-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  list-style: none;
}

.product-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-trust-list svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-products {
  margin-top: 44px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 27, 22, 0.05);
}

.cart-line-image {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f1e9;
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.cart-line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-product {
  min-width: 0;
}

.cart-line-product h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cart-line-price {
  grid-column: 2 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.cart-line-price strong,
.cart-line-total strong {
  color: var(--color-brand);
  font-size: 0.95rem;
}

.cart-line-price small {
  display: none;
}

.cart-line-quantity {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-line-quantity .form-field {
  gap: 4px;
}

.cart-line-quantity .form-field > span {
  font-size: 0.65rem;
}

.cart-line-quantity .button-secondary {
  padding: 8px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.js .cart-line-quantity > .button-secondary {
  display: none;
}

.cart-line-total {
  grid-column: 1 / 3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 0.84rem;
}

.cart-line > form:last-child {
  grid-column: 3;
  grid-row: 3 / 5;
  justify-self: end;
  align-self: center;
}

.cart-remove {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(180, 66, 54, 0.2);
  border-radius: 12px;
  background: #fff8f7;
  color: #b44236;
  cursor: pointer;
}

.cart-remove:hover {
  background: #fbe9e6;
}

.cart-remove svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-summary {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 27, 22, 0.07);
}

.cart-summary h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-summary-total {
  margin-bottom: 18px;
  border-bottom: 0;
  color: var(--color-text);
  font-weight: 700;
}

.cart-summary-total strong {
  color: var(--color-brand);
}

.cart-delivery-field {
  margin: 18px 0 8px;
}

.cart-delivery-field select {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.cart-summary .button-primary {
  width: 100%;
}

.cart-summary > .text-link {
  display: block;
  margin-top: 14px;
  text-align: center;
}

@media (min-width: 700px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 36px;
  }

  .product-detail-copy {
    padding: 32px;
  }

  .product-detail-copy .cart-add-form {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
  }

  .product-detail-copy .cart-add-form > label.form-field {
    grid-column: 1;
  }

  .product-add-button {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 24px;
  }

  .cart-line {
    grid-template-columns: 80px minmax(0, 1fr) auto auto;
    gap: 16px;
    padding: 18px;
  }

  .cart-line-image {
    width: 80px;
    height: 80px;
    grid-row: span 3;
  }

  .cart-line-price {
    grid-column: auto;
    display: grid;
    justify-items: end;
    gap: 2px;
  }

  .cart-line-price small {
    display: inline;
  }

  .cart-line-quantity,
  .cart-line-total {
    grid-column: 2 / 4;
  }

  .cart-line > form:last-child {
    grid-column: 4;
    grid-row: 1 / 4;
  }
}

@media (max-width: 380px) {
  .cart-line {
    grid-template-columns: 62px minmax(0, 1fr) 40px;
    gap: 9px;
    padding: 10px;
  }

  .cart-line-image {
    width: 62px;
    height: 62px;
  }

  .cart-line-quantity .button-secondary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-add-button,
  .cart-summary .button-primary,
  .product-gallery-thumbnail {
    transition: none;
  }
}

/* ============================================================
   FICHE PRODUIT — DESIGN PREMIUM (Mobile-first)
   ============================================================ */

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding: 32px;
  }
}

.product-gallery-main {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--color-photo-bg);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-gallery-thumbnail {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--color-photo-bg);
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-gallery-thumbnail.is-active {
  border-color: var(--color-brand);
}

.product-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail-copy h1 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.2;
}

.detail-prices {
  margin: 8px 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-gold-soft, #f5eddf);
}

.detail-prices .price-current {
  margin: 0;
  color: var(--color-brand);
  font-size: 2rem;
  font-weight: 800;
}

.detail-prices .price-regular {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-description h2 {
  margin: 16px 0 8px;
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.product-description p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.availability-note {
  padding: 12px;
  border-radius: 8px;
  background: #eaf4ee;
  color: #2f7d4f;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.availability-note-unavailable {
  background: #fbecea;
  color: #b23a2e;
}

.product-detail-copy .cart-add-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.product-detail-copy .quantity-stepper {
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
}

.product-detail-copy .quantity-stepper button {
  width: 40px;
  height: 100%;
  border: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
}

.product-detail-copy .quantity-stepper input {
  width: 50px;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  -moz-appearance: textfield;
}

.product-detail-copy .quantity-stepper input::-webkit-outer-spin-button,
.product-detail-copy .quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.product-detail-copy .product-add-button {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(184, 137, 59, 0.3);
  transition:
    transform 0.2s,
    background 0.2s;
}

.product-detail-copy .product-add-button:hover {
  transform: translateY(-2px);
  background: var(--color-brand-hover);
}

.product-detail-copy .product-add-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-background);
  list-style: none;
}

.product-trust-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-trust-list svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 2;
}

.product-detail-copy > .text-link {
  margin-top: 8px;
  color: var(--color-brand);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
}

/* Connexion administration */
body.admin-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-background);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
}

.login-card .eyebrow {
  margin-bottom: 16px;
  text-align: center;
}

.login-card .form-intro {
  margin-bottom: 32px;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: center;
}

.login-card .form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-card .form-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
}

.login-card .form-field input:focus {
  border-color: var(--color-brand);
  outline: 3px solid rgba(184, 137, 59, 0.15);
}

.login-card .button-primary {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 137, 59, 0.3);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.login-card .button-primary:hover {
  transform: translateY(-1px);
  background: var(--color-brand-hover);
}

@media (max-width: 480px) {
  .admin-main {
    padding: 20px 16px;
  }

  .login-card {
    padding: 32px 22px;
    border-radius: 20px;
  }
}

/* Sur ordinateur (>= 768px), on cache complètement le tiroir et l'overlay */

/* À ajouter dans assets/css/style.css */

/* Conteneur principal admin */
.admin-main {
  padding: 32px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-heading h1 {
  font-family: var(--font-heading);
  color: var(--color-brand);
  font-size: 2.2rem;
  margin: 8px 0;
}

/* Grille de cartes du dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: var(--color-brand);
}

.dashboard-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
  margin: 8px 0;
}

.dashboard-card > span {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.dashboard-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: underline;
}

/* Carte pour le tableau de réappro */
.admin-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  margin-top: 24px;
}

.admin-card .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-card .section-heading h2 {
  font-family: var(--font-heading);
  color: var(--color-brand);
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.admin-card table {
  width: 100%;
  border-collapse: collapse;
}

.admin-card th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 2px solid var(--color-border);
}

.admin-card td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.admin-card tr:last-child td {
  border-bottom: none;
}

/* Badge de stock bas */
.stock-low {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fbecea;
  color: #b23a2e;
  font-weight: 700;
  font-size: 0.8rem;
}

/* En-tête minimal réservé à la connexion admin */
.admin-login-header {
  position: static;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  width: 100%;
  height: auto;
  padding: 28px 20px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-login-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--color-brand);
  text-decoration: none;
}

.admin-login-brand img {
  display: block;
  width: auto;
  max-width: min(180px, 60vw);
  max-height: 56px;
  object-fit: contain;
}

.admin-login-brand span {
  font-family: var(--font-heading);
  font-size: 2rem;
}

/* Connexion admin en écran partagé */
.admin-main.admin-main-login {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(220px, 34vh) 1fr;
  min-height: 100vh;
  background: #fff;
}

.login-split-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 28px 24px;
  overflow: hidden;
  background-image:
    linear-gradient(0deg, rgba(10, 15, 16, 0.78), rgba(10, 15, 16, 0.04) 75%),
    url("../img/hero.jpg");
  background-position: center;
  background-size: cover;
}

.login-image-overlay {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
}

.login-image-overlay h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.login-image-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.65;
}

.login-split-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 36px 24px 48px;
  background: #fff;
}

.login-logo,
.login-header,
.login-split-form > .notice,
.login-split-form > .form-stack {
  width: 100%;
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.login-logo img {
  display: block;
  width: auto;
  max-width: min(190px, 65vw);
  max-height: 72px;
  object-fit: contain;
}

.login-logo .brand-name {
  color: var(--color-brand);
}

.login-header h1,
.login-split-form > h1 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.login-header p,
.login-split-form > .form-intro {
  margin: 0 0 28px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.login-split-form > .eyebrow {
  max-width: 420px;
  margin: 0 auto 8px;
}

.login-split-form .form-stack {
  gap: 20px;
}

.login-split-form .form-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.login-split-form .form-field input:focus {
  border-color: var(--color-brand);
  outline: 3px solid rgba(184, 137, 59, 0.14);
}

.login-split-form .button-primary {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(184, 137, 59, 0.24);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.login-split-form .button-primary:hover {
  transform: translateY(-1px);
  background: var(--color-brand-hover);
}

@media (min-width: 768px) {
  .login-split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .login-split-image {
    min-height: 100vh;
    padding: clamp(40px, 6vw, 88px);
    background-position: center;
  }

  .login-split-form {
    min-height: 100vh;
    padding: 56px clamp(40px, 7vw, 112px);
  }
}

/* ============================================================
   ADMIN — LAYOUT GLOBAL (Sidebar + Content)
   ============================================================ */

.admin-body {
  margin: 0;
  background: #f8f9fa;
  font-family: var(--font-body);
  color: var(--color-text);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: #1f1b16; /* Noir profond */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 0 24px 32px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
}

.sidebar-brand a {
  color: var(--color-brand);
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-link {
  display: block;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(184, 137, 59, 0.15);
  color: var(--color-brand);
  border-left: 4px solid var(--color-brand);
  padding-left: 20px;
}

.sidebar-footer {
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-link.logout {
  color: #f87171;
}
.sidebar-link.logout:hover {
  background: rgba(248, 113, 113, 0.1);
  border-left-color: #f87171;
}

/* Contenu Principal */
.admin-content {
  flex: 1;
  margin-left: 260px; /* Espace pour la sidebar */
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #1f1b16;
}

.topbar-user {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.admin-main-inner {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Responsive : Mobile */
@media (max-width: 900px) {
  .admin-sidebar {
    display: none; /* À remplacer par un menu burger plus tard si besoin */
  }
  .admin-content {
    margin-left: 0;
  }
  .admin-main-inner {
    padding: 16px;
  }
}

/* Administration : shell SaaS Berluxe */
.admin-shell-body {
  display: block;
  min-height: 100vh;
  background: var(--color-background);
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.admin-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  min-width: 0;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sidebar-brand a {
  color: var(--color-text);
  font: 1.45rem/1.1 var(--font-heading);
  text-decoration: none;
}
.sidebar-brand span {
  color: var(--color-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: thin;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--color-text);
  font: 600 0.88rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #f5eddf;
  color: var(--color-brand);
}
.sidebar-footer {
  grid-column: 2;
  grid-row: 1;
}
.sidebar-footer form {
  margin: 0;
}
.sidebar-link.logout {
  color: #8c4a3d;
}
.sidebar-link.logout:hover {
  background: #fbefed;
  color: #7d3428;
}

.admin-content {
  min-width: 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  position: relative;
  z-index: 2;
  min-height: 64px;
  height: auto;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.topbar-title {
  font-size: 1.25rem;
}
.topbar-user {
  text-align: right;
  font-size: 0.85rem;
}
.admin-main-inner {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

@media (min-width: 901px) {
  .admin-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 28px 18px 20px;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }
  .sidebar-brand {
    padding: 0 12px;
  }
  .sidebar-nav {
    flex-direction: column;
    gap: 5px;
    overflow: visible;
    padding: 0;
  }
  .sidebar-footer {
    margin-top: auto;
  }
  .sidebar-footer .sidebar-link {
    width: 100%;
  }
  .admin-topbar {
    position: sticky;
    top: 0;
    min-height: 76px;
    padding: 18px 36px;
  }
  .topbar-title {
    font-size: 1.5rem;
  }
  .admin-main-inner {
    padding: 36px clamp(24px, 4vw, 56px) 48px;
  }
}

@media (max-width: 420px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-user {
    text-align: left;
  }
}

/* Gestion des catégories : panneaux repliables et commandes compactes */
.admin-page-heading .button-primary,
.category-edit-form .button-primary,
.category-add-form .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font: 700 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(184, 137, 59, 0.22);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-page-heading .button-primary:hover,
.category-edit-form .button-primary:hover,
.category-add-form .button-primary:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
  box-shadow: 0 7px 18px rgba(184, 137, 59, 0.28);
  transform: translateY(-1px);
}

.admin-page-heading .button-primary:focus-visible,
.category-edit-form .button-primary:focus-visible,
.category-add-form .button-primary:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.28);
  outline-offset: 3px;
}

.category-edit-form[hidden],
#add-category-section[hidden] {
  display: none !important;
}

.category-admin-item {
  align-items: center;
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 5px 18px rgba(35, 28, 18, 0.045);
}

.category-admin-info {
  min-width: 0;
}

.category-admin-info code {
  display: inline-block;
  overflow-wrap: anywhere;
}

.category-admin-actions {
  align-items: center;
}

.category-admin-actions form {
  margin: 0;
}

.button-icon-action {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--color-brand);
  border-color: var(--color-border);
}

.button-icon-action.delete {
  color: #9c5146;
}

.category-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 4px;
  padding-top: 20px;
  border-color: var(--color-border);
}

.category-edit-form .form-field,
.category-add-form .form-field {
  min-width: 0;
}

.category-edit-form .form-actions,
.category-add-form .form-actions {
  align-items: center;
  flex-wrap: wrap;
}

#add-category-section {
  margin-top: 22px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(35, 28, 18, 0.07);
}

.category-add-form {
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) auto;
}

@media (max-width: 640px) {
  .admin-page-heading {
    align-items: stretch;
    margin-bottom: 22px;
  }

  .admin-page-heading > .button {
    width: 100%;
  }

  .category-admin-item {
    align-items: flex-start;
  }

  .category-admin-actions {
    margin-left: auto;
  }

  .category-edit-form,
  .category-add-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-edit-form .form-actions,
  .category-add-form .form-actions {
    justify-content: stretch;
  }

  .category-edit-form .form-actions .button,
  .category-add-form .form-actions .button {
    flex: 1 1 140px;
  }
}

/* ============================================================
   ADMIN — PAGE CATÉGORIES
   ============================================================ */

.admin-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
}

/* Liste des catégories */
.category-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  transition: all 0.2s;
  flex-wrap: wrap;
  gap: 16px;
}

.category-admin-item:hover {
  border-color: var(--color-brand);
  background: #ffffff;
}

.category-admin-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--color-text);
}

.category-admin-info p {
  font-size: 0.85rem;
  margin: 0 0 4px;
}

.category-admin-info code {
  font-size: 0.75rem;
  color: var(--color-muted);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Boutons d'action (icônes) */
.category-admin-actions {
  display: flex;
  gap: 8px;
}

.button-icon-action {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text);
}

.button-icon-action svg {
  width: 18px;
  height: 18px;
}

.button-icon-action.edit:hover {
  background: #faf7f2;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.button-icon-action.delete:hover {
  background: #fbecea;
  border-color: #b23a2e;
  color: #b23a2e;
}

.button-icon-action:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Formulaire d'édition */
.category-edit-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #eaeaea;
}

@media (max-width: 640px) {
  .category-edit-form {
    grid-template-columns: 1fr;
  }
}

.category-edit-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Formulaire d'ajout */
.category-add-form {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.category-add-form .form-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .category-add-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ADMIN — PAGE COMMANDES (Liste + Détail)
   ============================================================ */

/* Barre de filtres (pills) */
.orders-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.orders-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-brand);
}

.filter-pill.active {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}

/* Tableau moderne */
.admin-table-modern th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: 12px 8px;
  border-bottom: 2px solid #f0f0f0;
}

.admin-table-modern td {
  padding: 16px 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.admin-table-modern tr:last-child td {
  border-bottom: none;
}

.admin-table-modern tr:hover {
  background: #fafafa;
}

/* Badge du numéro de commande */
.order-number-badge {
  font-weight: 700;
  color: var(--color-brand);
  background: var(--color-gold-soft);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Statuts colorés (déjà présents mais on les renforce) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-nouvelle {
  background: #e0f2fe;
  color: #0369a1;
}
.status-confirmee {
  background: #fef3c7;
  color: #92400e;
}
.status-livree {
  background: #d1fae5;
  color: #065f46;
}
.status-annulee {
  background: #fee2e2;
  color: #991b1b;
}

/* Page détail — Grid à 2 colonnes */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .order-detail-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

/* Récap produits dans le détail */
.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.order-items-table td {
  font-size: 0.9rem;
}

/* Totaux */
.order-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #faf7f2;
  border-radius: 12px;
  margin: 0;
}

.order-totals div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-totals dt {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.order-totals dd {
  margin: 0;
  font-weight: 600;
}

.order-grand-total {
  border-top: 1px solid #eaeaea;
  padding-top: 12px;
  margin-top: 8px !important;
}

.order-grand-total dt {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
}

.order-grand-total dd {
  font-size: 1.3rem;
  color: var(--color-brand);
  font-weight: 800;
}

/* Infos client */
.order-info-grid {
  display: grid;
  gap: 16px;
  margin: 0;
}

.order-info-grid > div {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.order-info-grid > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-info-grid dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.order-info-grid dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.order-address {
  grid-column: 1 / -1;
}

/* Impression — bon de livraison (détail commande) */
.print-only {
  display: none;
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .confirmation-actions {
    display: none !important;
  }

  .storefront-main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .confirmation-success,
  .confirmation-recap {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  .admin-sidebar,
  .admin-topbar,
  .print-hidden,
  .order-actions,
  .order-status-form {
    display: none !important;
  }

  .admin-layout,
  .admin-content {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .admin-main-inner {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
  }

  .print-only {
    display: block !important;
    margin-top: 24px;
    color: #555 !important;
    font-size: 10pt;
    text-align: center;
  }

  .admin-card {
    margin-bottom: 16px !important;
    padding: 16px !important;
    border: 1px solid #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .order-items-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .order-items-table th,
  .order-items-table td {
    padding: 8px !important;
    border-bottom: 1px solid #ccc !important;
    color: #000 !important;
  }

  .order-totals {
    border: 1px solid #000 !important;
    background: #fff !important;
  }

  .order-grand-total dd {
    color: #000 !important;
  }

  .order-detail-grid {
    display: block !important;
  }

  .admin-page-heading h1 {
    margin-bottom: 8px !important;
    color: #000 !important;
  }

  .admin-page-heading .eyebrow {
    color: #000 !important;
  }
}

/* Finition des écrans de commandes */
.orders-filter-bar {
  gap: 10px;
  margin-bottom: 20px;
}

.filter-pill {
  padding: 10px 17px;
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(35, 28, 18, 0.035);
}

.filter-pill.active {
  box-shadow: 0 4px 12px rgba(184, 137, 59, 0.2);
}

.orders-card {
  overflow: hidden;
  padding: 8px 20px;
}

.admin-table-modern {
  min-width: 760px;
}

.admin-table-modern th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table-modern td {
  padding: 17px 12px;
  border-bottom-color: #f1ede6;
}

.admin-table-modern tbody tr:hover {
  background: #fcfaf6;
}

.order-customer-phone {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.8rem;
}

.order-detail-page {
  min-width: 0;
}

.order-status-card {
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(35, 28, 18, 0.055);
}

.order-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.stock-deduction-note {
  max-width: 520px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.order-status-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.order-status-form .form-field {
  flex: 1;
  max-width: 460px;
}

.order-status-form .button-primary,
.order-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font: 700 0.92rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.order-status-form .button-primary:hover,
.order-actions .button-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
}

.order-actions .button-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.order-items-table {
  min-width: 520px;
}

@media (max-width: 640px) {
  .orders-card {
    padding: 4px 12px;
  }

  .order-status-form {
    align-items: stretch;
    flex-direction: column;
  }

  .order-status-form .form-field {
    max-width: none;
  }

  .order-status-form .button-primary,
  .order-actions .button {
    width: 100%;
  }

  .order-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* ============================================================
   ADMIN — PRODUITS (Liste + Formulaire)
   ============================================================ */

/* Filtres */
.products-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.products-filter-bar::-webkit-scrollbar {
  display: none;
}

/* Tableau produits */
.admin-table-responsive {
  overflow-x: auto;
}

.admin-table-modern th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: 12px 8px;
  border-bottom: 2px solid #f0f0f0;
  text-align: left;
}

.admin-table-modern td {
  padding: 16px 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.product-name-cell strong {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Badge de stock */
.stock-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-badge.ok {
  background: #d1fae5;
  color: #065f46;
}

.stock-badge.low {
  background: #fee2e2;
  color: #991b1b;
}

/* Badges de statut dans le tableau */
.product-status-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-featured {
  background: #fef3c7;
  color: #92400e;
}
.badge-promo {
  background: #dbeafe;
  color: #1e40af;
}
.badge-unavailable {
  background: #f3f4f6;
  color: #4b5563;
}

/* Actions du tableau */
.table-actions {
  display: flex;
  gap: 8px;
}

/* Formulaire Produit : Layout à 2 colonnes */
.product-form {
  margin-top: 0;
}

.form-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .form-layout-grid {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

.form-main-column,
.form-side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Zone de dépôt de fichier */
.file-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed #eaeaea;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  color: var(--color-muted);
}

.file-drop-zone:hover {
  border-color: var(--color-brand);
  background: #faf7f2;
}

.file-drop-zone svg {
  width: 32px;
  height: 32px;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.file-drop-zone span {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.file-drop-zone small {
  font-size: 0.8rem;
}

.file-drop-zone input[type="file"] {
  display: none;
}

/* Toggle des options (checkboxes) */
.options-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.option-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-brand);
}

.form-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Finition de la gestion des produits */
.products-filter-bar .filter-pill {
  flex: 0 0 auto;
}

.products-card {
  overflow: hidden;
  padding: 8px 20px;
}

.products-table {
  min-width: 780px;
}

.products-table th,
.products-table td {
  padding-right: 14px;
  padding-left: 14px;
}

.product-name-cell {
  min-width: 170px;
  max-width: 280px;
}

.product-old-price {
  color: var(--color-muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}

.product-sale-price {
  color: var(--color-brand);
}

.table-actions {
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.product-form .admin-card {
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(35, 28, 18, 0.045);
}

.product-form .admin-card-title {
  margin-bottom: 22px;
}

.product-form .button-primary,
.product-form .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  font: 700 0.94rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.product-form .button-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(184, 137, 59, 0.2);
}

.product-form .button-primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  transform: translateY(-1px);
}

.product-form .button-secondary {
  background: #fff;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.product-form .button-secondary:hover {
  background: #faf7f2;
  border-color: var(--color-brand);
}

.admin-page-heading > .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: 600 0.9rem/1.2 var(--font-body);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.admin-page-heading > .button-secondary:hover {
  border-color: var(--color-brand);
  background: #faf7f2;
}

.product-form .button:focus-visible,
.table-actions .button-icon-action:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.28);
  outline-offset: 3px;
}

.file-drop-zone {
  min-height: 190px;
  border-color: var(--color-border-strong);
  background: #fcfaf6;
}

.existing-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.existing-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.existing-image > img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.existing-image .checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
}

.existing-image .checkbox-field input {
  accent-color: var(--color-brand);
}

.option-toggle {
  min-height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: #fcfaf6;
}

@media (max-width: 640px) {
  .products-card {
    padding: 4px 12px;
  }

  .admin-page-heading > .button {
    width: 100%;
  }

  .product-form .form-layout-grid {
    gap: 16px;
  }

  .product-form .admin-card {
    padding: 20px 16px;
  }

  .file-drop-zone {
    min-height: 160px;
    padding: 24px 16px;
  }
}

/* ============================================================
   ADMIN — PAGE RÉGLAGES
   ============================================================ */

/* Grille des réglages (3 colonnes sur grand écran) */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .settings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Input avec icône à gauche */
.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  z-index: 2;
}

.input-with-icon input {
  padding-left: 48px !important;
  font-weight: 700;
  font-size: 1.1rem !important;
  height: 52px;
  border-radius: 10px;
}

/* Liste des communes modernes */
.commune-list-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .commune-list-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

.commune-card {
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.commune-card:hover {
  border-color: var(--color-brand);
  background: #ffffff;
}

.commune-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}

.commune-zone-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zone-abidjan {
  background: #dbeafe;
  color: #1e40af;
}

.zone-hors {
  background: #fef3c7;
  color: #92400e;
}

.commune-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.commune-status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.commune-status-badge.inactive {
  background: #f3f4f6;
  color: #4b5563;
}

.commune-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.commune-card-body .form-field:first-child {
  grid-column: 1 / -1;
}

.commune-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #eaeaea;
}

.commune-card-footer .checkbox-field {
  font-size: 0.8rem;
}

/* Formulaire d'ajout de commune */
.add-commune-modern {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
}

.add-commune-modern h3 {
  font-family: var(--font-heading);
  color: var(--color-brand);
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.commune-add-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

@media (min-width: 768px) {
  .commune-add-form {
    grid-template-columns: 2fr 1fr auto;
  }
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

/* Finition de la page Réglages */
.settings-card,
.communes-settings-card {
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(35, 28, 18, 0.045);
}

.settings-grid {
  gap: 18px;
}

.setting-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fcfaf6;
}

.input-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--color-brand);
  filter: saturate(0.8);
}

.settings-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.settings-actions .button-primary,
.add-commune-modern .button-primary,
.commune-card-footer .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  font: 700 0.92rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.settings-actions .button-primary,
.add-commune-modern .button-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(184, 137, 59, 0.2);
}

.settings-actions .button-primary:hover,
.add-commune-modern .button-primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  transform: translateY(-1px);
}

.communes-settings-card .section-heading-row {
  margin-bottom: 0;
}

.communes-settings-card .section-heading-row .admin-card-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border: 0;
}

.commune-list-modern {
  margin-top: 22px;
}

.commune-card {
  border-color: var(--color-border);
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 28, 18, 0.035);
}

.commune-card:hover {
  box-shadow: 0 8px 20px rgba(35, 28, 18, 0.07);
}

.commune-card-header {
  border-bottom-color: var(--color-border);
}

.commune-card-footer {
  border-top-color: var(--color-border);
}

.commune-card-footer .button-secondary {
  background: #fff;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.commune-card-footer .button-secondary:hover {
  background: #faf7f2;
  border-color: var(--color-brand);
}

.add-commune-modern {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fcfaf6;
}

.add-commune-modern h3 {
  margin-top: 0;
}

.add-commune-modern .commune-add-form {
  align-items: end;
}

@media (max-width: 640px) {
  .settings-actions {
    justify-content: stretch;
  }

  .settings-actions .button-primary,
  .add-commune-modern .button-primary {
    width: 100%;
  }

  .commune-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .commune-card-footer .button-secondary {
    width: 100%;
  }

  .add-commune-modern {
    padding: 18px 14px;
  }
}

/* ============================================================
   ADMIN — PAGE MOT DE PASSE
   ============================================================ */

.password-card-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.password-card {
  width: 100%;
  max-width: 520px;
}

.password-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eaeaea;
}

.password-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  background: var(--color-gold-soft);
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.password-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 0 0 8px;
}

.password-header p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

.password-card .form-stack {
  gap: 20px;
}

.password-card .form-field input {
  height: 52px;
  border-radius: 10px;
  font-size: 1rem;
  padding: 0 16px;
  background: #fafafa;
}

.password-card .form-field input:focus {
  background: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(184, 137, 59, 0.1);
}

.password-card .button-primary {
  height: 52px;
  margin-top: 10px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(184, 137, 59, 0.3);
  border: 1px solid var(--color-brand);
  background: var(--color-brand);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.password-card .button-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
}

.password-card .button-primary:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.28);
  outline-offset: 3px;
}

.password-card .form-field small {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.sidebar-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.sidebar-brand img {
  display: block;
  width: min(100%, 156px);
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 640px) {
  .password-card-wrapper {
    margin-top: 0;
  }

  .password-card {
    padding: 22px 18px;
  }
}

/* ============================================================
   CHECKOUT — Page de commande
   ============================================================ */

.checkout-header {
  text-align: center;
  margin-bottom: 32px;
}

.checkout-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--color-brand);
  margin: 8px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.checkout-form-card,
.checkout-summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.checkout-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-brand);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.checkout-name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-submit-btn {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(184, 137, 59, 0.3);
}

.checkout-submit-btn:hover {
  background: var(--color-brand-hover);
}

/* Récapitulatif */
.checkout-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.checkout-items li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.checkout-items li:last-child {
  border-bottom: none;
}

.checkout-items small {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.checkout-totals {
  background: #faf7f2;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
}

.checkout-total-row.grand-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-brand);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.checkout-trust {
  margin-top: 16px;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
  text-align: center;
  font-size: 0.8rem;
  color: #166534;
  font-weight: 600;
}

.checkout-trust p {
  margin: 4px 0;
}

/* ============================================================
   CONFIRMATION — Page de confirmation
   ============================================================ */

.confirmation-success {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: #065f46;
  font-size: 3rem;
  border-radius: 50%;
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.confirmation-success h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--color-brand);
  margin: 0 0 16px;
}

.order-number-highlight {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-brand);
  background: var(--color-gold-soft);
  padding: 12px 24px;
  border-radius: 12px;
  margin: 16px 0;
}

.confirmation-recap {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.confirmation-recap h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-brand);
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.recap-client-info {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--color-border);
}

.recap-client-info p {
  margin: 4px 0;
}

.confirmation-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.confirmation-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 50px;
  min-width: 240px;
  margin: 0;
}

.confirmation-actions [data-print] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  background: #fffaf0;
  color: var(--color-brand);
  font: 700 0.96rem/1.2 var(--font-body);
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(184, 137, 59, 0.12);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.confirmation-actions [data-print] svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-actions [data-print]:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(184, 137, 59, 0.22);
}

.confirmation-actions [data-print]:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.28);
  outline-offset: 3px;
}

/* Erreur de confirmation */
.confirmation-error {
  text-align: center;
  padding: 48px 24px;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .checkout-name-fields {
    grid-template-columns: 1fr;
  }
}

/* Finition du tunnel d'achat et de la confirmation */
.checkout-header {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 18px 0 0;
}

.checkout-header p:last-child {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

.checkout-layout {
  gap: 22px;
}

.checkout-form-card,
.checkout-summary-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(35, 28, 18, 0.055);
}

.checkout-form-card .form-stack {
  gap: 18px;
}

.checkout-form-card .form-field input,
.checkout-form-card .form-field select,
.checkout-form-card .form-field textarea {
  border-radius: 12px;
}

.checkout-form-card .form-field small {
  color: var(--color-muted);
  line-height: 1.45;
}

.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--color-brand);
  font: 700 1rem/1.2 var(--font-body);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.checkout-submit-btn:hover {
  background: var(--color-brand-hover);
  box-shadow: 0 7px 18px rgba(184, 137, 59, 0.32);
  transform: translateY(-1px);
}

.checkout-summary-card {
  position: relative;
}

.checkout-items li {
  gap: 16px;
}

.checkout-items li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-items li > strong {
  flex: 0 0 auto;
}

.checkout-trust {
  border: 1px solid #dcefe1;
  border-radius: 12px;
  line-height: 1.5;
}

.confirmation-success,
.confirmation-recap {
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 32px rgba(35, 28, 18, 0.05);
}

.confirmation-success {
  padding: clamp(32px, 6vw, 56px) 24px;
}

.confirmation-recap {
  border-radius: 18px;
}

.confirmation-actions .button-primary,
.confirmation-error .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  font: 700 0.96rem/1.2 var(--font-body);
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(184, 137, 59, 0.22);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.confirmation-actions .button-primary:hover,
.confirmation-error .button-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .checkout-summary-card {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 640px) {
  .checkout-header {
    margin-bottom: 24px;
    padding-top: 6px;
  }

  .checkout-form-card,
  .checkout-summary-card {
    padding: 20px 16px;
  }

  .checkout-submit-btn {
    min-height: 52px;
  }

  .confirmation-success {
    padding: 32px 18px;
  }

  .order-number-highlight {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .confirmation-actions .button {
    width: 100%;
  }
}

/* ============================================================
   ACCUEIL — Bandeau d'annonce, Hero large, Trust Banner
   ============================================================ */

/* Bandeau d'annonce tout en haut */
.top-announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  overflow: hidden;
  background: #1f1b16;
  color: #ffffff;
  text-align: center;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1001;
}

.top-announcement-track {
  display: flex;
  width: max-content;
  gap: 0;
  white-space: nowrap;
  animation: scrollAnnouncement 20s linear infinite;
  will-change: transform;
}

.top-announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 48px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

@keyframes scrollAnnouncement {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .site-header {
    top: 36px;
  }
  main {
    padding-top: 96px;
  }
}

@media (min-width: 768px) {
  .site-header {
    top: 36px;
  }

  main {
    padding-top: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-announcement-track {
    animation: none;
  }
}

/* Boutons CTA du hero */
.hero-cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-cta-links .button {
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
}

.hero-cta-links .button-primary {
  background: var(--color-brand);
  color: white;
  border: 2px solid var(--color-brand);
}

.hero-cta-links .button-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand);
  border: 2px solid white;
  backdrop-filter: blur(4px);
}

/* Bandeau de confiance en bas */
.trust-banner-section {
  margin-top: 0;
  padding: 32px 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .trust-banner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-banner-icon {
  font-size: 1.8rem;
  background: var(--color-gold-soft);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-banner-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.2;
}

.trust-banner-item p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ============================================================
   CARTE PRODUIT — DESIGN PREMIUM (Style ShopCart/Novella)
   ============================================================ */

/* Carte globale */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Lien de la carte (image + contenu) */
.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Image carrée */
.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-photo-bg);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

/* Badges en overlay (top left) */
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-badges .badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-badges .badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand);
  backdrop-filter: blur(4px);
}

.product-badges .badge-promo {
  background: #b23a2e;
  color: #ffffff;
}

/* Contenu de la carte */
.product-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-card-category {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  font-weight: 500;
}

.product-card-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-brand);
  margin: 4px 0 0;
}

/* Bouton d'action (caché par défaut, visible au survol sur PC) */
.product-card-actions {
  padding: 0 12px 12px;
}

.button-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.button-add-to-cart:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
}

.button-add-to-cart svg {
  width: 16px;
  height: 16px;
}

/* Sur DESKTOP : on cache le bouton par défaut et on l'affiche au survol */
@media (min-width: 768px) {
  .product-card-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .product-card:hover .product-card-actions,
  .product-card:focus-within .product-card-actions {
    opacity: 1;
  }
}

/* Bouton indisponible */
.button-unavailable {
  width: 100%;
  height: 40px;
  background: #f0ede8;
  color: #999;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: not-allowed;
}

/* Feedback ajout panier */
.cart-add-feedback {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-brand);
  margin: 6px 0 0;
  font-weight: 600;
}

/* Ajustements mobiles : bandeau animé, recherche et navigation */
@media (max-width: 767px) {
  .top-announcement-bar {
    height: 36px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .top-announcement-track {
    gap: 0;
  }

  .top-announcement-bar span {
    font-size: 0.7rem;
    margin-right: 28px;
  }

  .site-header {
    top: 36px !important;
  }

  main {
    padding-top: 96px !important;
  }

  .top-announcement-track > span:nth-child(3),
  .top-announcement-track > span:nth-child(6) {
    display: none !important;
  }

  .site-nav {
    gap: 8px !important;
  }

  .site-nav a {
    padding: 8px 4px !important;
    padding-right: 4px !important;
    white-space: nowrap;
  }
}

/* Correction du conteneur storefront-main sur mobile */
@media (max-width: 767px) {
  .container.storefront-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .storefront-main > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .storefront-main img {
    max-width: 100% !important;
    height: auto !important;
  }

  .product-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .storefront-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* Administration responsive — navigation et contenu mobile */
@media (max-width: 900px) {
  .admin-layout {
    display: block !important;
    min-height: 100vh !important;
  }

  .admin-sidebar {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 100 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: 8px 12px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 10px 12px 6px !important;
    overflow: visible !important;
    background: var(--color-surface) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 3px 12px rgba(35, 28, 18, 0.06);
  }

  .sidebar-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
  }

  .sidebar-brand a {
    min-height: 36px !important;
  }

  .sidebar-brand img {
    width: min(100%, 124px) !important;
    max-height: 38px !important;
  }

  .sidebar-brand span {
    display: none !important;
  }

  .sidebar-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex: none !important;
    gap: 5px !important;
    min-width: 0 !important;
    margin: 0 -4px !important;
    padding: 0 4px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar .sidebar-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--color-text) !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .admin-sidebar .sidebar-link:hover,
  .admin-sidebar .sidebar-link.active {
    padding-left: 10px !important;
    border: 0 !important;
    background: #f5eddf !important;
    color: var(--color-brand) !important;
  }

  .sidebar-footer {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .sidebar-footer .sidebar-link {
    min-height: 36px !important;
    padding: 6px 9px !important;
    color: #8c4a3d !important;
    font-size: 0.75rem !important;
  }

  .admin-content {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .admin-topbar {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 16px !important;
  }

  .topbar-title {
    font-size: 1.15rem !important;
  }

  .topbar-user {
    text-align: left !important;
    font-size: 0.78rem !important;
  }

  .admin-main-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .stats-grid,
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 16px !important;
  }

  .stat-info strong {
    font-size: 1.3rem !important;
  }

  .admin-table-responsive,
  .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-table-modern,
  .admin-table {
    font-size: 0.8rem !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 6px !important;
    white-space: nowrap !important;
  }

  .form-grid,
  .form-layout-grid,
  .commune-list-modern {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .form-actions .button,
  .admin-page-heading .button {
    width: 100% !important;
    text-align: center !important;
  }

  .admin-page-heading {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
}

/* Corrections admin mobile : tableau de bord, commandes, réglages */
@media (max-width: 900px) {
  /* Tableau de bord : section « À réapprovisionner » */
  .admin-card .section-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .admin-card .section-heading .text-link {
    align-self: flex-start !important;
    font-size: 0.85rem !important;
  }

  .admin-table-modern td,
  .admin-table-modern th {
    padding: 10px 6px !important;
    font-size: 0.8rem !important;
  }

  .stock-badge {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
  }

  /* Détail commande */
  .order-detail-page .admin-page-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .order-detail-page .order-actions {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .order-detail-page .order-actions .button {
    width: 100% !important;
  }

  .order-status-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .order-status-form {
    flex-direction: column !important;
    width: 100% !important;
  }

  .order-status-form .form-field,
  .order-status-form .button {
    width: 100% !important;
  }

  .order-info-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .order-items-table th,
  .order-items-table td {
    padding: 8px 6px !important;
    font-size: 0.8rem !important;
  }

  .order-totals {
    padding: 12px !important;
  }

  .order-grand-total dd {
    font-size: 1.1rem !important;
  }

  /* Réglages */
  .settings-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .input-with-icon input {
    height: 48px !important;
    padding-left: 44px !important;
    font-size: 0.95rem !important;
  }

  .input-icon {
    left: 12px !important;
    font-size: 1rem !important;
  }

  .commune-card {
    padding: 12px !important;
  }

  .commune-card-body {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .commune-card-body .form-field:first-child {
    grid-column: auto;
  }

  .commune-add-form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .commune-add-form .form-actions,
  .commune-add-form .button {
    width: 100% !important;
  }

  /* Ajustements généraux de l'admin */
  .admin-card {
    margin-bottom: 16px !important;
    padding: 16px !important;
  }

  .admin-card-title {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    font-size: 1.1rem !important;
  }

  .form-actions .button {
    width: 100% !important;
  }

  .orders-filter-bar,
  .products-filter-bar {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .filter-pill {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }
}

/* ============================================================
   FOOTER — Design Premium
   ============================================================ */

.site-footer {
  background: #1f1b16;
  color: #e5e5e5;
  padding: 48px 0 0;
  margin-top: 64px;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand-col {
  max-width: 320px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-brand);
  margin: 0 0 12px;
}

.footer-slogan {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.social-link svg {
  display: block;
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--color-brand);
}

.footer-nav h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 16px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a,
.footer-nav li {
  color: #b0b0b0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #888;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  margin: 0;
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* On s'assure que le bouton ne cache pas le contenu en bas */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 80px; /* Espace pour le bouton */
  }
}

/* ============================================================
   ACCUEIL — Boutons "Voir tout" et alignement des titres
   ============================================================ */

/* Style du bouton "Voir tout" */
.btn-section-link {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  border: 1px solid var(--color-brand) !important;
  color: var(--color-brand) !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.btn-section-link:hover {
  background: var(--color-brand) !important;
  color: #ffffff !important;
}

.section-heading a.btn-section-link,
.section-heading a.btn-section-link:hover {
  text-decoration: none !important;
}

/* Alignement Titre + Bouton sur la MÊME LIGNE */
.section-heading {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important; /* Permet de passer à la ligne si l'écran est VRAIMENT trop petit */
}

.section-heading > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important; /* Permet au titre de se tronquer si nécessaire */
}

/* Sur mobile, on réduit un peu la taille du titre pour que le bouton rentre bien */
@media (max-width: 767px) {
  .storefront-main .section-heading {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .storefront-main .section-heading > div:first-child {
    min-width: 0 !important;
  }

  .storefront-main .section-heading .btn-section-link {
    flex: 0 0 auto !important;
  }

  .section-heading h2 {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  .btn-section-link {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }

  /* On peut même cacher le "eyebrow" (petit texte au-dessus) sur mobile pour gagner de la place */
  .section-heading .eyebrow {
    display: none !important;
  }
}

/* Bannières promotionnelles avec images de fond */
.promo-banner {
  position: relative;
  padding: 60px 0;
  margin: 0;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.promo-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .promo-banner-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Bannière 2 : promotions */
.promo-banner-dark {
  background-image: url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80");
}

.promo-banner-dark::before {
  background: linear-gradient(
    135deg,
    rgba(31, 27, 22, 0.92) 0%,
    rgba(31, 27, 22, 0.7) 100%
  );
}

.promo-banner-dark .eyebrow {
  color: #fff;
}

.promo-banner-dark .button-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.promo-banner-dark .button-secondary:hover {
  background: #fff;
  color: #fff;
}

/* Bannière 3 : service client */
.promo-banner-light {
  background-image: url("https://images.unsplash.com/photo-1504148455328-c376907d081c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80");
}

.promo-banner-light::before {
  background: linear-gradient(
    135deg,
    rgba(31, 27, 22, 0.92) 0%,
    rgba(31, 27, 22, 0.7) 100%
  );
}

.promo-banner-light .promo-banner-text {
  color: #fff;
}

.promo-banner-light .eyebrow {
  color: var(--color-brand);
}

.promo-banner-light .promo-banner-text h2 {
  text-shadow: none;
}

.promo-banner-light .button-primary {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

/* Titres et textes */
.promo-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0 0 8px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.promo-banner-text p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
  color: #fff;
}

.promo-banner-text .eyebrow {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .promo-banner {
    padding: 40px 0;
  }

  .promo-banner-content .button {
    width: 100%;
    justify-content: center;
  }
}

/* Boutons des bannières promotionnelles */
.promo-banner-content > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.94rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.promo-banner-content > .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);
}

.promo-banner-content > .button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.promo-banner-gold .button-primary {
  background: #fff;
  color: #8b6528;
  border-color: #fff;
}

.promo-banner-gold .button-primary:hover {
  background: #fbf5e9;
  color: #73501b;
}

.promo-banner-dark .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.promo-banner-dark .button-secondary:hover {
  background: #fff;
  color: #1f1b16;
}

.promo-banner-light .button-primary {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.promo-banner-light .button-primary:hover {
  background: #1fb95a;
  border-color: #1fb95a;
}

.promo-banner-content > .button svg {
  flex: 0 0 auto;
  margin-right: 8px;
}

@media (max-width: 767px) {
  .promo-banner-content > .button {
    width: 100%;
    min-height: 48px;
  }
}

/* Bannière d'accueil du catalogue */
.catalogue-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 24px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(184, 137, 59, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 88% 8%,
      rgba(212, 175, 106, 0.28),
      transparent 42%
    ),
    linear-gradient(120deg, #211c15 0%, #3a2c1a 58%, #6c512d 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.14);
}

.catalogue-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.catalogue-banner-text {
  max-width: 680px;
}

.catalogue-banner-text .eyebrow {
  margin-bottom: 12px;
  color: #f1d69e;
  background: rgba(255, 255, 255, 0.1);
}

.catalogue-banner-text h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.14;
}

.catalogue-banner-text > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.catalogue-banner-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.catalogue-banner-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 999px;
  font: 700 0.9rem/1.2 var(--font-body);
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.catalogue-banner-actions .button:hover {
  transform: translateY(-1px);
}

.catalogue-banner-actions .button-primary {
  background: #fff;
  color: var(--color-brand);
}

.catalogue-banner-actions .button-primary:hover {
  background: #f7eddb;
  color: #76531c;
}

.catalogue-banner-actions .button-secondary {
  background: transparent;
  color: #fff;
}

.catalogue-banner-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.catalogue-banner-actions .button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

/* Admin catégories : bouton Annuler du formulaire d’édition */
.category-edit-form .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.category-edit-form .button-secondary:hover {
  border-color: var(--color-brand);
  background: #faf7f2;
  color: var(--color-brand);
}

.category-edit-form .button-secondary:focus-visible {
  outline: 3px solid rgba(184, 137, 59, 0.28);
  outline-offset: 3px;
}

/* Fiche produit : garder les images proportionnées sur ordinateur */
@media (min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .product-gallery-main {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }

  .product-gallery-main img {
    box-sizing: border-box;
    padding: 20px;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .catalogue-banner {
    margin-bottom: 20px;
    padding: 24px 20px;
  }

  .catalogue-banner-content {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .catalogue-banner-actions {
    flex-direction: column;
  }

  .catalogue-banner-actions .button {
    width: 100%;
  }
}

/* Actions du tiroir catalogue : côte à côte et lien Effacer net */
.filters-grid .filter-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.filters-grid .filter-actions .button-primary {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: auto !important;
}

.filters-grid .filter-actions .text-link {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border: 1px solid var(--color-border-strong) !important;
  border-radius: 12px !important;
  color: var(--color-muted) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease !important;
}

.filters-grid .filter-actions .text-link:hover {
  border-color: #bd3328 !important;
  background: #bd3328 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ============================================================
   CATALOGUE — Bannière de mise en avant
   ============================================================ */

.catalogue-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 48px 24px;
  background-image: url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.catalogue-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 27, 22, 0.85) 0%,
    rgba(184, 137, 59, 0.65) 100%
  );
  z-index: 1;
}

.catalogue-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .catalogue-banner {
    padding: 64px 48px;
  }
  .catalogue-banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.catalogue-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0 0 8px;
  line-height: 1.2;
  color: #ffffff;
}

.catalogue-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.catalogue-banner-text .eyebrow {
  color: var(--color-gold-soft);
  margin-bottom: 8px;
}

.catalogue-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .catalogue-banner-actions {
    flex-direction: row;
  }
}

.catalogue-banner-actions .button {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .catalogue-banner-actions .button {
    width: 100%;
  }
}

/* ============================================================
   ANIMATION FADE-IN AU SCROLL
   ============================================================ */

/* Si l'utilisateur préfère réduire les animations, on désactive */
@media (prefers-reduced-motion: reduce) {
  .storefront-section,
  .promo-banner,
  .catalogue-banner,
  .product-card,
  .trust-banner-section,
  .checkout-form-card,
  .checkout-summary-card,
  .confirmation-success,
  .confirmation-recap,
  .admin-card,
  .stat-card,
  .dashboard-card,
  .order-detail-grid > section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Liste des options dans le formulaire produit */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.option-item input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 0 16px;
}

.option-item .button-icon-action.delete {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #eaeaea;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  color: #b23a2e;
  font-weight: 700;
}

.option-item .button-icon-action.delete:hover {
  background: #fbecea;
  border-color: #b23a2e;
}

/* ============================================================
   CORRECTION DES BUGS DE SCROLL SUR MOBILE
   ============================================================ */
@media (max-width: 767px) {
  .storefront-hero {
    background-attachment: scroll !important;
  }

  .whatsapp-float {
    animation: none !important;
  }

  .top-announcement-track {
    animation-duration: 30s !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  .storefront-main,
  main {
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ============================================================
   CATÉGORIES — Images personnalisées
   ============================================================ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.category-image-wrapper {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold-soft);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: var(--color-photo-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-link:hover .category-image-wrapper {
  border-color: var(--color-brand);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(184, 137, 59, 0.25);
}

.category-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.2;
}

/* Accueil : compactage des éléments sur téléphone, sans toucher au Hero */
.promo-banner {
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .storefront-main.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .storefront-main .section-heading h2 {
    font-size: 1.1rem !important;
  }

  .storefront-main .section-heading .btn-section-link {
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
  }

  .category-image-wrapper {
    width: 60px !important;
    height: 60px !important;
  }

  .category-name {
    font-size: 0.7rem !important;
  }

  .promo-banner {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
  }

  .promo-banner-text h2 {
    font-size: 1.1rem !important;
  }

  .promo-banner-content > .button {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* Catégories : une rangée défilante sur mobile */
@media (max-width: 767px) {
  .category-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .category-grid::-webkit-scrollbar {
    display: none !important;
  }

  .category-item {
    flex: 0 0 auto !important;
    width: 70px !important;
  }

  .category-image-wrapper {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto !important;
  }

  .category-name {
    font-size: 0.65rem !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 767px) {
  .container.storefront-main {
    margin-bottom: 24px !important;
  }
}

@media (max-width: 767px) {
  .trust-banner-section {
    margin-bottom: 24px !important;
  }

  .trust-banner-item strong {
    font-size: 0.82rem !important;
  }

  .trust-banner-item p {
    font-size: 0.68rem !important;
  }

  .trust-banner-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .storefront-hero .hero-cta-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100%;
  }

  .storefront-hero .hero-cta-links .button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 40px;
    padding: 8px 6px !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
  }
}

.storefront-heading > .muted {
  color: var(--color-text) !important;
  font-size: 1rem !important;
  font-weight: 500;
  line-height: 1.5;
}

.catalogue-banner {
  padding: 32px 24px !important;
}

.catalogue-banner-content {
  gap: 18px !important;
}

.catalogue-banner-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem) !important;
}

.catalogue-banner-actions {
  flex-direction: row !important;
  gap: 10px !important;
}

.catalogue-banner-actions .button {
  min-height: 42px;
  padding: 9px 16px !important;
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .storefront-heading > .muted {
    font-size: 0.95rem !important;
  }

  .catalogue-banner {
    padding: 22px 16px !important;
  }

  .catalogue-banner-content {
    gap: 14px !important;
  }

  .catalogue-banner-text h2 {
    font-size: 1.15rem !important;
  }

  .catalogue-banner-text > p:not(.eyebrow) {
    font-size: 0.8rem !important;
  }

  .catalogue-banner-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100%;
  }

  .catalogue-banner-actions .button {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px;
    padding: 8px 6px !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
  }
}
