/* =============================================
   LIYU FOODTECH — Product Detail Page Extensions
   Extends style.css palette/tokens for the
   individual product detail template.
   ============================================= */

/* ── Breadcrumb ── */
.breadcrumb-bar {
  padding: 100px 0 0;
  background: var(--bg-2);
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--white-dim);
}
.breadcrumb a { color: var(--white-dim); transition: var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span.sep { color: var(--border); }
.breadcrumb span.current { color: var(--white); }

/* ── Detail Hero ── */
.detail-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 72px;
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.detail-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 14px 0 20px;
}
.detail-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ── Icon-tile visual (placeholder in lieu of product photography) ── */
.icon-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.icon-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}
.icon-tile svg {
  position: relative;
  width: 42%;
  height: 42%;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.3;
  filter: drop-shadow(0 8px 24px rgba(232,98,26,0.25));
}
.icon-tile-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: rgba(28,31,36,0.7);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ── Detail body layout ── */
.detail-body { background: var(--bg); padding: 88px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: start;
}
.detail-lead {
  font-size: 1.05rem;
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 36px;
}
.detail-h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 20px;
}
.detail-h3:first-of-type { margin-top: 0; }
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .why-dot { margin-top: 7px; }
.feature-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.feature-item p { font-size: 0.88rem; color: var(--white-dim); line-height: 1.6; }

/* ── Spec panel (sidebar) ── */
.spec-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 92px;
}
.spec-panel h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.spec-row:last-of-type { border-bottom: none; }
.spec-row .spec-k { color: var(--white-dim); flex-shrink: 0; }
.spec-row .spec-v { font-weight: 500; text-align: right; }
.spec-panel .btn { width: 100%; justify-content: center; margin-top: 20px; }
.spec-panel .btn-ghost { margin-top: 10px; }
.spec-note {
  font-size: 0.75rem;
  color: var(--white-dim);
  margin-top: 16px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ── Applications strip ── */
.app-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.app-tag {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--white-dim);
}

/* ── Related products ── */
.related { background: var(--bg-2); padding: 88px 0; border-top: 1px solid var(--border); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.related-card {
  background: var(--bg-3);
  padding: 32px;
  transition: var(--transition);
  border-top: 2px solid transparent;
}
.related-card:hover { border-color: var(--orange); }
.related-card .product-cat { margin-bottom: 8px; }
.related-card .product-name { font-size: 1.1rem; margin-bottom: 10px; }
.related-card p { font-size: 0.83rem; color: var(--white-dim); line-height: 1.55; margin-bottom: 16px; }
.related-card .product-arrow { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-hero-grid .icon-tile { order: -1; }
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .spec-panel { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}
