/* ==========================================================================
   Linyi Mincai Stationery - Product Detail Stylesheet
   Modern Playful Design, Wide Container (1480px / 1568px), B2B Enhanced
   ========================================================================== */

:root {
  --orange: #ff621f;
  --orange-hover: #ff7d42;
  --navy: #10264f;
  --blue: #168cff;
  --text-dark: #1b3560;
  --text-muted: #576d8c;
  --border-light: #edf2f9;
  --bg-soft: #f7faff;
}

.product-detail-page {
  background: #ffffff;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* 1. Unified Container Width */
.detail-width {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 1680px) {
  .detail-width {
    max-width: 1568px;
  }
}

/* 2. Product Overview (Gallery & Summary) */
.product-overview {
  display: grid;
  grid-template-columns: minmax(460px, 1.1fr) minmax(0, 1.15fr);
  gap: 56px;
  padding: 44px 0 36px;
  align-items: start;
}

/* Gallery Column */
.detail-gallery {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.thumbnail-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-thumb {
  width: 100%;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f8fbff;
  cursor: pointer;
  transition: all 0.22s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: #ffd8c4;
}

.gallery-thumb[aria-pressed='true'] {
  border-color: var(--orange);
  background: #fff5ef;
  box-shadow: 0 4px 14px rgba(255, 98, 31, 0.22);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-step {
  color: #175bb3;
  background: #f2f7fd;
  height: 28px;
  border: 1px solid #e1ecf9;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-step:hover {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

.main-image-wrap {
  position: relative;
  background: #f4f9ff;
  border: 2px solid #edf4fc;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(16, 38, 79, 0.05);
}

.detail-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-image-wrap:hover .detail-main-image {
  transform: scale(1.03);
}

.image-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  color: #10264f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.image-zoom-hint i {
  color: var(--orange);
}

/* Product Summary Column */
.product-summary {
  display: flex;
  flex-direction: column;
}

.product-summary h1 {
  margin: 6px 0 14px;
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  color: #0077ff;
  letter-spacing: -0.5px;
}

.product-intro {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.68;
  color: #4b607d;
}

/* Feature Grid in Summary */
.summary-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 24px;
  border-radius: 20px;
  background: #f7faff;
  border: 1px solid #eaf1fa;
}

.detail-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 18px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon.green { background: linear-gradient(135deg, #4bd5a4 0%, #2cb683 100%); }
.feature-icon.pink { background: linear-gradient(135deg, #ff7ba4 0%, #ff5287 100%); }
.feature-icon.blue { background: linear-gradient(135deg, #3fa1ff 0%, #177eff 100%); }
.feature-icon.yellow { background: linear-gradient(135deg, #ffbf33 0%, #f59e0b 100%); }
.feature-icon.purple { background: linear-gradient(135deg, #b392ff 0%, #8b5cf6 100%); }
.feature-icon.orange { background: linear-gradient(135deg, #ff843b 0%, #f95f10 100%); }

.detail-feature h3 {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
}

.detail-feature p {
  margin: 0;
  font-size: 12.5px;
  color: #647b9a;
  line-height: 1.4;
}

/* Actions */
.product-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.detail-quote {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding-inline: 36px;
  border-radius: 50px;
  color: #ffffff;
  background: var(--orange);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 98, 31, 0.35);
  transition: all 0.22s ease;
}

.detail-quote:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 98, 31, 0.45);
}

/* Trust Badges */
.summary-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px dashed #e6effa;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #556c8a;
}

.trust-badge i {
  color: #179346;
  font-size: 14px;
}

/* 3. Product Description Block */
.detail-description {
  margin: 36px 0 48px;
  padding: 44px 48px;
  background: #ffffff;
  border: 2px solid #edf2f9;
  border-radius: 26px;
  box-shadow: 0 10px 36px rgba(16, 38, 79, 0.04);
}

.description-header {
  margin-bottom: 24px;
}

.product-detail-page h2 {
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  color: #0077ff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.product-detail-page h2 span {
  color: var(--orange);
}

.section-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #445975;
  margin: 0;
}

.description-banner-wrap {
  margin: 28px 0 36px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(16, 38, 79, 0.06);
}

.description-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-detail-page .detail-subtitle {
  margin: 40px 0 20px;
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail-page .detail-subtitle span {
  color: var(--orange);
}

/* Description 3 Highlights */
.description-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  background: #f8fbff;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid #e7effa;
}

.description-features .detail-feature {
  align-items: flex-start;
  gap: 16px;
}

.description-features .detail-feature:not(:last-child) {
  border-right: 1px solid #dde7f5;
  padding-right: 24px;
}

.description-features h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.description-features p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #556c8c;
  margin: 0;
}

/* Technical Specification Table & Image */
.specification-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.spec-table-container {
  border: 2px solid #e6effa;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.product-specifications {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.product-specifications thead th {
  background: #edf5ff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 2px solid #dce8f8;
}

.product-specifications th,
.product-specifications td {
  padding: 12px 20px;
  border-bottom: 1px solid #edf3fb;
  text-align: left;
  vertical-align: middle;
}

.product-specifications th[scope='row'] {
  color: var(--navy);
  background: #fbfdff;
  font-weight: 700;
  width: 32%;
  border-right: 1px solid #edf3fb;
}

.product-specifications td {
  color: #3f5573;
}

.product-specifications tr:last-child th,
.product-specifications tr:last-child td {
  border-bottom: 0;
}

.spec-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #edf5fe;
  box-shadow: 0 8px 24px rgba(16, 38, 79, 0.05);
}

.spec-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(16, 38, 79, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-card-badge i {
  color: #ffb833;
}

/* Creative Applications Gallery */
.applications-lead {
  font-size: 15px;
  color: #4a5f7c;
  margin: 0 0 20px;
}

.applications-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.app-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 38, 79, 0.06);
  background: #f4f8fe;
  transition: transform 0.26s ease;
}

.app-item:hover {
  transform: translateY(-6px);
}

.app-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}

.app-tag {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: #ffffff;
}

/* 4. Related Products Section */
.related-products {
  padding-bottom: 76px;
}

.related-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.related-heading h2 {
  margin: 0 0 4px;
}

.sub-heading-text {
  margin: 0;
  font-size: 14.5px;
  color: #6a82a2;
}

.view-more-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
}

.view-more-btn:hover {
  background: var(--orange);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(255, 98, 31, 0.3);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

/* Standardized Product Card */
.related-grid .catalog-card {
  background: #ffffff;
  border: 2px solid #edf2f8;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(16, 38, 79, 0.04);
}

.related-grid .catalog-card:hover {
  transform: translateY(-8px);
  border-color: #ffd4be;
  box-shadow: 0 16px 36px rgba(255, 98, 31, 0.14);
}

.related-grid .catalog-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-grid .catalog-card-media {
  background: #f6faff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-grid .catalog-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.related-grid .catalog-card:hover .catalog-card-media img {
  transform: scale(1.08);
}

.related-grid .catalog-card-label {
  padding: 14px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
}

.related-grid .catalog-card-label h3 {
  margin: 0;
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.related-grid .card-arrow-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f4fa;
  color: #7b92b3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.related-grid .catalog-card:hover .card-arrow-circle {
  background: var(--orange);
  color: #ffffff;
  transform: translateX(3px);
}

/* 5. Responsive Media Queries */
@media (max-width: 1300px) {
  .product-overview {
    gap: 36px;
  }
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .detail-width {
    width: calc(100% - 48px);
  }
  .product-overview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .detail-gallery {
    max-width: 640px;
    margin: 0 auto;
  }
  .specification-layout {
    grid-template-columns: 1fr;
  }
  .description-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .description-features .detail-feature:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #dde7f5;
    padding-right: 0;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .detail-width {
    width: calc(100% - 32px);
  }
  .detail-description {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .summary-features {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .applications-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .applications-gallery .app-item:last-child {
    grid-column: 1 / -1;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .product-actions {
    flex-wrap: wrap;
  }
  .detail-quote {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 540px) {
  .detail-gallery {
    display: flex;
    flex-direction: column-reverse;
  }
  .thumbnail-column {
    flex-direction: row;
    align-items: center;
  }
  .thumbnail-list {
    flex-direction: row;
    overflow-x: auto;
    flex: 1;
  }
  .gallery-step {
    display: none;
  }
  .related-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .view-more-btn {
    width: 100%;
    justify-content: center;
  }
}
