/* ============================================================
   MBOLO — Design System v2
   Inspiré de Vendora / Miniture — marketplace moderne
   Couleurs : Vert #1E6B3C · Or #C8960C · Blanc · Gris clair
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --primary:       #1E6B3C;
  --primary-dark:  #145429;
  --primary-light: #EDF7F1;
  --accent:        #C8960C;
  --accent-light:  #FDF6E3;
  --danger:        #E53E3E;
  --success:       #38A169;
  --warning:       #D69E2E;

  --white:   #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-300:#D1D5DB;
  --gray-400:#9CA3AF;
  --gray-500:#6B7280;
  --gray-600:#4B5563;
  --gray-700:#374151;
  --gray-800:#1F2937;
  --gray-900:#111827;

  --text:     var(--gray-800);
  --text-sm:  var(--gray-600);
  --text-xs:  var(--gray-400);
  --border:   var(--gray-200);
  --bg:       var(--gray-50);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);

  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-full: 9999px;

  --font-sans:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --transition:  all .2s ease;
  --transition-slow: all .35s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-sm); line-height: 1.7; }

/* ── Container ────────────────────────────────────────────── */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 1440px; margin: 0 auto; padding: 0 1.25rem; }
.container--sm   { max-width: 960px;  margin: 0 auto; padding: 0 1.25rem; }

/* ── Flex & Grid helpers ──────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.items-center{ align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: .75rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--primary);
  color: rgba(255,255,255,.95);
  text-align: center;
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.announcement-bar a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.announcement-bar a:hover { color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
#mbolo-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Header main row */
.header-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 0;
}

/* Logo */
.mbolo-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.mbolo-logo__icon { width: 44px; height: 44px; }
.mbolo-logo__wordmark {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.5px;
  line-height: 1;
}
.mbolo-logo__sub {
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 620px;
}
.header-search__inner {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--gray-50);
  overflow: hidden;
  transition: var(--transition);
}
.header-search__inner:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30,107,60,.08);
}
.header-search__cat {
  padding: 0 .9rem;
  border: none;
  background: none;
  border-right: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  min-width: 130px;
  outline: none;
}
.header-search__input {
  flex: 1;
  border: none;
  background: none;
  padding: .65rem 1rem;
  font-size: .9rem;
  color: var(--text);
  outline: none;
}
.header-search__input::placeholder { color: var(--gray-400); }
.header-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 46px;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.header-search__btn:hover { background: var(--primary-dark); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.haction {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .5rem .65rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
  min-width: 52px;
  text-align: center;
}
.haction:hover { color: var(--primary); background: var(--primary-light); }
.haction__icon { font-size: 1.25rem; line-height: 1; }
.haction__label { font-size: .68rem; font-weight: 500; color: var(--gray-500); white-space: nowrap; }
.haction .badge {
  position: absolute;
  top: .25rem; right: .25rem;
  background: var(--danger);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white);
}
.haction--sell {
  background: var(--primary);
  color: var(--white);
  flex-direction: row;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  min-width: unset;
}
.haction--sell:hover { background: var(--primary-dark); color: var(--white); }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.navbar__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Mega menu catégories */
.navbar__cat {
  position: relative;
}
.navbar__cat-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  background: var(--primary);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.navbar__cat-toggle:hover { background: var(--primary-dark); }
.navbar__cat-toggle .chevron {
  font-size: .7rem;
  margin-left: .2rem;
  transition: transform .2s;
}
.navbar__cat:hover .chevron { transform: rotate(180deg); }

.navbar__cat-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 500;
  padding: .5rem 0;
  max-height: 500px;
  overflow-y: auto;
}
.navbar__cat:hover .navbar__cat-panel { display: block; }

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1.1rem;
  font-size: .875rem;
  color: var(--gray-700);
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.cat-item:hover { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.cat-item__left { display: flex; align-items: center; gap: .7rem; }
.cat-item__icon { font-size: 1rem; width: 20px; text-align: center; }
.cat-item__arrow { font-size: .7rem; color: var(--gray-400); }

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  flex: 1;
}
.navbar__links a {
  display: block;
  padding: .7rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar__links a:hover,
.navbar__links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============================================================
   HERO — Homepage
   ============================================================ */
.hero {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, #236B44 100%);
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,150,12,.15) 0%, transparent 60%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__title {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__desc {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero__stats {
  display: flex;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stat span { display: block; }
.hero__stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-serif);
}
.hero__stat .lbl {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: .1rem;
}

/* Hero featured card */
.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero__card-img { width: 100%; height: 260px; object-fit: cover; }
.hero__card-body { padding: 1.25rem; }
.hero__card-vendor {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.hero__card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.hero__card-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.hero__card-price del { font-size: .85rem; color: var(--gray-400); margin-left: .4rem; font-weight: 400; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn--accent   { background: var(--accent); color: var(--gray-900); border-color: var(--accent); }
.btn--accent:hover { background: #b0830b; color: #fff; }

.btn--white    { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn--white:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn--outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--gray     { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-100); }
.btn--gray:hover { background: var(--gray-200); border-color: var(--gray-200); }

.btn--icon     { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--white); color: var(--gray-600); font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.btn--icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: none; box-shadow: none; }
.btn--icon.active { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn--sm  { padding: .45rem 1rem; font-size: .8rem; }
.btn--lg  { padding: .85rem 2rem; font-size: .95rem; }
.btn--xl  { padding: 1rem 2.5rem; font-size: 1rem; }
.btn--full{ width: 100%; justify-content: center; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section       { padding: 3.5rem 0; }
.section--sm   { padding: 2rem 0; }
.section--bg   { background: var(--gray-50); }
.section--dark { background: var(--gray-900); }

.section-header { margin-bottom: 2rem; }
.section-header.centered { text-align: center; }
.section-eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: var(--radius-full);
  margin-bottom: .65rem;
}
.section-title { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin-bottom: .5rem; }
.section-subtitle { color: var(--text-sm); font-size: .9rem; max-width: 520px; }
.section-header.centered .section-subtitle { margin: .5rem auto 0; }
.section-more {
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.section-more::after { content: '→'; }
.section-more:hover { color: var(--accent); }

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.cat-chips { display: flex; gap: .75rem; flex-wrap: wrap; }
.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.1rem .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  min-width: 90px;
  text-align: center;
}
.cat-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.cat-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.cat-chip__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.cat-chip:hover .cat-chip__icon { background: var(--white); }
.cat-chip.active .cat-chip__icon { background: rgba(255,255,255,.2); }
.cat-chip__name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.2;
}
.cat-chip:hover .cat-chip__name { color: var(--primary); }
.cat-chip.active .cat-chip__name { color: var(--white); }
.cat-chip__count { font-size: .7rem; color: var(--gray-400); }
.cat-chip.active .cat-chip__count { color: rgba(255,255,255,.7); }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}

/* Image */
.product-card__figure {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
}
.product-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .product-card__figure img { transform: scale(1.05); }

/* Badges */
.product-card__badges {
  position: absolute;
  top: .65rem;
  left: .65rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  z-index: 2;
}
.pbadge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.4;
}
.pbadge--new    { background: var(--primary); color: #fff; }
.pbadge--sale   { background: var(--danger);  color: #fff; }
.pbadge--hot    { background: var(--accent);  color: var(--gray-900); }
.pbadge--out    { background: var(--gray-500); color: #fff; }

/* Quick actions */
.product-card__actions {
  position: absolute;
  top: .65rem;
  right: .65rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  z-index: 2;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

/* Add to cart bar (bottom overlay) */
.product-card__atc-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: var(--primary);
  color: var(--white);
  padding: .65rem;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(100%);
  transition: transform .25s ease;
  cursor: pointer;
  border: none;
  z-index: 3;
}
.product-card:hover .product-card__atc-bar { transform: translateY(0); }
.product-card__atc-bar:hover { background: var(--primary-dark); }

/* Body */
.product-card__body {
  padding: .9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

/* Vendor badge */
.vendor-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: .18rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 700;
  text-transform: lowercase;
  max-width: fit-content;
}
.vendor-pill img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.product-card__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__title:hover { color: var(--primary); }

/* Stars */
.stars-wrap { display: flex; align-items: center; gap: .35rem; }
.stars { color: var(--accent); font-size: .8rem; letter-spacing: .05em; }
.stars-count { font-size: .75rem; color: var(--gray-400); }

/* Price */
.product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
}
.price-now  {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.price-old  {
  font-size: .82rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.price-save {
  background: #FEE2E2;
  color: var(--danger);
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: var(--radius-sm);
}

/* ── Product grid (auto) ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}
.product-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
.product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width:1200px) { .product-grid--5 { grid-template-columns: repeat(4,1fr); } }
@media (max-width:1024px) { .product-grid--5,.product-grid--4 { grid-template-columns: repeat(3,1fr); } }
@media (max-width:768px)  { .product-grid--5,.product-grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px)  { .product-grid--5,.product-grid--4 { grid-template-columns: 1fr; } }

/* ============================================================
   VENDOR CARD
   ============================================================ */
.vendor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.vendor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gray-300); }

.vendor-card__banner {
  height: 90px;
  background: linear-gradient(135deg, var(--primary) 0%, #2A8B54 100%);
  position: relative;
}
.vendor-card__banner img { width: 100%; height: 100%; object-fit: cover; }
.vendor-card__verified {
  position: absolute;
  top: .5rem; right: .5rem;
  background: var(--white);
  color: var(--primary);
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.vendor-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--white);
  object-fit: cover;
  margin: -28px 0 0 1rem;
  box-shadow: var(--shadow-sm);
  background: var(--gray-100);
}

.vendor-card__body { padding: .65rem 1rem 1rem; }
.vendor-card__name { font-weight: 700; font-size: .95rem; color: var(--gray-900); margin-bottom: .2rem; }
.vendor-card__location {
  font-size: .78rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.vendor-card__stats {
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.vendor-card__stat span { display: block; }
.vendor-card__stat .val { font-size: .95rem; font-weight: 700; color: var(--gray-900); }
.vendor-card__stat .key { font-size: .7rem; color: var(--gray-400); }
.vendor-card__cta {
  display: block;
  margin-top: .85rem;
  text-align: center;
  background: var(--primary-light);
  color: var(--primary);
  padding: .55rem;
  border-radius: var(--radius);
  font-size: .83rem;
  font-weight: 600;
  transition: var(--transition);
}
.vendor-card__cta:hover { background: var(--primary); color: #fff; }

/* ============================================================
   SHOP — ARCHIVE PAGE LAYOUT
   ============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 4rem;
}
@media (max-width:900px) { .shop-layout { grid-template-columns: 1fr; } }

/* Sidebar filtres */
.shop-sidebar {
  position: sticky;
  top: 90px;
}

.filter-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}
.filter-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--gray-50);
}
.filter-box__head h4 { font-size: .875rem; font-weight: 700; }
.filter-box__toggle { font-size: .75rem; color: var(--gray-400); transition: transform .2s; }
.filter-box.collapsed .filter-box__toggle { transform: rotate(-90deg); }
.filter-box__body { padding: 1rem 1.1rem; }

/* Checkbox filter */
.filter-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem 0;
  cursor: pointer;
  font-size: .86rem;
  color: var(--gray-700);
  gap: .5rem;
}
.filter-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-check__count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: .7rem;
  padding: .1rem .4rem;
  border-radius: var(--radius-full);
  margin-left: auto;
}
.filter-check:hover { color: var(--primary); }
.filter-check input:checked ~ span { color: var(--primary); font-weight: 600; }

/* Price range */
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  margin: .5rem 0;
}
.price-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--gray-500);
}
.price-range__value {
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: .4rem;
}

/* Color filter */
.color-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.color-swatch:hover,
.color-swatch.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(30,107,60,.25); }

/* Size filter */
.size-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-btn {
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.size-btn:hover,
.size-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Rating filter */
.rating-filter li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  cursor: pointer;
  font-size: .83rem;
  color: var(--gray-600);
  transition: var(--transition);
}
.rating-filter li:hover { color: var(--primary); }
.rating-filter li .stars { color: var(--accent); }

/* Shop main */
.shop-main {}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.shop-toolbar__count { font-size: .85rem; color: var(--gray-500); }
.shop-toolbar__count strong { color: var(--gray-800); }
.shop-toolbar__right { display: flex; align-items: center; gap: .75rem; }
.shop-toolbar__sort,
.shop-toolbar__perpage {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  font-size: .83rem;
  color: var(--gray-700);
  outline: none;
  cursor: pointer;
  background: var(--white);
}
.shop-toolbar__sort:focus,
.shop-toolbar__perpage:focus { border-color: var(--primary); }

.shop-toolbar__view { display: flex; gap: .3rem; }
.view-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-400);
  font-size: .85rem;
  background: var(--white);
  transition: var(--transition);
}
.view-btn.active,
.view-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Active filters */
.active-filters {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
}
.active-filter-tag button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: .85rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Load more */
.load-more-wrap { text-align: center; margin-top: 2rem; }

/* ============================================================
   SELL BANNER (How it works)
   ============================================================ */
.sell-section {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.sell-section::after {
  content: '🌳';
  position: absolute;
  right: -3rem; bottom: -3rem;
  font-size: 14rem;
  opacity: .05;
  pointer-events: none;
}
.sell-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sell-section h2 { color: var(--white); margin-bottom: 1rem; }
.sell-section p   { color: rgba(255,255,255,.75); margin-bottom: 1.75rem; font-size: .95rem; }

.sell-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.sell-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.sell-step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--gray-900);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sell-step__content h5 { color: var(--white); font-size: .95rem; margin-bottom: .2rem; }
.sell-step__content p  { color: rgba(255,255,255,.6); font-size: .83rem; margin: 0; }

@media (max-width:768px) { .sell-section__grid { grid-template-columns: 1fr; } }

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width:768px) { .trust-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.trust-item:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.trust-item__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.trust-item__title { font-weight: 700; font-size: .92rem; color: var(--gray-800); margin-bottom: .25rem; }
.trust-item__desc  { font-size: .8rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* ============================================================
   VENDOR DASHBOARD
   ============================================================ */
.vd-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.vd-sidebar {
  background: var(--gray-900);
  color: var(--white);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.vd-sidebar__brand {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.vd-sidebar__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.vd-sidebar__name  { font-weight: 700; font-size: .92rem; }
.vd-sidebar__role  { font-size: .72rem; color: var(--accent); }

.vd-sidebar__section { padding: .5rem 0; }
.vd-sidebar__label {
  padding: .6rem 1.1rem .25rem;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  font-weight: 600;
}
.vd-nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.1rem;
  color: rgba(255,255,255,.55);
  font-size: .87rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.vd-nav-item:hover,
.vd-nav-item.active {
  color: var(--white);
  background: rgba(255,255,255,.05);
  border-left-color: var(--accent);
}
.vd-nav-item__icon { font-size: .95rem; min-width: 18px; text-align: center; }
.vd-nav-item__badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: var(--radius-full);
}

.vd-main { background: var(--gray-50); }
.vd-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.vd-topbar h1 { font-size: 1.15rem; font-weight: 700; }
.vd-content { padding: 1.75rem; }

/* Stat cards */
.vd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (max-width:1024px) { .vd-stats { grid-template-columns: repeat(2,1fr); } }

.vd-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.vd-stat-card:hover { box-shadow: var(--shadow-md); }
.vd-stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.vd-stat-card__num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gray-900);
  margin-bottom: .2rem;
}
.vd-stat-card__lbl { font-size: .78rem; color: var(--gray-400); }
.vd-stat-card__trend {
  font-size: .75rem;
  font-weight: 600;
  margin-top: .3rem;
}
.trend-up   { color: var(--success); }
.trend-down { color: var(--danger); }

/* Icon colors */
.ic-green  { background: #DCFCE7; color: var(--success); }
.ic-gold   { background: #FEF3C7; color: var(--warning); }
.ic-blue   { background: #DBEAFE; color: #3B82F6; }
.ic-purple { background: #EDE9FE; color: #7C3AED; }

/* Data table */
.vd-table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vd-table-card__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vd-table-card__head h3 { font-size: .95rem; font-weight: 700; }

.mbolo-table {
  width: 100%;
  border-collapse: collapse;
}
.mbolo-table thead th {
  padding: .7rem 1.25rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mbolo-table tbody td {
  padding: .9rem 1.25rem;
  font-size: .875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.mbolo-table tbody tr:last-child td { border-bottom: none; }
.mbolo-table tbody tr:hover { background: var(--gray-50); }

/* Status pills */
.spill {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: capitalize;
}
.spill--pending    { background: #FEF3C7; color: #92400E; }
.spill--processing { background: #DBEAFE; color: #1E40AF; }
.spill--completed  { background: #D1FAE5; color: #065F46; }
.spill--cancelled  { background: #FEE2E2; color: #991B1B; }
.spill--active     { background: #D1FAE5; color: #065F46; }
.spill--inactive   { background: var(--gray-100); color: var(--gray-500); }

/* ============================================================
   FORMS
   ============================================================ */
.form-field { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-label .req { color: var(--danger); margin-left: .15rem; }
.form-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,107,60,.1); }
.form-input::placeholder { color: var(--gray-400); }
.form-input--error { border-color: var(--danger); }
.form-hint { font-size: .75rem; color: var(--gray-400); margin-top: .3rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width:600px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
#mbolo-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.65);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}
@media (max-width:1024px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width:640px)  { .footer-top { grid-template-columns: 1fr; } }

.footer-logo { margin-bottom: 1rem; }
.footer-logo__name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 900; color: var(--white); }
.footer-logo__sub  { font-size: .7rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }

.footer-desc { font-size: .875rem; line-height: 1.7; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--gray-900); }

.footer-newsletter { margin-top: 1.25rem; }
.footer-newsletter p { font-size: .83rem; margin-bottom: .6rem; }
.footer-newsletter__form {
  display: flex;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.footer-newsletter__form input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: none;
  padding: .6rem 1rem;
  color: var(--white);
  font-size: .83rem;
  outline: none;
}
.footer-newsletter__form input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter__form button {
  background: var(--accent);
  color: var(--gray-900);
  border: none;
  padding: .6rem 1.1rem;
  font-weight: 700;
  font-size: .83rem;
  cursor: pointer;
  transition: var(--transition);
}
.footer-newsletter__form button:hover { background: #b0830b; color: #fff; }

.footer-col h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a {
  font-size: .845rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: .25rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-payments { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pay-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: .2rem .55rem;
  font-size: .7rem;
  color: rgba(255,255,255,.5);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--gray-400);
  padding: .9rem 0;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--gray-300); }
.breadcrumb span { color: var(--gray-600); font-weight: 500; }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
/* Section divider avec titre */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-divider::before,
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider__title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); white-space: nowrap; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Toast */
.mbolo-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gray-900);
  color: #fff;
  padding: .8rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  font-size: .875rem;
  font-weight: 500;
  max-width: 320px;
  animation: toastIn .3s ease;
}
.mbolo-toast--success { border-left-color: var(--success); }
.mbolo-toast--error   { border-left-color: var(--danger); }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Spinner */
.spin { animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive global ────────────────────────────────────── */
@media (max-width:768px) {
  .header-search { display: none; }
  .header-search.mobile-open { display: block; }
  .haction__label { display: none; }
  .navbar__cat-panel { width: 100%; }
  .vd-layout { grid-template-columns: 1fr; }
  .vd-sidebar { position: fixed; left: -250px; z-index: 999; transition: left .3s ease; }
  .vd-sidebar.open { left: 0; }
}

@media (max-width:640px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .section { padding: 2.5rem 0; }
}

/* ============================================================
   SLIDER BANNIÈRE — 6 SLIDES
   ============================================================ */
.mbolo-slider {
  position: relative;
  overflow: hidden;
  height: 520px;
  background: var(--primary-dark);
  user-select: none;
}
@media (max-width:768px) { .mbolo-slider { height: 420px; } }
@media (max-width:480px) { .mbolo-slider { height: 380px; } }

/* Track — se déplace horizontalement */
.slider-track {
  display: flex;
  flex-wrap: nowrap;        /* CRITIQUE : empêche le retour à la ligne */
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Chaque slide = exactement 100% du slider */
.slider-slide {
  flex: 0 0 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}
.slider-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder (aucune image uploadée) */
.slider-placeholder {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-placeholder__inner {
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.slider-placeholder__inner h2 { color: #fff; margin: 1rem 0 .5rem; }
.slider-placeholder__inner p  { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
@media (max-width:768px) { .slider-placeholder { height: 320px; } }

/* Overlay sombre sur l'image */
.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.35) 60%,
    rgba(0,0,0,.1) 100%
  );
  z-index: 0;
}

/* Contenu texte */
.slider-content {
  position: relative;
  z-index: 3;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.slider-text { max-width: 600px; }

/* Réutilise hero__* du design system */
.slider-slide .hero__title { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.8rem); margin: .6rem 0 .9rem; }
.slider-slide .hero__desc  { color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: 1.5rem; }
.slider-slide .hero__badge { margin-bottom: .6rem; }
.slider-slide .hero__stats {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  gap: 1.5rem;
}

/* Flèches */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--gray-900); }
.slider-arrow--prev { left: 1.25rem; }
.slider-arrow--next { right: 1.25rem; }

/* Points */
.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.slider-dot:hover { background: rgba(255,255,255,.7); }

/* ============================================================
   SECTION GAGNER DE L'ARGENT
   ============================================================ */
.mbolo-earn { background: var(--gray-50); }

.earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width:1100px) { .earn-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:700px)  { .earn-grid { grid-template-columns: 1fr; } }

/* Carte */
.earn-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.earn-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Featured (Pro) */
.earn-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #FFFBEB 0%, var(--white) 100%);
}
.earn-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--gray-900);
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: .05em;
}

/* Header de la carte */
.earn-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.earn-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.earn-card__icon--gold { background: #FEF3C7; }
.earn-card__title { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: .2rem; }
.earn-card__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: var(--radius-sm);
}
.earn-card__tag--gold { background: #FEF3C7; color: #92400E; }
.earn-card__desc { color: var(--text-sm); font-size: .875rem; line-height: 1.65; margin: 0; }

/* Features list */
.earn-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.earn-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .865rem;
  color: var(--gray-700);
  line-height: 1.4;
}
.earn-check {
  width: 18px; height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: #D1FAE5;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  margin-top: .1rem;
}
.earn-check--gold { background: #FEF3C7; color: #92400E; }

/* Pricing */
.earn-card__pricing {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.earn-price { font-size: 1.75rem; font-weight: 900; color: var(--primary); font-family: var(--font-serif); }
.earn-price--gold { color: var(--accent); }
.earn-period { font-size: .8rem; color: var(--gray-400); }
.earn-card__note { font-size: .75rem; color: var(--gray-400); text-align: center; margin-top: -.25rem; }

/* Tableau comparaison */
.earn-compare-table {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .5rem;
}
.earn-compare-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--white);
}
.earn-compare-row--head {
  background: var(--gray-800);
  color: var(--white);
  font-weight: 700;
  font-size: .75rem;
  border-color: var(--gray-800);
  text-align: center;
}
.earn-compare-row--head span:first-child { text-align: left; }
.earn-compare-row span:not(:first-child) { text-align: center; }
.earn-compare--good { color: var(--success); font-weight: 700; }
.earn-compare--bad  { color: var(--gray-400); }

/* Témoignages */
.earn-testimonials { margin-top: 3.5rem; }
.earn-testimonials__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}
.earn-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width:768px) { .earn-testimonials__grid { grid-template-columns: 1fr; } }

.earn-testi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
}
.earn-testi:hover { box-shadow: var(--shadow-md); }
.earn-testi__stars { color: var(--accent); font-size: 1rem; margin-bottom: .6rem; }
.earn-testi__text  { font-size: .875rem; color: var(--gray-600); line-height: 1.65; font-style: italic; margin: 0 0 1rem; }
.earn-testi__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
}
.earn-testi__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.earn-testi__author strong { display: block; font-size: .875rem; color: var(--gray-800); }
.earn-testi__author span   { font-size: .75rem; color: var(--gray-400); }

/* ============================================================
   SLIDER — OVERLAY TEXTE
   ============================================================ */
.slider-overlay-text {
  position: absolute;
  z-index: 10;
  max-width: 60%;
  padding: .75rem 1.25rem;
  line-height: 1.4;
  pointer-events: none;
}

/* ── Positions ─────────────────────────────────────────── */
.soverlay--top-left      { top: 1.5rem;    left: 2rem;             }
.soverlay--top-center    { top: 1.5rem;    left: 50%; transform: translateX(-50%); text-align: center; }
.soverlay--top-right     { top: 1.5rem;    right: 2rem;            text-align: right; }
.soverlay--center-left   { top: 50%;       left: 2rem;             transform: translateY(-50%); }
.soverlay--center        { top: 50%;       left: 50%;              transform: translate(-50%,-50%); text-align: center; }
.soverlay--center-right  { top: 50%;       right: 2rem;            transform: translateY(-50%); text-align: right; }
.soverlay--bottom-left   { bottom: 2.5rem; left: 2rem;             }
.soverlay--bottom-center { bottom: 2.5rem; left: 50%; transform: translateX(-50%); text-align: center; }
.soverlay--bottom-right  { bottom: 2.5rem; right: 2rem;            text-align: right; }

/* ── Tailles ───────────────────────────────────────────── */
.soverlay--small  { font-size: .875rem; }
.soverlay--medium { font-size: 1.25rem; }
.soverlay--large  { font-size: 1.875rem; }
.soverlay--xlarge { font-size: 2.75rem; }

/* ── Polices ───────────────────────────────────────────── */
.soverlay--font-sans  { font-family: 'Inter', system-ui, sans-serif; font-weight: 500; }
.soverlay--font-serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-style: italic; }
.soverlay--font-bold  { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; letter-spacing: -.02em; }

/* ── Fonds ─────────────────────────────────────────────── */
.soverlay--bg-none  { background: none; }
.soverlay--bg-dark  { background: rgba(0,0,0,.6);   padding: .75rem 1.25rem; border-radius: 8px; }
.soverlay--bg-light { background: rgba(255,255,255,.65); padding: .75rem 1.25rem; border-radius: 8px; }
.soverlay--bg-green { background: rgba(30,107,60,.82);   padding: .75rem 1.25rem; border-radius: 8px; }
.soverlay--bg-gold  { background: rgba(200,150,12,.85);  padding: .75rem 1.25rem; border-radius: 8px; }

/* Ombre texte pour lisibilité sur fond clair */
.soverlay--bg-none .soverlay--font-sans,
.soverlay--bg-none .soverlay--font-bold,
.soverlay--bg-none .soverlay--font-serif { text-shadow: 0 1px 6px rgba(0,0,0,.5); }

@media (max-width:768px) {
  .slider-overlay-text { max-width: 85%; font-size: .95em; padding: .5rem .85rem; }
  .soverlay--xlarge { font-size: 1.75rem; }
  .soverlay--large  { font-size: 1.25rem; }
}

/* ── Vendor info box — page produit uniquement ──────────────── */
.product-vendor-box {
    margin: .75rem 0 1rem;
}
.product-vendor-box__inner {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem;
    background: var(--cream, #FBF8F0);
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.product-vendor-box__inner:hover {
    border-color: var(--primary, #1E6B3C);
    box-shadow: 0 2px 10px rgba(30,107,60,.1);
}
.product-vendor-box__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary, #1E6B3C);
    flex-shrink: 0;
}
.product-vendor-box__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.product-vendor-box__label {
    font-size: .7rem;
    color: var(--gray-400, #9CA3AF);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.product-vendor-box__name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
}
.product-vendor-box__stars {
    font-size: .75rem;
    color: var(--accent, #C8960C);
    display: flex;
    align-items: center;
    gap: .2rem;
}
.product-vendor-box__cnt {
    color: var(--gray-400, #9CA3AF);
    font-size: .7rem;
}
.product-vendor-box__cta {
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary, #1E6B3C);
    white-space: nowrap;
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════
   PAGE PRODUIT — MBOLO SINGLE PRODUCT
═══════════════════════════════════════════════════════════ */

.mbolo-product-page { padding-bottom: 3rem; }

/* ── Layout 2 colonnes ─────────────────────────────────── */
.mbolo-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
    .mbolo-product-top { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Galerie produit ────────────────────────────────────── */
.mbolo-product-gallery {
    position: relative;
}
.mbolo-product-gallery .woocommerce-product-gallery {
    position: sticky;
    top: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: .5rem;
}
.mbolo-product-gallery .flex-control-thumbs {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 0;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    margin: 0;
    flex-shrink: 0;
    width: 72px;
    max-height: 440px;
}
.mbolo-product-gallery .flex-control-thumbs li { flex-shrink: 0; }
.mbolo-product-gallery .flex-control-thumbs li img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: border-color .2s;
    display: block;
}
.mbolo-product-gallery .flex-control-thumbs li img:hover,
.mbolo-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--primary, #1E6B3C);
}
.mbolo-product-gallery .woocommerce-product-gallery__wrapper {
    flex: 1;
    min-width: 0;
}
.mbolo-product-gallery .woocommerce-product-gallery__wrapper img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #fff;
    padding: .5rem;
}
/* Badge promo */
.mbolo-product-gallery .woocommerce-badge { display: none; }

/* Badge Promo — page detail produit */
.mbolo-product-gallery > .onsale {
    position: absolute;
    top: .75rem;
    left: calc(72px + 1rem);
    background: #E53E3E;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    pointer-events: none;
}

/* ── Résumé produit ─────────────────────────────────────── */
.mbolo-product-summary {
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    padding: 1.75rem;
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,.08));
    border: 1px solid var(--gray-200, #E5E7EB);
}

/* Titre */
.mbolo-product-summary .product_title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
    line-height: 1.3;
    margin: 0 0 .75rem;
}

/* Note / étoiles WooCommerce */
.mbolo-product-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    font-size: .85rem;
    color: var(--gray-500, #6B7280);
}
.mbolo-product-summary .star-rating {
    color: var(--accent, #C8960C);
    font-size: 1rem;
}
.mbolo-product-summary .woocommerce-review-link { color: var(--primary, #1E6B3C); }

/* Prix */
.mbolo-product-summary .price {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin: .75rem 0 1rem;
    flex-wrap: wrap;
}
.mbolo-product-summary .price ins {
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary, #1E6B3C);
}
.mbolo-product-summary .price del {
    font-size: 1.1rem;
    color: var(--gray-400, #9CA3AF);
}
.mbolo-product-summary .price .amount:only-child {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary, #1E6B3C);
}

/* Extrait */
.mbolo-product-summary .woocommerce-product-details__short-description {
    font-size: .9rem;
    color: var(--gray-600, #4B5563);
    line-height: 1.7;
    border-top: 1px solid var(--gray-100, #F3F4F6);
    padding-top: .85rem;
    margin-bottom: 1rem;
}

/* Variations */
.mbolo-product-summary .variations {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.mbolo-product-summary .variations td,
.mbolo-product-summary .variations th {
    padding: .35rem 0;
    vertical-align: middle;
    border: none;
}
.mbolo-product-summary .variations .label label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray-700, #374151);
    white-space: nowrap;
    padding-right: 1rem;
}
.mbolo-product-summary .variations select {
    padding: .45rem .75rem;
    border: 1.5px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
    font-size: .88rem;
    background: #fff;
    cursor: pointer;
    width: 100%;
}

/* Quantité + bouton panier */
.mbolo-product-summary .cart {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.mbolo-product-summary .qty {
    width: 80px;
    padding: .6rem .75rem;
    border: 1.5px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}
.mbolo-product-summary .single_add_to_cart_button {
    flex: 1;
    min-width: 160px;
    background: var(--primary, #1E6B3C);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .7rem 1.25rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.mbolo-product-summary .single_add_to_cart_button:hover {
    background: var(--primary-dark, #15532D);
    transform: translateY(-1px);
}

/* Méta (catégories, tags) */
.mbolo-product-summary .product_meta {
    font-size: .8rem;
    color: var(--gray-500, #6B7280);
    border-top: 1px solid var(--gray-100, #F3F4F6);
    padding-top: .75rem;
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.mbolo-product-summary .product_meta a {
    color: var(--primary, #1E6B3C);
    font-weight: 500;
}
.mbolo-product-summary .product_meta .sku_wrapper,
.mbolo-product-summary .product_meta .posted_in,
.mbolo-product-summary .product_meta .tagged_as {
    display: block;
}

/* Stock */
.mbolo-product-summary .stock {
    font-size: .82rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: .5rem;
}
.mbolo-product-summary .in-stock  { background: #D1FAE5; color: #065F46; }
.mbolo-product-summary .out-of-stock { background: #FEE2E2; color: #991B1B; }

/* ── Onglets description/avis ───────────────────────────── */
.mbolo-product-bottom { margin-top: 1.5rem; }

.mbolo-product-bottom .woocommerce-tabs {
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,.08));
    border: 1px solid var(--gray-200, #E5E7EB);
    overflow: hidden;
    margin-bottom: 2rem;
}
.mbolo-product-bottom .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    background: var(--cream, #FBF8F0);
    border-bottom: 2px solid var(--gray-200, #E5E7EB);
    list-style: none;
    overflow-x: auto;
}
.mbolo-product-bottom .woocommerce-tabs ul.tabs::before { display: none; }
.mbolo-product-bottom .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
}
.mbolo-product-bottom .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: .85rem 1.5rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-500, #6B7280);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.mbolo-product-bottom .woocommerce-tabs ul.tabs li.active a,
.mbolo-product-bottom .woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary, #1E6B3C);
    border-bottom-color: var(--primary, #1E6B3C);
}
.mbolo-product-bottom .woocommerce-tabs .panel {
    padding: 1.5rem 1.75rem;
    font-size: .9rem;
    line-height: 1.8;
    color: var(--gray-700, #374151);
}
.mbolo-product-bottom .woocommerce-tabs .panel h2 { display: none; }

/* ── Produits liés / upsells ────────────────────────────── */
.mbolo-product-bottom .related,
.mbolo-product-bottom .upsells {
    margin-top: 2rem;
}
.mbolo-product-bottom .related > h2,
.mbolo-product-bottom .upsells > h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary, #1E6B3C);
    display: inline-block;
}
.mbolo-product-bottom .related ul.products,
.mbolo-product-bottom .upsells ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mbolo-product-bottom ul.products li.product {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200, #E5E7EB);
    transition: box-shadow .2s, transform .2s;
}
.mbolo-product-bottom ul.products li.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.mbolo-product-bottom ul.products li.product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.mbolo-product-bottom ul.products li.product .woocommerce-loop-product__title {
    font-size: .88rem;
    font-weight: 600;
    padding: .5rem .75rem .2rem;
    color: var(--gray-900, #111827);
}
.mbolo-product-bottom ul.products li.product .price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary, #1E6B3C);
    padding: 0 .75rem .75rem;
    display: block;
}
.mbolo-product-bottom ul.products li.product .button {
    display: block;
    margin: 0 .75rem .75rem;
    text-align: center;
    background: var(--primary, #1E6B3C);
    color: #fff;
    border-radius: 6px;
    padding: .4rem;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.mbolo-product-bottom ul.products li.product .button:hover {
    background: var(--primary-dark, #15532D);
}


/* ═══════════════════════════════════════════════════════════
   WOOCOMMERCE ELEMENTS — styles de base (remplace woocommerce.css)
═══════════════════════════════════════════════════════════ */

/* ── Galerie photos (WC base) ────────────────────────────── */
.woocommerce-product-gallery {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: row;
    gap: .5rem;
}
.woocommerce-product-gallery figure { margin: 0; flex: 1; min-width: 0; }
.woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: block;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #fff;
    padding: .5rem;
    display: block;
}
/* Thumbs verticaux à gauche */
.woocommerce-product-gallery .flex-control-nav {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 0;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    border-top: none;
    flex-shrink: 0;
    width: 72px;
    max-height: 440px;
    order: -1;
}
.woocommerce-product-gallery .flex-control-nav li { flex-shrink: 0; }
.woocommerce-product-gallery .flex-control-nav li img {
    width: 68px; height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: border-color .2s;
    display: block;
}
.woocommerce-product-gallery .flex-control-nav .flex-active,
.woocommerce-product-gallery .flex-control-nav li img:hover {
    border-color: var(--primary, #1E6B3C) !important;
}
/* Badge promo (dans la galerie WC — masqué car géré par .mbolo-product-gallery > .onsale) */
.woocommerce-product-gallery span.onsale { display: none; }
/* Placeholder si pas d'image */
.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder img {
    aspect-ratio: 1;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    opacity: .4;
}

/* ── Formulaire panier ──────────────────────────────────── */
.mbolo-product-summary form.cart {
    display: flex;
    gap: .65rem;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.mbolo-product-summary form.cart .quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-200, #E5E7EB);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.mbolo-product-summary form.cart .quantity input.qty {
    width: 60px;
    border: none;
    outline: none;
    padding: .65rem .5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background: transparent;
    -moz-appearance: textfield;
}
.mbolo-product-summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.mbolo-product-summary form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Bouton ajouter au panier ───────────────────────────── */
.mbolo-product-summary .single_add_to_cart_button,
.mbolo-product-summary button[name="add-to-cart"] {
    flex: 1;
    min-width: 160px;
    background: var(--primary, #1E6B3C);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .7rem 1.5rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .12s;
    text-align: center;
    letter-spacing: .02em;
}
.mbolo-product-summary .single_add_to_cart_button:hover,
.mbolo-product-summary button[name="add-to-cart"]:hover {
    background: var(--primary-dark, #145429);
    transform: translateY(-1px);
}
.mbolo-product-summary .single_add_to_cart_button.disabled,
.mbolo-product-summary .single_add_to_cart_button:disabled {
    background: var(--gray-300, #D1D5DB);
    cursor: not-allowed;
    transform: none;
}

/* ── WooCommerce notices ────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .875rem;
    list-style: none;
}
.woocommerce-message { background: #D1FAE5; border-left: 3px solid #10B981; color: #065F46; }
.woocommerce-info    { background: #DBEAFE; border-left: 3px solid #3B82F6; color: #1E40AF; }
.woocommerce-error   { background: #FEE2E2; border-left: 3px solid #EF4444; color: #991B1B; }

/* ── WooCommerce tabs override ──────────────────────────── */
.woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid var(--gray-200, #E5E7EB);
    background: var(--cream, #FBF8F0);
    overflow-x: auto;
}
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li {
    margin: 0; padding: 0;
    border: none; background: transparent; border-radius: 0;
}
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: .85rem 1.4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-500, #6B7280);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary, #1E6B3C);
    border-bottom-color: var(--primary, #1E6B3C);
}
.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 1.5rem 1.75rem;
    font-size: .9rem;
    line-height: 1.8;
    color: var(--gray-700, #374151);
}
.woocommerce-tabs .woocommerce-Tabs-panel h2 { display: none; }

/* ── Avis clients ───────────────────────────────────────── */
#reviews { padding-top: 0; }
#reviews .comment-form-rating { margin-bottom: .75rem; }
#reviews .comment-form-rating .stars a {
    font-size: 1.25rem;
    color: var(--accent, #C8960C);
    text-decoration: none;
}
#reviews input, #reviews textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
    font-size: .875rem;
    font-family: inherit;
    margin-bottom: .5rem;
    transition: border-color .2s;
}
#reviews input:focus, #reviews textarea:focus {
    outline: none;
    border-color: var(--primary, #1E6B3C);
}
#reviews textarea { min-height: 100px; resize: vertical; }
#reviews .form-submit input[type="submit"] {
    background: var(--primary, #1E6B3C);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem 1.25rem;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    width: auto;
}

/* ── Méta produit (catégories, SKU) ─────────────────────── */
.product_meta {
    font-size: .82rem;
    color: var(--gray-500, #6B7280);
    border-top: 1px solid var(--gray-100, #F3F4F6);
    padding-top: .75rem;
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.product_meta a {
    color: var(--primary, #1E6B3C);
    font-weight: 500;
    text-decoration: none;
}
.product_meta a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════
   PAGES WC — Panier, Checkout, Mon compte, Pages CMS
═══════════════════════════════════════════════════════════ */

.mbolo-page-wrap {
    padding: 1.5rem 0 3rem;
    min-height: 60vh;
}
.mbolo-page-content { max-width: 100%; }

/* ── Panier ─────────────────────────────────────────────── */
.woocommerce-cart .woocommerce { width: 100%; }

/* Table panier */
.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,.08));
    border: 1px solid var(--gray-200, #E5E7EB);
    margin-bottom: 1.5rem;
}
.woocommerce-cart table.shop_table th {
    background: var(--cream, #FBF8F0);
    padding: .85rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--gray-600, #4B5563);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: left;
    border-bottom: 2px solid var(--gray-200, #E5E7EB);
}
.woocommerce-cart table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100, #F3F4F6);
    vertical-align: middle;
}
.woocommerce-cart table.shop_table tr:last-child td { border-bottom: none; }

/* Image produit dans panier */
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-200, #E5E7EB);
}
.woocommerce-cart table.shop_table td.product-name a {
    font-weight: 600;
    color: var(--gray-900, #111827);
    text-decoration: none;
    font-size: .9rem;
}
.woocommerce-cart table.shop_table td.product-name a:hover { color: var(--primary, #1E6B3C); }
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    font-weight: 700;
    color: var(--primary, #1E6B3C);
}

/* Bouton supprimer */
.woocommerce-cart a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: #FEE2E2;
    color: #EF4444 !important;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.woocommerce-cart a.remove:hover { background: #EF4444; color: #fff !important; }

/* Quantité dans panier */
.woocommerce-cart .quantity input.qty {
    width: 60px;
    padding: .4rem .5rem;
    border: 1.5px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
}

/* Bouton mettre à jour */
.woocommerce-cart button[name="update_cart"] {
    background: transparent;
    border: 1.5px solid var(--gray-300, #D1D5DB);
    color: var(--gray-600, #4B5563);
    border-radius: 8px;
    padding: .5rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.woocommerce-cart button[name="update_cart"]:hover {
    border-color: var(--primary, #1E6B3C);
    color: var(--primary, #1E6B3C);
}

/* Totaux panier */
.woocommerce-cart .cart-collaterals {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}
.woocommerce-cart .cart_totals {
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,.08));
    border: 1px solid var(--gray-200, #E5E7EB);
    padding: 1.5rem;
    width: 100%;
    max-width: 380px;
}
.woocommerce-cart .cart_totals h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary, #1E6B3C);
    display: inline-block;
}
.woocommerce-cart .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: .5rem 0;
    border-bottom: 1px solid var(--gray-100, #F3F4F6);
    font-size: .88rem;
}
.woocommerce-cart .cart_totals table th { color: var(--gray-600, #4B5563); font-weight: 600; width: 40%; }
.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary, #1E6B3C);
}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary, #1E6B3C);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .12s;
}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--primary-dark, #145429);
    transform: translateY(-1px);
}

/* Panier vide */
.woocommerce-cart .woocommerce-info {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid var(--gray-200, #E5E7EB);
    border-left: none;
    font-size: 1rem;
    color: var(--gray-600, #4B5563);
}
.woocommerce-cart .return-to-shop .button {
    display: inline-block;
    margin-top: 1rem;
    background: var(--primary, #1E6B3C);
    color: #fff !important;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

/* ── Checkout ────────────────────────────────────────────── */
.woocommerce-checkout .woocommerce {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce { grid-template-columns: 1fr; }
}
.woocommerce-checkout h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary, #1E6B3C);
    display: inline-block;
}
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
    width: 100%;
    padding: .6rem .85rem;
    border: 1.5px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
    font-size: .875rem;
    font-family: inherit;
    transition: border-color .2s;
    background: #fff;
}
.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus {
    outline: none;
    border-color: var(--primary, #1E6B3C);
}
.woocommerce-checkout #place_order {
    width: 100%;
    background: var(--primary, #1E6B3C);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.woocommerce-checkout #place_order:hover { background: var(--primary-dark, #145429); }

/* ── Mon compte ──────────────────────────────────────────── */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 640px) {
    .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid var(--gray-200, #E5E7EB);
    overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: .75rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100, #F3F4F6);
    transition: background .15s, color .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--primary-light, #EDF7F1);
    color: var(--primary, #1E6B3C);
}
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid var(--gray-200, #E5E7EB);
    padding: 1.5rem;
}


/* ── Grille auto (2 rangées, scroll horizontal sur mobile) ── */
.product-grid--auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
@media (max-width: 640px) {
    .product-grid--auto {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: .5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .product-grid--auto .product-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}

/* ── Produits similaires — page produit ─────────────────── */
.mbolo-product-bottom .related,
.mbolo-product-bottom .up-sells {
    margin-top: 2.5rem;
}
.mbolo-product-bottom .related > h2,
.mbolo-product-bottom .up-sells > h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.mbolo-product-bottom .related > h2::before { content: "🔁 "; }
.mbolo-product-bottom .up-sells > h2::before { content: "⭐ "; }

.mbolo-product-bottom .related ul.products,
.mbolo-product-bottom .up-sells ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mbolo-product-bottom ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200, #E5E7EB);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.mbolo-product-bottom ul.products li.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.mbolo-product-bottom ul.products li.product a.woocommerce-loop-product__link {
    text-decoration: none;
    display: block;
}
.mbolo-product-bottom ul.products li.product img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.mbolo-product-bottom ul.products li.product .woocommerce-loop-product__title {
    font-size: .875rem;
    font-weight: 600;
    padding: .6rem .75rem .2rem;
    color: var(--gray-900, #111827);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mbolo-product-bottom ul.products li.product .price {
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary, #1E6B3C);
    padding: .1rem .75rem .75rem;
    display: block;
    margin-top: auto;
}
.mbolo-product-bottom ul.products li.product .price del {
    color: var(--gray-400, #9CA3AF);
    font-weight: 400;
    font-size: .78rem;
}
.mbolo-product-bottom ul.products li.product .button {
    display: block;
    margin: 0 .75rem .75rem;
    text-align: center;
    background: var(--primary, #1E6B3C);
    color: #fff !important;
    border-radius: 7px;
    padding: .45rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    border: none;
    cursor: pointer;
}
.mbolo-product-bottom ul.products li.product .button:hover {
    background: var(--primary-dark, #145429);
}


/* ── Icônes SVG boutons produit ─────────────────────────── */
.btn--icon svg { display: block; pointer-events: none; }
.product-action-btn--wish.active svg {
    fill: #EF4444;
    stroke: #EF4444;
}
.product-action-btn--wish:hover svg { stroke: #fff; }
.btn--icon:hover svg { stroke: #fff; }
/* Cacher le bouton zoom WC s'il existe encore */
.woocommerce-product-gallery__trigger { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   PAGE BOUTIQUE VENDEUR (WCFM Marketplace)
═══════════════════════════════════════════════════════════ */

.wcfm-store-wrapper, .dokan-store-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.75rem;
    align-items: start;
    padding: 1.5rem 0 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (max-width: 768px) {
    .wcfm-store-wrapper, .dokan-store-wrap { grid-template-columns: 1fr; }
}

/* ── Bannière vendeur ───────────────────────────────────── */
.wcfm-store-header, .dokan-store-header {
    background: linear-gradient(135deg, var(--primary,#1E6B3C), #2A8B54);
    border-radius: var(--radius-lg,14px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}
.wcfm-store-header, .dokan-store-header .store-banner { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .25; }
.wcfm-store-header, .dokan-store-header .wcfm-store-logo, .dokan-store-logo {
    position: relative;
    z-index: 1;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.wcfm-store-header, .dokan-store-header .wcfm-store-logo, .dokan-store-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wcfm-store-header, .dokan-store-header h1, .wcfm-store-header, .dokan-store-header .store-name {
    position: relative; z-index: 1;
    font-size: 1.5rem; font-weight: 800;
    color: #fff; margin: 0 0 .25rem;
}
.wcfm-store-header, .dokan-store-header .wcfm-store-meta, .dokan-store-meta {
    position: relative; z-index: 1;
    color: rgba(255,255,255,.85);
    font-size: .85rem;
}
.wcfm-store-header, .dokan-store-header .store-info-summary {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: .2rem;
}
.wcfm-store-header, .dokan-store-header .store-info-summary span { color: rgba(255,255,255,.85); font-size: .82rem; }

/* ── Sidebar gauche ─────────────────────────────────────── */
.wcfm-store-sidebar, .dokan-store-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.wcfm-store-sidebar, .dokan-store-sidebar .widget {
    background: #fff;
    border-radius: var(--radius-lg,14px);
    border: 1px solid var(--gray-200,#E5E7EB);
    overflow: hidden;
    box-shadow: var(--shadow-sm,0 1px 6px rgba(0,0,0,.06));
}
.wcfm-store-sidebar, .dokan-store-sidebar .widget-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500,#6B7280);
    padding: .75rem 1rem .5rem;
    margin: 0;
    border-bottom: 1px solid var(--gray-100,#F3F4F6);
}

/* Catégories sidebar */
.wcfm-store-sidebar, .dokan-store-sidebar .store-cat-stack-dokan { padding: .5rem 0; }
.wcfm-store-sidebar, .dokan-store-sidebar .store-cat-stack-dokan ul { list-style: none; padding: 0; margin: 0; }
.wcfm-store-sidebar, .dokan-store-sidebar .store-cat-stack-dokan li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .45rem 1rem;
    font-size: .85rem;
    color: var(--gray-700,#374151);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.wcfm-store-sidebar, .dokan-store-sidebar .store-cat-stack-dokan li a:hover {
    background: var(--primary-light,#EDF7F1);
    color: var(--primary,#1E6B3C);
}
.wcfm-store-sidebar, .dokan-store-sidebar .store-cat-stack-dokan .children { background: var(--gray-50,#F9FAFB); }
.wcfm-store-sidebar, .dokan-store-sidebar .store-cat-stack-dokan .children li a {
    padding-left: 1.75rem;
    font-size: .8rem;
    color: var(--gray-500,#6B7280);
}
.wcfm-store-sidebar, .dokan-store-sidebar .caret-icon { font-size: .7rem; color: var(--gray-400,#9CA3AF); }

/* Formulaire contact vendeur */
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form input,
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid var(--gray-200,#E5E7EB);
    border-radius: 8px;
    font-size: .82rem;
    font-family: inherit;
    margin-bottom: .5rem;
    transition: border-color .2s;
    background: #fff;
}
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form input:focus,
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form textarea:focus {
    outline: none; border-color: var(--primary,#1E6B3C);
}
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form textarea { min-height: 80px; resize: vertical; }
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form button,
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form input[type="submit"] {
    width: 100%;
    background: var(--primary,#1E6B3C);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.wcfm-store-sidebar, .dokan-store-sidebar .wcfm-contact-seller-form, .dokan-contact-seller-form button:hover { background: var(--primary-dark,#145429); }
.wcfm-store-sidebar, .dokan-store-sidebar .widget { padding: 0; }
.wcfm-store-sidebar, .dokan-store-sidebar .widget > *:not(.widget-title) { padding: .75rem 1rem; }

/* Infos boutique dans sidebar */
.wcfm-single-store, .dokan-single-store .wcfm-store-sidebar, .dokan-store-sidebar .widget-area-inner { padding: .75rem 1rem; }
.wcfm-store-info, .dokan-store-info { list-style: none; padding: 0; margin: 0; }
.wcfm-store-info, .dokan-store-info li { padding: .4rem 0; font-size: .82rem; color: var(--gray-600,#4B5563); border-bottom: 1px solid var(--gray-100,#F3F4F6); display: flex; gap: .5rem; }
.wcfm-store-info, .dokan-store-info li:last-child { border-bottom: none; }
.wcfm-store-info, .dokan-store-info li i { color: var(--primary,#1E6B3C); width: 16px; flex-shrink: 0; margin-top: 2px; }

/* ── Contenu principal boutique ─────────────────────────── */
#wcfm_store_manager, #dokan-primary { min-width: 0; }

/* Barre de recherche + tri boutique */
.wcfm-store-search-wrap, .dokan-store-search-wrap,
.wcfm-sorting-wrap, .dokan-sorting-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.wcfm-store-search-wrap, .dokan-store-search-wrap input[type="text"],
.wcfm-store-search-wrap, .dokan-store-search-wrap input[type="search"] {
    flex: 1;
    padding: .6rem .9rem;
    border: 1.5px solid var(--gray-200,#E5E7EB);
    border-radius: 8px;
    font-size: .875rem;
    min-width: 180px;
}
.wcfm-store-search-wrap, .dokan-store-search-wrap button,
.wcfm-store-search-wrap, .dokan-store-search-wrap input[type="submit"] {
    background: var(--primary,#1E6B3C);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem 1.1rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}
.wcfm-sorting-wrap, .dokan-sorting-wrap select {
    padding: .55rem .75rem;
    border: 1.5px solid var(--gray-200,#E5E7EB);
    border-radius: 8px;
    font-size: .875rem;
    background: #fff;
}

/* Grille produits de la boutique */
#wcfm_store_manager, #wcfm_store_manager .products, #dokan-primary .products,
.wcfm-store-products, .dokan-store-products .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #dokan-primary .products li.product,
.wcfm-store-products, .dokan-store-products .products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200,#E5E7EB);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #wcfm_store_manager .products li.product:hover, #dokan-primary .products li.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #wcfm_store_manager .products li.product img, #dokan-primary .products li.product img {
    width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; display: block;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .woocommerce-loop-product__title, #dokan-primary .products .woocommerce-loop-product__title {
    font-size: .875rem; font-weight: 600;
    padding: .6rem .75rem .2rem;
    color: var(--gray-900,#111827);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price {
    font-size: .85rem; font-weight: 700;
    color: var(--primary,#1E6B3C);
    padding: .1rem .75rem .5rem;
    display: block;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price del { color: var(--gray-400,#9CA3AF); font-weight: 400; font-size: .75rem; }
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price ins { text-decoration: none; }
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #dokan-primary .products .button {
    display: block; margin: 0 .75rem .75rem;
    text-align: center;
    background: var(--primary,#1E6B3C);
    color: #fff !important;
    border-radius: 7px;
    padding: .45rem;
    font-size: .78rem; font-weight: 700;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: background .2s;
    margin-top: auto;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #wcfm_store_manager .products .button:hover, #dokan-primary .products .button:hover { background: var(--primary-dark,#145429); }
#wcfm_store_manager, #wcfm_store_manager .products, #dokan-primary .products .onsale {
    position: absolute; top: .5rem; left: .5rem;
    background: #E53E3E; color: #fff;
    font-size: .65rem; font-weight: 700;
    padding: .15rem .45rem; border-radius: 4px;
    text-transform: uppercase;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #dokan-primary .products li.product { position: relative; }

/* Pagination boutique */
.dokan-pagination-container,
.dokan-store-pagination {
    display: flex; justify-content: center;
    margin-top: 1.5rem;
}
.dokan-pagination-container .page-numbers,
.woocommerce-pagination .page-numbers {
    display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0;
}
.dokan-pagination-container .page-numbers li a,
.dokan-pagination-container .page-numbers li span,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: .85rem; font-weight: 600;
    color: var(--gray-700,#374151);
    border: 1.5px solid var(--gray-200,#E5E7EB);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.dokan-pagination-container .page-numbers li a:hover,
.woocommerce-pagination .page-numbers li a:hover { background: var(--primary-light,#EDF7F1); border-color: var(--primary,#1E6B3C); color: var(--primary,#1E6B3C); }
.dokan-pagination-container .page-numbers .current,
.woocommerce-pagination .page-numbers .current { background: var(--primary,#1E6B3C); color: #fff; border-color: var(--primary,#1E6B3C); }

/* ── Note "Texte indicatif" à supprimer ─────────────────── */
.dokan-product-listing .stock-hint,
.placeholder-text { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   PAGE LOGIN / REGISTER (WooCommerce My Account)
═══════════════════════════════════════════════════════════ */

.woocommerce-account .mbolo-page-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 70vh; padding: 2rem 1.25rem;
}
.woocommerce-account .mbolo-page-content { width: 100%; max-width: 960px; }

/* Layout 2 colonnes login/register */
#customer_login.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 640px) {
    #customer_login.col2-set { grid-template-columns: 1fr; }
}

/* Chaque panneau */
#customer_login .u-column1,
#customer_login .u-column2 {
    background: #fff;
    border-radius: var(--radius-lg,14px);
    border: 1px solid var(--gray-200,#E5E7EB);
    padding: 2rem;
    box-shadow: var(--shadow-md,0 4px 20px rgba(0,0,0,.08));
}
#customer_login h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900,#111827);
    margin-bottom: 1.25rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--primary,#1E6B3C);
    display: inline-block;
}

/* Champs login/register */
#customer_login .woocommerce-form-row,
#customer_login .form-row {
    margin-bottom: .85rem;
}
#customer_login label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-700,#374151);
    margin-bottom: .3rem;
}
#customer_login .input-text,
#customer_login input[type="text"],
#customer_login input[type="email"],
#customer_login input[type="password"] {
    width: 100%;
    padding: .65rem .85rem;
    border: 1.5px solid var(--gray-200,#E5E7EB);
    border-radius: 8px;
    font-size: .875rem;
    font-family: inherit;
    background: var(--gray-50,#F9FAFB);
    transition: border-color .2s, background .2s;
}
#customer_login .input-text:focus,
#customer_login input[type="text"]:focus,
#customer_login input[type="email"]:focus,
#customer_login input[type="password"]:focus {
    outline: none;
    border-color: var(--primary,#1E6B3C);
    background: #fff;
}
/* Remember me + lost password */
#customer_login .woocommerce-form-login__rememberme {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: var(--gray-600,#4B5563);
}
#customer_login .lost_password { margin-top: .5rem; }
#customer_login .lost_password a {
    font-size: .8rem; color: var(--primary,#1E6B3C); text-decoration: none;
}
#customer_login .lost_password a:hover { text-decoration: underline; }

/* Boutons connexion / inscription */
#customer_login .woocommerce-button,
#customer_login button[type="submit"],
#customer_login input[type="submit"] {
    display: block; width: 100%;
    background: var(--primary,#1E6B3C);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .75rem 1.5rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .12s;
    margin-top: .75rem;
    text-align: center;
}
#customer_login .woocommerce-button:hover,
#customer_login button[type="submit"]:hover { background: var(--primary-dark,#145429); transform: translateY(-1px); }

/* Radio client/vendeur Dokan */
#customer_login .dokan-reg-field,
.dokan-registration-fields {
    margin: .75rem 0;
}
#customer_login label[for="dokan_customer"],
#customer_login label[for="dokan_seller"] {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 500; cursor: pointer;
    padding: .4rem .8rem;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200,#E5E7EB);
    margin-right: .5rem; margin-bottom: .4rem;
    transition: border-color .2s, background .2s;
}
#customer_login input[type="radio"]:checked + span,
#customer_login label:has(input[type="radio"]:checked) {
    border-color: var(--primary,#1E6B3C);
    background: var(--primary-light,#EDF7F1);
    color: var(--primary,#1E6B3C);
}
/* Politique de confidentialité */
#customer_login .woocommerce-privacy-policy-text {
    font-size: .75rem;
    color: var(--gray-500,#6B7280);
    margin-top: .75rem;
    line-height: 1.5;
}
#customer_login .woocommerce-privacy-policy-text a { color: var(--primary,#1E6B3C); }


/* Masquer placeholder Dokan "Texte indicatif" */
.dokan-product-excerpt p:empty,
.woocommerce-product-details__short-description p:empty { display: none; }

/* ═══════════════════════════════════════════════════════════
   RESET CARTES PRODUIT — Style Amazon/Shein/Temu
   Feuille blanche, zéro bordure, minimaliste
═══════════════════════════════════════════════════════════ */

/* Override global */
body { background: #fff !important; }
.mbolo-page-wrap, .mbolo-product-page, main#mbolo-content { background: #fff; }
.section, .section--bg { background: #fff !important; }

/* ── Carte produit — zéro bordure ──────────────────────── */
.product-card {
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.product-card:hover {
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
}

/* Image : fond gris très clair, coins arrondis */
.product-card__figure {
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #F5F5F5 !important;
}
.product-card:hover .product-card__figure img { transform: scale(1.04) !important; }

/* Body texte compact */
.product-card__body {
    padding: .55rem .15rem .4rem !important;
    gap: .2rem !important;
}
.product-card__title {
    font-size: .85rem !important;
    font-weight: 400 !important;
    color: #212121 !important;
    line-height: 1.35 !important;
}
.product-card__title:hover { color: #E44D26 !important; }

/* Prix — rouge comme Shein/Temu */
.product-card__price,
.product-card__body .price,
.product-card__body .woocommerce-Price-amount {
    font-size: .92rem !important;
    font-weight: 700 !important;
    color: #E44D26 !important;
}
.product-card__body .price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: .78rem !important;
    text-decoration: line-through !important;
}
.product-card__body .price ins { text-decoration: none !important; }

/* Étoiles */
.stars-wrap { font-size: .75rem !important; color: #F5A623 !important; }
.stars { color: #F5A623 !important; }
.stars-count { color: #999 !important; font-size: .72rem !important; }

/* Badge promo discret */
.pbadge--sale { background: #E44D26 !important; font-size: .62rem !important; }
.pbadge--new  { background: var(--primary,#1E6B3C) !important; font-size: .62rem !important; }

/* Bouton add-to-cart overlay — fond rouge comme Shein */
.product-card__atc-bar {
    background: #E44D26 !important;
    font-size: .8rem !important;
    border-radius: 0 0 8px 8px !important;
}
.product-card__atc-bar:hover { background: #c73d1f !important; }

/* ── Grille — sans gaps de grille, comme Shein ─────────── */
.product-grid,
.product-grid--auto,
.product-grid--5 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: .75rem !important;
}
@media (max-width: 480px) {
    .product-grid, .product-grid--auto, .product-grid--5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .5rem !important;
    }
}

/* ── Boutique Dokan — même style ────────────────────────── */
#wcfm_store_manager, #wcfm_store_manager .products, #dokan-primary .products,
.wcfm-store-products, .dokan-store-products .products,
.mbolo-product-bottom .related ul.products,
.mbolo-product-bottom .up-sells ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: .75rem !important;
    list-style: none !important;
    padding: 0 !important; margin: 0 !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #dokan-primary .products li.product,
.woocommerce ul.products li.product {
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #wcfm_store_manager .products li.product img, #dokan-primary .products li.product img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background: #F5F5F5 !important;
    display: block !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .woocommerce-loop-product__title, #dokan-primary .products .woocommerce-loop-product__title,
.woocommerce ul.products .woocommerce-loop-product__title {
    font-size: .85rem !important;
    font-weight: 400 !important;
    color: #212121 !important;
    padding: .4rem 0 .15rem !important;
    line-height: 1.35 !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price,
.woocommerce ul.products .price {
    font-size: .9rem !important;
    font-weight: 700 !important;
    color: #E44D26 !important;
    padding: 0 0 .4rem !important;
    display: block !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price del { color: #999 !important; font-weight: 400 !important; font-size: .75rem !important; }
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price ins { text-decoration: none !important; }
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #dokan-primary .products .button,
.woocommerce ul.products .button {
    display: block !important;
    background: #fff !important;
    color: #212121 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: .4rem .5rem !important;
    font-size: .75rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: border-color .2s, color .2s !important;
    margin: 0 !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #wcfm_store_manager .products .button:hover, #dokan-primary .products .button:hover,
.woocommerce ul.products .button:hover {
    border-color: var(--primary,#1E6B3C) !important;
    color: var(--primary,#1E6B3C) !important;
    background: #fff !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #wcfm_store_manager .products li.product .onsale, #dokan-primary .products li.product .onsale {
    top: .4rem !important; left: .4rem !important;
    font-size: .6rem !important;
    background: #E44D26 !important;
}

/* ── Section headers épurés ─────────────────────────────── */
.section-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #212121 !important;
}
.section-eyebrow { font-size: .75rem !important; }
.section-more {
    font-size: .82rem !important;
    color: var(--primary,#1E6B3C) !important;
    font-weight: 500 !important;
}

/* ── Sidebar boutique épurée ─────────────────────────────── */
.wcfm-store-sidebar, .dokan-store-sidebar .widget {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #F0F0F0 !important;
}
.wcfm-store-sidebar, .dokan-store-sidebar .widget-title {
    font-size: .75rem !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}

/* ── Page produit — fond blanc pur ──────────────────────── */
.mbolo-product-summary {
    border: none !important;
    box-shadow: none !important;
    border-left: 1px solid #F0F0F0 !important;
    border-radius: 0 !important;
}
.woocommerce-tabs {
    border: none !important;
    box-shadow: none !important;
    border-top: 1px solid #F0F0F0 !important;
    border-radius: 0 !important;
}
.mbolo-product-bottom ul.products li.product {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ── Header fond blanc ───────────────────────────────────── */
#mbolo-header { background: #fff !important; border-bottom: 1px solid #F0F0F0 !important; box-shadow: none !important; }
.navbar { background: #fff !important; border-top: 1px solid #F0F0F0 !important; border-bottom: 1px solid #F0F0F0 !important; }

/* ── Login — fond blanc pur ─────────────────────────────── */
#customer_login .u-column1,
#customer_login .u-column2 {
    border: 1px solid #F0F0F0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
    border-radius: 8px !important;
}


/* ═══════════════════════════════════════════════════════════
   PAGE MOT DE PASSE OUBLIÉ / RESET PASSWORD
══════════════════════════════════════════════════════════ */
.woocommerce-lost-password .woocommerce,
.woocommerce-page .lost_reset_password {
    max-width: 480px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.woocommerce-ResetPassword p:first-child {
    font-size: .88rem;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}
.woocommerce-ResetPassword label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .35rem;
}
.woocommerce-ResetPassword .input-text,
.woocommerce-ResetPassword input[type=text],
.woocommerce-ResetPassword input[type=email] {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
    background: #FAFAFA;
}
.woocommerce-ResetPassword .input-text:focus,
.woocommerce-ResetPassword input[type=text]:focus,
.woocommerce-ResetPassword input[type=email]:focus {
    border-color: var(--primary, #1E6B3C);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,107,60,.1);
}
.woocommerce-ResetPassword .woocommerce-form-row { margin-bottom: 1rem; }
.woocommerce-ResetPassword button[type=submit],
.woocommerce-ResetPassword .woocommerce-Button {
    width: 100%;
    padding: .75rem 1.5rem;
    background: var(--primary, #1E6B3C);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: .5rem;
}
.woocommerce-ResetPassword button[type=submit]:hover,
.woocommerce-ResetPassword .woocommerce-Button:hover {
    background: var(--primary-dark, #145429);
    transform: translateY(-1px);
}

/* Reset password form (step 2 – new password) */
.woocommerce-ResetPassword input[type=password] {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-size: .9rem;
    outline: none;
    background: #FAFAFA;
}
.woocommerce-ResetPassword input[type=password]:focus {
    border-color: var(--primary, #1E6B3C);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,107,60,.1);
}


/* ── Badge Promo dans les listes produits (WC loop) ────── */
.products li.product { position: relative; }
.products li.product .onsale {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: #E53E3E;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
    pointer-events: none;
    margin: 0;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — breakpoints 768px / 480px
══════════════════════════════════════════════════════════ */

/* ── Hamburger button ───────────────────────────────────── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ──────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    z-index: 1100;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
    flex-direction: column;
    overflow-y: auto;
    transition: left .3s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { left: 0; }
.mobile-nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.mobile-nav__overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #F0F0F0;
    background: var(--primary, #1E6B3C);
    color: #fff;
}
.mobile-nav__title { font-weight: 700; font-size: 1rem; }
.mobile-nav__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: .25rem .5rem;
    line-height: 1;
}
.mobile-nav__search {
    padding: .85rem 1rem;
    border-bottom: 1px solid #F0F0F0;
}
.mobile-nav__search form {
    display: flex;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    overflow: hidden;
}
.mobile-nav__search input[type=search] {
    flex: 1;
    border: none;
    padding: .55rem .75rem;
    font-size: .875rem;
    outline: none;
}
.mobile-nav__search button {
    background: var(--primary, #1E6B3C);
    border: none;
    color: #fff;
    padding: 0 .85rem;
    cursor: pointer;
}
.mobile-nav__links {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
}
.mobile-nav__links a {
    display: block;
    padding: .8rem 1.25rem;
    font-size: .93rem;
    color: #333;
    border-bottom: 1px solid #F7F7F7;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.mobile-nav__links a:hover { background: #F7F7F7; color: var(--primary, #1E6B3C); }
.mobile-nav__sell {
    margin: .75rem 1rem !important;
    background: var(--primary, #1E6B3C) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-align: center;
    font-weight: 600 !important;
    border-bottom: none !important;
}
.mobile-nav__sell:hover { background: #145429 !important; }
body.mobile-nav-open { overflow: hidden; }

/* ── Layout mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* Announcement bar */
    .announcement-bar { font-size: .72rem; padding: .35rem .75rem; }

    /* Header */
    .header-main { padding: .65rem 0; gap: .75rem; }
    .header-search { display: none !important; }
    .mbolo-logo__sub { display: none; }
    .mbolo-logo__wordmark { font-size: 1.25rem; }
    .mbolo-logo__icon { width: 36px; height: 36px; }
    .haction__label { display: none; }
    .haction--sell-desktop { display: none !important; }
    .hamburger-btn { display: flex; }
    .mobile-nav { display: flex; }
    .mobile-nav__overlay { display: block; pointer-events: none; }

    /* Navbar — masquée sur mobile (remplacée par drawer) */
    .navbar { display: none; }

    /* Container padding */
    .container { padding: 0 .85rem; }

    /* Hero */
    .hero__grid { grid-template-columns: 1fr !important; }
    .hero__card { display: none !important; }

    /* Product grid */
    .product-grid--auto { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem !important; }
    .product-grid--4, .product-grid--5 { grid-template-columns: repeat(2, 1fr) !important; }

    /* Product card */
    .product-card__title { font-size: .78rem; -webkit-line-clamp: 2; }
    .product-card__price { font-size: .85rem; }
    .product-card__atc-bar { font-size: .72rem; padding: .4rem; }

    /* Section headers */
    .section-title { font-size: 1rem !important; }
    .section { padding: 1.5rem 0; }

    /* Product detail */
    .mbolo-product-top { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .mbolo-product-summary { padding: 1rem !important; }

    /* Gallery — thumbs en bas sur mobile */
    .mbolo-product-gallery .woocommerce-product-gallery,
    .woocommerce-product-gallery {
        flex-direction: column !important;
        position: static !important;
    }
    .mbolo-product-gallery .flex-control-thumbs,
    .woocommerce-product-gallery .flex-control-nav {
        flex-direction: row !important;
        width: 100% !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        order: 1 !important;
        padding: .5rem !important;
    }
    .mbolo-product-gallery .flex-control-thumbs li img,
    .woocommerce-product-gallery .flex-control-nav li img {
        width: 56px !important;
        height: 56px !important;
    }
    .mbolo-product-gallery .woocommerce-product-gallery__wrapper img,
    .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        aspect-ratio: 1 !important;
        height: auto !important;
        max-height: 320px !important;
    }
    .mbolo-product-gallery > .onsale {
        left: .75rem !important;
        top: .75rem !important;
    }

    /* Tabs produit */
    .wc-tabs { flex-wrap: wrap; }
    .wc-tabs li a { padding: .5rem .75rem; font-size: .8rem; }

    /* Login / Register */
    #customer_login .u-column1,
    #customer_login .u-column2 { border-radius: 8px !important; }
    #customer_login { grid-template-columns: 1fr !important; gap: 1rem !important; }

    /* Cart */
    .woocommerce-cart-form table { font-size: .82rem; }
    .woocommerce-cart-form table th,
    .woocommerce-cart-form table td { padding: .6rem .5rem; }

    /* Checkout */
    .woocommerce-checkout .woocommerce { grid-template-columns: 1fr !important; }

    /* Account */
    .woocommerce-account .woocommerce { grid-template-columns: 1fr !important; }

    /* Dokan store */
    .wcfm-store-wrapper, .dokan-store-wrap { grid-template-columns: 1fr !important; }
    .wcfm-store-sidebar, .dokan-store-sidebar { display: none; }

    /* Related products */
    .mbolo-product-bottom .products { grid-template-columns: repeat(2, 1fr) !important; }

    /* Lost password */
    .woocommerce-lost-password .woocommerce,
    .woocommerce-page .lost_reset_password { margin: 1.5rem auto; padding: 1.25rem; }
}

@media (max-width: 480px) {
    .product-grid--auto { grid-template-columns: repeat(2, 1fr) !important; gap: .5rem !important; }
    .product-card__figure { aspect-ratio: 1 !important; }
    .mbolo-slider { height: 220px !important; }
    .slider-slide__content h2 { font-size: 1rem !important; }
    .slider-slide__content p { font-size: .75rem !important; display: none; }
    .header-actions { gap: .2rem; }
    .haction { padding: .4rem .45rem; }
}

/* ── Fixes responsive vendor page + produits ───────────── */
@media (max-width: 768px) {
    /* Vendor page — 2 colonnes de produits */
    #wcfm_store_manager, #wcfm_store_manager .products, #dokan-primary .products,
    .wcfm-store-products, .dokan-store-products .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .6rem !important;
    }

    /* Store header compact */
    .wcfm-store-header, .dokan-store-header {
        padding: 1rem !important;
        flex-direction: column !important;
        text-align: center;
        gap: .75rem;
    }
    .dokan-profile-frame-wrapper { flex-direction: column !important; align-items: center !important; }
    .wcfm-store-info, .dokan-store-info { text-align: center !important; }
    .dokan-store-name { font-size: 1.1rem !important; }

    /* Supprimer l'overflow horizontal des listes WC */
    .woocommerce ul.products,
    #wcfm_store_manager, #wcfm_store_manager .products, #dokan-primary .products {
        overflow: hidden;
    }

    /* Product card custom — max-width sur mobile */
    .product-card { max-width: 100%; }

    /* Dokan store tabs — scrollable horizontalement */
    .dokan-store-tabs ul,
    .dokan-store-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Filter/sort area compact */
    .wcfm-store-products, .dokan-store-products-filter-area {
        flex-direction: column !important;
        gap: .5rem !important;
    }
}

@media (max-width: 480px) {
    /* 2 colonnes minimum sur très petit écran */
    #wcfm_store_manager, #wcfm_store_manager .products, #dokan-primary .products,
    .wcfm-store-products, .dokan-store-products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Produits detail — image moins haute */
    .mbolo-product-gallery .woocommerce-product-gallery__wrapper img,
    .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        aspect-ratio: 1 !important;
        height: auto !important;
        max-height: 260px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL OVERFLOW FIX — empêche débordement horizontal
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, embed, object { max-width: 100%; }
table { max-width: 100%; }

/* ── Tables WooCommerce scrollables sur mobile ──────────── */
@media (max-width: 768px) {
    .woocommerce-cart-form,
    .woocommerce-order-details,
    .woocommerce table.shop_table,
    .woocommerce table.woocommerce-table {
        overflow-x: auto;
        display: block;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    /* Shop page — cacher sidebar, pleine largeur */
    .shop-sidebar { display: none !important; }
    .shop-layout { grid-template-columns: 1fr !important; padding: 1rem 0 2rem !important; }

    /* Toolbar compact */
    .shop-toolbar { flex-wrap: wrap; gap: .5rem; }
    .shop-toolbar__right { flex-wrap: wrap; gap: .4rem; }
    .shop-toolbar__view { display: none; }

    /* Produits — 2 colonnes */
    .product-grid--4,
    .product-grid--5,
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .6rem !important;
    }

    /* Product card compact sur mobile */
    .product-card { border-radius: 8px !important; }
    .product-card__body { padding: .5rem .6rem .6rem !important; }
    .product-card__title { font-size: .75rem !important; }
    .product-card__price { font-size: .82rem !important; }

    /* WC notice */
    .woocommerce-notices-wrapper { padding: 0 !important; }

    /* Page.php contenu */
    .page-content { padding: 1rem 0 !important; }

    /* Product detail — empêcher overflow */
    .mbolo-product-page .container { padding: 0 .75rem; }
    .mbolo-product-summary { border-radius: 8px !important; padding: 1rem !important; }

    /* Breadcrumb */
    .breadcrumb { font-size: .75rem; flex-wrap: wrap; }

    /* WooCommerce form rows */
    .woocommerce-form-row.form-row-first,
    .woocommerce-form-row.form-row-last {
        width: 100% !important;
        float: none !important;
    }

    /* Checkout fields */
    .woocommerce-billing-fields .form-row,
    .woocommerce-shipping-fields .form-row {
        width: 100% !important;
        float: none !important;
        clear: both;
    }

    /* Announcement bar */
    .announcement-bar { font-size: .7rem; padding: .25rem .75rem; white-space: nowrap; overflow-x: auto; }
}

@media (max-width: 480px) {
    /* Encore plus compact */
    .container { padding: 0 .6rem; }
    .product-grid--4,
    .product-grid--5,
    #productsGrid { gap: .4rem !important; }
    .product-card__title { font-size: .7rem !important; }
    .section-title { font-size: .95rem !important; }
}

/* ── Barre filtres mobile (boutique) ────────────────────── */
.mobile-filter-bar { display: none; }
@media (max-width: 768px) {
    .mobile-filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .6rem 0 .75rem;
        gap: .75rem;
    }
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: .4rem;
        padding: .5rem 1rem;
        background: #fff;
        border: 1px solid #D9D9D9;
        border-radius: 6px;
        font-size: .85rem;
        font-weight: 600;
        cursor: pointer;
        color: #333;
    }
    .mobile-filter-btn:hover { border-color: var(--primary, #1E6B3C); color: var(--primary, #1E6B3C); }
    .mobile-result-count { font-size: .78rem; color: #999; }

    /* Sidebar mobile — drawer depuis le bas */
    #shopSidebar {
        display: none;
        position: fixed !important;
        bottom: 0; left: 0; right: 0;
        z-index: 900;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,.15);
        max-height: 75vh;
        overflow-y: auto;
        padding: 1.25rem;
    }
    #shopSidebar.open { display: block !important; }
}

/* ── Produits similaires — section visible + titre fort ─── */
section.related.products {
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
    border-top: 2px solid #F0F0F0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
section.related.products > h2 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
}
section.related.products > h2::before {
    content: 🔁  !important;
}
section.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 1rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
section.related.products ul.products li.product {
    background: #fff !important;
    border: 1px solid #F0F0F0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
section.related.products ul.products li.product a.woocommerce-LoopProduct-link {
    display: block !important;
    text-decoration: none !important;
}
section.related.products ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}
section.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: .82rem !important;
    font-weight: 600 !important;
    padding: .5rem .6rem .25rem !important;
    color: #222 !important;
    margin: 0 !important;
}
section.related.products ul.products li.product .price {
    font-size: .85rem !important;
    font-weight: 700 !important;
    color: var(--primary, #1E6B3C) !important;
    padding: 0 .6rem .6rem !important;
    display: block !important;
}
section.related.products ul.products li.product .button {
    margin: 0 .6rem .6rem !important;
    display: block !important;
    text-align: center !important;
    background: var(--primary, #1E6B3C) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: .4rem !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
@media (max-width: 768px) {
    section.related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .6rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   BOUTON AJOUTER AU PANIER — STYLE UNIFIÉ v2.2.1
   Appliqué partout : cards, loop WC/Dokan, fiche produit
═══════════════════════════════════════════════════════════ */

/* 1. Override du rouge sur .product-card__atc-bar → vert primaire */
.product-card__atc-bar {
    background: var(--primary, #1E6B3C) !important;
    color: #fff !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    border-radius: 0 0 8px 8px !important;
}
.product-card__atc-bar:hover {
    background: var(--primary-dark, #15532D) !important;
}

/* 2. Boutons WC loop (boutique, dokan, produits similaires) → vert unifié */
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #dokan-primary .products .button,
.woocommerce ul.products .button,
section.related.products .button,
section.upsells.products .button {
    display: block !important;
    background: var(--primary, #1E6B3C) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: .45rem .6rem !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background .2s !important;
    margin: 0 !important;
    cursor: pointer !important;
}
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #wcfm_store_manager .products .button:hover, #dokan-primary .products .button:hover,
.woocommerce ul.products .button:hover,
section.related.products .button:hover,
section.upsells.products .button:hover {
    background: var(--primary-dark, #15532D) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* 3. Fiche produit → déjà vert, on renforce */
.mbolo-product-summary .single_add_to_cart_button,
.mbolo-product-summary button[name="add-to-cart"],
.mbolo-product-summary .button.alt {
    background: var(--primary, #1E6B3C) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}
.mbolo-product-summary .single_add_to_cart_button:hover,
.mbolo-product-summary button[name="add-to-cart"]:hover {
    background: var(--primary-dark, #15532D) !important;
}

/* ═══════════════════════════════════════════════════════════
   ALIGNEMENT GRILLE PRODUITS — v2.2.2
   Titre / Image / Prix / Bouton tous alignés sur chaque ligne
═══════════════════════════════════════════════════════════ */

/* ── 1. Cartes custom (.product-card) ───────────────────── */

/* La carte est déjà flex-column — on fixe la hauteur du titre */
.product-card__title {
    min-height: calc(1.4em * 2); /* réserve 2 lignes même pour les titres courts */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Corps de la carte : espace entre titre et prix */
.product-card__body {
    justify-content: flex-start;
}
.product-card__price {
    margin-top: auto; /* pousse le prix vers le bas */
    padding-top: .4rem;
}

/* ── 2. Boucle WC/Dokan (li.product standard) ───────────── */

/* Flex column sur chaque item pour aligner les zones */
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #dokan-primary .products li.product,
.woocommerce ul.products li.product,
section.related.products li.product,
section.upsells li.product {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Image : carré fixe */
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #dokan-primary .products li.product a > img,
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products li.product, #dokan-primary .products li.product a.woocommerce-loop-product__link > img,
.woocommerce ul.products li.product a > img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link > img,
section.related.products li.product img,
section.upsells li.product img {
    width: 100% !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Titre : 2 lignes max, hauteur réservée */
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .woocommerce-loop-product__title, #dokan-primary .products .woocommerce-loop-product__title,
.woocommerce ul.products .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: calc(1.35em * 2) !important;
    flex-shrink: 0 !important;
}

/* Prix : pousse vers le bas (flex spacer) */
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .price, #dokan-primary .products .price,
.woocommerce ul.products .price {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* Bouton : toujours en bas, ne se compresse pas */
#wcfm_store_manager, #wcfm_store_manager .products, #wcfm_store_manager .products .button, #dokan-primary .products .button,
.woocommerce ul.products .button,
section.related.products .button,
section.upsells .button {
    margin-top: .5rem !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
}

/* ── 3. Produits similaires (mbolo-product-bottom) ───────── */
.mbolo-product-bottom ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}
.mbolo-product-bottom ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: calc(1.35em * 2) !important;
}
.mbolo-product-bottom ul.products li.product .price {
    margin-top: auto !important;
    padding-bottom: .4rem !important;
}
.mbolo-product-bottom ul.products li.product .button {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   PATCH v2.3.0 — Icônes, cadre vert, panier mobile, carte uniforme
═══════════════════════════════════════════════════════════ */

/* ── 1. Icône panier sur atc-bar (overlay) ──────────────── */
.product-card__atc-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: .6rem !important;
    font-size: 0 !important;       /* cache tout texte résiduel */
    line-height: 1 !important;
}
.product-card__atc-bar svg { flex-shrink: 0; }
.product-card__atc-bar--out {
    background: var(--gray-400, #9CA3AF) !important;
    cursor: not-allowed !important;
}

/* ── 2. li.product-card-wrap : reset liste WC ───────────── */
ul.products li.product-card-wrap,
.products li.product-card-wrap {
    list-style: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}
/* Le .product-card à l'intérieur s'affiche normalement */
ul.products li.product-card-wrap .product-card {
    height: 100% !important;
    overflow: hidden !important;
}
/* Pas de lien WC autour du tout (on gère nos propres liens) */
ul.products li.product-card-wrap > a.woocommerce-LoopProduct-link,
ul.products li.product-card-wrap > a { display: none !important; }

/* ── 3. Supprimer le cadre/fond vert parasite sur fiche produit ── */
/* Cible tous les wrappers possibles */
.woocommerce div.product,

.mbolo-product-wrap,
.type-simple,
.type-variable,
.type-grouped,
.type-external {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
/* Gallery : forcer fond blanc, zéro bordure */
.woocommerce-product-gallery,
.mbolo-product-gallery,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery figure {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
/* Trigger zoom WC */
.woocommerce-product-gallery__trigger { display: none !important; }
/* Images secondaires WC par défaut (nth-child) */
.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
    display: none !important;
}

/* ── 4. Bouton Favori sur fiche produit ─────────────────── */
.mbolo-single-wishlist {
    display: flex;
    align-items: center;
    margin: .5rem 0 1rem;
}
.btn--icon--lg {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
    background: #fff !important;
    border: 1.5px solid var(--gray-200, #E5E7EB) !important;
    border-radius: 8px !important;
    padding: .45rem .85rem !important;
    cursor: pointer !important;
    transition: border-color .2s, color .2s !important;
    font-size: .82rem !important;
    color: var(--gray-600, #4B5563) !important;
}
.btn--icon--lg:hover {
    border-color: #EF4444 !important;
    color: #EF4444 !important;
}
.btn--icon--lg.active {
    border-color: #EF4444 !important;
    color: #EF4444 !important;
}
.mbolo-wish-label { font-size: .82rem; font-weight: 500; }

/* ── 5. Panier — responsive mobile ─────────────────────── */
@media (max-width: 768px) {
    /* Table → mode stacked */
    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table thead { display: none !important; }

    .woocommerce-cart .woocommerce-cart-form { overflow: visible !important; }

    /* Chaque ligne = carte */
    .woocommerce-cart .woocommerce-cart-form__cart-item {
        display: flex !important;
        align-items: flex-start !important;
        gap: .75rem !important;
        padding: .75rem 0 !important;
        border-bottom: 1px solid #F0F0F0 !important;
        background: #fff !important;
        border-radius: 0 !important;
    }

    /* Reconstruire la vue mobile avec CSS */
    .woocommerce-cart table.shop_table,
    .woocommerce-cart .woocommerce-cart-form table {
        display: block !important;
        width: 100% !important;
    }
    .woocommerce-cart .woocommerce-cart-form table thead { display: none !important; }
    .woocommerce-cart .woocommerce-cart-form table tbody { display: block !important; }
    .woocommerce-cart .woocommerce-cart-form table tr {
        display: grid !important;
        grid-template-columns: 80px 1fr auto !important;
        grid-template-rows: auto auto auto !important;
        gap: .3rem .75rem !important;
        padding: .85rem 0 !important;
        border-bottom: 1px solid #F0F0F0 !important;
        align-items: start !important;
    }
    .woocommerce-cart .woocommerce-cart-form table tr td { border: none !important; padding: 0 !important; }

    /* Placement dans la grille */
    .woocommerce-cart td.product-thumbnail { grid-row: 1 / 4; grid-column: 1; }
    .woocommerce-cart td.product-thumbnail img { width: 80px !important; height: 80px !important; border-radius: 8px !important; }
    .woocommerce-cart td.product-name { grid-row: 1; grid-column: 2; font-size: .85rem !important; }
    .woocommerce-cart td.product-price { grid-row: 2; grid-column: 2; font-size: .85rem !important; }
    .woocommerce-cart td.product-quantity { grid-row: 3; grid-column: 2; }
    .woocommerce-cart td.product-subtotal { display: none !important; } /* caché mobile */
    .woocommerce-cart td.product-remove { grid-row: 1; grid-column: 3; }

    /* Actions panier */
    .woocommerce-cart .actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: .5rem !important;
        padding: .75rem 0 !important;
    }
    .woocommerce-cart .actions .coupon { width: 100% !important; display: flex !important; gap: .5rem !important; }
    .woocommerce-cart .actions .coupon input { flex: 1 !important; }

    /* Totaux : pleine largeur */
    .woocommerce-cart .cart-collaterals { justify-content: stretch !important; }
    .woocommerce-cart .cart_totals { max-width: 100% !important; }
}

/* ── 6. Grille unifiée pour content-product.php override ── */
/* Assurer que ul.products utilise notre grille */
.woocommerce ul.products,
#wcfm_store_manager, #dokan-primary ul.products,
section.related.products ul.products,
section.upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: .75rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media (max-width: 480px) {
    .woocommerce ul.products,
    #wcfm_store_manager, #dokan-primary ul.products,
    section.related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .5rem !important;
    }
}

/* ── Logo image officielle ──────────────────────────────── */
.mbolo-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.mbolo-logo__img {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 768px) {
    .mbolo-logo__img { height: 72px; }
}
