/* ============================================
   Product Detail Page Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #c5a059;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* Product Detail Grid */
.product-detail {
  padding: 40px 0;
  background: #fff;
}

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

/* Gallery */
.product-gallery {
  position: sticky;
  top: 20px;
  align-self: start;
}

.gallery-main {
  position: relative;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 1;
}

.gallery-main-img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  background: #f8f8f8;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-thumb:hover {
  border-color: #c5a059;
}

.gallery-thumb.active {
  border-color: #c5a059;
}

.gallery-thumb img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  display: block;
}

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

.product-info-header {
  margin-bottom: 24px;
}

.product-sku {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.product-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #0b2545;
  line-height: 1.3;
  margin-bottom: 12px;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.product-detail-rating .stars {
  color: #c5a059;
  font-size: 16px;
  letter-spacing: 2px;
}

.review-link {
  color: #c5a059;
  text-decoration: none;
}

.review-link:hover {
  text-decoration: underline;
}

.separator {
  color: #ddd;
}

.sold-count {
  color: #666;
  font-size: 13px;
}

/* Pricing */
.product-pricing {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-label {
  font-size: 14px;
  color: #666;
  min-width: 140px;
}

.price-main {
  font-size: 32px;
  font-weight: 700;
  color: #0b2545;
}

.price-note {
  font-size: 13px;
  color: #999;
}

.price-secondary {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.price-save {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 600;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 3px;
}

.price-row-secondary {
  padding-top: 8px;
  border-top: 1px solid #eee;
}

/* Volume Discounts */
.volume-discounts {
  margin-bottom: 24px;
}

.volume-discounts h4 {
  font-size: 15px;
  font-weight: 600;
  color: #0b2545;
  margin-bottom: 12px;
}

.discount-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.discount-table th {
  background: #0b2545;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

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

.discount-table tr:hover {
  background: #f9f9f9;
}

.discount-table .highlight-row {
  background: #fff8e1;
}

.discount-table .highlight-row td {
  font-weight: 600;
  color: #c5a059;
}

/* Product Actions */
.product-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-selector label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 0 12px;
  background: #f5f5f5;
  height: 44px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ddd;
}

.qty-btn {
  width: 36px;
  height: 44px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e8e8e8;
}

.qty-input {
  width: 50px;
  height: 44px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.btn-add-to-cart {
  flex: 1;
  min-width: 200px;
  height: 48px;
  background: #c5a059;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s, transform 0.2s;
}

.btn-add-to-cart:hover {
  background: #b08d4a;
  transform: translateY(-1px);
}

.btn-wishlist {
  height: 48px;
  padding: 0 20px;
  background: #fff;
  color: #0b2545;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.3s, color 0.3s;
}

.btn-wishlist:hover {
  border-color: #c5a059;
  color: #c5a059;
}

/* Quick Info */
.product-quick-info {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px 20px;
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.quick-info-item:last-child {
  border-bottom: none;
}

.quick-info-item a {
  color: #c5a059;
  text-decoration: none;
}

.quick-info-item a:hover {
  text-decoration: underline;
}

/* Product Tabs */
.product-tabs-section {
  padding: 40px 0 60px;
  background: #fff;
  border-top: 1px solid #e8e8e8;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 32px;
  gap: 0;
}

.tab-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: #0b2545;
}

.tab-btn.active {
  color: #0b2545;
  border-bottom-color: #c5a059;
}

.tab-content {
  display: none;
}

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

.tab-inner {
  max-width: 1000px;
}

/* Description Tab */
.description-content {
  flex: 1;
}

.description-content h2 {
  font-size: 22px;
  color: #0b2545;
  margin-bottom: 16px;
}

.description-content h3 {
  font-size: 18px;
  color: #0b2545;
  margin-top: 24px;
  margin-bottom: 12px;
}

.description-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

.description-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.description-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 15px;
  color: #444;
}

.description-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  background: #c5a059;
  border-radius: 50%;
}

.tab-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

.description-sidebar {
  flex-shrink: 0;
}

.sidebar-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 24px;
}

.sidebar-card h4 {
  font-size: 16px;
  color: #0b2545;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c5a059;
}

.highlight-list {
  list-style: none;
  padding: 0;
}

.highlight-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #eee;
}

.highlight-list li:last-child {
  border-bottom: none;
}

/* Specifications Tab */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr:nth-child(even) {
  background: #f9f9f9;
}

.spec-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.spec-label {
  font-weight: 600;
  color: #0b2545;
  width: 200px;
}

/* Shipping Tab */
.shipping-content h2 {
  font-size: 20px;
  color: #0b2545;
  margin-bottom: 16px;
  margin-top: 32px;
}

.shipping-content h2:first-child {
  margin-top: 0;
}

.shipping-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

.shipping-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.shipping-option {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 24px;
}

.shipping-option h4 {
  font-size: 16px;
  color: #0b2545;
  margin-bottom: 8px;
}

.shipping-price {
  font-size: 18px;
  font-weight: 700;
  color: #c5a059;
  margin-bottom: 8px;
}

/* Reviews Tab */
.reviews-header {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.reviews-summary {
  text-align: center;
  min-width: 150px;
}

.reviews-avg {
  font-size: 48px;
  font-weight: 700;
  color: #0b2545;
  display: block;
  line-height: 1;
}

.reviews-stars {
  color: #c5a059;
  font-size: 20px;
  letter-spacing: 2px;
  margin: 8px 0;
}

.reviews-count {
  font-size: 13px;
  color: #666;
}

.reviews-breakdown {
  flex: 1;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #666;
}

.breakdown-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #c5a059;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.reviews-list {
  margin-bottom: 24px;
}

.review-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-stars {
  color: #c5a059;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-title {
  font-size: 16px;
  color: #0b2545;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
}

.review-author em {
  color: #2e7d32;
  font-style: normal;
  font-weight: 500;
}

.btn-load-reviews {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 12px 24px;
  background: #fff;
  color: #0b2545;
  border: 2px solid #0b2545;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-load-reviews:hover {
  background: #0b2545;
  color: #fff;
}

/* Related Products */
.related-section {
  padding: 60px 0;
  background: #f5f5f5;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.text-left {
  text-align: left;
}

/* Responsive */
@media (max-width: 1199px) {
  .product-detail-grid {
    gap: 32px;
  }

  .gallery-main-img {
    height: 380px;
  }

  .tab-inner {
    grid-template-columns: 1fr;
  }

  .description-sidebar {
    order: -1;
  }

  .shipping-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-gallery {
    position: static;
  }

  .gallery-main-img {
    height: 320px;
  }

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

  .price-main {
    font-size: 26px;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity-selector {
    justify-content: center;
  }

  .btn-add-to-cart {
    min-width: auto;
  }

  .tabs-nav {
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .reviews-header {
    flex-direction: column;
    gap: 20px;
  }

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

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-thumb img {
    height: 60px;
  }

  .discount-table {
    font-size: 13px;
  }

  .discount-table th,
  .discount-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 479px) {
  .gallery-main-img {
    height: 260px;
  }

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

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

  .price-main {
    font-size: 24px;
  }

  .breadcrumb {
    font-size: 12px;
  }
}
