/* ==========================================================================
   Moroccan Lamp - design system (phase 1, en site)
   Mobile-first. Every new component is prefixed "ml-" so it never collides
   with the legacy Bootstrap / WooCommerce theme that inner pages still load.
   Units are px on purpose: Bootstrap 3 sets html{font-size:10px}, so rem
   would render differently on legacy pages and on the homepage.
   ========================================================================== */

:root {
  /* Palette: ivory, sand, espresso ink and aged brass */
  --ml-bg: #fbf8f3;
  --ml-surface: #ffffff;
  --ml-sand: #f3ece1;
  --ml-sand-deep: #e9dfcf;
  --ml-line: #e4d9c8;
  --ml-ink: #231c15;
  --ml-ink-soft: #5c5247;
  --ml-ink-muted: #7a6f63;
  --ml-brass: #b08236;
  --ml-brass-dark: #8a6224;
  --ml-brass-light: #d8b877;
  --ml-terracotta: #9c3d22;
  --ml-night: #1e1813;
  --ml-night-soft: #2b231c;
  --ml-on-night: #efe6d8;
  --ml-on-night-muted: #b9ab98;
  --ml-focus: #b08236;

  /* Type */
  --ml-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ml-sans: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;

  /* Spacing scale */
  --ml-s1: 4px;
  --ml-s2: 8px;
  --ml-s3: 12px;
  --ml-s4: 16px;
  --ml-s5: 24px;
  --ml-s6: 32px;
  --ml-s7: 48px;
  --ml-s8: 64px;
  --ml-s9: 96px;

  --ml-radius: 4px;
  --ml-radius-lg: 10px;
  --ml-shadow: 0 1px 2px rgba(35, 28, 21, .06), 0 8px 24px rgba(35, 28, 21, .08);
  --ml-container: 1280px;
  --ml-gutter: 16px;
  --ml-header-h: 64px;
  --ml-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --ml-gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --ml-gutter: 40px; --ml-header-h: 76px; }
}

/* --------------------------------------------------------------------------
   Base (applies site-wide so legacy content picks up the new typography)
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ml-bg);
  color: var(--ml-ink);
  font-family: var(--ml-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.ml-drawer-open { overflow: hidden; }
img { max-width: 100%; }

.ml-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ml-ink); color: #fff; padding: var(--ml-s3) var(--ml-s4);
}
.ml-skip:focus { left: var(--ml-s4); top: var(--ml-s4); color: #fff; }

.ml-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ml-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ml-container);
  margin: 0 auto;
  padding: 0 var(--ml-gutter);
}

/* All new components use border-box and reset legacy list/heading styles */
.ml-header, .ml-header *, .ml-footer, .ml-footer *, .ml-main, .ml-main *, .ml-announce, .ml-drawer, .ml-drawer * {
  box-sizing: border-box;
}
.ml-header ul, .ml-footer ul, .ml-main ul, .ml-drawer ul { list-style: none; margin: 0; padding: 0; }
.ml-header a, .ml-footer a, .ml-main a, .ml-drawer a, .ml-announce a { text-decoration: none; }
/* Legacy theme CSS sets fonts on bare elements (div, span, a...). Make every new
   component inherit its own font instead; component rules below still set fonts explicitly. */
.ml-announce *, .ml-header *, .ml-footer *, .ml-drawer * { font-family: inherit; }

:where(.ml-header, .ml-footer, .ml-main, .ml-drawer) :focus-visible {
  outline: 2px solid var(--ml-focus);
  outline-offset: 2px;
}

/* Headings */
.ml-h1, .ml-h2, .ml-h3, .ml-display {
  font-family: var(--ml-serif);
  font-weight: 600;
  color: var(--ml-ink);
  letter-spacing: -.01em;
  margin: 0;
  text-transform: none;
}
.ml-display { font-size: 40px; line-height: 1.05; }
.ml-h1 { font-size: 34px; line-height: 1.1; }
.ml-h2 { font-size: 30px; line-height: 1.15; }
.ml-h3 { font-size: 22px; line-height: 1.25; }
@media (min-width: 768px) {
  .ml-display { font-size: 56px; }
  .ml-h1 { font-size: 44px; }
  .ml-h2 { font-size: 38px; }
}
@media (min-width: 1200px) {
  .ml-display { font-size: 68px; }
}

.ml-eyebrow {
  display: inline-block;
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ml-brass-dark);
  margin: 0 0 var(--ml-s3);
}
.ml-lead { font-size: 17px; line-height: 1.65; color: var(--ml-ink-soft); margin: 0; }
@media (min-width: 768px) { .ml-lead { font-size: 19px; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ml-s2);
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--ml-ink);
  border-radius: var(--ml-radius);
  background: var(--ml-ink);
  color: #fff !important;
  font-family: var(--ml-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s var(--ml-ease), border-color .2s var(--ml-ease), color .2s var(--ml-ease), transform .2s var(--ml-ease);
  -webkit-appearance: none;
  appearance: none;
}
.ml-btn:hover, .ml-btn:focus-visible { background: var(--ml-brass-dark); border-color: var(--ml-brass-dark); color: #fff !important; }
.ml-btn:active { transform: translateY(1px); }
.ml-btn--brass { background: var(--ml-brass); border-color: var(--ml-brass); }
.ml-btn--brass:hover, .ml-btn--brass:focus-visible { background: var(--ml-ink); border-color: var(--ml-ink); }
.ml-btn--ghost { background: transparent; color: var(--ml-ink) !important; }
.ml-btn--ghost:hover, .ml-btn--ghost:focus-visible { background: var(--ml-ink); color: #fff !important; }
.ml-btn--block { display: flex; width: 100%; }
.ml-btn--sm { min-height: 42px; padding: 10px 18px; font-size: 13px; }

.ml-link {
  color: var(--ml-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ml-brass);
  padding-bottom: 2px;
}
.ml-link:hover, .ml-link:focus-visible { color: var(--ml-brass-dark); }

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
/* Colours are explicit on every part (no inheritance from legacy CSS) and all text uses a
   font stack that renders immediately with system fonts, so the bar is never an empty strip.
   Contrast on #1e1813: text #ffffff 17.6:1, label #e8cf98 11.6:1. */
.ml-announce {
  background: #1e1813;
  color: #ffffff;
  font-family: var(--ml-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px var(--ml-gutter);
  line-height: 1.45;
}
.ml-announce p { margin: 0; color: #ffffff; font-size: 13px; }
.ml-announce strong { color: #e8cf98; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.ml-announce__sep { display: inline-block; margin: 0 10px; color: #b9ab98; }
.ml-announce__extra { color: #ffffff; }
.ml-announce__extra--short { display: none; }
@media (max-width: 479px) {
  .ml-announce__extra--long { display: none; }
  .ml-announce__extra--short { display: inline; }
}
@media (max-width: 319px) { .ml-announce__sep, .ml-announce__extra--short { display: none; } }

/* --------------------------------------------------------------------------
   Header (sticky)
   -------------------------------------------------------------------------- */
.ml-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 248, 243, .97);
  border-bottom: 1px solid var(--ml-line);
  transition: box-shadow .25s var(--ml-ease);
  font-family: var(--ml-sans);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .ml-header { background: rgba(251, 248, 243, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.ml-header.is-scrolled { box-shadow: 0 6px 20px rgba(35, 28, 21, .08); }

.ml-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--ml-s2);
  min-height: var(--ml-header-h);
}
.ml-header__left { display: flex; align-items: center; gap: var(--ml-s1); }
.ml-header__logo { justify-self: center; display: block; line-height: 0; }
.ml-header__logo img { width: 132px; height: auto; }
.ml-header__right { display: flex; align-items: center; justify-content: flex-end; gap: var(--ml-s1); }

.ml-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ml-ink);
  cursor: pointer;
  transition: background-color .2s var(--ml-ease);
}
.ml-iconbtn:hover { background: var(--ml-sand); }
.ml-iconbtn svg { width: 22px; height: 22px; }

/* Desktop search field + nav hidden on mobile */
.ml-search { display: none; }
.ml-nav { display: none; }
.ml-switchers { display: none; }

/* Mobile search panel (toggled) */
.ml-search-panel { display: none; padding: 0 0 var(--ml-s3); }
.ml-search-panel.is-open { display: block; }

.ml-searchform {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.ml-header .ml-searchform input[type="search"],
.ml-drawer .ml-searchform input[type="search"] {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 48px 0 16px;
  border: 1px solid var(--ml-line);
  border-radius: 999px;
  background: var(--ml-surface);
  color: var(--ml-ink);
  font-family: var(--ml-sans);
  font-size: 15px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.ml-header .ml-searchform input[type="search"]:focus { border-color: var(--ml-brass); outline: none; box-shadow: 0 0 0 3px rgba(176, 130, 54, .18); }
.ml-searchform button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ml-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ml-searchform button svg { width: 18px; height: 18px; }

/* Cart (inner HTML comes from produitDao::get_panier() / addtocart.php) */
.ml-cart { position: relative; }
.ml-cart .cart-contents {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ml-ink) !important;
  font-size: 0;               /* hides the raw "item -" text node from get_panier() */
  line-height: 1;
  text-decoration: none !important;
  transition: background-color .2s var(--ml-ease);
}
.ml-cart .cart-contents:hover { background: var(--ml-sand); }
.ml-cart .cart-contents::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l-1.2 12.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9L5 7Z'/%3E%3Cpath d='M9 7V6a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l-1.2 12.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9L5 7Z'/%3E%3Cpath d='M9 7V6a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ml-cart .minicart-number {
  position: absolute;
  top: 3px;
  left: 26px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ml-brass);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.ml-cart .amount,
.ml-cart .woocommerce-Price-amount {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ml-ink);
  white-space: nowrap;
}
.ml-cart .amount .woocommerce-Price-currencySymbol { font-size: 14px; margin-left: 2px; }
.ml-cart.is-bumped .minicart-number { animation: ml-bump .5s var(--ml-ease); }
@keyframes ml-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (min-width: 1024px) {
  .ml-header__bar { grid-template-columns: 200px minmax(240px, 520px) 1fr; gap: var(--ml-s5); }
  .ml-header__left { display: none; }
  .ml-header__logo { justify-self: start; }
  .ml-header__logo img { width: 180px; }
  .ml-search { display: block; }
  .ml-search-toggle, .ml-search-panel { display: none !important; }
  .ml-switchers { display: flex; align-items: center; gap: var(--ml-s1); }
  .ml-cart .cart-contents { padding: 0 14px 0 10px; }
  .ml-cart .amount, .ml-cart .woocommerce-Price-amount { display: inline; padding-left: 14px; }
  .ml-header .ml-header__bar .ml-cart .minicart-number { left: 24px; }
}

/* Language / currency switchers (details/summary, works without JS) */
.ml-switch { position: relative; }
.ml-switch > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ml-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ml-switch > summary::-webkit-details-marker { display: none; }
.ml-switch > summary:hover { background: var(--ml-sand); }
.ml-switch > summary svg { width: 12px; height: 12px; transition: transform .2s var(--ml-ease); }
.ml-switch[open] > summary svg { transform: rotate(180deg); }
.ml-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  padding: var(--ml-s2);
  background: var(--ml-surface);
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow);
  z-index: 950;
}
.ml-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-s3);
  padding: 9px 12px;
  border-radius: var(--ml-radius);
  color: var(--ml-ink);
  font-size: 14px;
}
.ml-switch__menu a:hover { background: var(--ml-sand); color: var(--ml-ink); }
.ml-switch__menu a[aria-current="true"] { font-weight: 700; color: var(--ml-brass-dark); }
.ml-switch__menu a[aria-current="true"]::after { content: "\2713"; }

/* Mobile language / currency switcher (< 1024px), between search and cart.
   The logo stays centred: both side groups get equal 1fr columns. */
.ml-mswitch { position: relative; }
.ml-mswitch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ml-ink);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ml-ease);
}
.ml-mswitch__btn:hover, .ml-mswitch__btn[aria-expanded="true"] { background: var(--ml-sand); }
.ml-mswitch__dot { margin: 0 3px; color: var(--ml-ink-muted); }
.ml-mswitch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 200px;
  max-width: calc(100vw - 2 * var(--ml-gutter));
  padding: var(--ml-s2);
  background: var(--ml-surface);
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow);
  z-index: 950;
}
.ml-mswitch__menu[hidden] { display: none; }
.ml-mswitch__title {
  margin: var(--ml-s2) 12px var(--ml-s1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ml-ink-muted);
}
.ml-mswitch__title:first-child { margin-top: var(--ml-s1); }
.ml-mswitch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-s3);
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--ml-radius);
  color: var(--ml-ink);
  font-size: 15px;
}
.ml-mswitch__menu a:hover { background: var(--ml-sand); color: var(--ml-ink); }
.ml-mswitch__menu a[aria-current="true"] { font-weight: 700; color: var(--ml-brass-dark); }
.ml-mswitch__menu a[aria-current="true"]::after { content: "\2713"; }

@media (max-width: 1023px) {
  .ml-header__bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--ml-s1); }
}
@media (max-width: 399px) {
  /* 360px phones: 40px tap targets and a smaller logo keep the bar on one line */
  .ml-header__left, .ml-header__right { gap: 0; }
  .ml-header__left .ml-iconbtn { width: 40px; height: 40px; }
  .ml-cart .cart-contents { height: 40px; min-width: 40px; padding: 0 9px; }
  .ml-header .ml-header__bar .ml-cart .minicart-number { left: 22px; top: 1px; }
  .ml-header__logo img { width: 116px; }
}
@media (min-width: 1024px) { .ml-mswitch { display: none; } }

/* Desktop category navigation */
@media (min-width: 1024px) {
  .ml-nav { display: block; border-top: 1px solid var(--ml-line); }
  .ml-nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 var(--ml-s2); }
  .ml-nav__item { position: relative; }
  .ml-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 50px;
    padding: 0 14px;
    color: var(--ml-ink) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--ml-sans);
    position: relative;
  }
  .ml-nav__link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 10px;
    height: 1px;
    background: var(--ml-brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ml-ease);
  }
  .ml-nav__item:hover > .ml-nav__link::after,
  .ml-nav__link:focus-visible::after,
  .ml-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .ml-nav__link--deal { color: var(--ml-terracotta) !important; }
  .ml-nav__link svg { width: 10px; height: 10px; }

  .ml-nav__panel {
    position: absolute;
    left: 50%;
    top: 100%;
    min-width: 240px;
    padding: var(--ml-s3);
    background: var(--ml-surface);
    border: 1px solid var(--ml-line);
    border-radius: 0 0 var(--ml-radius-lg) var(--ml-radius-lg);
    box-shadow: var(--ml-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .2s var(--ml-ease), transform .2s var(--ml-ease), visibility 0s linear .2s;
    z-index: 940;
  }
  .ml-nav__item:hover > .ml-nav__panel,
  .ml-nav__item:focus-within > .ml-nav__panel,
  .ml-nav__item.is-open > .ml-nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .ml-nav__panel a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--ml-radius);
    color: var(--ml-ink-soft) !important;
    font-size: 15px;
    white-space: nowrap;
  }
  .ml-nav__panel a:hover, .ml-nav__panel a:focus-visible { background: var(--ml-sand); color: var(--ml-ink) !important; }
  .ml-nav__panel .ml-nav__all { color: var(--ml-brass-dark) !important; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.ml-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.ml-drawer.is-open { visibility: visible; pointer-events: auto; }
.ml-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 19, .5);
  opacity: 0;
  transition: opacity .25s var(--ml-ease);
}
.ml-drawer.is-open .ml-drawer__backdrop { opacity: 1; }
.ml-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--ml-bg);
  transform: translateX(-100%);
  transition: transform .3s var(--ml-ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--ml-sans);
}
.ml-drawer.is-open .ml-drawer__panel { transform: translateX(0); }
.ml-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ml-s3) var(--ml-s3) var(--ml-s3) var(--ml-s4);
  border-bottom: 1px solid var(--ml-line);
}
.ml-drawer__head img { width: 120px; height: auto; }
.ml-drawer__body { padding: var(--ml-s4); flex: 1; }
.ml-drawer__body .ml-searchform { margin-bottom: var(--ml-s4); }
.ml-drawer__nav > li { border-bottom: 1px solid var(--ml-line); }
.ml-drawer__nav > li > a,
.ml-drawer__nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  color: var(--ml-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.ml-drawer__nav summary::-webkit-details-marker { display: none; }
.ml-drawer__nav summary svg { width: 14px; height: 14px; transition: transform .2s var(--ml-ease); }
.ml-drawer__nav details[open] summary svg { transform: rotate(180deg); }
.ml-drawer__nav details ul { padding: 0 0 var(--ml-s3) var(--ml-s3); }
.ml-drawer__nav details a { display: block; padding: 10px 0; color: var(--ml-ink-soft); font-size: 16px; }
.ml-drawer__nav .ml-nav__link--deal { color: var(--ml-terracotta); }
.ml-drawer__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ml-s4);
  padding: var(--ml-s4);
  border-top: 1px solid var(--ml-line);
  background: var(--ml-sand);
}
.ml-drawer__foot h2 { margin: 0 0 var(--ml-s2); font-family: var(--ml-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-ink-muted); }
.ml-drawer__foot a { display: block; padding: 6px 0; color: var(--ml-ink); font-size: 15px; }
.ml-drawer__foot a[aria-current="true"] { font-weight: 700; color: var(--ml-brass-dark); }
@media (min-width: 1024px) { .ml-drawer { display: none; } }

/* --------------------------------------------------------------------------
   Sections & layout helpers
   -------------------------------------------------------------------------- */
.ml-main { display: block; }
.ml-section { padding: var(--ml-s8) 0; }
.ml-section--tight { padding: var(--ml-s7) 0; }
.ml-section--sand { background: var(--ml-sand); }
@media (min-width: 1024px) { .ml-section { padding: var(--ml-s9) 0; } }

.ml-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ml-s3) var(--ml-s5);
  margin-bottom: var(--ml-s6);
}
.ml-section__head p { margin: var(--ml-s2) 0 0; color: var(--ml-ink-soft); max-width: 560px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.ml-hero { background: var(--ml-sand); overflow: hidden; }
.ml-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.ml-hero__grid > * { min-width: 0; }
/* The hero photo is 850x478. It is shown at its own 16:9 ratio and never wider than
   620px, so browsers downscale it (sharp) instead of cropping and upscaling it. */
.ml-hero__media { position: relative; margin: 0 calc(var(--ml-gutter) * -1); aspect-ratio: 850 / 478; background: var(--ml-sand-deep); overflow: hidden; }
.ml-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-hero__copy { padding: var(--ml-s6) 0 var(--ml-s7); }
.ml-hero__copy .ml-lead { margin: var(--ml-s4) 0 var(--ml-s5); max-width: 520px; }
.ml-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ml-s4) var(--ml-s5); }
.ml-hero__note { font-size: 14px; color: var(--ml-ink-soft); }
@media (min-width: 900px) {
  .ml-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); align-items: center; gap: var(--ml-s7); padding-top: var(--ml-s7); padding-bottom: var(--ml-s7); }
  .ml-hero__copy { padding: var(--ml-s5) 0; order: 0; }
  .ml-hero__media { order: 1; margin: 0; width: 100%; max-width: 620px; justify-self: end; border-radius: var(--ml-radius-lg); box-shadow: 0 18px 40px rgba(35, 28, 21, .16); }
}
@media (min-width: 1200px) {
  .ml-hero__grid { padding-top: var(--ml-s8); padding-bottom: var(--ml-s8); }
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.ml-trust { border-bottom: 1px solid var(--ml-line); background: var(--ml-surface); }
.ml-trust__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: var(--ml-s3) 0; }
.ml-trust__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--ml-s4); align-items: start; padding: var(--ml-s4) 0; }
.ml-trust__item + .ml-trust__item { border-top: 1px solid var(--ml-line); }
.ml-trust__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ml-sand); color: var(--ml-brass-dark);
}
.ml-trust__icon svg { width: 24px; height: 24px; }
.ml-trust__item h3 { margin: 2px 0 4px; font-family: var(--ml-serif); font-size: 23px; font-weight: 600; line-height: 1.2; color: var(--ml-ink); }
.ml-trust__item p { margin: 0; font-size: 16px; color: #463d33; line-height: 1.55; }
@media (min-width: 768px) {
  .ml-trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--ml-s6) 0; }
  .ml-trust__item { padding: var(--ml-s2) var(--ml-s5); }
  .ml-trust__item:first-child { padding-left: 0; }
  .ml-trust__item:last-child { padding-right: 0; }
  .ml-trust__item + .ml-trust__item { border-top: 0; border-left: 1px solid var(--ml-line); }
}
@media (min-width: 1024px) { .ml-trust__item h3 { font-size: 24px; } .ml-trust__item p { font-size: 16.5px; } }

/* --------------------------------------------------------------------------
   Collection tiles
   -------------------------------------------------------------------------- */
.ml-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ml-s3); }
@media (min-width: 768px) { .ml-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ml-s4); } }
/* Homepage "Shop by collection" (.ml-tiles--auto): auto-fitting rows for any number of categories.
   Tile minimum width 300px -> as many columns as fit (content max 1200px): 1 on phones, 2 from 680px, 3 from 1040px.
   The homepage sets --c2 / --c3 = the column count that splits the categories into even rows for 2 / 3 possible
   columns (e.g. 5 -> 3+2, 4 -> 2+2), every tile has the same width, and a shorter last row is centred (never
   stretched). max-width keeps 1-2 categories from becoming oversized tiles. */
.ml-tiles--auto { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ml-s4); }
.ml-tiles--auto > li { flex: 0 0 100%; min-width: 0; max-width: 440px; }
.ml-tiles--auto .ml-tile { aspect-ratio: 4 / 3; }            /* one column on phones: landscape tiles keep the list short */
@media (min-width: 680px) {
  .ml-tiles--auto { gap: var(--ml-s5); }
  .ml-tiles--auto > li { flex-basis: calc((100% - (var(--c2, 2) - 1) * var(--ml-s5)) / var(--c2, 2)); }
  .ml-tiles--auto .ml-tile { aspect-ratio: 4 / 5; }
}
@media (min-width: 1040px) {
  .ml-tiles--auto > li { flex-basis: calc((100% - (var(--c3, 3) - 1) * var(--ml-s5)) / var(--c3, 3)); }
}
.ml-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--ml-radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--ml-sand-deep);
  color: #fff !important;
  isolation: isolate;
}
.ml-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ml-ease);
}
.ml-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 24, 19, 0) 45%, rgba(30, 24, 19, .72) 100%);
  z-index: 1;
}
.ml-tile:hover img { transform: scale(1.05); }
.ml-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--ml-s4);
  display: flex; flex-direction: column; gap: 2px;
}
.ml-tile__name { font-family: var(--ml-serif); font-size: 21px; font-weight: 600; line-height: 1.15; color: #fff; }
.ml-tile__cta { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-brass-light); }
@media (min-width: 768px) {
  .ml-tile__label { padding: var(--ml-s5); }
  .ml-tile__name { font-size: 26px; }
}

/* --------------------------------------------------------------------------
   Product grid + cards
   -------------------------------------------------------------------------- */
.ml-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ml-s6) var(--ml-s3); }
@media (min-width: 768px) { .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ml-s7) var(--ml-s5); } }
@media (min-width: 1200px) { .ml-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ml-card { display: flex; flex-direction: column; height: 100%; }
.ml-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--ml-radius-lg);
  background: var(--ml-sand);
}
.ml-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .45s var(--ml-ease), transform .8s var(--ml-ease);
}
.ml-card__img--alt { opacity: 0; }
@media (hover: hover) {
  .ml-card:hover .ml-card__img--alt { opacity: 1; }
  .ml-card:hover .ml-card__img { transform: scale(1.03); }
}
.ml-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ml-terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.ml-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding-top: var(--ml-s3); }
.ml-card__title { margin: 0; font-family: var(--ml-sans); font-size: 14px; font-weight: 500; line-height: 1.4; }
.ml-card__title a { color: var(--ml-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-card__title a:hover { color: var(--ml-brass-dark) !important; }
.ml-card__price { margin: 0; font-size: 16px; font-weight: 700; color: var(--ml-ink); }
.ml-card__from { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ml-ink-muted); margin-right: 2px; }
.ml-card__cta { margin-top: auto; padding-top: var(--ml-s2); }
/* Promotion prices (cards, product page, cart): normal price crossed out, promo price highlighted */
.ml-price-old { font-weight: 400; font-size: .85em; color: var(--ml-ink-muted); text-decoration: line-through; margin-right: 4px; white-space: nowrap; }
.ml-price-new { text-decoration: none; color: var(--ml-terracotta); font-weight: 700; white-space: nowrap; }
.ml-buy__price .ml-price-old { font-size: 18px; }
.ml-cart-table .prix_panier_old del { text-decoration: line-through; }
.ml-card .ml-btn { min-height: 44px; padding: 10px 12px; font-size: 12px; letter-spacing: .08em; }
@media (min-width: 768px) {
  .ml-card__title { font-size: 15px; }
  .ml-card__price { font-size: 17px; }
  .ml-card .ml-btn { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Listing pages (subcategory, deals, search)
   -------------------------------------------------------------------------- */
.ml-breadcrumb { padding: var(--ml-s4) 0 0; font-size: 13px; color: var(--ml-ink-muted); }
.ml-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ml-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--ml-line); }
.ml-breadcrumb a { color: var(--ml-ink-soft); }
.ml-breadcrumb a:hover { color: var(--ml-brass-dark); }
.ml-breadcrumb [aria-current] { color: var(--ml-ink); }
.ml-page-head { padding: var(--ml-s5) 0 var(--ml-s6); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ml-s2) var(--ml-s5); }
.ml-page-head p { margin: 0; color: var(--ml-ink-muted); font-size: 14px; }
.ml-listing { padding-bottom: var(--ml-s8); }
.ml-empty {
  padding: var(--ml-s7) var(--ml-s5);
  text-align: center;
  border: 1px dashed var(--ml-line);
  border-radius: var(--ml-radius-lg);
  background: var(--ml-surface);
}
.ml-empty p { margin: 0 0 var(--ml-s4); color: var(--ml-ink-soft); }

/* --------------------------------------------------------------------------
   Testimonials (only rendered when real approved reviews are provided)
   -------------------------------------------------------------------------- */
.ml-quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s4); }
@media (min-width: 900px) { .ml-quotes { grid-template-columns: repeat(3, 1fr); gap: var(--ml-s5); } }
.ml-quote { margin: 0; padding: var(--ml-s5); background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: var(--ml-radius-lg); }
.ml-quote__stars { color: var(--ml-brass); letter-spacing: 2px; font-size: 15px; }
.ml-quote blockquote { margin: var(--ml-s3) 0; padding: 0; border: 0; font-family: var(--ml-serif); font-size: 20px; line-height: 1.4; color: var(--ml-ink); }
.ml-quote figcaption { font-size: 14px; font-weight: 700; color: var(--ml-ink-soft); }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.ml-newsletter { background: var(--ml-night); color: var(--ml-on-night); }
.ml-newsletter__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s5); align-items: center; }
@media (min-width: 900px) { .ml-newsletter__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ml-s7); } }
.ml-newsletter .ml-h2 { color: #fff; }
.ml-newsletter p { margin: var(--ml-s3) 0 0; color: var(--ml-on-night-muted); }
.ml-newsletter__form { display: flex; flex-direction: column; gap: var(--ml-s3); }
@media (min-width: 560px) { .ml-newsletter__form { flex-direction: row; } }
.ml-main .ml-newsletter__form input[type="email"],
.ml-footer .ml-newsletter__form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(239, 230, 216, .3);
  border-radius: var(--ml-radius);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: var(--ml-sans);
  font-size: 16px;
  box-shadow: none;
}
.ml-newsletter__form input[type="email"]::placeholder { color: var(--ml-on-night-muted); }
.ml-newsletter__form input[type="email"]:focus { outline: none; border-color: var(--ml-brass-light); background: rgba(255, 255, 255, .1); }
.ml-newsletter__form .ml-btn { min-height: 52px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ml-footer { background: var(--ml-night-soft); color: var(--ml-on-night-muted); font-family: var(--ml-sans); font-size: 15px; }
.ml-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s6); padding: var(--ml-s7) 0; }
@media (min-width: 640px) { .ml-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ml-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--ml-s7); padding: var(--ml-s8) 0; } }
.ml-footer h2 {
  margin: 0 0 var(--ml-s4);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ml-on-night);
}
.ml-footer p { margin: 0 0 var(--ml-s3); line-height: 1.65; }
.ml-footer__brand img { display: block; width: 160px; height: auto; margin-bottom: var(--ml-s4); padding: 8px 12px; background: var(--ml-bg); border-radius: var(--ml-radius); box-sizing: content-box; }
.ml-footer a { color: var(--ml-on-night) !important; }
.ml-footer a:hover, .ml-footer a:focus-visible { color: var(--ml-brass-light) !important; }
.ml-footer__links li { margin: 0 0 var(--ml-s2); }
.ml-footer__contact li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--ml-s2); margin-bottom: var(--ml-s3); }
.ml-footer__contact svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ml-brass-light); }
.ml-footer__contact address { font-style: normal; }
.ml-social { display: flex; flex-wrap: wrap; gap: var(--ml-s2); margin-top: var(--ml-s4); }
.ml-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(239, 230, 216, .22);
  border-radius: 50%;
  transition: border-color .2s var(--ml-ease), background-color .2s var(--ml-ease);
}
.ml-social a:hover { border-color: var(--ml-brass-light); background: rgba(216, 184, 119, .08); }
.ml-social svg { width: 18px; height: 18px; }
.ml-footer__bottom { border-top: 1px solid rgba(239, 230, 216, .12); padding: var(--ml-s5) 0; }
.ml-footer__bottom-inner { display: flex; flex-direction: column; gap: var(--ml-s4); align-items: flex-start; font-size: 13px; }
@media (min-width: 768px) { .ml-footer__bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.ml-pay { display: flex; align-items: center; gap: var(--ml-s3); flex-wrap: wrap; }
/* Light PayPal badge from the theme sprite the old footer used (css/assets/img/shoppy-img.png, 40x24 at -149px -53px) */
.ml-pay__paypal {
  display: inline-block;
  width: 40px;
  height: 24px;
  background: url("assets/img/shoppy-img.png") no-repeat -149px -53px;
  border-radius: 3px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Legacy page polish (inner pages keep their old markup for now)
   -------------------------------------------------------------------------- */
.ml-legacy #main {
  background: var(--ml-bg) !important;
  /* legacy Bootstrap .row negative margins and slick tracks must not widen the page */
  overflow-x: hidden;
  overflow-x: clip;
}
.ml-legacy .breadcrumbs { background: transparent; border: 0; padding: var(--ml-s4) 0 0; margin: 0; }
.ml-legacy .breadcrumbs .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 13px; }
.ml-legacy .breadcrumbs .breadcrumb a { color: var(--ml-ink-soft); }
.ml-legacy #main h1, .ml-legacy #main h2, .ml-legacy .product_title, .ml-legacy .page-title h2 {
  font-family: var(--ml-serif);
  font-weight: 600;
  color: var(--ml-ink);
  text-transform: none;
  letter-spacing: -.01em;
}
.ml-legacy .container { max-width: 100%; }
.ml-legacy .sghab { max-width: var(--ml-container); }

/* --------------------------------------------------------------------------
   Product page (search.html, rendered by details.php) - no legacy theme CSS
   -------------------------------------------------------------------------- */
.ml-pdp { padding-bottom: 0; }
.ml-pdp__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s5); padding: var(--ml-s4) 0 var(--ml-s7); }
@media (min-width: 900px) {
  .ml-pdp__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ml-s7); align-items: start; }
  .ml-gallery { position: sticky; top: calc(var(--ml-header-h) + 60px); }
}

/* Gallery: horizontal scroll-snap track (swipe on touch) + thumbnail buttons */
.ml-gallery { min-width: 0; }
.ml-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--ml-radius-lg);
  background: var(--ml-sand);
  scrollbar-width: none;
  margin: 0 calc(var(--ml-gutter) * -1);
}
.ml-gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ml-gallery__track { margin: 0; } }
.ml-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.ml-gallery__slide a { display: block; height: 100%; cursor: zoom-in; }
.ml-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ml-gallery__thumbs { display: flex; gap: var(--ml-s2); margin-top: var(--ml-s3); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.ml-gallery__thumb {
  flex: 0 0 64px; width: 64px; height: 80px; padding: 0;
  border: 2px solid transparent; border-radius: var(--ml-radius);
  background: var(--ml-sand); cursor: pointer; overflow: hidden; opacity: .7;
  transition: opacity .2s var(--ml-ease), border-color .2s var(--ml-ease);
}
.ml-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-gallery__thumb:hover, .ml-gallery__thumb.is-active { opacity: 1; border-color: var(--ml-brass); }
.ml-gallery__thumb:focus-visible { outline: 2px solid var(--ml-focus); outline-offset: 2px; }
@media (min-width: 900px) { .ml-gallery__thumb { flex-basis: 76px; width: 76px; height: 95px; } }

/* Buy box */
.ml-buy { min-width: 0; }
.ml-badge--inline { position: static; display: inline-block; margin-bottom: var(--ml-s3); }
.ml-buy__title { margin: 0; font-family: var(--ml-serif); font-weight: 600; font-size: 30px; line-height: 1.15; color: var(--ml-ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (min-width: 768px) { .ml-buy__title { font-size: 38px; } }
.ml-buy__ref { margin: 6px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--ml-ink-muted); }
.ml-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: var(--ml-s3); font-size: 14px; color: var(--ml-ink-soft) !important; text-decoration: underline !important; text-decoration-color: var(--ml-line) !important; text-underline-offset: 3px; }
.ml-rating:hover { color: var(--ml-brass-dark) !important; }
.ml-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.ml-star svg { display: block; width: 16px; height: 16px; fill: var(--ml-line); }
.ml-star.is-on svg { fill: var(--ml-brass); }
.ml-stars--lg .ml-star svg { width: 22px; height: 22px; }
.ml-buy__price { margin: var(--ml-s4) 0 0; font-size: 28px; font-weight: 700; color: var(--ml-ink); line-height: 1.2; min-height: 34px; }
.ml-buy__price .woocommerce-Price-currencySymbol { font-size: .8em; margin-left: 2px; }
.ml-buy__intro { margin-top: var(--ml-s4); color: var(--ml-ink-soft); font-size: 15px; }
.ml-buy__options { display: grid; gap: var(--ml-s4); margin-top: var(--ml-s5); }
.ml-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ml-field label, .ml-rate legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-ink-soft); }
.ml-field label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ml-ink-muted); }
.ml-select, .ml-field input[type="text"], .ml-field input[type="email"], .ml-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; box-sizing: border-box;
  border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  background-color: var(--ml-surface); color: var(--ml-ink);
  font-family: var(--ml-sans); font-size: 16px;
}
.ml-select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23231c15' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.ml-select:focus, .ml-field input:focus, .ml-field textarea:focus { outline: none; border-color: var(--ml-brass); box-shadow: 0 0 0 3px rgba(176, 130, 54, .18); }
.ml-buy__qty { margin: 0; font-size: 14px; color: var(--ml-ink-muted); }
.ml-size-note { margin: -2px 0 2px; font-size: 14px; color: var(--ml-ink-soft); }
.ml-buy__actions { margin-top: var(--ml-s5); }
.ml-btn--lg { min-height: 56px; font-size: 15px; }
.ml-buy__note { margin: 0; padding: 12px 16px; border-radius: var(--ml-radius); background: var(--ml-sand); }
.ml-buy__trust { display: grid; gap: 10px; margin: var(--ml-s5) 0 0; padding: var(--ml-s4) 0 0; list-style: none; border-top: 1px solid var(--ml-line); }
.ml-buy__trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ml-ink); }
.ml-buy__trust svg { flex: none; width: 22px; height: 22px; color: var(--ml-brass-dark); }
.ml-disclosure { margin-top: var(--ml-s4); border: 1px solid var(--ml-line); border-radius: var(--ml-radius); background: var(--ml-surface); }
.ml-disclosure summary { padding: 14px 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ml-disclosure[open] summary { border-bottom: 1px solid var(--ml-line); }
.ml-disclosure .ml-richtext { padding: 14px 16px; }
.ml-added {
  display: none;
  margin-top: var(--ml-s3);
  padding: 12px 16px;
  border-radius: var(--ml-radius);
  background: #eef5ec;
  color: #24562a;
  font-size: 15px;
}
.ml-added.is-visible { display: block; }
.ml-added a { color: #24562a; font-weight: 700; text-decoration: underline; }

/* Admin-authored HTML (desc_en / description_en): neutralise its inline heading sizes */
.ml-richtext { font-size: 15px; line-height: 1.65; color: var(--ml-ink-soft); overflow-wrap: anywhere; }
.ml-richtext h1, .ml-richtext h2, .ml-richtext h3, .ml-richtext h4, .ml-richtext h5, .ml-richtext h6 { margin: 0 0 8px; font-family: var(--ml-sans); font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--ml-ink); text-transform: none; letter-spacing: 0; }
.ml-richtext p, .ml-richtext div { margin: 0 0 8px; }
.ml-richtext ul { margin: 0 0 8px; padding-left: 18px; list-style: disc; }
.ml-richtext ul ul { padding-left: 0; list-style: none; }
.ml-richtext li { margin: 0 0 6px; }
.ml-richtext a { color: var(--ml-brass-dark); text-decoration: underline; }
.ml-richtext img { max-width: 100%; height: auto; }

/* Sections below the buy box: one consistent spacing (48px top/bottom at every width, so every gap is 96px,
   the same as the gap under the buy box). Beats the generic .ml-section desktop padding. */
.ml-pdp .ml-section { padding: var(--ml-s7) 0; }
.ml-pdp__block + .ml-pdp__block { margin-top: var(--ml-s6); }
.ml-pdp__block .ml-richtext { max-width: 860px; margin-top: var(--ml-s4); }

/* Details: spec list, two columns on wide screens */
.ml-specs { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--ml-s7); margin: var(--ml-s4) 0 0; }
@media (min-width: 900px) { .ml-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ml-specs div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: var(--ml-s3); padding: 12px 0; border-bottom: 1px solid var(--ml-line); }
.ml-specs dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-ink-muted); }
.ml-specs dd { margin: 0; color: var(--ml-ink); overflow-wrap: anywhere; }

/* Customer reviews: heading + summary on one row, then review cards, then the form (all full width) */
.ml-reviews { background: var(--ml-surface); border-top: 1px solid var(--ml-line); border-bottom: 1px solid var(--ml-line); }
.ml-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ml-s2) var(--ml-s5); margin-bottom: var(--ml-s5); }
.ml-reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--ml-ink-soft); }
.ml-reviews__num { font-family: var(--ml-serif); font-size: 28px; font-weight: 600; line-height: 1; color: var(--ml-ink); }
.ml-reviews__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s4); margin-bottom: var(--ml-s5); }
@media (min-width: 900px) { .ml-reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ml-review { padding: var(--ml-s4) var(--ml-s5); border: 1px solid var(--ml-line); border-radius: var(--ml-radius-lg); background: var(--ml-bg); }
.ml-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ml-review__name { font-size: 15px; color: var(--ml-ink); overflow-wrap: anywhere; }
.ml-review__date { font-size: 13px; color: var(--ml-ink-muted); }
.ml-review__text { margin: var(--ml-s2) 0 0; color: var(--ml-ink-soft); overflow-wrap: anywhere; }
.ml-review-form { display: grid; gap: var(--ml-s4); padding: var(--ml-s5); border-radius: var(--ml-radius-lg); background: var(--ml-sand); }
@media (min-width: 900px) { .ml-review-form { padding: var(--ml-s6); } }
.ml-review-form .ml-h3 { margin: 0; }
.ml-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s4); }
@media (min-width: 640px) { .ml-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ml-review-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ml-s3) var(--ml-s5); }
.ml-review-form__note { margin: 0; font-size: 14px; color: var(--ml-ink-muted); }
.ml-rate { margin: 0; padding: 0; border: 0; min-width: 0; }
.ml-rate legend { margin-bottom: 6px; padding: 0; }
/* Star rating from radios: reversed DOM order so "this and all before it" highlight with ~ */
.ml-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.ml-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ml-rate__stars label { cursor: pointer; padding: 4px; line-height: 0; }
.ml-rate__stars label svg { width: 30px; height: 30px; fill: var(--ml-sand-deep); stroke: var(--ml-brass); stroke-width: 1.2; transition: fill .15s var(--ml-ease); }
.ml-rate__stars input:checked ~ label svg,
.ml-rate__stars label:hover svg,
.ml-rate__stars label:hover ~ label svg { fill: var(--ml-brass); }
.ml-rate__stars input:focus-visible + label { outline: 2px solid var(--ml-focus); outline-offset: 2px; border-radius: 4px; }
/* Mobile sticky Add to cart (submits the main form via the form attribute) */
.ml-sticky-buy { display: none; }
@media (max-width: 899px) {
  .ml-sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
    display: flex; align-items: center; gap: var(--ml-s3);
    padding: 10px var(--ml-gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .97); border-top: 1px solid var(--ml-line);
    box-shadow: 0 -6px 20px rgba(35, 28, 21, .08);
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s var(--ml-ease), visibility 0s linear .25s;
  }
  .ml-sticky-buy.is-visible { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .ml-sticky-buy__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ml-sticky-buy .ml-btn { flex: none; min-height: 48px; padding: 12px 20px; }
  .ml-product-page .ml-footer { padding-bottom: 72px; }
}

/* --------------------------------------------------------------------------
   Cart page (cart.html). Rows and totals are HTML from produitDao::get_cart().
   -------------------------------------------------------------------------- */
.ml-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s5); align-items: start; }
@media (min-width: 960px) {
  .ml-cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--ml-s6) var(--ml-s7); }
  .ml-cart-items { grid-column: 1; grid-row: 1 / span 2; }
  .ml-cart-layout > .cart-collaterals { grid-column: 2; grid-row: 1; }
  .ml-cart-cta { grid-column: 2; grid-row: 2; }
}
.ml-cart-layout > hr, .ml-cart-layout > input[type="hidden"] { display: none; }

/* Item list */
.ml-cart-table { width: 100%; border-collapse: collapse; background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: var(--ml-radius-lg); overflow: hidden; }
.ml-cart-table thead th { padding: 14px 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-ink-muted); text-align: left; border-bottom: 1px solid var(--ml-line); }
.ml-cart-table td { padding: 16px 12px; vertical-align: middle; border-bottom: 1px solid var(--ml-line); color: var(--ml-ink); }
.ml-cart-table tbody tr:last-child td { border-bottom: 0; }
.ml-cart-table td:first-child { width: 96px; }
.ml-cart-table td:first-child img { display: block; width: 80px; height: 100px; object-fit: cover; border-radius: var(--ml-radius); background: var(--ml-sand); }
.ml-cart-item__name { display: block; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.ml-cart-item__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--ml-ink-muted); }
.ml-cart-table .prix_panier { margin: 0; font-weight: 400; }
.ml-cart-table .prix_panier b { font-weight: 500; }
.ml-cart-table .prix_panier_old { margin: 2px 0 0; font-size: 13px; color: var(--ml-ink-muted); } /* normal price, only printed for a real promotion */.ml-cart-table td.product-subtotal { font-weight: 700; white-space: nowrap; }
.ml-cart-table td.product-price, .ml-cart-table .prix_panier b { white-space: nowrap; }

/* Quantity stepper (buttons added by cart.html JS around get_cart()'s input) */
.ml-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ml-line); border-radius: 999px; background: var(--ml-surface); overflow: hidden; }
.ml-qty input.qty { width: 48px; min-height: 44px; margin: 0; padding: 0; border: 0; text-align: center; font-family: var(--ml-sans); font-size: 16px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.ml-qty input.qty::-webkit-outer-spin-button, .ml-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ml-qty__btn { width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ml-ink); cursor: pointer; }
.ml-qty__btn:hover { background: var(--ml-sand); }
.ml-qty__btn:focus-visible, .ml-qty input.qty:focus-visible { outline: 2px solid var(--ml-focus); outline-offset: -2px; }

/* Remove ("x" from get_cart) */
.ml-cart-table td.product-remove { width: 56px; text-align: right; }
.ml-cart-table td.product-remove button.remove {
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--ml-line); border-radius: 50%;
  background: var(--ml-surface); color: var(--ml-ink-soft); font-size: 18px; line-height: 1; cursor: pointer;
}
.ml-cart-table td.product-remove button.remove:hover { border-color: var(--ml-terracotta); color: var(--ml-terracotta); }

/* Order summary (get_cart()'s totals box; its inline widths/paddings are overridden) */
.ml-cart-layout .cart-collaterals { min-width: 0; }
.ml-cart-layout .cart_total, .ml-cart-layout .cart_totals { padding: 0 !important; margin: 0; width: auto !important; float: none !important; }
.ml-cart-layout .cart_totals { padding: var(--ml-s5) !important; border: 1px solid var(--ml-line); border-radius: var(--ml-radius-lg); background: var(--ml-surface); }
.ml-cart-layout .cart_totals table { width: 100% !important; margin: 0; border-collapse: collapse; }
.ml-cart-layout .cart_totals tr { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ml-s3); padding: 10px 0; border-bottom: 1px solid var(--ml-line); }
.ml-cart-layout .cart_totals tr:first-child { padding-top: 0; }
.ml-cart-layout .cart_totals tr:last-child { border-bottom: 0; padding-bottom: 0; }
.ml-cart-layout .cart_totals td { padding: 0; border: 0; font-size: 16px !important; color: var(--ml-ink); }
.ml-cart-layout .cart_totals td .woocommerce-Price-amount { font-size: 16px !important; font-weight: 700; }
.ml-cart-layout .cart_totals tr:last-child td, .ml-cart-layout .cart_totals tr:last-child .woocommerce-Price-amount { font-size: 20px !important; font-weight: 700; }
.ml-cart-layout .cart_totals h2 { margin: 0; font-family: var(--ml-serif); font-size: 26px; font-weight: 600; text-align: left !important; color: var(--ml-ink); }
.ml-cart-layout .wc-proceed-to-checkout { display: none; } /* replaced by .ml-cart-cta, which goes to the billing form */
.ml-cart-cta { display: grid; gap: var(--ml-s3); justify-items: center; }
.ml-cart-cta__note { margin: 0; font-size: 14px; color: var(--ml-ink-muted); }
.ml-cart-cta__continue { font-size: 13px; }

/* Billing form */
.ml-billing { margin: var(--ml-s7) 0 var(--ml-s8); padding: var(--ml-s5); border: 1px solid var(--ml-line); border-radius: var(--ml-radius-lg); background: var(--ml-surface); scroll-margin-top: 140px; }
@media (min-width: 768px) { .ml-billing { padding: var(--ml-s6); } }
.ml-billing__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s4); margin-top: var(--ml-s5); }
@media (min-width: 640px) { .ml-billing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ml-field--wide { grid-column: 1 / -1; } }
.ml-billing .ml-field input, .ml-billing .ml-field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ml-line); border-radius: var(--ml-radius); background-color: var(--ml-surface); font-family: var(--ml-sans); font-size: 16px; color: var(--ml-ink); box-sizing: border-box; }
.ml-billing .ml-field input:focus, .ml-billing .ml-field select:focus { outline: none; border-color: var(--ml-brass); box-shadow: 0 0 0 3px rgba(176, 130, 54, .18); }
.ml-billing__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ml-s4); margin-top: var(--ml-s5); }
.ml-billing__submit img { max-width: 100%; height: auto; }

/* Small screens: each cart row becomes a compact card, nothing wider than the viewport */
@media (max-width: 767px) {
  .ml-cart-table, .ml-cart-table tbody { display: block; width: 100%; }
  .ml-cart-table thead { display: none; }
  .ml-cart-table tr {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas: "img name remove" "img price price" "img qty sub";
    gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--ml-line);
  }
  .ml-cart-table tbody tr:last-child { border-bottom: 0; }
  .ml-cart-table td { display: block; padding: 0; border: 0; min-width: 0; width: auto !important; }
  .ml-cart-table td:first-child { grid-area: img; }
  .ml-cart-table td:first-child img { width: 80px; height: 100px; }
  .ml-cart-table td.product-name { grid-area: name; font-size: 15px; }
  .ml-cart-table td.product-price { grid-area: price; font-size: 14px; color: var(--ml-ink-muted); }
  .ml-cart-table td.product-quantity { grid-area: qty; }
  .ml-cart-table td.product-subtotal { grid-area: sub; align-self: center; text-align: right; }
  .ml-cart-table td.product-remove { grid-area: remove; align-self: start; }
  .ml-qty__btn, .ml-qty input.qty { min-height: 40px; }
  .ml-qty__btn { width: 38px; }
  .ml-qty input.qty { width: 40px; }
}
/* Top-level category pages that list sub-collections */
.ml-legacy .grid-blog img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Content pages: About, Contact, Gallery, Blog (no legacy theme CSS)
   -------------------------------------------------------------------------- */
.ml-page .ml-page-section { padding: var(--ml-s6) 0 var(--ml-s7); }
.ml-page .ml-page-section + .ml-trust { border-top: 1px solid var(--ml-line); }
.ml-page-cta .ml-container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ml-s4) var(--ml-s5); }

/* Long-form text */
.ml-prose { font-size: 17px; line-height: 1.75; color: var(--ml-ink-soft); max-width: 72ch; overflow-wrap: anywhere; }
.ml-prose p { margin: 0 0 1.1em; }
.ml-prose strong { color: var(--ml-ink); }
.ml-prose.ml-richtext h1, .ml-prose.ml-richtext h2, .ml-prose.ml-richtext h3 { font-family: var(--ml-serif); font-size: 26px; line-height: 1.25; margin: 1.4em 0 .5em; color: var(--ml-ink); }
.ml-prose.ml-richtext h4, .ml-prose.ml-richtext h5, .ml-prose.ml-richtext h6 { font-size: 18px; margin: 1.2em 0 .4em; }
.ml-prose img { border-radius: var(--ml-radius-lg); }

/* About */
.ml-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s6); align-items: start; }
@media (min-width: 960px) { .ml-about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ml-s8); } }
.ml-about__media { margin: 0; border-radius: var(--ml-radius-lg); overflow: hidden; background: var(--ml-sand); }
.ml-about__media img { display: block; width: 100%; height: auto; }
@media (min-width: 960px) { .ml-about__media { position: sticky; top: calc(var(--ml-header-h) + 70px); } }

/* Contact */
.ml-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s6); align-items: start; }
@media (min-width: 960px) { .ml-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ml-s8); } }
.ml-contact__info p { margin: 0 0 var(--ml-s3); color: var(--ml-ink-soft); }
.ml-contact__list { display: grid; gap: var(--ml-s4); margin: var(--ml-s5) 0; }
.ml-contact__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--ml-s3); align-items: start; }
.ml-contact__list svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ml-sand); color: var(--ml-brass-dark); }
.ml-contact__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-ink-muted); }
.ml-contact__list address { font-style: normal; color: var(--ml-ink); }
.ml-contact__list a { color: var(--ml-ink) !important; font-weight: 500; overflow-wrap: anywhere; }
.ml-contact__list a:hover { color: var(--ml-brass-dark) !important; }
.ml-social--light a { border-color: var(--ml-line); color: var(--ml-ink) !important; }
.ml-social--light a:hover { border-color: var(--ml-brass); background: var(--ml-sand); }
.ml-contact__form { display: grid; gap: var(--ml-s4); padding: var(--ml-s5); border: 1px solid var(--ml-line); border-radius: var(--ml-radius-lg); background: var(--ml-surface); }
@media (min-width: 768px) { .ml-contact__form { padding: var(--ml-s6); } }
.ml-contact__form .ml-h3 { margin: 0; }
.ml-contact__map { line-height: 0; border-top: 1px solid var(--ml-line); }
.ml-contact__map iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(.2); }

/* Gallery */
.ml-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ml-s4) var(--ml-s3); padding-bottom: var(--ml-s8); }
@media (min-width: 768px) { .ml-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ml-s5); } }
@media (min-width: 1200px) { .ml-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ml-gallery-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ml-gallery-item__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--ml-radius-lg); background: var(--ml-sand); cursor: zoom-in; }
.ml-gallery-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ml-ease); }
.ml-gallery-item__img:hover img { transform: scale(1.04); }
.ml-gallery-item__name { font-size: 14px; line-height: 1.4; color: var(--ml-ink-soft) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-gallery-item__name:hover { color: var(--ml-brass-dark) !important; }
.ml-lightbox { width: min(92vw, 1000px); max-height: 92vh; padding: var(--ml-s4); border: 0; border-radius: var(--ml-radius-lg); background: var(--ml-bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ml-lightbox::backdrop { background: rgba(30, 24, 19, .8); }
.ml-lightbox img { display: block; width: 100%; max-height: calc(92vh - 110px); object-fit: contain; border-radius: var(--ml-radius); background: var(--ml-sand); }
.ml-lightbox__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: var(--ml-s3) 0 0; font-size: 15px; color: var(--ml-ink); }
.ml-lightbox__caption a { color: var(--ml-brass-dark); font-weight: 700; text-decoration: underline; }
.ml-lightbox__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ml-surface); color: var(--ml-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--ml-shadow); }

/* Blog */
.ml-blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ml-s6) var(--ml-s5); padding-bottom: var(--ml-s8); }
@media (min-width: 640px) { .ml-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ml-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ml-section .ml-blog-grid { padding-bottom: 0; }
.ml-blog-card__media { aspect-ratio: 16 / 10; }
.ml-blog-card__date { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-brass-dark); }
.ml-blog-card__title { margin: 0; font-family: var(--ml-serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.ml-blog-card__title a { color: var(--ml-ink) !important; }
.ml-blog-card__title a:hover { color: var(--ml-brass-dark) !important; }
.ml-blog-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ml-ink-soft); overflow-wrap: anywhere; }
.ml-blog-card__more { align-self: flex-start; margin-top: auto; padding-top: var(--ml-s2); font-size: 12px; }
.ml-article { max-width: 820px; margin: 0 auto; }
.ml-article__head { padding: var(--ml-s5) 0 var(--ml-s4); }
.ml-article__head .ml-h1 { overflow-wrap: anywhere; }
.ml-article__date { display: block; margin-top: var(--ml-s2); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-brass-dark); }
.ml-article__media { margin: 0 0 var(--ml-s5); border-radius: var(--ml-radius-lg); overflow: hidden; background: var(--ml-sand); }
.ml-article__media img { display: block; width: 100%; height: auto; }
.ml-article .ml-prose { max-width: none; padding-bottom: var(--ml-s7); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* All-products pagination */
.ml-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--ml-s3); margin-top: var(--ml-s7); }
.ml-pager > :first-child { justify-self: start; }
.ml-pager > :last-child { justify-self: end; }
.ml-pager__info { color: var(--ml-ink-muted); font-size: 14px; white-space: nowrap; }

/* Admin-driven category menu: flat list of main categories */
@media (min-width: 1024px) {
  .ml-nav__panel--shop { max-height: 70vh; overflow-y: auto; }
}

/* Checkout messages on the cart page (sendcmd.php -> cart) */
.ml-alert { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--ml-terracotta); border-left-width: 4px;
  border-radius: var(--ml-radius); background: #fbeee9; color: var(--ml-ink); font-size: 15px; line-height: 1.5; }
.ml-alert p { margin: 0; }
.ml-alert p + p { margin-top: 6px; }