/* ====================================================================
   PRODUCTS.CSS — Elements India
   --------------------------------------------------------------------
   Covers two page types:
   1. products.html        — listing/overview of all three products
   2. rubber/gypsum/edible-oil.html — individual product detail pages
   ==================================================================== */


/* --------------------------------------------------------------------
   1. PRODUCTS LISTING PAGE (products.html)
   -------------------------------------------------------------------- */

.products-intro {
  max-width: 60ch;
}

.products-intro h1 {
  margin-bottom: var(--space-5);
}

.products-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* Reuses .product-card from home.css; this modifier gives it more room
   for a full spec strip on the listing page */
.product-card--full .product-card__body {
  padding: var(--space-6);
}


/* --------------------------------------------------------------------
   2. PRODUCT DETAIL — BANNER
   -------------------------------------------------------------------- */

.product-banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-ink);
}

.product-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.product-banner__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding: var(--space-7) var(--container-pad);
  color: var(--color-white);
}

.product-banner__content .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.product-banner__content h1 {
  color: var(--color-white);
  max-width: 20ch;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--color-white);
}


/* --------------------------------------------------------------------
   3. PRODUCT INTRODUCTION
   -------------------------------------------------------------------- */

.product-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
}

.product-intro__text p + p {
  margin-top: var(--space-4);
}

.product-intro__specs {
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
  align-self: start;
}

.product-intro__specs h3 {
  font-size: var(--fs-base);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-stone);
  margin-bottom: var(--space-5);
}

.spec-table {
  width: 100%;
}

.spec-table tr {
  border-bottom: 1px solid var(--color-line);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: var(--space-3) 0;
  font-size: var(--fs-sm);
}

.spec-table td:first-child {
  color: var(--color-stone);
}

.spec-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-ink);
}


/* --------------------------------------------------------------------
   4. APPLICATIONS
   -------------------------------------------------------------------- */

.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.application-item {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-4);
}

.application-item h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
}

.application-item p {
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------
   5. BENEFITS
   -------------------------------------------------------------------- */

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-7);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.benefit-item__mark {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-rust);
  margin-top: 3px;
}

.benefit-item h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-1);
}

.benefit-item p {
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------
   6. PRODUCT INDUSTRIES (tag-style list, distinct from homepage band)
   -------------------------------------------------------------------- */

.product-industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.industry-tag {
  border: 1px solid var(--color-line-strong);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  color: var(--color-ink-soft);
}


/* --------------------------------------------------------------------
   7. GALLERY
   -------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-3);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--wide {
  grid-column: span 2;
}


/* --------------------------------------------------------------------
   8. PRODUCT INQUIRY STRIP
   -------------------------------------------------------------------- */

.product-inquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-7);
  background-color: var(--color-paper-dim);
  border: 1px solid var(--color-line);
  flex-wrap: wrap;
}

.product-inquiry p {
  font-size: var(--fs-md);
  color: var(--color-ink);
  font-family: var(--font-display);
}


/* --------------------------------------------------------------------
   9. RELATED PRODUCTS
   -------------------------------------------------------------------- */

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}


/* --------------------------------------------------------------------
   10. GALLERY LIGHTBOX
   Created dynamically by js/products.js and appended to <body>.
   -------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(32, 29, 25, 0.92);
  padding: var(--space-6);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: min(900px, 100%);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.lightbox__close:hover {
  border-color: var(--color-white);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.lightbox__arrow:hover {
  border-color: var(--color-white);
}

.lightbox__arrow--prev {
  left: var(--space-5);
}

.lightbox__arrow--next {
  right: var(--space-5);
}


/* --------------------------------------------------------------------
   11. HL3 COMPLIANCE TABLE (hl3.html)
   4-column performance table, built on the site's design tokens.
   -------------------------------------------------------------------- */

.hl3-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  background-color: var(--color-white);
}

.hl3-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.hl3-table thead tr {
  background-color: var(--color-slate);
}

.hl3-table th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
}

.hl3-table td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-line);
}

.hl3-table tbody tr:last-child td {
  border-bottom: none;
}

.hl3-table tbody tr:hover td {
  background-color: var(--color-paper);
}

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

.hl3-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-stone);
}

.hl3-pass {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-rust);
}
