/* ==========================================================================
   Langsen Theme - Product Details Page Styles
   Strictly aligned with Design Reference (media_1790667757608.jpg)
   Single Tab (PRODUCT DESCRIPTION)
   ========================================================================== */

.langsen-prod-detail {
  color: #132d54;
  background-color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* Container width is unified by common.css .container */

/* --------------------------------------------------------------------------
   Common Components
   -------------------------------------------------------------------------- */
.ls-dt-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ls-dt-tag__line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: #ee141d;
  flex-shrink: 0;
}

.ls-dt-tag__text {
  color: #ee141d;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ls-btn-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   1. Hero Banner
   -------------------------------------------------------------------------- */
.ls-dt-hero {
  position: relative;
  width: 100%;
  background-position: center 36%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.ls-dt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 61, 0.85) 0%, rgba(6, 26, 61, 0.55) 45%, rgba(6, 26, 61, 0.15) 100%);
  pointer-events: none;
}

.ls-dt-hero__inner {
  position: relative;
  z-index: 2;
  padding: 42px 0;
}

.ls-dt-hero__title {
  color: #ffffff;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.ls-dt-hero__bar {
  width: 36px;
  height: 3px;
  background-color: #ee141d;
  margin: 12px 0 10px;
  border-radius: 1px;
}

.ls-dt-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  flex-wrap: wrap;
}

.ls-dt-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ls-dt-hero__breadcrumb a:hover {
  color: #ffffff;
}

.ls-bc-sep {
  opacity: 0.6;
  font-size: 11px;
}

.ls-bc-cur {
  color: #ffffff;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   2. Product Intro (Gallery + Specs/Actions)
   -------------------------------------------------------------------------- */
.ls-dt-intro-section {
  padding: 48px 0 42px;
}

.ls-dt-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.ls-dt-intro-grid--single {
  grid-template-columns: 1fr;
}

/* Gallery Area */
.ls-dt-gallery {
  display: flex;
  flex-direction: column;
}

.ls-dt-main-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  background-color: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(6, 42, 99, 0.05);
}

.ls-viewer-img-wrap {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ls-viewer-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ls-viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
}

.ls-viewer-arrow--prev {
  left: 14px;
}

.ls-viewer-arrow--next {
  right: 14px;
}

.ls-viewer-arrow:hover {
  background-color: #062a63;
  color: #ffffff;
  border-color: #062a63;
}

/* Thumbnails */
.ls-dt-thumbs-list {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ls-dt-thumb-item {
  width: 66px;
  height: 66px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-dt-thumb-item:hover {
  border-color: #cbd5e1;
}

.ls-dt-thumb-item.active {
  border-color: #ee141d;
  box-shadow: 0 2px 10px rgba(238, 20, 29, 0.25);
}

.ls-dt-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Summary Area */
.ls-dt-summary {
  display: flex;
  flex-direction: column;
}

.ls-dt-prod-title {
  color: #062a63;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin: 6px 0 6px;
  text-transform: uppercase;
}

.ls-dt-model {
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ls-dt-desc {
  color: #64748b;
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 24px;
}

/* Actions */
.ls-dt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ls-dt-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ee141d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(238, 20, 29, 0.28);
  transition: all 0.25s ease;
}

.ls-dt-btn-red:hover {
  background-color: #d60f17;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(238, 20, 29, 0.4);
  transform: translateY(-2px);
}

.ls-dt-btn-red:hover .ls-btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3. PRODUCT DESCRIPTION (只保留单个 TAB)
   -------------------------------------------------------------------------- */
.ls-dt-desc-section {
  padding: 24px 0 54px;
}

.ls-dt-tabs-wrapper {
  border-bottom: 2px solid #edf2f7;
  margin-bottom: 34px;
  display: flex;
}

.ls-dt-tab {
  background-color: #062a63;
  color: #ffffff;
  padding: 14px 34px;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 4px 4px 0 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

.ls-dt-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ee141d;
}

.ls-dt-desc-body {
  display: block;
}

.ls-dt-desc-left {
  width: 100%;
  min-width: 0;
}

.ls-dt-rich-content {
  color: #64748b;
  font-size: 15.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.ls-dt-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

/* --------------------------------------------------------------------------
   4. RELATED PRODUCTS
   -------------------------------------------------------------------------- */
.ls-dt-related-section {
  padding: 40px 0 64px;
  border-top: 1px solid #edf2f7;
}

.ls-dt-related-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
}

.ls-dt-related-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-dt-related-title {
  color: #062a63;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.ls-dt-related-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ls-view-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #062a63;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ls-view-more:hover {
  color: #ee141d;
}

.ls-related-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ls-rel-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2ea;
  background-color: #ffffff;
  color: #8896ab;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ls-rel-nav-btn.active,
.ls-rel-nav-btn:hover {
  background-color: #062a63;
  color: #ffffff;
  border-color: #062a63;
}

/* Related Products Grid (5-Card Row with STRICT SQUARE IMAGES) */
.ls-dt-related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ls-dt-rel-card {
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #edf2f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(6, 42, 99, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-dt-rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(6, 42, 99, 0.1);
  border-color: #dbe4f0;
}

.ls-dt-rel-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
}

.ls-dt-rel-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.ls-dt-rel-card:hover .ls-dt-rel-img {
  transform: scale(1.05);
}

.ls-dt-rel-info {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ls-dt-rel-name {
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 2px;
}

.ls-dt-rel-name a {
  color: #062a63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ls-dt-rel-card:hover .ls-dt-rel-name a,
.ls-dt-rel-name a:hover {
  color: #ee141d;
}

.ls-dt-rel-cat {
  color: #64748b;
  font-size: 11px;
  margin: 0 0 12px;
}

.ls-dt-rel-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #062a63;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
}

.ls-dt-rel-more svg {
  color: #ee141d;
  transition: transform 0.2s ease;
}

.ls-dt-rel-card:hover .ls-dt-rel-more,
.ls-dt-rel-more:hover {
  color: #ee141d;
}

.ls-dt-rel-card:hover .ls-dt-rel-more svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Call To Action (Bottom Banner)
   -------------------------------------------------------------------------- */
.ls-dt-cta {
  position: relative;
  background-position: center 48%;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 34px 0;
  color: #ffffff;
}

.ls-dt-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 61, 0.88) 0%, rgba(6, 26, 61, 0.65) 50%, rgba(6, 26, 61, 0.4) 100%);
  pointer-events: none;
}

.ls-dt-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.ls-dt-cta__title {
  color: #ffffff;
  font-family: Outfit, 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

.ls-dt-cta__desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  margin: 0;
}

.ls-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ee141d;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(238, 20, 29, 0.28);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.ls-btn-red:hover {
  background-color: #d60f17;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(238, 20, 29, 0.4);
  transform: translateY(-2px);
}

.ls-btn-red:hover .ls-btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ls-dt-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ls-dt-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ls-dt-hero__title {
    font-size: 30px;
  }

  .ls-dt-prod-title {
    font-size: 26px;
  }

  .ls-dt-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ls-dt-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .ls-dt-hero__title {
    font-size: 26px;
  }

  .ls-dt-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ls-dt-btn-red {
    width: 100%;
    box-sizing: border-box;
  }

  .ls-dt-related-grid {
    grid-template-columns: 1fr;
  }
}
