/* 3.267 Плитки в выпадающем меню каталога (common/header.twig, метка 3.267). Подключается в <head> шапки. */
.drop-menu-item.lfm-item.active { display: block; }
/* 13.10 (владелец): из меню убран блок «Нужна консультация» с Max и Telegram; низ меню — отступ и мягкая тень,
   чтобы край не резал страницу под меню */
.drop-panel .needcons { display: none; }
.drop-panel .drop-panel-right .category-card--small { margin-bottom: 0; }
.drop-panel { padding-bottom: 32px; border-radius: 0 0 24px 24px; box-shadow: 0 28px 36px -18px rgba(0, 0, 0, .18); }
/* 3.282 (владелец, 13.10): белая панель шире плиток на 24 px с каждой стороны — плитки остаются на месте, у края меню
   появляется поле, как снизу; лёгкая тень по бокам отделяет меню от карточек страницы под ним */
.drop-panel { left: 6px; width: calc(100% - 12px); padding-left: 24px; padding-right: 24px;
  box-shadow: 0 28px 36px -18px rgba(0, 0, 0, .18), 0 10px 24px -6px rgba(0, 0, 0, .08); }
/* баннер «Все новинки» — на всю высоту меню, без пустоты под ним (владелец, 13.10) */
.drop-panel .drop-panel-row { align-items: stretch; }
.drop-panel .drop-panel-left { align-self: flex-start; }
.drop-panel .drop-panel-right { display: flex; flex-direction: column; }
.drop-panel .drop-panel-right .category-card--small { flex: 1 1 auto; height: auto; min-height: 300px; }
.drop-panel .drop-panel-right .category-bg-table { background-size: cover; background-position: left bottom; }
.drop-panel .drop-panel-right .category-title-sm { top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); margin: 0; }
/* 3.269 свои баннеры разделов (image/catalog/blocks/menu/): фото по центру; у старого allnew.jpg вырез нарисован в картинке —
   ему остаётся «left bottom». Лёгкое затемнение снизу и надпись по центру — белый текст читается на любом фото */
.drop-panel .drop-panel-right .category-bg-table[style*="blocks/menu/"] { background-position: center; }
.drop-panel .drop-panel-right .category-card::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .30) 55%, rgba(0, 0, 0, .45) 100%); pointer-events: none; }
.drop-panel .drop-panel-right .category-title-sm { left: 0; right: 0; text-align: center; white-space: nowrap; }
.lfm-panel { min-width: 0; }
.lfm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lfm-panel .lfm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.lfm-tile { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; border-radius: 16px; background: #F5F5F5; color: #000; text-decoration: none; transition: background-color .2s; }
a.lfm-tile:hover { background: #EBEBEB; color: #000; text-decoration: none; }
.lfm-img { display: flex; align-items: center; justify-content: center; height: 96px; margin-bottom: 8px; }
.lfm-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.lfm-text { display: flex; flex-direction: column; min-width: 0; }
.lfm-name { font-size: 15px; font-weight: 500; line-height: 1.3; -webkit-hyphens: auto; hyphens: auto; }
.lfm-cnt { margin-top: 3px; font-size: 13px; line-height: 1.4; color: #8A8A8A; }
a.lfm-tile--dark { justify-content: space-between; background: #353535; color: #fff; }
a.lfm-tile--dark:hover { background: #000; color: #fff; }
.lfm-tile--dark .lfm-cnt { color: #CFCFCF; }
.lfm-arrow { align-self: flex-end; margin-top: 8px; font-size: 30px; line-height: 1; }
.lfm-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lfm-links a { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 100px; background: #F1F1F1; color: #000; font-size: 15px; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.lfm-links a:hover { background: #E2E2E2; color: #000; text-decoration: none; }
/* 3.283 (владелец, 13.10): «В наличии — доставка от 1 дня» в цвет остальных кнопок — розовый фон #FFCFCC убран */
/* ноутбук 1200–1399 px: середина меню ~400 px — плитки плотнее, кнопка «в наличии» короче */
@media (max-width: 1399px) {
  .lfm-grid { gap: 10px; }
  a.lfm-tile { padding: 10px 10px 12px; }
  .lfm-img { height: 84px; }
  .lfm-name { font-size: 14px; }
  .lfm-cnt { font-size: 12px; }
  .lfm-links a { padding: 8px 14px; font-size: 14px; }
  .lfm-long { display: none; }
}
/* узкий компьютер (993–1199 px): плитки строкой, картинка слева */
@media (max-width: 1199px) {
  .lfm-grid, .lfm-panel .lfm-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
  a.lfm-tile { flex-direction: row; align-items: center; padding: 8px 12px 8px 8px; border-radius: 12px; }
  .lfm-img { flex: 0 0 48px; width: 48px; height: 48px; margin: 0 10px 0 0; }
  a.lfm-tile--dark { justify-content: flex-start; padding: 10px 14px; min-height: 64px; }
  .lfm-arrow { display: none; }
}
