.wm-shop,
.wm-shop-ad {
  --shop-paper: #fbf8f3;
  --shop-warm: #f4e9dd;
  --shop-ink: #1c344c;
  --shop-muted: #4b5a60;
  --shop-line: #ded3c6;
  --shop-accent: #864638;
  --shop-green: #3d5549;
  --shop-display: 'Gowun Batang', Georgia, 'Noto Serif KR', serif;
}

.wm-shop {
  background: var(--shop-paper);
  color: var(--shop-ink);
  padding-block: clamp(16px, 2.3vw, 30px) clamp(44px, 7vw, 90px);
}

.wm-shop-width {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.wm-shop [hidden] {
  display: none !important;
}

.wm-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 24px;
  background: #f0e7da;
  border: 1px solid var(--shop-line);
}

.wm-shop-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(23px, 3.9vw, 49px);
}

.wm-shop-hero h1 {
  margin: 0;
  font-family: var(--shop-display);
  font-size: clamp(2.25rem, 4.1vw, 3.65rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.wm-shop-hero h1 span {
  white-space: nowrap;
}

.wm-shop-hero p {
  max-width: 38ch;
  margin: 16px 0 24px;
  color: var(--shop-muted);
  line-height: 1.65;
}

.wm-shop-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 285px;
  max-height: 328px;
  object-fit: cover;
  object-position: center 55%;
}

.wm-shop-explore,
.wm-shop-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 11px 17px;
  min-height: 44px;
  border-radius: 8px;
  background: var(--shop-ink);
  color: #fff;
  font-size: .93rem;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.wm-shop-explore:visited,
.wm-shop-buy:visited {
  color: #fff;
}

.wm-shop-explore:hover,
.wm-shop-buy:hover {
  background: #314e61;
  color: #fff;
}

.wm-shop a:focus-visible,
.wm-shop-ad a:focus-visible,
.wm-shop-controls :focus-visible {
  outline: 2px solid var(--shop-accent);
  outline-offset: 3px;
}

.wm-shop-departments {
  margin-block: clamp(24px, 2.8vw, 36px) 0;
}

.wm-shop-departments h2,
.wm-shop-list-heading h2 {
  margin: 0;
  color: var(--shop-ink);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.032em;
}

.wm-shop-departments ul,
.wm-shop-grid {
  list-style: none;
  padding: 0;
}

.wm-shop-departments ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.wm-shop-departments li {
  min-width: 0;
}

.wm-shop-departments a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  background: #fffdf9;
  border-radius: 13px;
  color: var(--shop-ink);
  text-decoration: none;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.wm-shop-departments a:hover {
  border-color: #a48a77;
  box-shadow: 0 4px 16px #2c201310;
}

.wm-shop-departments img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
  object-fit: cover;
  object-position: center;
}

.wm-shop-departments a > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3em;
  padding: 8px 10px;
  font-size: clamp(.78rem, 1.2vw, .96rem);
  font-weight: 730;
  line-height: 1.35;
}

.wm-shop-departments a > span span {
  color: var(--shop-green);
  flex: none;
}

.wm-shop-results,
.wm-shop-related {
  margin-top: clamp(26px, 3.2vw, 42px);
  scroll-margin-top: 118px;
}

.wm-shop-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 12px;
}

.wm-shop-result-count {
  margin: 0;
  color: var(--shop-muted);
  font-size: .88rem;
  white-space: nowrap;
}

.wm-shop-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.wm-shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.wm-shop-toolbar label {
  display: block;
  margin-bottom: 4px;
  font-size: .83rem;
  font-weight: 680;
  color: var(--shop-muted);
}

.wm-shop-toolbar input,
.wm-shop-toolbar select {
  display: block;
  max-width: 100%;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #b7a999;
  border-radius: 8px;
  background: #fff;
  color: var(--shop-ink);
  font: inherit;
}

.wm-shop-toolbar select {
  min-width: min(9.4rem, 100%);
  font-size: .93rem;
}

.wm-shop-search input {
  width: min(100%, 35rem);
}

.wm-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wm-shop-filters button {
  min-height: 39px;
  padding: 5px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: #fffdfb;
  color: var(--shop-ink);
  font: inherit;
  font-size: .87rem;
  font-weight: 680;
  cursor: pointer;
}

.wm-shop-filters button:hover {
  border-color: #9c8b76;
}

.wm-shop-filters button[aria-pressed="true"] {
  border-color: var(--shop-green);
  background: var(--shop-green);
  color: #fff;
}

.wm-shop-empty {
  color: var(--shop-muted);
  padding-block: 12px;
}

.wm-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin: 0;
}

.wm-shop-product,
.wm-shop-item-link {
  min-width: 0;
}

.wm-shop-item-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: var(--shop-ink);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.wm-shop-item-link:hover {
  border-color: #a48a77;
  box-shadow: 0 8px 21px #2c201317;
}

.wm-shop-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #efe6d8;
}

.wm-shop-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.22;
  object-fit: cover;
  transition: transform 240ms ease;
}

.wm-shop-item-link:hover img {
  transform: scale(1.035);
}

.wm-shop-image-label {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #fffcf4ef;
  color: #55493f;
  font-size: .69rem;
  font-weight: 600;
  line-height: 1.24;
}

.wm-shop-paid {
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #bf9281;
  border-radius: 5px;
  background: #fffcf9;
  color: var(--shop-accent);
  font-size: .74rem;
  font-weight: 760;
  line-height: 1.28;
}

.wm-shop-photo .wm-shop-paid {
  position: absolute;
  top: 9px;
  left: 9px;
}

.wm-shop-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 13px 13px 11px;
}

.wm-shop-brand {
  margin: 0;
  color: var(--shop-muted);
  font-size: .8rem;
  font-weight: 740;
  overflow-wrap: anywhere;
}

.wm-shop-product h3 {
  margin: 0;
  color: var(--shop-ink);
  font-size: clamp(.93rem, 1.35vw, 1.08rem);
  font-weight: 720;
  letter-spacing: -.019em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wm-shop-item-action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--shop-green);
  font-size: .82rem;
  font-weight: 740;
}

.wm-shop-item-action span {
  font-size: 1rem;
}

.wm-shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--shop-muted);
  font-size: .9rem;
}

.wm-shop-breadcrumb a {
  color: var(--shop-muted);
  text-underline-offset: 3px;
}

.wm-shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.wm-shop-detail-photo {
  margin: 0;
}

.wm-shop-detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 570px;
  aspect-ratio: 1.13;
  border-radius: 18px;
  background: var(--shop-warm);
  object-fit: cover;
}

.wm-shop-detail-photo figcaption {
  margin-top: 8px;
  color: var(--shop-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.wm-shop-detail-info {
  min-width: 0;
  padding: clamp(15px, 3vw, 35px) 0 0;
}

.wm-shop-detail-info .wm-shop-brand {
  font-size: 1rem;
}

.wm-shop-detail-info h1 {
  margin: 8px 0 13px;
  color: var(--shop-ink);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 760;
  line-height: 1.13;
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.wm-shop-detail-note {
  max-width: 46ch;
  margin: 15px 0 0;
  color: var(--shop-muted);
  line-height: 1.65;
}

.wm-shop-price-note {
  margin: 20px 0 11px;
  color: var(--shop-muted);
  font-size: .94rem;
}

.wm-shop-detail-info .wm-shop-buy {
  min-height: 49px;
  width: min(100%, 22rem);
  text-align: center;
}

.wm-shop-disclosure {
  color: var(--shop-muted);
  margin: 7px 0 0;
  font-size: .825rem;
  line-height: 1.45;
}

.wm-shop-ad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr);
  width: min(100% - 36px, 1120px);
  gap: clamp(14px, 3.5vw, 38px);
  align-items: center;
  margin: clamp(18px, 3.2vw, 39px) auto;
  padding: clamp(13px, 2.4vw, 24px);
  border: 1px solid #cbb09b;
  border-radius: 17px;
  background: var(--shop-warm);
  text-align: left;
}

.wm-shop-ad-photo {
  border-radius: 12px;
}

.wm-shop-ad-feature {
  display: grid;
  justify-items: start;
  min-width: 0;
  gap: 7px;
}

.wm-shop-ad-feature h2 {
  color: var(--shop-ink);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.wm-shop-ad-feature h2 a {
  color: inherit;
  text-decoration: none;
}

.wm-shop-ad-feature h2 a:hover {
  text-decoration: underline;
}

.wm-shop-more {
  color: var(--shop-green);
  font-size: .88rem;
  font-weight: 750;
  text-underline-offset: .19em;
}

.wm-shop-footer-statement {
  color: var(--muted, #4b5a60);
  font-size: .825rem;
  margin-block: 14px 0;
}

@media (max-width: 950px) {
  .wm-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .wm-shop-hero-image {
    min-height: 255px;
  }
}

@media (max-width: 630px) {
  .wm-shop-width {
    width: calc(100% - 28px);
  }

  .wm-shop-hero,
  .wm-shop-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wm-shop-hero {
    border-radius: 15px;
  }

  .wm-shop-hero-copy {
    padding: 19px 17px 18px;
  }

  .wm-shop-hero h1 {
    font-size: clamp(1.95rem, 7.8vw, 2.55rem);
    text-wrap: wrap;
  }

  .wm-shop-hero p {
    margin-block: 9px 13px;
    line-height: 1.5;
    font-size: .94rem;
  }

  .wm-shop-hero-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 2.45;
    object-position: center 60%;
  }

  .wm-shop-departments ul {
    gap: 8px;
  }

  .wm-shop-departments a > span {
    padding-inline: 7px;
  }

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

  .wm-shop-product-body {
    padding: 10px 8px 8px;
  }

  .wm-shop-image-label {
    font-size: .63rem;
  }

  .wm-shop-toolbar {
    gap: 8px;
  }

  .wm-shop-toolbar select {
    min-width: 0;
    max-width: 117px;
    padding-inline: 6px;
    font-size: .85rem;
  }

  .wm-shop-detail-photo img {
    max-height: clamp(170px, 62vw, 310px);
  }

  .wm-shop-detail-grid {
    gap: 15px;
  }

  .wm-shop-detail-info {
    padding: 0;
  }

  .wm-shop-price-note {
    margin-top: 12px;
  }

  .wm-shop-detail-info .wm-shop-buy {
    width: 100%;
  }

  .wm-shop-ad {
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
  }

  .wm-shop-ad .wm-shop-buy {
    padding: 8px;
    gap: .35em;
    font-size: .81rem;
  }
}

@media (max-width: 560px) {
  .site-header .public-nav:has(.wm-shop-nav-link) {
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 1px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .site-header .public-nav:has(.wm-shop-nav-link) a {
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 2px;
    font-size: clamp(.68rem, 3.1vw, .8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-shop *,
  .wm-shop-ad *,
  .wm-shop *::before,
  .wm-shop *::after {
    transition: none !important;
  }
}
