/* ============================================================
   Product Detail Page - New Layout Styles
   Reference: vfiredoor.com product detail page
   ============================================================ */

/* --- Section Container --- */
.pdt-section {
  padding: 30px 0;
}

/* --- Section 1: Gallery + Info --- */
.pdt-gallery-info {
  padding: 40px 0 20px;
}

/* Image Gallery */
.pdt-gallery {
  width: 100%;
}

.pdt-main-img {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.pdt-swiper-main {
  width: 100%;
}
.pdt-swiper-main .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 450px;
  border-radius: 2px;
}

/* Navigation Arrows */
.pdt-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ddd;
  color: #333;
  font-size: 18px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  border-radius: 50%;
  user-select: none;
}
.pdt-swiper-btn:hover {
  background: #e60a19;
  color: #fff;
  border-color: #e60a19;
}
.pdt-swiper-prev { left: 10px; }
.pdt-swiper-next { right: 10px; }

/* Thumbnail Strip */
.pdt-thumb-strip {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 5px 0;
}
.pdt-swiper-thumb .swiper-slide {
  width: calc(25% - 8px) !important;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.pdt-swiper-thumb .swiper-slide.active,
.pdt-swiper-thumb .swiper-slide:hover {
  opacity: 1;
  border-color: #e60a19;
}
.pdt-swiper-thumb .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Product Info (Right Side) */
.pdt-info {
  padding-left: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
}

.pdt-title {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.35;
}

.pdt-title-line {
  width: 60px;
  height: 3px;
  background: #e60a19;
  margin-bottom: 20px;
}

.pdt-category {
  font-size: 1.4rem;
  color: #888;
  margin-bottom: 15px;
}
.pdt-category a {
  color: #e60a19;
  font-weight: 500;
  text-decoration: none;
}
.pdt-category a:hover {
  text-decoration: underline;
}

.pdt-summary {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.85;
}

/* --- Section 2 & 3: Details Table, Content --- */
.pdt-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.pdt-section-line {
  width: 100%;
  height: 1px;
  background: #d9d9d9;
  margin-bottom: 25px;
}

/* Product Details / Specs Table */
.pdt-spec-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}
.pdt-spec-table tr {
  border-bottom: 1px solid #eee;
}
.pdt-spec-table tr:last-child {
  border-bottom: none;
}
.pdt-spec-table td {
  padding: 12px 16px;
  font-size: 1.35rem;
  vertical-align: middle;
  line-height: 1.6;
}
.pdt-spec-table td.label {
  background: #fafafa;
  color: #666;
  width: 220px;
  white-space: nowrap;
  font-weight: 400;
}
.pdt-spec-table tr:hover td.label {
  background: #f0f0f0;
}
.pdt-spec-table td:not(.label) {
  color: #333;
}

/* Content Area (Rich Text) */
.pdt-content-area {
  padding-top: 10px;
}

/* --- Section 4: Popular Products Carousel --- */
.pdt-popular-products {
  padding: 40px 0 30px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}
.pdt-popular-products .pdt-section-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.pdt-popular-wrap {
  position: relative;
  padding: 0 45px;
}

.pdt-popular-card {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  height: 100%;
}
.pdt-popular-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.pdt-popular-img {
  width: 100%;
  padding: 15px 15px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #fafafa;
}
.pdt-popular-img img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
.pdt-popular-card:hover .pdt-popular-img img {
  transform: scale(1.03);
}

.pdt-popular-title {
  padding: 10px 14px 14px;
  font-size: 1.3rem;
  color: #444;
  line-height: 1.5;
  min-height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdt-popular-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  font-size: 18px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  user-select: none;
  transition: all 0.25s ease;
}
.pdt-popular-nav:hover {
  background: #e60a19;
  color: #fff;
  border-color: #e60a19;
}
.pdt-popular-prev { left: 0; }
.pdt-popular-next { right: 0; }

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 992px) {
  .pdt-info {
    padding-left: 0;
    padding-top: 25px;
    margin-top: 15px;
  }

  .pdt-title {
    font-size: 1.7rem;
  }

  .pdt-swiper-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    line-height: 30px;
  }
}

@media (max-width: 768px) {
  .pdt-section {
    padding: 20px 0;
  }

  .pdt-gallery-info {
    padding: 20px 0 10px;
  }

  .pdt-main-img {
    padding: 10px;
  }

  .pdt-swiper-main .swiper-slide img {
    max-height: 300px;
  }

  .pdt-title {
    font-size: 1.5rem;
  }

  .pdt-spec-table td {
    padding: 10px 12px;
    font-size: 1.2rem;
  }
  .pdt-spec-table td.label {
    width: 150px;
  }

  .pdt-popular-wrap {
    padding: 0 35px;
  }

  .pdt-popular-products {
    padding: 25px 0 20px;
  }

  .pdt-popular-nav {
    width: 30px;
    height: 30px;
    font-size: 14px;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .pdt-swiper-thumb .swiper-slide {
    width: calc(33% - 6px) !important;
  }

  .pdt-popular-title {
    font-size: 1.2rem;
    min-height: auto;
  }

  .pdt-summary {
    font-size: 1.3rem;
  }
}
