/* =============================================
   PRODUCT DETAIL PAGE STYLES
   Extends service-detail.css patterns
   ============================================= */

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: .82rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb strong {
  color: var(--primary);
  font-weight: 600;
}

/* --- Product Hero --- */
.product-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f7f5 0%, #e8e6e0 100%);
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200, 150, 62, .06), transparent 70%);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.product-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 18px;
}

.product-hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-hero-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.ph-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}

.ph-icon {
  font-size: 1rem;
}

.product-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-hero-visual {
  position: relative;
}

.product-hero-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.product-hero-float {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: float-card 3s ease-in-out infinite;
}

/* --- Audience Section --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.audience-card:hover::before {
  transform: scaleX(1);
}

.audience-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(200, 150, 62, .1), rgba(200, 150, 62, .05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.audience-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.audience-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Specs Table --- */
.specs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.specs-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.specs-table th {
  padding: 16px 24px;
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
}

.specs-table td {
  padding: 14px 24px;
  font-size: .88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.specs-table tr:nth-child(even) {
  background: rgba(0, 0, 0, .015);
}

.specs-table tr:hover {
  background: rgba(200, 150, 62, .04);
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* --- Features Grid (reuse for abilities) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(200, 150, 62, .1), rgba(200, 150, 62, .05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Ad Banner --- */
.ad-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ad-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 150, 62, .15), transparent 70%);
  border-radius: 50%;
}

.ad-banner-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.ad-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ad-banner p {
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ad-banner .btn {
  display: inline-flex;
}

.ad-banner-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.ad-banner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.ad-stat {
  text-align: center;
}

.ad-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary-light);
}

.ad-stat .stat-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

/* --- Use Cases Section --- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.usecase-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(200, 150, 62, .1), rgba(200, 150, 62, .05));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.usecase-item h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.usecase-item p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- Related Products --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.related-icon {
  font-size: 2.4rem;
}

.related-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.related-card p {
  font-size: .85rem;
  color: var(--text-light);
}

.related-arrow {
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: 700;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 260px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(27, 42, 74, .6));
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 60px 0 40px;
  }

  .product-hero-highlights {
    grid-template-columns: 1fr;
  }

  .product-hero-actions {
    flex-direction: column;
  }

  .product-hero-visual img {
    height: 280px;
  }

  .product-hero-float {
    display: none;
  }

  .features-grid,
  .audience-grid,
  .related-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .ad-banner {
    padding: 32px 24px;
  }

  .ad-banner h3 {
    font-size: 1.3rem;
  }

  .ad-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .ad-banner-stats {
    align-items: center;
  }
}

/* =============================================
   SEO ARTICLE SECTION STYLES
   ============================================= */

/* --- Article Content --- */
.article-section {
  background: var(--bg);
}

.article-content {
  max-width: 880px;
  margin: 0 auto;
}

.article-intro {
  margin-bottom: 40px;
}

.article-intro p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article-block {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.article-block:last-child {
  border-bottom: none;
}

.article-block h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.4;
}

.article-block p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.article-block ul,
.article-block ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-block li {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-block li strong {
  color: var(--primary);
}

/* --- Article Table (inside article) --- */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.article-table th {
  padding: 12px 16px;
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
}

.article-table td {
  padding: 11px 16px;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}

.article-table tr:nth-child(even) {
  background: rgba(0, 0, 0, .015);
}

.article-table tr:hover {
  background: rgba(200, 150, 62, .04);
}

.article-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* --- Article Spec Grid (material cards) --- */
.article-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

.article-spec-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.article-spec-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-spec-card h4 {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.article-spec-card p {
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Article Compare (2-column) --- */
.article-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0 20px;
}

.compare-col {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.compare-col:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.compare-col h4 {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
}

.compare-col ul {
  padding-left: 18px;
  margin: 0;
}

.compare-col li {
  font-size: .84rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* --- Article Tip Box --- */
.article-tip {
  background: linear-gradient(135deg, rgba(200, 150, 62, .08), rgba(200, 150, 62, .03));
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
  font-size: .9rem !important;
  color: var(--text) !important;
  line-height: 1.7 !important;
}

/* --- Production Process Stepper (Redesigned) --- */
.process-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
  counter-reset: process-counter;
}

.process-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

/* --- Number Badge --- */
.process-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.process-num-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: var(--secondary-light);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(27, 42, 74, .25);
  transition: transform .3s ease, box-shadow .3s ease;
  flex-shrink: 0;
}

.process-card:hover .process-num-badge {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(27, 42, 74, .35);
}

/* --- Connector Line between badges --- */
.process-connector {
  position: absolute;
  top: 50%;
  left: calc(50% + 30px);
  right: calc(-50% + 30px);
  height: 2px;
  background: repeating-linear-gradient(90deg,
      var(--secondary) 0px,
      var(--secondary) 6px,
      transparent 6px,
      transparent 12px);
  transform: translateY(-50%);
  z-index: 1;
}

.process-card--last .process-connector {
  display: none;
}

/* --- Card Body --- */
.process-card-body {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 22px 18px 20px;
  flex: 1;
  width: 100%;
  transition: all .35s ease;
  position: relative;
}

.process-card-body::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  z-index: 1;
}

.process-card:hover .process-card-body {
  border-color: var(--secondary);
  box-shadow: 0 8px 30px rgba(200, 150, 62, .1);
  transform: translateY(-4px);
}

.process-card-body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.process-card-body p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* --- Responsive: stack on tablet/mobile --- */
@media (max-width: 992px) {
  .process-stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 0;
  }

  .process-connector {
    display: none;
  }

  .process-card-body::before {
    display: block;
  }
}

@media (max-width: 640px) {
  .process-stepper {
    grid-template-columns: 1fr 1fr;
    gap: 28px 12px;
  }

  .process-num-badge {
    width: 44px;
    height: 44px;
    font-size: .92rem;
  }

  .process-card-body {
    padding: 16px 14px;
  }

  .process-card-body h4 {
    font-size: .84rem;
  }

  .process-card-body p {
    font-size: .78rem;
  }
}

@media (max-width: 420px) {
  .process-stepper {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--secondary);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--secondary);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

.faq-answer p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}

/* --- Responsive for article & FAQ sections --- */
@media (max-width: 768px) {
  .article-compare {
    grid-template-columns: 1fr;
  }

  .article-spec-grid {
    grid-template-columns: 1fr;
  }

  .article-block h3 {
    font-size: 1.1rem;
  }

  .article-table th,
  .article-table td {
    padding: 8px 12px;
    font-size: .8rem;
  }

  .faq-question {
    font-size: .88rem;
    padding: 14px 16px;
  }
}