/* =========================================================
   PRODUCTS PAGE
   ========================================================= */

/* ---- PAGE HERO ---- */
.products-hero {
  background: var(--grad-blue);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}
.products-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  margin-bottom: var(--space-md);
  position: relative;
}
.products-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin-inline: auto;
  position: relative;
}

/* ---- SECTION DIVIDERS ---- */
.products-section {
  padding: var(--space-3xl) 0;
  position: relative;
}
.products-section:nth-child(even) { background: var(--surface-alt); }

.section-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: flex-end;
}
.section-banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
}
.section-banner-overlay {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  width: 100%;
  background: linear-gradient(to top, rgba(11,31,75,0.95) 0%, transparent 100%);
}
.section-banner-overlay h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: white;
}
.section-banner-overlay p {
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* ---- PRODUCT GRID (after carousel) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: translateY(-6px);
}

.product-card-img-wrap {
  position: relative;
  height: 200px;
  background: var(--surface-alt);
  overflow: hidden;
}
.product-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card-img-wrap img {
  transform: scale(1.07);
}
.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.product-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-card-title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--heading);
  line-height: 1.3;
}
.product-card-desc {
  font-size: 0.85rem;
  color: var(--clr-text-mute);
  flex: 1;
}
.product-card-btn {
  margin-top: var(--space-md);
  align-self: flex-start;
}

/* ---- PLACEHOLDER IMG ---- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--clr-grey) 0%, var(--clr-sky-light) 100%);
  color: var(--clr-text-mute);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}
.img-placeholder svg {
  opacity: 0.4;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .modal { border-radius: var(--radius-lg); max-height: 95vh; }
  .tab-nav { gap: 0; }
  .tab-btn { padding: 0.6em 0.9em; font-size: 0.8rem; }
}

/* Keep category badges readable on top of product photos */
.product-card-badge {
  background: rgba(255,255,255,0.94) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.product-card-badge.badge-defense    { color: #1E4FA3; }
.product-card-badge.badge-industrial { color: #0B6B8F; }
.product-card-badge.badge-commercial { color: #1A7F5A; }
