/* mfpfoto — камера в строке поиска */
.mfvis-cam.mfpf-cam { width: auto !important; max-width: none !important; overflow: visible !important; top: 50% !important; transform: translateY(-50%) !important; display: inline-flex !important; align-items: center; gap: 6px; height: 36px; min-width: 36px;
  padding: 0 8px !important; border-radius: 18px !important; color: var(--theme-base-color, #e5303d) !important; background: transparent; transition: background .15s, color .15s; }
.mfvis-cam.mfpf-cam:hover { background: color-mix(in srgb, var(--theme-base-color, #e5303d) 9%, #fff) !important; }
.mfvis-cam.mfpf-cam svg { width: 22px; height: 22px; flex: none; }
.mfpf-cam__t { display: none; font-size: 14px; font-weight: 600; white-space: nowrap; line-height: 1; }
@media (min-width: 1200px) {
  .mfvis-cam.mfpf-cam { background: color-mix(in srgb, var(--theme-base-color, #e5303d) 8%, #fff); padding: 0 12px 0 10px !important; }
  .mfpf-cam__t { display: inline; }
}
.mfpf-pulse { animation: mfpfPulse 2s ease-out 3; }
@keyframes mfpfPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-base-color, #e5303d) 45%, transparent); }
  70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--theme-base-color, #e5303d) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.mfpf-pulse svg { animation: mfpfWig 2s ease-in-out 3; transform-origin: 50% 60%; }
@keyframes mfpfWig { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg) scale(1.1); } 80% { transform: rotate(10deg) scale(1.1); } 90% { transform: rotate(-4deg); } }
.mfpf-hint { position: absolute; z-index: 3000; width: 280px; padding: 12px 14px; border-radius: 14px; background: #1f2329; color: #fff; font-size: 13px; line-height: 1.4;
  box-shadow: 0 12px 32px rgba(15,18,24,.25); cursor: pointer; animation: mfpfIn .25s ease; transition: opacity .25s; }
.mfpf-hint b { display: block; font-size: 14px; margin-bottom: 2px; }
.mfpf-hint::before { content: ''; position: absolute; top: -6px; left: 134px; width: 12px; height: 12px; background: #1f2329; transform: rotate(45deg); }
.mfpf-hint.out { opacity: 0; }
@keyframes mfpfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* блок «Поиск по фото» в каталоге */
.mfpf-row { display: flex; gap: 14px; align-items: stretch; margin: 0 0 14px; }
.mfpf-row > .mfwk-strip, .mfpf-row > .mfpf-wk { margin: 0 !important; flex: 1 1 0; max-width: none; min-width: 0; }
.mfpf-card { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px; box-sizing: border-box; border: 1.5px dashed color-mix(in srgb, var(--theme-base-color, #e5303d) 45%, #fff);
  border-radius: 16px; background: color-mix(in srgb, var(--theme-base-color, #e5303d) 4%, #fff); cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, transform .15s; }
.mfpf-card--solo { margin: 0 0 14px; max-width: 760px; }
.mfpf-card:hover, .mfpf-card.is-drag { border-color: var(--theme-base-color, #e5303d); }
.mfpf-card.is-over { background: color-mix(in srgb, var(--theme-base-color, #e5303d) 10%, #fff); transform: scale(1.01); }
.mfpf-card__ico { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--theme-base-color, #e5303d); color: #fff; }
.mfpf-card__ico svg { width: 26px; height: 26px; }
.mfpf-card__ico::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--theme-base-color, #e5303d); opacity: 0; animation: mfpfRing 2.6s ease-out infinite; }
@keyframes mfpfRing { 0% { transform: scale(.85); opacity: .6; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
.mfpf-card__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mfpf-card__txt b { font-size: 17px; font-weight: 700; color: #1f2329; }
.mfpf-card__txt span { font-size: 14px; line-height: 1.4; color: #5b6370; }
.mfpf-card__btns { flex: none; display: flex; gap: 8px; }
.mfpf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--theme-base-color, #e5303d);
  color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mfpf-btn svg { width: 18px; height: 18px; }
.mfpf-btn--ghost { background: #fff; color: #1f2329; border: 1.5px solid #dcdfe4; }
.mfpf-m { display: none !important; }
@media (prefers-reduced-motion: reduce) { .mfpf-pulse, .mfpf-pulse svg, .mfpf-card__ico::after { animation: none !important; } }
@media (max-width: 1199px) { .mfpf-row { flex-direction: column; } .mfpf-row > .mfwk-strip, .mfpf-row > .mfpf-wk { flex: none; max-width: none; width: 100%; } }
@media (max-width: 767px) {
  .mfpf-d { display: none !important; }
  .mfpf-m { display: inline-flex !important; }
  span.mfpf-m { display: block !important; }
  .mfpf-card { flex-wrap: wrap; gap: 10px 12px; padding: 12px; }
  .mfpf-card__ico { width: 46px; height: 46px; }
  .mfpf-card__ico svg { width: 22px; height: 22px; }
  .mfpf-card__txt { flex: 1 1 calc(100% - 70px); }
  .mfpf-card__txt b { font-size: 16px; }
  .mfpf-card__txt span { font-size: 13px; }
  .mfpf-card__btns { flex: 1 1 100%; }
  .mfpf-card__btns .mfpf-btn { flex: 1 1 0; }
  .mfpf-card--solo { max-width: none; }
}

/* карусель новинок вместо одной полосы «Обои недели» */
.mfpf-wk { position: relative; overflow: hidden; background: #f7f5f2; border-radius: 16px; margin: 0 0 14px; max-width: 520px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mfpf-wk-track { display: flex; transition: transform .35s ease; will-change: transform; }
.mfpf-wk .mfpf-wk-s { flex: 0 0 100%; max-width: none !important; margin: 0 !important; background: transparent !important; padding: 10px 96px 10px 10px !important; border-radius: 0; }
.mfpf-wk-s img { pointer-events: none; }
.mfpf-wk-nav { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.mfpf-wk-nav button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1f2329;
  box-shadow: 0 1px 4px rgba(15,18,24,.12); cursor: pointer; }
.mfpf-wk-nav button:hover { color: var(--theme-base-color, #e5303d); }
.mfpf-wk-nav span { min-width: 34px; text-align: center; font-size: 12px; color: #5b6370; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .mfpf-wk { max-width: none; } }
@media (max-width: 767px) { .mfpf-wk .mfpf-wk-s { padding-right: 10px !important; padding-bottom: 34px !important; } .mfpf-wk-nav { top: auto; bottom: 6px; transform: none; } }

.mfpf-wk-p { font-style: normal; font-weight: 700; color: #1f2329; }

/* телефон: камера в шапке рядом с лупой */
.mfpf-mh { display: flex; align-items: center; }
.mfpf-mhb { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--theme-base-color, #e5303d) 10%, #fff); color: var(--theme-base-color, #e5303d); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mfpf-mhb svg { width: 21px; height: 21px; }
