/* lamgran 06.10.2026 (dev-loft): режим витрины шоурума */
/* корзины и оформления заказа на сайте нет */
#cart, .btn-cart, #button-cart, .quantity-box, label[for="input-quantity"],
.top-links a[href*="checkout"], a[href*="route=checkout/"] { display: none !important; }

.lg-badge {
    position: absolute; left: 10px; top: 10px; z-index: 3;
    background: #e8461e; color: #fff; font-size: 12px; line-height: 1.2; font-weight: 600;
    padding: 5px 9px; border-radius: 3px; letter-spacing: .2px; pointer-events: none;
}
.product-thumb .image { position: relative; }
.lg-stand { display: inline-block; margin: 0 0 12px 8px; color: #6b6b6b; font-size: 14px; }
.lg-badge--product { position: static; display: inline-block; margin: 0 0 12px; pointer-events: auto; }

/* название товара в списках - полностью, не больше 3 строк */
.product-thumb .product-name a {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-transform: none;
}

/* этап 2: единица цены и упаковка */
.lg-unit { font-size: .7em; font-weight: 400; color: #666; white-space: nowrap; }
.price-product .lg-unit { font-size: 16px; }
.lg-pack { color: #555; font-size: 14px; margin-top: 6px; }
.lg-pack b { color: #222; font-weight: 600; }

.lg-btn, .lg-actions .btn {
    background: #e8461e; color: #fff !important; border: 0; border-radius: 3px;
    padding: 12px 20px; font-weight: 600; text-transform: none; line-height: 1.3;
}
.lg-btn:hover, .lg-btn:focus { background: #c93a16; color: #fff; }
.lg-btn--ghost { background: transparent; color: #222 !important; border: 1px solid #222; }
.lg-btn--ghost:hover { background: #222; color: #fff !important; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }

.lg-head-callback {
    display: inline-flex; align-items: center; gap: 6px; color: #fff !important; cursor: pointer;
    border: 1px solid #e8461e; border-radius: 3px; padding: 8px 12px; font-size: 13px; line-height: 1.2; white-space: nowrap;
}
.lg-head-callback:hover { background: #e8461e; text-decoration: none; }
.top-links .lg-top-phone { color: #fff; font-weight: 600; }

.lg-modal { z-index: 30020 !important; } /* затемнение у темы на слое 30009 */
.lg-modal .modal-title { font-weight: 700; }
.lg-modal .modal-body p { margin-bottom: 10px; }
.lg-modal__product { font-weight: 600; }
.lg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lg-err { display: block; color: #d0021b; font-size: 12px; margin-top: 4px; }
.lg-ok { font-size: 16px; color: #2e7d32; margin: 10px 0; }

@media (max-width: 767px) {
    .lg-head-callback span { display: none !important; }
    .lg-head-callback { padding: 8px 10px; }
    .lg-actions .btn { width: 100%; }
}

/* dev-loft 11.10.2026: карта на странице контактов; старые карта и видео на главной не шире экрана телефона */
.lg-contact-map { margin: 0 0 30px; border-radius: 10px; overflow: hidden; border: 1px solid #e5e5e5; }
.lg-contact-map iframe { display: block; width: 100%; }
#information-contact address a { color: #e8461e; text-decoration: underline; }
#content iframe, #content video { max-width: 100%; }
#content video { height: auto; }

/* dev-loft 11.10.2026: «Уточнить» в поиске */
.lg-facets { margin: 0 0 24px; padding: 16px 18px; border: 1px solid #eadfd6; border-radius: 10px; background: #fbf4ee; }
.lg-facets__head { display: flex; gap: 16px; align-items: baseline; margin-bottom: 10px; font-size: 16px; }
.lg-facets__clear { color: #e8461e; text-decoration: underline; font-size: 14px; }
.lg-facets__row { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid #eee2d8; }
.lg-facets__name { flex: 0 0 150px; padding-top: 6px; font-size: 13px; font-weight: 600; color: #77706a; text-transform: uppercase; letter-spacing: .03em; }
.lg-facets__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-facets__chips.is-long .lg-chip:nth-child(n+13):not(.lg-chip--more) { display: none; }
.lg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid #e3d5ca; border-radius: 20px; background: #fff; color: #23201d; font-size: 14px; line-height: 1.3; cursor: pointer; }
.lg-chip i { font-style: normal; color: #9a918a; font-size: 12px; }
.lg-chip:hover { border-color: #e8461e; color: #23201d; }
.lg-chip.is-on { background: #e8461e; border-color: #e8461e; color: #fff; }
.lg-chip.is-on i { color: #ffe0d4; }
.lg-chip.is-on::after { content: "\00d7"; margin-left: 2px; }
.lg-chip--more { color: #e8461e; }
@media (max-width: 767px) { .lg-facets__row { flex-direction: column; gap: 6px; } .lg-facets__name { flex: none; padding: 0; } }

/* телефон: «Уточнить» сворачивается */
.lg-facets__toggle { display: none; }
@media (max-width: 767px) {
  .lg-facets__toggle { display: inline-block; margin-left: auto; padding: 4px 12px; border: 1px solid #e8461e; border-radius: 16px; background: #fff; color: #e8461e; font-size: 13px; }
  .lg-facets:not(.is-open) .lg-facets__row { display: none; }
  .lg-facets:not(.is-open) .lg-facets__head { margin-bottom: 0; }
}

/* 13.10.2026: длинные группы фильтра свёрнуты; на телефоне и планшете фильтр - раскрывающаяся панель над товарами */
.lg-more { display: block; margin: 6px 0 2px; padding: 0; border: 0; background: none; color: #e8461e; font-size: 13px; text-decoration: underline; cursor: pointer; }
@media (max-width: 991px) {
  #column-left.lg-has-filter > :not(.layered-container) { display: none; }
  #column-left .layered-container .layered { display: none; }
  #column-left .layered-container.lg-open .layered { display: block; }
  #column-left .layered-container .layered-heading { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
  #column-left .layered-container .layered-heading::after { content: ""; width: 9px; height: 9px; margin: -4px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  #column-left .layered-container.lg-open .layered-heading::after { margin-top: 4px; transform: rotate(-135deg); }
  .lg-fcount { margin-left: auto; font-size: 12px; font-weight: 400; opacity: .85; text-transform: none; }
}

/* 14.10.2026: на телефоне кнопки страниц переносятся во второй ряд, а строка «Показано с ... по ...» ложилась
   поверх него и перехватывала нажатия (работали только кнопки первого ряда). Строка уходит под кнопки. */
@media (max-width: 767px) {
    .toolbar .ajax_pagination { float: none; overflow: hidden; }
    .toolbar .ajax_pagination + .text-right { float: none; clear: both; text-align: left; margin-top: 6px; }
}
