/* 1001MD unified search: catalog products + news feed */
.lt-search-live {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(520px, calc(100vh - 150px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line, #e4e3df);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 21, 33, .16);
}
.lt-search-live[hidden] { display: none !important; }
.lt-ph-search-suggestions[hidden] { display: none !important; }
.lt-search-live-status { padding: 18px 14px; color: #70727c; font-size: 13px; }
.lt-search-suggest-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink, #141521);
  text-decoration: none;
}
.lt-search-suggest-item:hover,
.lt-search-suggest-item:focus-visible { background: var(--paper, #f7f6f2); outline: none; }
.lt-search-suggest-image {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f0ec;
  color: #92949c;
  font-size: 10px;
}
.lt-search-suggest-image img { width: 100%; height: 100%; object-fit: cover; }
.lt-search-suggest-copy { min-width: 0; }
.lt-search-suggest-name { display: block; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.lt-search-suggest-type { display: block; margin-top: 3px; color: #858791; font-size: 12px; }
.lt-search-suggest-all {
  display: block;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #f0f0f2;
  color: var(--ink, #141521);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.lt-ph-mobile-search-form { position: relative; }
.lt-ph-mobile-search-form .lt-search-live { top: calc(100% + 4px); }

.lt-search-page { width: min(1400px, calc(100% - 40px)); margin: 0 auto; padding: 10px 0 80px; color: var(--ink, #141521); }
.lt-search-page-form { margin-bottom: 34px; }
.lt-search-page-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.lt-search-page-field { display: grid; grid-template-columns: minmax(0, 1fr) 52px; min-height: 52px; border: 1px solid var(--line, #e4e3df); border-radius: 12px; overflow: hidden; background: #fff; }
.lt-search-page-field:focus-within { border-color: var(--motion-blue, #3155e7); box-shadow: 0 0 0 3px rgba(49, 85, 231, .12); }
.lt-search-page-field input { min-width: 0; padding: 0 16px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
.lt-search-page-field button { border: 0; background: var(--ink, #141521); color: #fff; cursor: pointer; font-size: 24px; }
.lt-search-summary { margin-bottom: 32px; color: #747680; font-size: 14px; }
.lt-search-section + .lt-search-section { margin-top: 56px; }
.lt-search-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.lt-search-section-head h2 { margin: 0; font: 700 32px/1.1 Georgia, serif; }
.lt-search-section-head span { color: #7d7f88; font-size: 13px; }
.lt-search-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.lt-search-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line, #e4e3df); border-radius: 12px; background: #fff; }
.lt-search-product-media { display: grid; aspect-ratio: 4 / 5; place-items: center; overflow: hidden; background: #f3f2ee; color: #8b8d95; text-decoration: none; }
.lt-search-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .16s ease; }
.lt-search-product-card:hover .lt-search-product-media img { transform: scale(1.015); }
.lt-search-product-body { padding: 16px; }
.lt-search-product-article { margin-bottom: 7px; color: #888a93; font-size: 11px; }
.lt-search-product-card h3 { margin: 0; font: 700 20px/1.18 Georgia, serif; }
.lt-search-product-card h3 a { color: inherit; text-decoration: none; }
.lt-search-product-price { margin-top: 14px; font-size: 21px; font-weight: 800; }
.lt-search-product-price--request { font-size: 14px; font-weight: 650; }
.lt-search-product-specs { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 14px 0 0; padding: 0; list-style: none; color: #6f717b; font-size: 12px; }
.lt-search-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lt-search-news-card { overflow: hidden; border: 1px solid var(--line, #e4e3df); border-radius: 12px; background: #fff; }
.lt-search-news-media { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; background: var(--paper, #f7f6f2); color: #777983; text-decoration: none; }
.lt-search-news-media img { width: 100%; height: 100%; object-fit: cover; }
.lt-search-news-body { padding: 16px; }
.lt-search-news-type { margin-bottom: 7px; color: var(--house-blue, #163074); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.lt-search-news-card h3 { margin: 0; font: 700 21px/1.2 Georgia, serif; }
.lt-search-news-card h3 a { color: inherit; text-decoration: none; }
.lt-search-news-card p { margin: 10px 0 0; color: #696b74; font-size: 13px; line-height: 1.45; }
.lt-search-empty { padding: 32px; border-radius: 12px; background: var(--paper, #f7f6f2); color: #666872; }
.lt-search-pager { margin-top: 40px; }
@media (min-width: 1760px) { .lt-search-page { width: min(1760px, calc(100% - 64px)); } .lt-search-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .lt-search-news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 2200px) { .lt-search-page { width: min(2240px, calc(100% - 80px)); } .lt-search-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .lt-search-news-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 3200px) { .lt-search-page { width: min(2880px, calc(100% - 96px)); } .lt-search-product-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } .lt-search-news-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .lt-search-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .lt-search-page { width: min(100% - 24px, 680px); padding-bottom: 48px; } .lt-search-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } .lt-search-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .lt-search-section-head h2 { font-size: 27px; } }
@media (max-width: 460px) { .lt-search-page-field { grid-template-columns: minmax(0, 1fr) 46px; } .lt-search-page-field input { padding: 0 12px; font-size: 14px; } .lt-search-product-body { padding: 12px; } .lt-search-product-card h3 { font-size: 16px; } .lt-search-product-price { font-size: 17px; } .lt-search-product-specs { display: none; } .lt-search-news-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lt-search-product-media img { transition: none; } }

/* Search news reuse the feed-card contract.  The information shown here is
   deliberately limited to the data returned by Bitrix search: media, title,
   publication date and preview. */
.lt-search-news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lt-search-news-card.post-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line, rgba(20,21,33,.16)); border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.72); transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease; }
.lt-search-news-card.post-card:hover { transform: translateY(-2px); border-color: rgba(20,21,33,.32); box-shadow: 0 18px 46px rgba(20,21,33,.1); }
.lt-search-news-card .post-card__media-link { display: block; color: inherit; text-decoration: none; }
.lt-search-news-card .post-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #edf6ff; }
.lt-search-news-card .post-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 620ms ease, filter 220ms ease; }
.lt-search-news-card:hover .post-card__image { transform: scale(1.02); filter: contrast(1.02) saturate(1.02); }
.lt-search-news-empty-media { display: grid; width: 100%; height: 100%; place-items: center; color: #676979; font-size: 13px; font-weight: 700; }
.lt-search-news-card .post-card__type { position: absolute; z-index: 2; top: 10px; left: 10px; min-height: 23px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid rgba(67,138,91,.28); border-radius: 999px; color: #438a5b; background: rgba(238,246,239,.92); font-size: 8.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lt-search-news-card .post-card__date-badge { position: absolute; z-index: 2; top: 12px; right: 12px; min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(20,21,33,.72); background: rgba(255,255,255,.8); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.lt-search-news-card .post-card__frames { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 5px; height: 3px; }
.lt-search-news-card .post-card__frame-dot { display: block; flex: 1; height: 3px; border-radius: 999px; background: #fff; }
.lt-search-news-card .post-card__body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 17px 16px 18px; }
.lt-search-news-card .post-card__stores { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.lt-search-news-card .post-card__store { display: inline-flex; align-items: center; min-height: 20px; max-width: 100%; padding: 0 7px; overflow: hidden; border: 1px solid rgba(49,95,147,.2); border-radius: 999px; color: #546278; background: linear-gradient(135deg,rgba(255,255,255,.96),rgba(237,246,255,.72)); font-size: 9px; font-weight: 900; letter-spacing: .05em; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lt-search-news-card .post-card__title { margin: 0; color: var(--ink, #141521); font-family: Literata, Georgia, "Times New Roman", serif; font-size: clamp(22px, 1.7vw, 30px); font-weight: 400; line-height: .98; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lt-search-news-card .post-card__title a { color: inherit; text-decoration: none; }
.lt-search-news-card .post-card__text { margin: 13px 0 0; color: var(--muted, #676979); font-size: 13px; font-weight: 600; line-height: 1.48; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
@media (max-width: 1100px) { .lt-search-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .lt-search-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .lt-search-news-grid { grid-template-columns: minmax(0, 1fr); } .lt-search-news-card .post-card__title { font-size: 25px; } }

/* Mobile production header search. Keep this adapter here because the unified
   search bundle is loaded by both desktop and mobile headers. */
@media (max-width: 767px) {
  /* The legacy mobile theme declares every form as a grid.  On the search
     page that turns the label and field into separate columns and leaves only
     the submit button visible. */
  body.lt-route-search .search-page form.lt-search-page-form,
  .lt-search-page-form {
    display: block !important;
    grid-template-columns: none !important;
  }

  .lt-search-page-label,
  .lt-search-page-field {
    width: 100%;
  }

  /* When the legacy header search is closed its animated input sits outside
     the 48px icon wrapper.  Clip only the closed state, while keeping the
     opened search and its suggestions fully usable. */
  #mobileheader .header-search:not(.opened) {
    overflow: hidden;
  }

  .lt-production-header .lt-ph-mobile-search {
    display: none;
    width: 100%;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--line, #e4e3df);
    background: #fff;
  }

  .lt-production-header .lt-ph-mobile-search.is-open {
    display: block;
  }

  .lt-production-header .lt-ph-mobile-search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: 100%;
    max-width: 680px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line, #e4e3df);
    border-radius: 12px;
    background: #fff;
  }

  .lt-production-header .lt-ph-mobile-search-form:focus-within {
    border-color: var(--motion-blue, #3155e7);
    box-shadow: 0 0 0 3px rgba(49, 85, 231, .12);
  }

  .lt-production-header .lt-ph-mobile-search-form input {
    display: block;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 11px 0 0 11px !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--ink, #141521) !important;
    font-size: 14px !important;
    line-height: 48px !important;
    box-shadow: none !important;
    appearance: none;
  }

  .lt-production-header .lt-ph-mobile-search-form button {
    position: static !important;
    display: inline-flex !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid var(--line, #e4e3df) !important;
    border-radius: 0 11px 11px 0 !important;
    background: #fff !important;
    color: var(--ink, #141521) !important;
    box-shadow: none !important;
  }

  .lt-production-header .lt-ph-mobile-search-form button .lt-ph-icon {
    width: 20px;
    height: 20px;
  }
}

/* Two compact, readable columns on narrow mobile for both result types. */
@media (max-width: 460px) {
  .lt-search-page {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .lt-search-page-form {
    margin-bottom: 24px;
  }

  .lt-search-summary {
    margin-bottom: 24px;
  }

  .lt-search-section + .lt-search-section {
    margin-top: 42px;
  }

  .lt-search-product-grid,
  .lt-search-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .lt-search-product-card,
  .lt-search-news-card.post-card {
    border-radius: 12px;
  }

  .lt-search-product-body,
  .lt-search-news-card .post-card__body {
    padding: 11px 10px 12px;
  }

  .lt-search-product-card h3,
  .lt-search-news-card .post-card__title {
    font-size: 15px;
    line-height: 1.14;
  }

  .lt-search-product-price {
    margin-top: 10px;
    font-size: 15px;
  }

  .lt-search-news-card .post-card__text,
  .lt-search-news-card .post-card__stores {
    display: none;
  }

  .lt-search-news-card .post-card__type {
    top: 8px;
    left: 8px;
  }

  .lt-search-news-card .post-card__date-badge {
    top: 8px;
    right: 8px;
  }
}
