/* ── CATALOG PAGE ─────────────────────────────────────────────────────────── */
.catalog-hero {
  background: var(--color-dark);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.catalog-hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.catalog-hero .container { position: relative; z-index: 1; }
.catalog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #fff;
  letter-spacing: .04em;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}
.catalog-filters h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--color-black);
}
.filter-list { list-style: none; margin-bottom: 32px; }
.filter-list li + li { margin-top: 8px; }
.filter-list a {
  font-size: .875rem;
  color: var(--color-gray);
  transition: color var(--transition);
  padding: 4px 0;
  display: block;
}
.filter-list a:hover, .filter-list a.active { color: var(--color-red); font-weight: 700; }
.color-filter { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── PRODUCT PAGE ─────────────────────────────────────────────────────────── */
.product-page { padding: 40px 0 80px; }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Slider */
.slider__main {
  position: relative;
  background: #f5f5f5;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.slider__track { display: flex; height: 100%; position: relative; }
.slider__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .35s ease;
  display: flex; align-items: center; justify-content: center;
}
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.85);
  border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }
.slider__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.slider__thumb {
  width: 72px; height: 72px; padding: 0;
  border: 2px solid transparent;
  border-radius: 4px; overflow: hidden;
  cursor: pointer; background: none;
  transition: border-color var(--transition);
}
.slider__thumb.is-active { border-color: var(--color-red); }
.slider__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumb */
.breadcrumb {
  font-size: .8rem; color: var(--color-gray);
  margin-bottom: 16px; display: flex; gap: 8px; align-items: center;
}
.breadcrumb a:hover { color: var(--color-red); }

/* Product info */
.product-info__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px; line-height: 1.15;
}
.product-info__short-desc { color: var(--color-gray); margin-bottom: 20px; line-height: 1.7; }
.product-info__price {
  font-family: var(--font-heading);
  font-size: 2rem; color: var(--color-red);
  margin-bottom: 24px;
}

/* Product options */
.product-option { margin-bottom: 24px; }
.product-option__label {
  font-size: .875rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.selected-label { color: var(--color-red); text-transform: none; font-weight: 400; }

/* Color swatches */
.color-swatches { display: flex; gap: 10px; }
.color-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.is-selected { border-color: var(--color-black); box-shadow: 0 0 0 2px #fff inset; }
.color-swatch--red    { background: #BF0013; }
.color-swatch--yellow { background: #C8900A; }
.color-swatch--brown  { background: #4A2010; }
.color-swatch--orange { background: #C04A08; }

/* Weight selector */
.weight-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.weight-btn {
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff; font-size: .85rem;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.weight-btn:hover  { border-color: var(--color-red); color: var(--color-red); }
.weight-btn.is-selected { background: var(--color-red); color: #fff; border-color: var(--color-red); }

/* Qty + Add to cart */
.product-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.qty-wrap {
  display: flex; align-items: center;
  border: 2px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; height: 50px;
}
.qty-btn {
  width: 42px; height: 100%;
  background: var(--color-cream);
  border: none; font-size: 1.3rem;
  cursor: pointer; transition: background var(--transition);
  font-family: var(--font-body);
}
.qty-btn:hover { background: var(--color-border); }
.qty-input {
  width: 52px; text-align: center;
  border: none; border-left: 2px solid var(--color-border); border-right: 2px solid var(--color-border);
  font-size: 1rem; height: 100%;
  font-family: var(--font-body);
}
.qty-input:focus { outline: none; }

/* Product meta — основные стили в main.css, здесь только отступ */
.product-meta { margin-bottom: 28px; }

/* Product description */
.product-info__desc {
  border-top: 1px solid var(--color-border);
  padding-top: 24px; margin-top: 8px;
  color: var(--color-gray); line-height: 1.75;
  font-size: .9rem;
}
.product-info__desc p { margin-bottom: 12px; }
.product-info__desc strong { color: var(--color-black); }

/* Responsive */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { display: flex; gap: 32px; flex-wrap: wrap; }
  .product-layout   { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .catalog-hero    { padding: 32px 0 20px; }
  .catalog-layout  { padding-top: 24px; padding-bottom: 48px; }
  .product-page    { padding: 24px 0 48px; }
  .slider__thumbs  { gap: 6px; }
  .slider__thumb   { width: 56px; height: 56px; }
  .color-swatches  { gap: 8px; }
  .color-swatch    { width: 30px; height: 30px; }
  .qty-wrap        { max-width: 100%; }
  .product-cta     { flex-direction: column; }
  .product-cta .btn { width: 100%; justify-content: center; }
}
