.product-detail-page {
  background: #fff;
  padding: 28px 0 70px;
  overflow-x: hidden;
}

.product-detail-page .container {
  max-width: 1620px;
  padding: 0 14px;
}

.product-hero {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  box-shadow: none;
  min-width: 0;
}

.product-gallery {
  min-width: 0;
}

.product-gallery-main {
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f8;
  border: 1px solid #e7ebf4;
  position: relative;
}

.product-gallery-main .lightbox-trigger {
  display: block;
}

.product-gallery-main img {
  width: 100%;
  max-width: 100%;
  height: 430px;
  object-fit: contain;
}

.product-gallery-thumbs {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery-thumbs .gallery-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  min-width: 104px;
  flex: 0 0 104px;
  border: 2px solid transparent;
}

.product-gallery-thumbs .gallery-thumb.is-active {
  border-color: #1d3f8d;
}

.product-gallery-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dce2ef;
}

.main-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d9deea;
  background: rgba(19, 18, 18, 0.95);
  color: #bbff00;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.main-gallery-prev {
  left: 10px;
}

.main-gallery-next {
  right: 10px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1c3e8b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-title {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.2;
  color: #15244a;
}

.product-price {
  margin: 0 0 14px;
  font-size: 1.75rem;
  color: #0d2d79;
  font-weight: 700;
}

.product-short-desc {
  margin: 0 0 18px;
  color: #4c5978;
  line-height: 1.7;
}

.product-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.product-feature-list li {
  border-bottom: 1px dashed #e2e7f2;
  padding-bottom: 8px;
  color: #2d3d64;
  font-size: 0.9rem;
}

.product-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.product-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.product-btn-primary {
  background: #14306e;
  color: #fff;
}

.product-btn-secondary {
  background: #1ca95e;
  color: #fff;
}

.product-specs {
  margin-top: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 0;
}

.product-specs h2 {
  margin: 0 0 14px;
  color: #132750;
  font-size: 1.4rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec-col {
  border: 1px solid #ebeff7;
  border-radius: 10px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  border-bottom: 1px solid #edf1f7;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span:first-child {
  color: #546284;
}

.spec-row strong {
  color: #1b2f5b;
}

.product-story {
  margin-top: 26px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.story-side {
  display: none;
  gap: 12px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.story-image-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.story-side img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.story-image-link:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 16, 33, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.lightbox-overlay.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.story-content h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #152a59;
}

.story-content {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.story-content::-webkit-scrollbar {
  display: none;
}

.story-content p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: #4c5875;
  line-height: 1.82;
}

.story-content a {
  color: #d90f2f;
  font-weight: 600;
}

.heading-product-gallery {
  display: none;
}

.heading-product-gallery-link {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.heading-product-gallery-link img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.product-cta-dark {
  margin-top: 28px;
  border-radius: 0;
  background: #0b1f57;
  color: #fff;
  text-align: center;
  padding: 22px 20px;
}

.product-cta-dark h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.product-cta-dark p {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.product-cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-image-showcase {
  margin-top: 24px;
}

.product-image-showcase h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  color: #132750;
  text-align: center;
}

.showcase-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.showcase-item {
  background: #fff;
}

.showcase-item .lightbox-trigger {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.showcase-item img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #f3f6fb;
  display: block;
}

.showcase-item p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #42516f;
  line-height: 1.65;
}

.product-related {
  margin-top: 40px;
}

.product-related h2 {
  text-align: center;
  margin: 0 0 18px;
  color: #132750;
  font-size: 1.8rem;
}

.product-related .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .product-related .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }

  .product-detail-page {
    padding: 16px 0 45px;
  }

  .product-detail-page .container {
    padding: 0 12px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-hero {
    padding: 0;
  }

  .product-title {
    font-size: 1.45rem;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .product-gallery-main img {
    height: 290px;
  }

  .main-gallery-nav {
    display: inline-flex;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .product-gallery-thumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .product-gallery-thumbs .gallery-thumb {
    min-width: 88px;
    flex: 0 0 88px;
    scroll-snap-align: start;
  }

  .product-gallery-thumbs img {
    height: 62px;
  }

  .product-related .product-grid {
    grid-template-columns: 1fr;
  }

  .heading-product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .product-cta-dark h2 {
    font-size: 1.1rem;
  }
}
