.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-view {
  position: relative;
  background: var(--wenge-card);
  border: 1px solid var(--wenge-border);
  border-radius: var(--radius-lg);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main-view img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  ;
  transition: transform 0.3s ease;
}

.gallery-main-view:hover img {
  transform: scale(1.3);
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid var(--wenge-border);
  background: var(--wenge-card);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  ;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--yellow-main);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.product-sku {
  font-size: 13px;
  color: var(--text-muted);
}

.product-title-large {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.product-rating-large {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.product-rating-large .stars {
  color: var(--yellow-main);
  display: flex;
  gap: 2px;
}

.product-price-section {
  background: var(--wenge-card);
  border: 1px solid var(--wenge-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.product-price-large-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.price-main {
  font-size: 36px;
  font-weight: 800;
  color: var(--yellow-main);
  line-height: 1;
}

.price-old-large {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.option-group {
  margin-bottom: 20px;
}

.option-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-label span {
  color: var(--text-muted);
  font-weight: 500;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wenge-surface);
  border: 1px solid var(--wenge-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.color-pill.active,
.color-pill:hover {
  border-color: var(--yellow-main);
  background: var(--wenge-card);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.config-options {
  display: flex;
  gap: 10px;
}

.config-btn {
  background: var(--wenge-surface);
  border: 1px solid var(--wenge-border);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.config-btn.active,
.config-btn:hover {
  border-color: var(--yellow-main);
  background: rgba(245, 184, 0, 0.1);
  color: var(--yellow-main);
}

.product-action-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.quantity-picker {
  display: flex;
  align-items: center;
  background: var(--wenge-surface);
  border: 1px solid var(--wenge-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 48px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--wenge-card);
  color: var(--yellow-main);
}

.quantity-picker input {
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.tabs-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--wenge-border);
}

.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--wenge-border);
  margin-bottom: 32px;
  overflow: hidden;

}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--yellow-main);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow-main);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--wenge-border);
}

.specs-table td {
  padding: 14px 16px;
  font-size: 14px;
}

.specs-table td:first-child {
  color: var(--text-secondary);
  width: 35%;
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.review-item {
  background: var(--wenge-card);
  border: 1px solid var(--wenge-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 700;
  color: var(--text-primary);
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.rewiev-stars {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.related-products-section {
  padding: 20px 0 80px;
  border-top: 1px solid var(--wenge-border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .gallery-main-view {
    height: 380px;
  }
}