/* ============================================
   产品详情页样式 (product-detail)
   ============================================ */

/* ---- Page Banner ---- */
.product-page-hero {
	min-height: 420px;
	background-image:
		linear-gradient(135deg, rgba(13, 13, 13, 0.78) 0%, rgba(26, 26, 46, 0.65) 50%, rgba(15, 52, 96, 0.75) 100%),
		url('https://carterhousing.com/wp-content/uploads/2026/06/expandable-container-house-for-residential-home.webp');
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
	background-repeat: no-repeat;
}

@media (max-width: 767px) {
	.product-page-hero {
		min-height: 340px;
	}
}

/* ---- Breadcrumb ---- */
.product-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  font-size: 13px;
  color: #757575;
}

.product-breadcrumb a {
  color: #4caf50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
  color: #2e7d32;
}

.product-breadcrumb span.sep {
  margin: 0 8px;
  color: #bdbdbd;
}

/* ---- Hero / Overview ---- */
.product-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .product-hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 40px 20px 80px;
  }
}

/* Gallery */
.product-gallery__main {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 4 / 3;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.product-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  transition: border-color 0.25s ease;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: #4caf50;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Summary */
.product-summary__title {
  font-family: "Archivo", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 0 0 12px;
}

@media (min-width: 992px) {
  .product-summary__title {
    font-size: 34px;
  }
}

.product-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #616161;
  margin: 0 0 20px;
}

.product-summary__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-summary__meta i {
  color: #4caf50;
}

.product-summary__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #424242;
  margin: 0 0 24px;
}

.product-summary__price {
  background: #f1f8e9;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-summary__price-label {
  font-size: 13px;
  color: #616161;
}

.product-summary__price-value {
  font-size: 22px;
  font-weight: 700;
  color: #2e7d32;
  font-family: "Archivo", sans-serif;
}

.product-summary__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Archivo", sans-serif;
  color: #fff;
  background: #4caf50;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-quote:hover {
  background: #2e7d32;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Archivo", sans-serif;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.btn-whatsapp:hover {
  border-color: #25d366;
  color: #1a1a2e;
  transform: translateY(-2px);
}

.btn-whatsapp i {
  color: #25d366;
}

/* Quick specs */
.product-quick-specs {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.product-quick-specs__title {
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
}

.product-quick-specs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .product-quick-specs__list {
    grid-template-columns: 1fr 1fr;
  }
}

.product-quick-specs__list li {
  font-size: 13px;
  color: #424242;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
}

.product-quick-specs__list li strong {
  display: block;
  color: #757575;
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 2px;
}

/* ---- Section ---- */
.product-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  border-top: 1px solid #f0f0f0;
}

@media (min-width: 992px) {
  .product-section {
    padding: 80px 20px;
  }
}

.product-section__title {
  font-family: "Archivo", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 24px;
  position: relative;
  padding-left: 16px;
}

.product-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: #4caf50;
  border-radius: 2px;
}

/* Description */
.product-description p {
  font-size: 15px;
  line-height: 1.8;
  color: #424242;
  margin: 0 0 16px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: #c8e6c9;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f8e9;
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card__title {
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.feature-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: #616161;
  margin: 0;
}

/* ---- Spec table（规格/尺寸对比表格，兼容后台富文本输出的任意表格） ---- */
.spec-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

/* 通用表格：后台编辑器输出的表格可能没有 class，还会自带 border 属性，
   这里用后代选择器统一接管样式 */
.spec-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
  border: 1px solid #e0e0e0; /* 覆盖编辑器自带 border 属性 */
  background: #fff;
}

.spec-table-wrap th,
.spec-table-wrap td {
  padding: 14px 18px;
  text-align: left;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

.spec-table-wrap thead th {
  background: #f1f8e9;
  color: #2e7d32;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
}

.spec-table-wrap tbody tr:nth-child(even) {
  background: #fafafa;
}

.spec-table-wrap tbody tr:hover {
  background: #f7fbf4;
}

.spec-table-wrap th {
  color: #616161;
  font-weight: 600;
  white-space: nowrap;
}

.spec-table-wrap td {
  color: #1a1a2e;
}

/* 富文本编辑器会在单元格内包 <p>，去掉多余间距 */
.spec-table-wrap td p,
.spec-table-wrap th p {
  margin: 0;
}

/* Size comparison table（可选：给对比表格加 class="size-compare-table" 时居中） */
.spec-table-wrap .size-compare-table th,
.spec-table-wrap .size-compare-table td {
  text-align: center;
}

.spec-table-wrap .size-compare-table tbody tr.is-current {
  background: #f1f8e9;
}

.spec-table-wrap .size-compare-table tbody tr.is-current td,
.spec-table-wrap .size-compare-table tbody tr.is-current th {
  color: #2e7d32;
  font-weight: 600;
}

/* Applications */
.applications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .applications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.application-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.application-item__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f8e9;
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.application-item__title {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.application-item__desc {
  font-size: 13px;
  line-height: 1.5;
  color: #757575;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.faq-item__summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary:hover {
  background: #fafafa;
}

.faq-item__summary i {
  color: #4caf50;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__summary i {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #616161;
}

/* Related products */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.related-card:hover {
  border-color: #c8e6c9;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.related-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fafafa;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.related-card:hover .related-card__media img {
  transform: scale(1.05);
}

.related-card__title {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  padding: 14px 14px 16px;
  line-height: 1.4;
}

.related-card:hover .related-card__title {
  color: #4caf50;
}

/* Layout options */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .layout-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* CMS 富文本图片直接作为网格项 */
.layout-grid > p {
  margin: 0;
  min-width: 0;
}

.layout-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.25s ease;
}

.layout-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* 富文本中的其他内容保持基本排版 */
.layout-grid p {
  font-size: 13px;
  line-height: 1.7;
  color: #616161;
}

.layout-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #757575;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.layout-note i {
  color: #4caf50;
  margin-top: 3px;
}

/* Lightbox (点击看大图) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox__prev {
    left: 8px;
  }
  .lightbox__next {
    right: 8px;
  }
}

/* Factory showcase */
.factory-intro {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.8;
  color: #424242;
  margin: 0 0 28px;
}

.factory-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .factory-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.factory-stat {
  background: #f1f8e9;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.factory-stat__value {
  font-family: "Archivo", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 4px;
}

.factory-stat__label {
  font-size: 12px;
  color: #616161;
  margin: 0;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .factory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .factory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.factory-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #fafafa;
}

.factory-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.factory-item:hover img {
  transform: scale(1.05);
}

.factory-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
  max-width: 1200px;
}

@media (min-width: 992px) {
  .cta-banner {
    padding: 56px 30px;
  }
}

.cta-banner__title {
  font-family: "Archivo", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}

@media (min-width: 992px) {
  .cta-banner__title {
    font-size: 30px;
  }
}

.cta-banner__desc {
  font-size: 15px;
  opacity: 0.95;
  margin: 0 0 24px;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Archivo", sans-serif;
  color: #2e7d32;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.cta-banner__btn:hover {
  transform: translateY(-2px);
}


/* Hide price labels when products are quote-only */
.product-summary__price-label,
.product-summary__price-value {
  display: none !important;
}
