/* =========================================================
   PRODUCTS PAGE
   Layout/styling specific to products.html only.
   Reuses .product-card / .hover-lift / .btn-link classes
   already defined in home.css / buttons.css / animations.css
   for visual consistency with the Home page's featured cards.
   ========================================================= */

.products-intro {
  padding-bottom: var(--space-4);
}

.products-intro .container {
  max-width: min(90vw, 1360px);
}

.products-intro .section-head {
  max-width: none;
  margin-bottom: 30px;

}

.products-intro .lede {
  max-width: none;
  margin-top: 10px;
}




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

.products-cta__inner { text-align: center; }

.products-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE — Products page specific
   ========================================================= */

@media (max-width: 1024px) {
  .products-catalogue__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .products-catalogue__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
}





/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration) var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__label {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(14,33,28,0.85), transparent);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: var(--space-2);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,33,28,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox__img { max-width: 85vw; max-height: 78vh; border-radius: var(--radius-md); }
.lightbox__caption { position: absolute; bottom: var(--space-3); color: var(--color-white); font-size: 0.9rem; }
.lightbox__close { position: absolute; top: var(--space-3); right: var(--space-3); background: none; border: none; color: var(--color-white); font-size: 1.5rem; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; background: none; border: none; color: var(--color-white); font-size: 2.5rem; cursor: pointer; padding: var(--space-2); }
.lightbox__nav--prev { left: var(--space-2); }
.lightbox__nav--next { right: var(--space-2); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}