:root {
  --accent: #ff0033;
  --accent-dark: #d9002b;
  --black: #111;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-500: #767676;
  --white: #fff;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1440px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

#site-header { position: sticky; top: 0; z-index: 100; }
.page-header, .catalog-layout, .cart-page, .product-detail-page {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Promo bar */
.promo-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.promo-bar strong { color: var(--accent); font-weight: 600; }
.promo-bar .code { background: var(--white); color: var(--black); padding: 2px 8px; font-weight: 600; margin: 0 4px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: var(--header-h);
}
.logo {
  justify-self: center;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo span { font-weight: 600; color: var(--accent); }
.header-search {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 4px;
  padding: 8px 14px;
  max-width: 280px;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}
.header-search svg { flex-shrink: 0; opacity: 0.5; margin-right: 8px; }
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-actions a, .header-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--black);
  transition: color 0.2s;
}
.header-actions a:hover { color: var(--accent); }
.cart-count {
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -8px;
}
.cart-link { position: relative; }

/* Nav */
.main-nav {
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.main-nav ul {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 16px;
  white-space: nowrap;
}
.main-nav a {
  display: block;
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.hero img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  max-height: 560px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.hero-text h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-text p {
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
  font-size: 1rem;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  margin-top: 20px;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  border: 2px solid var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover { background: var(--gray-100); }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  text-align: center;
}

/* Categories grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
}
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-100);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  position: relative;
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--gray-100);
  overflow: hidden;
  margin-bottom: 12px;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover img { transform: scale(1.03); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-card:hover .wishlist-btn { opacity: 1; }
.product-name {
  font-size: 0.85rem;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 0.95rem;
  font-weight: 600;
}
.product-price .old {
  color: var(--gray-500);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
  font-size: 0.85rem;
}

/* Catalog page */
.page-header {
  padding: 32px 24px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.page-header p { color: var(--gray-500); margin-top: 8px; }
.catalog-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  gap: 32px;
}
@media (min-width: 992px) {
  .catalog-layout {
    grid-template-columns: 240px 1fr;
  }
}
.filters {
  border: 1px solid var(--gray-200);
  padding: 20px;
  height: fit-content;
}
.filters h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  padding: 6px 0;
  cursor: pointer;
}
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.sort-bar select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  font-size: 0.875rem;
}

.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 16px 48px;
}
.mh-load-more-btn {
  min-width: 280px;
  max-width: 100%;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mh-load-more-btn:hover {
  background: #111;
  color: #fff;
}
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #767676;
}

/* Product detail */
.product-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  gap: 40px;
}
@media (min-width: 992px) {
  .product-detail {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}
.product-gallery {
  background: var(--gray-100);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--accent); }
.product-info h1 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}
.product-info .price-lg {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.product-info .desc {
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.7;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.qty-control {
  display: flex;
  border: 1px solid var(--gray-200);
}
.qty-control button {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}
.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  font-size: 1rem;
}
.add-cart-btn {
  width: 100%;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.add-cart-btn:hover { background: var(--accent); }
.reassurance {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.reassurance li {
  font-size: 0.85rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.reassurance li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* Cart */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr minmax(120px, auto);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.cart-item-img-link {
  display: block;
}
.cart-item-body {
  min-width: 0;
}
.cart-item-unit-price {
  margin: 6px 0 10px;
  color: var(--gray-500);
  font-size: 0.875rem;
}
.mh-cart-qty {
  margin-top: 4px;
}
.mh-cart-qty-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.mh-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  background: #fff;
}
.mh-cart-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
}
.mh-cart-qty-btn:hover:not(:disabled) {
  background: var(--gray-200);
}
.mh-cart-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.mh-cart-qty-input {
  width: 48px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.mh-cart-qty-input::-webkit-outer-spin-button,
.mh-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.mh-cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #111;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mh-cart-remove-btn:hover {
  background: var(--accent);
}
.mh-cart-remove-btn svg {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cart-page {
    padding: 24px 16px calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .cart-page h1 {
    font-size: 1.35rem !important;
    margin-bottom: 20px !important;
  }
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "img body"
      "img side";
    gap: 10px 12px;
    padding: 16px 0;
  }
  .cart-item-img-link { grid-area: img; }
  .cart-item-body { grid-area: body; }
  .cart-item-side {
    grid-area: side;
    align-items: stretch;
    width: 100%;
  }
  .cart-item-side .product-price {
    text-align: left;
    margin: 0;
  }
  .mh-cart-remove-btn {
    width: 100%;
  }
  .cart-summary {
    padding: 16px;
  }
}
.cart-item img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
  width: 100%;
}

/* Modal — ajout au panier */
.mh-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mh-cart-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
body.mh-cart-modal-open {
  overflow: hidden;
}
.mh-cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.mh-cart-modal-box {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 28px 24px 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.mh-cart-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-500);
}
.mh-cart-modal-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 8px;
}
.mh-cart-modal-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mh-cart-modal-name {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0 0 20px;
  line-height: 1.4;
}
.mh-cart-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mh-order-success-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-600);
  margin: 0 0 20px;
}
.mh-order-success-modal .mh-cart-modal-box {
  max-width: 440px;
}
.mh-cart-modal-actions .btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-summary {
  margin-top: 32px;
  padding: 24px;
  background: var(--gray-100);
}
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cart-summary .total {
  font-size: 1.25rem;
  font-weight: 600;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  margin-top: 16px;
}

.mh-cart-checkout {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.mh-cart-checkout label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--gray-500);
}
.mh-checkout-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.mh-checkout-lead {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 16px;
  line-height: 1.45;
}
.mh-checkout-lead a {
  color: var(--black);
  text-decoration: underline;
}
.mh-checkout-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .mh-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }
  .mh-checkout-grid label[for="checkout-email"],
  .mh-checkout-grid #checkout-email,
  .mh-checkout-grid label[for="checkout-phone"],
  .mh-checkout-grid #checkout-phone {
    grid-column: span 1;
  }
  .mh-checkout-grid label[for="checkout-name"],
  .mh-checkout-grid #checkout-name,
  .mh-checkout-grid label[for="checkout-address"],
  .mh-checkout-grid #checkout-address,
  .mh-checkout-grid label[for="checkout-postcode"],
  .mh-checkout-grid #checkout-postcode,
  .mh-checkout-grid label[for="checkout-city"],
  .mh-checkout-grid #checkout-city {
    grid-column: 1 / -1;
  }
}
.mh-cart-checkout input[type="email"],
.mh-cart-checkout input[type="tel"],
.mh-cart-checkout input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  margin-bottom: 0;
  box-sizing: border-box;
}
.mh-btn-revolut {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #191c1f;
  color: #fff;
  border: none;
  cursor: pointer;
}
.mh-btn-revolut:hover:not(:disabled) {
  background: #000;
}
.mh-btn-revolut:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mh-cart-checkout-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.empty-cart {
  text-align: center;
  padding: 80px 24px;
}
.empty-cart p { color: var(--gray-500); margin: 16px 0 24px; }

/* Welcome */
.welcome {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.welcome h2 {
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.welcome p { color: var(--gray-500); line-height: 1.8; }

/* Footer */
.site-footer {
  background: var(--gray-100);
  margin-top: auto;
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
  padding: 4px 0;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
  font-size: 0.875rem;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Habitat-style home */
.home-full-bleed { width: 100%; }
.home-full-bleed img { width: 100%; max-height: 70vh; object-fit: cover; }

.promo-countdown { display: inline-flex; gap: 4px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.promo-countdown span { opacity: 0.85; }

.home-categories { padding: 32px 0 48px; }
.home-categories h2 {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  color: var(--gray-500);
}

.promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto 8px;
  padding: 0 8px;
}
@media (max-width: 768px) { .promo-duo { grid-template-columns: 1fr; } }
.promo-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gray-100);
}
@media (min-width: 992px) { .promo-tile { aspect-ratio: 3/4; } }
.promo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.promo-tile:hover img { transform: scale(1.04); }
.promo-tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--white);
}
.promo-tile-caption h3 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.promo-tile-caption p { font-size: 0.85rem; opacity: 0.9; margin-top: 4px; }

.home-products-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
}
.home-products-row h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  text-align: center;
}

.moodboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 8px 48px;
}
@media (min-width: 992px) {
  .moodboard { grid-template-columns: repeat(6, 1fr); padding: 0 24px 64px; }
}
.moodboard a {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.moodboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.moodboard a:hover img { transform: scale(1.06); }

.nav-promo-links a.menu-new { color: var(--accent); }

/* Product gallery (Habitat-style) */
.product-detail-page { max-width: var(--max); margin: 0 auto; padding: 24px; }
.gallery-layout {
  display: grid;
  gap: 12px;
}
@media (min-width: 992px) {
  .product-detail { grid-template-columns: 1fr 420px; }
  .gallery-layout {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto;
  }
}
.gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  order: 2;
}
@media (min-width: 992px) {
  .gallery-thumbs {
    flex-direction: column;
    order: 0;
    overflow-y: auto;
    max-height: 560px;
  }
}
.gallery-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--gray-100);
  padding: 0;
  overflow: hidden;
}
@media (min-width: 992px) {
  .gallery-thumb { width: 72px; height: 72px; }
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--black); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  order: 1;
  background: var(--gray-100);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 600px;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 120px);
}
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar {
  background: var(--black);
  color: var(--white);
  padding: 24px 16px;
}
.admin-sidebar a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  border-radius: 4px;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.8);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-main { padding: 32px 24px; max-width: 1100px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.admin-table img { width: 48px; height: 48px; object-fit: cover; }
.admin-form label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--gray-500);
}
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.admin-form textarea { min-height: 80px; resize: vertical; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.login-box {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  border: 1px solid var(--gray-200);
}
.login-box h1 { font-size: 1.25rem; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Compte client */
.mh-compte-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.mh-compte-title {
  font-size: 1.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.mh-compte-lead {
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.5;
}
.mh-compte-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.mh-compte-tab {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.mh-compte-tab.is-active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.mh-compte-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
  color: var(--gray-500);
}
.mh-compte-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  box-sizing: border-box;
}
.mh-compte-form .btn {
  width: 100%;
  margin-top: 20px;
}
.mh-compte-card {
  padding: 24px;
  background: var(--gray-100);
  line-height: 1.6;
}
.mh-compte-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.mh-compte-msg {
  margin-top: 16px;
  font-size: 0.875rem;
}
.mh-hidden {
  display: none !important;
}

/* Checkout 3 étapes */
.mh-checkout-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  flex-wrap: wrap;
}
.mh-checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  background: #fff;
}
.mh-checkout-step.is-active {
  color: var(--black);
  border-color: var(--black);
}
.mh-checkout-step.is-done {
  color: var(--gray-600);
}
.mh-checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-200);
  font-size: 0.7rem;
}
.mh-checkout-step.is-active .mh-checkout-step-num {
  background: var(--black);
  color: #fff;
}
.mh-checkout-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .mh-checkout-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
  .mh-checkout-layout--single {
    grid-template-columns: 1fr 280px;
  }
}
.mh-cart-page-title {
  font-size: 1.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}
.mh-checkout-aside .cart-summary {
  margin-bottom: 16px;
}
.mh-checkout-aside--sticky {
  position: sticky;
  top: 100px;
}
.mh-checkout-panel {
  max-width: 560px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  background: #fff;
}
.mh-checkout-panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 20px;
}
.mh-checkout-panel-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.mh-auth-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
  color: var(--gray-500);
}
.mh-auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  box-sizing: border-box;
}
.mh-auth-form .btn-block {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mh-auth-msg {
  font-size: 0.875rem;
  margin: 8px 0;
  min-height: 1.2em;
}
.mh-auth-logged {
  margin-bottom: 20px;
  line-height: 1.5;
}
.mh-auth-email {
  font-size: 1.05rem;
  margin: 8px 0 16px;
}
.mh-compte-tabs--inline {
  margin-bottom: 8px;
}
.mh-form-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 8px 0 0;
}
.mh-req {
  color: #c00;
}
.mh-checkout-panel .mh-checkout-grid input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  box-sizing: border-box;
}
.mh-checkout-panel .mh-checkout-grid label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 12px 0 6px;
  color: var(--gray-500);
}
.btn-block {
  width: 100%;
}

/* Récapitulatif commande (étape 4) */
.mh-recap-panel {
  max-width: 640px;
}
.mh-recap-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin: 0 0 12px;
}
.mh-recap-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mh-recap-block:last-of-type {
  border-bottom: none;
}
.mh-recap-dl {
  margin: 0;
}
.mh-recap-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.mh-recap-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mh-recap-row dd {
  margin: 0;
  color: var(--black);
}
.mh-recap-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mh-recap-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}
.mh-recap-item:last-child {
  border-bottom: none;
}
.mh-recap-img-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.mh-recap-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.mh-recap-item-body {
  min-width: 0;
}
.mh-recap-qty {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
}
.mh-recap-name {
  margin: 0;
  line-height: 1.35;
}
.mh-recap-price {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}
.mh-recap-email {
  font-size: 0.9rem;
  margin: 0 0 16px;
  color: var(--gray-600);
}
.mh-recap-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mh-recap-block-head .mh-recap-heading {
  margin: 0;
}
.mh-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  color: var(--black);
}
.mh-promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.mh-promo-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  text-transform: uppercase;
  box-sizing: border-box;
}
.mh-promo-applied {
  font-size: 0.875rem;
  color: #1a6b2a;
  margin: 0 0 8px;
  line-height: 1.4;
}
.mh-promo-warn {
  font-size: 0.875rem;
  color: #c00;
  margin: 0 0 8px;
}
.mh-promo-remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.mh-promo-hint {
  font-size: 0.8rem;
  margin: 0;
  min-height: 1.1em;
}
.mh-summary-discount span:last-child {
  color: #1a6b2a;
}
.mh-recap-panel .mh-checkout-grid input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .mh-promo-row {
    flex-direction: column;
  }
  .mh-promo-row .btn {
    width: 100%;
  }
  .mh-checkout-step-label {
    font-size: 0.65rem;
  }
}

/* Mobile menu */
.burger { display: none; }
@media (max-width: 768px) {
  .header-search { display: none; }
  .burger { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
}

/* Pages d'information (footer) */
.mh-info-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.mh-info-breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.mh-info-breadcrumb a { color: var(--black); text-decoration: none; }
.mh-info-breadcrumb a:hover { text-decoration: underline; }
.mh-info-article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.mh-info-article h2 {
  font-size: 1.1rem;
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mh-info-article p,
.mh-info-article li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #333;
}
.mh-info-article ul { padding-left: 1.25rem; margin-bottom: 20px; }
.mh-info-article a { color: var(--black); }
