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

/* --- Page Banner --- */
.page-banner {
  top:0;
  position: relative;
  height: 420px;
  background-image: url('/images/b7.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.page-banner-content h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.page-banner-content p {
  font-size: 14px;
  letter-spacing: 4px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* --- Breadcrumb --- */
.breadcrumb-wrapper {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb li a:hover { color: #CC0000; }
.breadcrumb li.sep {
  color: #ccc;
  margin: 0 8px;
}
.breadcrumb li.current {
  color: #CC0000;
  font-weight: 500;
}

/* --- Layout --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

/* --- Product Top: Gallery + Info --- */
.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Gallery */
.product-gallery {
  position: relative;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
}
.gallery-thumbs .thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  opacity: 0.6;
  flex-shrink: 0;
}
.gallery-thumbs .thumb.active {
  border-color: #CC0000;
  opacity: 1;
}
.gallery-thumbs .thumb:hover { opacity: 1; }
.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info-detail h2 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.product-info-detail .product-model {
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
}
.product-info-detail .product-model span {
  background: #fef0f0;
  color: #CC0000;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
  margin-left: 8px;
}
.product-info-detail .product-short-desc {
  font-size: 14px;
  color: #fff;
  background: #CC0000;
  line-height: 1.8;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 4px;
}

.product-info-detail .feature-heading {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  margin-top: 24px;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 4px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CC0000;
}
.product-features-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
}
.feature-highlight-item .fh-icon {
  width: 32px;
  height: 32px;
  background: #fef0f0;
  color: #CC0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.feature-highlight-item .fh-icon svg {
  width: 16px;
  height: 16px;
  fill: #CC0000;
}

/* Inquiry Buttons */
.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.product-actions .btn-inquiry {
  display: inline-block;
  padding: 12px 32px;
  background: #CC0000;
  color: #fff;
  border: 2px solid #CC0000;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.product-actions .btn-inquiry:hover { background: #A00000; border-color: #A00000; }
.product-actions .btn-contact {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: #CC0000;
  border: 2px solid #CC0000;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.product-actions .btn-contact:hover { background: #CC0000; color: #fff; }

/* ============================================
   Product Tabs (Description / Specs)
   ============================================ */
.product-tabs-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.product-tabs-nav {
  display: flex;
  border-bottom: 2px solid #eee;
}
.product-tabs-nav button {
  flex: 1;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  transition: all 0.3s;
  position: relative;
}
.product-tabs-nav button.active {
  color: #CC0000;
}
.product-tabs-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #CC0000;
}
.product-tabs-nav button:hover { color: #CC0000; }

.product-tabs-content { padding: 36px; }
.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }

/* Tab: Description */
.product-tab-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}
.product-tab-panel p {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin-bottom: 14px;

}
.product-tab-panel .desc-image {
  margin: 20px 0;
  text-align: center;
}
.product-tab-panel .desc-image img {
  max-width: 100%;
  border-radius: 6px;
}

/* Tab: Specs Table */
.specs-table-wrapper {
  overflow-x: auto;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.specs-table tr { border-bottom: 1px solid #f0f0f0; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 14px 16px;
  color: #555;
}
.specs-table td:first-child {
  font-weight: 600;
  color: #333;
  background: #fafafa;
  width: 200px;
  white-space: nowrap;
}

/* ============================================
   Related Products Section
   ============================================ */
.related-products-section {
  margin-top: 10px;
}
.related-products-section .section-header {
  text-align: center;
  margin-bottom: 36px;
}
.related-products-section .section-header .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #CC0000;
  margin-bottom: 6px;
}
.related-products-section .section-header .section-subtitle {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.related-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.related-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.16);
}
.related-product-card .rp-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e8e8e8;
}
.related-product-card .rp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.related-product-card:hover .rp-img img { transform: scale(1.05); }
.related-product-card .rp-info {
  padding: 16px;
  text-align: center;
}
.related-product-card .rp-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  transition: color 0.3s;
}
.related-product-card:hover .rp-info h4 { color: #CC0000; }
.related-product-card .rp-info .rp-model {
  font-size: 12px;
  color: #aaa;
}

/* ============================================
   FAQ Accordion (inside tab)
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}
.faq-item + .faq-item {
  margin-top: 10px;
}
.faq-item.open {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-color: #f0d0d0;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: #fafafa;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: all 0.25s;
  gap: 16px;
}
.faq-question:hover {
  background: #fef5f5;
  color: #CC0000;
}
.faq-item.open .faq-question {
  background: #fef5f5;
  color: #CC0000;
}
.faq-q-text {
  flex: 1;
  line-height: 1.5;
}
.faq-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-arrow::before,
.faq-arrow::after {
  content: '';
  position: absolute;
  background: #bbb;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.faq-arrow::before {
  top: 10px;
  left: 3px;
  width: 16px;
  height: 2px;
}
.faq-arrow::after {
  top: 3px;
  left: 10px;
  width: 2px;
  height: 16px;
}
.faq-question:hover .faq-arrow::before,
.faq-question:hover .faq-arrow::after {
  background: #CC0000;
}
.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.faq-item.open .faq-answer {
  max-height: 3000px;
}
.faq-answer-inner {
  padding: 4px 24px 20px 24px;
  font-size: 15px;
  line-height: 2;
  color: #555;
}

/* ============================================
   Inquiry Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: #fff;
  border-radius: 10px;
  width: 520px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: translateY(30px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #eee;
}
.modal-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: #CC0000;
  background: #fef0f0;
}
.modal-body {
  padding: 24px 28px 28px;
}

/* Inquiry Form */
.inquiry-form .iform-row {
  margin-bottom: 16px;
}
.iform-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.iform-label .required {
  color: #CC0000;
}
.iform-input,
.iform-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.iform-input:focus,
.iform-textarea:focus {
  border-color: #CC0000;
}
.iform-input:disabled {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}
.iform-textarea {
  resize: vertical;
  min-height: 90px;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.iform-actions {
  margin-top: 6px;
}
.btn-submit-inquiry {
  width: 100%;
  padding: 13px 0;
  background: #CC0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}
.btn-submit-inquiry:hover {
  background: #A00000;
}
.btn-submit-inquiry:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .modal-dialog {
    max-width: 96vw;
    border-radius: 8px;
  }
  .modal-header {
    padding: 16px 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
@media (max-width: 1024px) {
  .product-top { grid-template-columns: 1fr; gap: 30px; }
  .product-tabs-nav button { padding: 12px 16px; font-size: 14px; }
  .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-banner { height: 130px; }
  .page-banner-content h1 { font-size: 22px; }
  .product-info-detail h2 { font-size: 20px; }
  .product-features-highlight { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions a { text-align: center; }
  .product-tabs-content { padding: 20px; }
  .specs-table td:first-child { width: 120px; }
  .gallery-thumbs .thumb { width: 60px; height: 45px; }
  .related-products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .breadcrumb { font-size: 12px; }
}
