.products-page {
  min-width: 0;
  background:
    radial-gradient(circle at 92% 10%, rgba(184, 151, 103, .1), transparent 28%),
    #f4f0e8;
}

.products-page .product-topbar,
.products-page .product-topbar[data-elevated="false"],
.products-page .product-topbar[data-elevated="true"] {
  color: #2a241f;
  background: rgba(244, 240, 232, .94);
  border-bottom: 1px solid rgba(64, 48, 36, .12);
  box-shadow: 0 12px 34px rgba(50, 38, 28, .05);
  backdrop-filter: blur(18px);
}

.products-page .product-topbar .nav a,
.products-page .product-topbar .brand,
.products-page .product-topbar .product-account,
.products-page .product-topbar .product-bag {
  color: #2a241f;
}

.products-page .product-topbar .language-switch {
  color: #352b24;
  background: rgba(255, 253, 248, .62);
}

.catalog-main {
  min-height: 100vh;
  padding-top: 68px;
}

.catalog-hero {
  width: min(calc(100% - 200px), 1500px);
  margin-inline: auto;
  padding: clamp(94px, 10vw, 152px) 0 clamp(58px, 7vw, 90px);
  border-bottom: 1px solid rgba(64, 48, 36, .15);
}

.catalog-hero h1 {
  margin: 15px 0 24px;
  color: #261f1a;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
}

.catalog-hero > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(38, 31, 26, .64);
  font-size: .94rem;
  line-height: 1.9;
}

.catalog-browser {
  width: min(calc(100% - 200px), 1500px);
  margin-inline: auto;
  padding: 38px 0 clamp(90px, 10vw, 150px);
}

.catalog-categories {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.catalog-filter-controls {
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 28px;
}

.products-page .product-filter-toggle b {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fffaf0;
  background: #6a4935;
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0;
}

.products-page .product-filter-toggle b[hidden] {
  display: none;
}

.products-page .product-filter-panel {
  width: min(760px, calc(100vw - 48px));
  padding: 30px;
  border-color: rgba(68, 48, 35, .16);
  background: rgba(250, 247, 240, .99);
  box-shadow: 0 24px 64px rgba(48, 34, 24, .13);
}

.products-page .product-filter-panel__header {
  align-items: flex-start;
  padding-bottom: 22px;
}

.products-page .product-filter-panel__header > div {
  display: grid;
  gap: 5px;
}

.products-page .product-filter-panel__header p {
  font-size: 1.5rem;
}

.products-page .product-filter-panel__header small {
  color: rgba(44, 35, 29, .5);
  font-size: .7rem;
  letter-spacing: .04em;
}

.products-page .product-filter-panel__header button {
  min-height: 36px;
  padding: 0 2px;
  color: rgba(82, 56, 39, .72);
  border-bottom-color: rgba(82, 56, 39, .38);
  font-size: .72rem;
}

.catalog-filter-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-filter-group legend {
  width: 100%;
  margin-bottom: 12px;
  color: rgba(42, 34, 28, .62);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .11em;
}

.catalog-filter-options {
  display: grid;
  gap: 10px;
}

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

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

.catalog-filter-options button {
  min-height: 50px;
  padding: 10px 16px;
  color: rgba(44, 34, 28, .72);
  border: 1px solid rgba(76, 55, 41, .15);
  border-radius: 3px;
  background: rgba(255, 253, 248, .48);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-align: left;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.catalog-filter-options button:hover {
  color: #3e2c21;
  border-color: rgba(106, 73, 53, .42);
  background: rgba(238, 229, 215, .54);
}

.catalog-filter-options button.is-active {
  color: #fffaf0;
  border-color: #5b3f2f;
  background: #5b3f2f;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, .1);
}

.catalog-filter-options button:focus-visible {
  outline: 2px solid rgba(181, 131, 72, .9);
  outline-offset: 3px;
}

.catalog-filter-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(64, 48, 36, .12);
}

.catalog-filter-panel__footer p {
  margin: 0;
  color: rgba(44, 34, 28, .58);
  font-size: .72rem;
  letter-spacing: .04em;
}

.products-page .product-filter-panel__done {
  display: inline-flex;
  min-width: 138px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fffaf0;
  border: 1px solid #4c3426;
  border-radius: 3px;
  background: #4c3426;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .08em;
}

.products-page .product-filter-panel__done:hover {
  background: #38261c;
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.catalog-results {
  padding-block: 15px 22px;
}

.catalog-results button {
  color: rgba(79, 55, 40, .78);
}

@media (max-width: 1120px) {
  .catalog-hero,
  .catalog-browser {
    width: min(calc(100% - 72px), 1500px);
  }

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

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

@media (max-width: 720px) {
  .catalog-main {
    padding-top: 72px;
  }

  .catalog-hero,
  .catalog-browser {
    width: min(calc(100% - 32px), 1500px);
  }

  .catalog-hero {
    padding: 72px 0 52px;
  }

  .catalog-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .catalog-browser {
    padding-top: 22px;
  }

  .catalog-browser .product-toolbar {
    align-items: flex-start;
    gap: 12px;
  }

  .catalog-categories {
    gap: 15px;
    padding-bottom: 2px;
  }

  .catalog-categories .filter {
    flex: 0 0 auto;
  }

  .products-page .product-filter-panel {
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
  }

  .products-page .product-filter-panel__header p {
    font-size: 1.35rem;
  }

  .catalog-filter-controls {
    gap: 24px;
    padding-top: 24px;
  }

  .catalog-filter-options {
    gap: 8px;
  }

  .catalog-filter-options button {
    min-height: 48px;
    padding-inline: 12px;
    font-size: .72rem;
    text-align: center;
  }

  .catalog-filter-panel__footer {
    display: grid;
    gap: 14px;
    margin-top: 24px;
  }

  .products-page .product-filter-panel__done {
    width: 100%;
    margin: 0;
  }

  body.product-filters-open::before {
    position: fixed;
    z-index: 119;
    inset: 0;
    background: rgba(28, 22, 18, .28);
    content: "";
  }

  body.product-filters-open .jcy-ai-launcher {
    opacity: 0;
    pointer-events: none;
  }

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