.trends {
  padding: 48px 0 56px;
}

.trends__title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  color: var(--color-muted);
}

.trends__title::before,
.trends__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-line-strong);
}

.trends__title span {
  font-family: var(--font-site);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.trends__carousel {
  position: relative;
}

.trends__viewport {
  overflow: hidden;
}

.trends__track {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.45s ease;
  will-change: transform;
}

.trends__item {
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 0;
  display: flex;
}

.trends__nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.trends__nav:hover:not(:disabled) {
  color: var(--color-ink);
}

.trends__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.trends__nav .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.2;
}

.trends__nav--prev {
  left: -36px;
}

.trends__nav--next {
  right: -36px;
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: inherit;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1200 / 1500;
  background: var(--color-image-bg);
  overflow: hidden;
}

.product-card__image-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.2s ease;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid #bdb7b0;
  background: transparent;
  color: #6f675f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.product-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2c241c;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-card__quick {
  position: absolute;
  top: 52px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2c241c;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick {
  opacity: 1;
}

.product-card__quick:hover {
  background: #ffffff;
  transform: scale(1.04);
}

.product-card__quick-icon {
  width: 18px;
  height: 18px;
}

.product-card__favorite:hover {
  background: #ffffff;
  transform: scale(1.04);
}

.product-card__favorite--active {
  color: var(--color-accent);
}

.product-card__favorite-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.product-card__favorite--active .product-card__favorite-icon,
.product-card__favorite--active .product-card__favorite-icon path {
  fill: #2c241c;
  stroke: currentColor;
}

html[data-theme="dark"] .product-card__favorite,
html[data-theme="dark"] .product-card__quick {
  background: rgba(28, 24, 21, 0.82);
  color: #f2ebe3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .product-card__favorite:hover,
html[data-theme="dark"] .product-card__quick:hover {
  background: rgba(44, 38, 33, 0.95);
}

html[data-theme="dark"] .product-card__favorite--active {
  color: var(--color-accent);
}

html[data-theme="dark"] .product-card__favorite--active .product-card__favorite-icon,
html[data-theme="dark"] .product-card__favorite--active .product-card__favorite-icon path {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

.product-card__hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
}

.product-card__hover-area {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  text-decoration: none;
}

.product-card__dots {
  display: none;
}

.product-card__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.product-card__media:hover .product-card__nav,
.product-card__media:focus-within .product-card__nav {
  opacity: 1;
}

.product-card__nav:hover {
  background: var(--color-white);
}

.product-card__nav .icon,
.product-card__nav svg {
  width: 16px;
  height: 16px;
  display: block;
}

.product-card__nav--prev {
  left: 8px;
}

.product-card__nav--next {
  right: 8px;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 12px;
}

.product-card__info-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
}

.product-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0 0 6px;
  min-height: calc(1.45em * 2);
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-ink);
}

.product-card__brand {
  font-weight: 600;
}

.product-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.product-card__price {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-card__price-old {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: line-through;
}

.product-card__badge--sale {
  background: #2c241c;
  color: #fff;
}

.product-card__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card__cart:hover {
  background: transparent;
  color: var(--color-ink);
}

.product-card__cart--added {
  background: transparent;
  color: var(--color-ink);
}

@media (hover: none) {
  .product-card__hover-overlay {
    display: none;
  }

  .product-card__nav,
  .product-card__quick {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .trends__item {
    flex-basis: calc((100% - 36px) / 4);
  }

  .trends__nav--prev {
    left: -8px;
  }

  .trends__nav--next {
    right: -8px;
  }
}

@media (max-width: 900px) {
  .trends {
    padding: 36px 0 44px;
  }

  .trends__title span {
    font-size: 24px;
  }

  .trends__item {
    flex-basis: calc((100% - 24px) / 3);
  }
}

@media (max-width: 600px) {
  .trends__title {
    gap: 16px;
    margin-bottom: 24px;
  }

  .trends__title span {
    font-size: 22px;
  }

  .trends__item {
    flex-basis: calc((100% - 12px) / 2);
  }

  .trends__nav {
    top: 34%;
  }

  .trends__nav--prev {
    left: -4px;
  }

  .trends__nav--next {
    right: -4px;
  }
}
