body {
  font-family: Arial, sans-serif;
  margin: 20px;
}
header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}
nav a {
  margin-right: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid #ddd;
  padding: 10px;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery {
  display: flex;
  gap: 10px;
}
.gallery-main img {
  width: 400px;
}
.gallery-thumbs img {
  width: 80px;
  cursor: pointer;
}
button {
  background: black;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
}
.gallery-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: hidden;
  max-width: 720px;
}

.gallery-track img {
  width: 200px;
  height: auto;
  border-radius: 12px;
}

.price-box {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  margin: 20px 0;
}

.price-box .total {
  margin-top: 12px;
  font-weight: bold;
}

.muted {
  color: #777;
  font-size: 14px;
}

.similar-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.similar-card {
  min-width: 160px;
}

.similar-card img {
  width: 100%;
  border-radius: 10px;
}
.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.gallery img {
  width: 320px;
  transition: opacity .15s, transform .2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.box {
  border: 1px solid #ddd;
  padding: 15px;
  max-width: 420px;
  margin: 20px 0;
}

.total {
  font-size: 18px;
  margin-top: 10px;
}

.actions button {
  margin-right: 10px;
}
.similar {
  display: flex;
  gap: 20px;
  overflow-x: auto;
}

.similar-card {
  min-width: 220px;
  border: 1px solid #ddd;
  padding: 10px;
}

.similar-gallery {
  display: flex;
  gap: 5px;
}

.similar-gallery img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}
/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  body {
    margin: 12px;
    font-size: 16px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .muted {
    font-size: 15px;
  }

  .gallery {
    justify-content: center;
    margin: 16px 0;
  }

  .gallery img {
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  .gallery button {
    font-size: 26px;
    padding: 8px 14px;
  }

  .price-box {
    max-width: 100%;
    padding: 16px;
  }

  .price-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .price-box label {
    font-size: 16px;
    font-weight: bold;
  }

  .price-box select,
  .price-box input {
    width: 100%;
    font-size: 18px;
    padding: 10px;
    margin: 6px 0 12px;
    border: 2px solid #ddd;
  }

  .total {
    font-size: 22px;
    margin-top: 12px;
  }

  .actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .actions button {
    font-size: 18px;
    padding: 14px;
  }

  .similar {
    gap: 12px;
    padding-bottom: 10px;
  }

  .similar-card {
    min-width: 220px;
  }

  .similar-card strong {
    font-size: 15px;
  }
}
/* ===== PRODUCT GALLERY ===== */
.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}

.gallery img {
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  cursor: pointer;
}

.gallery button {
  width: 44px;
  height: 44px;
  font-size: 26px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
}

/* fullscreen */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
}
/* ===== CONFIG ===== */
.price-box {
  max-width: 100%;
  padding: 16px;
  border-radius: 18px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty button {
  width: 42px;
  height: 42px;
  font-size: 22px;
  border-radius: 10px;
  background: #eee;
  border: none;
}

.qty input {
  width: 70px;
  text-align: center;
  font-size: 18px;
}
/* ===== MOBILE FIX: gallery size ===== */

.gallery-single {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.gallery-single img {
  max-width: 100%;
  max-height: 55vh;       /* ⬅ ограничиваем высоту */
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

/* стрелки */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.gallery-arrow.left {
  left: 10px;
}

.gallery-arrow.right {
  right: 10px;
}

/* мобильная адаптация */
@media (max-width: 768px) {
  .gallery-single img {
    max-height: 45vh;     /* ⬅ ещё меньше на телефоне */
  }
}

/* Иконки соцсетей */
.social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #111;
  transition: all .15s ease;
  text-decoration: none;
}

.social .icon:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.social .icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}


/* ===== RUKEA: Social icons responsive fix ===== */

/* базовые размеры (десктоп/планшет) */
.social { 
  display:flex; 
  gap:14px; 
  align-items:center; 
  flex-wrap: wrap;
}

.social .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #111;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.social .icon:hover { 
  background:#e5e5e5; 
  transform: translateY(-1px);
}

/* КЛЮЧЕВО: фиксируем размер SVG, чтобы не раздувало на телефоне */
.social .icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

/* мобильная версия */
@media (max-width: 480px) {
  .social {
    gap: 10px;
  }

  .social .icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .social .icon svg {
    width: 16px;
    height: 16px;
  }
}

/* ===== RUKEA: Footer ===== */
.footer{
  margin-top: 28px;
  padding: 28px 16px;
  border-top: 1px solid #e9e9e9;
  background: #fff;
}

.footer__grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 1fr 1.4fr;
  align-items: start;
}

.footer h3{
  margin: 0 0 10px 0;
  font-size: 18px;
}

.footer .muted{
  color: #666;
}

.footer__contacts{
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.footer__link{
  text-decoration: none;
  color: #111;
}

.footer__link:hover{
  text-decoration: underline;
}

.footer__list{
  margin: 0;
  padding-left: 18px;
  color: #111;
}

.reviews{
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.review{
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafafa;
}

.review p{
  margin: 6px 0 0 0;
  color: #333;
  line-height: 1.35;
}

.footer__bottom{
  max-width: 1200px;
  margin: 18px auto 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #111;
}

/* адаптация */
@media (max-width: 900px){
  .footer__grid{
    grid-template-columns: 1fr;
  }
  .reviews{
    grid-template-columns: 1fr;
  }
}

