/* =====================================================================
   THE MINERS — каталог по макету (разметку дополняет listing.js)
   Всё под body.ls-on — без скрипта страница прежняя.
   ===================================================================== */
body.ls-on {
  --ls-bg: #F7F7F7;
  --ls-text: #141414;
  --ls-muted: #2e2e2e;
  --ls-line: #c9c9c9;
  --ls-lime: #DCFF50;
  --ls-gut: 80px;
  --ls-w: min(1352px, calc(100vw - 2 * var(--ls-gut)));
  background: var(--ls-bg) !important;
}
@media (max-width: 1199px) { body.ls-on { --ls-gut: 40px; } }
@media (max-width: 767px)  { body.ls-on { --ls-gut: 16px; } }

body.ls-on .overall-wrapper,
body.ls-on #content-wrapper,
body.ls-on .content-wrapper-in,
body.ls-on #content { background: transparent !important; }

body.ls-on #content-wrapper,
body.ls-on .content-wrapper-in,
body.ls-on #content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* селектор длиннее — тема задаёт #content ширину 100% с !important */
html body.ls-on #content-wrapper .content-wrapper-in #content {
  flex: none !important;
  width: var(--ls-w) !important;
  margin: 0 auto !important;
  padding: 32px 0 96px !important;
  color: var(--ls-text);
}

/* исходные элементы Shoptet: фильтры и сортировка — источник данных, скрыты */
body.ls-on #content .category-top h1 {             /* заголовок остаётся для поиска и скринридеров */
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  margin: 0 !important; padding: 0 !important;
}
body.ls-on #content .category-top { margin: 0 !important; padding: 0 !important; }
body.ls-on #content #filters-wrapper,
body.ls-on #content #category-header,
body.ls-on #content .category-perex:empty,
body.ls-on #content .listingControls .itemsTotal,
body.ls-on .breadcrumbs-wrapper { display: none !important; }

/* ---------- баннер ---------- */
body.ls-on .ls-promo {
  position: relative;
  display: block;
  aspect-ratio: 1352 / 560;
  margin: 0 0 64px;
  overflow: hidden;
  border-radius: 16px;
  background: #222;
  color: #fff !important;
  text-decoration: none !important;
}
body.ls-on .ls-promo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
body.ls-on .ls-promo:hover img { transform: scale(1.03); }
body.ls-on .ls-promo::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5));
}
body.ls-on .ls-promo--plain::after { display: none; }   /* без текста затемнение не нужно */
body.ls-on .ls-promo__txt {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  line-height: .92;
}
body.ls-on .ls-promo__k { font-size: clamp(22px, 3vw, 44px); font-weight: 900 !important; }
body.ls-on .ls-promo__t { font-size: clamp(40px, 5.2vw, 76px); font-weight: 900 !important; letter-spacing: -.02em; }

/* ---------- REFINE ---------- */
body.ls-on .ls-refine {
  display: flex;
  align-items: stretch;
  margin: 0 0 80px;
}
body.ls-on .ls-refine__head {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 32px;
}
body.ls-on .ls-h {
  margin: 0 0 24px !important;
  padding: 0 !important;
  font-size: clamp(40px, 4vw, 60px) !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ls-text) !important;
}
body.ls-on .ls-chips { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 360px; }
body.ls-on .ls-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ls-text) !important;
  font-size: 18px;
  font-weight: 450 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
body.ls-on .ls-chip i { font-style: normal; font-size: 15px; transition: transform .2s ease; }
body.ls-on .ls-chip:hover i { transform: rotate(90deg); }

body.ls-on .ls-col {
  flex: none;
  padding: 0 clamp(20px, 3vw, 46px);
  border-left: 1px solid var(--ls-line);
}
body.ls-on .ls-col:last-child { border-right: 1px solid var(--ls-line); }
body.ls-on .ls-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ls-text);
  font-size: 22px;
  font-weight: 900 !important;
  text-transform: uppercase;
  text-align: left;
  cursor: default;
}
body.ls-on .ls-col__title i { display: none; }
body.ls-on .ls-col__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
/* CATEGORY: группы (как в мега-меню) — на десктопе сеткой 2×2 */
body.ls-on .ls-col--groups .ls-col__list { display: grid; grid-template-columns: repeat(2, max-content); gap: 24px 40px; }
body.ls-on .ls-group { display: flex; flex-direction: column; gap: 10px; }
/* .ls-col — чтобы заголовок-ссылка (Equipment, Merch) не брал стиль обычного пункта .ls-opt */
body.ls-on .ls-col .ls-group__title {
  color: var(--ls-muted) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}
body.ls-on .ls-col a.ls-group__title:hover { color: var(--ls-text) !important; opacity: 1; }
body.ls-on .ls-col .ls-group__title.is-on { color: var(--ls-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
body.ls-on .ls-group__list { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.ls-on .ls-group__list li { margin: 0 !important; padding: 0 !important; background: none !important; }
body.ls-on .ls-group__list li::before { content: none !important; }

/* длинный список (TAGS) — в две колонки */
body.ls-on .ls-col--wide .ls-col__list { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; row-gap: 14px; }
body.ls-on .ls-col__list li { margin: 0 !important; padding: 0 !important; background: none !important; }
body.ls-on .ls-col__list li::before { content: none !important; }
body.ls-on .ls-opt {
  display: inline-flex;
  flex-direction: column;
  color: var(--ls-text) !important;
  font-size: 18px;
  font-weight: 450 !important;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}
/* место под жирное начертание — колонка не прыгает */
body.ls-on .ls-opt::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
body.ls-on a.ls-opt:hover { opacity: .62; }
body.ls-on .ls-opt.is-on { font-weight: 700 !important; }
body.ls-on .ls-sort.is-on { text-decoration: underline !important; text-underline-offset: 4px; }
body.ls-on .ls-opt.is-off { color: #b5b5b5 !important; cursor: default; }

/* ---------- карточки ---------- */
body.ls-on #products.products-block {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 48px;
  margin: 0 !important;
}
body.ls-on #products.products-block::before,
body.ls-on #products.products-block::after { content: none !important; }
body.ls-on #products .product {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body.ls-on #products .product:hover { border: 0 !important; background: none !important; }
body.ls-on #products .p {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.ls-on #products .p .image {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 0 0 20px !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--ls-bg) !important;        /* фон для multiply: белое на фото становится серым */
}
body.ls-on #products .p .image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  transform: none !important;
  mix-blend-mode: multiply;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1) !important;
}
body.ls-on #products .p:hover .image img { transform: scale(1.04) !important; }
body.ls-on #products .p .image .flags { display: none !important; }

body.ls-on #products .p-in {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
}
body.ls-on #products .p-in-in {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto !important;
  margin: 0 !important;
  padding: 0 20px 14px !important;
  border-bottom: 1px solid var(--ls-line);
}
/* тема делает карточку кликабельной слоем name::after с отступом -40px за края —
   на мобилке страница становилась шире экрана (хедер и кнопка «наверх» уезжали) */
body.ls-on #products .p { position: relative !important; }
body.ls-on #products .p-in-in .name::after { inset: 0 !important; width: auto !important; height: auto !important; }
body.ls-on #products .p-in-in .name {
  height: auto !important;
  color: var(--ls-text) !important;
  text-decoration: none !important;
}
body.ls-on #products .p-in-in .name span {
  display: flex !important;
  flex-direction: column;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-transform: uppercase;
}
body.ls-on #products .p-in-in .name span b { font-weight: 900 !important; }
body.ls-on #products .p-in-in .name span i { font-style: normal; font-weight: 800 !important; font-size: 16px; }

body.ls-on .ls-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
body.ls-on .ls-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ls-lime);
  color: var(--ls-text);
  font-size: 12px;
  font-weight: 700 !important;
  white-space: nowrap;
}
body.ls-on .ls-pill--sale { background: #f44746; color: #fff; }

body.ls-on #products .ls-meta {
  padding: 12px 20px 0;
  font-size: 13px;
  font-weight: 700 !important;
  line-height: 1.25;
  color: var(--ls-text);
}

/* низ: чёрная полоса «Detail ……… €13,50», вся кликабельна */
body.ls-on #products .p-bottom {
  margin-top: auto !important;
  padding: 18px 0 0 !important;
}
body.ls-on #products .p-bottom > div {
  position: relative;
  display: flex !important;
  flex-direction: row-reverse;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 24px !important;
  background: var(--ls-text);
  border-radius: 12px;
  color: #fff;
  transition: background-color .2s ease;
}
body.ls-on #products .p-bottom > div:hover { background: #000; }
body.ls-on #products .p-bottom .prices { flex: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; text-align: right; }
body.ls-on #products .p-bottom .price-additional,
body.ls-on #products .p-bottom .price-standard,
body.ls-on #products .p-bottom .price-save { display: none !important; }
body.ls-on #products .p-bottom .price-final,
body.ls-on #products .p-bottom .price-final strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}
body.ls-on #products .p-bottom .price-final small { font-size: 12px; font-weight: 450; opacity: .7; margin-right: 2px; }
body.ls-on #products .p-bottom .p-tools {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  text-align: left !important;
}
body.ls-on #products .p-bottom .p-tools .btn,
body.ls-on #products .p-bottom .p-tools button {
  position: static !important;
  display: inline !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 450 !important;
  text-transform: none !important;
}
body.ls-on #products .p-bottom .p-tools .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
body.ls-on #products .p-bottom > div:hover .btn { color: var(--ls-lime) !important; }

/* пагинация (если товаров больше страницы) */
body.ls-on #content .listingControls { margin-top: 56px !important; text-align: center; }

/* ---------- планшет ---------- */
@media (max-width: 1199px) {
  body.ls-on .ls-refine { flex-wrap: wrap; row-gap: 32px; }
  body.ls-on .ls-refine__head { flex-basis: 100%; padding-right: 0; }
  body.ls-on .ls-chips { max-width: none; }
  body.ls-on .ls-col:first-of-type { border-left: 0; padding-left: 0; }
  body.ls-on #products.products-block { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
}

/* ---------- мобилка: колонки фильтров — аккордеон ---------- */
@media (max-width: 767px) {
  body.ls-on #content { padding-top: 16px !important; }
  body.ls-on .ls-promo { aspect-ratio: 370 / 260; margin-bottom: 32px; }
  body.ls-on .ls-promo__txt { left: 16px; bottom: 12px; }

  body.ls-on .ls-refine { display: block; margin-bottom: 48px; }
  body.ls-on .ls-h { margin-bottom: 14px !important; }
  body.ls-on .ls-refine__head { margin-bottom: 24px; }
  body.ls-on .ls-chip { font-size: 15px; }
  body.ls-on .ls-chips { gap: 6px 16px; }

  body.ls-on .ls-col,
  body.ls-on .ls-col:first-of-type,
  body.ls-on .ls-col:last-child {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--ls-line);
  }
  body.ls-on .ls-col__title {
    margin: 0;
    padding: 16px 0;
    font-size: 18px;
    cursor: pointer;
  }
  body.ls-on .ls-col__title i {
    display: block;
    position: relative;
    width: 14px;
    height: 14px;
  }
  /* «+» закрыто, «–» открыто */
  body.ls-on .ls-col__title i::before,
  body.ls-on .ls-col__title i::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 2px;
    background: var(--ls-text);
    transition: transform .25s ease;
  }
  body.ls-on .ls-col__title i::after { transform: rotate(90deg); }
  body.ls-on .ls-col.is-open .ls-col__title i::after { transform: rotate(0deg); }
  /* аккордеон: плавно раскрывается (grid 0fr -> 1fr), пункты проявляются */
  body.ls-on .ls-col__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(.22, 1, .36, 1);
  }
  body.ls-on .ls-col.is-open .ls-col__body { grid-template-rows: 1fr; }
  body.ls-on .ls-col__list {
    min-height: 0;
    overflow: hidden;
    gap: 10px;
    padding: 0 !important;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), padding .35s ease;
  }
  body.ls-on .ls-col.is-open .ls-col__list { opacity: 1; transform: none; padding: 0 0 18px !important; }
  body.ls-on .ls-col--wide .ls-col__list { row-gap: 10px; column-gap: 24px; }
  body.ls-on .ls-col--groups .ls-col__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  body.ls-on .ls-col.is-open.ls-col--groups .ls-col__list { padding-bottom: 20px !important; }
  body.ls-on .ls-opt { font-size: 15px; }

  body.ls-on #products.products-block { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  body.ls-on #products .p-in-in { padding: 0 12px 12px !important; }
  body.ls-on #products .ls-meta { padding: 10px 12px 0; }
  body.ls-on #products .p-in-in .name span { font-size: 18px !important; }
  body.ls-on #products .p-in-in .name span i { font-size: 14px; }
  body.ls-on #products .p-bottom > div { height: 44px; padding: 0 20px !important; }
  body.ls-on #products .p-bottom .p-tools .btn,
  body.ls-on #products .p-bottom .price-final strong { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.ls-on .ls-col__body,
  body.ls-on .ls-col__list,
  body.ls-on .ls-promo img,
  body.ls-on #products .p .image img { transition: none !important; }
}

/* рамка при наведении: inline-стиль сайта (.products-block .product:hover { border … !important })
   + transition темы 0.2s на карточке давали мелькание рамки — гасим всё */
body.ls-on #products .product,
body.ls-on #products .product:hover,
body.ls-on #products .p,
body.ls-on #products .p:hover {
  border: 0 !important;           /* theme.css: #productsAlternative .product:hover { border: 3px … !important } */
  outline: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}
