/* ============================================================
   PBS INTL FZE — products.css
   Catalog page specific styles
   Fonts: Lexend (titles) | Kodchasan (body)
   Primary: #ff4b00  Navy: #0D0D2B
============================================================ */

/* ============================================================
   PRODUCTS HERO BANNER
============================================================ */
.products-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 420px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,43,0.92) 0%, rgba(13,13,43,0.6) 50%, rgba(255,75,0,0.15) 100%);
  z-index: 1;
}

.products-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-align: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.products-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 20px;
}

.products-hero-content .section-eyebrow {
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.products-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 16px;
}

.products-hero-desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}


/* ============================================================
   PRODUCTS CATALOG GRID
=========================================================== */
.products-catalog {
  position: relative;
  width: 100%;
  background: var(--gray-light);
  padding: 80px 0 100px;
}

.catalog-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.catalog-grid {
  --grid-gap: 28px;
  gap: var(--grid-gap);
  justify-content: center;
}

.catalog-col {
  padding: 0;
  flex: 0 0 calc(33.333% - var(--grid-gap));
  max-width: calc(33.333% - var(--grid-gap));
}

/* --- Card --- */
.catalog-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Orange top accent line on hover */
.catalog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
}

.catalog-card:hover::before {
  transform: scaleX(1);
}

/* --- Image --- */
.catalog-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66%; /* 3:2 aspect ratio */
  background: #f5f5f0;
  overflow: hidden;
}

.catalog-card-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.catalog-card:hover .catalog-card-img {
  transform: scale(1.06);
}

/* --- Body --- */
.catalog-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s;
}

.catalog-card:hover .catalog-card-title {
  color: var(--orange);
}

.catalog-card-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(13,13,43,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.catalog-card-cta {
  align-self: flex-start;
  margin-top: auto;
  background: var(--navy) !important;
  color: var(--white) !important;
}

.catalog-card-cta::before {
  background: var(--orange) !important;
}


/* ============================================================
   CTA BANNER
=========================================================== */
.products-cta-banner {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  background: var(--navy);
  text-align: center;
  overflow: hidden;
}

.products-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,75,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.products-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.products-cta-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.products-cta-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
}

.products-cta-btn {
  margin: 0 auto;
}


/* ============================================================
   RESPONSIVE — TABLET
=========================================================== */
@media (max-width: 991px) {
  .products-hero {
    height: 48vh;
    min-height: 480px;
    padding-top: var(--nav-h-sm);
  }

  .products-hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .products-catalog {
    padding: 60px 0 80px;
  }

  .catalog-col {
    flex: 0 0 calc(50% - var(--grid-gap));
    max-width: calc(50% - var(--grid-gap));
  }

  .catalog-card-body {
    padding: 20px 20px 24px;
  }

  .catalog-card-title {
    font-size: 1.1rem;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE
=========================================================== */
@media (max-width: 767px) {
  .products-hero {
    height: 40vh;
    min-height: 460px;
  }

  .products-hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .products-hero-desc {
    font-size: 0.88rem;
  }

  .products-catalog {
    padding: 40px 0 60px;
  }

  .catalog-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .catalog-card-img-wrap {
    padding-top: 56%;
  }

  .catalog-card-body {
    padding: 18px 18px 22px;
  }

  .catalog-card-title {
    font-size: 1.05rem;
  }

  .catalog-card-desc {
    font-size: 0.84rem;
  }

  .products-cta-banner {
    padding: 60px 20px;
  }

  .products-cta-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
}


/* ============================================================
   CUSTOM CURSOR COMPATIBILITY (inherit from style.css)
=========================================================== */
@media (pointer: coarse) {
  .catalog-card,
  .catalog-card a,
  .catalog-card button {
    cursor: auto !important;
  }
}