/* ═══════════════════════════════════════════════════════
   PSR METALS PVT. LTD. — products.css
   Lead Products Listing Page + Single Product Page Styles
   Self-contained: includes all base tokens + component overrides
   ═══════════════════════════════════════════════════════ */

/* ── 0. PAGE-LEVEL REVEAL OVERRIDE ────────────────────── */
.page-products .reveal,
.page-product .reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ── 1. BREADCRUMB ─────────────────────────────────────── */
.psr-breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--metallic-accent);
}
.breadcrumb-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.breadcrumb-list a:hover { color: var(--accent-hover); }
.breadcrumb-list [aria-current="page"] { color: var(--text-primary); font-weight: 600; }

/* ── 2. PRODUCTS HEADER SECTION ────────────────────────── */
#products-header {
  padding: calc(var(--section-v) * 0.8) var(--section-h) calc(var(--section-v) * 0.5);
  background: var(--bg);
}
#products-header .section-heading { margin-bottom: 0; }
#products-header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

/* ── 3. PRODUCTS CATALOG GRID ──────────────────────────── */
#products-grid {
  padding: calc(var(--section-v) * 0.6) var(--section-h) var(--section-v);
  background: var(--bg);
}
.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) {
  .products-catalog-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .products-catalog-grid { grid-template-columns: 1fr; }
}

.product-catalog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-border);
}

.product-catalog-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--surface);
}
.product-catalog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.product-catalog-card:hover .product-catalog-visual img { transform: scale(1.05); }
.product-catalog-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,9,20,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-catalog-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-catalog-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.product-catalog-grade {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.product-catalog-body > p:not(.product-catalog-grade) {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}
.product-catalog-body .btn { align-self: flex-start; font-size: 0.88rem; padding: 0.75rem 1.4rem; }

/* ── 4. SOFT CTA BAND ──────────────────────────────────── */
#products-soft-cta {
  padding: 2rem var(--section-h);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.soft-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.soft-cta-band-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}
.soft-cta-band-content svg { color: var(--accent); flex-shrink: 0; }
.soft-cta-band-content p { font-size: 0.95rem; font-weight: 600; margin: 0; }

/* ── 5. FINAL CTA (inherits #cta from style.css) ──────── */
#cta {
  padding: var(--section-v) var(--section-h);
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 90px);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE STYLES (page-product-*.php)
   ══════════════════════════════════════════════════════════ */

/* ── PRODUCT HERO HEADER ───────────────────────────────── */
#product-hero {
  padding: calc(var(--section-v) * 0.7) var(--section-h) calc(var(--section-v) * 0.5);
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.product-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(62,64,149,0.22);
  margin-bottom: 1rem;
}
#product-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.product-hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* ── MAIN SHOWCASE BLOCK (2-column) ────────────────────── */
#product-showcase {
  padding: var(--section-v) var(--section-h);
  background: var(--bg);
}
.product-showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
@media (max-width: 1023px) {
  .product-showcase-block { grid-template-columns: 1fr; }
}

/* Gallery — Left Column */
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.product-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
}
.product-gallery-thumbs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.product-thumb {
  width: calc(25% - 0.5rem);
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: var(--surface);
  flex-shrink: 0;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-thumb:hover,
.product-thumb.active {
  border-color: var(--accent);
  transform: scale(1.04);
}

/* Specs Grid — Right Column */
.product-specs-panel { display: flex; flex-direction: column; gap: 0; }
.product-specs-panel h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35rem; }
.product-specs-grade-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.product-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}
.product-specs-table tr:last-child { border-bottom: none; }
.product-specs-table th {
  text-align: left;
  padding: 0.7rem 0.5rem 0.7rem 0;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 42%;
  white-space: nowrap;
}
.product-specs-table td {
  padding: 0.7rem 0;
  font-weight: 600;
  color: var(--text-primary);
}
.spec-placeholder {
  color: var(--metallic-accent);
  font-style: italic;
  font-weight: 400;
}

/* Product CTA Buttons */
.product-cta-band {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.product-cta-band .btn { flex: 1 1 auto; justify-content: center; font-size: 0.9rem; }

/* ── CONTENT BLOCK ─────────────────────────────────────── */
#product-content {
  padding: var(--section-v) var(--section-h);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}
.product-content-inner {
  max-width: 820px;
}
.product-content-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.product-content-inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.product-content-inner p:last-child { margin-bottom: 0; }

/* ── APPLICATIONS SECTION ──────────────────────────────── */
#product-applications {
  padding: var(--section-v) var(--section-h);
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

/* ── RELATED PRODUCTS ──────────────────────────────────── */
#related-products {
  padding: var(--section-v) var(--section-h);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 767px) {
  .related-products-grid { grid-template-columns: 1fr; }
}
.related-product-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.related-product-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.related-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.related-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-product-info { flex: 1; }
.related-product-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.related-product-info span {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}
