/* ============================================
   Product Detail Pages - Shared Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.breadcrumb span {
  color: var(--dark);
  font-weight: 500;
}

/* Product Detail Grid */
.product-detail {
  padding: 48px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 90px;
}

.gallery-main {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.gallery-main img {
  max-height: 400px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-light);
  flex-shrink: 0;
}

.thumb:hover {
  border-color: var(--text-muted);
}

.thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

/* Product Detail Info */
.product-detail-info {
  padding: 0;
}

.product-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background: #3182ce; color: #fff; }
.badge-sale { background: var(--primary); color: #fff; }
.badge-hot { background: #dd6b20; color: #fff; }
.badge-soldout-badge { background: #718096; color: #fff; }

.product-detail-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-detail-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stars {
  color: #f6ad55;
  font-size: 18px;
  letter-spacing: 2px;
}

.product-rating span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Price */
.product-detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 62, 62, 0.15);
}

.product-detail-price .price-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-price .price-current {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.price-save {
  font-size: 13px;
  font-weight: 600;
  color: #38a169;
  background: #f0fff4;
  padding: 4px 10px;
  border-radius: 50px;
}

/* Highlights */
.product-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.highlight svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.highlight strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.highlight span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Actions */
.product-actions-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.product-actions-detail .btn {
  gap: 10px;
}

.product-actions-detail .btn svg {
  width: 18px;
  height: 18px;
}

/* Guarantees */
.product-guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.guarantee svg {
  width: 18px;
  height: 18px;
  color: #38a169;
}

/* Feature Showcase */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-showcase-item.reverse {
  direction: rtl;
}

.feature-showcase-item.reverse > * {
  direction: ltr;
}

.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Specs Table */
.specs-section {
  background: var(--bg-light);
}

.specs-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 40%;
  background: rgba(0,0,0,0.02);
}

.specs-table td:last-child {
  color: var(--text-light);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Related Products / Accessory Cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 16px;
  padding: 0;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(49,130,206,0.14), 0 4px 12px rgba(0,0,0,0.08);
  border-color: rgba(49,130,206,0.3);
}

.related-card-img {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border-bottom: 1px solid rgba(226,232,240,0.6);
  overflow: hidden;
}

.related-card-img img, .related-card > img {
  max-height: 130px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-img img,
.related-card:hover > img {
  transform: scale(1.06);
}

.related-card > img {
  margin: 20px auto 12px;
  max-height: 130px;
  padding: 0 16px;
}

.related-card-body {
  padding: 16px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-card h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin: 12px 16px 4px;
  line-height: 1.4;
  flex: 1;
}

.related-card-cta {
  display: block;
  margin: 0 16px 16px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.related-card-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), #1e4e8c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49,130,206,0.35);
  color: #fff;
}

.related-card .price-current {
  display: block;
  margin: 4px 16px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Footer Simple */
.footer-simple {
  text-align: center;
  padding: 32px 0;
}

.footer-simple .footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-simple p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

  .gallery-main {
    min-height: 300px;
    padding: 20px;
  }

  .gallery-main img {
    max-height: 280px;
  }

  .product-detail-title {
    font-size: 24px;
  }

  .product-detail-price .price-current {
    font-size: 28px;
  }

  .product-highlights {
    grid-template-columns: 1fr;
  }

  .feature-showcase-item,
  .feature-showcase-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-detail-price {
    flex-wrap: wrap;
  }

  .product-guarantees {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    gap: 6px;
  }

  .thumb {
    width: 60px;
    height: 60px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
