/* ===================================
   PRODUCT DETAIL PAGE
   =================================== */

.product-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  width: 100%;
}

.breadcrumb {
  margin-bottom: 30px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #666;
}

.breadcrumb li {
  margin: 0 8px;
}

.breadcrumb li:first-child {
  margin-left: 0;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-header {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.product-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.product-price {
  font-size: 36px;
  font-weight: bold;
  color: #333;
}

.product-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 1400px) {
  .product-layout {
    gap: 50px;
  }
}

.product-images {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.main-image {
  width: 100%;
  height: 450px;
  object-fit: contain;
  background-color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 10px;
}

.main-image:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  font-style: italic;
  text-align: center;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumbnail {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: #E30A1D;
  transform: scale(1.05);
}

.product-data {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.product-data h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0 0 25px 0;
}

.data-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #fff;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  min-height: 56px;
  background-color: #fff;
}

.data-row:nth-child(even) {
  border-right: none;
}

.data-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.data-row.light {
  background-color: #fff;
}

.data-label {
  font-weight: 600;
  color: #2a2f43;
  font-size: 15px;
  flex: 0 0 45%;
  line-height: 1.5;
  padding-right: 15px;
}

.data-value {
  color: #333;
  font-size: 15px;
  flex: 1;
  text-align: right;
  word-break: keep-all;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.data-value > span {
  white-space: nowrap;
}

.data-value.bold {
  font-weight: bold;
  font-size: 17px;
  color: #2a2f43;
}

.documents-section {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.documents-section h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
}

.documents-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.document-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  min-width: 120px;
}

.document-link:hover {
  background-color: #f8f9fa;
  border-color: #E30A1D;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-primary {
  background-color: #E30A1D;
  color: white;
}

.btn-primary:hover {
  background-color: #b8080f;
}

.no-image {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-detail-container {
    padding: 20px 15px;
  }

  .product-header {
    padding: 20px 15px;
  }

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

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

  .product-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .main-image {
    height: 300px;
  }

  .data-table {
    grid-template-columns: 1fr !important;
  }

  .data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .data-row:nth-child(even) {
    border-right: 1px solid #e5e7eb;
  }

  .data-label {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
  }

  .data-value {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .breadcrumb ol {
    flex-wrap: wrap;
    font-size: 12px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .data-table {
    grid-template-columns: 1fr;
  }

  .data-row:nth-child(even) {
    border-right: 1px solid #e5e7eb;
  }
}

