:root {
  --black: #111111;
  --white: #ffffff;
  --page: #fff8f0;
  --surface: #ffffff;
  --blue: #3155d9;
  --orange: #ff7a3d;
  --lime: #c7e85b;
  --lavender: #d9d2ff;
  --line: rgba(0, 0, 0, 0.22);
  --line-soft: rgba(0, 0, 0, 0.11);
  --muted: rgba(0, 0, 0, 0.64);
  --soft: rgba(0, 0, 0, 0.055);
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }


/* Subtle motion keeps the typography lively without changing the layout. */
@keyframes text-rise-in {
  from { opacity: 0; transform: translateY(.32em); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes brand-letter-breathe {
  0%, 100% { letter-spacing: 0; }
  50% { letter-spacing: .025em; }
}

.brand b {
  animation: text-rise-in 560ms cubic-bezier(.2, .75, .25, 1) both,
             brand-letter-breathe 4.8s ease-in-out 700ms infinite;
}

.hero h1,
.section-heading h2,
.card-body h3,
.collection-card strong,
.modal-content h2 {
  animation: text-rise-in 620ms cubic-bezier(.2, .75, .25, 1) both;
}

.card-body h3,
.collection-card strong,
.hero h1 em {
  transition: transform 220ms ease, letter-spacing 220ms ease;
}

.gallery-card:hover .card-body h3,
.collection-card:hover strong,
.hero h1:hover em {
  transform: translateX(2px);
  letter-spacing: .012em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 240, 0.94);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; fill: currentColor; }
.brand span { display: grid; gap: 2px; }
.brand b { font-family: var(--serif); font-size: 1.25rem; }
.brand small { color: var(--muted); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); }
.header-actions a,
.saved-nav {
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.header-actions a:hover { text-decoration: underline; text-underline-offset: 5px; }
.saved-nav { display: inline-flex; align-items: center; gap: 7px; padding: 0; }
.saved-nav span { display: grid; min-width: 25px; height: 25px; place-items: center; border: 1px solid var(--black); border-radius: 50%; }

.button,
.card-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--black);
  border-radius: 9px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button-dark,
.card-link { background: var(--black); color: var(--white); }
.button:hover,
.card-link:hover { transform: translateY(-2px); }
.button-dark:hover,
.card-link:hover { background: var(--white); color: var(--black); }

.hero {
  position: relative;
  display: grid;
  min-height: 74vh;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  overflow: hidden;
  padding: clamp(76px, 10vw, 140px) clamp(20px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 22%, rgba(217, 210, 255, .78), transparent 35%),
    radial-gradient(circle at 92% 76%, rgba(199, 232, 91, .4), transparent 28%),
    var(--page);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to right, #000, transparent 80%);
}
.hero-content { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.4vw, 7rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .9;
}
.hero h1 em { font-weight: 700; }
.hero-copy { max-width: 610px; margin: 30px 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.hero-actions .button { gap: 28px; }
.text-link { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 5px; }

.hero-carousel { min-width: 0; }
.hero-track { display: grid; grid-auto-columns: calc((100% - 24px) / 3); grid-auto-flow: column; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 0 8px; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-product { min-width: 0; scroll-snap-align: start; }
.hero-product-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--black); border-radius: 13px; background: var(--white); color: var(--black); cursor: pointer; text-align: left; }
.hero-product-media { display: block; width: 100%; aspect-ratio: 3 / 5; overflow: hidden; background: var(--black); }
.hero-product-media img,
.hero-product-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-product-media .preview-placeholder { height: 100%; }
.hero-product-media .preview-word { right: 10px; bottom: 12px; font-size: clamp(1.15rem, 2vw, 2rem); }
.hero-product-brand { position: absolute; top: 10px; left: 10px; z-index: 3; max-width: calc(100% - 20px); padding: 7px 9px; overflow: hidden; border-radius: 7px; background: var(--black); color: var(--white); font-size: .52rem; font-weight: 900; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.hero-product-copy { display: grid; min-height: 88px; align-content: center; gap: 6px; padding: 12px; }
.hero-product-copy strong { display: -webkit-box; min-height: 2.16em; overflow: hidden; font-family: var(--serif); font-size: 1rem; font-weight: 400; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-product-copy > span { font-size: .7rem; font-weight: 800; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.carousel-dots span { width: 6px; height: 6px; border: 1px solid var(--black); border-radius: 50%; background: transparent; }
.carousel-dots span.active { background: var(--black); }

.collections-section,
.gallery-section,
.recent-section { max-width: 1500px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px); }
.collections-section { border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.35rem, 5vw, 4.9rem); font-weight: 400; letter-spacing: -.05em; line-height: .96; }
.split-heading > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }
.compact-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); }

.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.collection-card {
  position: relative;
  display: flex;
  min-height: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--black);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}
.collection-card::before,
.collection-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .32;
}
.collection-card::before { width: 105%; aspect-ratio: 1; top: -28%; right: -40%; }
.collection-card::after { width: 78%; aspect-ratio: 1; bottom: 15%; left: -36%; }
.collection-card:hover,
.collection-card.active { background: var(--black); color: var(--white); }
.collection-card:nth-child(4n + 1) { background: var(--blue); color: var(--white); }
.collection-card:nth-child(4n + 2) { background: var(--orange); }
.collection-card:nth-child(4n + 3) { background: var(--lime); }
.collection-card:nth-child(4n + 4) { background: var(--lavender); }
.collection-card:nth-child(n):hover,
.collection-card:nth-child(n).active { background: var(--black); color: var(--white); }
.collection-caption { position: relative; z-index: 2; display: flex; width: 100%; min-height: 64px; align-items: center; padding: 15px 18px; background: rgba(0, 0, 0, .76); color: var(--white); }
.collection-card.has-image::before,
.collection-card.has-image::after { display: none; }
.collection-image { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.collection-image.active { opacity: 1; }
.collection-card.has-image .collection-caption { background: rgba(0, 0, 0, .76); color: var(--white); }
.collection-card.has-image:hover .collection-caption,
.collection-card.has-image.active .collection-caption { background: rgba(0, 0, 0, .88); color: var(--white); }
.collection-card strong { position: relative; z-index: 1; display: -webkit-box; overflow: hidden; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.8rem); font-weight: 400; line-height: 1.02; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.recent-section { padding-top: 70px; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.text-button { border: 0; background: transparent; cursor: pointer; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 5px; text-transform: uppercase; }
.recent-row { display: grid; grid-auto-columns: minmax(150px, 205px); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding-bottom: 12px; scrollbar-color: var(--black) var(--soft); }
.recent-card { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--black); cursor: pointer; text-align: left; }
.recent-image { position: absolute; inset: 0; display: block; }
.recent-image > img,
.recent-image > video,
.recent-image > .preview-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.recent-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: block; padding: 14px; background: rgba(0, 0, 0, .74); color: var(--white); }
.recent-copy strong { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 400; line-height: 1.05; }

.toolbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.toolbar > label,
.toolbar > .price-range-control { min-width: 0; }
.toolbar label { display: grid; align-content: start; gap: 9px; padding: 16px; background: var(--white); }
.toolbar label > span { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.toolbar input,
.toolbar select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--white); color: var(--black); font-size: .94rem; }
.toolbar input:focus,
.toolbar select:focus { border-color: var(--black); }
.toolbar input::placeholder { color: var(--muted); }

.price-range-control {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 0;
  background: var(--white);
}
.price-range-control > div { display: grid; height: 100%; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px; }
.price-range-control label { display: grid; gap: 5px; padding: 0; background: transparent; }
.price-range-control label span { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-range-control input { min-width: 0; }

.active-filter-row { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; }
#activeFilters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 8px 10px; border: 1px solid var(--black); border-radius: 8px; background: var(--lime); color: var(--black); cursor: pointer; font: inherit; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-chip:hover { background: var(--black); color: var(--white); }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination[hidden] { display: none; }
.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
}
.pagination button:hover:not(:disabled),
.pagination button.active { border-color: var(--black); background: var(--black); color: var(--white); }
.pagination button:disabled { cursor: not-allowed; opacity: .38; }
.pagination-ellipsis { display: grid; min-width: 24px; place-items: center; font-weight: 800; }
.gallery-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: var(--white); transition: transform 180ms ease, border-color 180ms ease; }
.gallery-card:hover { border-color: var(--black); transform: translateY(-5px); }
.preview-wrap { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); background: var(--black); color: inherit; cursor: zoom-in; text-align: left; }
.preview-wrap img,
.preview-wrap video { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-placeholder { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--black); color: var(--white); }
.preview-placeholder::before,
.preview-placeholder::after { content: ""; position: absolute; border: 1px solid var(--white); border-radius: 50%; opacity: .8; }
.preview-placeholder::before { width: 115%; aspect-ratio: 1; top: -18%; left: -45%; }
.preview-placeholder::after { width: 86%; aspect-ratio: 1; right: -36%; bottom: -10%; }
.preview-word { position: absolute; right: 16px; bottom: 18px; max-width: 85%; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.7rem); font-weight: 700; letter-spacing: -.06em; line-height: .85; text-align: right; text-transform: uppercase; }
.format-badge { position: absolute; z-index: 2; padding: 8px 10px; border: 1px solid var(--white); background: var(--black); color: var(--white); font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.format-badge { top: 14px; right: 14px; }
.save-button { position: absolute; z-index: 3; top: 14px; left: 14px; display: grid; width: 39px; height: 39px; padding: 0; place-items: center; border: 1px solid var(--white); border-radius: 50%; background: var(--black); color: var(--white); cursor: pointer; font-size: 1.3rem; }
.save-button.saved { background: var(--white); color: var(--black); }

.card-body { display: flex; min-height: 235px; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-body h3 { display: -webkit-box; min-height: 2.1em; margin: 0; overflow: hidden; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.05; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.price-line { display: flex; align-items: center; gap: 8px; }
.price-line strong { font-size: 1rem; }
.price-line s { color: var(--muted); font-size: .76rem; }
.card-body > p { display: -webkit-box; min-height: 4.56em; margin: 0 0 2px; overflow: hidden; color: var(--muted); font-size: .84rem; line-height: 1.52; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag-list span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.tag-list span:nth-child(odd) { background: var(--lavender); }
.tag-list span:nth-child(even) { background: var(--lime); }
.card-actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8px; margin-top: auto; }
.card-link { min-height: 43px; padding: 0 8px; font-size: .52rem; letter-spacing: .06em; line-height: 1.1; text-align: center; white-space: nowrap; }
.card-link.secondary { background: var(--white); color: var(--black); }
.card-link.secondary:hover { background: var(--black); color: var(--white); }

.empty-state { padding: 70px 20px; border: 1px solid var(--line); border-radius: 15px; text-align: center; }
.empty-state p { color: var(--muted); }
body.modal-open { overflow: hidden; }
.preview-modal[hidden] { display: none; }
.preview-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); cursor: zoom-out; }
.modal-card { position: relative; z-index: 1; display: grid; width: min(1100px, 100%); max-height: min(92vh, 790px); grid-template-columns: minmax(300px, 42%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--black); border-radius: 18px; background: var(--white); box-shadow: 16px 16px 0 var(--black); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--black); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 1.5rem; }
.modal-close:hover { background: var(--black); color: var(--white); }
.modal-preview { min-width: 0; aspect-ratio: 2 / 3; overflow: hidden; border-right: 1px solid var(--black); background: var(--black); }
.modal-preview img,
.modal-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.modal-preview .preview-placeholder { min-height: 100%; }
.modal-content { display: flex; min-width: 0; padding: clamp(28px, 4.5vw, 56px); overflow-y: auto; flex-direction: column; align-items: flex-start; }
.modal-meta { display: flex; gap: 18px; padding-right: 44px; font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.modal-code { width: fit-content; margin: 16px 0 0 !important; padding: 7px 9px; border-radius: 7px; background: var(--lime); color: var(--black) !important; font-size: .62rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.modal-content h2 { margin: 22px 0 12px; font-family: var(--serif); font-size: clamp(2.4rem, 4.7vw, 4.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .94; }
.modal-price-line { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.modal-price-line strong { font-size: 1.25rem; }
.modal-price-line s { color: var(--muted); }
.modal-price-line span { padding: 5px 7px; background: var(--black); color: var(--white); font-size: .55rem; font-weight: 800; letter-spacing: .08em; }
.modal-content > p { max-width: 54ch; margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.modal-detail-grid { display: grid; width: 100%; grid-template-columns: 1fr 1fr; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.modal-detail-grid > div { display: grid; gap: 7px; padding: 14px; border-right: 1px solid var(--line); }
.modal-detail-grid > div:last-child { border-right: 0; }
.modal-detail-grid span,
.detail-label { color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.modal-detail-grid strong { font-size: .78rem; }
.modal-block { width: 100%; margin-bottom: 18px; }
.size-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.size-list span { display: grid; min-width: 36px; height: 34px; padding-inline: 8px; place-items: center; border: 1px solid var(--line); border-radius: 7px; font-size: .65rem; font-weight: 800; }
.curator-note { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--lavender); }
.curator-note p { margin: 8px 0 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; }
.modal-utility-actions { display: flex; gap: 8px; width: 100%; margin-bottom: 14px; }
.modal-utility-actions button { min-height: 38px; padding: 0 14px; border: 1px solid var(--black); border-radius: 8px; background: var(--white); cursor: pointer; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.modal-utility-actions button:hover,
.modal-utility-actions button.saved { background: var(--black); color: var(--white); }
.modal-actions { width: 100%; }
.modal-actions[hidden] { display: none; }
.modal-actions.single-action { grid-template-columns: 1fr; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 140; max-width: 330px; padding: 13px 16px; border: 1px solid var(--white); background: var(--black); color: var(--white); font-size: .72rem; box-shadow: 6px 6px 0 rgba(0, 0, 0, .2); }

footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 44px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-socials { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.footer-socials a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--black);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-size: .65rem;
  font-weight: 800;
  text-decoration: none;
}
.footer-socials a:hover { background: var(--white); color: var(--black); }
.footer-socials span { display: grid; width: 15px; height: 15px; place-items: center; font-weight: 900; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr); }
  .collection-grid, .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-actions a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-carousel { width: 100%; overflow: hidden; }
  .hero-track { grid-auto-columns: 100%; gap: 0; padding: 0; }
  .hero-product-button { border: 1px solid var(--black); border-radius: 13px; }
  .hero-product-media { height: auto; aspect-ratio: 2 / 3; }
  .carousel-dots { margin-top: 14px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-control { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-card { width: min(680px, 100%); grid-template-columns: minmax(240px, 40%) minmax(0, 1fr); }
  .modal-content { padding: 28px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 68px; padding-inline: 15px; }
  .brand b { font-size: 1.05rem; }
  .brand small { font-size: .48rem; }
  .header-actions { gap: 12px; }
  .header-actions a { display: none; }
  .saved-nav { font-size: .55rem; }
  .hero { padding: 76px 20px 60px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.3rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-product-copy { min-height: 80px; }
  .section-heading { align-items: start; flex-direction: column; }
  .collection-card { min-height: 0; }
  .collection-caption { min-height: 56px; padding: 12px 14px; }
  .collection-card strong { font-size: 1.2rem; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar label { padding: 10px; }
  .price-range-control { padding: 10px; }
  .price-range-control label { padding: 0; background: transparent; }
  .search-control { grid-column: 1 / -1; }
  .toolbar label > span { font-size: .62rem; }
  .price-range-control label span { font-size: .56rem; }
  .toolbar input, .toolbar select { font-size: .92rem; }
  .active-filter-row { align-items: flex-start; }
  .card-grid { align-items: start; gap: 16px 8px; }
  .gallery-card { align-self: start; height: auto; }
  .card-body { min-height: 0; flex: 0 0 auto; gap: 7px; padding: 12px; }
  .card-body h3 { min-height: 0; font-size: 1.05rem; }
  .card-body > p { min-height: 0; font-size: .68rem; -webkit-line-clamp: 3; }
  .tag-list { margin-top: 0; }
  .card-meta { display: grid; gap: 4px; font-size: .48rem; }
  .price-line { gap: 5px; }
  .price-line strong { font-size: .83rem; }
  .price-line s { font-size: .62rem; }
  .tag-list span { padding: 4px 5px; font-size: .45rem; }
  .card-actions { grid-template-columns: 1fr; gap: 5px; }
  .card-link { min-height: 38px; font-size: .46rem; }
  .save-button { top: 8px; left: 8px; width: 34px; height: 34px; }
  .format-badge { top: 8px; right: 8px; padding: 6px; font-size: .46rem; }
  .preview-word { right: 10px; bottom: 12px; font-size: 1.5rem; }
  .recent-row { grid-auto-columns: minmax(140px, 42vw); gap: 10px; }
  footer { align-items: start; flex-direction: column; }
  .footer-socials { margin-left: 0; }
  .pagination { flex-wrap: wrap; gap: 6px; margin-top: 34px; }
  .pagination button { min-width: 38px; height: 38px; padding-inline: 11px; }

  .preview-modal { padding: 10px; }
  .modal-card { display: block; width: 100%; max-height: calc(100dvh - 20px); overflow-y: auto; padding-bottom: 82px; box-shadow: 6px 6px 0 var(--black); }
  .modal-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 120; }
  .modal-preview { width: 100%; max-height: none; aspect-ratio: 2 / 3; border-right: 0; border-bottom: 1px solid var(--black); }
  .modal-preview img,
  .modal-preview video { object-fit: contain; }
  .modal-content { overflow: visible; padding: 24px 17px 28px; }
  .modal-content h2 { margin-top: 20px; font-size: 2.35rem; }
  .modal-actions { position: fixed; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; z-index: 115; grid-template-columns: 1fr 1fr; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 -8px 18px rgba(255,255,255,.96); }
  .modal-actions .card-link { min-height: 48px; padding-inline: 5px; font-size: .44rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
