/* Reference-matched product directory */
.category-rail {
  display: none !important;
}

.catalog-section {
  width: min(1360px, calc(100% - 64px)) !important;
  padding: 78px 0 92px !important;
}

.catalog-intro {
  display: block !important;
  margin: 0 0 24px !important;
}

.catalog-intro > div > p,
.catalog-count {
  display: none !important;
}

.catalog-intro h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 34px !important;
}

.catalog-intro h2::before {
  width: 28px !important;
  margin: 0 !important;
}

.catalog-toolbar {
  display: grid !important;
  grid-template-columns: 190px minmax(360px, 1fr) 190px !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.catalog-toolbar > label:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}

.catalog-toolbar > label:nth-child(2) {
  grid-column: 1;
  grid-row: 1;
}

.catalog-toolbar > label:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.catalog-toolbar label {
  min-height: 48px !important;
  border-color: #ddd6df !important;
}

.ly-catalog-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-side-nav {
  display: flex !important;
  width: 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex-direction: column;
  border: 1px solid #e0dbe1;
  background: #fff;
}

.catalog-side-nav > button {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 49px !important;
  align-items: center;
  padding: 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8e3e9 !important;
  border-radius: 0 !important;
  color: #403941 !important;
  background: #fff !important;
  font-size: 14px;
  text-align: left;
}

.catalog-side-nav > button:last-child {
  border-bottom: 0 !important;
}

.catalog-side-nav > button:hover,
.catalog-side-nav > button.is-active {
  color: #fff !important;
  background: #582259 !important;
}

.catalog-side-nav .category-number,
.catalog-side-nav .category-name small {
  display: none !important;
}

.catalog-side-nav .category-name {
  display: block !important;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.product-image-wrap {
  aspect-ratio: 1 / .9 !important;
}

.product-card-copy {
  min-height: 144px !important;
  padding: 16px !important;
}

.pagination {
  justify-content: flex-end !important;
  padding-right: calc((100% - 190px - 18px) / 2 - 210px);
}

.pagination > span:not(.ly-page-numbers) {
  display: none !important;
}

.pagination > button {
  width: 34px;
  min-height: 34px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  color: transparent !important;
  background: transparent !important;
}

.pagination > button svg {
  color: #7a727b;
}

.ly-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ly-page-numbers button,
.ly-page-numbers i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  color: #302a31;
  background: transparent;
  font-style: normal;
}

.ly-page-numbers button.is-current {
  color: #fff;
  background: #582259;
}

/* Reference-matched horizontal footer */
.site-footer {
  display: grid !important;
  grid-template-columns: minmax(380px, 1.1fr) minmax(120px, .48fr) minmax(110px, .4fr) minmax(150px, .48fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: 220px !important;
  padding: 0 max(20px, calc((100vw - 1440px) / 2)) 28px !important;
  border-top: 1px solid #ddd6df !important;
  background: #fff !important;
}

.site-footer::before {
  display: none !important;
}

.ly-footer-brand {
  position: relative;
  display: flex !important;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: #582259;
}

.ly-footer-brand::after {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 118px;
  height: 90px;
  background: #f39a3f;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  content: "";
}

.ly-footer-brand::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  content: "";
}

.ly-footer-brand strong {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 44px;
  letter-spacing: .12em;
}

.ly-footer-brand span {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: .12em;
}

.ly-footer-column {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 38px 22px 22px;
  color: #5d565e;
}

.ly-footer-column strong {
  margin-bottom: 6px;
  color: #272228;
  font-size: 15px;
}

.ly-footer-column a,
.ly-footer-column button {
  padding: 0;
  border: 0;
  color: #6e6770;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.ly-footer-language div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ly-footer-language span {
  color: #aaa3ab;
}

.ly-footer-copyright {
  position: absolute;
  right: max(20px, calc((100vw - 1440px) / 2));
  bottom: 7px;
  left: max(20px, calc((100vw - 1440px) / 2));
  padding-top: 7px;
  border-top: 1px solid #ddd6df;
  color: #aaa3ab;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 900px) {
  .catalog-toolbar {
    grid-template-columns: 160px minmax(260px, 1fr) 150px !important;
  }
  .ly-catalog-layout {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .catalog-side-nav {
    width: 160px !important;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .site-footer {
    grid-template-columns: 1.3fr .55fr .5fr .6fr !important;
  }
}

@media (max-width: 760px) {
  .catalog-section {
    width: calc(100% - 32px) !important;
    padding: 58px 0 70px !important;
  }
  .catalog-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }
  .catalog-toolbar > label:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .catalog-toolbar > label:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .catalog-toolbar > label:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .ly-catalog-layout {
    display: block;
  }
  .catalog-side-nav {
    width: 100% !important;
    margin-bottom: 16px !important;
    flex-direction: row;
    overflow-x: auto !important;
  }
  .catalog-side-nav > button {
    width: auto !important;
    min-width: max-content !important;
    border-right: 1px solid #e8e3e9 !important;
    border-bottom: 0 !important;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .pagination {
    justify-content: center !important;
    padding-right: 0;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr 1fr !important;
    padding: 0 16px 34px !important;
  }
  .ly-footer-brand {
    grid-column: 1 / -1;
    min-height: 168px;
  }
  .ly-footer-column {
    padding: 24px 12px;
  }
}

@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr !important;
  }
  .ly-footer-language {
    grid-column: 1 / -1;
  }
}
