/* HERO: lookbook plates on blush paper, category index down the left rail */
:root {
  --paper: #e4c6c3;
  --ink: #141010;
  --mute: #6a4546;
  --accent: #141010;
  --rule: #c4a09c;
  --sold: #8a5c5d;
}

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

html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Newsreader", "Times New Roman", serif;
  font-optical-sizing: auto;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top {
  display: grid;
  grid-template-columns: minmax(1.2rem, 1fr) minmax(0, 76rem) minmax(1.2rem, 1fr);
  padding: 1.2rem 0 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.top-inner {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  font-size: 1rem;
  color: var(--mute);
}

.nav a[aria-current="page"],
.nav a:hover { color: var(--ink); }

.langs { display: flex; align-items: center; gap: 0.45rem; }

.langs button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  font-size: 1rem;
  color: var(--mute);
  cursor: pointer;
}

.langs button[aria-pressed="true"] { color: var(--ink); }
.langs button:focus-visible,
.nav a:focus-visible,
.card:focus-visible,
.size-btn:focus-visible,
.filter-btn:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.langs .sep { color: var(--rule); }

.foot {
  display: grid;
  grid-template-columns: minmax(1.2rem, 1fr) minmax(0, 76rem) minmax(1.2rem, 1fr);
  padding: 1.1rem 0 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--mute);
}

.foot-inner {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.foot strong { font-weight: 500; color: var(--ink); }

.shop-shell {
  display: grid;
  grid-template-columns: minmax(1.2rem, 1fr) minmax(0, 76rem) minmax(1.2rem, 1fr);
}

.shop-inner {
  grid-column: 2;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.4rem;
  padding: 1.8rem 0 3rem;
}

.index-rail {
  position: sticky;
  top: 1.2rem;
  align-self: start;
}

.index-rail h2,
.shop-head .kicker {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cat-list button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--mute);
  font-size: 1.02rem;
}

.cat-list button[aria-pressed="true"],
.cat-list button:hover { color: var(--ink); }

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.shop-head h1 {
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
}

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.search {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.25rem 0;
  min-width: 14rem;
  border-radius: 0;
}

.search:focus { outline: none; }

.filter-btn, .chip {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.1rem 0;
  font-size: 1rem;
  color: var(--mute);
  cursor: pointer;
}

.filter-btn[aria-pressed="true"],
.chip[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.count {
  margin-left: auto;
  color: var(--mute);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem 1.2rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card:nth-child(3n+1) { animation-delay: 0.04s; }
.card:nth-child(3n+2) { animation-delay: 0.1s; }
.card:nth-child(3n+3) { animation-delay: 0.16s; }

.plate {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d7b4b1;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.04) saturate(0.92);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .plate img { transform: scale(1.035); }

.badges {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--paper);
  mix-blend-mode: difference;
}

.card-meta { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }

.style {
  font-size: 0.95rem;
}

.price { font-size: 0.95rem; }
.color { color: var(--mute); font-size: 0.92rem; }
.sold { color: var(--sold); }

.product {
  display: grid;
  grid-template-columns: minmax(1.2rem, 1fr) minmax(0, 76rem) minmax(1.2rem, 1fr);
}

.product-inner {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.9fr);
  gap: 3rem;
  padding: 2rem 0 3.2rem;
}

.product-photo {
  background: #d7b4b1;
  min-height: 70vh;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.04) saturate(0.92);
}

.product-copy h1 {
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.product-copy .kicker {
  font-size: 1rem;
  font-weight: 500;
}

.product-copy .sub {
  margin-top: 0.45rem;
  color: var(--mute);
}

.product-copy .ask {
  margin: 1.1rem 0 1.3rem;
  font-size: 1.25rem;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 1.3rem;
}

.size-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--rule);
  min-width: 3.1rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.size-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.size-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}

.desc { max-width: 36rem; margin-top: 0.4rem; }
.desc + .chart { margin-top: 1.2rem; color: var(--mute); white-space: pre-wrap; font-size: 0.95rem; }

.related {
  grid-column: 2;
  padding-bottom: 3rem;
}

.related h2 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.featured {
  width: min(76rem, calc(100% - 2.4rem));
  margin: 0 auto 3rem;
}

.featured h2 {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 0.9rem;
}

.empty { color: var(--mute); padding: 2rem 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .shop-inner { grid-template-columns: 1fr; }
  .index-rail { position: static; }
  .cat-list { flex-direction: row; flex-wrap: wrap; gap: 0.55rem 1rem; }
  .grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .product-photo { min-height: 55vw; }
}

@media (max-width: 560px) {
  .grid, .feature-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.7rem; }
  .shop-head { flex-direction: column; align-items: start; }
  .count { margin-left: 0; }
  .foot-inner { flex-direction: column; gap: 0.35rem; }
}

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