/*
Theme Name: Nos Délices
Theme URI: https://nosdelices.fr
Author: Nos Délices
Description: Thème sur mesure pour l'épicerie fine Nos Délices, avec WooCommerce intégré.
Version: 1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: Propriétaire
Text Domain: nos-delices
*/

/* ===========================
   NOS DÉLICES — Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cream:        #F8F5EE;
  --white:        #FFFFFF;
  --dark:         #1C1B18;
  --olive:        #2D0A1F;
  --olive-mid:    #5C1040;
  --olive-light:  #8B3560;
  --gold:         #C4287A;
  --gold-light:   #D9619F;
  --gold-pale:    #F9EDF4;
  --beige:        #EDE6D8;
  --beige-dark:   #D6CBBA;
  --text-muted:   #7A7A6E;
  --border:       #DDD7C8;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.35s var(--ease);
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans) !important;
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif) !important;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); }

.eyebrow {
  font-family: var(--font-sans) !important;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Container ─────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 2rem; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans) !important;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-dark   { background: var(--dark);  color: var(--cream); }
.btn-dark:hover { background: var(--olive); }
.btn-olive  { background: var(--olive); color: var(--cream); }
.btn-olive:hover { background: var(--dark); }
.btn-gold   { background: var(--gold);  color: var(--cream); }
.btn-gold:hover { background: #a81e65; }
.btn-ghost  { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--cream); }

.btn-arrow::after { content: '→'; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(5px); }

/* ── Divider ornament ──────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.ornament-line { flex: 0 0 50px; height: 1px; background: var(--gold); opacity: 0.5; }
.ornament svg { color: var(--gold); opacity: 0.6; }


/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  transition: all 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(248,245,238,0.97);
  backdrop-filter: blur(12px);
  height: 72px;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif) !important;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo em { font-style: normal !important; color: #ffffff !important; }
.nav.scrolled .nav-logo { color: var(--dark); }
.nav.scrolled .nav-logo em { font-style: normal !important; color: var(--dark) !important; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  padding: 0;
  margin: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--dark); }

/* Dropdown simple */
.mega-parent-simple { position: relative; }
.simple-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  list-style: none;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(-6px);
  z-index: 900;
}
.simple-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.simple-dropdown li a {
  display: block !important;
  padding: 0.6rem 1.2rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.78rem !important;
  color: #000 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.simple-dropdown li a::after { display: none !important; }
.simple-dropdown li a:hover { background: var(--cream); color: var(--gold) !important; }

/* ── Mega menu ───────────────────────────────────────────── */
.mega-parent { position: static !important; }

.mega-menu {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--white);
  display: flex;
  justify-content: center;
  border-top: 2px solid var(--gold);
  box-shadow: 0 12px 48px rgba(0,0,0,0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 900;
}
.mega-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Colonnes */
.mega-col {
  flex: 1;
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }

/* Titre de colonne */
.mega-col-title {
  display: block;
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #000 !important;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}
.mega-col-title:hover { color: var(--gold) !important; }

/* Sous-catégories */
.mega-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-sub li { margin: 0; }
.mega-sub a,
.mega-sub a:visited,
.mega-sub li a {
  display: block !important;
  font-family: var(--font-sans) !important;
  font-size: 0.78rem !important;
  color: #000 !important;
  text-decoration: none !important;
  padding: 0.35rem 0 !important;
  letter-spacing: 0.04em;
  transition: color 0.2s, padding-left 0.2s;
}
.mega-sub a::after,
.mega-sub li a::after { display: none !important; }
.mega-sub a:hover,
.mega-sub li a:hover {
  color: var(--gold) !important;
  padding-left: 6px !important;
}

/* Labels de section dans mega menu (Vins, Spiritueux…) */
.mega-section-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 1rem 0 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed rgba(196,40,122,0.25);
}
.mega-section-label:first-of-type { margin-top: 0; }
.mega-section-label svg { opacity: 0.75; flex-shrink: 0; }

/* 6 colonnes mega menu quand Alcool+Sans Alcool sont séparées */
.mega-menu { padding: 0 1rem; }
.mega-col { min-width: 0; flex: 1; padding: 1.5rem 1rem; }

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}
.nav-icon svg { pointer-events: none; }
.nav.scrolled .nav-icon { color: var(--text-muted); }
.nav-icon:hover { color: var(--gold) !important; }
.nav-account { position: relative; }
.nav-account-dot {
  position: absolute;
  top: -2px; right: -3px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.nav.scrolled .nav-account-dot { border-color: var(--cream); }

.cart-badge {
  position: absolute;
  top: -3px; right: -5px;
  background: var(--gold);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  width: 15px; height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--cream);
  transition: all var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-overlay.open { display: flex !important; }
.nav-overlay a {
  font-family: var(--font-serif) !important;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--gold-light); }
.nav-overlay-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.nav-overlay-close:hover { color: var(--cream); }

/* Legacy (corrigé) */

/* ════════════════════════════════════════
   SECTION HEADER
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-overlay.open { display: flex !important; }
.nav-overlay a {
  font-family: var(--font-serif) !important;
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--gold-light); }
.nav-overlay-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  line-height: 1;
  transition: color var(--transition);
}
.nav-overlay-close:hover { color: var(--cream); }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(191,146,64,0.18) 0%, transparent 55%),
    url('images/epicerie.jpg') center/cover no-repeat,
    linear-gradient(160deg, #0E1A0C 0%, #1C2E18 35%, #2D3F28 65%, #1A2615 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(58,69,48,0.5) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(26,38,21,0.6) 0%, transparent 45%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(10,18,8,0.88) 0%,
    rgba(10,18,8,0.62) 55%,
    rgba(10,18,8,0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.hero-content .eyebrow { color: var(--gold-light); margin-bottom: 1.6rem; }
.hero-content h1 {
  color: var(--cream) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  max-width: 22ch;
  margin-bottom: 1.6rem;
  line-height: 1.15;
}
.hero-content h1 strong {
  font-style: normal !important;
  font-weight: 400 !important;
  color: var(--gold-light) !important;
}
.hero-content .hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 44ch;
  margin-bottom: 2.8rem;
  font-weight: 300;
  line-height: 1.85;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(1); opacity: 0.5; }
  50%  { transform: scaleY(0.7); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.5; }
}


/* ════════════════════════════════════════
   MARQUEE
════════════════════════════════════════ */
.marquee-band {
  background: var(--gold);
  padding: 0.9rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqueeAnim 28s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  padding: 0 3rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.marquee-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.55); flex-shrink: 0; }
@keyframes marqueeAnim {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════ */
.page-hero {
  padding: 11rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0E1A0C 0%, #1C2E18 40%, #2D3F28 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(191,146,64,0.12) 0%, transparent 65%);
}
.page-hero .eyebrow { color: var(--gold-light); margin-bottom: 1rem; position: relative; }
.page-hero h1 { color: var(--cream) !important; font-weight: 300 !important; font-style: italic !important; position: relative; }
.page-hero p {
  position: relative;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  max-width: 52ch;
  margin: 1rem auto 0;
  line-height: 1.8;
}


/* ════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .eyebrow { margin-bottom: 0.8rem; }
.section-header h2 { font-weight: 300; font-style: italic; }
.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 52ch;
  margin: 1rem auto 0;
  line-height: 1.85;
}
.section-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
  opacity: 0.6;
}


/* ════════════════════════════════════════
   CATEGORIES / UNIVERSE
════════════════════════════════════════ */
.universe { padding: 7rem 0; background: var(--cream); }
.universe-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
.uni-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.uni-card:first-child { grid-row: span 2; }
.uni-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}
.uni-card:hover .uni-bg { transform: scale(1.07); }
/* Overlay général */
.uni-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,10,31,0.85) 0%, rgba(45,10,31,0.25) 60%);
  transition: background var(--transition);
}
.uni-card:hover /* Overlay général */
.uni-overlay {
  background: linear-gradient(to top, rgba(45,10,31,0.92) 0%, rgba(45,10,31,0.35) 60%);
}
.uni-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 280px;
  padding: 2rem 2.2rem;
}
.uni-card:first-child .uni-content { min-height: 580px; padding: 3rem; }
.uni-content .eyebrow { color: var(--gold-light); margin-bottom: 0.5rem; }
.uni-content h3 { color: var(--cream) !important; font-weight: 300 !important; }
.uni-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), gap var(--transition);
}
.uni-link::after { content: '→'; transition: transform var(--transition); }
.uni-card:hover .uni-link { color: var(--gold-light); gap: 0.8rem; }
.uni-card:hover .uni-link::after { transform: translateX(3px); }

/* Universe card backgrounds */
.uni-c1 {
  background:
    linear-gradient(145deg, rgba(26,45,20,0.55), rgba(58,82,40,0.45), rgba(74,106,56,0.5)),
    url('images/bg-boissons.jpg') center/cover no-repeat;
}
.uni-c2 {
  background:
    linear-gradient(145deg, rgba(45,26,8,0.55), rgba(90,58,24,0.45), rgba(122,82,40,0.5)),
    url('images/bg-sale.jpg') center/cover no-repeat;
}
.uni-c3 {
  background:
    linear-gradient(145deg, rgba(14,31,45,0.55), rgba(26,56,72,0.45), rgba(42,80,104,0.5)),
    url('images/bg-sucre.jpg') center/cover no-repeat;
}
.uni-c4 { background: linear-gradient(145deg, #2D200E, #5A4020, #7A5A30); }
.uni-c4[style] { background-size: cover !important; background-position: center 60% !important; }
.uni-c5 { background: linear-gradient(145deg, #1A2A1A, #354A30, #4A6040); }
.uni-c5[style] { background-size: cover !important; background-position: center 35% !important; }


/* ════════════════════════════════════════
   PRODUCT CARDS
════════════════════════════════════════ */
.featured { padding: 7rem 0; background: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.product-card { position: relative; cursor: pointer; }
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 1.3rem;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  z-index: 1;
}

.product-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  z-index: 1;
}
.product-card:hover .product-actions { transform: translateY(0); }
.product-actions a {
  font-size: 0.65rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream) !important;
}
.product-actions a:hover { color: var(--gold-light) !important; }

.product-cat {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.product-name {
  font-family: var(--font-serif) !important;
  font-size: 1.12rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.product-name a { color: var(--dark); }
.product-price { font-family: var(--font-serif) !important; font-size: 1.08rem; color: var(--dark); }


/* ════════════════════════════════════════
   STORY SECTION
════════════════════════════════════════ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 620px;
}
.story-image { overflow: hidden; position: relative; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 6rem;
  background: var(--cream);
}
.story-content .eyebrow { margin-bottom: 1.2rem; }
.story-content h2 { font-weight: 300 !important; font-style: italic !important; margin-bottom: 1.6rem; }
.story-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.95;
  margin-bottom: 0.9rem;
}
.story-sig {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--olive);
  margin-top: 2rem;
  line-height: 1.2;
}
.story-sig small {
  display: block;
  font-family: var(--font-sans) !important;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}


/* ════════════════════════════════════════
   STATS
════════════════════════════════════════ */
.stats { background: var(--olive); padding: 4rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif) !important;
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}


/* ════════════════════════════════════════
   NEWSLETTER
════════════════════════════════════════ */
.newsletter {
  background: var(--dark);
  padding: 6rem 0;
  text-align: center;
}
.newsletter .eyebrow { color: var(--gold-light); margin-bottom: 1rem; }
.newsletter h2 { color: #fff !important; font-weight: 300 !important; font-style: italic !important; margin-bottom: 1rem; }
.newsletter p { color: rgba(255,255,255,.55); font-size: 0.92rem; max-width: 44ch; margin: 0 auto 2.5rem; }
.nl-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.12);
}
.nl-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.2rem;
  color: #fff;
  font-family: var(--font-sans) !important;
  font-size: 0.85rem;
  outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form button {
  background: var(--gold);
  border: none;
  padding: 0 1.5rem;
  color: #fff;
  font-family: var(--font-sans) !important;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--transition);
  white-space: nowrap;
}
.nl-form button:hover { background: #a81e65; }


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: #141410;
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 4rem;
  padding: 5rem 0 3.5rem;
}
.f-logo {
  font-family: var(--font-serif) !important;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.f-logo em { font-style: normal; color: var(--gold); }
.footer-brand p {
  color: rgba(255,255,255,0.38);
  font-size: 0.84rem;
  line-height: 1.9;
  max-width: 30ch;
  margin-bottom: 2rem;
}
.f-social { display: flex; gap: 0.7rem; }
.f-social a {
  width: 2.1rem; height: 2.1rem;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  transition: all var(--transition);
}
.f-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 {
  font-family: var(--font-sans) !important;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; padding: 0; }
.footer-col ul a {
  color: rgba(255,255,255,0.38);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.f-contact-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.38);
  font-size: 0.83rem;
  line-height: 1.5;
}
.f-contact-icon { color: var(--gold); flex-shrink: 0; font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 0.75rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.25); font-size: 0.75rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }


/* ════════════════════════════════════════
   SHOP / PRODUITS
════════════════════════════════════════ */
.products-page { padding: 5rem 0 7rem; }
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}
.sidebar { position: sticky; top: 6rem; }
.sidebar-block { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.sidebar-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-title {
  font-family: var(--font-sans) !important;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.filter-list { display: flex; flex-direction: column; gap: 0.55rem; padding: 0; }
.filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color var(--transition);
}
.filter-item:hover, .filter-item.active { color: var(--olive); }
.filter-item.active { font-weight: 500; }
.filter-count { font-size: 0.7rem; color: var(--beige-dark); }
.filter-item.active .filter-count { color: var(--gold); }

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.products-count { font-size: 0.82rem; color: var(--text-muted); }
.sort-select {
  font-family: var(--font-sans) !important;
  font-size: 0.82rem;
  color: var(--dark);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 2rem 0.5rem 0.9rem;
  outline: none;
  cursor: pointer;
}
.products-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


/* ════════════════════════════════════════
   CAT HERO (WooCommerce category pages)
════════════════════════════════════════ */
.cat-hero {
  position: relative; height: 420px;
  display: flex; align-items: flex-end; overflow: hidden;
  margin-top: 80px;
}
.cat-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cat-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,6,4,0.92) 0%, rgba(8,6,4,0.4) 60%, rgba(8,6,4,0.15) 100%);
}
.cat-hero-content { position: relative; z-index: 2; padding: 0 80px 48px; width: 100%; }
.cat-hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff !important; font-weight: 400 !important; font-style: normal !important; margin: 8px 0; }
.cat-hero-content p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 520px; }

/* Shop layout */
.shop-page { padding: 60px 0 80px; }
.shop-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }


/* ════════════════════════════════════════
   WOOCOMMERCE OVERRIDES
════════════════════════════════════════ */
.woocommerce-page .woocommerce { max-width: 1400px; margin: 0 auto; padding: 2rem 2rem; }

/* Masquer sidebar, tri, compteur */
.woocommerce-result-count,
.woocommerce-ordering,
.shop-layout .sidebar,
.products-toolbar { display: none !important; }

/* ── Grille produits premium — 4 colonnes ── */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.5rem 1.8rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  align-items: start !important;
}

/* Item : pas de card, pas de fond, pas d'ombre */
.nd-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Zone image — grande, aérée */
.nd-item-img-link {
  display: block;
  width: 100%;
  text-decoration: none;
}
.nd-item-img-zone {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 1.8rem;
}
.nd-item-img {
  width: 75% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nd-item:hover .nd-item-img {
  transform: scale(1.05) translateY(-6px);
}

/* Bloc texte — centré, aéré */
.nd-item-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Catégorie */
.nd-item-cat {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* Nom */
.nd-item-name {
  font-family: var(--font-serif) !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.65rem !important;
  color: var(--dark) !important;
}
.nd-item-name a {
  color: var(--dark) !important;
  text-decoration: none !important;
}
.nd-item-name a:hover { color: var(--gold) !important; }

/* Prix */
.nd-item-price {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.nd-item-price .woocommerce-Price-amount { color: var(--dark); }

/* Bouton */
.nd-item-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  color: var(--dark) !important;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid var(--dark);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}
.nd-item-btn:hover {
  background: var(--dark);
  color: #fff !important;
  border-color: var(--dark);
}

/* Fallback WC */
.woocommerce ul.products li.product .button:hover {
  background: var(--dark) !important;
  color: var(--gold) !important;
}

/* Pagination */
.woocommerce-pagination { margin-top: 3rem; text-align: center; }

/* ════════════════════════════════════════
   PAGE PRODUIT SINGLE
════════════════════════════════════════ */

/* Breadcrumb */
.sp-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 2rem 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sp-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.sp-breadcrumb a:hover { color: var(--dark); }
.sp-breadcrumb span:last-child { color: var(--dark); font-weight: 500; }

/* Layout principal */
.sp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

/* ── GALERIE ── */
.sp-gallery { position: sticky; top: 100px; }

.sp-main-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sp-main-img {
  width: 70%;
  height: 90%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}
.sp-main-img-wrap:hover .sp-main-img { transform: scale(1.03); }

.sp-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.sp-thumb {
  width: 72px;
  height: 72px;
  background: var(--cream);
  border: 2px solid transparent;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-thumb:hover,
.sp-thumb-active { border-color: var(--gold); }

/* ── INFO PRODUIT ── */
.sp-info { padding-top: 1rem; }

.sp-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 1rem;
}
.sp-cat:hover { color: var(--dark); }

.sp-title {
  font-family: var(--font-serif) !important;
  font-size: 2.4rem !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  color: var(--dark) !important;
  margin: 0 0 1.5rem !important;
}

.sp-ornament {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.sp-ornament-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sp-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1.8rem;
}
.sp-price .woocommerce-Price-amount { color: var(--dark); }
.sp-price del { font-size: 1.1rem; color: var(--text-muted); margin-right: 0.5rem; }
.sp-price ins { text-decoration: none; color: var(--dark); }

.sp-short-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.sp-short-desc p { margin: 0; }

/* Formulaire ATC */
.sp-atc-wrap { margin-bottom: 2rem; }

.sp-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sp-qty-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}
.sp-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.sp-qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-qty-btn:hover { background: var(--cream); }
.sp-qty-input {
  width: 52px !important;
  height: 40px !important;
  text-align: center !important;
  border: none !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  background: #fff !important;
  -moz-appearance: textfield !important;
}
.sp-qty-input::-webkit-outer-spin-button,
.sp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.sp-btn-atc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--dark);
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}
.sp-btn-atc:hover {
  background: transparent;
  color: var(--dark) !important;
}
.sp-out-of-stock {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--border);
}

/* Tags producteur */
.sp-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.sp-tags-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sp-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--dark);
  font-weight: 500;
}

/* Assurances */
.sp-assurances {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.sp-assurance-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sp-assurance-item svg { color: var(--gold); flex-shrink: 0; }

/* ── DESCRIPTION ── */
.sp-desc-section {
  background: var(--cream);
  padding: 5rem 2rem;
}
.sp-desc-inner {
  max-width: 760px;
  margin: 0 auto;
}
.sp-desc-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.sp-desc-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.sp-desc-text p { margin-bottom: 1rem; }
.sp-desc-text strong { color: var(--dark); font-weight: 600; }

/* ── PRODUITS LIÉS ── */
.sp-related {
  padding: 5rem 0 6rem;
  background: #fff;
}
.sp-related-header { text-align: center; margin-bottom: 3rem; }
.sp-related-title {
  font-family: var(--font-serif) !important;
  font-size: 1.8rem !important;
  font-weight: 300 !important;
  color: var(--dark) !important;
  margin: 0 !important;
}
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: start;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sp-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .sp-gallery { position: static; }
  .sp-title { font-size: 1.8rem !important; }
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .sp-title { font-size: 1.5rem !important; }
}

/* ════════════════════════════════════════
   PANIER
════════════════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--cream);
  padding: 8px;
}
.cart-item-name {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  margin: 0 !important;
}
.cart-item-name a { color: var(--dark); text-decoration: none; }
.cart-item-name a:hover { color: var(--gold); }
.cart-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.cart-item-qty input {
  width: 56px;
  text-align: center;
  border: 1px solid var(--border);
  padding: 6px;
  font-family: var(--font-serif);
  font-size: 1rem;
}
.cart-item-price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.cart-item-remove .remove {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.cart-item-remove .remove:hover { color: var(--dark); }

/* Récapitulatif */
.cart-summary-inner {
  background: var(--cream);
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.cart-summary-inner h2 {
  font-family: var(--font-serif) !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-totals th, .cart-totals td {
  font-family: var(--font-serif) !important;
  font-size: 0.95rem !important;
  padding: 0.6rem 0 !important;
  border: none !important;
  background: none !important;
}
.cart-totals .order-total td, .cart-totals .order-total th {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border-top: 1px solid var(--border) !important;
  padding-top: 1rem !important;
}
.woocommerce-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 32px; }
.woocommerce-breadcrumb a { color: var(--gold); }


/* ════════════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════════════ */
.nav-search-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,18,8,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-close {
  position: absolute;
  top: 2rem; right: 2.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
}
.search-close:hover { color: #fff; }

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 2rem;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.search-overlay.open .search-overlay-inner { transform: translateY(0); }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--gold);
  padding: 0.8rem 0;
  margin-bottom: 1.5rem;
}
.search-input-wrap svg { color: var(--gold); flex-shrink: 0; }
.search-input-wrap input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  width: 100%;
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }

/* Suggestions live */
.search-suggestions {
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
}
.search-suggestions.visible { display: flex; }
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.search-suggestion:hover { background: rgba(255,255,255,0.07); }
.search-suggestion img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--cream);
  flex-shrink: 0;
  padding: 4px;
}
.search-suggestion-info { flex: 1; }
.search-suggestion-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.search-suggestion-price {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--gold);
}
.search-no-result {
  padding: 1rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  text-align: center;
}

.search-submit {
  display: block;
  margin: 0 auto;
  background: var(--gold);
  color: var(--dark);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-submit:hover { background: #fff; }

/* ════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Explosion pour les cartes catégorie */
.uni-card {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.uni-card.revealed {
  opacity: 1;
  transform: scale(1);
}
.uni-card:nth-child(1) { transition-delay: 0s; }
.uni-card:nth-child(2) { transition-delay: 0.08s; }
.uni-card:nth-child(3) { transition-delay: 0.16s; }
.uni-card:nth-child(4) { transition-delay: 0.24s; }
.uni-card:nth-child(5) { transition-delay: 0.32s; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .universe-grid { grid-template-columns: 1fr 1fr 1fr; }
  .uni-card:first-child { grid-row: span 1; grid-column: span 2; }
  .uni-card:first-child .uni-content { min-height: 380px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 4rem 2rem !important; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .story { grid-template-columns: 1fr; }
  .story-image { height: 380px; }
  .story-content { padding: 4rem 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .products-main-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .cat-hero-content { padding: 0 30px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { padding: 0 1.5rem; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 3rem 1.5rem !important; padding: 0 20px !important; }
  .woocommerce-page .woocommerce { padding: 30px 20px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 2.8rem; }
  .universe-grid { grid-template-columns: 1fr; }
  .uni-card:first-child { grid-column: span 1; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════

/* ══════════════════════════════════════════════════════
   FLIP CARD v3 — opacity + visibility (garanti 100%)
   ══════════════════════════════════════════════════════ */

.nd-flip {
  position: relative;
  width: 100%;
  padding-bottom: 150%;   /* ratio 2:3 boutique */
  margin-bottom: 1.8rem;
  cursor: pointer;
  overflow: hidden;       /* empêche tout débordement */
}
.nd-flip--cover {
  padding-bottom: 133.33%; /* ratio 3:4 accueil */
  margin-bottom: 1.3rem;
}

/* Les deux faces superposées, occupent 100% de la zone */
.nd-flip-front,
.nd-flip-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

/* Face avant : visible par défaut */
.nd-flip-front {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg);
  z-index: 2;
  background: var(--cream);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nd-flip-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nd-flip--cover .nd-flip-front img {
  object-fit: cover;
}
.nd-flip-front .product-badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 3;
}

/* Face arrière : cachée par défaut */
.nd-flip-back {
  opacity: 0;
  visibility: hidden;
  transform: rotateY(180deg);
  z-index: 1;
  background: var(--olive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.5rem;
}
.nd-flip-back p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream);
  text-align: center;
  margin: 0;
}

/* === AU SURVOL (desktop) ou clic (mobile) === */

/* Face avant disparaît */
.nd-flip:hover .nd-flip-front,
.is-flipped .nd-flip-front {
  opacity: 0;
  visibility: hidden;
  transform: rotateY(-180deg);
  z-index: 1;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

/* Face arrière apparaît */
.nd-flip:hover .nd-flip-back,
.is-flipped .nd-flip-back {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg);
  z-index: 2;
  pointer-events: all;
  transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s, visibility 0s;
}

/* Bouton sur la face arrière */
.nd-flip-btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: var(--cream) !important;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid rgba(248,245,238,0.55);
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
  z-index: 5;
  cursor: pointer;
}
.nd-flip-btn:hover {
  background: var(--cream);
  color: var(--olive) !important;
  border-color: var(--cream);
}

/* ── Footer réorganisé ── */
.f-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.75; margin-bottom: 1.4rem; }
.f-horaires { display: flex; flex-direction: column; gap: 0; }
.f-horaire-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); margin-bottom: 2px; }
.f-horaire-row:last-child { border-bottom: none; }
.f-jour { font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 400; }
.f-heure { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-align: right; }
.f-ferme { opacity: 0.4; } .f-ferme .f-heure { font-style: italic; }
.f-contact-icon { color: var(--gold); flex-shrink: 0; }
.f-contact-row a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.f-contact-row a:hover { color: var(--gold); }

/* ── Mini map footer ── */
.f-minimap { overflow: hidden; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08); }
.f-minimap iframe { display: block; filter: grayscale(30%) contrast(1.1); }

/* ── Plan du site footer ── */
.f-sitemap { display: flex; flex-direction: column; gap: 0; }
.f-sitemap-section { border-bottom: 1px solid rgba(255,255,255,.06); padding: .45rem 0; }
.f-sitemap-section:last-child { border-bottom: none; }
.f-sitemap-main {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
  font-weight: 400;
}
.f-sitemap-main:hover { color: var(--gold); }
.f-sitemap-sub {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: .35rem;
  padding-left: .9rem;
  border-left: 1px solid rgba(255,255,255,.1);
}
.f-sitemap-sub a {
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .2s;
}
.f-sitemap-sub a:hover { color: var(--gold); }

/* ── Plan du site visuel ── */
.f-sitemap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
}
.f-sitemap-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .7rem .4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  text-align: center;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1.2;
}
.f-sitemap-card:hover {
  background: rgba(196,40,122,.12);
  border-color: var(--gold);
  color: #fff;
}
.f-sitemap-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background .2s;
}
.f-sitemap-card:hover .f-sitemap-icon {
  background: rgba(196,40,122,.2);
}

/* ── Horaires : plus d'espace ── */
.f-horaire-row-dyn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 1rem;
}

/* ── Newsletter tags ── */
.nl-tags { display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin:1.5rem 0 2rem; }
.nl-tags span { padding:.4rem 1rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:20px;font-size:.75rem;color:rgba(255,255,255,.7);letter-spacing:.04em; }


/* ════════════════════════════════════════════════════════════
   MOBILE FIXES  (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Containers ───────────────────────────────────── */
  .container, .container-sm {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }

  /* ── Hero homepage ────────────────────────────────── */
  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.5rem) !important;
    line-height: 1.2 !important;
    padding: 0 .5rem;
  }
  .hero-sub {
    font-size: .88rem !important;
    line-height: 1.7 !important;
    padding: 0 .5rem;
  }
  .hero-actions { flex-direction: column; gap: .8rem; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* ── Marquee ──────────────────────────────────────── */
  .marquee-band { padding: 1.2rem 0; }
  .marquee-item { font-size: .7rem; }

  /* ── Quote / citation ─────────────────────────────── */
  .quote-section blockquote,
  blockquote.quote { font-size: 1.1rem !important; line-height: 1.5 !important; }

  /* ── Universe grid (5 catégories) ─────────────────── */
  .universe-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: .8rem !important;
  }
  .uni-card:first-child {
    grid-row: auto !important;
    grid-column: span 2 !important;
  }
  .uni-card:first-child .uni-content { min-height: 280px !important; }
  .uni-content { min-height: 180px !important; padding: 1.2rem !important; }
  .uni-title { font-size: 1.2rem !important; }
  .uni-desc  { font-size: .78rem !important; }

  /* ── Cartes produits phares (flip) ────────────────── */
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 1.2rem !important; }

  /* ── Section histoire (homepage) ──────────────────── */
  .hs-inner { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .hs-image { height: 280px !important; }
  .hs-content { padding: 2rem 0 !important; }
  .hs-content h2 { font-size: 1.6rem !important; }

  /* ── Quiz section ─────────────────────────────────── */
  .quiz-section h2,
  section h2 { padding: 0 .5rem; }

  /* ── Réseaux sociaux ──────────────────────────────── */
  .nd-social-cols { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .nd-social iframe { max-height: 500px !important; }
  .nd-insta-grid { grid-template-columns: repeat(3, 1fr) !important; gap: .3rem !important; }

  /* ── Avis Google ──────────────────────────────────── */
  .nd-review-card { width: 260px !important; }

  /* ── Section Horaires (homepage) ──────────────────── */
  section[style*="background:var(--cream);padding:4rem 0"] > .container > div,
  section[style*="background:var(--cream)"] > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* ── Newsletter ───────────────────────────────────── */
  .newsletter { padding: 4rem 1rem !important; }
  .newsletter h2 { font-size: 1.8rem !important; }
  .nl-form {
    flex-direction: column !important;
    border: none !important;
    gap: .6rem !important;
  }
  .nl-form input {
    border: 1px solid rgba(255,255,255,.2) !important;
    padding: 1rem !important;
    width: 100%;
  }
  .nl-form button { padding: 1rem !important; width: 100%; }

  /* ── Producteurs page (toutes les lignes producteurs) ─ */
  .producer-row,
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
    padding: 2.5rem 0 !important;
  }
  /* Forcer l'image TOUJOURS en premier (en haut), texte en dessous */
  .producer-row { display: flex !important; flex-direction: column !important; }
  .producer-row > div:has(img) { order: -1 !important; }
  .producer-row > div:not(:has(img)) { order: 1 !important; }
  /* Images producteurs : forcer hauteur correcte */
  .producer-row img,
  [style*="grid-template-columns:1fr 1fr"] img {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
    object-fit: cover;
  }

  /* ── Page Notre Histoire timeline ─────────────────── */
  .nh-entry { grid-template-columns: 1fr !important; gap: 1rem !important; padding: 0 .5rem; }
  .nh-title { font-size: 1.3rem !important; line-height: 1.3 !important; }
  .nh-year  { font-size: 2.5rem !important; }
  .nh-valeurs { grid-template-columns: 1fr !important; gap: 1.2rem !important; }
  .nh-valeur-text { font-size: .9rem !important; }

  /* ── Page Contact ─────────────────────────────────── */
  .contact-layout { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .cf-row-2 { grid-template-columns: 1fr !important; }
  .contact-map { height: 280px !important; }
  .contact-map-label { font-size: .55rem !important; padding: .6rem 1rem !important; }

  /* ── Page À Saluté ────────────────────────────────── */
  #hero { min-height: auto !important; padding: 5rem 0 3rem !important; }
  .hero-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2rem 1.5rem !important;
    text-align: center;
  }
  .hero-title { font-size: clamp(3rem, 14vw, 4.5rem) !important; }
  .hero-desc { font-size: .95rem !important; margin: 0 auto 2rem !important; }
  .hero-bottle-wrap {
    position: relative !important;
    right: auto !important; top: auto !important;
    transform: none !important;
    width: 70% !important; margin: 2rem auto 0 !important;
  }
  .hero-cta { flex-direction: column !important; gap: 1rem !important; align-items: center; }

  /* ── Page CGV ─────────────────────────────────────── */
  .cgv-wrap { padding: 3rem 1.2rem 4rem !important; }
  .cgv-hero h1 { font-size: 1.8rem !important; }
  .cgv-hero .cgv-info { flex-direction: column; gap: 1.2rem !important; }
  .cgv-toc { padding: 1.5rem !important; }
  .cgv-toc ol { grid-template-columns: 1fr !important; padding-left: 1rem !important; }
  .cgv-article h2 { font-size: 1.15rem !important; }
  .cgv-article p, .cgv-article ul li { font-size: .88rem !important; }

  /* ── Footer ───────────────────────────────────────── */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }
  .footer-col ul { align-items: center; }
  .f-sitemap-grid { grid-template-columns: 1fr 1fr !important; gap: .6rem !important; }
  .f-social { justify-content: center; }
  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center;
  }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* ── Cartes produits boutique : plus rapprochées ──── */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem .6rem !important;
    padding: 0 .8rem !important;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: .9rem !important;
    padding: .8rem 0 .2rem !important;
  }
  .woocommerce ul.products li.product .price { font-size: .82rem !important; }
  .woocommerce ul.products li.product .button {
    padding: .7rem !important;
    font-size: .58rem !important;
  }

  /* ── Boutons / CTA partout ────────────────────────── */
  .btn { font-size: .68rem !important; padding: .9rem 1.6rem !important; }

  /* ── Titres de section ────────────────────────────── */
  section h2 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; line-height: 1.25 !important; }

  /* ── Empêcher overflow horizontal ─────────────────── */
  html, body { overflow-x: hidden !important; }
}

/* ════════════════════════════════════════════════════════════
   PETITS ÉCRANS  (≤ 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .universe-grid { grid-template-columns: 1fr !important; }
  .uni-card:first-child { grid-column: span 1 !important; }
  .products-grid { grid-template-columns: 1fr !important; }
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
  .nd-insta-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .f-sitemap-grid { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 1.7rem !important; }
}




/* ════════════════════════════════════════
   SHOP SIDEBAR V2 - inspiré épicerie fine
════════════════════════════════════════ */
.shop-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem !important;
  align-items: flex-start !important;
  width: 100% !important;
}
.shop-sidebar {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  position: sticky;
  top: 100px;
}
.shop-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

/* Section (facet) */
.shop-facet {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.4rem 1.3rem;
  margin-bottom: 0.9rem;
}
.shop-facet-title {
  font-family: var(--font-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 1rem !important;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

/* Liste de filtres (Producteurs, Prix, Stock) */
.shop-facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}
.shop-facet-list::-webkit-scrollbar { width: 6px; }
.shop-facet-list::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 3px; }
.shop-facet-list li { margin: 0; padding: 0; }

.shop-facet-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted, #777);
  text-decoration: none;
  transition: color 0.15s;
}
.shop-facet-link:hover { color: var(--gold); }

.shop-facet-check {
  width: 14px; height: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.shop-facet-link:hover .shop-facet-check { border-color: var(--gold); }
.shop-facet-link.is-active .shop-facet-check {
  background: var(--gold);
  border-color: var(--gold);
}
.shop-facet-link.is-active .shop-facet-check::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.shop-facet-link.is-active {
  color: var(--gold);
  font-weight: 500;
}

.shop-facet-name { flex: 1; }
.shop-facet-count {
  font-size: 0.72rem;
  color: var(--beige-dark, #b0a48f);
  font-weight: 400;
}

/* Réinitialiser */
.shop-facet-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.5rem 0;
  cursor: pointer;
}
.shop-facet-reset:hover { color: var(--dark); }

/* Catégories tree (réutilise styles existants si présents) */
.shop-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-cat-list.depth-0 > li > .shop-cat-link.shop-cat-root {
  font-weight: 600 !important;
  color: var(--dark);
  font-size: 0.88rem;
}
.shop-cat-list.depth-1 {
  margin-left: 0; padding-left: 0.8rem;
  border-left: 1px solid var(--border);
  margin-top: 0.4rem; margin-bottom: 0.4rem;
}
.shop-cat-list.depth-2 {
  margin-left: 0; padding-left: 0.7rem;
  border-left: 1px solid var(--border);
  margin-top: 0.3rem; margin-bottom: 0.3rem;
}
.shop-cat-item { margin: 0; padding: 0; }
.shop-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.42rem 0;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text-muted, #777);
  text-decoration: none;
  transition: color 0.15s;
}
.shop-cat-link:hover { color: var(--gold); }
.shop-cat-item.is-current > .shop-cat-link { color: var(--gold); font-weight: 500; }
.shop-cat-item.is-open > .shop-cat-link { color: var(--dark); font-weight: 500; }
.shop-cat-count {
  font-size: 0.72rem;
  color: var(--beige-dark, #b0a48f);
  font-weight: 400;
}

/* Toggle mobile */
.shop-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  margin-bottom: 1rem;
  cursor: pointer;
}

.shop-main { min-width: 0; }

@media (max-width: 768px) {
  /* Boutique : catégories EN HAUT (pleine largeur), produits EN DESSOUS */
  .shop-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
  .shop-sidebar {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    top: auto !important;
    order: 0 !important;
  }
  .shop-main {
    flex: 1 1 auto !important;
    width: 100% !important;
    order: 1 !important;
  }
  /* Produits : 2 colonnes bien visibles sur smartphone */
  .shop-main .woocommerce ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.4rem .8rem !important;
    padding: 0 !important;
  }
  /* Sidebar mobile : filtres en colonnes compactes pour ne pas être trop longs */
  .shop-sidebar .shop-facet { padding: 1rem 1.1rem !important; margin-bottom: .7rem !important; }
  .shop-filter-toggle { display: flex; }
  .shop-filters.is-open { display: block; }
}

/* ── Nav collée sous la barre admin WordPress (admin connecté) ── */
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

.sp-qty-input.qty-max-reached { animation: qtyShake .3s; border-color: var(--gold) !important; }
@keyframes qtyShake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-2px);} 75%{transform:translateX(2px);} }


/* ── Mobile : alignement propre de la barre d'actions nav ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1.1rem !important; }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    margin-left: auto;
  }
  .nav-actions .nav-icon,
  .nav-actions .nav-search-btn {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    flex-shrink: 0;
  }
  .nav-search-btn { order: 1; }
  .nav-account     { order: 2; }
  .nav-cart-count  { order: 3; }
  .nav-toggle      { order: 4; margin-left: 0.2rem; }
  /* La pastille panier bien positionnée */
  .nav-cart-count { position: relative; }
}
@media (max-width: 400px) {
  /* Sur très petits écrans, on masque le compte pour gagner de la place */
  .nav-actions .nav-account { display: none !important; }
}


/* ════════════════════════════════════════════════════════════
   MOBILE — CONFORT DE LECTURE & NAVIGATION  (couche finale)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Texte de base bien lisible */
  body { font-size: 16px; line-height: 1.65; }
  p { font-size: 0.95rem; line-height: 1.7; }

  /* Titres : grands mais pas démesurés */
  h1 { font-size: clamp(1.7rem, 7vw, 2.3rem) !important; line-height: 1.2 !important; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; line-height: 1.25 !important; }
  h3 { font-size: 1.15rem !important; }

  /* Boutons : zone de clic confortable (min 46px) */
  .btn, button, .add_to_cart_button, .single_add_to_cart_button,
  .nav-overlay a, .shop-facet-link, .shop-cat-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .btn { padding: 0.95rem 1.6rem !important; font-size: 0.72rem !important; }

  /* Menu mobile : liens lisibles, pas trop gigantesques */
  .nav-overlay { gap: 1.6rem !important; padding: 2rem; }
  .nav-overlay a { font-size: 1.7rem !important; min-height: 48px; }
  .nav-overlay-close { font-size: 2rem; top: 1.5rem; right: 1.5rem; }

  /* Icônes nav : bien cliquables */
  .nav-icon, .nav-search-btn, .nav-toggle {
    min-width: 44px; min-height: 44px;
  }

  /* Liens du footer : espacés pour le doigt */
  .footer-col ul li a,
  .footer-bottom-links a { padding: 0.35rem 0; display: inline-block; }
  .footer-col h5 { font-size: 0.7rem; margin-bottom: 0.8rem; }

  /* Fiches produits : titres/prix lisibles */
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 0.92rem !important; }
  .woocommerce ul.products li.product .price { font-size: 0.88rem !important; }

  /* Sidebar boutique : liens espacés et lisibles */
  .shop-facet-link, .shop-cat-link { font-size: 0.9rem !important; padding: 0.55rem 0 !important; }
  .shop-facet-title { font-size: 0.75rem !important; }

  /* Champs de formulaire : 16px pour éviter le zoom auto iOS */
  input, select, textarea { font-size: 16px !important; }

  /* Conteneurs : marges latérales confortables */
  .container, .container-sm { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }

  /* Sections : padding vertical réduit mais aéré */
  section { padding-top: 3rem; padding-bottom: 3rem; }

  /* Empêcher tout débordement horizontal */
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, iframe { max-width: 100%; height: auto; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem !important; }
  .nav-overlay a { font-size: 1.5rem !important; }
  .btn { width: auto; }
  /* Produits : 2 colonnes confortables */
  .woocommerce ul.products { gap: 1.4rem 0.7rem !important; }
}

/* ── Menu mobile : effet verre dépoli (transparent + flou) ── */
@media (max-width: 768px) {
  .nav-overlay {
    background: rgba(28,27,24,0.72) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
  }
  .nav-overlay a {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
  }
  .nav-overlay-close { color: rgba(255,255,255,.85) !important; }
}

/* ── Uniformiser tous les producteurs comme le Domaine Sarrabelle (desktop) ── */
@media (min-width: 769px) {
  .producer-row { align-items: center !important; }
  /* Nom du producteur en grand serif (comme Sarrabelle) */
  .producer-row h3 {
    font-family: var(--font-serif) !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    line-height: 1.15 !important;
    margin-bottom: 0.3rem !important;
    color: var(--dark) !important;
  }
  /* Images producteurs : hauteur uniforme et nette */
  .producer-row > div[style*="aspect-ratio"] {
    aspect-ratio: auto !important;
    height: 460px !important;
    overflow: hidden !important;
  }
  .producer-row img {
    height: 460px !important;
    aspect-ratio: auto !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  /* Texte producteur : lecture confortable */
  .producer-row p { font-size: 0.9rem; line-height: 1.9; }
}
