*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ivory: #f7f3ec;
  --ivory-mid: #ede8df;
  --ivory-dark: #ddd6c9;
  --charcoal: #1c1916;
  --charcoal-mid: #2a2622;
  --charcoal-light: #3d3831;
  --bronze: #a6875d;
  --bronze-light: #c9ab7c;
  --text-secondary: #7a7168;
  --white: #fefdfb;
  --nav-h: 136px;
  --side-pad: clamp(24px, 5vw, 64px);
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-dialog-open {
  overflow: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 8px var(--side-pad);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
  -webkit-backdrop-filter: blur(12px);
}

.site-nav.scrolled {
  box-shadow: 0 1px 0 rgba(166, 135, 93, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  width: auto;
  height: 80px;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  position: relative;
  color: var(--charcoal-light);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-menu a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  content: "";
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--bronze);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-quote {
  padding: 11px 26px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-quote:hover {
  background: var(--bronze);
  color: var(--charcoal);
}

@media (max-width: 1120px) and (min-width: 769px) {
  .site-nav {
    padding-inline: 24px;
  }

  .nav-logo {
    height: 62px;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-menu a,
  .nav-quote {
    font-size: 10px;
  }

  .nav-quote {
    padding: 10px 14px;
  }
}

.nav-hamburger {
  position: relative;
  z-index: 110;
  display: none;
  width: 32px;
  height: 24px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-hamburger span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
}

.nav-hamburger span:nth-child(1) {
  top: 0;
}

.nav-hamburger span:nth-child(2) {
  top: 11px;
}

.nav-hamburger span:nth-child(3) {
  top: 22px;
}

.nav-hamburger.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
  background: rgba(247, 243, 236, 0.98);
  backdrop-filter: blur(20px);
}

.mobile-overlay a {
  color: var(--charcoal);
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mobile-overlay a:hover {
  color: var(--bronze);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label::before {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--bronze);
  content: "";
}

.m-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
}

.m-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) var(--side-pad);
}

.m-hero h1 {
  margin-bottom: 24px;
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.m-hero h1 em,
.wm-catalog__heading h2 em {
  color: var(--bronze);
  font-style: italic;
}

.m-hero p:not(.section-label) {
  max-width: 460px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}

.m-hero-right {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.m-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wm-catalog {
  min-height: 70vh;
  padding: clamp(72px, 9vw, 112px) var(--side-pad);
  background: var(--white);
  outline: none;
}

.wm-catalog__inner {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.wm-catalog__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.wm-catalog__heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.wm-catalog__count {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.wm-catalog-search {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 0.3fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: -12px 0 40px;
  padding: 18px;
  border: 1px solid var(--ivory-dark);
  background: #faf9f5;
}

.wm-catalog-search label {
  display: grid;
  gap: 7px;
}

.wm-catalog-search label > span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wm-catalog-search input,
.wm-catalog-search select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #d2cdc2;
  outline: none;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
}

.wm-catalog-search input:focus,
.wm-catalog-search select:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(166, 135, 93, 0.14);
}

.wm-catalog-search__submit,
.wm-catalog-search__reset {
  min-height: 48px;
  padding: 10px 19px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wm-catalog-search__reset {
  background: transparent;
  color: var(--charcoal);
}

.wm-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 22px;
}

.wm-card {
  min-width: 0;
}

.wm-card__button {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.wm-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-mid);
}

.wm-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-card__button:hover .wm-card__image,
.wm-card__button:focus-visible .wm-card__image {
  transform: scale(1.045);
}

.wm-card__button:focus-visible {
  box-shadow: 0 0 0 3px rgba(166, 135, 93, 0.36);
}

.wm-card__badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  background: rgba(28, 25, 22, 0.82);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wm-card__body {
  padding: 17px 2px 0;
}

.wm-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wm-card__title {
  overflow: hidden;
  color: var(--charcoal);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-colours {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wm-colour-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(28, 25, 22, 0.18);
  border-radius: 50%;
  background: var(--swatch, #b8afa1);
}

.wm-colours__more {
  margin-left: 2px;
  color: var(--text-secondary);
  font-size: 9px;
  letter-spacing: 0;
}

.wm-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(166, 135, 93, 0.08), rgba(28, 25, 22, 0.08)),
    var(--ivory-mid);
  color: var(--bronze);
  font-family: "Playfair Display", serif;
  font-size: 48px;
}

.wm-skeleton {
  min-width: 0;
}

.wm-skeleton__image {
  aspect-ratio: 4 / 5;
}

.wm-skeleton__line {
  width: 78%;
  height: 18px;
  margin-top: 18px;
}

.wm-skeleton__line--short {
  width: 40%;
  height: 10px;
  margin-top: 12px;
}

.wm-skeleton__image,
.wm-skeleton__line {
  position: relative;
  overflow: hidden;
  background: var(--ivory-mid);
}

.wm-skeleton__image::after,
.wm-skeleton__line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.7) 50%, transparent 85%);
  content: "";
  transform: translateX(-100%);
  animation: wm-shimmer 1.4s infinite;
}

@keyframes wm-shimmer {
  to {
    transform: translateX(100%);
  }
}

.wm-catalog__state:not(:empty) {
  margin: 30px 0;
}

.wm-state {
  display: grid;
  min-height: 300px;
  padding: 42px;
  border: 1px solid var(--ivory-dark);
  place-items: center;
  text-align: center;
}

.wm-state__inner {
  max-width: 520px;
}

.wm-state__eyebrow {
  margin-bottom: 12px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wm-state h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
}

.wm-state p:not(.wm-state__eyebrow) {
  margin-top: 14px;
  color: var(--text-secondary);
}

.wm-state__button {
  min-height: 44px;
  margin-top: 24px;
  padding: 0 24px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wm-state__button:hover {
  background: var(--bronze);
  border-color: var(--bronze);
}

.wm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
}

.wm-pagination__button {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--ivory-dark);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  place-items: center;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wm-pagination__button:hover:not(:disabled),
.wm-pagination__button[aria-current="page"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
}

.wm-pagination__button:disabled {
  cursor: default;
  opacity: 0.35;
}

.wm-pagination__button--wide {
  min-width: 80px;
}

.wm-pagination__ellipsis {
  display: grid;
  width: 28px;
  height: 42px;
  color: var(--text-secondary);
  place-items: center;
}

.wm-dialog {
  position: fixed;
  inset: 0;
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 28px 90px rgba(28, 25, 22, 0.28);
}

.wm-dialog::backdrop {
  background: rgba(28, 25, 22, 0.72);
  backdrop-filter: blur(4px);
}

.wm-dialog__frame {
  position: relative;
  height: min(760px, calc(100dvh - 40px));
  overflow: hidden;
}

.wm-dialog__content,
.wm-detail {
  height: 100%;
}

.wm-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(28, 25, 22, 0.15);
  border-radius: 50%;
  background: rgba(254, 253, 251, 0.92);
  cursor: pointer;
}

.wm-dialog__close span::before,
.wm-dialog__close span::after {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 1px;
  background: var(--charcoal);
  content: "";
}

.wm-dialog__close span::before {
  transform: rotate(45deg);
}

.wm-dialog__close span::after {
  transform: rotate(-45deg);
}

.wm-dialog__close:focus-visible,
.wm-detail__nav-button:focus-visible,
.wm-gallery__thumbnail:focus-visible {
  outline: 3px solid rgba(166, 135, 93, 0.42);
  outline-offset: 2px;
}

.wm-detail {
  position: relative;
}

.wm-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  height: 100%;
  min-height: 0;
}

.wm-detail__nav {
  position: absolute;
  top: 50%;
  right: 16px;
  left: 16px;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.wm-detail__nav-button {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(28, 25, 22, 0.16);
  border-radius: 50%;
  background: rgba(254, 253, 251, 0.94);
  box-shadow: 0 8px 24px rgba(28, 25, 22, 0.12);
  cursor: pointer;
  place-items: center;
  pointer-events: auto;
  font-size: 22px;
}

.wm-detail__nav-button:disabled {
  cursor: default;
  opacity: 0.32;
}

.wm-gallery {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 0 18px;
  background: var(--ivory-mid);
}

.wm-gallery__main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wm-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wm-gallery__caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 10px 13px;
  background: rgba(28, 25, 22, 0.76);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.wm-gallery__thumbnails {
  display: flex;
  gap: 9px;
  padding: 14px 18px 0;
  overflow-x: auto;
}

.wm-gallery__thumbnail {
  flex: 0 0 74px;
  width: 74px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--ivory);
  cursor: pointer;
}

.wm-gallery__thumbnail[aria-current="true"] {
  border-color: var(--bronze);
}

.wm-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wm-detail__copy {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  min-height: 0;
  overflow-y: auto;
  padding: 80px clamp(34px, 4vw, 60px) 52px;
  background: var(--white);
  overscroll-behavior: contain;
}

.wm-detail__type {
  margin-bottom: 15px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wm-detail__copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wm-detail__description {
  margin-top: 26px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
  white-space: pre-line;
}

.wm-detail__divider {
  width: 100%;
  height: 1px;
  margin: 30px 0;
  border: 0;
  background: var(--ivory-dark);
}

.wm-detail__label {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wm-detail__colours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-detail__colour {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--ivory-dark);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
}

.wm-detail__colour .wm-colour-dot {
  width: 15px;
  height: 15px;
}

.wm-dialog__loading,
.wm-dialog__error {
  display: grid;
  min-height: min(760px, calc(100dvh - 40px));
  padding: 50px;
  place-items: center;
  text-align: center;
}

.wm-dialog__spinner {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ivory-dark);
  border-top-color: var(--bronze);
  border-radius: 50%;
  animation: wm-spin 0.8s linear infinite;
}

@keyframes wm-spin {
  to {
    transform: rotate(360deg);
  }
}

.wm-dialog__error h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 400;
}

.wm-dialog__error p {
  max-width: 430px;
  margin-top: 14px;
  color: var(--text-secondary);
}

.site-footer {
  padding: 72px var(--side-pad) 36px;
  background: var(--charcoal-mid);
  color: rgba(247, 243, 236, 0.45);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-name {
  margin-bottom: 18px;
  color: rgba(247, 243, 236, 0.75);
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
}

.footer-brand strong {
  color: rgba(247, 243, 236, 0.75);
}

.footer-abn {
  margin-top: 14px;
  color: rgba(247, 243, 236, 0.25);
  font-size: 11.5px;
}

.footer-col h4 {
  margin-bottom: 18px;
  color: rgba(247, 243, 236, 0.7);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-col a {
  color: rgba(247, 243, 236, 0.4);
  font-size: 13.5px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--bronze-light);
}

.footer-col li > strong {
  color: rgba(247, 243, 236, 0.6);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.footer-bottom a {
  color: rgba(247, 243, 236, 0.35);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .wm-catalog-search {
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.35fr) auto;
  }

  .wm-catalog-search__reset {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
    padding-block: 6px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .wm-detail__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 106px;
  }

  .nav-menu,
  .nav-quote {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-logo {
    height: 68px;
  }

  .m-hero {
    grid-template-columns: 1fr;
  }

  .m-hero-left {
    order: 2;
    padding: 48px var(--side-pad);
  }

  .m-hero-right {
    order: 1;
    height: 46vh;
    min-height: 300px;
  }

  .wm-catalog__heading {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .wm-catalog__count {
    margin: 0;
  }

  .wm-catalog-search {
    grid-template-columns: 1fr 0.55fr;
    margin-top: 0;
  }

  .wm-catalog-search__submit,
  .wm-catalog-search__reset {
    grid-column: auto;
    justify-self: stretch;
    min-height: 46px;
  }

  .wm-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }

  .wm-card__title {
    font-size: 17px;
  }

  .wm-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: auto;
    overflow-y: auto;
  }

  .wm-dialog__frame {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .wm-dialog__loading,
  .wm-dialog__error {
    min-height: 100dvh;
  }

  .wm-dialog__content,
  .wm-detail {
    height: auto;
  }

  .wm-detail__layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  .wm-gallery {
    height: auto;
  }

  .wm-gallery__main {
    height: 58dvh;
    min-height: 360px;
  }

  .wm-detail__copy {
    min-height: 420px;
    overflow: visible;
    padding: 58px 24px 38px;
  }

  .wm-dialog__close {
    position: fixed;
  }

  .wm-detail__nav {
    position: fixed;
    top: 31vh;
    right: 10px;
    left: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .wm-catalog {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wm-catalog__grid {
    gap: 26px 9px;
  }

  .wm-catalog-search {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .wm-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .wm-card__badge {
    right: 6px;
    bottom: 6px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .wm-pagination {
    gap: 5px;
  }

  .wm-pagination__button {
    min-width: 38px;
    height: 38px;
    padding: 0 7px;
  }

  .wm-pagination__button--wide {
    min-width: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
