/* ══════════════════════════════════════════════════════════════
   Finhanced Inc. — Commodity Product Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ── COMMODITY HERO (overrides) ── */
.hero {
  min-height: 60vh;
  padding-top: 80px;
}
.hero-stats {
  position: static;
  flex-direction: row;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(125,219,192,0.15);
  flex-wrap: wrap;
}
.hero-stat {
  text-align: left;
  padding-right: 0;
  border-right: none;
}
.hero-stat-value {
  font-size: 2rem;
}
.hero-stat-label {
  margin-top: 4px;
}

/* ── SPEC CARDS ── */
.spec-cards {
  padding: 80px 0;
  background: var(--gray-100);
}
.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.spec-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.spec-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.spec-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.spec-card-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── SPECS TABLE SECTION ── */
.specs-section {
  padding: 80px 0;
  background: var(--white);
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.spec-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
.spec-table tr:nth-child(even) td {
  background: var(--gray-100);
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 55%;
}
.spec-table td:last-child {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
}
.spec-note {
  margin-top: 16px;
  padding: 16px;
  background: var(--gold-dim);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── PACKAGING ── */
.packaging {
  padding: 80px 0;
  background: var(--navy);
}
.packaging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.pkg-card {
  background: #2d2d2d;
  border-radius: 10px;
  padding: 36px 28px;
  border: 1px solid rgba(125,219,192,0.12);
  transition: border-color 0.3s;
}
.pkg-card:hover {
  border-color: var(--gold);
}
.pkg-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.pkg-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.pkg-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.pkg-detail {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── COMPLIANCE ── */
.compliance-sec {
  padding: 80px 0;
  background: var(--gray-100);
}
.compliance-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.comp-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.comp-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.comp-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(125,219,192,0.07), transparent);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-section .cta-actions {
  position: relative;
}

/* ── MARKET PRICE INDICATOR ── */
.market-ref {
  background: var(--gold-dim);
  border: 1px solid rgba(125,219,192,0.15);
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.market-ref-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(125,219,192,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.market-ref-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
.market-ref-info {
  flex: 1;
}
.market-ref-exchange {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}
.market-ref-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}
.market-ref-updated {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── RELATED PRODUCTS ── */
.related-products {
  padding: 80px 0;
  background: var(--white);
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.related-card {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.related-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.related-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}
.related-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── COMPARISON TABLE ── */
.compare-section {
  padding: 80px 0;
  background: var(--white);
}
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}
.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.compare-table th:first-child {
  background: var(--navy-mid);
  min-width: 160px;
}
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--text-body);
}
.compare-table tr:nth-child(even) td {
  background: var(--gray-100);
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}
.compare-highlight {
  color: var(--gold);
  font-weight: 600;
}
.compare-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.compare-link:hover { color: var(--gold-light); }

/* ── LIGHT MODE COMMODITY OVERRIDES ── */
[data-theme="light"] .spec-cards { background: #f0f7f4; }
[data-theme="light"] .spec-card { background: #fff; }
[data-theme="light"] .compliance-sec { background: #f0f7f4; }
[data-theme="light"] .comp-card { background: #fff; }
[data-theme="light"] .related-products { background: #f8faf9; }
[data-theme="light"] .related-card { background: #fff; border-color: #dce4e1; }

/* ── LIGHT MODE ── */
[data-theme="light"] .commodity-desc p { color: var(--text-body); }
[data-theme="light"] .market-ref-exchange { color: var(--text-body); }
[data-theme="light"] .market-ref-updated { color: var(--gray-400); }
/* Keep dark sections dark */
[data-theme="light"] .market-refs { background: #1a1a1a; }
[data-theme="light"] .packaging { background: #1a1a1a; }
[data-theme="light"] .packaging .section-title { color: #ffffff; }
[data-theme="light"] .cta-section { background: #1a1a1a; }
[data-theme="light"] .spec-table th { background: #f0f7f4; color: var(--text-dark); }
[data-theme="light"] .compare-table th { background: #f0f7f4; color: var(--text-dark); }
[data-theme="light"] .cta-section h2 { color: #ffffff; }
[data-theme="light"] .cta-section p { color: rgba(255,255,255,0.6); }

/* ── COMMODITY RESPONSIVE ── */
@media (max-width: 900px) {
  .spec-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .packaging-grid,
  .compliance-cards { grid-template-columns: 1fr; }
  .related-products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .spec-cards-grid { grid-template-columns: 1fr; }
  .related-products-grid { grid-template-columns: 1fr; }
  .market-ref { flex-direction: column; text-align: center; }
}
