/* =====================================================================
   GINEERS — level3.css  (Product list page)
   Loaded after common.css
   Products alternate automatically: odd = picture left, even = picture right.
   ===================================================================== */

.level3-head { margin: 12px 0 20px; }

.product-list { display: flex; flex-direction: column; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 2px solid var(--blue-tint);
}
.product:last-child { border-bottom: 0; }

/* Alternate sides: every 2nd product has its picture on the right */
.product:nth-child(even) .product-media { order: 2; }

.product-media {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 0.9;
  box-shadow: 0 4px 18px rgba(0, 42, 87, .06);
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }

.product-kind {
  margin: 0 0 4px;
  font-size: .95rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-dark);
}
.product-kind::before {
  content: ""; display: inline-block; width: 28px; height: 4px;
  background: var(--red); vertical-align: middle; margin-right: 10px; border-radius: 2px;
}
.product-body h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.product-body > p { font-size: 1.1rem; }

.product-features { margin: 0 0 24px; padding-left: 1.3em; font-size: 1.05rem; }
.product-features li { margin-bottom: 4px; }
.product-features li::marker { color: var(--blue-light); }

/* Document links — two per row; add more <li> and they wrap to new rows */
.doc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.doc-link {
  display: flex; align-items: center; gap: 12px;
  height: 100%;
  padding: 12px 16px;
  font-weight: 500; font-size: 1rem; line-height: 1.3;
  color: var(--blue-dark);
  background: var(--white);
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.doc-link:hover { background: var(--blue-dark); color: var(--white); }
.doc-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 30px; padding: 0 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px;
  color: var(--white);
  background: var(--red);
  border-radius: 5px;
}
.doc-zip   { background: var(--blue-dark); }
.doc-video { background: var(--blue-light); color: var(--black); font-size: .9rem; }
.doc-link:hover .doc-icon { box-shadow: 0 0 0 2px var(--white); }

/* Back / next at the bottom */
.level3-pager {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 24px; padding-top: 32px;
  border-top: 2px solid var(--blue-tint);
}

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .product:nth-child(even) .product-media { order: 0; }  /* picture always on top on phones */
  .product-media { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .doc-grid { grid-template-columns: 1fr; }
}
