/* Product carousel — homepage redesign ("Best sellers").
   Horizontal scroll-snap carousel. See design_handoff_homepage/README.md §6. */

.pc {
  background: var(--pc-bg, #ffffff);
  color: #1f1f1f;
  padding: 80px 0;
}

.pc__inner {
  display: block;
  padding: 0 24px;
}

/* Header */
.pc__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.pc__eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b6357;
}

.pc__heading {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.pc__header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pc__link {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #1f1f1f;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  white-space: nowrap;
}

.pc__arrows {
  display: flex;
  gap: 6px;
}

.pc__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(36, 36, 36, 0.18);
  color: #1f1f1f;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.pc__arrow:hover:not(:disabled) {
  background: #f2efe8;
}

.pc__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Track */
.pc__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pc__track::-webkit-scrollbar {
  display: none;
}

/* Card */
.pc-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #1f1f1f;
  text-decoration: none;
}

.pc-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2efe8;
}

.pc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.02, 0.01, 0, 0.95);
}

.pc-card:hover .pc-card__img {
  transform: scale(1.04);
}

.pc-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 6px 10px;
  background: #1f1f1f;
  color: #f2efe8;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pc-card__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pc-card__cat {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6357;
}

.pc-card__name {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.pc-card__price {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.pc-card__price-sale {
  color: #79482c;
}

.pc-card__price-was {
  margin-left: 4px;
  font-weight: 400;
  color: #6b6357;
}

.pc__empty {
  padding: 60px 0;
  text-align: center;
  color: #6b6357;
}

/* Tablet */
@media screen and (min-width: 600px) {
  .pc-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media screen and (min-width: 768px) {
  .pc-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

/* Desktop */
@media screen and (min-width: 990px) {
  .pc {
    padding: 100px 0 110px;
  }

  .pc__inner {
    padding: 0 96px;
  }

  .pc__header {
    margin-bottom: 48px;
  }

  .pc-card {
    flex-basis: calc((100% - 60px) / 4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-card__img {
    transition: none;
  }
}
