/* ===== Главная страница ===== */

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1); /* уходит под прозрачную шапку */
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('../img/hero/hero.jpg');
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--header-h);
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  max-width: 20em;
  margin: 0 auto 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 640px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.hero__cta { display: inline-flex; }

/* Секция bestseller */
.bestseller {
  padding: 90px 24px 60px;
  text-align: center;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-lead {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 15px;
}
.section-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 14px; font-weight: 500;
  margin-bottom: 46px;
}
.section-link:hover { opacity: 0.7; }

/* Сетка карточек */
.product-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
  text-align: left;
}

/* Карточка */
.product-card {
  background: var(--color-bg-alt);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
}
.product-card__body {
  padding: 16px 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card__title {
  font-size: 14px; font-weight: 500;
  line-height: 1.35;
  min-height: 2.7em;
  color: var(--color-text);
}
.product-card__price {
  font-size: 15px;
}
.product-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.swatches {
  display: inline-flex; gap: 6px;
}
.swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  display: inline-block;
}

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .bestseller { padding: 60px 16px 40px; }
  .hero { height: 100vh; min-height: 560px; }
  .hero__bg { background-image: url('../img/hero/hero-mobile.jpg'); }
}
