.catalog-page {
  --shell: min(1480px, calc(100% - 48px));
}

.catalog-page:not(.product-detail-page) .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(23, 9, 16, 0.97);
  box-shadow: 0 10px 34px rgba(15, 5, 10, 0.16);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.catalog-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-page .catalog-hero {
  min-height: 570px;
  padding: 138px 0 72px;
}

.catalog-page .catalog-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(245px, 310px);
  gap: clamp(48px, 8vw, 120px);
}

.catalog-page .catalog-hero .breadcrumbs {
  margin-bottom: 34px;
}

.catalog-page .catalog-hero h1 {
  max-width: 900px;
  margin: 16px 0 24px;
  font-size: clamp(60px, 7.2vw, 104px);
}

.catalog-page .catalog-hero-lead {
  max-width: 780px;
  font-size: 15px;
}

.catalog-page .catalog-hero-actions {
  margin-top: 30px;
}

.catalog-page .catalog-hero-note {
  min-height: 260px;
  gap: 34px;
  padding: 25px;
  border-radius: 22px;
}

.catalog-page .catalog-hero-note > span {
  color: rgba(255, 255, 255, 0.26);
  font-size: 76px;
}

.catalog-page .catalog-category-strip-section {
  padding: 52px 0 58px;
  border-bottom: 1px solid rgba(54, 27, 37, 0.1);
  background: #fffaf3;
}

.catalog-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.catalog-strip-head .eyebrow {
  margin-bottom: 7px;
}

.catalog-strip-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.95;
}

.catalog-strip-head > a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
}

.catalog-category-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 15px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.catalog-category-strip .catalog-category-card {
  min-height: 205px;
  padding: 18px;
  border-radius: 18px;
  scroll-snap-align: start;
}

.catalog-category-strip .catalog-category-card::before {
  top: 48px;
  right: -70px;
  width: 150px;
}

.catalog-category-strip .catalog-category-top > span {
  font-size: 23px;
}

.catalog-category-strip .catalog-category-top small {
  max-width: 105px;
  font-size: 7px;
}

.catalog-category-strip .catalog-category-body {
  margin-top: 34px;
}

.catalog-category-strip .catalog-category-body h3 {
  margin: 0;
  font-size: 26px;
}

.catalog-category-strip .catalog-category-foot {
  padding-top: 13px;
  margin-top: 14px;
}

.catalog-category-strip .catalog-category-foot a {
  width: 36px;
}

.catalog-page .catalog-category-intro {
  padding: 70px 0 64px;
}

.catalog-page .catalog-category-intro h2 {
  font-size: clamp(48px, 5vw, 75px);
}

.catalog-subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 46px;
}

.catalog-subcategory-nav a {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(77, 32, 49, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #57444c;
  font-size: 10px;
  font-weight: 700;
  transition: 0.25s ease;
}

.catalog-subcategory-nav a:hover,
.catalog-subcategory-nav a:focus-visible {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

.catalog-subcategory-nav small {
  color: #9b858e;
  font-size: 8px;
}

.catalog-page .catalog-products {
  padding: calc(var(--header-h) + 46px) 0 112px;
  background: #f8f4ee;
}

.shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.shop-heading .eyebrow {
  margin-bottom: 10px;
}

.shop-heading h1 {
  margin: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.shop-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(54, 27, 37, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.shop-toolbar p {
  margin: 0;
  color: #75646b;
  font-size: 10px;
}

.shop-toolbar strong {
  color: var(--ink);
}

.shop-toolbar > a {
  color: var(--wine);
  font-size: 9px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-filter-toggle {
  display: none;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(77, 32, 49, 0.2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  overflow: hidden auto;
  max-height: calc(100vh - var(--header-h) - 36px);
  border: 1px solid rgba(54, 27, 37, 0.11);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 15px 40px rgba(44, 20, 30, 0.05);
}

.shop-filter-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 62px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(54, 27, 37, 0.1);
}

.shop-filter-panel-head strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.shop-filter-panel-head button {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3ece6;
  cursor: pointer;
  color: var(--wine);
  font-size: 23px;
}

.shop-filter-form {
  padding: 0 20px 22px;
}

.shop-filter-form fieldset {
  padding: 21px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(54, 27, 37, 0.1);
}

.shop-filter-form legend {
  width: 100%;
  margin-bottom: 13px;
  color: #3f2c34;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.shop-search {
  display: grid;
  grid-template-columns: 1fr 42px;
  height: 45px;
  overflow: hidden;
  border: 1px solid rgba(77, 32, 49, 0.17);
  border-radius: 10px;
  background: #fff;
}

.shop-search input {
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.shop-search button {
  border: 0;
  border-left: 1px solid rgba(77, 32, 49, 0.12);
  background: transparent;
  cursor: pointer;
  color: var(--wine);
  font-size: 20px;
}

.shop-category-links {
  display: grid;
  gap: 2px;
}

.shop-category-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #66565d;
  font-size: 10px;
  transition: 0.2s ease;
}

.shop-category-links a:hover,
.shop-category-links a:focus-visible,
.shop-category-links a.is-current {
  background: #f1e8e2;
  color: var(--wine);
}

.shop-category-links small {
  color: #a18d95;
  font-size: 8px;
}

.shop-subcategory-links {
  max-height: 240px;
  overflow-y: auto;
}

.shop-select {
  position: relative;
  display: block;
}

.shop-select select {
  width: 100%;
  height: 45px;
  padding: 0 34px 0 11px;
  border: 1px solid rgba(77, 32, 49, 0.17);
  border-radius: 10px;
  background: #fff;
  color: #59464e;
  font-size: 10px;
}

.shop-apply-button,
.shop-clear-link {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 800;
}

.shop-apply-button {
  margin-top: 20px;
  border: 0;
  background: var(--wine);
  color: var(--white);
  cursor: pointer;
}

.shop-clear-link {
  margin-top: 7px;
  color: var(--wine);
}

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

.catalog-page .catalog-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.catalog-page .catalog-product-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(45, 22, 31, 0.045);
}

.catalog-page .catalog-product-card:hover,
.catalog-page .catalog-product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(45, 22, 31, 0.1);
}

.catalog-page .catalog-product-media {
  aspect-ratio: 1;
  background: #fbfaf7;
}

.catalog-page .catalog-product-media img {
  object-fit: contain;
}

.catalog-page .catalog-product-placeholder {
  width: auto;
  max-width: 150px;
  border: 0;
  text-align: center;
}

.catalog-page .catalog-product-placeholder b {
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(91, 33, 55, 0.2);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.catalog-page .catalog-product-placeholder small {
  color: #8f7c84;
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1.45;
}

.catalog-page .catalog-product-badge {
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  font-size: 7px;
}

.catalog-page .catalog-product-content {
  padding: 17px;
}

.catalog-page .catalog-product-meta {
  font-size: 7px;
}

.catalog-page .catalog-product-content h3 {
  min-height: 44px;
  margin: 10px 0 8px;
  overflow: hidden;
  display: -webkit-box;
  font-size: 22px;
  line-height: 1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-product-tags {
  display: flex;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 9px;
}

.catalog-product-tags span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3ebe6;
  color: #79545f;
  font-size: 7px;
}

.catalog-page .catalog-product-content > p {
  min-height: 38px;
  overflow: hidden;
  display: -webkit-box;
  margin: 0 0 15px;
  font-size: 9px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  padding-top: 13px;
  border-top: 1px solid rgba(61, 31, 42, 0.1);
}

.catalog-product-actions a {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 9px;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
}

.catalog-product-view {
  border: 1px solid rgba(77, 32, 49, 0.16);
  color: var(--wine);
}

.catalog-page .catalog-product-cta {
  min-height: 39px;
  padding: 7px 8px;
  border: 0;
  background: var(--wine);
  color: var(--white);
}

.catalog-pagination {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 38px;
}

.catalog-pagination > div {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.catalog-pagination > div a,
.catalog-pagination > div > span:not(.pagination-ellipsis) {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(77, 32, 49, 0.15);
  border-radius: 10px;
  background: #fff;
  color: #6f5c64;
  font-size: 9px;
  font-weight: 800;
}

.catalog-pagination > div > span.is-current {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

.pagination-ellipsis {
  color: #98868d;
}

.pagination-arrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  color: var(--wine);
  font-size: 9px;
  font-weight: 800;
}

.catalog-pagination > .pagination-arrow:last-child {
  justify-self: end;
}

.shop-empty {
  display: grid;
  min-height: 470px;
  place-items: center;
  align-content: center;
  padding: 55px 24px;
  border: 1px solid rgba(77, 32, 49, 0.12);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.shop-empty > span {
  color: var(--gold);
  font-size: 54px;
}

.shop-empty h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.shop-empty p {
  max-width: 480px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
}

.product-detail-page .product-detail-media {
  aspect-ratio: 1;
  background: #fbfaf7;
}

.product-detail-page .product-detail-media img {
  object-fit: contain;
}

@media (max-width: 1320px) {
  .catalog-page .catalog-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .shop-filter-toggle {
    display: inline-flex;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-filter-panel {
    position: fixed;
    z-index: 1301;
    inset: 0 auto 0 0;
    width: min(88vw, 350px);
    max-height: none;
    border-radius: 0 20px 20px 0;
    box-shadow: 24px 0 70px rgba(15, 5, 10, 0.28);
    transform: translateX(-105%);
    transition: transform 0.32s var(--ease);
  }

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

  .shop-filter-panel-head button {
    display: block;
  }

  body.shop-filters-open {
    overflow: hidden;
  }

  body.shop-filters-open::before {
    content: "";
    position: fixed;
    z-index: 1300;
    inset: 0;
    background: rgba(15, 5, 10, 0.52);
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 860px) {
  .catalog-page .catalog-hero-grid,
  .shop-heading {
    grid-template-columns: 1fr;
  }

  .catalog-page .catalog-hero {
    padding: 126px 0 62px;
  }

  .catalog-page .catalog-hero-note {
    grid-template-columns: 100px 1fr;
    min-height: 0;
  }

  .shop-heading {
    gap: 18px;
  }

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

@media (max-width: 640px) {
  .catalog-page {
    --shell: min(100% - 24px, 1480px);
  }

  .catalog-page .catalog-hero h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .catalog-page .catalog-hero-note {
    grid-template-columns: 1fr;
  }

  .catalog-strip-head {
    align-items: start;
  }

  .catalog-strip-head > a {
    display: none;
  }

  .catalog-category-strip {
    grid-auto-columns: 180px;
  }

  .catalog-page .catalog-category-intro {
    padding: 54px 0;
  }

  .catalog-page .catalog-products {
    padding: calc(var(--header-h) + 26px) 0 84px;
  }

  .shop-toolbar {
    grid-template-columns: auto 1fr;
    padding: 8px 10px;
  }

  .shop-toolbar > a {
    grid-column: 1 / -1;
    padding: 0 4px 6px;
  }

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

  .catalog-page .catalog-product-content {
    padding: 12px;
  }

  .catalog-page .catalog-product-content h3 {
    min-height: 38px;
    font-size: 19px;
  }

  .catalog-product-tags,
  .catalog-page .catalog-product-content > p {
    display: none;
  }

  .catalog-product-actions {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .catalog-product-actions a {
    min-height: 38px;
  }

  .catalog-product-view {
    display: none !important;
  }

  .catalog-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-pagination > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .catalog-pagination > .pagination-arrow {
    grid-row: 2;
  }
}

@media (max-width: 390px) {
  .catalog-page .catalog-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-product-tags,
  .catalog-page .catalog-product-content > p {
    display: flex;
  }

  .catalog-page .catalog-product-content > p {
    display: -webkit-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-filter-panel {
    transition: none;
  }
}
