/* =========================
   PRODUCT PAGE (новый стиль)
   ========================= */

.product-page {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.gallery {
  flex: 1;
  max-width: 520px;
}

.gallery-main {
  border-radius: 14px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

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

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

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

.gallery-thumbs img:hover {
  border-color: var(--brand-blue);
  transform: scale(1.05);
}


/* ---------- Product Info ---------- */
.info {
  flex: 1;
  color: #111;
}

.info h1 {
  font-size: 28px;
  font-weight: 700;
  color: #10263A;
  margin-bottom: 14px;
}

.product-meta {
  color: #6b7788;
  font-size: 15px;
  margin-bottom: 6px;
}

.price {
  font-size: 28px;
  font-weight: 800;
  color: var(--red-price);
  margin: 20px 0 12px;
}

.stock-status {
  font-size: 15px;
  color: #0B9B61;
  margin-bottom: 22px;
}

.btn-buy {
  background: var(--brand-blue);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background .25s;
}

.btn-buy:hover {
  background: var(--brand-blue-dark);
}

.btn-buy:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  border-bottom: 2px solid #E6EAF1;
  margin: 40px auto 0;
  max-width: 1200px;
}

.tab {
  background: transparent;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  color: #5a6473;
  cursor: pointer;
  transition: color .2s;
  font-size: 15px;
}

.tab.active {
  color: var(--brand-blue);
  border-bottom: 3px solid var(--brand-blue);
}

.tab:hover {
  color: var(--brand-blue-dark);
}

.tab-content {
  display: none;
  padding: 28px 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #2b333f;
}

.tab-content.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  border-radius: 12px;
  overflow: hidden;
}

.specs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.specs-table tr:nth-child(odd) {
  background: #fafbfc;
}

.specs-table td:first-child {
  color: #6b7788;
  width: 40%;
}


/* ---------- Video ---------- */
.product-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.product-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-page {
    flex-direction: column;
    padding: 20px;
  }
  .gallery {
    max-width: 100%;
  }
  .info {
    width: 100%;
  }
  .info h1 {
    font-size: 24px;
  }
  .price {
    font-size: 24px;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tab {
    flex: 1;
    text-align: center;
  }
  .specs-table td {
    font-size: 14px;
  }
}
