/* Product Detail Page Styles */

.product-gallery {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}

.product-gallery .main-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: var(--gray-100);
  border-radius: 8px;
  margin-bottom: 16px;
}

.product-gallery .thumbnail-list {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.product-gallery .thumbnail {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
  border-color: var(--primary);
}

.tab-content img,
.tab-pane img {
  max-width: 100%;
  height: auto;
}

.product-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
}

.product-info-card h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.price-section {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.price-section .current-price {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a !important;
}

.price-section .price-range {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.price-tier-table {
  width: 100%;
  margin-top: 16px;
}

.price-tier-table th,
.price-tier-table td {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.price-tier-table th {
  background: var(--gray-50);
  font-weight: 600;
}

/* Specifications Table */
.specs-table {
  width: 100%;
}

.specs-table tr td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.specs-table tr td:first-child {
  width: 40%;
  background: var(--gray-50);
  font-weight: 500;
  color: var(--gray-700);
}

/* Supplier Info Sidebar */
.supplier-sidebar {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
}

.supplier-sidebar .supplier-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.supplier-sidebar .supplier-logo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
}

.supplier-sidebar .supplier-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.supplier-sidebar .stat-item {
  text-align: center;
  padding: 12px;
  background: var(--gray-100);
  border-radius: 8px;
}

.supplier-sidebar .stat-item .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.supplier-sidebar .stat-item .label {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* GlobalSources-style Product Detail */
.gs-gallery { background: #fff; border-radius: 8px; }
.gs-main-img-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; }
.gs-main-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gs-thumb-row { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gs-thumb { width: 64px; height: 64px; border: 2px solid var(--gray-200); border-radius: 4px; cursor: pointer; overflow: hidden; flex-shrink: 0; }
.gs-thumb.active, .gs-thumb:hover { border-color: var(--primary); }
.gs-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gs-product-info { padding-left: 8px; }
.gs-product-title { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-bottom: 12px; color: var(--dark); }
.gs-price-box { background: #f5f5f5; border-left: 3px solid #333; padding: 12px 16px; margin-bottom: 16px; border-radius: 0 6px 6px 0; }
.gs-price { font-size: 1.5rem; font-weight: 700; color: #1a1a1a !important; }
.gs-price-unit { font-size: 0.875rem; color: var(--gray-600); margin-left: 4px; }

.gs-quick-specs { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.875rem; }
.gs-quick-specs td { padding: 7px 12px; border-bottom: 1px solid var(--gray-100); }
.gs-spec-label { color: var(--gray-600); width: 140px; white-space: nowrap; background: var(--gray-100); font-weight: 500; }
.gs-spec-value { color: var(--dark); }

.gs-keywords { margin-bottom: 16px; }
.gs-keyword-tag { display: inline-block; background: var(--gray-100); color: var(--gray-700); font-size: 0.75rem; padding: 3px 10px; border-radius: 3px; margin: 0 4px 4px 0; }

.gs-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.gs-btn-inquiry { flex: 1; min-width: 160px; }
.gs-btn-contact { flex: 1; min-width: 160px; }
.gs-action-icons { display: flex; gap: 12px; margin-left: 8px; }
.gs-action-icons .btn-link { color: var(--gray-500); font-size: 1.1rem; }
.gs-action-icons .btn-link:hover { color: var(--primary); }

.gs-assurance-bar { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--gray-600); padding-top: 12px; border-top: 1px solid var(--gray-200); }

.gs-section-title { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }

.gs-related-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.gs-related-card { flex-shrink: 0; width: 140px; text-decoration: none; color: var(--dark); text-align: center; }
.gs-related-card img { width: 140px; height: 140px; object-fit: cover; border: 1px solid var(--gray-200); border-radius: 4px; margin-bottom: 6px; }
.gs-related-name { font-size: 0.75rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.gs-related-price { font-size: 0.8rem; font-weight: 600; color: #1a1a1a !important; }
.gs-related-card:hover img { border-color: var(--primary); }

.gs-specs-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.gs-specs-table td { padding: 8px 14px; border: 1px solid var(--gray-200); }
.gs-spec-name { background: var(--gray-100); color: var(--gray-700); font-weight: 500; width: 200px; white-space: nowrap; }
.gs-spec-val { color: var(--dark); }

.gs-desc-title { font-size: 1.1rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.gs-desc-content { font-size: 0.9rem; line-height: 1.7; color: var(--gray-800); }
.gs-desc-content img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 4px; }
.gs-desc-images { margin-top: 20px; }
.gs-desc-img-wrap { margin-bottom: 16px; }
.gs-desc-img-wrap img { width: 100%; border-radius: 4px; }

.gs-supplier-sidebar { position: sticky; top: 20px; }
.gs-supplier-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; padding: 20px; text-align: center; }
.gs-supplier-logo-wrap { margin-bottom: 10px; }
.gs-supplier-logo { max-width: 80px; max-height: 80px; }
.gs-supplier-logo-placeholder { width: 60px; height: 60px; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.gs-supplier-name { font-size: 0.9rem; font-weight: 600; margin: 8px 0 4px; }
.gs-supplier-location { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 6px; }
.gs-verified-badge { display: inline-block; font-size: 0.75rem; color: var(--success); font-weight: 500; margin-bottom: 10px; }
.gs-supplier-stats-mini { display: flex; justify-content: center; gap: 12px; font-size: 0.75rem; color: var(--gray-600); margin-bottom: 10px; }
.gs-stat-mini strong { color: var(--dark); }
.gs-supplier-certs { margin-bottom: 8px; }
.gs-cert-tag { display: inline-block; font-size: 0.7rem; background: #eef6ff; color: var(--primary); padding: 2px 8px; border-radius: 3px; margin: 2px; }

.gs-shipping-table { font-size: 0.875rem; }

.gs-inline-inquiry textarea { border: 2px solid var(--gray-200); resize: vertical; }
.gs-inline-inquiry textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 0.15rem rgba(26,95,180,0.15); }

@media (max-width: 991px) {
  .gs-product-info { padding-left: 0; margin-top: 20px; }
  .gs-supplier-sidebar { position: static; margin-top: 20px; }
  .gs-related-card { width: 120px; }
  .gs-related-card img { width: 120px; height: 120px; }
}

/* Product Certificates */
.cert-card { border-color: var(--gray-200) !important; }
.cert-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); border-color: var(--primary) !important; background: #fff !important; }
