.catalog-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #030b2e;
  color: #f7f9ff;
}

.catalog-page *, .catalog-page *::before, .catalog-page *::after {
  box-sizing: border-box;
}

.catalog-shell {
  width: min(100% - 2.5rem, 1640px);
  margin-inline: auto;
}

.catalog-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(2, 10, 41, .73), rgba(4, 15, 58, .83) 65%, #030b2e 100%), url('../img/products-bg.jpg');
  background-position: center, center 38%;
  background-size: cover;
  border-bottom: 1px solid rgba(121, 160, 255, .18);
}

.catalog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 50% 55%, rgba(34, 85, 202, .23), transparent 80%);
}

.catalog-hero-content {
  position: relative;
  z-index: 1;
  padding-block: 150px 68px;
}

.catalog-eyebrow, .catalog-section-kicker {
  color: #a9c5ff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.catalog-eyebrow span { color: #ff5159; padding-inline: .3em; }

.catalog-hero h1 {
  color: #fff;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: .55rem 0 .35rem;
  text-shadow: 0 10px 30px rgba(1, 5, 35, .55);
}

.catalog-title-line {
  display: block;
  width: 150px;
  height: 3px;
  margin: 0 auto 1.2rem;
  border-radius: 5px;
  background: linear-gradient(90deg, transparent, #f43344, transparent);
  box-shadow: 0 0 16px rgba(255, 67, 79, .7);
}

.catalog-hero-lead {
  color: #f6f8ff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 .5rem;
}

.catalog-hero-copy {
  max-width: 750px;
  color: #c5d0eb;
  font-size: clamp(.9rem, 1.1vw, 1rem);
  line-height: 1.9;
  margin: 0 auto;
}

.catalog-section {
  position: relative;
  padding: 40px 0 110px;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(36, 78, 167, .17), transparent 30%),
    linear-gradient(rgba(77, 118, 214, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 118, 214, .055) 1px, transparent 1px);
  background-size: auto, 86px 86px, 86px 86px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.catalog-heading h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.4;
  font-weight: 800;
  margin: .25rem 0 0;
}

.catalog-total {
  color: #d3ddf7;
  white-space: nowrap;
  margin: 0 0 .25rem;
  font-size: .9rem;
}

.catalog-total span {
  display: inline-block;
  width: 27px;
  height: 2px;
  margin-inline-end: .7rem;
  vertical-align: middle;
  background: #fc3443;
  box-shadow: 0 0 10px #fc3443;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 22px;
}

.catalog-filters {
  display: flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .42rem;
  border: 1px solid rgba(130, 160, 236, .32);
  border-radius: 16px;
  background: rgba(6, 17, 57, .85);
  box-shadow: inset 0 0 18px rgba(43, 87, 186, .12), 0 16px 36px rgba(0, 0, 0, .16);
}

.catalog-filters::-webkit-scrollbar { display: none; }

.catalog-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #d0dcf4;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .85rem 1.1rem;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.catalog-filter:not(.is-active):hover { background: rgba(81, 126, 228, .18); color: #fff; }
.catalog-filter i { font-size: 1rem; }
.catalog-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, #b9172b, #fc4149 75%, #e5162e);
  box-shadow: 0 5px 18px rgba(239, 40, 55, .36), inset 0 1px rgba(255, 255, 255, .3);
}

.catalog-filter:focus-visible, .catalog-card a:focus-visible, .catalog-more-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.catalog-visible-count {
  color: #c5d0eb;
  font-size: .85rem;
  white-space: nowrap;
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 1.3vw, 22px);
  align-items: stretch;
}

.catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(133, 168, 247, .27);
  border-radius: 17px;
  background: linear-gradient(155deg, #182d60 0%, #0a1a48 56%, #07143b 100%);
  box-shadow: 0 16px 35px rgba(0, 4, 24, .23), inset 0 1px rgba(255, 255, 255, .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.catalog-card[hidden], .catalog-more-wrap[hidden] { display: none !important; }

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(171, 203, 255, .65);
  box-shadow: 0 22px 42px rgba(0, 5, 34, .38), 0 0 28px rgba(58, 104, 215, .19);
}

.catalog-card-top {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 12px 14px 0;
}

.catalog-card-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 1px solid rgba(205, 224, 255, .43);
  border-radius: 9px;
  color: #e8f0ff;
  background: rgba(10, 29, 78, .8);
  font-size: .95rem;
}

.catalog-card-category {
  color: #c4d2f1;
  font-size: .72rem;
  line-height: 1.35;
  text-align: end;
}

.catalog-card-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / .83;
  padding: 5px 12px 14px;
  overflow: hidden;
  text-decoration: none;
  background: radial-gradient(ellipse 58% 37% at 50% 85%, rgba(134, 178, 255, .47), transparent 77%);
}

.catalog-card-image::after {
  content: '';
  position: absolute;
  bottom: 9%;
  left: 14%;
  width: 72%;
  height: 8%;
  border-radius: 50%;
  background: rgba(117, 162, 255, .31);
  filter: blur(10px);
}

.catalog-card-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 13px rgba(0, 4, 20, .6));
  transition: transform .25s ease;
}

/* Portrait panel images need a definite box so the grid cannot size them beyond the card. */
.catalog-card[data-catalog-category="panels"] .catalog-card-image img {
  position: absolute;
  inset: 5% 8%;
  width: 84%;
  height: 90%;
}

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

.catalog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 14px 14px;
}

.catalog-card-brand {
  color: #a9bce7;
  font-size: .78rem;
  margin: 0 0 .3rem;
  text-align: center;
}

.catalog-card h3 {
  min-height: 2.8em;
  color: #ff5560;
  font-size: clamp(.94rem, 1.05vw, 1.1rem);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  margin: 0 0 .7rem;
}

.catalog-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 42px;
  margin-top: auto;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff4950, #ca0d24);
  box-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 7px 16px rgba(135, 8, 30, .23);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.catalog-card-action:hover { color: #fff; background: linear-gradient(180deg, #ff6668, #e21b31); }
.catalog-action-arrow { font-size: 1.1rem; line-height: 1; }

.catalog-more-wrap { display: flex; justify-content: center; padding-top: 35px; }
.catalog-more-button {
  border: 1px solid rgba(160, 189, 255, .54);
  border-radius: 999px;
  padding: .9rem 1.7rem;
  color: #fff;
  background: rgba(26, 58, 130, .75);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 27px rgba(0, 6, 36, .26);
}
.catalog-more-button:hover { background: #234a9c; }
.catalog-more-button span { padding-inline-start: .65rem; }

.catalog-empty {
  padding: 3rem 1rem;
  border: 1px solid rgba(135, 172, 249, .3);
  border-radius: 14px;
  color: #e3ebff;
  background: rgba(19, 39, 89, .65);
  text-align: center;
}

@media (max-width: 900px) {
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-visible-count { align-self: end; }
}

@media (max-width: 600px) {
  .catalog-shell { width: min(100% - 1.5rem, 1640px); }
  .catalog-hero { min-height: 390px; }
  .catalog-hero-content { padding-block: 140px 48px; }
  .catalog-section { padding-block: 25px 70px; }
  .catalog-heading { align-items: start; }
  .catalog-total { font-size: .75rem; }
  .catalog-total span { display: none; }
  .catalog-filter { padding: .7rem .85rem; font-size: .78rem; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); gap: 10px; }
  .catalog-card-top { padding: 9px 10px 0; }
  .catalog-card-category { font-size: .63rem; }
  .catalog-card-icon { width: 29px; height: 29px; flex-basis: 29px; font-size: .77rem; }
  .catalog-card-image { aspect-ratio: 1 / 1; padding: 4px 7px 10px; }
  .catalog-card-content { padding: 0 9px 10px; }
  .catalog-card-brand { font-size: .7rem; }
  .catalog-card h3 { font-size: .84rem; min-height: 2.8em; }
  .catalog-card-action { min-height: 38px; font-size: .73rem; gap: .3rem; }
}

@media (max-width: 350px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card-image { aspect-ratio: 1 / .75; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-page *, .catalog-page *::before, .catalog-page *::after { transition-duration: .01ms !important; }
}
