/* Белый металл × Титан — оверлей поверх скомпилированного /assets/index.css (Tailwind).
   Без @layer, поэтому правила здесь выигрывают у @layer theme из index.css при равной специфичности —
   пересобрать сам Tailwind-бандл нет возможности (нет доступа к исходникам сборки), поэтому тема
   подключается отдельным файлом ПОСЛЕ index.css вместо правки скомпилированного CSS. */

:root {
  --color-brand-blue: #ff5a1f;
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  background-image:
    repeating-linear-gradient(115deg, rgba(0,0,0,.015) 0px, rgba(0,0,0,.015) 2px, transparent 2px, transparent 4px);
}

/* hero-карусель на главной (template13/template.htm) — заменяет старый статичный hero +
   баннер + карточку новинки: 2 реальных слайда, свайп/стрелки/точки, без сторонних библиотек
   (у сайта уже есть Swiper.js, но он собран как ES-модуль без window.Swiper — переиспользовать
   его из отдельного inline-скрипта нельзя, поэтому лёгкий carousel на scroll-snap + vanilla JS) */
.titan-hero-slider { position: relative; }
.titan-hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.titan-hero-track::-webkit-scrollbar { display: none; }
.titan-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
  padding: 16px 4px 24px;
}
@media (max-width: 860px) {
  .titan-hero-slide { grid-template-columns: 1fr; }
}
.titan-hero-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin: 0 0 18px;
}
.titan-hero-photo {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-fill-dark, #eee);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.titan-hero-photo img { max-height: 300px; width: auto; object-fit: contain; }
.titan-hero-cap {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: var(--color-t-secondary, #727171);
}
.titan-hero-photo::before,
.titan-hero-photo::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-brand-blue);
  border-style: solid;
}
.titan-hero-photo::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.titan-hero-photo::after { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.titan-hero-cta { display: inline-block; margin-top: 8px; }
.titan-hero-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-fill-dark, #eee);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-t-primary, #2d2d2d);
  z-index: 2;
}
.titan-hero-arrow--prev { left: -20px; }
.titan-hero-arrow--next { right: -20px; }
.titan-hero-arrow:hover { border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
@media (max-width: 900px) {
  .titan-hero-arrow { display: none; }
}
.titan-hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.titan-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-fill-dark, #eee);
  cursor: pointer;
  padding: 0;
  transition: width .2s ease, background .2s ease;
}
.titan-hero-dot.active { background: var(--color-brand-blue); width: 22px; border-radius: 4px; }

/* карточки категорий на главной (см. hostcmsfiles/xsl/307.xsl) — светлая ячеистая сетка,
   фото обесцвечено и получает цвет при наведении, как в макете "Белый металл x Титан" */
.titan-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--color-fill-dark, #eee);
  border: 1px solid var(--color-fill-dark, #eee);
}
@media (max-width: 900px) {
  .titan-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
.titan-cat-card {
  background: #fff;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.titan-cat-card:hover { background: var(--color-fill, #fafafa); }
.titan-cat-img {
  height: 110px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  transition: filter .25s ease;
}
.titan-cat-card:hover .titan-cat-img { filter: none; }
.titan-cat-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-t-primary, #2d2d2d);
}
.titan-cat-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--color-brand-blue);
  opacity: 0;
  transition: opacity .2s ease;
}
.titan-cat-card:hover .titan-cat-link { opacity: 1; }

/* кнопки — острые углы и разрядка вместо пилюли, в духе "Титана" */
.btn.btn--primary {
  border-radius: 2px !important;
  letter-spacing: .02em;
  font-weight: 700;
}

/* карточка новинки (.cart) и feature-card — лёгкая рамка + подъём для той же "инженерной" точности */
a.cart {
  transition: transform .25s ease, box-shadow .25s ease;
}
a.cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -22px rgba(16,17,20,.3);
}
.feature-card {
  transition: transform .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
}

/* заголовки — плотнее и увереннее (Manrope 800 вместо системного веса) */
.title-h1, .title-h2, .hero__title {
  font-weight: 800;
  letter-spacing: -.01em;
}

/* страница категории (hostcmsfiles/xsl/251.xsl, 273.xsl) — карточки товаров в списке:
   острые углы, обесцвеченное фото до наведения, подъём с тенью — тот же язык, что и на главной */
.products-row .item {
  border-radius: 2px !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.products-row .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px -22px rgba(16,17,20,.3);
}
.products-row .item img {
  filter: grayscale(1) contrast(1.1);
  transition: filter .25s ease;
}
.products-row .item:hover img {
  filter: none;
}

/* пагинация — острые углы вместо круглых, в духе "Титана"; цвет активной страницы уже
   переопределён через --color-brand-blue выше */
.pagination .page_link,
.pagination .active {
  border-radius: 2px !important;
}

/* страница товара (hostcmsfiles/xsl/261.xsl) — характеристики (ul.py-4 > li) сейчас
   выводятся без своих классов, оформляем как строки таблицы спецификации */
.product-page ul.py-4 {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-fill-dark, #eee);
}
.product-page ul.py-4 > li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-fill-dark, #eee);
  font-size: 14px;
}
.product-page ul.py-4 > li > span.inline-flex.mr-4 {
  color: var(--color-t-secondary, #727171);
  margin-right: 0;
  flex-shrink: 0;
}
.product-page .product-desc,
.product-page .product-text {
  line-height: 1.7;
}

/* хлебные крошки (готовый .breadcrumbs есть на страницах категории и товара —
   просто не было фирменного оформления) */
.breadcrumbs {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: .01em;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-brand-blue); }
.breadcrumbs-list-item:last-child a { color: var(--color-t-primary, #2d2d2d); pointer-events: none; }

/* блок быстрых характеристик над ценой на странице товара (см. hostcmsfiles/xsl/261.xsl,
   шаблон match="shop_item" mode="quickspecs") */
.titan-quickspecs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 18px 0;
  margin: 18px 0;
  border-top: 1px solid var(--color-fill-dark, #eee);
  border-bottom: 1px solid var(--color-fill-dark, #eee);
}
.titan-quickspecs > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.titan-quickspecs span:first-child { color: var(--color-t-secondary, #727171); }
.titan-quickspecs span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
  font-weight: 600;
}
@media (max-width: 560px) {
  .titan-quickspecs { grid-template-columns: 1fr; }
}

/* «Похожие модели» — блок кросс-сейла на странице товара */
.titan-related { margin-top: 40px; }
.titan-related h3 {
  font-family: 'Manrope';
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 18px;
}
.titan-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-fill-dark, #eee);
  border: 1px solid var(--color-fill-dark, #eee);
}
@media (max-width: 760px) {
  .titan-related-grid { grid-template-columns: repeat(2, 1fr); }
}
.titan-related-grid a {
  background: #fff;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.titan-related-grid a:hover { background: var(--color-fill, #fafafa); }
.titan-related-grid img {
  height: 70px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  transition: filter .2s ease;
}
.titan-related-grid a:hover img { filter: none; }
.titan-related-grid span {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}

/* остальные блоки главной (template13/template.htm ниже каталога) — .cart, .cart--blue,
   .products-section__card и .about-cart используют ЖЁСТКО прописанный синий градиент
   linear-gradient(225deg,#005ee1,#00337b) в index.css, а не переменную --color-brand-blue,
   поэтому глобальный оверрайд цвета их не тронул — были синими на фоне уже оранжевого сайта */
.cart--blue,
.products-section__card,
.about-cart {
  background: linear-gradient(225deg, var(--color-brand-blue), #9c3c10) !important;
  border-radius: 4px !important;
}
.cart {
  border-radius: 4px !important;
}

/* форма обратной связи и кнопки — острые углы вместо скруглённых, в духе "Титана" */
.form__input,
.form__submit {
  border-radius: 2px !important;
}
.btn--white {
  border-radius: 2px !important;
}

/* .gradient-1 — тот же зашитый синий (linear-gradient(245.57deg,#0000,#005ee1)), используется
   в подкатегориях на странице категории (hostcmsfiles/xsl/273.xsl, shop_group mode="style1"),
   когда у категории есть подкатегории — сейчас у "Электроприводов" их нет, но у других могут быть */
.gradient-1 {
  background: linear-gradient(245.57deg, transparent, var(--color-brand-blue)) !important;
}

/* поле вложения в форме обратной связи на главной (template13/template.htm, #titanCallbackForm) */
.titan-file-row { margin: 14px 0; }
.titan-file-input { display: none; }
.titan-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-t-secondary, #727171);
  border: 1px dashed var(--color-fill-dark, #ccc);
  border-radius: 2px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.titan-file-label:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}
.titan-file-icon { font-size: 14px; }

/* "Каталоги в формате PDF" на главной (Template 17 -> hostcmsfiles/xsl/305.xsl) — было
   5 колонок с картинками во всю ширину и без ограничения высоты (портретные обложки PDF
   384x544 растягивались очень крупно, оставляя много пустого места); делаем компактную
   плотную сетку с ограниченной высотой обложки */
.categories-pdf {
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
}
@media (max-width: 900px) {
  .categories-pdf { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 560px) {
  .categories-pdf { grid-template-columns: repeat(2, 1fr) !important; }
}
.categories-pdf__item {
  border: 1px solid var(--color-fill-dark, #eee);
  border-radius: 2px;
  padding: 10px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.categories-pdf__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -18px rgba(16,17,20,.3);
}
.categories-pdf__item img {
  width: auto !important;
  max-width: 100%;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: grayscale(1) contrast(1.05);
  transition: filter .2s ease;
}
.categories-pdf__item:hover img { filter: none; }
.categories-pdf__item p {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
.categories-pdf__item p a {
  color: var(--color-t-primary, #2d2d2d);
  text-decoration: none;
}
.categories-pdf__item p a:hover { color: var(--color-brand-blue); }

/* Сайдбар "Фильтры поиска" на странице категории (templates/template21/template.htm,
   XSL "МагазинФильтрНовыйСайт2") — реально рабочий фильтр по свойствам с бэка (чекбоксы,
   счётчики товаров, сортировка), но у него не было НИ ОДНОГО CSS-правила в index.css —
   выглядел как список голых чекбоксов без отступов. Только оформление, логика не менялась. */
.filter-form { font-size: 13.5px; }
.filter-sorting { margin-bottom: 18px; }
.filter-sorting select {
  width: 100%;
  border: 1px solid var(--color-fill-dark, #eee);
  border-radius: 2px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--color-t-primary, #2d2d2d);
}
.filter-form h3.text-lg {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: none;
  padding: 12px 0;
  margin: 0 !important;
  border-top: 1px solid var(--color-fill-dark, #eee);
}
.filter-property { padding: 6px 0; }
.filter-property label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--color-t-secondary, #727171);
}
.filter-property input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--color-brand-blue);
  flex-shrink: 0;
  margin: 0;
}
.filter-property .badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--color-t-secondary, #727171);
}
.filter-form .btn--primary.w-full { margin-top: 16px; }
.shop-category .bg-fill.rounded-xl {
  border-radius: 2px !important;
  border: 1px solid var(--color-fill-dark, #eee);
}

/* плоский фильтр категорий на главной (template13/template.htm, #titanCatFilter) —
   чисто клиентский JS, скрывает/показывает уже отрисованные .titan-cat-card по названию,
   ничего не запрашивает с сервера, поэтому не зависит от бага в сортировке магазина */
.titan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.titan-chip {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border: 1px solid var(--color-fill-dark, #eee);
  border-radius: 2px;
  background: #fff;
  color: var(--color-t-primary, #2d2d2d);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.titan-chip:hover { border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
.titan-chip.active {
  background: var(--color-t-primary, #101114);
  border-color: var(--color-t-primary, #101114);
  color: #fff;
}
.titan-chip.active:hover { color: #fff; }
