:root {
  --ivory: #f7f2e8; --ink: #25281f; --olive: #5f7135; --walnut: #493426;
  --brass: #a9864d; --active-color: #8d7bae; --line: rgba(37, 40, 31, .15);
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink); background: var(--ivory); color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ivory); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.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; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: .8rem clamp(1rem, 4vw, 4rem); background: rgba(247, 242, 232, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.brand span { display: grid; }
.brand strong, h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .04em; }
.brand small { color: #657054; }
.catalog-link { color: inherit; text-underline-offset: .3em; }
.hero { min-height: min(820px, calc(100vh - 70px)); padding: clamp(3rem, 7vw, 6rem) 1rem 2rem; text-align: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--active-color) 24%, transparent), transparent 45%); transition: background .45s ease; }
.eyebrow { color: var(--olive); font-size: .75rem; font-weight: 700; letter-spacing: .22em; }
h1 { margin: .2em 0; font-size: clamp(2.25rem, 7vw, 5.5rem); font-weight: 500; }
.hero-copy { margin: 0 auto 1rem; color: #5d6255; }
.hero-stage { position: relative; width: min(100%, 1040px); height: clamp(280px, 45vw, 480px); margin: 0 auto; overflow-x: clip; touch-action: pan-y; outline-offset: .5rem; user-select: none; }
.hero-products { position: absolute; inset: 0; }
.hero-product { position: absolute; left: 50%; bottom: 15%; width: clamp(72px, 11vw, 132px); border: 0; padding: 0; background: transparent; transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) scale(var(--scale)); opacity: var(--opacity); z-index: var(--depth); transition: transform .45s ease, opacity .45s ease, filter .45s ease; }
.hero-product img { display: block; width: 160%; margin-inline: -30%; max-height: 250px; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(39, 26, 17, .25)); pointer-events: none; }
.hero-product[data-active="false"] { filter: saturate(.62) brightness(.84); }
.shelf { position: absolute; left: 50%; bottom: 7%; width: min(92%, 920px); height: 15%; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(#75543b, var(--walnut) 52%, #2c1d14); box-shadow: 0 20px 28px rgba(50, 34, 22, .3), inset 0 5px 0 rgba(255, 255, 255, .12); }
.hero-controls { position: relative; z-index: 10; display: flex; justify-content: center; align-items: center; gap: 1.4rem; }
.hero-controls button { width: 2.8rem; height: 2.8rem; border: 1px solid var(--brass); border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-controls p { display: grid; min-width: 12rem; margin: 0; font-family: Georgia, serif; font-size: 1.25rem; }
.hero-controls small { color: #686c61; font: .75rem system-ui; }
.catalog { max-width: 1280px; margin: auto; padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem); }
.catalog h2 { margin: .1em 0 .7em; font-size: clamp(2rem, 5vw, 4rem); }
.catalog-tools { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.search { flex: 1; }
.search input { width: min(100%, 32rem); min-height: 3rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fffdf8; }
.sort-control { display: grid; gap: .3rem; color: #5f654f; font-size: .75rem; font-weight: 700; }
.sort-control select { min-height: 3rem; padding: .7rem 2.4rem .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fffdf8; }
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem 0; scrollbar-width: thin; }
.filter-label { flex: 0 0 auto; align-self: center; padding-left: .55rem; color: #5f654f; font-size: .75rem; font-weight: 700; }
.filters button { flex: 0 0 auto; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.filters button[aria-pressed="true"] { color: white; border-color: var(--olive); background: var(--olive); }
.catalog-count { color: #65695e; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.product-card { min-width: 0; border: 0; padding: 1rem; text-align: left; color: inherit; background: #fffdf8; border-radius: 1.2rem; box-shadow: 0 12px 35px rgba(56, 43, 29, .08); }
.product-card .product-image, .dialog-image { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: .8rem; background: #ece8dc; }
.product-card img { width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { margin: .8rem 0 .2rem; }
.product-card p { margin: .15rem 0; color: #686c61; }
.more-button { display: block; margin: 2rem auto 0; padding: .85rem 1.5rem; border: 1px solid var(--olive); border-radius: 999px; color: var(--olive); background: transparent; }
.empty-state { padding: 4rem 1rem; text-align: center; }
footer { padding: 3rem clamp(1rem, 4vw, 4rem); text-align: center; color: #e9eadf; background: #303827; }
dialog { width: min(92vw, 880px); max-height: 88vh; padding: 1.2rem; border: 0; border-radius: 1.4rem; color: var(--ink); background: var(--ivory); }
dialog::backdrop { background: rgba(26, 27, 22, .72); backdrop-filter: blur(5px); }
.dialog-close { display: block; margin-left: auto; border: 0; font-size: 2rem; background: transparent; }
.dialog-layout { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 2rem; }
.dialog-image img { width: 100%; height: 100%; object-fit: contain; }
.dialog-image > .product-image { width: 100%; height: 100%; }
.dialog-copy { overflow: auto; }
.dialog-copy h2 { margin: .1em 0; font-size: 2.2rem; }
.dialog-copy h3 { margin-bottom: .3rem; }
.noscript { margin: 0; padding: 1rem; text-align: center; background: #f4d7a1; }

@media (max-width: 52rem) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 36rem) {
  .site-header { padding: .65rem 1rem; }
  .brand strong { font-size: .85rem; }
  .brand small { display: none; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .sort-control select { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { padding: .65rem; }
  .dialog-layout { grid-template-columns: 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
[hidden] { display: none !important; }
.image-fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; color: #59604d; text-align: center; }
.dialog-copy section p { line-height: 1.7; white-space: pre-line; }
