:root {
  --primary: #ff6a00;
  --primary-dark: #d45800;
  --bg: #ffffff;
  --text: #222;
  --gray: #666;
  --border: #e0e0e0;
  --radius: 14px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.product-images {
  width: 100%;
}

.main-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #eee;
}

.thumbs {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbs .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.thumbs .thumb:hover {
  opacity: 0.8;
}

.thumbs .thumb.active {
  border-color: #ff6a00;
}



.footer {
  margin-top: 60px;
  background: #1e1e1e;
  color: #ddd;
  padding: 40px 20px 20px;
  font-family: "Inter", sans-serif;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;      /* ВАЖНО → центрирование */
  padding: 0 15px;     /* ВАЖНО → равные отступы */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 280px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-col p,
.footer-col a {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ff6a00;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
  }
}



.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.review-avatar::after {
  content: attr(data-letter);
}

/* Цветовые классы */

.avatar-blue    { background:#4f8ff7; }
.avatar-green   { background:#49c774; }
.avatar-purple  { background:#a26bff; }
.avatar-orange  { background:#ff9147; }
.avatar-red     { background:#ff5c5c; }
.avatar-cyan    { background:#4fd1c5; }
.avatar-yellow  { background:#f2c94c; }
.avatar-gray    { background:#9ea3a8; }


.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.review-rating {
  color: #ffb400;
  font-size: 16px;
  font-weight: 700;
}


.qty-select, .order-form input, .order-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 12px;
}

.total-block {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 600;
}

.order-submit-btn {
  width: 100%;
  background: var(--primary);
  border: none;
  padding: 15px;
  color: #fff;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}

.order-submit-btn:hover {
  background: var(--primary-dark);
}



/* --- Горизонтальный слайдер похожих товаров --- */
/* === СЛАЙДЕР «ПОХОЖИЕ ТОВАРЫ» — стиль Ozon === */

.related-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.related-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  scroll-snap-type: x mandatory;
}

.related-track::-webkit-scrollbar {
  display: none;
}

/* Одна карточка */
.related-card {
  flex: 0 0 220px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .25s, box-shadow .25s;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Фото */
.related-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

/* Название/Цена */
.related-name {
  font-size: 16px;
  margin: 10px 0 4px;
  font-weight: 600;
}
.related-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* Кнопки */
.related-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 88px;
  background: white;
  border: none;
  border-radius: 12px;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 20;
  transition: .25s;
  color: var(--primary);
}

.related-btn:hover {
  background: var(--primary);
  color: #fff;
}

.related-prev { left: -12px; }
.related-next { right: -12px; }



/* Центрируем блоки под карточкой */
.related-section,
.reviews-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 15px;
}


/* ---------- HEADER ---------- */
.header {
  padding: 18px 15px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.back-btn {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .2s;
}

.back-btn:hover {
  opacity: 0.7;
}

/* ---------- MAIN PRODUCT CARD ---------- */

.product-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Левая колонка */
.product-images {
  flex: 1 1 460px;
  min-width: 360px;
}

.slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fafafa;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  width: 48px;
  height: 90px;
  transition: .2s;
}
.slider button:hover {
  background: rgba(0,0,0,0.55);
}

.slider .prev { left: 0; }
.slider .next { right: 0; }

/* Правая колонка */
.product-info {
  flex: 1 1 420px;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-info h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.product-info p {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.45;
}

.price-block {
  background: #fff5e9;
  padding: 18px;
  border-radius: var(--radius);
  border-left: 5px solid var(--primary);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);
}

.order-btn {
  margin-top: 10px;
  background: var(--primary);
  border: none;
  padding: 15px 22px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s;
}
.order-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------- RELATED PRODUCTS ---------- */

.related-section {
  margin-top: 80px;
  width: 100%;
}

.related-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.related-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: .25s;
}
.related-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.related-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.related-name {
  font-size: 16px;
  margin: 12px 0 6px;
  font-weight: 600;
  color: #333;
}

.related-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* ---------- REVIEWS ---------- */

.reviews-section {
  margin-top: 80px;
  width: 100%;
}

.reviews-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.review-card {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.review-author {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.review-text {
  color: var(--gray);
  line-height: 1.4;
  font-size: 15px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {
  .product-container {
    flex-direction: column;
    gap: 30px;
  }
  .slider {
    height: 330px;
  }
}

