/* ==========================================================================
   PRODUCT PAGES STYLES
   Used by: grades.html, powder-activated-carbon.html,
            granular-activated-carbon.html, activated-carbon-pellets.html
   ========================================================================== */

/* ==========================================================================
   1. PRODUCT HERO
   ========================================================================== */
.product-hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 80px var(--space-lg) 100px;
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 153, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.product-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(51, 153, 255, 0.08), transparent 60%);
  pointer-events: none;
}

/* ==========================================================================
   2. BREADCRUMB
   ========================================================================== */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--grey-light);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: var(--grey-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--white);
  font-weight: 500;
}

/* ==========================================================================
   3. PRODUCT HERO GRID
   ========================================================================== */
.product-hero-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.product-hero-content .section-tag {
  background: rgba(51, 153, 255, 0.12);
  color: var(--blue);
}

.product-hero-content h1 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--white);
}

.product-hero-content h1 strong {
  font-weight: 700;
  color: var(--blue);
}

.product-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.product-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.quick-spec {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.quick-spec:hover {
  background: rgba(51, 153, 255, 0.08);
  border-color: rgba(51, 153, 255, 0.3);
}

.quick-spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--grey-light);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.quick-spec-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.product-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-hero-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.6);
}

.product-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.product-hero-image-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(51, 153, 255, 0.95);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   4. GRADES OVERVIEW PAGE - PRODUCT GRID
   ========================================================================== */
.grades-overview {
  background: var(--white);
  padding: 100px var(--space-lg);
}

.grades-overview-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.grades-overview-header {
  text-align: center;
  margin-bottom: 64px;
}

.grades-overview-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.grades-overview-header .section-subtitle {
  margin: 0 auto;
}

.grades-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.grade-overview-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.grade-overview-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.grade-overview-card:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.grade-overview-card:nth-child(even) .grade-overview-image {
  order: 2;
}

.grade-overview-image {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--ink);
}

.grade-overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.grade-overview-card:hover .grade-overview-image img {
  transform: scale(1.05);
}

.grade-overview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

.grade-overview-image-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(51, 153, 255, 0.95);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  letter-spacing: 0.1em;
  z-index: 2;
}

.grade-overview-image-num {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 2;
}

.grade-overview-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grade-overview-content .grade-tag-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.grade-overview-content h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.grade-overview-content .subtitle {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.grade-overview-content > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.grade-overview-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.grade-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.grade-feature-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

.grade-overview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. COMPARISON TABLE
   ========================================================================== */
.product-comparison {
  background: var(--grey-bg);
  padding: 100px var(--space-lg);
}

.comparison-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.comparison-header {
  text-align: center;
  margin-bottom: 56px;
}

.comparison-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.comparison-header .section-subtitle {
  margin: 0 auto;
}

.comparison-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.comparison-table thead th {
  background: var(--ink);
  color: var(--white);
  padding: 24px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.01em;
}

.comparison-table thead th:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  background: var(--ink-3);
}

.comparison-table thead th .sub {
  display: block;
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-top: 4px;
  text-transform: uppercase;
}

.comparison-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  background: var(--blue-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.comparison-table tbody td:not(:first-child) {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

/* ==========================================================================
   6. INDIVIDUAL PRODUCT PAGE - FEATURES SECTION
   ========================================================================== */
.product-features {
  background: var(--white);
  padding: 20px var(--space-lg);
}

.product-features-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.65;
}

/* ==========================================================================
   7. SPECIFICATIONS SECTION
   ========================================================================== */
.product-specs {
  background: var(--grey-bg);
  padding: 40px var(--space-lg);
}

.product-specs-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.specs-content .section-tag {
  background: var(--blue-soft);
}

.specs-content > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 32px;
}

.specs-callout {
  background: var(--white);
  border-left: 4px solid var(--blue);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.specs-callout strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 8px;
}

.specs-callout p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
}

.specs-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.specs-table-header {
  background: var(--ink);
  color: var(--white);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.specs-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.specs-table-row:last-child {
  border-bottom: none;
}

.specs-table-row:nth-child(even) {
  background: var(--off-white);
}

.specs-table-row .param {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.specs-table-row .value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.specs-table-row .method {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   8. APPLICATIONS SECTION
   ========================================================================== */
.product-applications {
  background: var(--white);
  padding: 40px var(--space-lg);
}

.applications-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.applications-header {
  text-align: center;
  margin-bottom: 64px;
}

.applications-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.applications-header .section-subtitle {
  margin: 0 auto;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.application-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.application-card:hover {
  transform: translateY(-4px);
}

.application-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.application-card:hover img {
  transform: scale(1.08);
}

.application-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85));
}

.application-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--white);
  z-index: 2;
}

.application-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.application-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* ==========================================================================
   9. PACKAGING SECTION
   ========================================================================== */
.product-packaging {
  background: var(--ink);
  color: var(--white);
  padding: 40px var(--space-lg);
  position: relative;
  overflow: hidden;
}

.product-packaging::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(51, 153, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.packaging-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.packaging-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.packaging-content .section-tag {
  background: rgba(51, 153, 255, 0.12);
  color: var(--blue);
}

.packaging-content .section-title {
  color: var(--white);
}

.packaging-content > p {
  font-size: 16px;
  color: var(--grey-light);
  line-height: 1.75;
  margin-bottom: 32px;
}

.packaging-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.packaging-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.packaging-option:hover {
  background: rgba(51, 153, 255, 0.06);
  border-color: rgba(51, 153, 255, 0.25);
}

.packaging-option-icon {
  width: 44px;
  height: 44px;
  background: rgba(51, 153, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.packaging-option-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.packaging-option-text span {
  font-size: 13px;
  color: var(--grey-light);
}

.packaging-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.packaging-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   10. RELATED PRODUCTS
   ========================================================================== */
.related-products {
  background: var(--grey-bg);
  padding: 40px var(--space-lg);
}

.related-products-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.related-header {
  text-align: center;
  margin-bottom: 48px;
}

.related-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.related-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.related-card-image {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.08);
}

.related-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}

.related-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.related-card-content p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 12px;
}

.related-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  transition: gap var(--transition-base);
}

.related-card:hover .related-card-arrow {
  gap: 12px;
}

/* ==========================================================================
   11. PRODUCT CTA SECTION
   ========================================================================== */
.product-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 80px var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.product-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.product-cta h2 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.product-cta h2 strong {
  font-weight: 700;
}

.product-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.product-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-cta .btn-white {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--white);
}

.product-cta .btn-white:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.product-cta .btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.product-cta .btn-outline-white:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

/* ==========================================================================
   12. RESPONSIVE — PRODUCT PAGES
   ========================================================================== */
@media (max-width: 1024px) {
  .product-hero {
    padding: 60px var(--space-md) 80px;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-hero-image {
    aspect-ratio: 16/10;
    max-height: 400px;
  }

  .specs-grid,
  .packaging-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .grade-overview-card,
  .grade-overview-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .grade-overview-card:nth-child(even) .grade-overview-image {
    order: 0;
  }

  .grade-overview-image {
    min-height: 280px;
  }

  .grade-overview-content {
    padding: 36px 28px;
  }

  .product-features,
  .product-specs,
  .product-applications,
  .product-packaging,
  .related-products,
  .grades-overview,
  .product-comparison {
    padding: 20px var(--space-md);
  }

  .product-cta {
    padding: 20px var(--space-md);
  }
}

@media (max-width: 720px) {
  .product-quick-specs {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }

  .specs-table-header,
  .specs-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .specs-table-row .value,
  .specs-table-row .method {
    font-size: 14px;
  }

  .grade-overview-features {
    grid-template-columns: 1fr;
  }

  .related-card {
    grid-template-columns: 1fr;
  }

  .related-card-image {
    aspect-ratio: 16/9;
  }

  .grade-overview-image-num {
    font-size: 60px;
  }
}


/* ==========================================================================
   POST PAGE STYLES
   Used by: templates/page-types/post.php
   ========================================================================== */

/* Post Hero */
.post-hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.post-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  min-height: 540px;
  padding: 80px 0 0;
}

.post-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(51,153,255,0.12), transparent 60%);
  pointer-events: none;
}

.post-hero-content {
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.post-category-tag {
  background: rgba(51,153,255,0.12);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.post-meta-sep {
  width: 3px; height: 3px;
  background: var(--grey-light);
  border-radius: 50%;
}

.post-meta-date, .post-meta-read {
  font-size: 13px;
  color: var(--grey-light);
  font-family: var(--font-mono);
}

.post-hero-content h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
}

.post-hero-content h1 strong {
  color: var(--blue);
  font-weight: 700;
}

.post-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey-light);
  margin-bottom: 32px;
  max-width: 540px;
}

.post-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  width: fit-content;
}

.post-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.post-author-info strong {
  display: block;
  font-size: 14px;
  color: var(--white);
}

.post-author-info span {
  font-size: 12px;
  color: var(--grey-light);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.post-hero-image {
  position: relative;
  align-self: stretch;
  min-height: 400px;
  overflow: hidden;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1a1a1a 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* Post Body Layout */
.post-body {
  background: var(--white);
  padding: 80px var(--space-lg);
}

.post-body-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

/* Post Content (prose) */
.post-content {
  min-width: 0;
}

.post-content h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}

.post-content h2:first-child {
  margin-top: 0;
  border-top: none;
}

.post-content h3 {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.post-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.post-content strong {
  color: var(--ink);
  font-weight: 600;
}

.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-content li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--blue-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.post-content blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--grey);
  font-style: normal;
  font-family: var(--font-mono);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.post-content th {
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.post-content tr:nth-child(even) td {
  background: var(--off-white);
}

/* Callout box (data-callout attribute) */
.post-callout {
  background: var(--blue-soft);
  border: 1px solid rgba(51,153,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.post-callout-icon {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}

.post-callout-body strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.post-callout-body p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.65;
  margin: 0;
}

/* Key takeaways / bullet list styled section */
.post-takeaways {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin: 40px 0;
}

.post-takeaways h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.post-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--grey-light);
  line-height: 1.6;
  margin: 0;
}

.post-takeaways li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.post-tag {
  padding: 6px 14px;
  background: var(--grey-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all var(--transition-base);
}

.post-tag:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

/* Post Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card-header {
  padding: 16px 20px;
  background: var(--grey-bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
}

/* Table of contents */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  border-bottom: 1px solid var(--line);
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: all var(--transition-base);
}

.toc-list a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  padding-left: 24px;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
  font-weight: 600;
  flex-shrink: 0;
  width: 20px;
}

/* Related products in sidebar */
.sidebar-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-base);
}

.sidebar-product:last-child {
  border-bottom: none;
}

.sidebar-product:hover {
  background: var(--blue-soft);
}

.sidebar-product-img {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink);
}

.sidebar-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.sidebar-product-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.sidebar-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* Sidebar CTA card */
.sidebar-cta {
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  text-align: center;
}

.sidebar-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 16px;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  font-size: 13px;
}

.sidebar-cta .btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Related posts section */
.post-related {
  background: var(--grey-bg);
  padding: 80px var(--space-lg);
}

.post-related-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.post-related-header {
  text-align: center;
  margin-bottom: 48px;
}

.post-related-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink);
}

.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-card-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.post-card-date {
  font-size: 11px;
  color: var(--grey);
  font-family: var(--font-mono);
}

.post-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.post-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition-base);
}

.post-card:hover .post-card-arrow {
  gap: 10px;
}

/* Responsive - Post */
@media (max-width: 1024px) {
  .post-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }

  .post-hero-image {
    min-height: 320px;
  }

  .post-hero-image::before {
    background: linear-gradient(to top, #1a1a1a 0%, transparent 40%);
  }

  .post-hero-content {
    padding-bottom: 48px;
  }

  .post-body-inner {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .post-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-body,
  .post-related {
    padding: 60px var(--space-md);
  }
}

@media (max-width: 720px) {
  .post-related-grid {
    grid-template-columns: 1fr;
  }

  .post-content h2 { font-size: 22px; }
  .post-content p, .post-content li { font-size: 16px; }
  .post-content blockquote p { font-size: 17px; }
}

/* ==========================================================================
   FREE CONTENT SECTION
   One section wrapping all content rows from the ACF repeater.
   Heading uses .section-title (same as every other section on the page).
   Body text uses same font size, color, line-height as the rest.
   Padding and max-width identical to .product-features.
   ========================================================================== */

.product-free-content {
  background: var(--white);
  padding: 20px var(--space-lg);
}

.product-free-content-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Each row — text only, or text + image side by side */
.pfc-row {
  display: grid;
  gap: 60px;
  align-items: center;
}

.pfc-row--text-only { grid-template-columns: 1fr; }
.pfc-row--right     { grid-template-columns: 1fr 1fr; }
.pfc-row--left      { grid-template-columns: 1fr 1fr; }
.pfc-row--top       { grid-template-columns: 1fr; }

/* Heading uses .section-title class directly — no extra styles needed.
   .section-title is already defined in main.css with correct size/weight/color */

/* Body text — same as paragraph text across the page */
.pfc-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
}

.pfc-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.pfc-body p:last-child { margin-bottom: 0; }

.pfc-body strong {
  color: var(--ink);
  font-weight: 600;
}

.pfc-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pfc-body ul,
.pfc-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.pfc-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 8px;
}

/* Image */
.pfc-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-free-content {
    padding: 80px var(--space-md);
  }

  .pfc-row--right,
  .pfc-row--left {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .product-free-content {
    padding: 60px var(--space-md);
  }
}

/* ==========================================================================
   FULL RESPONSIVE AUDIT — PRODUCT PAGES — ALL SCREENS
   ========================================================================== */

/* Large screens 1440px+ */
@media (min-width: 1440px) {
  .product-hero { padding: 20px var(--space-lg) 120px; }
  .product-features,
  .product-specs,
  .product-applications,
  .product-packaging,
  .related-products,
  .product-free-content { padding: 20px var(--space-lg); }
}

/* Tablet portrait 768px */
@media (max-width: 768px) {
  .product-hero { padding: 48px 20px 60px; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-hero-content h1 { font-size: clamp(28px, 7vw, 44px); }
  .product-hero-lead { font-size: 15px; }
  .product-hero-cta { flex-direction: column; gap: 10px; }
  .product-hero-cta .btn { width: 100%; justify-content: center; }
  .product-quick-specs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-hero-image { aspect-ratio: 16/9; max-height: 280px; }

  .product-features,
  .product-specs,
  .product-applications,
  .product-packaging,
  .related-products,
  .product-free-content { padding: 20px 20px; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .specs-grid { grid-template-columns: 1fr; gap: 32px; }
  .applications-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .packaging-grid { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr; }

  .pfc-row--right,
  .pfc-row--left { grid-template-columns: 1fr; gap: 24px; }

  .product-cta { padding: 48px 20px; }
  .product-cta h2 { font-size: clamp(24px, 6vw, 36px); }
  .product-cta-buttons { flex-direction: column; align-items: center; }
}

/* Mobile 640px */
@media (max-width: 640px) {
  .product-quick-specs { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: 1fr; }
  .breadcrumb { font-size: 11px; gap: 4px; }
  .features-header .section-title,
  .applications-header .section-title,
  .specs-content .section-title { font-size: clamp(26px, 7vw, 36px); }

  .related-card { grid-template-columns: 1fr; }
  .related-card-image { aspect-ratio: 16/9; }

  .specs-table-header,
  .specs-table-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
}

/* Small mobile 375px */
@media (max-width: 375px) {
  .product-hero { padding: 32px 12px 48px; }
  .product-features,
  .product-specs,
  .product-applications,
  .product-packaging,
  .related-products,
  .product-free-content { padding: 48px 12px; }
}