/* mftheme — «Популярные темы» на главной; оформление в одном ключе с «Примерочной» и «Обоями недели» */
.mfth { --r: #e5303d; --rd: #c4202c; --ink: #1f2329; --mut: #5b6370; --line: #d6d0c7; --bg: #f7f5f2;
  margin: 0 0 48px; font-family: inherit; color: var(--ink); box-sizing: border-box; }
.mfth *, .mfth *:before, .mfth *:after { box-sizing: border-box; }
.mfth button { font: inherit; color: inherit; cursor: pointer; }
.mfth-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.mfth-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--r); margin-bottom: 8px; }
.mfth-h { margin: 0 !important; padding: 0; font-size: 34px !important; line-height: 1.12 !important; font-weight: 800 !important; letter-spacing: -.01em; color: var(--ink); }
.mfth-all { flex: none; font-size: 15px; font-weight: 600; color: var(--rd) !important; text-decoration: none !important; padding: 10px 0; }
.mfth-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.mfth-t { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mfth-t.mfth-x { display: none; }
.mfth.open .mfth-t.mfth-x { display: flex; }
.mfth-box { position: relative; border-radius: 16px; overflow: hidden; background: #e4ded5; box-shadow: 0 10px 28px rgba(40,30,20,.12); aspect-ratio: 4 / 3; }
.mfth-sl { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.mfth-sl::-webkit-scrollbar { display: none; }
.mfth-s { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; text-decoration: none !important; }
.mfth-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfth-s span { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: rgba(255,255,255,.95); color: var(--ink); border-radius: 8px; padding: 6px 9px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfth-fv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.96); color: var(--ink); border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.16); opacity: 0; pointer-events: none; transition: opacity .15s; }
@media (hover: hover) and (min-width: 768px) { .mfth-box:hover .mfth-fv { opacity: 1; pointer-events: auto; } .mfth-fv:hover { color: var(--r); } }
.mfth-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; padding: 0; }
.mfth-prev { left: 10px; } .mfth-next { right: 10px; }
.mfth-box:hover .mfth-nav, .mfth-nav:focus-visible { opacity: 1; }
.mfth-nav:hover { color: var(--r); }
.mfth-nav[disabled] { opacity: 0 !important; pointer-events: none; }
.mfth-dots { position: absolute; right: 12px; top: 14px; display: flex; gap: 5px; pointer-events: none; }
.mfth-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.65); box-shadow: 0 0 2px rgba(0,0,0,.25); transition: width .2s; }
.mfth-dots i.on { width: 16px; background: #fff; }
.mfth-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-decoration: none !important; color: var(--ink) !important; }
.mfth-cap b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfth-cap small { flex: none; font-size: 13px; color: var(--mut); }
.mfth-cap:hover b { color: var(--rd); }
.mfth-morewrap { display: flex; justify-content: center; margin-top: 26px; }
.mfth-more { min-height: 50px; padding: 0 28px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; }
.mfth-more:hover { border-color: var(--ink); }
.mfth-sale { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; margin-top: 24px; padding: 10px 24px; border-radius: 16px; background: var(--bg); text-decoration: none !important; color: var(--ink) !important; }
.mfth-sale span { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; }
.mfth-sale b { flex: none; font-size: 13px; font-weight: 800; color: #fff; background: var(--r); border-radius: 8px; padding: 6px 10px; }
.mfth-sale em { flex: none; font-style: normal; font-size: 15px; font-weight: 600; color: var(--rd); }
@media (hover: none) { .mfth-nav { display: none; } }
@media (max-width: 991px) { .mfth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .mfth { margin-bottom: 32px; }
  .mfth-head { margin-bottom: 14px; }
  .mfth-h { font-size: 24px !important; line-height: 1.2 !important; }
  .mfth-eyebrow { font-size: 12px; }
  .mfth-all { font-size: 14px; }
  .mfth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .mfth-box { border-radius: 12px; }
  .mfth-s span, .mfth-fv { display: none; }
  .mfth-dots { left: 0; right: 0; top: auto; bottom: 8px; justify-content: center; }
  .mfth-cap { flex-direction: column; gap: 2px; }
  .mfth-cap b { font-size: 14px; } .mfth-cap small { font-size: 12px; }
  .mfth-more { width: 100%; }
  .mfth-sale { padding: 12px 14px; } .mfth-sale span { font-size: 14px; gap: 10px; } .mfth-sale em { display: none; }
}
