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

.product-detail-section {
  padding: 150px 24px 100px;
  background: linear-gradient(180deg, #f8fcff 0%, #eaf6ff 100%);
  min-height: 70vh;
}

.product-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #157dff;
  text-decoration: none;
  margin-bottom: 32px;
}

.detail-back-link:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Photo side: one card containing the main image AND the
   color thumbnail rail, matching the reference (thumbs live inside
   the card, not floating outside it). ---------- */
.detail-photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 420px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.detail-photo-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
}

.detail-podium-glow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 220px;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(21, 125, 255, 0.25), rgba(21, 125, 255, 0) 75%);
  filter: blur(10px);
}

.detail-podium-base {
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 200px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dff4ff);
  box-shadow: 0 12px 22px rgba(6, 43, 99, 0.1);
}

.detail-photo {
  position: relative;
  z-index: 2;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Color picker: a vertical rail of circular thumbnails, each with a
   radio badge overlapping its top-right edge — purely a color
   choice, independent of the price-affecting variant list below. */
.detail-color-thumbs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 6px 4px 0;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.detail-color-thumbs.is-hidden {
  display: none;
}

.detail-color-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(6, 43, 99, 0.06);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.detail-color-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-color-thumb.is-selected {
  border-color: #157dff;
  box-shadow: 0 0 0 3px rgba(21, 125, 255, 0.18);
}

.thumb-radio {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  box-shadow: 0 0 0 3px #f8fcff;
}

.detail-color-thumb.is-selected .thumb-radio {
  border-color: #157dff;
}

.detail-color-thumb.is-selected .thumb-radio::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #157dff;
}

/* ---------- Info side ---------- */
.detail-info h1 {
  font-size: 34px;
  font-weight: 800;
  color: #062b63;
  margin-bottom: 12px;
}

.detail-price {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
}

/* ---------- Variant price list ---------- */
.detail-variant-list {
  list-style: none;
  margin-bottom: 28px;
}

.detail-variant-list li + li {
  margin-top: 8px;
}

.detail-variant-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.variant-name {
  font-size: 15px;
  font-weight: 500;
  color: #157dff;
  text-decoration: underline;
}

.variant-price {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.detail-variant-link.is-selected .variant-name {
  font-weight: 700;
  color: #062b63;
}

/* ---------- Description bullets ---------- */
.detail-section-heading {
  font-size: 17px;
  font-weight: 700;
  color: #062b63;
  margin-bottom: 10px;
}

.detail-description-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 28px;
  color: #5b6b82;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Enquire Now ---------- */
.detail-actions {
  margin-bottom: 28px;
}

.enquire-now-btn {
  display: inline-block;
  padding: 11px 30px;
  background: #157dff;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  border: none;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(21, 125, 255, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.enquire-now-btn:hover {
  background: #062b63;
  transform: translateY(-2px);
}

/* ---------- Features dropdown ---------- */
.detail-features {
  margin-bottom: 28px;
}

.detail-features label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #062b63;
  margin-bottom: 8px;
}

.detail-features select {
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #374151;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Free installation note ---------- */
.detail-installation p {
  font-size: 15px;
  color: #5b6b82;
}

/* ---------- Not-found state (reuses the gradient pill button) ---------- */
.detail-not-found {
  text-align: center;
  padding: 60px 24px;
}

.detail-not-found h1 {
  font-size: 28px;
  font-weight: 700;
  color: #062b63;
  margin-bottom: 12px;
}

.detail-not-found p {
  color: #5b6b82;
  margin-bottom: 24px;
}

.order-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  background: linear-gradient(120deg, #062b63 0%, #157dff 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(21, 125, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-now-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(21, 125, 255, 0.45);
}

/* ---------- Related products ---------- */
.detail-related {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid #dbe6f2;
}

.detail-related-heading {
  font-size: 24px;
  font-weight: 800;
  color: #062b63;
  margin-bottom: 28px;
}

.detail-related-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-related-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.detail-related-track::-webkit-scrollbar {
  display: none;
}

.detail-related-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(6, 43, 99, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(6, 43, 99, 0.14);
}

.detail-related-photo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  margin-bottom: 14px;
}

.detail-related-photo-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-related-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #157dff;
  margin-bottom: 6px;
}

.detail-related-price {
  font-size: 13.5px;
  font-weight: 600;
  color: #45597a;
}

.detail-related-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #157dff;
  box-shadow: 0 8px 20px rgba(6, 43, 99, 0.14);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.detail-related-nav:hover {
  background: #157dff;
  color: #ffffff;
  transform: scale(1.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .detail-photo-row {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .product-detail-section {
    padding: 130px 18px 70px;
  }
  .detail-info h1 {
    font-size: 26px;
  }
  .detail-price {
    font-size: 22px;
  }
  .detail-photo-row {
    height: 260px;
    padding: 20px 16px;
    gap: 12px;
  }
  .detail-photo-main {
    height: 100%;
  }
  .detail-color-thumbs {
    gap: 14px;
  }
  .detail-color-thumb {
    width: 54px;
    height: 54px;
    padding: 7px;
  }
  .detail-related {
    margin-top: 50px;
    padding-top: 34px;
  }
  .detail-related-heading {
    font-size: 20px;
  }
  .detail-related-nav {
    width: 34px;
    height: 34px;
  }
  .detail-related-card {
    width: 160px;
    padding: 16px 12px;
  }
  .detail-related-photo-area {
    height: 100px;
  }
}
