/* fronturi.css — componente pentru categoria Fronturi (browse model-first + explorator + wizard).
   Folosit de fronturi-nettfront.html și de paginile generate din fronturi-modele/.
   Se bazează pe tokenii definiți per pagină (:root) + otto-polish.css. */

/* Contrast AA: #8A8175 pe alb = 3.83:1 (sub 4.5:1). Întunecăm tokenul (4.85:1)
   doar pe paginile de fronturi — fronturi.css se încarcă după stilul inline. */
:root { --text-mute: #777164; }

/* ============================== Banner wizard ============================== */
.wizard-banner {
  max-width: 1400px;
  margin: 1.6rem auto 0;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
}
.wizard-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--cream-2, #FFF8E1);
  border: 1px solid rgba(255,136,0,0.25);
  border-radius: var(--radius-md, 12px);
  padding: 1.1rem 1.5rem;
}
.wizard-banner-text h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.wizard-banner-text p { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.15rem; }
.wizard-banner-btn {
  flex-shrink: 0;
  background: var(--orange); color: #fff;
  padding: 0.8rem 1.6rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -8px rgba(230,117,0,.7);
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.wizard-banner-btn:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(230,117,0,.8); }
.wizard-banner-btn:active { transform: translateY(0) scale(0.97); }
@media (max-width: 560px) {
  .wizard-banner-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .wizard-banner-btn { width: 100%; text-align: center; }
}

/* ========================= Chips familii de culoare ========================= */
.fam-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.8rem 0 0.4rem; }
.fam-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.38rem 0.75rem 0.38rem 0.45rem;
  border: 1px solid rgba(0,0,0,0.14); border-radius: 50px;
  background: #fff; color: var(--text-soft); font-size: 0.8rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}
.fam-chip:hover { border-color: var(--orange); color: var(--text); }
.fam-chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.fam-chip .count { color: var(--text-mute); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.fam-chip.active .count { color: rgba(255,255,255,0.6); }
.fam-chip:disabled { opacity: 0.35; cursor: not-allowed; }
.fam-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.18);
  /* inel interior subtil ca punctele deschise (Alb) să rămână vizibile pe chip alb */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
  background: var(--dot, #ccc);
}
.fam-dot.lemn-deschis { background: linear-gradient(100deg, #D7B27C 0 30%, #C8A268 30% 55%, #B98F55 55% 75%, #C8A268 75%); }
.fam-dot.lemn-inchis { background: linear-gradient(100deg, #8A6238 0 30%, #7A5230 30% 55%, #67431F 55% 75%, #7A5230 75%); }
.fam-dot.comanda { background: conic-gradient(#E5484D, #E0A33C, #6F8B6A, #5C7A99, #8E6AA8, #E5484D); }

/* ============================ Rând rezultate + toggle ============================ */
.results-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-row .results-count { margin-bottom: 0; }
.view-toggle { display: inline-flex; border: 1px solid rgba(0,0,0,0.14); border-radius: 50px; overflow: hidden; }
.view-toggle button {
  padding: 0.45rem 1rem; font-size: 0.8rem; color: var(--text-soft); background: #fff;
  transition: background-color 0.2s, color 0.2s;
}
.view-toggle button.active { background: var(--dark); color: #fff; cursor: default; }
.view-toggle button:not(.active):hover { color: var(--orange); }

/* ============================== Card de model ============================== */
/* Cardurile refolosesc .color-card/.color-swatch/.color-info din pagină.
   Adăugiri specifice modelelor: imagine secundară la hover + meta. */
.color-swatch .img-alt {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.45s var(--ease);
}
@media (hover: hover) {
  .color-card:hover .img-alt { opacity: 1; }
}
.model-meta { font-size: 0.78rem; color: var(--text-mute); margin-bottom: 0.55rem; font-variant-numeric: tabular-nums; }

/* Skeleton pentru imagini în curs de încărcare */
.img-skel { position: relative; }
.img-skel::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, #F3EFE6 40%, #FBF8F1 50%, #F3EFE6 60%);
  background-size: 200% 100%;
  animation: skelSweep 1.2s ease-in-out infinite;
}
.img-skel.loaded::before { display: none; }
@keyframes skelSweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* ====================== Căutare cu sugestii (combobox) ====================== */
.search-wrap { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 24px rgba(26,20,14,.08), 0 24px 60px rgba(26,20,14,.16);
  max-height: 420px; overflow-y: auto; padding: 0.4rem;
  display: none;
}
.search-suggest.open { display: block; }
.suggest-head {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute); padding: 0.55rem 0.7rem 0.25rem;
}
.suggest-row {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.45rem 0.7rem; border-radius: 8px; text-align: left;
  border-left: 2px solid transparent;
  font-size: 0.88rem; color: var(--text);
}
.suggest-row.hl { background: var(--cream-2, #FFF8E1); border-left-color: var(--orange); }
.suggest-row img { width: 44px; height: 28px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #F3EFE6; }
.suggest-row .s-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-row .s-sub { color: var(--text-mute); font-size: 0.74rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.suggest-empty { padding: 0.8rem; color: var(--text-mute); font-size: 0.85rem; font-style: italic; }

/* ========================== Shell modal (wizard) ========================== */
.fx-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.fx-modal.open { display: flex; }
.fx-backdrop { position: absolute; inset: 0; background: rgba(20,16,10,.55); }
.fx-box {
  position: relative; background: #fff; border-radius: var(--radius-lg, 18px);
  width: 100%; max-width: 760px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 8px 24px rgba(230,117,0,.10), 0 24px 60px rgba(26,20,14,.28);
}
.fx-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.fx-head h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.fx-close {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); transition: color 0.2s, background-color 0.2s;
}
.fx-close:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.fx-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.fx-body { padding: 1.2rem 1.5rem; overflow-y: auto; flex: 1; }
.fx-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.07); background: #FDFCF9;
}
@media (max-width: 720px) {
  .fx-modal { padding: 0; align-items: stretch; }
  .fx-box { max-width: none; max-height: none; height: 100%; border-radius: 0; }
}

/* ================================ Wizard ================================ */
.wiz-progress { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-mute); }
.wiz-dots { display: inline-flex; gap: 0.35rem; }
.wiz-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.12); transition: background-color 0.25s; }
.wiz-dot.done { background: var(--orange); }
.wiz-q { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; margin-bottom: 1.1rem; }
.wiz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.wiz-card {
  display: flex; flex-direction: column; text-align: left;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius-md, 12px);
  overflow: hidden; background: #fff;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wiz-card:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.wiz-card.active { border-color: var(--orange); box-shadow: 0 0 0 1.5px var(--orange) inset, 0 10px 30px rgba(255,136,0,0.10); }
.wiz-card:disabled { opacity: 0.4; cursor: not-allowed; }
.wiz-card-img { aspect-ratio: 16/8; background: #F3EFE6; overflow: hidden; }
.wiz-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wiz-card-body { padding: 0.8rem 0.9rem 0.9rem; }
.wiz-card-body strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.wiz-card-body span { font-size: 0.8rem; color: var(--text-soft); line-height: 1.45; display: block; }
.wiz-card-body .count { color: var(--text-mute); font-size: 0.74rem; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.wiz-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 50px;
  background: #fff; font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.wiz-chip:hover:not(:disabled) { border-color: var(--orange); }
.wiz-chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.wiz-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.wiz-chip .count { font-size: 0.74rem; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.wiz-chip.active .count { color: rgba(255,255,255,0.6); }
.wiz-chip .fam-dot { width: 16px; height: 16px; }
/* Thumbnail de stil pe chip — randare reală reprezentativă a stilului (16:9, fără decupaj) */
.wiz-style-thumb { width: 44px; height: 25px; flex-shrink: 0; border-radius: 6px; object-fit: cover; background: #d9d9d9; border: 1px solid rgba(0,0,0,0.12); }
.wiz-chip.active .wiz-style-thumb { border-color: rgba(255,255,255,.55); }
.wiz-hint { margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-mute); }
/* Wizard: pasul „Model” — tab-uri de stil + carduri compacte cu desenul frezării.
   Specificitate dublă (.wiz-cards.wiz-cards-models) ca să câștige peste stilul inline al paginii. */
.wiz-style-tabs { margin-bottom: 1rem; }
.wiz-cards.wiz-cards-models { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.65rem; }
.wiz-cards-models .wiz-card-body { padding: 0.55rem 0.7rem 0.65rem; gap: 0.1rem; }
.wiz-cards-models .wiz-card-body strong { font-size: 0.92rem; }
.wiz-cards-models .wiz-card-body .count { font-size: 0.76rem; }
.wiz-back, .wiz-skip { font-size: 0.85rem; color: var(--text-soft); padding: 0.5rem 0.7rem; border-radius: 8px; transition: color 0.2s; }
.wiz-back:hover, .wiz-skip:hover { color: var(--orange); }
.wiz-next {
  background: var(--orange); color: #fff; border-radius: 50px;
  padding: 0.75rem 1.6rem; font-size: 0.9rem; font-weight: 600;
  transition: background-color 0.25s, transform 0.2s, opacity 0.2s;
}
.wiz-next:hover { background: var(--orange-deep); transform: translateY(-1px); }
.wiz-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (max-width: 560px) {
  .wiz-cards { grid-template-columns: 1fr; }
}

/* Evidențiere scurtă a rândului de rezultate după wizard */
.flash-once { animation: flashCount 1.2s ease-out 1; border-radius: 8px; }
@keyframes flashCount {
  0% { background: rgba(255,136,0,0.22); }
  100% { background: transparent; }
}

/* ====================== Drawer filtre (mobil ≤980px) ====================== */
.filters-bar { display: none; }
@media (max-width: 980px) {
  .filters-bar {
    display: flex; gap: 0.8rem; align-items: center;
    max-width: 1400px; margin: 0 auto; padding: 1rem clamp(1.5rem, 6vw, 6rem) 0;
  }
  .filters-bar-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.3rem; border: 1px solid rgba(0,0,0,0.14); border-radius: 50px;
    background: #fff; font-size: 0.88rem; color: var(--text);
    transition: border-color 0.2s, color 0.2s;
  }
  .filters-bar-btn:hover { border-color: var(--orange); color: var(--orange); }
  .filters-bar-btn .bubble {
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50px;
    background: var(--orange); color: #fff; font-size: 0.7rem; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .filters-bar-btn .bubble:empty { display: none; }

  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1001;
    max-height: 85vh; margin: 0; padding: 0.6rem 1.3rem 0;
    background: #fff; border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(26,20,14,.25);
    transform: translateY(105%); visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s;
    display: flex; flex-direction: column;
  }
  .sidebar.open { transform: translateY(0); visibility: visible; }
  .sidebar::before {
    content: ''; width: 44px; height: 4px; border-radius: 4px;
    background: rgba(0,0,0,0.15); margin: 0.5rem auto 0.6rem; flex-shrink: 0;
  }
  .sidebar-scroll { overflow-y: auto; flex: 1; padding-bottom: 0.8rem; }
  .sidebar-foot {
    display: flex; gap: 0.8rem; padding: 0.8rem 0 1rem;
    border-top: 1px solid rgba(0,0,0,0.08); background: #fff; flex-shrink: 0;
  }
  .sidebar-foot .reset-btn { width: auto; flex: 1; margin-top: 0; }
  .sidebar-apply {
    flex: 1.4; background: var(--orange); color: #fff; border-radius: 50px;
    padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
    transition: background-color 0.25s;
  }
  .sidebar-apply:hover { background: var(--orange-deep); }
  .drawer-backdrop {
    position: fixed; inset: 0; z-index: 1000; background: rgba(20,16,10,.45);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .drawer-backdrop.open { opacity: 1; visibility: visible; }
}
@media (min-width: 981px) {
  .sidebar-foot { display: none; }
  .drawer-backdrop { display: none; }
}
body.drawer-open { overflow: hidden; }

/* Bannerul de consent (z-index 99999) ar acoperi footer-ul drawer-ului/wizard-ului
   pe mobil; îl ascundem cât e deschis un overlay (rămâne disponibil după închidere). */
body.drawer-open #otto-consent,
body.wiz-open #otto-consent { display: none !important; }

/* ====================== Pagina de model (explorator) ====================== */
/* Paginile de model nu au hero — breadcrumb-ul trebuie să coboare sub nav-ul fix.
   Specificitate dublă (.breadcrumb.mx-crumb) ca să bată regula inline `.breadcrumb` (padding shorthand). */
.breadcrumb.mx-crumb { padding-top: 7.5rem; margin-bottom: 1rem; }
@media (max-width: 900px) {
  .breadcrumb.mx-crumb { padding-top: 5.5rem; }
}
.mx-wrap {
  max-width: 1400px; margin: 0 auto 5rem; padding: 0 clamp(1.5rem, 6vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem;
  align-items: start;
}
.mx-preview { position: sticky; top: 150px; }
.mx-figure {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius-md, 12px); background: #F3EFE6;
  border: 1px solid rgba(0,0,0,0.06);
}
.mx-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-figure .mx-img-next { opacity: 0; transition: opacity 0.35s var(--ease); }
.mx-figure .mx-img-next.show { opacity: 1; }
.mx-variant-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-top: 1rem; line-height: 1.25; }
.mx-variant-code { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); margin-top: 0.3rem; }
.mx-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.mx-cta-primary {
  background: var(--orange); color: #fff; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(230,117,0,.7);
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.mx-cta-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.mx-cta-outline {
  border: 1px solid var(--orange); color: var(--orange); text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}
.mx-cta-outline:hover { background: var(--orange); color: #fff; }

.mx-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 300; line-height: 1.1; }
.mx-head .mx-sub { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.4rem; }
.mx-facts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.9rem; }

.mx-group { margin-top: 1.6rem; }
.mx-group-label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 0.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.mx-group-label .val { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 500; }
.mx-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mx-pill {
  padding: 0.55rem 1rem; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 50px;
  background: #fff; font-size: 0.85rem; color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.2s;
}
.mx-pill:hover:not(:disabled):not(.active) { border-color: var(--orange); }
.mx-pill.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.mx-pill:disabled { opacity: 0.35; cursor: not-allowed; }

.mx-nuance-tools { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.7rem; }
.mx-nuance-search { flex: 1; min-width: 170px; position: relative; }
.mx-nuance-search input {
  width: 100%; padding: 0.5rem 0.9rem; font-family: var(--sans); font-size: 16px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 50px; background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.mx-nuance-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 4px 16px rgba(255,136,0,0.10); }
.mx-swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.55rem;
  max-height: 420px; overflow-y: auto; padding: 2px;
}
.mx-swatch { text-align: center; display: block; }
.mx-swatch-img {
  display: block; position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #F3EFE6;
  transition: border-color 0.2s, transform 0.2s;
}
.mx-swatch:hover .mx-swatch-img { transform: translateY(-2px); }
.mx-swatch.active .mx-swatch-img { border-color: var(--orange); box-shadow: 0 0 0 1.5px var(--orange); }
.mx-swatch-img img { width: 100%; height: 100%; object-fit: cover; }
.mx-swatch-name {
  display: block; font-size: 0.62rem; line-height: 1.25; color: var(--text-soft); margin-top: 0.3rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 1.55em;
}
.mx-swatch.active .mx-swatch-name { color: var(--text); font-weight: 600; }
.mx-status { min-height: 1.2em; font-size: 0.78rem; color: var(--orange-deep); margin-top: 0.5rem; font-style: italic; }

.mx-static { max-width: 1400px; margin: 0 auto 4rem; padding: 0 clamp(1.5rem, 6vw, 6rem); }
.mx-static h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.mx-static-group { border-bottom: 1px solid rgba(0,0,0,0.07); padding: 0.55rem 0; }
.mx-static-group summary { cursor: pointer; font-size: 0.9rem; color: var(--text-soft); }
.mx-static-group summary span { color: var(--text-mute); font-size: 0.78rem; }
.mx-static-group ul { list-style: none; padding: 0.5rem 0 0.3rem 1rem; }
.mx-static-group li { margin-bottom: 0.3rem; }
.mx-static-group a { font-size: 0.82rem; color: var(--text-soft); text-decoration: none; }
.mx-static-group a:hover { color: var(--orange); }
.mx-back { max-width: 1400px; margin: 0 auto; padding: 1.4rem clamp(1.5rem, 6vw, 6rem) 0.4rem; }

/* Secțiunea „Alte modele de frezare” (cross-linking SEO + descoperire) */
.mx-related { max-width: 1400px; margin: 0 auto 4rem; padding: 0 clamp(1.5rem, 6vw, 6rem); }
.mx-related h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.mx-related-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mx-related-list li { margin: 0; }
.mx-related-list a {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  padding: 0.5rem 1rem; border: 1px solid rgba(0,0,0,0.12); border-radius: 50px;
  text-decoration: none; color: var(--text); font-size: 0.88rem;
  transition: border-color 0.2s, color 0.2s;
}
.mx-related-list a:hover { border-color: var(--orange); color: var(--orange); }
.mx-related-list a span { color: var(--text-mute); font-size: 0.76rem; }

/* Lista noscript din hub (vizibilă doar fără JS — fallback crawlable) */
.models-noscript { list-style: none; padding: 1rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.models-noscript a { color: var(--text-soft); text-decoration: none; }
.models-noscript a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .mx-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .mx-preview { position: relative; top: 0; }
  .mx-swatches { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); max-height: 340px; }
}

/* Lista pe telefon: prefix `body ` ca specificitatea (0,1,1) sa bata regulile
   inline `.color-grid`/`.color-card` (0,1,0) din pagina (link-ul fronturi.css e
   inaintea stilului inline). Acopera hub-ul + cele 110 pagini model fara regen. */
@media (max-width: 560px) {
  body .color-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  body .color-card { display: flex; flex-direction: row; align-items: stretch; }
  body .color-swatch { flex: 0 0 86px; width: 86px; aspect-ratio: 1; }
  body .color-info { flex: 1; min-width: 0; padding: 0.55rem 0.8rem; display: flex; flex-direction: column; justify-content: center; }
  body .color-name { font-size: 0.92rem; min-height: 0; margin-bottom: 0.15rem; }
  body .color-code { font-size: 0.78rem; }

  /* Touch-targets + lizibilitate pe telefon (browse + paginile model).
     `.controls`/`.search-wrap` sunt definite inline in pagina (incarcata dupa
     acest fisier), deci prefix `body` ca sa bata inline-ul. */
  body .fam-chip { min-height: 42px; padding-top: 0.55rem; padding-bottom: 0.55rem; }
  body .view-toggle button { min-height: 40px; }
  body .mx-pill { padding: 0.7rem 1.1rem; min-height: 44px; display: inline-flex; align-items: center; }
  .mx-swatch-name { font-size: 0.74rem; line-height: 1.3; }
  .mx-swatches { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
  .mx-group-label { font-size: 0.78rem; letter-spacing: 0.1em; }
  body .controls { flex-direction: column; align-items: stretch; }
  body .search-wrap { min-width: 0; }
}

/* =========================== Reduced motion =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .color-card, .wizard-banner-btn, .wiz-card, .wiz-next,
  .mx-cta-primary, .mx-swatch-img, .fam-chip { transition: none; }
  .color-card:hover { transform: none; }
  .color-swatch img { transition: none; }
  .color-card:hover .color-swatch img { transform: none; }
  .color-swatch .img-alt { transition: none; }
  @media (hover: hover) { .color-card:hover .img-alt { opacity: 0; } }
  .img-skel::before { animation: none; }
  .flash-once { animation: none; }
  .sidebar { transition: none; }
  .mx-figure .mx-img-next { transition: none; }
}
