/* Future Health — Products Catalogue Stylesheet */

.products-page .header nav a[aria-current="page"] {
  border-bottom-color: var(--cyan-400);
}

.products-page .header.is-scrolled nav a[aria-current="page"] {
  border-bottom-color: var(--royal);
}

/* Dark Architectural Catalogue Hero */
.products-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: clamp(138px, 15vh, 176px) max(5%, calc((100% - var(--content-width)) / 2)) clamp(64px, 8vh, 96px);
  background-color: var(--navy-950);
  color: #ffffff;
}

.products-hero::before,
.products-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.products-hero::before {
  background: url('assets/parts.jpg') center / cover no-repeat;
  opacity: 0.28;
}

.products-hero::after {
  background:
    linear-gradient(270deg, rgba(6, 24, 59, 0.96) 0%, rgba(6, 24, 59, 0.86) 44%, rgba(11, 38, 92, 0.65) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, transparent 40%);
}

[dir="ltr"] .products-hero::after {
  background:
    linear-gradient(90deg, rgba(6, 24, 59, 0.96) 0%, rgba(6, 24, 59, 0.86) 44%, rgba(11, 38, 92, 0.65) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, transparent 40%);
}

.products-hero > .hero-grid-bg,
.products-hero > .hero-orb {
  z-index: 0;
}

.products-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.products-hero h1 {
  color: #ffffff;
  margin: 0 0 18px;
}

.products-hero p {
  color: rgba(230, 243, 250, 0.84);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.85;
  max-width: 540px;
  margin: 0 0 26px;
}

/* Catalogue Grid & Toolbar */
.catalog {
  background-color: var(--sand);
  position: relative;
}

.products-page .catalog-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.products-page .catalog-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.products-page .section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.products-page .section-tab {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.products-page .section-tab:hover {
  border-color: var(--royal);
  color: var(--royal);
  transform: translateY(-1px);
}

.products-page .section-tab[aria-pressed="true"] {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: #ffffff;
}

.products-page .catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.products-page .catalog-search {
  flex: 1 1 240px;
  max-width: 360px;
}

.products-page .catalog-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.products-page .catalog-search input:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(18, 74, 175, 0.14);
}

.products-page .catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.products-page .catalog-section {
  margin-top: 42px;
}

.products-page .catalog-section[hidden] {
  display: none;
}

.products-page .catalog-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.products-page .catalog-section-head h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
}

.products-page .catalog-section-meta {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.products-page .catalog-section-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.products-page .catalog-empty {
  margin-top: 32px;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.products-page .catalog-empty p {
  margin: 0 0 16px;
  color: var(--muted);
}

.products-page .modal-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(18, 74, 175, 0.08);
  color: var(--royal);
  font-size: 13.5px;
  font-weight: 600;
}

.products-page .product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.products-page .filter-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.products-page .filter-button:hover {
  border-color: var(--royal);
  color: var(--royal);
}

.products-page .filter-button[aria-pressed="true"] {
  background: var(--royal);
  border-color: var(--royal);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(18, 74, 175, 0.24);
}

.products-page .catalog-count {
  font-family: 'Sora', 'Plex', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--royal);
  background: var(--mint);
  border: 1px solid rgba(101, 196, 226, 0.45);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.products-page .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.products-page .product-grid article,
.products-page .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.products-page .product-grid article:hover,
.products-page .product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-raised);
  border-color: rgba(101, 196, 226, 0.72);
}

.products-page .product-grid article img,
.products-page .product-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #ffffff;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}

.products-page .product-grid article:hover img,
.products-page .product-card:hover img {
  transform: scale(1.04);
}

.products-page .product-grid .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
  gap: 10px;
}

.products-page .product-grid h2,
.products-page .product-grid h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}

.products-page .product-grid .en {
  direction: ltr;
  text-align: start;
  font-size: 12px;
  color: var(--steel);
  margin: 0;
}

[lang="en"] .products-page .product-grid .en {
  display: none;
}

.products-page .product-grid .body p:not(.en) {
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
  margin: 0;
}

/* Products Contact Section */
.products-contact {
  background: #ffffff;
}

.products-contact > div {
  max-width: 720px;
}

.products-contact p {
  margin-top: 16px;
}

.products-contact .prototype-note {
  font-size: 13px;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Rules (<1024px, <768px, <480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .products-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .products-hero {
    min-height: 440px;
    padding-top: 126px;
    padding-bottom: 56px;
  }

  .catalog-toolbar {
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .products-page .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .products-page .product-grid article img,
  .products-page .product-card img {
    height: 210px;
  }

  .product-filters {
    gap: 6px;
  }

  .filter-button {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-page .product-grid article,
  .products-page .product-grid article img,
  .filter-button {
    transition: none !important;
  }
}
