/* ==========================================================================
   MAISON BARISTORIA — DESIGN SYSTEM v3
   Scoped under .bx-home so it never fights the legacy stylesheet.
   Palette: espresso + cream, one accent (crema gold). Type: Playfair + Inter.
   ========================================================================== */

:root {
  /* Colour */
  --bx-ink: #120c08;
  --bx-espresso: #1c130d;
  --bx-roast: #2b1d14;
  --bx-cream: #faf7f2;
  --bx-paper: #f3ece1;
  --bx-sand: #e6dccb;
  --bx-white: #ffffff;
  --bx-gold: #c59b27;
  --bx-gold-soft: #e6cb80;
  --bx-gold-deep: #8a6a12;
  --bx-text: #3a3029;
  --bx-muted: #6b6057;
  --bx-on-dark: #f6efe4;
  --bx-on-dark-muted: rgba(246, 239, 228, 0.72);
  --bx-line: rgba(28, 19, 13, 0.12);
  --bx-line-dark: rgba(246, 239, 228, 0.16);

  /* Type */
  --bx-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --bx-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bx-h1: clamp(2.75rem, 6.2vw, 5.75rem);
  --bx-h2: clamp(2rem, 3.6vw, 3.25rem);
  --bx-h3: clamp(1.3rem, 1.8vw, 1.6rem);
  --bx-lead: clamp(1.05rem, 1.25vw, 1.2rem);

  /* Space, shape, motion */
  --bx-gutter: clamp(20px, 4vw, 56px);
  --bx-section: clamp(72px, 9vw, 136px);
  --bx-max: 1320px;
  --bx-r-sm: 10px;
  --bx-r-md: 18px;
  --bx-r-lg: 28px;
  --bx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bx-shadow: 0 24px 60px -24px rgba(18, 12, 8, 0.35);
}

.bx-home {
  font-family: var(--bx-sans);
  color: var(--bx-text);
  background: var(--bx-cream);
  overflow-x: clip;
}

.bx-home *,
.bx-home *::before,
.bx-home *::after { box-sizing: border-box; }

.bx-home img { max-width: 100%; display: block; }

.bx-home .bx-wrap {
  width: 100%;
  max-width: var(--bx-max);
  margin: 0 auto;
  padding-left: var(--bx-gutter);
  padding-right: var(--bx-gutter);
}

/* ---------- Shared type ---------- */
.bx-home .bx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--bx-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bx-gold-deep);
}
.bx-home .bx-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.bx-home .bx-dark .bx-eyebrow,
.bx-home .bx-hero .bx-eyebrow { color: var(--bx-gold-soft); }

.bx-home .bx-h2 {
  margin: 0 0 20px;
  font-family: var(--bx-serif);
  font-size: var(--bx-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bx-espresso);
  text-transform: none;
}
.bx-home .bx-h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--bx-gold-deep);
}
.bx-home .bx-dark .bx-h2 { color: var(--bx-on-dark); }
.bx-home .bx-dark .bx-h2 em { color: var(--bx-gold-soft); }

.bx-home .bx-lead {
  margin: 0;
  max-width: 54ch;
  font-size: var(--bx-lead);
  line-height: 1.65;
  color: var(--bx-muted);
}
.bx-home .bx-dark .bx-lead { color: var(--bx-on-dark-muted); }

/* ---------- Buttons ---------- */
.bx-home .bx-btn,
.bx-buybar .bx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--bx-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.35s var(--bx-ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--bx-ease);
}
.bx-home .bx-btn svg,
.bx-buybar .bx-btn svg { width: 18px; height: 18px; flex: none; }
.bx-home .bx-btn:hover,
.bx-buybar .bx-btn:hover { transform: translateY(-2px); }
.bx-home .bx-btn:focus-visible,
.bx-buybar .bx-btn:focus-visible,
.bx-home button:focus-visible,
.bx-home a:focus-visible {
  outline: 2px solid var(--bx-gold);
  outline-offset: 3px;
}

.bx-home .bx-btn--gold,
.bx-buybar .bx-btn--gold {
  background: var(--bx-gold);
  color: var(--bx-ink);
  box-shadow: 0 14px 30px -12px rgba(197, 155, 39, 0.7);
}
.bx-home .bx-btn--gold:hover,
.bx-buybar .bx-btn--gold:hover { background: var(--bx-gold-soft); color: var(--bx-ink); }

.bx-home .bx-btn--dark { background: var(--bx-espresso); color: var(--bx-on-dark); }
.bx-home .bx-btn--dark:hover { background: var(--bx-roast); color: var(--bx-white); }

.bx-home .bx-btn--ghost {
  background: rgba(246, 239, 228, 0.06);
  border-color: rgba(246, 239, 228, 0.4);
  color: var(--bx-on-dark);
  backdrop-filter: blur(6px);
}
.bx-home .bx-btn--ghost:hover { background: var(--bx-on-dark); color: var(--bx-ink); border-color: var(--bx-on-dark); }

.bx-home .bx-btn--line {
  background: transparent;
  border-color: rgba(28, 19, 13, 0.3);
  color: var(--bx-espresso);
}
.bx-home .bx-btn--line:hover { background: var(--bx-espresso); color: var(--bx-on-dark); border-color: var(--bx-espresso); }

.bx-home .bx-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bx-espresso);
  text-decoration: none;
  transition: gap 0.3s var(--bx-ease), color 0.25s ease;
}
.bx-home .bx-link:hover { gap: 16px; color: var(--bx-gold-deep); }
.bx-home .bx-dark .bx-link { color: var(--bx-on-dark); }
.bx-home .bx-dark .bx-link:hover { color: var(--bx-gold-soft); }

/* ---------- Scroll progress ---------- */
.bx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 3px;
  background: var(--bx-gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.bx-js [data-bx-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--bx-ease), transform 0.9s var(--bx-ease);
  transition-delay: var(--bx-delay, 0ms);
}
.bx-js [data-bx-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.bx-home .bx-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(600px, calc(100svh - 118px), 920px);
  background: var(--bx-ink);
  color: var(--bx-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.bx-home .bx-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.bx-home .bx-hero__media video,
.bx-home .bx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%; /* portrait video: keep the spout, the stream and the glass in view */
  transform: scale(1.04);
  will-change: transform;
}
.bx-home .bx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.94) 0%, rgba(18, 12, 8, 0.78) 32%, rgba(18, 12, 8, 0.22) 62%, rgba(18, 12, 8, 0.1) 100%),
    linear-gradient(0deg, rgba(18, 12, 8, 0.92) 0%, rgba(18, 12, 8, 0) 42%);
}
.bx-home .bx-hero__body {
  padding-top: clamp(56px, 9vh, 120px);
  padding-bottom: clamp(36px, 6vh, 64px);
}
.bx-home .bx-hero__title {
  margin: 0 0 24px;
  max-width: 13ch;
  font-family: var(--bx-serif);
  font-size: var(--bx-h1);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--bx-on-dark);
  text-transform: none;
  text-shadow: none;
}
.bx-home .bx-hero__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--bx-gold-soft);
}
.bx-home .bx-hero__lead {
  margin: 0 0 36px;
  max-width: 44ch;
  font-size: var(--bx-lead);
  line-height: 1.6;
  color: var(--bx-on-dark-muted);
}
.bx-home .bx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.bx-home .bx-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bx-line-dark);
}
.bx-home .bx-hero__stats li {
  padding: 22px 24px 26px 0;
  margin: 0;
}
.bx-home .bx-hero__stats li + li { padding-left: 24px; border-left: 1px solid var(--bx-line-dark); }
.bx-home .bx-stat__num {
  display: block;
  font-family: var(--bx-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--bx-on-dark);
  font-variant-numeric: tabular-nums;
}
.bx-home .bx-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--bx-on-dark-muted);
}

.bx-home .bx-hero__toggle {
  position: absolute;
  right: var(--bx-gutter);
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(246, 239, 228, 0.4);
  border-radius: 50%;
  background: rgba(18, 12, 8, 0.4);
  color: var(--bx-on-dark);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease;
}
.bx-home .bx-hero__toggle:hover { background: rgba(18, 12, 8, 0.75); }
.bx-home .bx-hero__toggle svg { width: 14px; height: 14px; }
.bx-home .bx-hero__toggle .bx-ico-play { display: none; }
.bx-home .bx-hero__toggle.is-paused .bx-ico-play { display: block; }
.bx-home .bx-hero__toggle.is-paused .bx-ico-pause { display: none; }

/* ==========================================================================
   2. MARQUEE
   ========================================================================== */
.bx-home .bx-marquee {
  overflow: hidden;
  padding: 18px 0;
  background: var(--bx-gold);
  color: var(--bx-ink);
}
.bx-home .bx-marquee__track {
  display: flex;
  width: max-content;
  animation: bx-marquee 38s linear infinite;
}
.bx-home .bx-marquee:hover .bx-marquee__track { animation-play-state: paused; }
.bx-home .bx-marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bx-home .bx-marquee__group li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: var(--bx-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}
.bx-home .bx-marquee__group li::after {
  content: "✦";
  margin: 0 28px;
  font-size: 0.7rem;
  font-style: normal;
  opacity: 0.65;
}
@keyframes bx-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   3. STUDIO — machine configurator
   ========================================================================== */
.bx-home .bx-studio {
  padding: var(--bx-section) 0;
  background: var(--bx-paper);
}
.bx-home .bx-studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.bx-home .bx-studio__stage {
  --bx-tint: #d9cbb4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.02;
  border-radius: var(--bx-r-lg);
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, var(--bx-cream) 0%, var(--bx-tint) 100%);
  overflow: hidden;
  transition: background 0.6s ease;
}
.bx-home .bx-studio__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 54%;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(18, 12, 8, 0.34) 0%, rgba(18, 12, 8, 0) 70%);
  filter: blur(6px);
}
.bx-home .bx-studio__ghost {
  position: absolute;
  top: 4%;
  left: 6%;
  font-family: var(--bx-serif);
  font-size: clamp(5rem, 13vw, 11rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: rgba(28, 19, 13, 0.07);
  user-select: none;
  pointer-events: none;
}
.bx-home .bx-studio__img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 70%;
  max-height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease, transform 0.6s var(--bx-ease);
}
.bx-home .bx-studio__img.is-swapping { opacity: 0; transform: scale(0.96) translateY(8px); }
.bx-home .bx-studio__badge {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bx-espresso);
  color: var(--bx-gold-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bx-home .bx-finish { margin: 32px 0 0; padding: 0; border: 0; }
.bx-home .bx-finish__label {
  display: block;
  margin-bottom: 14px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--bx-muted);
}
.bx-home .bx-finish__label strong { color: var(--bx-espresso); font-weight: 600; }
.bx-home .bx-finish__list { display: flex; gap: 14px; }
.bx-home .bx-swatch {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(28, 19, 13, 0.18);
  border-radius: 50%;
  background: var(--bx-swatch);
  cursor: pointer;
  transition: transform 0.3s var(--bx-ease);
}
.bx-home .bx-swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--bx-espresso);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.3s var(--bx-ease);
}
.bx-home .bx-swatch:hover { transform: scale(1.06); }
.bx-home .bx-swatch[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }

.bx-home .bx-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bx-line);
}
.bx-home .bx-specs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--bx-line);
}
.bx-home .bx-specs strong { font-size: 0.98rem; font-weight: 600; color: var(--bx-espresso); }
.bx-home .bx-specs span { font-size: 0.875rem; color: var(--bx-muted); }

.bx-home .bx-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 32px;
}
.bx-home .bx-price { display: flex; align-items: baseline; gap: 12px; }
.bx-home .bx-price__now {
  font-family: var(--bx-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 600;
  color: var(--bx-espresso);
  font-variant-numeric: tabular-nums;
}
.bx-home .bx-price__was { font-size: 1rem; color: var(--bx-muted); text-decoration: line-through; }
.bx-home .bx-buy__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bx-home .bx-buy__note { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: var(--bx-muted); }

/* ==========================================================================
   4. STORY — editorial split
   ========================================================================== */
.bx-home .bx-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(520px, 62vw, 760px);
  background: var(--bx-cream);
}
.bx-home .bx-story__media { position: relative; overflow: hidden; min-height: 360px; }
.bx-home .bx-story__media img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.bx-home .bx-story__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 96px);
}
.bx-home .bx-story--flip .bx-story__media { order: 2; }
.bx-home .bx-story__num {
  margin-bottom: 28px;
  font-family: var(--bx-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--bx-gold);
}
.bx-home .bx-story__copy .bx-lead { margin-bottom: 32px; }
.bx-home .bx-story.bx-dark { background: var(--bx-espresso); }

/* ==========================================================================
   5. MENU — drinks explorer
   ========================================================================== */
.bx-home .bx-menu { padding: var(--bx-section) 0; background: var(--bx-cream); }
.bx-home .bx-menu__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.bx-home .bx-menu__head .bx-h2 { margin-bottom: 0; max-width: 16ch; }
.bx-home .bx-menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.bx-home .bx-drinks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.bx-home .bx-drink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-md);
  background: var(--bx-white);
  color: var(--bx-espresso);
  font-family: var(--bx-sans);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--bx-ease), border-color 0.25s ease, box-shadow 0.35s var(--bx-ease);
}
.bx-home .bx-drink img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.45s var(--bx-ease);
}
.bx-home .bx-drink:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(18, 12, 8, 0.4); }
.bx-home .bx-drink:hover img { transform: scale(1.08); }
.bx-home .bx-drink[aria-pressed="true"] {
  border-color: var(--bx-espresso);
  box-shadow: inset 0 0 0 1px var(--bx-espresso);
}

.bx-home .bx-recipe {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--bx-r-lg);
  background: var(--bx-espresso);
  color: var(--bx-on-dark);
  overflow: hidden;
}
.bx-home .bx-recipe::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.38) 0%, rgba(197, 155, 39, 0) 68%);
}
.bx-home .bx-recipe__tag {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bx-gold-soft);
}
.bx-home .bx-recipe__body { position: relative; transition: opacity 0.25s ease, transform 0.4s var(--bx-ease); }
.bx-home .bx-recipe__body.is-swapping { opacity: 0; transform: translateY(10px); }
.bx-home .bx-recipe__name {
  margin: 0 0 16px;
  font-family: var(--bx-serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bx-on-dark);
  text-transform: none;
}
.bx-home .bx-recipe__desc { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--bx-on-dark-muted); }
.bx-home .bx-recipe__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--bx-line-dark);
  font-size: 0.875rem;
  color: var(--bx-on-dark-muted);
}
.bx-home .bx-recipe__count { font-family: var(--bx-serif); font-size: 1.1rem; font-style: italic; color: var(--bx-on-dark); }

/* ==========================================================================
   6. CELLAR — coffees
   ========================================================================== */
.bx-home .bx-cellar { padding: var(--bx-section) 0; background: var(--bx-espresso); }
.bx-home .bx-cellar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.bx-home .bx-cellar__head .bx-h2 { margin-bottom: 0; }
.bx-home .bx-cellar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.bx-home .bx-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--bx-r-md);
  background: rgba(246, 239, 228, 0.05);
  border: 1px solid var(--bx-line-dark);
  overflow: hidden;
  transition: transform 0.5s var(--bx-ease), border-color 0.3s ease, background-color 0.3s ease;
}
.bx-home .bx-card:hover { transform: translateY(-8px); border-color: rgba(230, 203, 128, 0.5); background: rgba(246, 239, 228, 0.08); }
.bx-home .bx-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #0d0806; }
.bx-home .bx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--bx-ease);
}
.bx-home .bx-card:hover .bx-card__media img { transform: scale(1.06); }
.bx-home .bx-card__origin {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.72);
  color: var(--bx-gold-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.bx-home .bx-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 20px 22px; }
.bx-home .bx-card__name {
  margin: 0;
  font-family: var(--bx-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bx-on-dark);
  text-transform: none;
}
.bx-home .bx-card__notes { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--bx-on-dark-muted); }
.bx-home .bx-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.bx-home .bx-card__price { font-family: var(--bx-serif); font-size: 1.35rem; font-weight: 600; color: var(--bx-on-dark); }
.bx-home .bx-card__price small { font-family: var(--bx-sans); font-size: 0.75rem; font-weight: 500; color: var(--bx-on-dark-muted); }
.bx-home .bx-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bx-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--bx-gold-soft);
  font-family: var(--bx-sans);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.bx-home .bx-card__add:hover,
.bx-home .bx-card__add.btn-added { background: var(--bx-gold); color: var(--bx-ink); }

/* ==========================================================================
   7. BENTO — lifestyle
   ========================================================================== */
.bx-home .bx-bento { padding: var(--bx-section) 0; background: var(--bx-cream); }
.bx-home .bx-bento__head { margin-bottom: clamp(32px, 4vw, 56px); }
.bx-home .bx-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.bx-home .bx-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 34vw, 480px);
  border-radius: var(--bx-r-lg);
  background: var(--bx-ink);
  color: var(--bx-on-dark);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.bx-home .bx-tile--7 { grid-column: span 7; }
.bx-home .bx-tile--5 { grid-column: span 5; }
.bx-home .bx-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--bx-ease);
}
.bx-home .bx-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0) 30%, rgba(18, 12, 8, 0.88) 100%);
  transition: opacity 0.4s ease;
}
.bx-home .bx-tile:hover img { transform: scale(1.06); }
.bx-home .bx-tile__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(20px, 2.6vw, 36px);
}
.bx-home .bx-tile__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bx-gold-soft);
}
.bx-home .bx-tile__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--bx-serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--bx-on-dark);
  text-transform: none;
}
.bx-home .bx-tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(246, 239, 228, 0.5);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.45s var(--bx-ease), border-color 0.3s ease;
}
.bx-home .bx-tile__arrow svg { width: 18px; height: 18px; }
.bx-home .bx-tile:hover .bx-tile__arrow {
  background: var(--bx-gold);
  border-color: var(--bx-gold);
  color: var(--bx-ink);
  transform: rotate(-45deg);
}

/* ==========================================================================
   8. CLUB — welcome offer
   ========================================================================== */
.bx-home .bx-club { padding: 0 0 var(--bx-section); background: var(--bx-cream); }
.bx-home .bx-club__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--bx-r-lg);
  background: var(--bx-paper);
  border: 1px solid var(--bx-sand);
  overflow: hidden;
}
.bx-home .bx-club__panel::after {
  content: "−10%";
  position: absolute;
  right: -2%;
  bottom: -22%;
  font-family: var(--bx-serif);
  font-size: clamp(8rem, 22vw, 20rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: rgba(197, 155, 39, 0.13);
  pointer-events: none;
}
.bx-home .bx-club__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bx-home .bx-code {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 12px 0 24px;
  border: 1.5px dashed var(--bx-gold-deep);
  border-radius: 999px;
  background: var(--bx-white);
  color: var(--bx-espresso);
  font-family: var(--bx-sans);
  cursor: pointer;
  transition: transform 0.3s var(--bx-ease), box-shadow 0.3s var(--bx-ease);
}
.bx-home .bx-code:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(18, 12, 8, 0.45); }
.bx-home .bx-code__value { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.16em; }
.bx-home .bx-code__hint {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bx-espresso);
  color: var(--bx-on-dark);
  font-size: 0.8rem;
  font-weight: 600;
}
.bx-home .bx-club__fine { margin: 0; font-size: 0.875rem; color: var(--bx-muted); }

/* ==========================================================================
   9. STICKY BUY BAR
   ========================================================================== */
.bx-buybar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(680px, calc(100vw - 180px));
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(246, 239, 228, 0.14);
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.92);
  color: #f6efe4;
  font-family: 'Inter', -apple-system, sans-serif;
  box-shadow: 0 24px 50px -18px rgba(18, 12, 8, 0.7);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 140%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0s linear 0.6s;
}
.bx-buybar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0s;
}
.bx-buybar__thumb {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f3ece1;
  overflow: hidden;
}
.bx-buybar__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; mix-blend-mode: multiply; }
.bx-buybar__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bx-buybar__name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bx-buybar__price { font-size: 0.82rem; color: rgba(246, 239, 228, 0.72); }
.bx-buybar .bx-btn { min-height: 46px; padding: 0 22px; font-size: 0.88rem; flex: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .bx-home .bx-cellar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-home .bx-menu__grid { grid-template-columns: 1fr; }
  .bx-home .bx-club__panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .bx-home .bx-studio__grid { grid-template-columns: 1fr; }
  .bx-home .bx-studio__stage { aspect-ratio: 1 / 0.9; }
  .bx-home .bx-story { grid-template-columns: 1fr; min-height: 0; }
  .bx-home .bx-story__media { aspect-ratio: 4 / 3; }
  .bx-home .bx-story--flip .bx-story__media { order: 0; }
  .bx-home .bx-tile--7,
  .bx-home .bx-tile--5 { grid-column: span 12; }
  .bx-home .bx-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .bx-home .bx-hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .bx-home .bx-hero__stats li:nth-child(n + 3) { border-top: 1px solid var(--bx-line-dark); }
  .bx-home .bx-hero::before {
    background:
      linear-gradient(0deg, rgba(18, 12, 8, 0.96) 0%, rgba(18, 12, 8, 0.7) 55%, rgba(18, 12, 8, 0.35) 100%);
  }
}

@media (max-width: 640px) {
  .bx-home .bx-hero { min-height: calc(100svh - 96px); }
  .bx-home .bx-hero__actions .bx-btn { flex: 1 1 100%; }
  .bx-home .bx-hero__stats li { padding: 16px 12px 18px 0; }
  .bx-home .bx-hero__stats li + li { padding-left: 14px; }
  .bx-home .bx-hero__stats li:nth-child(3) { padding-left: 0; }
  .bx-home .bx-drinks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .bx-home .bx-drink img { width: 56px; height: 56px; }
  .bx-home .bx-specs { grid-template-columns: 1fr; }
  .bx-home .bx-buy__actions { width: 100%; }
  .bx-home .bx-buy__actions .bx-btn { flex: 1 1 100%; }
  .bx-home .bx-cellar__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bx-home .bx-card__body { padding: 14px 14px 16px; }
  .bx-home .bx-card__name { font-size: 1.05rem; }
  .bx-home .bx-card__notes { display: none; }
  .bx-home .bx-card__foot { flex-direction: column; align-items: stretch; }
  .bx-home .bx-code { width: 100%; justify-content: space-between; }
  .bx-buybar {
    /* sits above the mobile tab bar, left of the WhatsApp bubble */
    left: 12px;
    right: 84px;
    bottom: 84px;
    width: auto;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    transform: translateY(260%);
  }
  .bx-buybar.is-visible { transform: translateY(0); }
  .bx-buybar__thumb,
  .bx-buybar__name,
  .bx-buybar__extra { display: none; }
  .bx-buybar__price {
    font-size: 0.98rem;
    font-weight: 600;
    color: #f6efe4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bx-buybar .bx-btn { min-height: 42px; padding: 0 16px; }
}

/* ==========================================================================
   GLOBAL CHROME — header & footer, every page
   ========================================================================== */
body .promo-countdown-bar {
  background: var(--bx-ink) !important;
  border-bottom: 1px solid rgba(230, 203, 128, 0.14);
  font-family: var(--bx-sans);
}
body .promo-countdown-bar,
body .promo-countdown-bar a,
body .promo-countdown-bar span { font-family: var(--bx-sans); letter-spacing: 0.01em; }
body .promo-pill-burgundy {
  background: transparent !important;
  border: 1px solid rgba(230, 203, 128, 0.55) !important;
  color: var(--bx-gold-soft) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
}
body .site-header {
  background: rgba(250, 247, 242, 0.94) !important;
  border-bottom: 1px solid var(--bx-line) !important;
  box-shadow: none !important;
  backdrop-filter: saturate(1.4) blur(12px);
}
body .main-navigation .nav-menu > li > a {
  font-family: var(--bx-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bx-espresso) !important;
}
body .main-navigation .nav-menu > li > a::after { background: var(--bx-gold) !important; bottom: 2px !important; height: 1px !important; }
body .main-navigation .nav-menu > li > a:hover,
body .main-navigation .nav-menu > li.current-menu-item > a { color: var(--bx-gold-deep) !important; }
body .nav-icon-btn { color: var(--bx-espresso) !important; }
body .nav-icon-badge,
body .mobile-bottom-badge {
  background: var(--bx-gold) !important;
  color: var(--bx-ink) !important;
  border-color: var(--bx-cream) !important;
}

body .delonghi-statement-footer { background: var(--bx-ink) !important; }
body .footer-brand-desc { font-family: var(--bx-sans); font-size: 0.98rem; color: var(--bx-on-dark-muted); }
body .footer-col-title { font-family: var(--bx-serif); font-size: 1.15rem; font-weight: 600; color: var(--bx-on-dark); }
body .footer-col-links { gap: 14px; }
body .footer-col-links li a { font-family: var(--bx-sans); font-size: 0.98rem; color: var(--bx-on-dark-muted); }
body .footer-col-links li a:hover { color: var(--bx-gold-soft); padding-left: 0; }
body .footer-giant-watermark { color: rgba(197, 155, 39, 0.07); -webkit-text-stroke: 1px rgba(230, 203, 128, 0.22); font-weight: 600; font-style: italic; text-transform: none; letter-spacing: 0; }
body .delonghi-footer-bottom,
body .footer-bottom-links a { font-family: var(--bx-sans); font-size: 0.88rem; color: rgba(246, 239, 228, 0.6); }
body .trust-pillars-section { background: var(--bx-espresso) !important; }

@media (max-width: 768px) {
  body .promo-countdown-inner { padding-top: 8px !important; padding-bottom: 8px !important; }
  body .promo-right-links,
  body .promo-pill-burgundy { display: none !important; }
  body .promo-left { justify-content: center; text-align: center; }
  body .promo-left span { font-size: 0.76rem !important; line-height: 1.4 !important; }
}

/* ==========================================================================
   PAGE HERO — inner pages
   ========================================================================== */
.bx-home .bx-pagehero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 52vh, 560px);
  background: var(--bx-ink);
  color: var(--bx-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.bx-home .bx-pagehero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bx-home .bx-pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.9) 0%, rgba(18, 12, 8, 0.62) 45%, rgba(18, 12, 8, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 12, 8, 0.85) 0%, rgba(18, 12, 8, 0) 55%);
}
.bx-home .bx-pagehero__body { padding-top: 72px; padding-bottom: clamp(40px, 6vw, 72px); }
.bx-home .bx-pagehero__title {
  margin: 0 0 18px;
  max-width: 16ch;
  font-family: var(--bx-serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--bx-on-dark);
  text-transform: none;
}
.bx-home .bx-pagehero__title em { font-style: italic; font-weight: 500; color: var(--bx-gold-soft); }
.bx-home .bx-pagehero .bx-lead { color: var(--bx-on-dark-muted); max-width: 52ch; }

.bx-home .bx-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--bx-on-dark-muted);
}
.bx-home .bx-crumbs li { margin: 0; }
.bx-home .bx-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.bx-home .bx-crumbs a { color: inherit; text-decoration: none; }
.bx-home .bx-crumbs a:hover { color: var(--bx-gold-soft); }
.bx-home .bx-crumbs [aria-current] { color: var(--bx-on-dark); }
.bx-home .bx-crumbs--light { color: var(--bx-muted); }
.bx-home .bx-crumbs--light [aria-current] { color: var(--bx-espresso); }
.bx-home .bx-crumbs--light a:hover { color: var(--bx-gold-deep); }

.bx-home .bx-section { padding: var(--bx-section) 0; }
.bx-home .bx-section--paper { background: var(--bx-paper); }
.bx-home .bx-section--dark { background: var(--bx-espresso); }
.bx-home .bx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.bx-home .bx-head .bx-h2 { margin-bottom: 0; }
.bx-home .bx-head--center { flex-direction: column; align-items: center; text-align: center; }
.bx-home .bx-head--center .bx-eyebrow { justify-content: center; }

/* ==========================================================================
   SHOP
   ========================================================================== */
.bx-home .bx-shopbar {
  position: sticky;
  top: var(--bx-sticky-top, 0px);
  z-index: 40;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--bx-line);
  backdrop-filter: blur(12px);
}
.bx-home .bx-shopbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.bx-home .bx-chips {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.bx-home .bx-chips::-webkit-scrollbar { display: none; }
.bx-home .bx-chip {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(28, 19, 13, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--bx-espresso);
  font-family: var(--bx-sans);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.bx-home .bx-chip:hover { border-color: var(--bx-espresso); }
.bx-home .bx-chip[aria-pressed="true"] { background: var(--bx-espresso); border-color: var(--bx-espresso); color: var(--bx-on-dark); }
.bx-home .bx-chip__count { margin-left: 6px; opacity: 0.6; font-weight: 500; }

.bx-home .bx-sort { display: flex; align-items: center; gap: 10px; flex: none; font-size: 0.85rem; color: var(--bx-muted); }
.bx-home .bx-sort select {
  min-height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(28, 19, 13, 0.18);
  border-radius: 999px;
  background: var(--bx-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c130d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--bx-espresso);
  font-family: var(--bx-sans);
  font-size: 0.88rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.bx-home .bx-results { margin: 0 0 24px; font-size: 0.9rem; color: var(--bx-muted); }
.bx-home .bx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.bx-home .bx-grid [hidden] { display: none !important; }

/* Light product card */
.bx-home .bx-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--bx-r-md);
  background: var(--bx-white);
  border: 1px solid var(--bx-line);
  overflow: hidden;
  transition: transform 0.5s var(--bx-ease), box-shadow 0.5s var(--bx-ease);
}
.bx-home .bx-pcard:hover { transform: translateY(-6px); box-shadow: var(--bx-shadow); }
.bx-home .bx-pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--bx-paper);
  overflow: hidden;
}
.bx-home .bx-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--bx-ease);
}
.bx-home .bx-pcard:hover .bx-pcard__media img { transform: scale(1.05); }
.bx-home .bx-pcard__media--product img { object-fit: contain; padding: 10% 12%; mix-blend-mode: multiply; }
.bx-home .bx-pcard__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.92);
  color: var(--bx-espresso);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bx-home .bx-pcard__deal {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bx-espresso);
  color: var(--bx-gold-soft);
  font-size: 0.75rem;
  font-weight: 600;
}
.bx-home .bx-pcard__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 20px 20px 22px; }
.bx-home .bx-pcard__meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gold-deep); }
.bx-home .bx-pcard__name { margin: 0; font-family: var(--bx-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.22; color: var(--bx-espresso); text-transform: none; }
.bx-home .bx-pcard__name a { color: inherit; text-decoration: none; }
.bx-home .bx-pcard__name a:hover { color: var(--bx-gold-deep); }
.bx-home .bx-pcard__notes { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--bx-muted); }
.bx-home .bx-pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.bx-home .bx-pcard__price { display: flex; align-items: baseline; gap: 8px; font-family: var(--bx-serif); font-size: 1.4rem; font-weight: 600; color: var(--bx-espresso); }
.bx-home .bx-pcard__price s { font-family: var(--bx-sans); font-size: 0.85rem; font-weight: 500; color: var(--bx-muted); }
.bx-home .bx-pcard__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bx-espresso);
  border-radius: 999px;
  background: transparent;
  color: var(--bx-espresso);
  font-family: var(--bx-sans);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.bx-home .bx-pcard__add:hover,
.bx-home .bx-pcard__add.btn-added { background: var(--bx-espresso); color: var(--bx-on-dark); }
.bx-home .bx-pcard__add[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Featured machine card spans the grid */
.bx-home .bx-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--bx-r-lg);
  background: var(--bx-espresso);
  color: var(--bx-on-dark);
  overflow: hidden;
}
.bx-home .bx-feature__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: radial-gradient(circle at 50% 45%, #f6efe4 0%, #d9cbb4 100%);
}
.bx-home .bx-feature__media img { max-height: 380px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--bx-ease); }
.bx-home .bx-feature:hover .bx-feature__media img { transform: translateY(-6px) scale(1.02); }
.bx-home .bx-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.bx-home .bx-feature__body .bx-h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--bx-on-dark); }
.bx-home .bx-feature__body .bx-lead { color: var(--bx-on-dark-muted); }
.bx-home .bx-feature__price { display: flex; align-items: baseline; gap: 12px; font-family: var(--bx-serif); font-size: 2rem; font-weight: 600; }
.bx-home .bx-feature__price s { font-family: var(--bx-sans); font-size: 1rem; font-weight: 500; color: var(--bx-on-dark-muted); }
.bx-home .bx-feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bx-home .bx-feature .bx-swatches { display: flex; gap: 10px; }
.bx-home .bx-feature .bx-swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(246, 239, 228, 0.35); }

.bx-home .bx-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed rgba(28, 19, 13, 0.25);
  border-radius: var(--bx-r-md);
  text-align: center;
  color: var(--bx-muted);
}

/* Help band */
.bx-home .bx-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--bx-r-lg);
  background: var(--bx-paper);
  border: 1px solid var(--bx-sand);
}
.bx-home .bx-help .bx-h2 { margin-bottom: 8px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.bx-home .bx-help__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.bx-home .bx-pdp { padding: clamp(28px, 4vw, 48px) 0 var(--bx-section); background: var(--bx-cream); }
.bx-home .bx-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.bx-home .bx-gallery { position: sticky; top: calc(var(--bx-sticky-top, 0px) + 20px); }
.bx-home .bx-gallery__stage {
  --bx-tint: #d9cbb4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--bx-r-lg);
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, var(--bx-cream) 0%, var(--bx-tint) 100%);
  overflow: hidden;
  cursor: zoom-in;
  transition: background 0.6s ease;
}
.bx-home .bx-gallery__stage img {
  max-width: 78%;
  max-height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease, transform 0.5s var(--bx-ease);
  transform-origin: var(--bx-zx, 50%) var(--bx-zy, 50%);
}
.bx-home .bx-gallery__stage.is-zoomed img { transform: scale(1.8); }
.bx-home .bx-gallery__stage img.is-swapping { opacity: 0; }
.bx-home .bx-gallery__badges { position: absolute; left: 18px; top: 18px; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.bx-home .bx-gallery__badges span {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bx-espresso);
  color: var(--bx-gold-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bx-home .bx-gallery__badges span + span { background: rgba(250, 247, 242, 0.92); color: var(--bx-espresso); }
.bx-home .bx-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.bx-home .bx-thumb {
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-sm);
  background: var(--bx-white);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s var(--bx-ease);
}
.bx-home .bx-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bx-home .bx-thumb:hover { transform: translateY(-2px); }
.bx-home .bx-thumb[aria-pressed="true"] { border-color: var(--bx-espresso); box-shadow: inset 0 0 0 1px var(--bx-espresso); }

.bx-home .bx-pdp__title {
  margin: 0 0 12px;
  font-family: var(--bx-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--bx-espresso);
  text-transform: none;
}
.bx-home .bx-pdp__title em { display: block; font-style: italic; font-weight: 500; color: var(--bx-gold-deep); }
.bx-home .bx-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 28px 0 0; }
.bx-home .bx-pdp__price strong { font-family: var(--bx-serif); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; color: var(--bx-espresso); }
.bx-home .bx-pdp__price s { color: var(--bx-muted); }
.bx-home .bx-pdp__save { padding: 6px 12px; border-radius: 999px; background: var(--bx-gold-light, #f7eedb); color: var(--bx-gold-deep); font-size: 0.8rem; font-weight: 600; }
.bx-home .bx-pdp__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bx-home .bx-pdp__cta .bx-btn--dark { flex: 1 1 220px; }
.bx-home .bx-pdp__cta .bx-btn--line { flex: 1 1 100%; }

.bx-home .bx-qty {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(28, 19, 13, 0.2);
  border-radius: 999px;
  background: var(--bx-white);
}
.bx-home .bx-qty button {
  width: 46px;
  height: 50px;
  border: 0;
  background: transparent;
  color: var(--bx-espresso);
  font-size: 1.2rem;
  cursor: pointer;
}
.bx-home .bx-qty output { min-width: 28px; text-align: center; font-weight: 600; color: var(--bx-espresso); font-variant-numeric: tabular-nums; }

.bx-home .bx-checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--bx-line); }
.bx-home .bx-checks li { display: flex; gap: 12px; margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--bx-text); }
.bx-home .bx-checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--bx-espresso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6cb80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.bx-home .bx-checks strong { color: var(--bx-espresso); font-weight: 600; }

/* Feature icon grid (specs, values, contact) */
.bx-home .bx-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--bx-line);
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-lg);
  overflow: hidden;
}
.bx-home .bx-icon {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--bx-cream);
}
.bx-home .bx-section--paper .bx-icon { background: var(--bx-paper); }
.bx-home .bx-icon svg { width: 28px; height: 28px; color: var(--bx-gold-deep); }
.bx-home .bx-icon strong { font-family: var(--bx-serif); font-size: 1.2rem; font-weight: 600; color: var(--bx-espresso); }
.bx-home .bx-icon span { font-size: 0.92rem; line-height: 1.55; color: var(--bx-muted); }
.bx-home .bx-dark .bx-icons { background: var(--bx-line-dark); border-color: var(--bx-line-dark); }
.bx-home .bx-dark .bx-icon { background: var(--bx-espresso); }
.bx-home .bx-dark .bx-icon svg { color: var(--bx-gold-soft); }
.bx-home .bx-dark .bx-icon strong { color: var(--bx-on-dark); }
.bx-home .bx-dark .bx-icon span { color: var(--bx-on-dark-muted); }

/* FAQ */
.bx-home .bx-faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--bx-line); }
.bx-home .bx-faq details { border-bottom: 1px solid var(--bx-line); }
.bx-home .bx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--bx-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--bx-espresso);
  cursor: pointer;
  list-style: none;
}
.bx-home .bx-faq summary::-webkit-details-marker { display: none; }
.bx-home .bx-faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(28, 19, 13, 0.2);
  border-radius: 50%;
  font-family: var(--bx-sans);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.35s var(--bx-ease), background-color 0.25s ease, color 0.25s ease;
}
.bx-home .bx-faq details[open] summary::after { transform: rotate(45deg); background: var(--bx-espresso); color: var(--bx-on-dark); }
.bx-home .bx-faq summary:hover { color: var(--bx-gold-deep); }
.bx-home .bx-faq details p { margin: 0 0 24px; max-width: 68ch; font-size: 1rem; line-height: 1.7; color: var(--bx-muted); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.bx-home .bx-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bx-line-dark);
  border-bottom: 1px solid var(--bx-line-dark);
}
.bx-home .bx-numbers li { margin: 0; padding: clamp(24px, 3vw, 40px) 24px; }
.bx-home .bx-numbers li + li { border-left: 1px solid var(--bx-line-dark); }
.bx-home .bx-numbers strong { display: block; font-family: var(--bx-serif); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--bx-gold-soft); }
.bx-home .bx-numbers li > span { display: block; margin-top: 10px; font-size: 0.92rem; color: var(--bx-on-dark-muted); }
.bx-home .bx-quote {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--bx-serif);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--bx-espresso);
}
.bx-home .bx-quote::before { content: "“"; display: block; font-size: 1.6em; line-height: 0.6; color: var(--bx-gold); }
.bx-home .bx-ticks { display: grid; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.bx-home .bx-ticks li { display: flex; gap: 12px; margin: 0; font-size: 1rem; color: var(--bx-on-dark-muted); }
.bx-home .bx-ticks li::before { content: "✦"; color: var(--bx-gold-soft); font-size: 0.8rem; margin-top: 3px; }
.bx-home .bx-story:not(.bx-dark) .bx-ticks li { color: var(--bx-text); }
.bx-home .bx-story:not(.bx-dark) .bx-ticks li::before { color: var(--bx-gold-deep); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.bx-home .bx-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.bx-home .bx-channel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-md);
  background: var(--bx-white);
  color: var(--bx-text);
  text-decoration: none;
  transition: transform 0.45s var(--bx-ease), box-shadow 0.45s var(--bx-ease), border-color 0.25s ease;
}
a.bx-channel:hover { transform: translateY(-6px); box-shadow: var(--bx-shadow); border-color: transparent; }
.bx-home .bx-channel svg { width: 28px; height: 28px; color: var(--bx-gold-deep); }
.bx-home .bx-channel__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bx-muted); }
.bx-home .bx-channel strong { font-family: var(--bx-serif); font-size: 1.3rem; font-weight: 600; color: var(--bx-espresso); }
.bx-home .bx-channel span:last-child { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--bx-espresso); word-break: break-word; }
.bx-home .bx-channel--primary { background: var(--bx-espresso); border-color: var(--bx-espresso); }
.bx-home .bx-channel--primary svg,
.bx-home .bx-channel--primary .bx-channel__tag { color: var(--bx-gold-soft); }
.bx-home .bx-channel--primary strong,
.bx-home .bx-channel--primary span:last-child { color: var(--bx-on-dark); }
.bx-home .bx-channel.bx-channel--primary p { color: var(--bx-on-dark-muted); }
.bx-home .bx-channel p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--bx-muted); }

.bx-home .bx-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.bx-home .bx-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 3.6vw, 48px);
  border-radius: var(--bx-r-lg);
  background: var(--bx-white);
  border: 1px solid var(--bx-line);
}
.bx-home .bx-field { display: flex; flex-direction: column; gap: 8px; }
.bx-home .bx-field--full { grid-column: 1 / -1; }
.bx-home .bx-field label { font-size: 0.85rem; font-weight: 600; color: var(--bx-espresso); }
.bx-home .bx-field input,
.bx-home .bx-field select,
.bx-home .bx-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(28, 19, 13, 0.18);
  border-radius: var(--bx-r-sm);
  background: var(--bx-cream);
  color: var(--bx-espresso);
  font-family: var(--bx-sans);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.bx-home .bx-field textarea { min-height: 150px; resize: vertical; }
.bx-home .bx-field input:focus,
.bx-home .bx-field select:focus,
.bx-home .bx-field textarea:focus {
  outline: none;
  border-color: var(--bx-gold-deep);
  background: var(--bx-white);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}
.bx-home .bx-form .bx-btn { grid-column: 1 / -1; width: 100%; }
.bx-home .bx-form__note { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; color: var(--bx-muted); text-align: center; }
.bx-home .bx-form__feedback {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--bx-r-sm);
  font-size: 0.95rem;
}
.bx-home .bx-form__feedback[data-state="ok"] { background: #e7f3ea; color: #1d5a2c; }
.bx-home .bx-form__feedback[data-state="error"] { background: #fbeaea; color: #8a1c29; }

/* ==========================================================================
   JOURNAL (blog)
   ========================================================================== */
.bx-home .bx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.bx-home .bx-post { display: flex; flex-direction: column; gap: 16px; }
.bx-home .bx-post__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--bx-r-md); overflow: hidden; background: var(--bx-paper); }
.bx-home .bx-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--bx-ease); }
.bx-home .bx-post:hover .bx-post__media img { transform: scale(1.05); }
.bx-home .bx-post__cat {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.92);
  color: var(--bx-espresso);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bx-home .bx-post__meta { font-size: 0.82rem; color: var(--bx-muted); }
.bx-home .bx-post__title { margin: 0; font-family: var(--bx-serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; line-height: 1.22; color: var(--bx-espresso); text-transform: none; }
.bx-home .bx-post__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.45s var(--bx-ease); }
.bx-home .bx-post:hover .bx-post__title a { background-size: 100% 1px; }
.bx-home .bx-post__excerpt,
.bx-home .bx-post__excerpt p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--bx-muted); }
.bx-home .bx-post--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.bx-home .bx-post--lead .bx-post__media { aspect-ratio: 16 / 10; }
.bx-home .bx-post--lead .bx-post__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bx-home .bx-post--lead .bx-post__body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.bx-home .bx-post__body { display: flex; flex-direction: column; gap: 10px; }
.bx-home .bx-pagination { margin-top: 56px; text-align: center; }
.bx-home .bx-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 4px;
  padding: 0 12px;
  border: 1px solid var(--bx-line);
  border-radius: 999px;
  color: var(--bx-espresso);
  text-decoration: none;
}
.bx-home .bx-pagination .page-numbers.current { background: var(--bx-espresso); color: var(--bx-on-dark); border-color: var(--bx-espresso); }

/* ==========================================================================
   RESPONSIVE — inner pages
   ========================================================================== */
@media (max-width: 1080px) {
  .bx-home .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-home .bx-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-home .bx-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-home .bx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bx-home .bx-pdp__grid,
  .bx-home .bx-contact,
  .bx-home .bx-feature,
  .bx-home .bx-post--lead { grid-template-columns: 1fr; }
  .bx-home .bx-gallery { position: static; }
  .bx-home .bx-feature__media { min-height: 320px; }
  .bx-home .bx-feature__media img { max-height: 280px; }
  .bx-home .bx-help { grid-template-columns: 1fr; }
  .bx-home .bx-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-home .bx-numbers li:nth-child(3) { border-left: 0; }
  .bx-home .bx-numbers li:nth-child(n + 3) { border-top: 1px solid var(--bx-line-dark); }
}
@media (max-width: 640px) {
  .bx-home .bx-pagehero { min-height: 420px; }
  .bx-home .bx-pagehero::before { background: linear-gradient(0deg, rgba(18, 12, 8, 0.95) 0%, rgba(18, 12, 8, 0.6) 60%, rgba(18, 12, 8, 0.35) 100%); }
  .bx-home .bx-shopbar__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .bx-home .bx-sort { justify-content: space-between; }
  .bx-home .bx-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bx-home .bx-feature { grid-column: 1 / -1; }
  .bx-home .bx-pcard__body { padding: 14px 14px 16px; }
  .bx-home .bx-pcard__name { font-size: 1.05rem; }
  .bx-home .bx-pcard__notes { display: none; }
  .bx-home .bx-pcard__foot { flex-direction: column; align-items: stretch; }
  .bx-home .bx-pcard__price { font-size: 1.15rem; }
  .bx-home .bx-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-home .bx-icons { grid-template-columns: 1fr; }
  .bx-home .bx-channels { grid-template-columns: 1fr; }
  .bx-home .bx-form { grid-template-columns: 1fr; }
  .bx-home .bx-posts { grid-template-columns: 1fr; }
  .bx-home .bx-pdp__cta .bx-qty { flex: 1 1 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .bx-home .bx-marquee__track { animation: none; }
  .bx-js [data-bx-reveal] { opacity: 1; transform: none; transition: none; }
  .bx-home *,
  .bx-buybar { transition-duration: 0.01ms !important; }
  .bx-home .bx-hero__media video,
  .bx-home .bx-hero__media img { transform: none; }
}

/* Product page for a "Produits Baristoria" post (photo instead of a cut-out machine) */
.bx-home .bx-gallery__stage--photo { overflow: hidden; background: var(--bx-paper); }
.bx-home .bx-gallery__stage--photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  mix-blend-mode: normal;
}
.bx-home .bx-prose { max-width: 720px; font-size: 1.05rem; line-height: 1.75; color: var(--bx-ink); }
.bx-home .bx-prose > * + * { margin-top: 1em; }
.bx-home .bx-prose h2, .bx-home .bx-prose h3 { font-family: var(--bx-serif, 'Playfair Display', serif); line-height: 1.2; }
.bx-home .bx-prose img { max-width: 100%; height: auto; border-radius: var(--bx-r-lg, 16px); }
.bx-home .bx-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   CART DRAWER v3 — cream/espresso/gold, replaces the legacy drawer look
   ========================================================================== */
.cart-drawer-overlay { background: rgba(18, 12, 8, 0.55); backdrop-filter: blur(6px); }
.cart-drawer-overlay .cart-drawer {
  max-width: 460px;
  background: var(--bx-cream);
  box-shadow: -24px 0 60px -20px rgba(18, 12, 8, 0.45);
  font-family: var(--bx-sans);
  color: var(--bx-text);
}
.cart-drawer-overlay .cart-drawer-header {
  background: var(--bx-cream);
  color: var(--bx-ink);
  padding: 22px 26px 16px;
  border-bottom: 0;
  align-items: flex-start;
}
.cart-drawer-overlay .cart-drawer-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; margin: 0; font-size: inherit; letter-spacing: normal; text-transform: none; }
.cart-drawer-kicker {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bx-gold-deep);
}
.cart-drawer-heading { font-family: var(--bx-serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--bx-ink); }
.cart-drawer-count { color: var(--bx-muted); font-size: 1.1rem; font-weight: 400; }
.cart-drawer-header .cart-count { background: none; color: inherit; width: auto; height: auto; position: static; font: inherit; display: inline; padding: 0; box-shadow: none; }
.cart-drawer-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bx-line); background: var(--bx-white);
  color: var(--bx-ink); display: grid; place-items: center; cursor: pointer; padding: 0; line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--bx-ease);
}
.cart-drawer-close:hover { background: var(--bx-ink); color: var(--bx-white); transform: rotate(90deg); }

.cart-drawer-overlay .free-shipping-progress-box {
  background: transparent; padding: 0 26px 16px; border-bottom: 1px solid var(--bx-line); font-size: 0.84rem; color: var(--bx-muted);
}
.cart-drawer-overlay .free-shipping-progress-box strong { color: var(--bx-ink); font-weight: 600; }
.cart-drawer-overlay #free-shipping-text { color: var(--bx-muted); font-weight: 400; }
.cart-drawer-overlay .free-shipping-bar-track { height: 4px; background: var(--bx-sand); margin-top: 10px; }
.cart-drawer-overlay .free-shipping-bar-fill { background: var(--bx-gold); border-radius: 4px; }

.cart-drawer-overlay .cart-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.cart-drawer-overlay .cart-items-scroll { flex: 0 0 auto; overflow: visible; padding: 4px 26px 8px; }

.cart-drawer-overlay .cart-item-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--bx-line);
}
.cart-drawer-overlay .cart-item-row:last-child { border-bottom: 0; }
.cart-drawer-overlay .cart-item-thumb {
  width: 84px; height: 96px; padding: 6px; background: var(--bx-paper); border: 0; border-radius: var(--bx-r-sm); box-shadow: none;
}
.cart-drawer-overlay .cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-drawer-overlay .cart-item-info { min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 96px; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cart-drawer-overlay .cart-item-title {
  font-family: var(--bx-serif); font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: var(--bx-ink); margin: 0;
}
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cart-drawer-overlay .cart-qty-stepper { background: var(--bx-white); border: 1px solid var(--bx-line); padding: 3px; }
.cart-drawer-overlay .cart-qty-stepper .qty-btn { width: 28px; height: 28px; background: var(--bx-paper); box-shadow: none; font-size: 1rem; }
.cart-drawer-overlay .cart-qty-stepper .qty-btn:hover { background: var(--bx-ink); color: var(--bx-white); }
.cart-drawer-overlay .cart-qty-stepper .qty-val { min-width: 30px; font-size: 0.9rem; }
.cart-drawer-overlay .cart-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; }
.cart-drawer-overlay .cart-item-line-total { font-family: var(--bx-sans); font-weight: 700; font-size: 1rem; color: var(--bx-ink); }
.cart-drawer-overlay .cart-item-unit-price { font-family: var(--bx-sans); font-weight: 400; font-size: 0.74rem; color: var(--bx-muted); }
.cart-drawer-overlay .cart-item-remove-btn {
  width: 30px; height: 30px; padding: 0; justify-content: center; color: var(--bx-muted); border-radius: 50%; flex: none;
}
.cart-drawer-overlay .cart-item-remove-btn:hover { color: #b42318; background: #fde8e6; }

.cart-empty-state { text-align: center; padding: 56px 12px 40px; color: var(--bx-muted); }
.cart-empty-state svg { color: var(--bx-gold); margin: 0 auto 16px; display: block; }
.cart-empty-state h4 { font-family: var(--bx-serif); font-size: 1.4rem; font-weight: 600; color: var(--bx-ink); margin: 0 0 8px; }
.cart-empty-state p { font-size: 0.9rem; line-height: 1.55; max-width: 290px; margin: 0 auto 22px; }
.cart-empty-btn {
  background: var(--bx-ink); color: var(--bx-white); border: 0; border-radius: 999px; padding: 12px 26px; font: 600 0.9rem var(--bx-sans); cursor: pointer; transition: background 0.2s;
}
.cart-empty-btn:hover { background: var(--bx-gold-deep); }

.cart-upsell { margin: auto 26px 20px; padding: 14px; background: var(--bx-paper); border-radius: var(--bx-r-md); }
.cart-upsell__label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bx-gold-deep); margin-bottom: 10px; }
.cart-upsell__row { display: flex; align-items: center; gap: 12px; }
.cart-upsell__row img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bx-sand); }
.cart-upsell__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-upsell__text strong { font-size: 0.86rem; font-weight: 600; color: var(--bx-ink); line-height: 1.25; }
.cart-upsell__text span { font-size: 0.82rem; color: var(--bx-muted); }
.cart-upsell__add {
  flex: none; background: var(--bx-white); color: var(--bx-ink); border: 1px solid var(--bx-line); border-radius: 999px; padding: 8px 16px; font: 600 0.8rem var(--bx-sans); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.cart-upsell__add:hover { background: var(--bx-ink); color: var(--bx-white); }

.cart-drawer-overlay .cart-drawer-footer {
  background: var(--bx-white); border-top: 1px solid var(--bx-line); padding: 16px 26px 20px; box-shadow: 0 -18px 30px -24px rgba(18, 12, 8, 0.25);
}
.cart-coupon summary { list-style: none; cursor: pointer; font-size: 0.82rem; color: var(--bx-gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 12px; width: fit-content; }
.cart-coupon summary::-webkit-details-marker { display: none; }
.cart-drawer-overlay .cart-coupon-wrap { margin: 0 0 14px; gap: 8px; }
.cart-drawer-overlay .cart-coupon-input { border: 1px solid var(--bx-line); border-radius: 999px; padding: 10px 16px; background: var(--bx-cream); font: 500 0.85rem var(--bx-sans); letter-spacing: 0.06em; }
.cart-drawer-overlay .cart-coupon-input:focus { outline: 2px solid var(--bx-gold); outline-offset: 1px; }
.cart-coupon-btn { border: 0; background: var(--bx-ink); color: var(--bx-white); border-radius: 999px; padding: 0 20px; font: 600 0.82rem var(--bx-sans); cursor: pointer; }
.cart-coupon-btn:hover { background: var(--bx-gold-deep); }
.cart-drawer-overlay .cart-subtotal-line { font-size: 0.9rem; color: var(--bx-muted); margin-bottom: 6px; }
.cart-drawer-overlay .cart-subtotal-line strong { color: var(--bx-ink); font-weight: 600; }
.cart-drawer-overlay #cart-drawer-shipping { color: #15803d; font-weight: 600; }
.cart-drawer-overlay .cart-total-line {
  display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--bx-line); margin: 12px 0 16px; padding-top: 14px;
  font-family: var(--bx-serif); font-size: 1.15rem; color: var(--bx-ink);
}
.cart-drawer-overlay #cart-total { font-size: 1.7rem; font-weight: 600; }
.cart-drawer-overlay .cart-checkout-btn {
  width: 100%; justify-content: center; gap: 10px; padding: 16px; font: 600 0.98rem var(--bx-sans); border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bx-ink); color: var(--bx-white); transition: background 0.25s, transform 0.25s var(--bx-ease);
  display: inline-flex; align-items: center; box-shadow: none;
}
.cart-drawer-overlay .cart-checkout-btn:hover { background: var(--bx-gold); color: var(--bx-ink); transform: translateY(-2px); }
.cart-reassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 0.76rem; color: var(--bx-muted); }

@media (max-width: 520px) {
  .cart-drawer-overlay .cart-drawer { max-width: 100%; }
  .cart-drawer-overlay .cart-item-row { grid-template-columns: 72px 1fr; gap: 12px; }
  .cart-drawer-overlay .cart-item-thumb { width: 72px; height: 84px; }
  .cart-drawer-overlay .cart-drawer-footer { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
  .cart-drawer-overlay .cart-items-scroll, .cart-upsell { margin-left: 18px; margin-right: 18px; }
  .cart-drawer-overlay .cart-items-scroll { padding-left: 0; padding-right: 0; margin-left: 18px; margin-right: 18px; }
}

/* ==========================================================================
   CHECKOUT v3 — full page + modal (cream / espresso / gold)
   ========================================================================== */
.cko-page { background: var(--bx-cream); font-family: var(--bx-sans); color: var(--bx-text); padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px); }
.cko-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--bx-gutter); }
.cko-page *, .checkout-modal-container *, .cko-modal * { box-sizing: border-box; }
.cko-kicker { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bx-gold-deep); margin-bottom: 10px; }
.cko-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); }
.cko-head h1 { font-family: var(--bx-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--bx-ink); line-height: 1.1; margin: 0 0 12px; }
.cko-head p { color: var(--bx-muted); line-height: 1.6; margin: 0; }
.cko-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.cko-main { display: flex; flex-direction: column; gap: 20px; }
.cko-side { position: sticky; top: 110px; }
.cko-card { background: var(--bx-white); border: 1px solid var(--bx-line); border-radius: var(--bx-r-md); padding: clamp(20px, 2.6vw, 32px); }
.cko-card__title { display: flex; align-items: center; gap: 12px; font-family: var(--bx-serif); font-size: 1.35rem; font-weight: 600; color: var(--bx-ink); margin: 0 0 22px; }
.cko-step { width: 28px; height: 28px; border-radius: 50%; background: var(--bx-ink); color: var(--bx-white); display: grid; place-items: center; font: 600 0.82rem var(--bx-sans); flex: none; }

.cko-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cko-field { display: block; margin-bottom: 16px; }
.cko-field > span:first-child { display: block; font-size: 0.8rem; font-weight: 600; color: var(--bx-ink); margin-bottom: 7px; }
.cko-field small { display: block; font-size: 0.74rem; color: var(--bx-muted); margin-top: 6px; }
.cko-field input, .cko-field select, .cko-field textarea, .cko-promo input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--bx-line); border-radius: 12px; background: var(--bx-cream);
  font: 400 0.95rem var(--bx-sans); color: var(--bx-ink); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; appearance: none; -webkit-appearance: none;
}
.cko-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.cko-field textarea { resize: vertical; min-height: 76px; }
.cko-field input::placeholder, .cko-field textarea::placeholder { color: #a39a90; }
.cko-field input:focus, .cko-field select:focus, .cko-field textarea:focus, .cko-promo input:focus, .cko-phone:focus-within {
  outline: none; border-color: var(--bx-gold); background: var(--bx-white); box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.18);
}
.cko-phone { display: flex; align-items: stretch; border: 1px solid var(--bx-line); border-radius: 12px; background: var(--bx-cream); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.cko-phone b { display: grid; place-items: center; padding: 0 14px; background: var(--bx-paper); font: 600 0.88rem var(--bx-sans); color: var(--bx-ink); border-right: 1px solid var(--bx-line); }
.cko-phone input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }

.cko-pay { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1.5px solid var(--bx-gold); background: #fbf5e4; border-radius: var(--bx-r-sm); }
.cko-pay__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bx-white); color: var(--bx-gold-deep); display: grid; place-items: center; flex: none; }
.cko-pay strong { display: block; color: var(--bx-ink); font-size: 0.98rem; margin-bottom: 3px; }
.cko-pay p { margin: 0; font-size: 0.84rem; color: var(--bx-muted); line-height: 1.5; }
.cko-pay__check { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bx-gold); color: var(--bx-white); display: grid; place-items: center; flex: none; }
.cko-pay__check svg { width: 15px; height: 15px; }
.cko-pay--compact { margin: 6px 0 20px; padding: 14px; }
.cko-pay--compact .cko-pay__icon { width: 40px; height: 40px; }
.cko-pay--compact .cko-pay__icon svg { width: 20px; height: 20px; }

.cko-summary .cko-card__title { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--bx-line); }
.cko-items { display: flex; flex-direction: column; margin-bottom: 18px; max-height: 340px; overflow-y: auto; }
.cko-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bx-line); }
.cko-item:last-child { border-bottom: 0; }
.cko-item__thumb { position: relative; width: 62px; height: 68px; background: var(--bx-paper); border-radius: 10px; padding: 5px; }
.cko-item__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cko-item__thumb b { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bx-ink); color: var(--bx-white); font: 600 0.72rem/22px var(--bx-sans); text-align: center; padding: 0 5px; }
.cko-item__name { font-family: var(--bx-serif); font-size: 0.98rem; font-weight: 600; color: var(--bx-ink); line-height: 1.3; }
.cko-item__price { font-weight: 600; color: var(--bx-ink); font-size: 0.95rem; white-space: nowrap; }
.cko-empty { text-align: center; padding: 28px 8px; background: var(--bx-cream); border-radius: var(--bx-r-sm); border: 1px dashed var(--bx-sand); }
.cko-empty h3 { font-family: var(--bx-serif); font-size: 1.2rem; font-weight: 600; color: var(--bx-ink); margin: 0 0 6px; }
.cko-empty p { font-size: 0.86rem; color: var(--bx-muted); margin: 0 0 16px; }
.cko-empty a { display: inline-block; background: var(--bx-ink); color: var(--bx-white); padding: 10px 22px; border-radius: 999px; font: 600 0.85rem var(--bx-sans); text-decoration: none; }

.cko-promo { display: flex; gap: 8px; margin-bottom: 18px; }
.cko-promo input { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; padding: 11px 16px; border-radius: 999px; }
.cko-promo button { border: 0; background: var(--bx-ink); color: var(--bx-white); border-radius: 999px; padding: 0 20px; font: 600 0.82rem var(--bx-sans); cursor: pointer; transition: background 0.2s; }
.cko-promo button:hover { background: var(--bx-gold-deep); }
.cko-totals { border-top: 1px solid var(--bx-line); padding-top: 16px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; color: var(--bx-muted); }
.cko-totals > div { display: flex; justify-content: space-between; align-items: baseline; }
.cko-totals span:last-child { color: var(--bx-ink); font-weight: 600; }
.cko-free { color: #15803d !important; }
.cko-discount, .cko-discount span:last-child { color: var(--bx-gold-deep) !important; }
.cko-total { border-top: 1px solid var(--bx-line); padding-top: 14px; margin-top: 4px; font-family: var(--bx-serif); font-size: 1.15rem; color: var(--bx-ink) !important; }
.cko-total span:last-child { font-size: 1.8rem; font-weight: 600; }

.cko-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bx-ink); color: var(--bx-white); font: 600 0.98rem var(--bx-sans); text-decoration: none; transition: background 0.25s, color 0.25s, transform 0.25s var(--bx-ease);
}
.cko-submit:hover { background: var(--bx-gold); color: var(--bx-ink); transform: translateY(-2px); }
.cko-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; background: var(--bx-ink); color: var(--bx-white); }
.cko-assure { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--bx-line); display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; color: var(--bx-muted); }
.cko-assure li { display: flex; align-items: center; gap: 8px; }
.cko-assure li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bx-gold); flex: none; }

/* Success dialog (page) */
.cko-modal { position: fixed; inset: 0; background: rgba(18, 12, 8, 0.6); backdrop-filter: blur(6px); z-index: 100002; align-items: center; justify-content: center; padding: 20px; }
.cko-modal__box { background: var(--bx-cream); border-radius: var(--bx-r-lg); max-width: 500px; width: 100%; padding: 36px 32px; text-align: center; font-family: var(--bx-sans); box-shadow: var(--bx-shadow); }
.cko-modal__box h2 { font-family: var(--bx-serif); font-size: 1.9rem; font-weight: 600; color: var(--bx-ink); margin: 0 0 10px; }
.cko-modal__box > p { color: var(--bx-muted); line-height: 1.6; margin: 0 0 22px; }
.cko-modal__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--bx-gold); color: var(--bx-white); display: grid; place-items: center; margin: 0 auto 18px; }
.cko-modal__facts { list-style: none; margin: 0 0 24px; padding: 6px 18px; background: var(--bx-white); border: 1px solid var(--bx-line); border-radius: var(--bx-r-sm); text-align: left; }
.cko-modal__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bx-line); font-size: 0.88rem; color: var(--bx-muted); }
.cko-modal__facts li:last-child { border-bottom: 0; }
.cko-modal__facts strong { color: var(--bx-ink); font-weight: 600; text-align: right; }
.cko-modal__home { display: inline-block; margin-top: 14px; background: none; border: 0; color: var(--bx-gold-deep); font: 600 0.88rem var(--bx-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Modal opened from the cart */
.checkout-modal-overlay { background: rgba(18, 12, 8, 0.6); backdrop-filter: blur(6px); z-index: 100002; }
.checkout-modal-container { background: var(--bx-cream); border: 0; border-radius: var(--bx-r-lg); max-width: 620px; padding: clamp(24px, 4vw, 40px); font-family: var(--bx-sans); color: var(--bx-text); box-shadow: var(--bx-shadow); }
.cko-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bx-line); background: var(--bx-white); color: var(--bx-ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background 0.2s, color 0.2s, transform 0.3s var(--bx-ease); }
.cko-close:hover { background: var(--bx-ink); color: var(--bx-white); transform: rotate(90deg); }
.cko-mhead { text-align: center; margin-bottom: 22px; padding-right: 20px; padding-left: 20px; }
.cko-mhead h2 { font-family: var(--bx-serif); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; color: var(--bx-ink); margin: 0 0 8px; line-height: 1.15; }
.cko-mhead p { margin: 0; font-size: 0.9rem; color: var(--bx-muted); line-height: 1.55; }
.cko-mini { background: var(--bx-white); border: 1px solid var(--bx-line); border-radius: var(--bx-r-sm); padding: 6px 18px; margin-bottom: 22px; }
.cko-mini > div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 0.9rem; color: var(--bx-muted); }
.cko-mini strong { color: var(--bx-ink); font-weight: 600; }
.cko-mini .cko-free { color: #15803d; }
.cko-mini__total { border-top: 1px solid var(--bx-line); font-family: var(--bx-serif); font-size: 1.1rem; color: var(--bx-ink) !important; }
.cko-mini__total strong { font-size: 1.6rem; font-weight: 600; }
#checkout-success-view { text-align: center; }
#checkout-success-view .cko-mhead { padding: 0; }

@media (max-width: 900px) {
  .cko-grid { grid-template-columns: 1fr; }
  .cko-side { position: static; order: -1; }
}
@media (max-width: 560px) {
  .cko-row { grid-template-columns: 1fr; gap: 0; }
  .cko-pay { gap: 12px; padding: 14px; }
  .cko-pay__icon { width: 40px; height: 40px; }
  .cko-pay__check { width: 24px; height: 24px; }
  .checkout-modal-container { padding: 24px 18px; max-height: 94vh; }
  .cko-mhead { padding: 0; }
}

.bx-home a.bx-card__add, .bx-home a.bx-pcard__add { text-decoration: none; }
.bx-prose figure { margin: 24px 0; }
.bx-prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* Cart: discount line, suggestions, undo */
.cart-subtotal-line[hidden], .cart-upsell[hidden], .cart-undo[hidden] { display: none !important; }
.cart-discount-line { color: #047857; }
.cart-discount-line b { font-weight: 700; letter-spacing: 0.06em; }
.cart-discount-remove { border: 0; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: 0.7; }
.cart-discount-remove:hover { opacity: 1; }
.cart-upsell__list { display: flex; flex-direction: column; gap: 12px; }
.cart-upsell__row + .cart-upsell__row { padding-top: 12px; border-top: 1px solid var(--bx-line); }
.cart-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 26px 0; padding: 10px 14px; background: var(--bx-ink); color: var(--bx-white); border-radius: var(--bx-r-md); font-size: 0.84rem; animation: cartUndoIn 0.25s ease; }
.cart-undo button { border: 0; background: transparent; color: var(--bx-gold-soft); font: 700 0.84rem var(--bx-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@keyframes cartUndoIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .cart-undo { margin-left: 18px; margin-right: 18px; } }

/* Cart: delivery estimate, WhatsApp order, floating pill, product links */
.cart-eta { margin: 0 0 10px; font-size: 0.8rem; color: var(--bx-muted); text-align: center; }
.cart-eta[hidden], .cart-fab[hidden] { display: none !important; }
.cart-wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid #25d366; border-radius: 999px; background: transparent; color: #128c4a; font: 600 0.9rem var(--bx-sans); cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease; }
.cart-wa-btn:hover { background: #25d366; color: #fff; }
.cart-item-title a { color: inherit; text-decoration: none; }
.cart-item-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--bx-ink); color: var(--bx-white); font: 600 0.9rem var(--bx-sans); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); cursor: pointer; animation: cartUndoIn 0.3s ease; }
.cart-fab:hover { background: var(--bx-gold-deep); }
@media (min-width: 1025px) { .cart-fab { display: none !important; } }

/* Accessories: show the whole product photo, never cropped */
.bx-home .bx-pcard__media--product { aspect-ratio: 1 / 1; background: #fff; }
.bx-home .bx-pcard__media--product img { object-fit: contain; padding: 6%; mix-blend-mode: normal; }
.bx-home .bx-card__media--product img { object-fit: contain; background: #fff; padding: 6%; }
.bx-home .bx-gallery__stage--contain { background: #fff; }
.bx-home .bx-gallery__stage--contain img { object-fit: contain; padding: 4%; }

/* Hero video is portrait (9:16): on wide screens show it whole on the right, text stays on a dark background */
@media (min-width: 900px) {
  .bx-home .bx-hero__media { background: #0e0907; }
  .bx-home .bx-hero__media video {
    object-fit: contain;
    object-position: 80% center;
    transform: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
    mask-image: linear-gradient(to right, transparent 0, #000 24%);
  }
}

/* ==========================================================================
   MOBILE POLISH (phones)
   ========================================================================== */
@media (max-width: 768px) {
  /* Floating layers: WhatsApp sits above the tab bar, menu and search sit above both */
  .mobile-bottom-nav { z-index: 1050; }
  .mobile-bottom-item { flex: 1; min-height: 48px; justify-content: center; }
  .mobile-bottom-badge { right: auto !important; left: calc(50% + 5px); }
  .whatsapp-float-btn { bottom: calc(72px + env(safe-area-inset-bottom)) !important; right: 14px !important; width: 48px; height: 48px; z-index: 1040 !important; }
  .whatsapp-float-btn::after { display: none; }
  .bx-buybar { bottom: calc(68px + env(safe-area-inset-bottom)); right: 74px; }
  .cart-fab { display: none !important; } /* the tab bar already has "Panier" */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

  /* Closed menu must not cast a shadow on the left edge of the screen */
  .mobile-drawer:not(.active) { box-shadow: none; visibility: hidden; transition: transform 0.35s ease, visibility 0s linear 0.35s; }

  /* Content is visible at once, no waiting for scroll animations */
  .bx-js .bx-home [data-bx-reveal] { opacity: 1; transform: none; transition: none; }

  /* No zoom jump on iPhone when a field is tapped */
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }

  /* Home hero: video on top, text under it, so the machine is never hidden */
  .bx-home .bx-hero { min-height: 0; justify-content: flex-start; }
  .bx-home .bx-hero__media { position: relative; inset: auto; z-index: 0; height: min(54svh, 440px); background: #0e0907; }
  .bx-home .bx-hero__media video,
  .bx-home .bx-hero__media img { object-fit: cover; object-position: 50% 66%; transform: none; }
  .bx-home .bx-hero__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(0deg, var(--bx-ink), transparent); }
  .bx-home .bx-hero::before { display: none; }
  .bx-home .bx-hero__toggle { top: 12px; z-index: 2; }
  .bx-home .bx-hero__body { padding-top: 12px; padding-bottom: 28px; }

  /* Shorter page headers: products show sooner */
  .bx-home .bx-pagehero { min-height: 300px; }
}

/* Two product cards per row: keep badges apart and text short */
@media (max-width: 560px) {
  .bx-home .bx-pcard__tag { display: none; }
  .bx-home .bx-pcard__deal { right: 8px; top: 8px; padding: 5px 9px; }
  .bx-home .bx-pcard__meta { font-size: 0.68rem; letter-spacing: 0.04em; }
  .bx-home .bx-pcard__meta,
  .bx-home .bx-pcard__name { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .bx-home .bx-pcard__meta { -webkit-line-clamp: 2; }
  .bx-home .bx-pcard__name { -webkit-line-clamp: 4; font-size: 1rem; }
  .bx-home .bx-pcard__add { min-height: 44px; }
}

/* Horizontal (16:9) hero video: the whole picture, softly blended into the dark background */
@media (min-width: 900px) {
  .bx-home .bx-hero--wide .bx-hero__media {
    inset: 44% 0 auto auto; width: min(68%, 1280px); aspect-ratio: 16 / 9; transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  }
  .bx-home .bx-hero--wide .bx-hero__media video {
    object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
    mask-image: linear-gradient(to right, transparent 0, #000 30%);
  }
}
@media (max-width: 768px) {
  .bx-home .bx-hero--wide .bx-hero__media { height: auto; aspect-ratio: 16 / 10; }
  .bx-home .bx-hero--wide .bx-hero__media video { object-position: 50% 50%; }
  .bx-home .bx-hero--wide .bx-hero__media::after { height: 40px; }
}
