/* RECOMMENDED */
.recommended {
  padding: 48px 0 96px;
  background: #fff;
}

.recommended__title {
  margin-bottom: 28px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
}

.recommended__slider-wrap {
  position: relative;
}

.recommended-card {
  min-height: 528px;
  max-width: 318px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 0 0 24px;
}

.recommended-card__top {
  position: relative;
  height: 318px;
  margin: 0 auto 24px;
  padding: 24px 24px 0;
}

.recommended-card__slider {
  width: 100%;
  height: 100%;
}

.recommended-card__img {
  max-height: 90%;
  object-fit: contain;
  margin: auto;
}

.recommended-card__pagination {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.recommended-card__pagination .swiper-pagination-bullet {
  flex: 1;
  height: 2px;
  margin: 0;
  border-radius: 10px;
  background: #d7d7d7;
  opacity: 1;
}

.recommended-card__pagination .swiper-pagination-bullet-active {
  background: #111;
}

.recommended-card__label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 0;
  max-width: 115px;
  padding: 15px;
  border-radius: 0 6px 6px 0;
  color: #111;
}

.recommended-card__label--red {
  background: rgba(246, 78, 55, 1);
  color: #fff;
}

.recommended-card__label--yellow {
  background: rgba(255, 199, 0, 1);
}

.recommended-card__favorite {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
}

.recommended-card__article {
  margin: 0 0 24px;
  padding: 0 24px;
  color: rgba(102, 102, 102, 1);
}

.recommended-card__name {
  min-height: 50px;
  margin: 0 0 24px;
  color: rgba(37, 37, 37, 1);
  padding: 0 24px;
  font-size: 18px;
  /* text-overflow: ellipsis; */
  /* overflow: hidden; */
  /* white-space: nowrap; */
}

.recommended-card__price {
  padding: 0 24px;
  font: 500 28px/32px 'Inter', sans-serif; 
  color: rgba(17, 17, 17, 1);
}
.recommended-card__price span {
  margin-left: 12px;
  font: 500 20px/24px 'Inter', sans-serif;
  color: rgba(143, 146, 140, 1);
  text-decoration: line-through;
}


/* Catalog page */
.catalog-page {
    padding: 24px 0 96px;
}

.catalog-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.catalog-page__item {
    position: relative;
    min-height: 528px;
}

/* Card */
.recommended-card.catalog-page__card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    min-height: 528px;
    max-width: none;
    padding: 0 0 24px;

    overflow: hidden;
    transition: box-shadow .25s ease;
}

.recommended-card.catalog-page__card:hover {
    z-index: 30;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* Top */
.recommended-card.catalog-page__card .recommended-card__top {
    position: relative;
    height: 318px;
    margin: 0 auto 24px;
    /* padding: 24px 24px 0; */
    padding: 0;
    width: 100%;
}

/* Labels */
.catalog-page__labels {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 10;

    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.catalog-page__labels .recommended-card__label {
    position: static;
    width: 115px;
    padding: 10px 15px;
    border-radius: 0 6px 6px 0;
    color: #111;
	text-align: center;
}

.catalog-page__labels .recommended-card__label--red {
    background: rgba(246, 78, 55, 1);
    color: #fff;
}

/* Favorite */
.recommended-card.catalog-page__card .recommended-card__favorite {
    position: absolute;
    z-index: 12;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
}

/* Image preview */
.catalog-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.catalog-preview__link {
    display: flex;
    width: 100%;
    height: 100%;
}

.recommended-card.catalog-page__card .recommended-card__img {
    max-width: 100%;
    max-height: 90%;
    object-fit: cover;
    margin: 0 0 20px 0;
}

.catalog-preview__zones {
    position: absolute;
    inset: 0;
    z-index: 4;

    display: flex;
}

.catalog-preview__zone {
    flex: 1;
    cursor: pointer;
}

.catalog-preview__pagination {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    z-index: 5;

    display: flex;
    gap: 6px;
}

.catalog-preview__dot {
    flex: 1;
    height: 2px;
    border-radius: 10px;
    background: #d7d7d7;
    transition: background .2s ease;
}

.catalog-preview__dot.is-active {
    background: #111;
}

/* Content */
.catalog-page__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recommended-card.catalog-page__card .recommended-card__article {
    margin: 0 0 24px;
    padding: 0 24px;
    color: rgba(102, 102, 102, 1);
}

.catalog-page__name-link {
    display: block;
    color: inherit;
}

.recommended-card.catalog-page__card .recommended-card__name {
    min-height: 50px;
    margin: 0 0 24px;
    padding: 0 24px;

    color: rgba(37, 37, 37, 1);
    font-size: 18px;
    line-height: 1.15;
}

.recommended-card.catalog-page__card .recommended-card__price {
    margin-top: auto;
    padding: 0 24px;

    font: 500 28px/32px 'Inter', sans-serif;
    color: rgba(17, 17, 17, 1);
}

.catalog-page__old-price,
.recommended-card.catalog-page__card .recommended-card__price span {
    display: inline-block;
    margin-left: 12px;

    font: 500 20px/24px 'Inter', sans-serif;
    color: rgba(143, 146, 140, 1);
    text-decoration: line-through;
}

.catalog-page__price-request {
    font: 500 20px/24px 'Inter', sans-serif;
}

/* Basket */
.catalog-page__basket {
    position: static;

    max-height: 0;
    overflow: hidden;

    padding: 0 24px;

    opacity: 0;
    transform: translateY(10px);

    transition:
        max-height .3s ease,
        padding .3s ease,
        opacity .25s ease,
        transform .25s ease;
}
@media (min-width: 991px) {
	.recommended-card.catalog-page__card:hover .catalog-page__basket {
		max-height: 90px;
		padding: 24px 24px 0;

		opacity: 1;
		transform: translateY(0);
	}
}

.catalog-page__basket-button {
    width: 100%;
    height: 54px;
    justify-content: center;
}

.catalog-page__basket-button:disabled {
    opacity: .5;
    pointer-events: none;
}

/* Desktop: reserve place for button without jumps */
/* @media (hover: hover) and (min-width: 992px) { */
    /* .recommended-card.catalog-page__card { */
        /* padding-bottom: 96px; */
    /* } */
/* } */

/* Pager / description */
.catalog-page__pagination {
    margin-top: 56px;
}

.catalog-page__description {
    margin-top: 56px;
}

/* Adaptive */
@media (max-width: 1400px) {
    .catalog-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .catalog-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommended-card.catalog-page__card {
        padding-bottom: 24px;
    }

    .catalog-page__basket {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;

        padding: 0 24px;
        margin-top: 24px;
    }

    .catalog-preview__zones {
        display: none;
    }
}

@media (max-width: 600px) {
    .catalog-page {
        padding: 24px 0 48px;
    }

    .catalog-page__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.catalog-page__content .recommended-card__price span.catalog-page__price-request {
	text-decoration: none;
}

.catalog-page__basket-button-icon {
    display: none;
}

@media (max-width: 991px) {

    .catalog-page__basket-button {
        position: relative;

        width: 52px;
        height: 52px;
        min-height: 52px;

        padding: 0;

        border-radius: 50%;

        font-size: 0;
        color: transparent;
    }

    .catalog-page__basket-button::before {
        content: '';

        position: absolute;
        inset: 0;

        margin: auto;

        width: 24px;
        height: 24px;

        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 19C6.89543 19 6 19.8954 6 21C6 22.1046 6.89543 23 8 23C9.10457 23 10 22.1046 10 21C10 19.8954 9.10457 19 8 19Z' fill='%23252525'/%3E%3Cpath d='M18 19C16.8954 19 16 19.8954 16 21C16 22.1046 16.8954 23 18 23C19.1046 23 20 22.1046 20 21C20 19.8954 19.1046 19 18 19Z' fill='%23252525'/%3E%3Cpath d='M3 2H5L7.68 14.39C7.87712 15.3128 8.69316 15.9704 9.64 16H18.4C19.3468 15.9704 20.1629 15.3128 20.36 14.39L22 6H6' stroke='%23252525' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

}

@media (max-width: 991px) {

    .catalog-page__basket {
        position: absolute;
        right: 16px;
        bottom: 80px;
        left: auto;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;

        padding: 0;
        margin: 0;

        z-index: 20;

        pointer-events: auto;
		overflow:visible;
    }

    .catalog-page__basket-button {
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;

        border-radius: 50%;
        flex-shrink: 0;
    }

    .catalog-page__basket-button-text {
        display: none;
    }

    .catalog-page__basket-button-icon {
        display: block;
    }

}

.catalog-page__title {
    margin: 0 0 32px;
    font: 500 44px/120% 'Inter', sans-serif;
    color: #111;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.catalog-layout__sidebar {
    position: sticky;
    top: 96px;
}

.catalog-layout__content {
    min-width: 0;
}

@media (max-width: 600px) {
    .catalog-page__title {
        font-size: 28px;
    }
}

button.catalog-mobile-button.header-main__nav-catalog.flex_ai-c {
    display: none;
}

@media (max-width: 991px) {

    button.catalog-mobile-button.header-main__nav-catalog.flex_ai-c {
		display: inline-flex;
        width: 100%;
        margin: 0 auto 12px;
        justify-content: center;
    }

    .catalog-layout__sidebar {
        display: none;
    }
	
	.catalog-layout__content .container {
		padding: 0 0px;
	}
}

@media (max-width: 991px) {

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}

.catalog-sidebar a:hover {
    color: #B88200;
}

ul.directory {
    padding: 24px 0px 0;
}

.catalog-page__item .js-favorites svg {
    stroke: #ffc700;
}
.catalog-page__item .js-favorites.js-favorites--active svg {
	fill: #ffc700;
}