﻿.font-korolev,
.carousel-grid .carousel-title {
  font-family: "korolev";
}

.carousel-grid {
  position: relative;
  margin: 30px auto;
}

.carousel-grid .carousel-grid-container {
  position: relative;
}

.carousel-grid .carousel-header {
  margin-bottom: 0;
}

.carousel-grid .carousel-heading {
  margin-bottom: 0;
}

.carousel-grid .carousel-sub-tital {
  margin-bottom: 6px;
  color: #d6336c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.carousel-grid .carousel-title {
  margin: 0;
  color: #171a2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.carousel-grid .carousel-container {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.carousel-product .carousel-container {
  position: static;
  overflow: visible;
}

.carousel-product .carousel-product-shell {
  position: static;
  width: 100%;
  min-width: 0;
}

.carousel-product .carousel-product-shell .swiper {
  overflow: hidden;
}

.carousel-grid .see-more {
  margin-top: 24px;
  text-align: center;
}

.carousel-grid .see-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  min-height: 40px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #11182b;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.2s ease;
}

.carousel-grid .see-more-button:hover {
  background: #672099;
  color: var(--white);
}

.carousel-grid .swiper {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.carousel-grid .swiper-pagination-bottom,
.carousel-grid .swiper-pagination {
  position: absolute;
  bottom: -30px;
}

.carousel-grid .swiper-button-next,
.carousel-grid .swiper-button-prev {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-top: 0;
  border: 1px solid #f1ecf5;
  border-radius: 6px;
  background: var(--light-grey);
  color: var(--grey);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-grid .swiper-button-next {
    background: var(--theme-color);
    color: #fff;
}

.carousel-grid .swiper-button-next:after,
.carousel-grid .swiper-button-prev:after {
  display: none;
}

.carousel-grid .swiper-button-next:before,
.carousel-grid .swiper-button-prev:before {
  font-family: "icomoon";
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.carousel-grid .swiper-button-prev:before {
  content: "\e98c";
}

.carousel-grid .swiper-button-next:before {
  content: "\e98d";
}

.carousel-product .carousel-nav-controls {
  display: none;
}

.carousel-grid .swiper-button-next:hover,
.carousel-grid .swiper-button-prev:hover {
  border-color: #be185d;
  background: #be185d;
  color: #ffffff;
}

.carousel-product .carousel-nav-controls .swiper-button-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.carousel-grid .product-item {
  margin-bottom: 0;
}

.carousel-grid .product-item .picture a {
  width: 100% !important;
}

.carousel-grid .product-item .picture .padding-b {
  padding-bottom: 1px;
}

.carousel-product .carousel-heading {
  margin-bottom: 0;
}

.carousel-product .carousel-header {
  margin-bottom: 24px;
}

.carousel-product .carousel-sub-tital {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.carousel-product .carousel-title {
  font-size: 22px;
  line-height: 1.2;
}

.carousel-product .swiper-slide {
  height: auto;
}

.carousel-product .swiper-slide > .product-item,
.carousel-product .swiper-slide > .item-box,
.carousel-product .swiper-slide > .item-box > .product-item {
  height: 100%;
  width: 100%;
}

.carousel-product .item-box {
    margin: 0 0 0 0;
}

.carousel-grid.bg-class {
  padding: 30px 0;
}

.carousel-grid.bg-class .carousel-title {
  color: var(--white);
}

.carousel-grid.bg-class .carousel-sub-tital {
  color: #ffd6e8;
}

.carousel-grid.bg-class .carousel-grid-container.container {
  padding-left: 0;
  padding-right: 0;
}

.carousel-product .loader,
.carousel-manufacturer .loader,
.carousel-category .loader {
  position: relative;
}

.carousel-product .loader {
  min-height: 430px !important;
}

.carousel-manufacturer .loader {
  min-height: 360px !important;
}

.carousel-category .loader {
  min-height: 233px !important;
}

.carousel-grid .picture-box:first-child,
.carousel-grid .manufacturer-item:first-child {
  margin-bottom: 15px;
}

.carousel-grid .picture-box .image,
.carousel-grid .picture-box .manufacturer-picture,
.carousel-grid .manufacturer-item .image,
.carousel-grid .manufacturer-item .manufacturer-picture {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #e5eaed;
  border-radius: 3px;
}

.carousel-grid .picture-box .image::before,
.carousel-grid .picture-box .manufacturer-picture::before,
.carousel-grid .manufacturer-item .image::before,
.carousel-grid .manufacturer-item .manufacturer-picture::before {
  content: "";
  display: block;
  padding-top: 60%;
}

.carousel-grid .picture-box .image img,
.carousel-grid .picture-box .manufacturer-picture img,
.carousel-grid .manufacturer-item .image img,
.carousel-grid .manufacturer-item .manufacturer-picture img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 80%;
  max-height: 80%;
  transform: translate(-50%, -50%);
}

.carousel-grid .picture-box .picture-name,
.carousel-grid .picture-box .manufacturer-name,
.carousel-grid .manufacturer-item .picture-name,
.carousel-grid .manufacturer-item .manufacturer-name {
  display: none;
}

.carousel-manufacturer .carousel-grid-container {
  text-align: center;
}

.carousel-manufacturer .carousel-heading {
  margin-bottom: 26px;
}

.carousel-manufacturer .manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.carousel-manufacturer .manufacturer-grid-item {
  min-width: 0;
}

.carousel-manufacturer .carousel-title {
  font-size: 24px;
  line-height: 1.2;
}

.carousel-manufacturer .manufacturer-grid-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #f1ecf5;
  border-radius: 24px 0 24px 24px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-manufacturer .manufacturer-grid-link:hover,
.carousel-manufacturer .manufacturer-grid-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.carousel-manufacturer .manufacturer-grid-link img {
  display: block;
  max-width: 82%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel-manufacturer .see-more {
  margin-top: 28px;
  text-align: center;
}

.carousel-manufacturer .see-more-button {
  min-width: 208px;
  min-height: 40px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #11182b;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
}

.carousel-manufacturer .see-more-button:hover {
  background: #672099;
  color: #ffffff;
}

@media (min-width: 768px) {
  .carousel-grid {
    margin: 50px auto;
  }

  .carousel-grid .carousel-title {
    font-size: 40px;
  }

  .carousel-product .carousel-grid-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "heading actions"
      "carousel carousel";
    align-items: end;
    column-gap: 5px;
  }

  .carousel-product .carousel-header {
    grid-area: heading;
    margin-bottom: 24px;
  }

  .carousel-product .see-more {
    grid-area: actions;
    margin-top: 0;
    margin-bottom: 38px;
    text-align: right;
    white-space: nowrap;
  }

  .carousel-product .carousel-grid-container:has(.carousel-nav-controls) .see-more {
    margin-right: 80px;
  }

  .carousel-product .carousel-container {
    grid-area: carousel;
  }

  .carousel-product .carousel-nav-controls {
    position: absolute;
    top: 5px;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75px;
    gap: 5px;
  }

  .carousel-product .see-more-button {
    min-width: auto;
    min-height: auto;
    padding: 10px 20px;
    border-radius: 999px;
    background: transparent;
    color: #0f1421;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
  }

  .carousel-product .see-more-button:hover {
    background: transparent;
    color: #672099;
  }

  .carousel-grid .carousel-container {
    flex: none;
  }

  .carousel-product .carousel-title {
    font-size: 22px;
  }

  .carousel-manufacturer .carousel-grid-container {
    display: block;
  }

  .carousel-manufacturer .carousel-header {
    margin-bottom: 36px;
    text-align: center;
  }

  .carousel-manufacturer .carousel-title {
    font-size: 22px;
  }

  .carousel-manufacturer .manufacturer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .carousel-manufacturer .see-more {
    position: static;
    margin-top: 36px;
    text-align: center;
  }

  .carousel-manufacturer .see-more-button {
    min-width: 208px;
    min-height: 40px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #11182b;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .carousel-manufacturer .see-more-button:hover {
    background: var(--theme-color);
    color: #ffffff;
  }
}

@media (min-width: 1025px) {
  .carousel-product .carousel-grid-container {
    padding-top: 4px;
  }

  .carousel-manufacturer .manufacturer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .carousel-manufacturer .manufacturer-grid-link img {
    max-width: 76%;
    max-height: 24px;
  }
}

@media (max-width: 767px) {
  .carousel-product .carousel-header {
    margin-bottom: 16px;
    padding-right: 76px;
    text-align: left;
  }

  .carousel-product .carousel-heading {
    text-align: left;
  }

  .carousel-product .carousel-sub-tital {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .carousel-product .carousel-title {
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
  }

  .carousel-product .carousel-nav-controls {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
    gap: 10px;
  }

  .carousel-product .carousel-nav-controls .swiper-button-next,
  .carousel-product .carousel-nav-controls .swiper-button-prev {
    display: flex;
    width: 30px;
    height: 30px;
  }

  .carousel-product .carousel-nav-controls .swiper-button-next:before,
  .carousel-product .carousel-nav-controls .swiper-button-prev:before {
    font-size: 16px;
  }

  .carousel-product .see-more {
    margin-top: 20px;
    text-align: center;
  }

  .carousel-product .see-more-button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 35px;
    padding: 15px 20px;
    border-radius: 999px;
    background: #f6f4f7;
    color: #0f1421;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: underline;
  }

  .carousel-product .see-more-button:hover {
    background: #f6f4f7;
    color: #672099;
  }

  .carousel-grid .carousel-title {
    font-size: 18px;
  }

  .carousel-manufacturer .manufacturer-grid-link {
    min-height: 58px;
    padding: 13px;
    border-radius: 18px 0 18px 18px;
  }

  .carousel-manufacturer .manufacturer-grid-link img {
    max-width: 78%;
    max-height: 22px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .carousel-product .carousel-nav-controls,
  .carousel-grid .swiper-button-next,
  .carousel-grid .swiper-button-prev {
    display: none;
  }
}
