/*
Theme Name: HaveMark
Description: Thème custom WooCommerce pour HaveMark — vente de matériel de motoculture au Danemark.
Author: Prichrist
Version: 1.1
Text Domain: havemark
*/

:root {
  --forest:       #1D3A2F;
  --forest-mid:   #2D5C47;
  --forest-light: #4A8C6A;
  --sage:         #E8F0EB;
  --cream:        #F7F5F0;
  --white:        #FFFFFF;
  --ink:          #151C18;
  --muted:        #6B7A70;
  --sun:          #F5C842;
  --sun-dark:     #D4A82E;
  --border:       #DCE5DF;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       4px;
  --wrap:         1240px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--forest-mid); text-decoration: none; transition: color .15s; }
a:hover { color: var(--forest); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }

.hm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- SVG Icon system ---- */
.hm-icon { display: inline-block; vertical-align: middle; fill: currentColor; }

/* ---- Buttons ---- */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.hm-btn:hover { background: var(--forest-mid); color: var(--white); transform: translateY(-1px); }
.hm-btn--sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.hm-btn--sun:hover { background: var(--sun-dark); color: var(--ink); border-color: var(--sun-dark); }
.hm-btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.hm-btn--outline:hover { background: var(--white); color: var(--forest); border-color: var(--white); }

/* ---- Topbar ---- */
.hm-topbar {
  background: var(--forest);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 9px 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.hm-topbar a { color: var(--sun); }
.hm-topbar-inner { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.hm-topbar-item { display: flex; align-items: center; gap: 6px; }

/* ---- Header ---- */
.hm-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}
.hm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.hm-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.hm-logo span { color: var(--sun-dark); }

/* Search */
.hm-search { flex: 1; max-width: 440px; }
.hm-search form {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}
.hm-search form:focus-within { border-color: var(--forest-light); }
.hm-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--ink);
}
.hm-search button[type="submit"] {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 9px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hm-search button[type="submit"]:hover { background: var(--forest-mid); }

/* Nav */
.hm-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.hm-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.hm-nav a:hover, .hm-nav .current-menu-item > a { color: var(--forest); border-bottom-color: var(--sun); }

/* Cart */
.hm-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: var(--radius);
  flex-shrink: 0;
  white-space: nowrap;
}
.hm-cart-btn:hover { background: var(--sun-dark); color: var(--ink); }
.hm-cart-count {
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---- Hero ---- */
.hm-hero {
  background: var(--forest);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hm-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,66,0.12);
  border: 1px solid var(--sun);
  color: var(--sun);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.hm-hero h1 { color: var(--white); margin-bottom: 16px; }
.hm-hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 460px; margin-bottom: 28px; }
.hm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hm-hero-img img { width: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.hm-hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hm-hero-stat .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--sun); display: block; }
.hm-hero-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Trust band ---- */
.hm-trust {
  background: var(--sage);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.hm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-trust-item { display: flex; align-items: center; gap: 14px; }
.hm-trust-icon {
  width: 42px;
  height: 42px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.hm-trust-item strong { display: block; font-family: var(--font-display); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--forest); }
.hm-trust-item span { font-size: 0.8rem; color: var(--muted); }

/* ---- Categories ---- */
.hm-cats { padding: 60px 0; background: var(--cream); }
.hm-section-title { text-align: center; margin-bottom: 36px; }
.hm-section-title h2 { margin-bottom: 8px; }
.hm-section-title p { color: var(--muted); font-size: 1rem; margin: 0; }
.hm-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hm-cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--ink);
}
.hm-cat-card:hover { border-color: var(--forest-light); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--forest); }
.hm-cat-icon { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--forest-mid); }
.hm-cat-card .name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; display: block; }
.hm-cat-card .count { font-size: 0.75rem; color: var(--muted); margin-top: 4px; display: block; }

/* ---- Products ---- */
.hm-products { padding: 70px 0; }
.hm-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.hm-section-head a { font-family: var(--font-display); text-transform: uppercase; font-size: 0.88rem; color: var(--forest-mid); letter-spacing: 0.04em; }
.hm-section-head a:hover { color: var(--sun-dark); }

/* WooCommerce product grid — fix complet */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--white) !important;
  overflow: visible !important;
  transition: box-shadow .15s, transform .15s !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  min-width: 0 !important;
}

ul.products li.product:hover { box-shadow: var(--shadow) !important; transform: translateY(-2px) !important; }

/* Image — fixed height, cover, no blur */
ul.products li.product a.woocommerce-loop-product__link {
  display: block !important;
  overflow: hidden !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  flex-shrink: 0 !important;
}
ul.products li.product a img,
ul.products li.product img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: var(--cream) !important;
  border-bottom: 1px solid var(--border) !important;
  margin: 0 !important;
  padding: 10px !important;
  display: block !important;
}

/* Titre */
ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.88rem !important;
  font-family: var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
  padding: 12px 14px 4px !important;
  color: var(--ink) !important;
  line-height: 1.4 !important;
  flex-grow: 1 !important;
}

/* Prix */
ul.products li.product .price {
  padding: 4px 14px 8px !important;
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--forest) !important;
  display: block !important;
}
ul.products li.product .price del {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  margin-right: 4px !important;
}
ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--safety-dark, #c0392b) !important;
}

/* Bouton */
ul.products li.product .button,
ul.products li.product a.button,
ul.products li.product .add_to_cart_button {
  margin: 0 14px 14px !important;
  display: block !important;
  background: var(--forest) !important;
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  padding: 10px 14px !important;
  border-radius: var(--radius) !important;
  text-align: center !important;
  transition: background .15s !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
ul.products li.product .button:hover,
ul.products li.product a.button:hover {
  background: var(--sun) !important;
  color: var(--ink) !important;
}

/* Badge promo */
ul.products li.product .onsale {
  background: var(--sun) !important;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  font-size: 0.8rem !important;
  padding: 4px 10px !important;
}

/* "Produits similaires" section */
.related.products h2,
.upsells.products h2 {
  font-family: var(--font-display) !important;
  color: var(--forest) !important;
  text-transform: uppercase !important;
  margin-bottom: 24px !important;
}
.related.products ul.products,
.upsells.products ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* ---- Footer ---- */
.hm-footer { background: var(--forest); color: rgba(255,255,255,0.65); padding: 60px 0 28px; font-size: 0.88rem; }
.hm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.hm-footer h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.hm-footer ul { list-style: none; padding: 0; margin: 0; }
.hm-footer ul li { margin-bottom: 8px; }
.hm-footer a { color: rgba(255,255,255,0.6); transition: color .15s; }
.hm-footer a:hover { color: var(--sun); }
.hm-footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--white); text-transform: uppercase; margin-bottom: 12px; display: block; }
.hm-footer-logo span { color: var(--sun); }
.hm-footer-contact { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
.hm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.hm-footer-bottom a { color: rgba(255,255,255,0.35); }
.hm-footer-bottom a:hover { color: var(--sun); }

/* ---- Single product ---- */
.hm-product-wrap { padding: 40px 0 70px; }
.woocommerce-breadcrumb { font-size: 0.82rem; color: var(--muted); padding: 16px 0; }
.woocommerce-breadcrumb a { color: var(--muted); }
.single-product .product_title { font-family: var(--font-display) !important; color: var(--forest) !important; text-transform: uppercase !important; }
.single-product .price { font-family: var(--font-display) !important; font-size: 2rem !important; color: var(--forest) !important; font-weight: 700 !important; }
.single-product .single_add_to_cart_button {
  background: var(--sun) !important; color: var(--ink) !important;
  font-family: var(--font-display) !important; text-transform: uppercase !important;
  font-weight: 700 !important; letter-spacing: 0.05em !important;
  border-radius: var(--radius) !important; padding: 16px 32px !important;
  font-size: 1.05rem !important; border: none !important; transition: background .15s !important;
}
.single-product .single_add_to_cart_button:hover { background: var(--sun-dark) !important; }

/* ---- Pages légales ---- */
.hm-legal { padding: 60px 0; max-width: 820px; margin: 0 auto; }
.hm-legal h1 { margin-bottom: 24px; }
.hm-legal h2 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 10px; }
.hm-legal p, .hm-legal li { font-size: 0.95rem; color: #333; }
.hm-legal table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.hm-legal table th, .hm-legal table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 0.9rem; }
.hm-legal table th { background: var(--sage); font-family: var(--font-display); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---- Breadcrumb ---- */
.hm-breadcrumb { padding: 14px 0; font-size: 0.82rem; color: var(--muted); }
.hm-breadcrumb a { color: var(--muted); }
.hm-breadcrumb a:hover { color: var(--forest); }
.hm-breadcrumb span { color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .hm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-img { display: none; }
  .hm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .hm-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-nav { display: none; }
  .hm-search { display: none; }
  .hm-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr !important; }
  .hm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-trust-grid { grid-template-columns: 1fr; }
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============================================================
   HM PRODUCT GRID — cartes custom (remplace shortcodes WC)
   ============================================================ */
.hm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.hm-pcard {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
  overflow: hidden;
}
.hm-pcard:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hm-pcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 2px;
  z-index: 2;
}

.hm-pcard__img-link {
  display: block;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hm-pcard__img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
  background: var(--cream);
  transition: transform .2s;
}
.hm-pcard:hover .hm-pcard__img { transform: scale(1.03); }

.hm-pcard__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 6px;
}

.hm-pcard__title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.hm-pcard__title:hover { color: var(--forest); }

.hm-pcard__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
}
.hm-pcard__price del {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 4px;
}
.hm-pcard__price ins {
  text-decoration: none;
  color: #c0392b;
}

.hm-pcard__btn {
  display: block;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: var(--radius);
  text-align: center;
  transition: background .15s;
  margin-top: auto;
}
.hm-pcard__btn:hover { background: var(--sun); color: var(--ink); }

/* Responsive */
@media (max-width: 1024px) { .hm-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .hm-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .hm-product-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CATEGORY NAV BAR — barre de navigation circulaire
   ============================================================ */
.hm-cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 65px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hm-cat-nav__inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hm-cat-nav__inner::-webkit-scrollbar { display: none; }

.hm-cat-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
  flex-shrink: 0;
}
.hm-cat-nav__item:hover,
.hm-cat-nav__item.active {
  color: var(--forest);
}

.hm-cat-nav__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.hm-cat-nav__circle svg {
  width: 24px;
  height: 24px;
  color: var(--forest-mid);
}
.hm-cat-nav__item:hover .hm-cat-nav__circle,
.hm-cat-nav__item.active .hm-cat-nav__circle {
  background: var(--forest);
  border-color: var(--forest);
}
.hm-cat-nav__item:hover .hm-cat-nav__circle svg,
.hm-cat-nav__item.active .hm-cat-nav__circle svg {
  color: var(--white);
}

.hm-cat-nav__item span {
  font-size: 0.72rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* ============================================================
   CATALOG LAYOUT — sidebar + main
   ============================================================ */
.hm-catalog-wrap { padding: 40px 0 70px; }

.hm-catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.hm-sidebar { position: sticky; top: 140px; }
.hm-sidebar__box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.hm-sidebar__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.hm-sidebar__cats,
.hm-sidebar__price,
.hm-sidebar__stock {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hm-sidebar__cats li,
.hm-sidebar__price li,
.hm-sidebar__stock li {
  margin-bottom: 4px;
}
.hm-sidebar__cats a,
.hm-sidebar__price a,
.hm-sidebar__stock a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink);
  transition: background .1s, color .1s;
}
.hm-sidebar__cats a:hover,
.hm-sidebar__price a:hover,
.hm-sidebar__stock a:hover { background: var(--sage); color: var(--forest); }
.hm-sidebar__cats li.active a,
.hm-sidebar__price li.active a,
.hm-sidebar__stock li.active a {
  background: var(--forest);
  color: var(--white);
  font-weight: 600;
}
.hm-sidebar__cats span,
.hm-sidebar__price span {
  font-size: 0.78rem;
  background: var(--sage);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 100px;
}
.hm-sidebar__cats li.active span { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }

/* Catalog header */
.hm-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hm-catalog-header h1 { margin: 0; font-size: 1.8rem; }
.hm-catalog-meta { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; color: var(--muted); }

/* 3 columns in catalog (sidebar takes space) */
.hm-product-grid--3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.hm-pagination { margin-top: 36px; text-align: center; }

/* Responsive sidebar */
@media (max-width: 900px) {
  .hm-catalog-layout { grid-template-columns: 1fr; }
  .hm-sidebar { position: static; display: none; }
}

/* ============================================================
   PAGE HERO (Contact, FAQ, etc.)
   ============================================================ */
.hm-page-hero {
  background: var(--forest);
  color: var(--white);
  padding: 50px 0 40px;
}
.hm-page-hero h1 { color: var(--white); margin-bottom: 8px; font-size: 2.4rem; }
.hm-page-hero p { color: rgba(255,255,255,0.7); margin: 0; font-size: 1.05rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.hm-contact-section { padding: 60px 0 80px; }
.hm-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hm-contact-form-wrap h2,
.hm-contact-info h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sun);
  display: inline-block;
}

/* Form */
.hm-form { display: flex; flex-direction: column; gap: 18px; }
.hm-form__row { display: grid; gap: 16px; }
.hm-form__row--2 { grid-template-columns: 1fr 1fr; }
.hm-form__field { display: flex; flex-direction: column; gap: 6px; }
.hm-form__field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.hm-form__field input,
.hm-form__field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .15s;
  outline: none;
  resize: vertical;
}
.hm-form__field input:focus,
.hm-form__field textarea:focus { border-color: var(--forest-light); background: var(--white); }

/* Alerts */
.hm-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.hm-alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.hm-alert--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Contact cards */
.hm-contact-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hm-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hm-contact-card__icon {
  width: 40px;
  height: 40px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hm-contact-card strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
.hm-contact-card a, .hm-contact-card span { font-size: 0.92rem; color: var(--ink); }
.hm-contact-card a:hover { color: var(--forest); }
.hm-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ============================================================
   FAQ PAGE
   ============================================================ */
.hm-faq { display: flex; flex-direction: column; }
.hm-faq__item {
  border-bottom: 1px solid var(--border);
}
.hm-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .15s;
}
.hm-faq__question:hover { color: var(--forest); }
.hm-faq__icon { flex-shrink: 0; transition: transform .2s; color: var(--forest); }
.hm-faq__answer { padding: 0 0 20px; }
.hm-faq__answer p { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.7; }

/* ============================================================
   FLOATING BUTTONS — WhatsApp + Chat
   ============================================================ */
.hm-float-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.hm-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.hm-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.hm-float-btn--whatsapp { background: #25D366; }
.hm-float-btn--chat { background: var(--forest); }
.hm-float-btn svg { width: 24px; height: 24px; }
.hm-float-tooltip {
  position: absolute;
  right: 64px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.hm-float-btn:hover .hm-float-tooltip { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .hm-contact-grid { grid-template-columns: 1fr; }
  .hm-form__row--2 { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE PRODUCT — image haute qualité
   ============================================================ */
.single-product .woocommerce-product-gallery {
  position: relative !important;
}
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img,
.single-product img.wp-post-image {
  width: 100% !important;
  height: auto !important;
  max-height: 500px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: var(--cream) !important;
  padding: 20px !important;
  border-radius: var(--radius) !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
}

/* GMC : image principale bien visible */
.single-product .woocommerce-product-gallery__wrapper {
  background: var(--cream) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
}

/* ============================================================
   RELATEREDE VARER — fix case vide + alignement
   ============================================================ */
.related.products,
.upsells.products {
  margin-top: 60px !important;
  clear: both !important;
}
.related.products h2,
.upsells.products h2 {
  font-family: var(--font-display) !important;
  font-size: 1.8rem !important;
  color: var(--forest) !important;
  text-transform: uppercase !important;
  margin-bottom: 24px !important;
}
.related.products ul.products,
.upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.related.products ul.products li.product,
.upsells.products ul.products li.product {
  border: 1.5px solid #DCE5DF !important;
  border-radius: 4px !important;
  background: #fff !important;
  overflow: hidden !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.related.products ul.products li.product a img,
.upsells.products ul.products li.product a img {
  width: 100% !important;
  height: 180px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #F7F5F0 !important;
  padding: 12px !important;
  display: block !important;
  border-bottom: 1px solid #DCE5DF !important;
  box-sizing: border-box !important;
}
.related.products .woocommerce-loop-product__title,
.upsells.products .woocommerce-loop-product__title {
  font-size: 0.88rem !important;
  padding: 10px 12px 4px !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}
.related.products .price,
.upsells.products .price {
  padding: 4px 12px 8px !important;
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--forest) !important;
}
.related.products .button,
.upsells.products .button {
  margin: 0 12px 12px !important;
  display: block !important;
  background: var(--forest) !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  padding: 10px !important;
  border-radius: 4px !important;
  text-align: center !important;
  border: none !important;
}
.related.products .button:hover,
.upsells.products .button:hover {
  background: var(--sun) !important;
  color: var(--ink) !important;
}

@media (max-width: 768px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   HERO FULL WIDTH — texte seul, pas d'image
   ============================================================ */
.hm-hero--full {
  padding: 80px 40px 60px !important;
  background: var(--forest) !important;
  text-align: center !important;
  overflow: hidden !important;
}
.hm-hero--full .hm-wrap {
  max-width: 100% !important;
  margin: 0 auto !important;
}
.hm-hero--full .hm-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(245,200,66,0.15) !important;
  border: 1px solid rgba(245,200,66,0.4) !important;
  border-radius: 20px !important;
  padding: 5px 16px !important;
  color: var(--sun) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 24px !important;
}
.hm-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(48px, 10vw, 120px) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  color: var(--white) !important;
  text-transform: uppercase !important;
  margin: 0 0 20px !important;
  letter-spacing: -2px !important;
  white-space: nowrap !important;
}
.hm-hero--full .lead {
  font-size: 18px !important;
  color: rgba(255,255,255,0.75) !important;
  max-width: 580px !important;
  margin: 0 auto 32px !important;
  line-height: 1.6 !important;
}
.hm-hero--full .hm-hero-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-bottom: 48px !important;
}
.hm-hero--full .hm-hero-stats {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 32px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.hm-hero-stat--sep {
  width: 1px !important;
  height: 36px !important;
  background: rgba(255,255,255,0.2) !important;
}
.hm-hero--full .hm-hero-stat .num {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  color: var(--sun) !important;
  line-height: 1 !important;
}
.hm-hero--full .hm-hero-stat .lbl {
  display: block !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.55) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-top: 4px !important;
}

@media (max-width: 768px) {
  .hm-hero-title { font-size: 48px !important; }
  .hm-hero--full { padding: 50px 0 40px !important; }
  .hm-hero--full .hm-hero-stats { gap: 20px !important; }
}

/* ============================================================
   HERO SPLIT — texte gauche + grille catégories droite
   ============================================================ */
.hm-hero--split {
  background: var(--forest) !important;
  padding: 60px 0 52px !important;
}
.hm-hero-split-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  align-items: center !important;
}
.hm-hero-left .hm-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(245,200,66,0.15) !important;
  border: 1px solid rgba(245,200,66,0.4) !important;
  border-radius: 20px !important;
  padding: 5px 16px !important;
  color: var(--sun) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 20px !important;
}
.hm-hero-left .hm-hero-title {
  font-family: var(--font-display) !important;
  font-size: 52px !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
  color: var(--white) !important;
  text-transform: uppercase !important;
  margin: 0 0 16px !important;
  letter-spacing: -1px !important;
  white-space: normal !important;
}
.hm-hero-left .lead {
  font-size: 15px !important;
  color: rgba(255,255,255,0.72) !important;
  line-height: 1.6 !important;
  margin: 0 0 24px !important;
}
.hm-hero-left .hm-hero-actions {
  display: flex !important;
  gap: 12px !important;
  margin-bottom: 36px !important;
}
.hm-hero-left .hm-hero-stats {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.hm-hero-left .hm-hero-stat .num {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--sun) !important;
  line-height: 1 !important;
}
.hm-hero-left .hm-hero-stat .lbl {
  display: block !important;
  font-size: 10px !important;
  color: rgba(255,255,255,0.55) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-top: 3px !important;
}
.hm-hero-left .hm-hero-stat--sep {
  width: 1px !important;
  height: 32px !important;
  background: rgba(255,255,255,0.2) !important;
}

/* Grille catégories droite */
.hm-hero-cats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.hm-hero-cat {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  text-decoration: none !important;
  transition: background .15s, border-color .15s !important;
  display: block !important;
}
.hm-hero-cat:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(245,200,66,0.4) !important;
}
.hm-hero-cat__icon {
  width: 40px !important;
  height: 40px !important;
  background: rgba(245,200,66,0.15) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
}
.hm-hero-cat__name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin-bottom: 3px !important;
}
.hm-hero-cat__count {
  font-size: 11px !important;
  color: rgba(255,255,255,0.45) !important;
}

@media (max-width: 900px) {
  .hm-hero-split-grid { grid-template-columns: 1fr !important; }
  .hm-hero-left .hm-hero-title { font-size: 38px !important; }
  .hm-hero-cats { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .hm-hero-cats { grid-template-columns: repeat(2, 1fr) !important; }
}
