/* ── PRODUCTS CATALOG STYLES ────────────────────────────── */

/* Glass navbar exclusivo do catálogo */
#navbar.scrolled {
  top: 16px;
  width: min(94%, 1200px);
  height: 68px;
  background: rgba(4, 22, 46, 0.42);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid rgba(202, 235, 255, 0.16);
  box-shadow: 0 10px 30px rgba(1, 11, 28, 0.18);
}

#navbar.scrolled .logo-img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

#navbar.scrolled .nav-links a {
  color: rgba(235, 247, 255, 0.78);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--white);
}

#navbar.scrolled .nav-links a::after {
  background: #8edbff;
}

#navbar.scrolled .nav-cta-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 251, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

#navbar.scrolled .nav-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}

#navbar.scrolled .nav-cta-primary {
  background: rgba(0, 89, 187, 0.28);
  color: var(--white);
  border: 1px solid rgba(154, 219, 255, 0.24);
  box-shadow: none;
}

#navbar.scrolled .nav-cta-primary:hover {
  background: rgba(0, 89, 187, 0.4);
  box-shadow: 0 6px 18px rgba(1, 16, 38, 0.2);
}

#navbar.scrolled .menu-toggle .bar {
  background-color: var(--white);
}

/* Catalog Hero Header */
.catalog-header {
  min-height: clamp(360px, 33vw, 480px);
  padding: 110px 6vw 70px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(3, 15, 34, 0.96) 0%, rgba(5, 30, 63, 0.86) 36%, rgba(8, 48, 91, 0.42) 58%, rgba(8, 48, 91, 0.06) 76%),
    url('../assets/hero/catalog-products-hero.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: left;
  color: var(--white);
  border-bottom: 4px solid var(--blue);
  position: relative;
  overflow: hidden;
}
.catalog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 44%, rgba(0, 89, 187, 0.2) 0%, transparent 34%),
    linear-gradient(180deg, rgba(2, 14, 32, 0.08) 58%, rgba(2, 14, 32, 0.34) 100%);
  pointer-events: none;
}
.catalog-header-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.catalog-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--sky);
  font-size: clamp(0.76rem, 0.8vw, 0.88rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 17px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.catalog-label,
.sort-box label,
.filter-group-title,
.active-filters-label,
.results-eyebrow,
.catalog-grid .product-tag,
.catalog-grid .product-brand,
.catalog-grid .spec-tag,
.catalog-search-tools .sort-label {
  font-family: var(--font-subtitle);
}
.catalog-title {
  font-family: var(--font-title);
  max-width: 650px;
  color: var(--white);
  font-size: clamp(2.8rem, 4.2vw, 4.5rem);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 18px;
  letter-spacing: -0.045em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.36);
}
.catalog-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: rgba(225, 244, 255, 0.88);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

/* Catalog Main Container */
.catalog-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 80px 2vw 80px 2vw;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Filter Sidebar/Controls */
.catalog-controls {
  background: var(--white);
  border: 1px solid var(--border-clr);
  border-radius: var(--r);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 89, 187, 0.48) transparent;
  z-index: 30;
}

.catalog-controls::-webkit-scrollbar {
  width: 7px;
}

.catalog-controls::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-controls::-webkit-scrollbar-thumb {
  background: rgba(0, 89, 187, 0.42);
  border-radius: 99px;
}

.catalog-controls::-webkit-scrollbar-thumb:hover {
  background: rgba(42, 106, 153, 0.68);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--border-clr);
  border-radius: 10px;
  background: var(--white);
  transition: var(--transition);
  padding: 0 14px;
}
.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 89, 187, 0.1);
}
.search-box svg {
  color: var(--muted);
  margin-right: 10px;
  flex-shrink: 0;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  padding: 14px 0;
  font-size: 0.95rem;
  color: var(--black);
  width: 100%;
  font-family: inherit;
}
.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
#search-clear-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 5px;
}
#search-clear-btn:hover {
  color: var(--black);
}

/* Sorting Select Box */
.sort-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sort-box label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.sort-select {
  border: 2px solid var(--border-clr);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--black);
  outline: none;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.sort-select:focus {
  border-color: var(--blue);
}

/* Filter Groups */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-clr);
  padding-top: 24px;
  margin-top: 4px;
}
.filter-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* Category & Brand Chips */
.category-chips, .brand-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chip, .chip-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-clr);
  background: var(--gray);
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  line-height: 1.3;
  min-height: 42px;
}
.chip:hover, .chip-brand:hover {
  background: var(--ice);
  border-color: var(--sky);
  color: var(--deep);
  transform: translateX(3px);
}
.chip.active, .chip-brand.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 89, 187, 0.25);
}

/* Active Filters Row */
.active-filters-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-clr);
  padding-top: 20px;
}
.active-filters-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.active-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ice);
  border: 1px solid var(--sky);
  color: var(--deep);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.active-filter-tag button {
  background: transparent;
  border: none;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.active-filter-tag button:hover {
  color: var(--navy);
}
.btn-clear-all {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  margin-top: 4px;
}
.btn-clear-all:hover {
  text-decoration: underline;
}

/* Display Column */
.products-display {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.results-stats {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Catalog Cards Grid — fixed 3 columns */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Empty State */
.catalog-empty-state {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-clr);
  border-radius: var(--r);
  padding: 60px 40px;
  box-shadow: var(--shadow-sm);
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.catalog-empty-state h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.catalog-empty-state p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 24px auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Layout Responsiveness */
@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .catalog-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 4vw 60px 4vw;
  }
  .catalog-controls {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
  }
  .controls-top-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .filter-options-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .filter-group {
    border-top: none;
    padding-top: 0;
  }
  .category-chips, .brand-chips {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .chip, .chip-brand {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .active-filters-row {
    grid-column: 1 / -1;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  #navbar.scrolled .nav-links {
    background: rgba(4, 22, 46, 0.9);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    border: 1px solid rgba(202, 235, 255, 0.16);
    box-shadow: 0 16px 34px rgba(1, 11, 28, 0.24);
  }

  #navbar.scrolled .nav-links a,
  #navbar.scrolled .nav-links a:hover {
    color: rgba(242, 250, 255, 0.94) !important;
  }
}

@media (max-width: 768px) {
  .catalog-header {
    min-height: 430px;
    padding: 100px 6vw 54px;
    background-image:
      linear-gradient(90deg, rgba(3, 18, 40, 0.94) 0%, rgba(5, 30, 63, 0.76) 58%, rgba(7, 42, 79, 0.46) 100%),
      url('../assets/hero/catalog-products-hero.webp');
    background-position: 66% center;
  }
  .catalog-title {
    max-width: 9ch;
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }
  .catalog-subtitle {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .catalog-controls {
    position: relative;
    top: 0;
    max-height: none;
    overflow-y: visible;
    grid-template-columns: 1fr;
  }
  .controls-top-row {
    grid-template-columns: 1fr;
  }
  .filter-options-panel {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* ── MODERN REFRIGERATION CATALOG UI ───────────────────── */
body {
  --catalog-ink: #09213b;
  --catalog-deep: #0d3f6a;
  --catalog-blue: #2f88bf;
  --catalog-cyan: #8edbff;
  --catalog-ice: #eef8ff;
  background:
    radial-gradient(circle at 82% 18%, rgba(108, 196, 240, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfe 0%, #edf6fb 55%, #f8fbfd 100%);
}

.catalog-container {
  width: 100%;
  max-width: 1520px;
  padding: 52px clamp(20px, 3vw, 48px) 110px;
  grid-template-columns: minmax(280px, 310px) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 42px);
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px;
  border: 1px solid rgba(111, 180, 220, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(232, 246, 255, 0.9));
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  box-shadow:
    0 22px 55px rgba(19, 66, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow-x: hidden;
  overflow-y: auto;
}

.catalog-controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(66, 160, 211, 0.72), transparent);
}

.filter-panel-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 20px;
  border-bottom: 1px solid rgba(84, 153, 195, 0.17);
}

.filter-heading-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 203, 240, 0.34);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(231, 248, 255, 0.94), rgba(196, 230, 248, 0.78));
  color: var(--catalog-deep);
  box-shadow: 0 8px 20px rgba(36, 119, 170, 0.12);
}

.filter-heading-copy > span,
.results-eyebrow {
  display: block;
  color: var(--catalog-blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.filter-heading-copy h2 {
  margin: 4px 0 2px;
  color: var(--catalog-ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.filter-heading-copy p {
  color: #6b8294;
  font-size: 0.72rem;
  line-height: 1.35;
}

.catalog-filter-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(96, 174, 216, 0.32);
  border-radius: 13px;
  background: rgba(238, 249, 255, 0.86);
  color: var(--catalog-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-toggle-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: var(--catalog-blue);
  color: #fff;
  font-size: 0.68rem;
}

.filter-toggle-count[hidden] {
  display: none;
}

.catalog-controls-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 20px;
}

.controls-top-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-box {
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(83, 153, 196, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box:focus-within {
  border-color: rgba(47, 136, 191, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(72, 161, 211, 0.13), 0 10px 24px rgba(31, 102, 146, 0.09);
}

.search-box svg {
  color: var(--catalog-blue);
}

.search-box input {
  min-width: 0;
  padding: 14px 0;
  color: var(--catalog-ink);
  font-size: 0.87rem;
}

.search-box input::placeholder {
  color: #8a9da9;
}

#search-clear-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 9px;
  color: #678092;
  line-height: 1;
}

#search-clear-btn:hover {
  background: rgba(44, 132, 184, 0.1);
  color: var(--catalog-deep);
}

.sort-box {
  gap: 7px;
}

.sort-box label,
.filter-group-title {
  color: #536f82;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sort-select {
  min-height: 48px;
  padding: 11px 38px 11px 14px;
  border: 1px solid rgba(83, 153, 196, 0.24);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--catalog-ink);
  font-weight: 650;
}

.sort-select:focus {
  border-color: var(--catalog-blue);
  box-shadow: 0 0 0 4px rgba(72, 161, 211, 0.12);
}

.filter-options-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.filter-group {
  gap: 11px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(84, 153, 195, 0.15);
}

.category-chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brand-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.chip,
.chip-brand {
  position: relative;
  min-height: 40px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(92, 160, 200, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #36566d;
  font-size: 0.8rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.chip::before,
.chip-brand::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 9px;
  flex: 0 0 auto;
  border: 2px solid rgba(47, 136, 191, 0.42);
  border-radius: 50%;
  transition: inherit;
}

.chip:hover,
.chip-brand:hover {
  border-color: rgba(47, 136, 191, 0.48);
  background: rgba(228, 246, 255, 0.9);
  color: var(--catalog-deep);
  transform: translateX(2px);
}

.chip.active,
.chip-brand.active {
  border-color: rgba(103, 196, 239, 0.55);
  background: linear-gradient(135deg, #0b3d69 0%, #247caf 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 89, 137, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.chip.active::before,
.chip-brand.active::before {
  border-color: #c7efff;
  background: #8edbff;
  box-shadow: 0 0 0 3px rgba(142, 219, 255, 0.14);
}

.active-filters-row {
  gap: 10px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(84, 153, 195, 0.17);
  border-radius: 15px;
  background: rgba(228, 246, 255, 0.66);
}

.active-filters-label {
  color: #4d6a7d;
  font-size: 0.72rem;
  font-weight: 850;
}

.active-filter-tag {
  padding: 6px 9px;
  border-color: rgba(55, 145, 196, 0.26);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--catalog-deep);
}

.btn-clear-all {
  width: fit-content;
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #ba3d49;
}

.btn-clear-all:hover {
  background: rgba(239, 68, 68, 0.08);
  text-decoration: none;
}

.products-display {
  min-width: 0;
  gap: 24px;
}

.catalog-results-toolbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(111, 180, 220, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(19, 66, 102, 0.08), inset 0 1px 0 #fff;
}

.results-eyebrow {
  margin-bottom: 6px;
}

.results-stats {
  color: #536f82;
  font-size: 0.9rem;
}

.results-stats strong {
  color: var(--catalog-ink);
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
}

.results-assurances {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.results-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(67, 158, 207, 0.17);
  border-radius: 99px;
  background: rgba(233, 248, 255, 0.76);
  color: #315b74;
  font-size: 0.74rem;
  font-weight: 750;
}

.results-assurances svg {
  color: #219a77;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.catalog-grid .product-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(104, 171, 210, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(19, 66, 102, 0.09), inset 0 1px 0 #fff;
  transform: translateY(0);
  isolation: isolate;
}

.catalog-grid .product-card::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(70, 172, 222, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalog-grid .product-card:hover,
.catalog-grid .product-card:focus-visible {
  border-color: rgba(62, 151, 202, 0.46);
  box-shadow: 0 24px 48px rgba(18, 78, 119, 0.16), inset 0 1px 0 #fff;
  transform: translateY(-7px);
}

.catalog-grid .product-card:hover::before,
.catalog-grid .product-card:focus-visible::before {
  opacity: 1;
}

.catalog-grid .product-card:focus-visible {
  outline: 3px solid rgba(92, 187, 232, 0.38);
  outline-offset: 3px;
}

.catalog-grid .product-img-wrap {
  height: 245px;
  margin: 8px 8px 0;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98) 0%, rgba(231, 246, 255, 0.86) 54%, rgba(205, 232, 247, 0.82) 100%);
}

.catalog-grid .product-img-wrap::after {
  content: '';
  position: absolute;
  inset: auto 12% 10px;
  height: 24px;
  border-radius: 50%;
  background: rgba(26, 83, 119, 0.12);
  filter: blur(14px);
  pointer-events: none;
}

.catalog-grid .product-icon-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.catalog-grid .product-image {
  position: relative;
  z-index: 1;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(22, 70, 101, 0.12));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.catalog-grid .product-card:hover .product-image {
  transform: translateY(-5px) scale(1.055);
  filter: drop-shadow(0 20px 18px rgba(22, 70, 101, 0.18));
}

.catalog-grid .product-tag {
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 99px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(12, 45, 69, 0.14);
}

.catalog-grid .product-tag.promo {
  background: linear-gradient(135deg, #df4453, #bd2637);
}

.catalog-grid .product-tag.highlight {
  background: linear-gradient(135deg, #0070EA, #0047AB);
}

.product-availability {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(70, 164, 135, 0.2);
  border-radius: 99px;
  background: rgba(249, 255, 253, 0.82);
  backdrop-filter: blur(8px);
  color: #23785e;
  font-size: 0.66rem;
  font-weight: 800;
}

.product-availability > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29ad80;
  box-shadow: 0 0 0 3px rgba(41, 173, 128, 0.13);
}

.catalog-grid .product-hover-overlay {
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 35, 64, 0.68) 100%);
  backdrop-filter: none;
}

.catalog-grid .view-details-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(247, 252, 255, 0.94);
  color: var(--catalog-deep);
  font-weight: 850;
}

.catalog-grid .product-info {
  padding: 20px 22px 22px;
  background: transparent;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.catalog-grid .product-brand {
  margin: 0;
  color: var(--catalog-blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #b66c08;
  font-size: 0.72rem;
  font-weight: 850;
}

.product-rating > span {
  color: #f4ae2b;
}

.product-rating small {
  color: #8ca0ad;
  font-size: 0.65rem;
  font-weight: 650;
}

.catalog-grid .product-name {
  min-height: 2.7em;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--catalog-ink);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 850;
  line-height: 1.32;
  letter-spacing: -0.018em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-grid .product-specs {
  min-height: 54px;
  gap: 6px;
  margin-bottom: 18px;
  align-content: flex-start;
}

.catalog-grid .spec-tag {
  padding: 5px 8px;
  border: 1px solid rgba(70, 152, 199, 0.16);
  border-radius: 8px;
  background: rgba(232, 247, 255, 0.72);
  color: #315d76;
  font-size: 0.67rem;
  font-weight: 750;
}

.catalog-grid .product-footer {
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid rgba(90, 158, 197, 0.14);
}

.catalog-grid .product-price-wrap {
  min-width: 0;
}

.catalog-grid .product-price-wrap .old-price {
  min-height: 17px;
  color: #8ca0ad;
  font-size: 0.74rem;
}

.catalog-grid .product-price-wrap .product-price {
  color: var(--catalog-deep);
  font-size: clamp(1.35rem, 1.6vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.product-payment-note {
  margin-top: 3px;
  overflow: hidden;
  color: #688192;
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-grid .btn-cart-add {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(141, 218, 255, 0.26);
  border-radius: 15px;
  background: linear-gradient(145deg, #0070EA, #0047AB);
  box-shadow: 0 10px 22px rgba(15, 86, 130, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.catalog-grid .btn-cart-add:hover {
  background: linear-gradient(145deg, #0047AB, #001A41);
  box-shadow: 0 13px 26px rgba(15, 86, 130, 0.3);
  transform: translateY(-2px) scale(1.03);
}

.catalog-empty-state {
  padding: 72px 40px;
  border: 1px solid rgba(98, 169, 209, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(19, 66, 102, 0.09);
}

.catalog-empty-state .empty-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #eefaff, #d9eef9);
  font-size: 2rem;
}

@keyframes filterReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .catalog-container {
    padding: 34px 4vw 90px;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .catalog-controls {
    top: 92px;
    max-height: none;
    padding: 16px;
    overflow-y: visible;
    border-radius: 21px;
  }

  .filter-panel-heading {
    padding: 0;
    border-bottom: 0;
  }

  .filter-heading-copy p {
    display: none;
  }

  .catalog-filter-toggle {
    display: inline-flex;
  }

  .catalog-controls-body {
    display: none;
  }

  .catalog-controls.filters-open {
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }

  .catalog-controls.filters-open .filter-panel-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(84, 153, 195, 0.17);
  }

  .catalog-controls.filters-open .catalog-controls-body {
    display: flex;
    animation: filterReveal 0.22s ease both;
  }

  .controls-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 14px;
  }

  .filter-options-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .filter-group {
    border-top: 0;
    padding-top: 0;
  }

  .category-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-container {
    padding: 26px 16px 74px;
    gap: 22px;
  }

  .catalog-controls {
    position: sticky;
    top: 86px;
    z-index: 80;
  }

  .filter-heading-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .filter-heading-copy > span {
    font-size: 0.62rem;
  }

  .filter-heading-copy h2 {
    font-size: 0.98rem;
  }

  .controls-top-row,
  .filter-options-panel {
    grid-template-columns: 1fr;
  }

  .category-chips,
  .brand-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px 18px;
  }

  .results-assurances {
    justify-content: flex-start;
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .catalog-grid .product-img-wrap {
    height: 250px;
  }

  .catalog-grid .product-name {
    font-size: 1.08rem;
  }
}

@media (max-width: 480px) {
  .catalog-filter-toggle > span:not(.filter-toggle-count) {
    display: none;
  }

  .category-chips,
  .brand-chips {
    grid-template-columns: 1fr;
  }

  .results-assurances span {
    padding: 7px 9px;
    font-size: 0.69rem;
  }

  .catalog-grid .product-info {
    padding: 19px;
  }
}

/* ── SEARCH-LED FOUR-COLUMN CATALOG ─────────────────────── */
.catalog-container {
  display: block;
  width: 100%;
  max-width: 1600px;
  padding: 42px clamp(20px, 3.2vw, 56px) 110px;
}

.catalog-search-panel {
  position: sticky;
  top: 92px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(235px, 0.7fr) minmax(520px, 2.3fr);
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  margin-bottom: 28px;
  min-height: 155px;
  padding: 36px 32px;
  border: 1px solid rgba(100, 177, 219, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(250, 254, 255, 0.94), rgba(228, 245, 254, 0.91));
  box-shadow: 0 20px 54px rgba(15, 64, 99, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.catalog-search-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  margin: 18px 0;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, #0070EA, transparent);
}

.catalog-search-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.catalog-search-heading .filter-heading-copy h2 {
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  line-height: 1.15;
}

.catalog-search-heading .filter-heading-copy p {
  margin-top: 4px;
  font-size: 0.74rem;
}

.catalog-search-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.catalog-search-tools .controls-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.31fr);
  align-items: center;
  gap: 14px;
}

.catalog-search-tools .search-box {
  min-height: 54px;
  border-color: rgba(67, 151, 197, 0.3);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(29, 99, 139, 0.08);
}

.catalog-search-tools .search-box:focus-within {
  border-color: #0070EA;
  box-shadow: 0 0 0 4px rgba(46, 155, 210, 0.12), 0 10px 25px rgba(29, 99, 139, 0.1);
}

.catalog-search-tools .search-box input {
  font-size: 0.94rem;
}

.catalog-search-tools .sort-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 7px 42px 7px 14px;
  border: 1px solid rgba(67, 151, 197, 0.26);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(29, 99, 139, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-search-tools .sort-box:focus-within {
  border-color: #0070EA;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(46, 155, 210, 0.12), 0 10px 25px rgba(29, 99, 139, 0.1);
}

.catalog-search-tools .sort-box::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0059BB;
  border-bottom: 2px solid #0059BB;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.catalog-search-tools .sort-box label {
  display: block;
  color: #6a879a;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.catalog-search-tools .sort-select {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #102f45;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.catalog-search-tools .sort-select:focus {
  border: 0;
  box-shadow: none;
}

.catalog-search-tools .sort-box::after {
  display: none;
}

.catalog-search-tools .sort-label {
  display: block;
  color: #6a879a;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.custom-sort {
  position: relative;
  min-width: 0;
}

.custom-sort-trigger {
  width: 100%;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #102f45;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.custom-sort-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-sort-trigger svg {
  flex: 0 0 auto;
  color: #0059BB;
  transition: transform 0.2s ease;
}

.custom-sort.open .custom-sort-trigger svg {
  transform: rotate(180deg);
}

.custom-sort-options {
  position: absolute;
  top: calc(100% + 14px);
  right: -42px;
  left: -14px;
  z-index: 180;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(84, 164, 207, 0.3);
  border-radius: 16px;
  background: rgba(249, 254, 255, 0.98);
  box-shadow: 0 22px 50px rgba(10, 54, 84, 0.2), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  animation: sortMenuReveal 0.18s ease both;
}

.custom-sort-options[hidden] {
  display: none;
}

.custom-sort-option {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 36px 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #45677d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.custom-sort-option:hover,
.custom-sort-option:focus-visible {
  border-color: rgba(70, 157, 204, 0.2);
  outline: none;
  background: rgba(221, 243, 254, 0.8);
  color: #004493;
  transform: translateX(2px);
}

.custom-sort-option.selected {
  border-color: rgba(42, 150, 206, 0.24);
  background: linear-gradient(135deg, rgba(213, 241, 254, 0.94), rgba(235, 249, 255, 0.9));
  color: #004493;
}

.custom-sort-option.selected::after {
  content: '';
  position: absolute;
  right: 14px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #0059BB;
  border-bottom: 2px solid #0059BB;
  transform: translateY(-1px) rotate(-45deg);
}

.sort-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@keyframes sortMenuReveal {
  from { opacity: 0; transform: translateY(-7px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.catalog-search-hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 15px;
}

.catalog-search-hints span {
  padding: 4px 9px;
  border: 1px solid rgba(70, 151, 196, 0.15);
  border-radius: 99px;
  background: rgba(228, 245, 253, 0.68);
  color: #648095;
  font-size: 0.67rem;
  font-weight: 700;
}

.products-display {
  width: 100%;
  min-width: 0;
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.7vw, 26px);
}

.catalog-grid .product-img-wrap {
  height: clamp(205px, 17vw, 248px);
}

.catalog-grid .product-info {
  padding: 19px;
}

.catalog-grid .product-name {
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .catalog-search-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .catalog-container {
    padding: 26px 16px 74px;
  }

  .catalog-search-panel {
    padding: 17px;
    border-radius: 20px;
  }

  .catalog-search-tools .controls-top-row {
    grid-template-columns: 1fr;
  }

  .catalog-search-tools .sort-box {
    min-height: 48px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalog-search-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .catalog-search-heading .filter-heading-copy p,
  .catalog-search-hints {
    display: none;
  }

  .catalog-search-tools .search-box input {
    font-size: 0.84rem;
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-grid .product-img-wrap {
    height: 250px;
  }
}

/* ── CATALOG TYPOGRAPHY ────────────────────────────────── */
.catalog-header,
.catalog-container,
.catalog-empty-state {
  font-family: var(--font-body);
}

.catalog-title,
.catalog-search-heading .filter-heading-copy h2,
.results-stats strong,
.catalog-grid .product-name,
.catalog-grid .product-price-wrap .product-price,
.catalog-empty-state h3 {
  font-family: var(--font-title);
}

.catalog-title {
  font-weight: 800;
  letter-spacing: -0.05em;
}

.catalog-subtitle {
  font-weight: 500;
  letter-spacing: -0.012em;
}

.catalog-label,
.results-eyebrow,
.catalog-grid .product-tag,
.catalog-grid .product-brand,
.catalog-grid .spec-tag,
.catalog-search-tools .sort-label,
.catalog-search-hints span {
  font-family: var(--font-body);
}

.catalog-label,
.results-eyebrow,
.catalog-grid .product-brand,
.catalog-search-tools .sort-label {
  letter-spacing: 0.09em;
  font-weight: 700;
}

.catalog-search-heading .filter-heading-copy h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
}

.results-stats strong {
  font-weight: 800;
}

.catalog-search-panel input,
.catalog-search-panel button,
.catalog-search-panel select,
.results-stats,
.results-assurances,
.catalog-grid .product-card,
.catalog-grid .view-details-btn,
.catalog-grid .btn-cart-add {
  font-family: var(--font-body);
}

.catalog-grid .product-name {
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.catalog-grid .product-tag,
.catalog-grid .spec-tag,
.catalog-search-hints span,
.results-assurances span,
.catalog-grid .view-details-btn,
.custom-sort-trigger,
.custom-sort-option,
.product-availability {
  font-weight: 600;
}

.catalog-grid .product-price-wrap .product-price {
  font-weight: 800;
  letter-spacing: -0.045em;
}

.catalog-grid .product-price-wrap .old-price,
.product-payment-note,
.product-rating,
.product-availability {
  font-family: var(--font-body);
}

/* Flexible search, sorting and product tracks on narrow viewports. */
:where(.catalog-search-tools, .controls-top-row, .search-box, .sort-box,
  .custom-sort, .filter-heading-copy, .catalog-grid > *) { min-width: 0; }
.custom-sort-trigger { max-width: 100%; }
@media (max-width: 600px) {
  .catalog-header { padding-inline: 16px; }
  .catalog-title { font-size: clamp(28px, 8vw, 40px); overflow-wrap: anywhere; }
  .catalog-search-tools .search-box input { width: 100%; min-width: 0; font-size: 16px; }
  .catalog-results-toolbar, .results-assurances { flex-wrap: wrap; gap: 12px; }
  .catalog-grid .product-info { padding: 16px; }
}
