.site-info {
  margin: 5px 0px 60px 0px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform .2s;
  margin: 0 0 10px 0;
}
.catalog-section-title{
  font-size: 25px;
  font-weight: 600;
  margin: 5px;
  line-height: 1.2;
}
.catalog-card:hover {
  transform: translateY(-3px);
}
.catalog-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.catalog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.catalog-card--deferred {
  display: none;
}

.catalog-load-sentinel {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
}
/* 1) Картинка */
.catalog-thumb {
  width: 100%;
  position: relative;
  /* Чтобы картинка всегда квадратная */
  padding-top: 100%; 
  overflow: hidden;
  aspect-ratio: 3/4;
}

.catalog-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2) Описание */
.catalog-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.4 * 27px);
}

/* 3) Рейтинг */
.catalog-rating {
  font-size: 0.85rem;
  color: #555;
}
.catalog-rating .catalog-count {
  font-weight: 400;
  color: #999;
}

/* 4) Цена */
.catalog-prices {
  margin-top: auto; /* прижать к низу */
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.catalog-price-new {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.catalog-price-old {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
}

/* === Блок баннера под каруселью === */
.catalog-banner {
  margin: 5px 0 15px 0;                 /* отступ сверху/снизу */
  width: 100%;
  display: flex;
  justify-content: center;
}

.catalog-banner a {
  display: block;
  width: 100%;
  max-width: 1400px;              /* чтобы не растягивался слишком широко */
  border-radius: 16px;            /* скругление углов */
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catalog-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* общий контейнер категорий */
.categories-carousel .category-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 8px 12px;
  height: 52px;       /* одинаковая высота для всех кнопок */
  white-space: normal;    /* разрешаем переносы */
  word-break: break-word; /* переносим длинные слова */
  hyphens: auto;          /* дефисы при переносе */
  text-align: center;     /* центрируем текст */
  font-size: 0.95rem;
  color: #333;
  transition: background 0.2s;
}


/* активная категория */
.categories-carousel .category-item.active {
  background: var(--primary-color);
  color: #fff;
}
/* для стрелок owl (если нужно подправить) */
.owl-nav button {
  color: var(--primary-color);
}

/* Сетка товаров 3×3 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.products-grid .catalog-card:hover {
  transform: translateY(-4px);
}
.hidden {
  display: none;
}

.products-anlim-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
/*  padding: 16px;*/
}

/* сброс пробелов у картинок */
.catalog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* стили карточки (пример) */
.catalog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: scale(0);
  transition: 
    opacity 0.4s ease-out, 
    transform 0.4s ease-out;
}

/* когда нужно «оживить» карточку — дать ей этот класс */
.catalog-card.visible {
  opacity: 1;
  transform: scale(1);
}

.catalog-page{
  padding: 16px 0 0;
}
.catalog-body {
  padding: 12px;
}
.catalog-title {
  font-size: 1rem;
/*  margin: 0 0 8px;*/
}
.catalog-prices {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.catalog-price-new {
  font-weight: bold;
  color: var(--primary-color);
}
.catalog-price-old {
  text-decoration: line-through;
  color: #777;
  font-size: 0.75rem;
}
.catalog-slider
{
  margin: 0 0 5px;
}
.load-more-btn
{
  display: block;
  margin: 0 auto;
  background: var(--primary-color);
  color: #fff;
  padding: 12px;
  font-size: 13px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-color: none;
  border: none;
}
@media (max-width: 767px) {
  /* Сетка товаров 3×3 */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-anlim-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-section-title {
    font-size: 16px;
  }
  .catalog-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(2 * 1.4 * 21px);
  }
  .catalog-page{
    padding: 0;
  }

}
.empty-category-wrapper {
  display: none; /* скрыта до тех пор, пока JS не покажет */
}

/* Обертка заглушки */
.empty-category-wrapper {
  width: 100%;
  max-width: 1400px;    /* или твой контейнерный max-width */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Базовые стили картинок заглушки */
.empty-page-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

/* По умолчанию включим десктопную, мобайл спрячем */
.empty-page-img-desktop {
  display: block;
}

.empty-page-img-mobile {
  display: none;
}

/* На мобильных меняем местами */
@media (max-width: 767px) {
  .empty-page-img-desktop {
    display: none;
  }
  .empty-page-img-mobile {
    display: block;
  }
}

/* Catalog variant: category sections */
.catalog-page--sections{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0 28px;
}

.catalog-hero{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 95%, #111827), color-mix(in srgb, var(--primary-color) 58%, #111827));
  color: #fff;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.catalog-hero__eyebrow{
  margin-bottom: 10px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-hero h1{
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}

.catalog-hero p{
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 17px;
  line-height: 1.55;
}

.catalog-hero__stats{
  flex: 0 0 auto;
  min-width: 150px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, #fff 24%, transparent);
  border-radius: 14px;
  text-align: center;
}

.catalog-hero__stats b{
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.catalog-hero__stats span{
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.3;
}

.catalog-nav{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.catalog-nav a{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 6%, #fff);
  color: color-mix(in srgb, var(--primary-color) 72%, #191919);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.catalog-sections{
  display: grid;
  gap: 20px;
}

.catalog-category-section{
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary-color) 10%, transparent);
  scroll-margin-top: 92px;
}

.catalog-category-section__head{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.catalog-category-section__head h2{
  margin: 0;
  color: #171717;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
}

.catalog-category-section__head p{
  margin: 7px 0 0;
  color: #6b7280;
  font-size: 15px;
}

.catalog-category-section__head > a{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.catalog-subcats{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.catalog-subcats a{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 8%, #f3f5f7);
  color: color-mix(in srgb, var(--primary-color) 68%, #303030);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.catalog-section-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card--section{
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary-color) 9%, transparent);
}

.catalog-card--section .catalog-thumb{
  padding-top: 0;
  aspect-ratio: 3 / 4;
  background: color-mix(in srgb, var(--primary-color) 8%, #f3f5f7);
}

.catalog-card--section .catalog-thumb img{
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card--section .catalog-body{
  min-height: 150px;
}

.catalog-empty-message{
  padding: 34px;
  text-align: center;
}

.catalog-empty-message h2{
  margin: 0 0 8px;
}

.catalog-empty-message p{
  margin: 0;
  color: #666;
}

@media (max-width: 1023px){
  .catalog-section-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px){
  .catalog-page--sections{
    gap: 14px;
    padding: 12px 0 22px;
  }

  .catalog-hero{
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .catalog-hero h1{
    font-size: 30px;
  }

  .catalog-hero p{
    font-size: 15px;
  }

  .catalog-hero__stats{
    width: 100%;
    min-width: 0;
  }

  .catalog-category-section{
    padding: 14px;
    border-radius: 14px;
  }

  .catalog-category-section__head{
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .catalog-category-section__head > a{
    width: 100%;
  }

  .catalog-section-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-card--section .catalog-body{
    min-height: 140px;
    padding: 10px;
  }

  .catalog-card--section .product-button{
    display: none;
  }
}
