.shop-page {
  background: white;
}

.shop-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
  padding: 76px 0 52px;
  border-bottom: 1px solid var(--line);
}

.shop-hero__heading {
  max-width: 760px;
}

.shop-hero__heading > p {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.shop-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.shop-hero__heading > span {
  display: block;
  max-width: 560px;
  margin-top: 20px;
  color: #64645f;
  font-size: 15px;
  line-height: 1.7;
}

.shop-hero__aside {
  display: flex;
  min-width: 270px;
  align-items: center;
  gap: 18px;
  padding: 18px 0 6px;
  border-top: 1px solid #bdbdb8;
}

.shop-hero__aside > span {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 50px;
  line-height: 1;
}

.shop-hero__aside div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shop-hero__aside strong {
  font-size: 12px;
}

.shop-hero__aside small {
  color: var(--muted);
  font-size: 10px;
}

.catalog-section {
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
  padding: 0 0 74px;
}

.catalog-toolbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar > p {
  margin: 0;
  color: #595954;
  font-size: 12px;
}

.catalog-toolbar > p strong {
  color: var(--ink);
}

.filter-toggle {
  display: none;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #686864;
  font-size: 11px;
}

.sort-control select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid #d4d4d0;
  border-radius: 0;
  background: white;
  color: var(--ink);
  font-size: 12px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 50px;
  padding-top: 34px;
}

.shop-filters {
  position: sticky;
  top: 78px;
  align-self: start;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-heading strong {
  font-size: 13px;
}

.filter-heading button {
  padding: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
}

.shop-filters fieldset {
  margin: 0;
  padding: 23px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.shop-filters legend {
  margin-bottom: 9px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.filter-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  background: transparent;
  color: #676762;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.filter-option:hover,
.filter-option.is-active {
  color: var(--ink);
  font-weight: 700;
}

.filter-option span {
  color: #999;
  font-size: 9px;
  font-weight: 400;
}

.filter-done {
  display: none;
}

.filter-backdrop {
  display: none;
}

.catalog-results {
  min-width: 0;
}

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

.product-grid--catalog .product-card h3 {
  font-size: 18px;
}

.empty-results {
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 34px;
  }

  .product-grid--catalog {
    gap: 38px 18px;
  }
}

@media (max-width: 900px) {
  .shop-hero,
  .catalog-section {
    width: calc(100% - 32px);
  }

  .shop-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 48px 0 34px;
  }

  .shop-hero h1 {
    font-size: clamp(45px, 14vw, 68px);
  }

  .shop-hero__heading > span {
    margin-top: 14px;
    font-size: 13px;
  }

  .shop-hero__aside {
    width: 100%;
    padding-top: 13px;
  }

  .catalog-toolbar {
    min-height: 64px;
    gap: 10px;
  }

  .filter-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #cfcfca;
    background: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
  }

  .sort-control > span {
    display: none;
  }

  .sort-control select {
    max-width: 150px;
    font-size: 11px;
  }

  .catalog-layout {
    display: block;
    padding-top: 22px;
  }

  .shop-filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    width: min(360px, 90vw);
    padding: 25px 22px;
    overflow-y: auto;
    background: white;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 250ms ease;
  }

  .shop-filters.is-open {
    transform: translateX(0);
  }

  .filter-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 129;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
  }

  .filter-done {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    background: var(--ink);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
  }

  .product-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .product-grid--catalog .product-card h3 {
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .catalog-toolbar > p {
    display: none;
  }

  .sort-control {
    margin-left: auto;
  }

  .product-grid--catalog {
    gap: 28px 14px;
  }
}
