/* ══════════════════════════════════════════════════════════════════════
   BeanBreak — Kohvimasina leht, konfiguraator ja võrdlus
   Värvid tulevad teema muutujatest (style.css :root)
   ══════════════════════════════════════════════════════════════════════ */

.bm {
  --bm-nav: 72px;
  --bm-line: rgba(61, 43, 31, .12);
  --bm-line-strong: rgba(61, 43, 31, .22);
  --bm-paper: #FBF8F4;
  --bm-ink: var(--bb-brown-dark, #1C1510);
  --bm-body: var(--bb-text-body, #4A3728);
  --bm-muted: var(--bb-text-muted, #8B7260);
  --bm-gold: var(--bb-gold, #B8965A);
  --bm-gold-soft: rgba(184, 150, 90, .14);
  --bm-ok: #3F6B4A;
  --bm-warn: #A2542B;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--bm-body);
  background: var(--bm-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.admin-bar .bm { --bm-nav: 104px; }
.bm *, .bm *::before, .bm *::after { box-sizing: border-box; }
.bm img { max-width: 100%; height: auto; display: block; }
.bm a { color: inherit; }
.bm h1, .bm h2, .bm h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--bm-ink); font-weight: 500; margin: 0; line-height: 1.15; }
.bm p { margin: 0 0 1em; line-height: 1.65; }
.bm [id] { scroll-margin-top: calc(var(--bm-nav) + 64px); }
.bm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

.bm-eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--bm-gold); margin: 0 0 12px;
}

/* ── Nupud ── */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 15px/1 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.bm-btn:active { transform: translateY(1px); }
.bm-btn--primary { background: var(--bm-ink); color: #fff !important; }
.bm-btn--primary:hover { background: var(--bb-brown-mid, #3D2B1F); }
.bm-btn--outline { border-color: var(--bm-ink); color: var(--bm-ink) !important; background: transparent; }
.bm-btn--outline:hover { background: var(--bm-ink); color: #fff !important; }
.bm-btn--ghost { background: transparent; color: var(--bm-muted) !important; min-height: 40px; font-size: 14px; }
.bm-btn--ghost:hover { color: var(--bm-ink) !important; }
.bm-btn--block { width: 100%; }
.bm-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.bm-btn.is-disabled { opacity: .45; pointer-events: none; }
.bm-btn:focus-visible, .bm-compare-toggle:focus-visible, .bm-tab:focus-visible, .bm-package:focus-visible { outline: 2px solid var(--bm-gold); outline-offset: 3px; }

/* ═══════════════ HERO ═══════════════ */
.bm-hero { padding: calc(var(--bm-nav) + 48px) 0 72px; background: linear-gradient(180deg, #F3ECE3 0%, var(--bm-paper) 100%); }
.bm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
/* Galerii algab teksti ülaservaga ja jääb kerimisel paigale, kuni tekst lõpeb */
.bm-gallery { position: sticky; top: calc(var(--bm-nav) + 24px); }
.bm-gallery-main {
  aspect-ratio: 4 / 3; border-radius: var(--bb-radius-lg, 24px); background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden;
  box-shadow: 0 1px 0 var(--bm-line), var(--bb-shadow, 0 8px 32px rgba(28,21,16,.10));
}
.bm-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.bm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 14px; }
.bm-thumb { aspect-ratio: 4 / 3; border-radius: 12px; border: 1.5px solid var(--bm-line); background: #fff; padding: 0; cursor: pointer; transition: border-color .15s; }
.bm-thumb:hover { border-color: var(--bm-gold); }
.bm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bm-gallery-main.is-fill { padding: 0; }
.bm-gallery-main.is-fill img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.bm-thumb { overflow: hidden; }
.bm-thumb.is-fill { padding: 0; }
.bm-thumb.is-fill img { object-fit: cover; }
.bm-thumb.is-active { border-color: var(--bm-ink); }

.bm-crumbs { font-size: 13px; color: var(--bm-muted); margin-bottom: 22px; display: flex; gap: 8px; }
.bm-crumbs a { text-decoration: none; }
.bm-crumbs a:hover { color: var(--bm-ink); }
.bm-title { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.01em; }
.bm-tagline { font-size: 18px; color: var(--bm-body); margin: 16px 0 0; max-width: 34em; }

.bm-stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--bm-line); }
.bm-stats li { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.bm-stats strong { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 500; color: var(--bm-ink); line-height: 1; }
.bm-stats strong.bm-stat-text { font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.3; font-weight: 500; }
.bm-stats span { font-size: 12px; color: var(--bm-muted); }

.bm-price { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.bm-price-label { font-size: 14px; color: var(--bm-muted); }
.bm-price-value { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--bm-ink); line-height: 1; }
.bm-price-value--req { font-size: 30px; }
.bm-price-vat { font-size: 14px; color: var(--bm-muted); }
.bm-price-note { flex-basis: 100%; font-size: 13px; color: var(--bm-muted); margin: 6px 0 0; }

.bm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bm-compare-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 0;
  background: none; border: 0; cursor: pointer; font: 500 14px 'DM Sans', sans-serif; color: var(--bm-body);
}
.bm-cmp-box { width: 18px; height: 18px; border: 1.5px solid var(--bm-line-strong); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.bm-compare-toggle.is-on .bm-cmp-box { background: var(--bm-ink); border-color: var(--bm-ink); }
.bm-compare-toggle.is-on .bm-cmp-box::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bm-compare-toggle:hover .bm-cmp-box { border-color: var(--bm-ink); }
.bm-compare-toggle--sm { margin-top: 10px; font-size: 13px; }

/* ── Alamenüü ── */
.bm-subnav { position: sticky; top: var(--bm-nav); z-index: 40; background: rgba(251,248,244,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bm-line); }
.bm-subnav .bm-wrap { display: flex; align-items: center; gap: 32px; height: 56px; overflow-x: auto; white-space: nowrap; }
.bm-subnav .bm-wrap, .bm-tabs { scrollbar-width: none; }
.bm-subnav .bm-wrap::-webkit-scrollbar, .bm-tabs::-webkit-scrollbar { display: none; }
.bm-subnav a { font-size: 14px; text-decoration: none; color: var(--bm-muted); padding: 18px 0; border-bottom: 2px solid transparent; }
.bm-subnav a:hover { color: var(--bm-ink); border-bottom-color: var(--bm-gold); }
.bm-subnav-price { margin-left: auto; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--bm-ink); }
.bm-subnav-price small { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--bm-muted); }

.bm-intro { padding: 72px 0 0; }
.bm-prose { max-width: 760px; font-size: 18px; }

/* ═══════════════ FUNKTSIOONID ═══════════════ */
/* Täislaius: pilt ulatub ekraani servani, tekst teisel poolel */
.bm-features { padding: 0; background: var(--bm-paper); }
.bm-feature { display: grid; grid-template-columns: minmax(0, 960px) minmax(420px, 1fr); align-items: stretch; margin: 0; }
/* Pildiveerg on pikslites (max 960 px), mitte protsentides – nii kasvab pilt brauseri suumimisel koos tekstiga */
.bm-feature--rev { grid-template-columns: minmax(420px, 1fr) minmax(0, 960px); }
.bm-feature + .bm-feature { border-top: 1px solid var(--bm-line); }
.bm-feature--rev .bm-feature-media { order: 2; }
.bm-feature-media { position: relative; overflow: hidden; background: #EFE7DC; aspect-ratio: 4 / 3; min-height: 100%; }
.bm-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-feature-ph {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 10%, rgba(184,150,90,.30) 0%, transparent 55%), linear-gradient(160deg, #3D2B1F 0%, #1C1510 100%);
}
.bm-feature-text { display: flex; align-items: center; padding: clamp(40px, 6vw, 120px); }
.bm-feature-inner { max-width: 560px; }
.bm-feature--rev .bm-feature-text { justify-content: flex-end; }
.bm-feature-text h2 { font-size: clamp(28px, 2.8vw, 42px); margin-bottom: 20px; }
.bm-feature-text p { font-size: 17px; }

/* ═══════════════ SEKTSIOONI PEALKIRI ═══════════════ */
.bm-section-head { max-width: 720px; margin-bottom: 40px; }
.bm-section-head h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 14px; }
.bm-section-head p { font-size: 17px; }

/* ═══════════════ KONFIGURAATOR ═══════════════ */
.bm-config { padding: 96px 0; background: #fff; border-top: 1px solid var(--bm-line); border-bottom: 1px solid var(--bm-line); }
.bm-config-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.bm-config-form { min-width: 0; }
.bm-step { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.bm .bm-step-title { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.2; color: var(--bm-ink); margin: 0 0 14px; padding: 0; font-weight: 500; }
.bm-badge { font: 500 11px 'DM Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-warn); background: rgba(162,84,43,.09); border-radius: 999px; padding: 4px 10px; }
.bm-group-note { font-size: 14px; color: var(--bm-muted); margin: -6px 0 14px; }
.bm-group.is-missing .bm-options { box-shadow: 0 0 0 1.5px rgba(162,84,43,.45); border-radius: 16px; }
.bm-base p { background: var(--bm-paper); border-radius: 14px; padding: 16px 18px; font-size: 15px; margin: 0; }

.bm-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bm-package {
  text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; cursor: pointer;
  border-radius: 16px; border: 1.5px solid var(--bm-line); background: var(--bm-paper); font-family: 'DM Sans', sans-serif; color: var(--bm-body);
  transition: border-color .15s, background .15s;
}
.bm-package:hover { border-color: var(--bm-gold); }
.bm-package.is-active { border-color: var(--bm-ink); background: #fff; box-shadow: 0 0 0 1px var(--bm-ink) inset; }
.bm-package-name { font-weight: 500; color: var(--bm-ink); font-size: 15px; }
.bm-package-seg { font-size: 12.5px; color: var(--bm-muted); line-height: 1.4; }
.bm-package-price { margin-top: 4px; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--bm-ink); }
.bm-package-price small { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--bm-muted); }

.bm-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bm-variant { position: relative; cursor: pointer; }
.bm-variant input { position: absolute; opacity: 0; pointer-events: none; }
.bm-variant-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--bm-line); transition: .15s; }
.bm-variant:hover .bm-variant-body { border-color: var(--bm-gold); }
.bm-variant.is-checked .bm-variant-body { border-color: var(--bm-ink); box-shadow: 0 0 0 1px var(--bm-ink) inset; }
.bm-variant input:focus-visible + .bm-variant-body { outline: 2px solid var(--bm-gold); outline-offset: 2px; }
.bm-variant-name { font-weight: 500; color: var(--bm-ink); }
.bm-variant-desc { font-size: 13px; color: var(--bm-muted); line-height: 1.45; }
.bm-variant-price { margin-top: auto; padding-top: 6px; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--bm-ink); }

.bm-options { border: 1px solid var(--bm-line); border-radius: 16px; overflow: hidden; }
.bm-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; cursor: pointer; background: #fff; transition: background .15s; }
.bm-option + .bm-option { border-top: 1px solid var(--bm-line); }
.bm-option:hover { background: var(--bm-paper); }
.bm-option.is-checked { background: #FAF5EE; }
.bm-option input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--bm-ink); cursor: pointer; }
.bm-option input:disabled { cursor: not-allowed; }
.bm-option-body { display: flex; flex-direction: column; gap: 3px; }
.bm-option-name { font-size: 15px; color: var(--bm-ink); font-weight: 500; }
.bm-option-desc { font-size: 13px; color: var(--bm-muted); line-height: 1.45; }
.bm-option-auto { font-size: 12px; color: var(--bm-ok); font-weight: 500; }
.bm-option-price { font-size: 14px; color: var(--bm-ink); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.bm-option.is-standard .bm-option-price { color: var(--bm-ok); }
.bm-option--none .bm-option-name { font-weight: 400; color: var(--bm-muted); }

/* ── Kokkuvõte ── */
.bm-summary { position: sticky; top: calc(var(--bm-nav) + 76px); }
.bm-summary-card { background: var(--bm-ink); color: rgba(255,255,255,.82); border-radius: var(--bb-radius-lg, 24px); padding: 28px; box-shadow: var(--bb-shadow-lg, 0 24px 64px rgba(28,21,16,.16)); }
.bm-summary-card .bm-eyebrow { color: var(--bb-gold-light, #D4AC72); }
.bm-summary-model { color: #fff !important; font-size: 24px; margin-bottom: 18px; }
.bm-summary-list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.bm-summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.4; }
.bm-summary-list li b { font-weight: 500; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bm-summary-list li em { display: block; font-style: normal; font-size: 12px; color: var(--bb-gold-light, #D4AC72); }
.bm-summary-list li.is-empty { color: rgba(255,255,255,.5); }
.bm-summary-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(214,120,72,.18); color: #F2C4A8; font-size: 13px; }
.bm-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.bm-summary-total span { font-size: 14px; }
.bm-summary-total strong { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 32px; color: #fff; }
.bm-summary-vat { font-size: 12px; color: rgba(255,255,255,.55); margin: 6px 0 20px; }
.bm-summary .bm-btn--primary { background: var(--bm-gold); color: var(--bm-ink) !important; }
.bm-summary .bm-btn--primary:hover { background: var(--bb-gold-light, #D4AC72); }
.bm-summary .bm-btn--ghost { color: rgba(255,255,255,.6) !important; margin-top: 6px; }
.bm-summary .bm-btn--ghost:hover { color: #fff !important; }

/* ═══════════════ TEHNILISED ANDMED ═══════════════ */
.bm-specs { padding: 96px 0; }
.bm-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--bm-line); margin-bottom: 28px; overflow-x: auto; }
.bm-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 4px; margin-right: 22px; font: 500 15px 'DM Sans', sans-serif; color: var(--bm-muted); cursor: pointer; white-space: nowrap; }
.bm-tab.is-active { color: var(--bm-ink); border-bottom-color: var(--bm-ink); }
.bm-tabpanel[hidden] { display: none; }
.bm-spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 0; }
.bm-spec-list div { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bm-line); }
.bm-spec-list dt { font-size: 14px; color: var(--bm-muted); }
.bm-spec-list dd { margin: 0; font-size: 15px; color: var(--bm-ink); }
.bm-cap-table { width: 100%; max-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bm-cap-table th, .bm-cap-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--bm-line); font-size: 15px; }
.bm-cap-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-muted); font-weight: 500; }
.bm-cap-table td:first-child { color: var(--bm-ink); }
.bm-cap-daily { margin-top: 20px; font-size: 16px; }
.bm-terms { margin: 0; padding-left: 18px; max-width: 780px; }
.bm-terms li { margin-bottom: 10px; line-height: 1.6; }

/* ═══════════════ KONSULTATSIOON ═══════════════ */
.bm-consult { padding: 96px 0; background: #F3ECE3; }
.bm-consult-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.bm-consult-text h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 18px; }
.bm-consult-text > p { font-size: 17px; }
.bm-check { list-style: none; padding: 0; margin: 24px 0 0; }
.bm-check li { position: relative; padding: 0 0 14px 30px; line-height: 1.55; }
.bm-check li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bm-gold-soft); }
.bm-check li::after { content: ''; position: absolute; left: 6px; top: 9px; width: 6px; height: 3px; border: 1.5px solid var(--bm-gold); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.bm-consult-config { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.65); border: 1px solid var(--bm-line); font-size: 14px; }
.bm-consult-config ul { margin: 8px 0; padding-left: 18px; }
.bm-consult-config p { margin: 8px 0 0; color: var(--bm-ink); font-weight: 500; }

.bm-quote-card { background: #fff; border-radius: var(--bb-radius-lg, 24px); padding: 36px; box-shadow: var(--bb-shadow, 0 8px 32px rgba(28,21,16,.10)); align-self: center; }
.bm-quote-card .bm-consult-config { margin: 0 0 22px; }
.bm-quote-note { margin: 14px 0 0; font-size: 13px; color: var(--bm-muted); text-align: center; }
.bm-subnav a[data-quote] { color: var(--bm-ink); font-weight: 500; }
#bb-quote-config { margin: -6px 0 18px; padding: 12px 14px; border-radius: 12px; background: #F3ECE3; font-family: 'DM Sans', sans-serif; font-size: 13px; line-height: 1.5; color: #4A3728; }
#bb-quote-config strong { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #B8965A; margin-bottom: 4px; font-weight: 500; }
.bm-form { background: #fff; border-radius: var(--bb-radius-lg, 24px); padding: 36px; box-shadow: var(--bb-shadow, 0 8px 32px rgba(28,21,16,.10)); }
.bm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--bm-muted); }
.bm-field input, .bm-field select, .bm-field textarea {
  width: 100%; border: 1.5px solid var(--bm-line); border-radius: 12px; padding: 12px 14px; background: var(--bm-paper);
  font: 15px 'DM Sans', sans-serif; color: var(--bm-ink); transition: border-color .15s, background .15s;
}
.bm-field input:focus, .bm-field select:focus, .bm-field textarea:focus { outline: none; border-color: var(--bm-ink); background: #fff; }
.bm-check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 12px; cursor: pointer; line-height: 1.45; }
.bm-check-field input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--bm-ink); flex: none; }
.bm-form .bm-btn { margin-top: 10px; }
.bm-form-msg { margin: 14px 0 0; font-size: 14px; min-height: 1em; }
.bm-form-msg.is-error { color: var(--bm-warn); }
.bm-form-msg.is-warn { color: #8A6A1E; }
.bm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bm-form-done { text-align: center; padding: 36px 8px; }
.bm-form-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bm-gold-soft); color: var(--bm-gold); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.bm-form-done h3 { font-size: 26px; margin-bottom: 10px; }

/* ═══════════════ KAARDID ═══════════════ */
.bm-related { padding: 96px 0; }
.bm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bm-cards--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bm-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--bm-line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.bm-card:hover { box-shadow: var(--bb-shadow, 0 8px 32px rgba(28,21,16,.10)); transform: translateY(-2px); }
.bm-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 24px; background: #F7F2EC; }
.bm-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.bm-card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.bm-card-body .bm-eyebrow { margin-bottom: 6px; }
.bm-card-body h3 { font-size: 21px; margin-bottom: 6px; }
.bm-card-body h3 a { text-decoration: none; }
.bm-card-meta { font-size: 13px; color: var(--bm-muted); margin-bottom: 10px; }
.bm-card-price { margin: auto 0 0; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--bm-ink); }
.bm-card-price small { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--bm-muted); }

/* ═══════════════ VÕRDLUSRIBA ═══════════════ */
.bm-cmpbar {
  position: fixed; left: 50%; bottom: 20px; z-index: 600; width: min(980px, calc(100% - 24px));
  transform: translate(-50%, 140%); transition: transform .3s ease;
  background: var(--bb-brown-dark, #1C1510); color: #fff; border-radius: 20px; box-shadow: 0 18px 48px rgba(28,21,16,.35);
  font-family: 'DM Sans', sans-serif;
}
.bm-cmpbar.is-show { transform: translate(-50%, 0); }
.bm-cmpbar-inner { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; }
.bm-cmpbar-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.bm-cmpbar-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13px; }
.bm-cmpbar-item img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; }
.bm-cmpbar-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bm-cmpbar-item button { background: none; border: 0; color: rgba(255,255,255,.6); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bm-cmpbar-item button:hover { color: #fff; }
.bm-cmpbar-item.is-empty { justify-content: center; border: 1px dashed rgba(255,255,255,.2); background: none; color: rgba(255,255,255,.4); height: 48px; }
.bm-cmpbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.bm-cmpbar .bm-btn--primary { background: var(--bm-gold, #B8965A); color: #1C1510 !important; }
.bm-cmpbar-clear { background: none; border: 0; color: rgba(255,255,255,.55); font: 13px 'DM Sans', sans-serif; cursor: pointer; }
.bm-cmpbar-clear:hover { color: #fff; }

.bm-toast {
  position: fixed; left: 50%; bottom: 104px; z-index: 700; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--bb-brown-dark, #1C1510); border-radius: 999px; padding: 12px 22px; font: 14px 'DM Sans', sans-serif;
  box-shadow: 0 10px 30px rgba(28,21,16,.18); transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.bm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════ VÕRDLUSLEHT ═══════════════ */
.bm-compare-hero { padding: calc(var(--bm-nav) + 56px) 0 40px; background: linear-gradient(180deg, #F3ECE3 0%, var(--bm-paper) 100%); }
.bm-compare { padding: 16px 0 40px; }
.bm-empty { font-size: 17px; padding: 28px; border-radius: 16px; background: #fff; border: 1px dashed var(--bm-line-strong); }
.bm-diff-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.bm-diff-toggle input { accent-color: var(--bm-ink); width: 16px; height: 16px; }
.bm-compare-scroll { overflow-x: auto; border-radius: 20px; background: #fff; border: 1px solid var(--bm-line); }
.bm-compare-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.bm-compare-table th, .bm-compare-table td { padding: 16px 20px; border-bottom: 1px solid var(--bm-line); text-align: left; vertical-align: top; font-size: 15px; }
.bm-compare-table tbody th { width: 220px; font-weight: 400; color: var(--bm-muted); font-size: 14px; }
.bm-compare-table thead th { width: auto; vertical-align: bottom; padding-top: 24px; }
.bm-compare-table thead th:first-child { width: 220px; }
.bm-compare-table td { color: var(--bm-ink); }
.bm-compare-table tr.is-same td { color: var(--bm-muted); }
.bm-compare-table.only-diff tr.is-same { display: none; }
.bm-cmp-head-img { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 14px; background: #F7F2EC; border-radius: 14px; padding: 14px; }
.bm-cmp-head-img img { max-height: 100%; width: auto; }
.bm-cmp-head-name { display: block; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--bm-ink); text-decoration: none; margin-bottom: 6px; }
.bm-cmp-remove { font-size: 13px; color: var(--bm-muted); }
.bm-cmp-cta-row td { border-bottom: 0; }
.bm-cmp-cta-row .bm-btn { margin: 0 6px 6px 0; }

/* ═══════════════ HINNAD KATEGOORIALEHEL ═══════════════ */
.bm-price-from small { font-size: .75em; opacity: .7; }

/* ═══════════════ RESPONSIIVSUS ═══════════════ */
@media (max-width: 1080px) {
  .bm-config-grid { grid-template-columns: 1fr; }
  .bm-summary { position: static; }
  .bm-spec-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bm-wrap { padding: 0 20px; }
  .bm-hero { padding-bottom: 48px; }
  .bm-hero-grid, .bm-consult-grid { grid-template-columns: 1fr; gap: 36px; }
  .bm-gallery { position: static; }
  .bm-config, .bm-specs, .bm-consult, .bm-related { padding: 64px 0; }
  .bm-cards { grid-template-columns: 1fr 1fr; }
  .bm-subnav .bm-wrap { gap: 22px; }
}
@media (max-width: 600px) {
  .bm-wrap { padding: 0 16px; }
  .bm-quote-card { padding: 24px 18px; }
  .bm-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bm-price-value { font-size: 34px; }
  .bm-cta .bm-btn { flex: 1 1 100%; }
  .bm-form { padding: 24px 18px; }
  .bm-form-row { grid-template-columns: 1fr; gap: 0; }
  .bm-cards { grid-template-columns: 1fr; }
  .bm-option { grid-template-columns: 22px minmax(0, 1fr); }
  .bm-option-price { grid-column: 2; padding-top: 0; }
  .bm-spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .bm-subnav-price { display: none; }
  .bm-cmpbar-inner { flex-direction: column; align-items: stretch; }
  .bm-cmpbar-item span { display: none; }
  .bm-cmpbar-item { justify-content: center; }
  .bm-cmpbar-item.is-empty span { display: inline; }
  .bm-cmpbar-actions { justify-content: space-between; }
  .bm-toast { bottom: 170px; }
}
/* Funktsiooniplokid ühte tulpa kitsal ekraanil või suure suumiga – pilt täislaiuses */
@media (max-width: 1100px) {
  .bm-feature, .bm-feature--rev { grid-template-columns: 1fr; }
  .bm-feature--rev .bm-feature-media { order: 0; }
  .bm-feature-text, .bm-feature--rev .bm-feature-text { justify-content: flex-start; padding: 40px 32px 56px; }
  .bm-feature-inner { max-width: 720px; }
}
@media (max-width: 600px) {
  .bm-feature-text, .bm-feature--rev .bm-feature-text { padding: 32px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .bm *, .bm-cmpbar, .bm-toast { transition: none !important; }
}
