/* ============================================
   THAI BIOMASS - products page styles
   Extracted from inline <style> so the browser can cache it.
============================================ */

    /* =========================================
       PRODUCTS PAGE – CM Biomass-inspired style
       Clean, editorial, generous whitespace
    ========================================= */

    .products-page { padding-top: 72px; }

    /* ---- HERO ---- */
    .products-hero {
      background: var(--gradient-hero);
      padding: 4rem 0 4rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid var(--border);
      transition: background 0.4s ease;
    }

    .products-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 100%, var(--primary-glow) 0%, transparent 65%);
      pointer-events: none;
    }

    /* ---- PRODUCT NAV TABS ---- */
    .product-tabs-wrap {
      background: var(--bg-card);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 72px;
      z-index: 200;
      transition: background 0.4s ease;
    }

    .product-tabs {
      display: flex;
      overflow-x: auto;
      gap: 0;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .product-tabs::-webkit-scrollbar { display: none; }

    .product-tab {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 1.1rem 1.5rem;
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      color: var(--text-muted);
      font-size: 0.85rem;
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      transition: var(--transition);
    }

    .product-tab:hover { color: var(--primary); }

    .product-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
      background: var(--primary-glow);
    }

    .product-tab .tab-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--border);
      transition: var(--transition);
    }
    .product-tab.active .tab-dot,
    .product-tab:hover .tab-dot {
      background: var(--primary);
    }

    /* ---- COMING SOON BADGE ---- */
    .coming-soon-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.2rem 0.6rem;
      border-radius: 6px;
      background: rgba(234, 179, 8, 0.15);
      border: 1px solid rgba(234, 179, 8, 0.45);
      color: #ca8a04;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      white-space: nowrap;
      flex-shrink: 0;
    }

    [data-theme="light"] .coming-soon-badge {
      background: rgba(234, 179, 8, 0.12);
      border-color: rgba(202, 138, 4, 0.4);
      color: #92400e;
    }

    /* Tab coming-soon pill (smaller, inline with tab label) */
    .product-tab .tab-coming-soon {
      display: inline-flex;
      align-items: center;
      padding: 0.1rem 0.4rem;
      border-radius: 999px;
      background: rgba(234, 179, 8, 0.15);
      border: 1px solid rgba(234, 179, 8, 0.4);
      color: #ca8a04;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      line-height: 1.4;
    }

    /* ---- PRODUCT SECTIONS ---- */
    .product-entry {
      padding: 6rem 0;
      border-bottom: 1px solid var(--border);
      transition: background 0.4s ease;
      position: relative;
      overflow: hidden;
    }

    .product-entry:nth-child(odd) { background: var(--bg-page); }
    .product-entry:nth-child(even) { background: var(--bg-card-2); }

    /* Subtle texture accent */
    .product-entry::before {
      content: '';
      position: absolute;
      top: -120px; right: -120px;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
      pointer-events: none;
      opacity: 0.6;
    }

    .product-entry:nth-child(even)::before { left: -120px; right: auto; }

    .product-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }

    /* Push image top down to align with product title, past the large product number */
    .product-image-block {
      margin-top: 4.5rem; /* = product-number font-size (5rem) + margin-bottom (-0.5rem) */
    }

    .product-entry:nth-child(even) .product-layout {
      direction: rtl;
    }
    .product-entry:nth-child(even) .product-layout > * {
      direction: ltr;
    }

    /* ---- PRODUCT IMAGE BLOCK ---- */
    .product-image-block {
      position: relative;
    }

    .product-image-frame {
      border-radius: 24px;
      overflow: hidden;
      aspect-ratio: 4/3;
      position: relative;
      background: var(--bg-card);
      border: 1px solid var(--border);
    }

    .product-image-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
      transition: transform 0.6s ease;
    }

    .product-image-block:hover .product-image-frame img {
      transform: scale(1.04);
    }

    /* Floating spec badge */
    .product-img-badge {
      position: absolute;
      bottom: -16px;
      right: -16px;
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: 16px;
      padding: 1rem 1.4rem;
      box-shadow: var(--shadow-card);
      z-index: 2;
      transition: background 0.4s;
    }

    .product-img-badge .badge-label {
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 0.2rem;
    }

    .product-img-badge .badge-val {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--primary);
      line-height: 1;
    }

    /* Cert badges */
    .cert-badges {
      position: absolute;
      top: -12px;
      left: -12px;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      z-index: 2;
    }

    .cert-pill {
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: 100px;
      padding: 0.35rem 0.9rem;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 0.4rem;
      box-shadow: var(--shadow-card);
      white-space: nowrap;
      transition: background 0.4s;
    }

    /* ---- PRODUCT INFO BLOCK ---- */
    .product-info-block {
      position: relative;
      z-index: 1;
    }

    .product-number {
      font-size: 5rem;
      font-weight: 900;
      line-height: 1;
      color: var(--border);
      font-variant-numeric: tabular-nums;
      margin-bottom: -0.5rem;
      transition: color 0.4s;
    }

    [data-theme="light"] .product-number { color: #D8DDD6; }

    .product-name-row {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 0.5rem;
      flex-wrap: wrap;
    }

    .product-title {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 800;
      line-height: 1.2;
      color: var(--text);
    }

    .product-abbr {
      font-size: 1rem;
      font-weight: 700;
      color: var(--primary);
      background: var(--primary-glow);
      border: 1px solid var(--primary);
      border-radius: 6px;
      padding: 0.2rem 0.6rem;
      letter-spacing: 0.05em;
      flex-shrink: 0;
    }

    .product-tagline {
      font-size: 1rem;
      color: var(--text-light);
      margin-bottom: 1.5rem;
      line-height: 1.6;
      font-style: italic;
    }

    .product-desc {
      font-size: 0.95rem;
      color: var(--text-light);
      line-height: 1.8;
      margin-bottom: 2rem;
    }

    /* ---- SPEC TABLE ---- */
    .spec-block {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 2rem;
      transition: background 0.4s, border-color 0.4s;
    }

    .spec-block-header {
      padding: 0.85rem 1.25rem;
      background: var(--primary-glow);
      border-bottom: 1px solid var(--border);
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .spec-rows {}

    .spec-row {
      display: flex;
      align-items: center;
      padding: 0.8rem 1.25rem;
      border-bottom: 1px solid var(--border);
      font-size: 0.88rem;
      gap: 1rem;
      transition: background 0.2s;
    }

    .spec-row:last-child { border-bottom: none; }
    .spec-row:hover { background: var(--spec-row-hover); }

    .spec-row-label {
      flex: 1;
      color: var(--text-muted);
      font-weight: 500;
    }

    .spec-row-val {
      font-weight: 700;
      color: var(--text);
      text-align: right;
    }

    .spec-row-bar {
      width: 60px;
      height: 4px;
      border-radius: 2px;
      background: var(--border);
      overflow: hidden;
    }

    .spec-row-bar-fill {
      height: 100%;
      background: var(--gradient-primary);
      border-radius: 2px;
    }

    /* ---- USE CASES ---- */
    .use-cases {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 2rem;
    }

    .use-case-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--bg-card-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.4rem 0.8rem;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-light);
      transition: var(--transition);
    }

    .use-case-tag:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-glow);
    }

    .use-case-tag i { color: var(--primary); font-size: 0.7rem; }

    /* ---- PRODUCT ACTIONS ---- */
    .product-actions {
      display: flex;
      gap: 0.85rem;
      flex-wrap: wrap;
    }

    /* ---- COMPARISON TABLE ---- */
    .comparison-section {
      padding: 6rem 0;
      background: var(--bg-card-2);
      border-top: 1px solid var(--border);
      transition: background 0.4s;
    }

    .compare-table-wrap {
      overflow-x: auto;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
    }

    .compare-table {
      width: 100%;
      border-collapse: collapse;
      background: var(--bg-card);
      min-width: 700px;
      transition: background 0.4s;
    }

    .compare-table thead {
      background: var(--bg-page);
    }

    .compare-table th {
      padding: 1.1rem 1.25rem;
      text-align: left;
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--text-muted);
      border-bottom: 2px solid var(--border);
    }

    .compare-table th:first-child { color: var(--text); }

    .compare-table td {
      padding: 1rem 1.25rem;
      font-size: 0.88rem;
      border-bottom: 1px solid var(--border);
      color: var(--text-light);
      vertical-align: middle;
      transition: background 0.2s;
    }

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

    .compare-table tr:last-child td { border-bottom: none; }
    .compare-table tbody tr:hover td { background: var(--spec-row-hover); }

    .compare-table .pks-col { color: var(--primary); font-weight: 700; }

    .table-highlight-row td { background: var(--primary-glow) !important; }

    .cv-bar {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .cv-track {
      flex: 1;
      height: 6px;
      background: var(--border);
      border-radius: 3px;
      overflow: hidden;
      min-width: 80px;
    }

    .cv-fill {
      height: 100%;
      border-radius: 3px;
      background: var(--gradient-primary);
    }

    /* ---- SUSTAINABILITY SECTION ---- */
    .sustain-section {
      padding: 6rem 0;
      background: var(--bg-page);
      transition: background 0.4s;
    }

    .sustain-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .sustain-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2rem;
      text-align: center;
      transition: var(--transition);
    }

    .sustain-card:hover {
      border-color: rgba(46, 232, 165, 0.3);
      transform: translateY(-4px);
      box-shadow: var(--shadow-glow);
    }

    [data-theme="light"] .sustain-card:hover { border-color: rgba(0,168,112,0.3); }

    .sustain-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      display: block;
    }

    .sustain-card h3 {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

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

    /* ---- CTA ---- */
    .products-cta-section {
      padding: 5rem 0;
      background: var(--bg-card-2);
      border-top: 1px solid var(--border);
      transition: background 0.4s;
    }

    .products-cta-inner {
      background: linear-gradient(135deg, var(--primary-dark) 0%, #0D8C6E 100%);
      border-radius: 24px;
      padding: 5rem 3rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .products-cta-inner::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 300px; height: 300px;
      background: rgba(255,255,255,0.06);
      border-radius: 50%;
    }

    .products-cta-inner h2 { font-size: 2.2rem; font-weight: 800; color: white; margin-bottom: 1rem; position: relative; z-index:1; }
    .products-cta-inner p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 540px; margin: 0 auto 2rem; position: relative; z-index:1; }

    .products-cta-btns {
      display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index:1;
    }

    /* ---- ANCHOR OFFSET ---- */
    .product-anchor { scroll-margin-top: 144px; }

    /* ---- RESPONSIVE ---- */
    @media (max-width: 1024px) {
      .product-layout { grid-template-columns: 1fr; gap: 3rem; }
      .product-entry:nth-child(even) .product-layout { direction: ltr; }
      .sustain-grid { grid-template-columns: repeat(2, 1fr); }
      .product-image-block { margin-top: 0; max-width: 560px; margin-left: auto; margin-right: auto; }
    }

    @media (max-width: 768px) {
      .product-entry { padding: 4rem 0; }
      .sustain-grid { grid-template-columns: 1fr; }
      .products-cta-inner { padding: 3rem 1.5rem; }
      .product-img-badge { bottom: -10px; right: -8px; }
      .cert-badges { top: -8px; left: -8px; }
    }
