/* Public catalog */
.catalog-page{
  padding:28px 0 56px;
}
.catalog-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:22px;
  color:var(--muted,#7b8592);
  font-size:13px;
}
.catalog-breadcrumbs a{
  color:inherit;
}
.catalog-breadcrumbs a:hover{
  color:var(--red,#d43a33);
}
.catalog-heading{
  margin-bottom:24px;
}
.catalog-heading>span{
  display:block;
  margin-bottom:5px;
  color:var(--muted,#7b8592);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.catalog-heading h1{
  margin:0;
  font-size:clamp(28px,4vw,42px);
  line-height:1.08;
}
.catalog-heading>p{
  margin:10px 0 0;
  color:var(--muted,#7b8592);
}
.catalog-intro{
  max-width:960px;
  margin-top:12px;
  color:#596270;
  line-height:1.65;
}
.catalog-grid{
  display:grid;
  gap:18px;
}
.catalog-grid--categories{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.catalog-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e7e9ed;
  border-radius:18px;
  background:#fff;
  color:inherit;
  box-shadow:0 8px 30px rgba(25,33,45,.05);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.catalog-card:hover{
  transform:translateY(-3px);
  border-color:#d8dce2;
  box-shadow:0 14px 36px rgba(25,33,45,.09);
}
.catalog-card__image{
  display:grid;
  place-items:center;
  aspect-ratio:4/3;
  padding:18px;
  background:#f8f9fb;
}
.catalog-card__image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.catalog-card__placeholder{
  display:grid;
  width:100%;
  height:100%;
  place-items:center;
  color:#9ba3ad;
  font-size:13px;
  text-align:center;
}
.catalog-card__body{
  display:flex;
  min-height:132px;
  flex-direction:column;
  padding:18px;
}
.catalog-card__body h2{
  margin:0;
  font-size:18px;
  line-height:1.25;
}
.catalog-card__body p{
  margin:7px 0 16px;
  color:var(--muted,#7b8592);
  font-size:12px;
}
.catalog-card__body span{
  margin-top:auto;
  color:var(--red,#d43a33);
  font-size:13px;
  font-weight:700;
}
.catalog-products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.catalog-product-card{
  overflow:hidden;
  border:1px solid #e7e9ed;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 30px rgba(25,33,45,.05);
}
.catalog-product-card__image{
  display:grid;
  place-items:center;
  aspect-ratio:1/1;
  padding:16px;
  background:#fff;
}
.catalog-product-card__image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.catalog-product-card__body{
  padding:15px 16px 17px;
  border-top:1px solid #eef0f3;
}
.catalog-product-card__brand{
  display:block;
  margin-bottom:6px;
  color:var(--muted,#7b8592);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}
.catalog-product-card__body h2{
  min-height:44px;
  margin:0;
  font-size:15px;
  line-height:1.45;
}
.catalog-product-card__body h2 a{
  color:inherit;
}
.catalog-product-card__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
}
.catalog-product-card__bottom strong{
  font-size:17px;
}
.catalog-product-card__bottom a{
  color:var(--red,#d43a33);
  font-size:12px;
  font-weight:700;
}
.catalog-seo-text{
  margin-top:36px;
  padding:24px;
  border-radius:18px;
  background:#f8f9fb;
  color:#596270;
  line-height:1.7;
}
.catalog-seo-text h2,
.catalog-seo-text h3{
  color:#202733;
}
.catalog-empty{
  padding:44px 24px;
  border:1px solid #e7e9ed;
  border-radius:18px;
  background:#fff;
  text-align:center;
}
.catalog-empty h1,
.catalog-empty h2{
  margin-top:0;
}
.catalog-empty p{
  color:var(--muted,#7b8592);
}
.catalog-button{
  display:inline-flex;
  margin-top:12px;
  padding:11px 18px;
  border-radius:999px;
  background:var(--red,#d43a33);
  color:#fff;
  font-weight:700;
}
@media(max-width:1100px){
  .catalog-grid--categories,
  .catalog-products{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .catalog-page{
    padding-top:20px;
  }
  .catalog-grid--categories,
  .catalog-products{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .catalog-card__body{
    min-height:118px;
    padding:14px;
  }
  .catalog-card__body h2{
    font-size:15px;
  }
}
@media(max-width:480px){
  /* Keep category and subcategory cards two across on phones. */
  .catalog-grid--categories{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .catalog-grid--categories .catalog-card{
    min-width:0;
    border-radius:14px;
  }
  .catalog-grid--categories .catalog-card__image{
    padding:10px;
  }
  .catalog-grid--categories .catalog-card__body{
    min-height:0;
    padding:12px 10px 14px;
  }
  .catalog-grid--categories .catalog-card__body h2{
    font-size:14px;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
  .catalog-grid--categories .catalog-card__body p{
    margin:6px 0 12px;
    font-size:11px;
  }
  .catalog-grid--categories .catalog-card__body span{
    font-size:12px;
  }
  /* Two product cards per row on phones. */
  .catalog-products{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .catalog-product-card{min-width:0;border-radius:14px;}
  .catalog-product-card__image{
    min-width:0;
    width:100%;
    overflow:hidden;
    padding:9px;
  }
  .catalog-product-card__image img{
    display:block;
    min-width:0;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center;
  }
  .catalog-product-card__body{padding:11px 10px 13px;}
  .catalog-product-card__body h2{font-size:13px;line-height:1.35;overflow-wrap:anywhere;}
  .catalog-product-card__bottom{flex-wrap:wrap;gap:7px;margin-top:12px;}
  .catalog-product-card__bottom strong{font-size:15px;}
  .catalog-product-card__bottom a{font-size:11px;}

}

/* Исправление фотографий категорий на мобильных */
@media (max-width: 480px) {
    .catalog-card {
        min-width: 0;
    }

    .catalog-card__image {
        min-width: 0;
        width: 100%;
        overflow: hidden;
        aspect-ratio: 1 / 1;
        padding: 10px;
    }

    .catalog-card__image img {
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }
}
