/* =====================================================
   Product Detail Page Styles
   ===================================================== */

/* Product Hero */
.product-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2c2200 100%);
  padding: 140px 0 60px;
  color: #fff;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--gold-light);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255,255,255,0.9);
}

.product-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 12px;
}

.product-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
}

/* Product Main Layout */
.product-main {
  background: var(--bg-white);
  padding: 60px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: #fff;
}

.thumbnail-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.thumbnail-list .thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.thumbnail-list .thumb:hover,
.thumbnail-list .thumb.active {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Product Info Detail */
.product-info-detail {
  padding-top: 8px;
}

.product-info-detail h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
}

.quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.product-actions {
  display: flex;
  gap: 16px;
}

.btn-outline-dark {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: #fff;
}

/* Product Details Tabs */
.product-details {
  background: var(--bg-light);
}

.details-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.details-tabs .tab-btn {
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
}

.details-tabs .tab-btn:hover,
.details-tabs .tab-btn.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--dark);
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--dark);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: var(--bg-light);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 30%;
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-item {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.app-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.app-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.app-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.app-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-box {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.feature-box h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Related Products */
.related-products {
  background: var(--bg-white);
}

.related-products .products-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-section .btn-primary:hover {
  background: var(--dark);
  color: var(--gold-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-gallery {
    position: static;
  }
  
  .main-image img {
    height: 300px;
  }
  
  .applications-grid,
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 120px 0 40px;
  }
  
  .thumbnail-list {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .quick-specs {
    grid-template-columns: 1fr;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .details-tabs {
    flex-wrap: wrap;
  }
  
  .details-tabs .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .applications-grid,
  .features-list,
  .related-products .products-grid {
    grid-template-columns: 1fr;
  }
  
  .spec-table {
    font-size: 13px;
  }
  
  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
  }
}
