.oc-catalog {
  padding: 0 16px;
  background: #fff;
  color: #171717;
}

#content.oc-catalog {
  --oc-catalog-footer-space: 300px;
  padding-bottom: calc(var(--oc-catalog-footer-space) + 16px);
}

@media (max-width: 575.98px) {
  #content.oc-catalog {
    --oc-catalog-footer-space: 730px;
  }
}

.oc-catalog__inner {
  width: min(100%, var(--oc-catalog-width));
  margin: 0 auto;
}

.oc-catalog__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: #777;
  font-size: 13px;
}

.oc-catalog__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.oc-catalog h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 650;
  line-height: 1.15;
}

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

.oc-catalog__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 48%) minmax(0, 1fr);
  min-height: 220px;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  background: var(--oc-catalog-card-background, #ffffff);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.oc-catalog__card::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%, transparent 100%);
  content: "";
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.oc-catalog__card:hover {
  border-color: var(--oc-catalog-accent, #149bd7);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--oc-catalog-accent, #149bd7) 20%, transparent);
  transform: translateY(-2px);
}

.oc-catalog__card:hover::after {
  transform: translateX(120%);
}

.oc-catalog__card-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  overflow: hidden;
}

.oc-catalog__card-image::after {
  display: none;
}

.oc-catalog__card-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: transform .4s ease, opacity .25s ease;
}

.oc-catalog__card:hover .oc-catalog__card-image img {
  transform: scale(1.07);
}

.oc-catalog__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: transparent;
  pointer-events: none;
}

.oc-catalog__card.has-children .oc-catalog__card-content {
  justify-content: flex-start;
}

.oc-catalog__card-content h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.oc-catalog__card-content h2 a,
.oc-catalog__card-content li a {
  color: #111827;
  text-decoration: none;
  pointer-events: auto;
}

.oc-catalog__card-content ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-catalog__card-content li {
  min-width: 0;
}

.oc-catalog__card-content li a {
  display: block;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oc-catalog__card-content a:hover {
  color: var(--oc-catalog-accent, #149bd7);
  text-decoration: none;
}

.oc-catalog__card-description-wrap {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  padding: 13px 18px 15px;
}

.oc-catalog__card-description {
  display: -webkit-box;
  max-height: calc(1.45em * 3);
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.oc-catalog__card-description.is-expanded {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.oc-catalog__description-toggle {
  display: flex;
  width: max-content;
  margin: 7px 0 0 auto;
  padding: 0;
  border: 0;
  color: #111827;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.oc-catalog__description-toggle:hover,
.oc-catalog__description-toggle:focus-visible {
  color: var(--oc-catalog-accent, #149bd7);
  text-decoration: none;
}

.oc-catalog__description-toggle:focus-visible {
  outline: 2px solid var(--oc-catalog-accent, #149bd7);
  outline-offset: 3px;
}

.oc-catalog__description-toggle[hidden] {
  display: none;
}

@media (min-width: 1200px) {
  .oc-catalog__grid--5 .oc-catalog__card,
  .oc-catalog__grid--6 .oc-catalog__card {
    min-height: 190px;
  }

  .oc-catalog__grid--5 .oc-catalog__card {
    grid-template-columns: minmax(110px, 44%) minmax(0, 1fr);
  }

  .oc-catalog__grid--6 .oc-catalog__card {
    grid-template-columns: minmax(80px, 42%) minmax(0, 1fr);
  }

  .oc-catalog__grid--5 .oc-catalog__card-content,
  .oc-catalog__grid--6 .oc-catalog__card-content {
    min-height: 190px;
    padding: 14px;
  }

  .oc-catalog__grid--5 .oc-catalog__card-content h2,
  .oc-catalog__grid--6 .oc-catalog__card-content h2 {
    margin-bottom: 9px;
    font-size: 16px;
  }

  .oc-catalog__grid--5 .oc-catalog__card-content ul,
  .oc-catalog__grid--6 .oc-catalog__card-content ul {
    gap: 4px 10px;
  }

  .oc-catalog__grid--5 .oc-catalog__card-content li a,
  .oc-catalog__grid--6 .oc-catalog__card-content li a {
    font-size: 12px;
  }
}

.oc-catalog__section {
  margin: 0 0 32px;
}

.oc-catalog__inner > .oc-catalog__popular:last-child {
  margin-bottom: 0;
}

.oc-catalog__grid + .oc-catalog__section {
  margin-top: 38px;
}

.oc-catalog__section-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 650;
}

.oc-catalog__popular-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.oc-catalog__popular-card {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  background: var(--oc-catalog-popular-card-background, #ffffff);
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.oc-catalog__popular-card::before {
  display: none;
}

.oc-catalog__popular-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255, 255, 255, .25) 50%, transparent 58%, transparent 100%);
  content: "";
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.oc-catalog__popular-card:hover {
  border-color: var(--oc-catalog-accent, #149bd7);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--oc-catalog-accent, #149bd7) 18%, transparent);
  color: var(--oc-catalog-accent, #149bd7);
  transform: translateY(-2px);
}

.oc-catalog__popular-card:hover::after {
  transform: translateX(120%);
}

.oc-catalog__popular-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--oc-catalog-popular-card-background, #ffffff);
  transform: scale(1);
  transition: transform .4s ease;
}

.oc-catalog__popular-card:hover img {
  transform: scale(1.08);
}

.oc-catalog__popular-card span {
  position: relative;
  z-index: 2;
  max-width: 100%;
  color: #111827;
  text-align: right;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95);
}

.oc-catalog__popular-card:hover span {
  color: var(--oc-catalog-accent, #149bd7);
}

.oc-catalog__banner-section {
  margin-bottom: 50px;
  padding-bottom: 0;
}

.oc-catalog__banner-carousel {
  margin-bottom: 0;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .09);
}

.oc-catalog__banner {
  display: flex;
  width: 100%;
  aspect-ratio: 10 / 3;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.oc-catalog__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.oc-catalog__banner-carousel .carousel-control-prev,
.oc-catalog__banner-carousel .carousel-control-next {
  width: 54px;
  color: #737373;
  font-size: 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .9);
  transform: translateX(-8px);
  transition: color .18s ease, opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.oc-catalog__banner-carousel .carousel-control-next {
  transform: translateX(8px);
}

.oc-catalog__banner-carousel:hover .carousel-control-prev,
.oc-catalog__banner-carousel:hover .carousel-control-next,
.oc-catalog__banner-carousel:focus-within .carousel-control-prev,
.oc-catalog__banner-carousel:focus-within .carousel-control-next {
  opacity: .9;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.oc-catalog__banner-carousel .carousel-control-prev:hover,
.oc-catalog__banner-carousel .carousel-control-next:hover,
.oc-catalog__banner-carousel .carousel-control-prev:focus-visible,
.oc-catalog__banner-carousel .carousel-control-next:focus-visible {
  color: #404040;
  opacity: 1;
}

.oc-catalog__banner-carousel .carousel-indicators {
  bottom: -34px;
  margin-bottom: 0;
}

.oc-catalog__banner-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background-color: #858585;
  opacity: .72;
}

.oc-catalog__banner-carousel .carousel-indicators .active {
  background-color: #3f3f3f;
  opacity: 1;
}

.oc-catalog__empty {
  padding: 35px;
  border: 1px dashed #d8d8d8;
  border-radius: 7px;
  color: #777;
  text-align: center;
}

@media (max-width: 1199px) {
  .oc-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-catalog__popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .oc-catalog {
    padding-right: 12px;
    padding-left: 12px;
  }

  .oc-catalog__grid {
    grid-template-columns: 1fr;
  }

  .oc-catalog__banner-carousel .carousel-control-prev,
  .oc-catalog__banner-carousel .carousel-control-next {
    width: 40px;
    font-size: 25px;
  }

  .oc-catalog__card,
  .oc-catalog__card-content {
    min-height: 190px;
  }

  .oc-catalog__card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .oc-catalog__card-content {
    padding: 17px;
  }

  .oc-catalog__card-image {
    padding: 6px;
  }

  .oc-catalog__popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .oc-catalog__card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .oc-catalog__card-content ul {
    grid-template-columns: 1fr;
  }

  .oc-catalog__popular-grid {
    grid-template-columns: 1fr;
  }
}
