﻿.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background-color: var(--color-surface);
  border: 0;
  border-radius: 0.5rem;
  box-shadow: none;
  transition: box-shadow var(--transition-duration) ease;
}

.product-card__main-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__media,
.product-card__content,
.product-card__body,
.product-card__footer {
  position: relative;
  z-index: 2;
}

.product-card__media {
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.product-card__slider {
  position: relative;
  background-color: #e8e1da;
}

.product-card__slider-wrapper {
  min-height: 338.66668701171875px;
}

.product-card__slide {
  aspect-ratio: 3 / 2;
}

.product-card__zoom-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__nav-button,
.product-card__zoom-button {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-duration) ease, transform var(--transition-duration) ease, background-color var(--transition-duration) ease;
}

.product-card__nav-button:hover,
.product-card__zoom-button:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

.product-card__nav-button {
  top: 50%;
  width: 2.6875rem;
  height: 2.6875rem;
  margin-top: -1.34375rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px var(--color-control-shadow);
}

.product-card__nav-button_type_prev {
  left: 1rem;
}

.product-card__nav-button_type_next {
  right: 1rem;
}

.product-card__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1875rem;
  height: 1.1875rem;
  color: #656565;
}

.product-card__nav-button_type_prev .product-card__nav-icon {
  transform: rotate(180deg);
}

.product-card__zoom-button {
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2.125rem;
  padding: 0.3125rem 0.25rem;
  border-radius: 0.5rem;
  gap: 0.625rem;
  background: #ffffff80;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(5px);
}

.product-card__zoom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #464646;
}

.product-card__icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.product-card__icon_type_arrow {
  width: 0.375rem;
  height: 0.5625rem;
}

.product-card__nav-icon .product-card__icon_type_arrow {
  width: 0.875rem;
  height: 0.625rem;
}

.product-card__icon_type_zoom {
  width: 1.125rem;
  height: 1.125rem;
  transform: rotate(-180deg);
}

.product-card__icon_type_like {
  width: 1.03125rem;
  height: 0.9375rem;
}

.product-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.25rem;
  width: 31.75rem;
  max-width: 100%;
  min-height: 22.875rem;
  padding: 0.625rem 1.25rem 0.875rem;
  background: #f6f6f6;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: background-color var(--transition-duration) ease;
}

.product-card__pagination {
  --swiper-pagination-top: 0px;
  --swiper-pagination-bottom: auto;
  position: relative;
  top: 0 !important;
  bottom: auto !important;
  z-index: 4;
  display: flex;
  gap: 0.3125rem;
  align-items: center;
  width: 29.25rem;
  height: 0.125rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.product-card__pagination .swiper-pagination-bullet {
  flex: 1 1 calc((468px - 25px) / 6);
  width: 4.614375rem;
  max-width: 4.614375rem;
  height: 0.125rem;
  margin: 0 !important;
  border-radius: 999px;
  background-color: #e6e6e6;
  opacity: 1;
}

.product-card__pagination .swiper-pagination-bullet-active {
  background-color: #ff5c00;
}

.product-card__description {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 31.75rem;
  max-width: 100%;
  height: 3.8125rem;
  padding: 1.25rem;
  color: #ffffff;
  background: #00000080;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity var(--transition-duration) ease, transform var(--transition-duration) ease;
  pointer-events: none;
}

.product-card__description-text {
  margin: 0;
  font-family: 'SF UI Display', sans-serif;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0;
  background-color: transparent;
}

.product-card__article {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  width: fit-content;
  min-height: 1.3125rem;
  margin: 0 0 0.1875rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #6f6f6f;
}

.product-card__article-value,
.product-card__article-separator {
  color: #6f6f6f;
}

.product-card__title {
  display: -webkit-box;
  margin: 0 0 1.25rem;
  overflow: hidden;
  font-family: 'SF UI Display', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 19.6875rem;
  max-width: 100%;
  min-height: 3.875rem;
  margin-bottom: 1.25rem;
}

.product-card__options-title {
  width: 9.25rem;
  max-width: 100%;
  min-height: 1.3125rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #6f6f6f;
  white-space: nowrap;
}

.product-card__options-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3125rem;
  width: 19.6875rem;
  max-width: 100%;
  min-height: 2.0625rem;
}

.product-card__option-button,
.product-card__like-button,
.product-card__buy-button,
.product-card__calc-link,
.product-card__zoom-link {
  position: relative;
  z-index: 3;
}

.product-card__option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.0625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1.125rem;
  white-space: nowrap;
  background-color: #f6f6f6;
  color: #32312f;
  font-family: 'SF UI Display', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
}

.product-card__option-button:hover {
  background-color: #ededed;
}

.product-card__option-button_state_active:hover {
  background-color: #32312f;
  color: #ffffff;
}

.product-card__option-button_state_active {
  gap: 0.4375rem;
  background-color: #32312f;
  color: #ffffff;
}

.product-card__option-button_state_active::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url('../../assets/galochka.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.6875rem 0.5rem;
  flex: 0 0 auto;
}

.product-card__like-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  flex: 0 0 auto;
}

.product-card__calc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  color: currentColor;
}

.product-card__calc-link:hover .product-card__calc-arrow {
  color: var(--color-accent);
}

.product-card__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  width: 29.25rem;
  max-width: 100%;
}

.product-card__price-block {
  display: flex;
  flex-direction: column;
  width: 29.25rem;
  max-width: 100%;
  min-height: 4.625rem;
  gap: 0.1875rem;
  margin-top: auto;
}

.product-card__price-label {
  width: fit-content;
  min-height: 1.3125rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: #656565;
}

.product-card__price-value {
  width: 14rem;
  min-height: 1.625rem;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  color: #32312f;
}

.product-card__price-note {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 14rem;
  min-height: 1.3125rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #656565;
}

.product-card__price-note-value {
  color: #32312f;
  font-weight: 600;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  width: 29.25rem;
  max-width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.875rem 0 0;
  border-top: 1px solid #e6e6e6;
  background-color: transparent;
}

.product-card__like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  min-width: 4.25rem;
  min-height: 2.125rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1.125rem;
  background-color: #f6f6f6;
  color: #9c9c9c;
  transition: color var(--transition-duration) ease;
}

.product-card__like-button:hover {
  color: #727272;
}

.product-card__like-button_state_active {
  color: var(--color-accent);
}

.product-card__like-count {
  font-family: 'SF UI Display', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: #32312f;
}

.product-card__calc-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3125rem;
  min-width: 10.3125rem;
  min-height: 1.3125rem;
  margin-left: auto;
  font-family: 'SF UI Display', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: #656565;
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

.product-card__calc-link:hover {
  color: var(--color-accent);
}

.product-card__buy-button {
  width: 14rem;
  height: 3.5rem;
  padding: 1.0625rem 1.875rem;
  border-radius: 0.875rem;
  background-color: #ff5c00;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  flex: 0 0 auto;
  display: none;
  transition: background-color var(--transition-duration) ease;
}

.product-card__buy-button:hover {
  background-color: var(--color-accent-dark);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: 0 0 20px 0 #00000026;
  }

  .product-card:hover .product-card__content {
    background: #ffffff;
  }

  .product-card:hover .product-card__description {
    opacity: 1;
    transform: translateY(0);
  }

  .product-card:hover .product-card__buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .product-card {
    width: 31.75rem;
    height: 44.041667rem;
    min-width: 24.375rem;
    max-width: 31.75rem;
    border-radius: 0.5rem;
  }

  .product-card__media {
    width: 31.75rem;
    height: 21.166667rem;
  }

  .product-card__slider {
    width: 31.75rem;
    height: 21.166667rem;
  }

  .product-card__slider-wrapper {
    width: 31.75rem;
    height: 21.166667rem;
    min-height: 21.166667rem;
  }

  .product-card__slide {
    width: 31.75rem;
    height: 21.166667rem;
  }

  .product-card__content {
    width: 31.75rem;
    height: 22.875rem;
    min-height: 22.875rem;
    gap: 1.25rem;
    padding: 0.625rem 1.25rem 0.875rem;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    background: #f6f6f6;
  }
}

@media (max-width: 767.98px) {
  .product-card {
    max-width: none;
    min-width: 0;
    height: auto;
  }

  .product-card__slider-wrapper {
    min-height: 0;
  }

  .product-card__slide {
    width: auto;
    height: auto;
    aspect-ratio: 336 / 235;
  }

  .product-card__nav-button {
    display: none;
  }

  .product-card__zoom-button {
    top: 0.75rem;
    right: 0.75rem;
  }

  .product-card__content {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 0.625rem 0.75rem 0.75rem;
    gap: 0.875rem;
  }

  .product-card__pagination {
    width: 100%;
    max-width: 100%;
  }

  .product-card__pagination .swiper-pagination-bullet {
    width: auto;
    max-width: none;
  }

  .product-card__description {
    display: none;
  }

  .product-card__body {
    padding: 0;
  }

  .product-card__title {
    margin-bottom: 0.875rem;
    font-size: 1.125rem;
  }

  .product-card__options,
  .product-card__options-list,
  .product-card__price-row,
  .product-card__price-block,
  .product-card__footer {
    width: 100%;
    max-width: 100%;
  }

  .product-card__options-list {
    flex-wrap: wrap;
  }

  .product-card__price-row {
    flex-wrap: wrap;
    row-gap: 0.875rem;
  }

  .product-card__price-value,
  .product-card__price-note {
    width: auto;
  }

  .product-card__footer {
    flex-wrap: wrap;
    row-gap: 0.625rem;
    min-height: 0;
    margin: 0;
    padding-top: 0.875rem;
  }

  .product-card__calc-link {
    width: 100%;
    justify-content: flex-end;
    order: 3;
  }

  .product-card__buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14rem;
    height: 3.5rem;
    margin-left: auto;
  }
}









