:root {
  --black: oklch(0.095 0 0);
  --surface: oklch(0.15 0.012 255);
  --silk: oklch(0.94 0.014 170);
  --silk-2: oklch(0.86 0.025 190);
  --smoke: oklch(0.78 0.035 225);
  --olive: oklch(0.53 0.065 124);
  --madder: oklch(0.544 0.169 31.3);
  --wine: oklch(0.34 0.11 18);
  --muted: oklch(0.7 0.012 220);
  --line-dark: oklch(1 0 0 / 0.18);
  --line-light: oklch(0.095 0 0 / 0.2);
  --display: "Poiret One", sans-serif;
  --sans: "Commissioner", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--silk);
  background: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
::selection { color: var(--silk); background: var(--madder); }

.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;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--black);
  background: var(--silk);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 76px;
  padding: 0 clamp(22px, 4.2vw, 72px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, height 220ms ease;
}
.site-header.is-scrolled {
  height: 66px;
  border-color: var(--line-dark);
  background: oklch(0.095 0 0 / 0.88);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  min-width: 220px;
  align-items: center;
  gap: 13px;
  color: var(--silk);
  text-decoration: none;
}
.brand img { color: var(--silk); }
.brand > img { width: 32px; height: 44px; }
.brand span { display: grid; gap: 2px; }
.brand b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.brand small {
  font-size: 7px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); }
.site-nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:not(.nav-action) { position: relative; padding: 14px 0; }
.site-nav a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-action {
  padding: 14px 18px;
  border: 1px solid var(--line-dark);
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-action:hover { color: var(--black); background: var(--silk); }
.menu-button { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: end;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image {
  object-fit: cover;
  object-position: 52% 32%;
  filter: saturate(0.78) contrast(1.08) brightness(0.72);
  animation: hero-settle 1.2s cubic-bezier(.2,.72,.2,1) both;
}
.hero-shade {
  background:
    linear-gradient(90deg, oklch(0.095 0 0 / 0.78) 0%, oklch(0.095 0 0 / 0.25) 48%, oklch(0.095 0 0 / 0.16) 100%),
    linear-gradient(0deg, oklch(0.095 0 0 / 0.68) 0%, transparent 45%);
}
.hero-eyebrow {
  position: absolute;
  z-index: 2;
  top: 48%;
  right: clamp(22px, 4.2vw, 72px);
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 170px clamp(22px, 4.2vw, 72px) 64px;
  grid-column: 1 / -1;
}
.hero h1 {
  max-width: 1150px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(78px, 12vw, 188px);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: 0.73em; color: var(--smoke); }
.hero-copy > p {
  margin: 34px 0 0 9px;
  font-size: clamp(12px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.hero-link, .hero-place {
  position: relative;
  z-index: 2;
  min-height: 94px;
  margin: 0;
  border-top: 1px solid var(--line-dark);
}
.hero-link {
  display: flex;
  padding: 0 clamp(22px, 4.2vw, 72px);
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--line-dark);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-link i { font-size: 23px; font-style: normal; transition: transform 180ms ease; }
.hero-link:hover i { transform: translateY(5px); }
.hero-place {
  display: flex;
  padding: 0 clamp(22px, 4.2vw, 72px);
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.15em;
  text-align: right;
  text-transform: uppercase;
}

.section-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.overline {
  margin: 0 0 34px;
  color: var(--madder);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
h2 em { color: var(--madder); font-style: normal; }

.manifest {
  display: grid;
  min-height: 100svh;
  padding: clamp(90px, 11vw, 176px) clamp(22px, 4.2vw, 72px);
  color: var(--black);
  background: var(--silk);
  grid-template-columns: 0.24fr minmax(0, 1.25fr) minmax(230px, 0.44fr);
  align-items: start;
  gap: clamp(35px, 6vw, 100px);
}
.manifest .section-index { color: oklch(0.46 0.01 220); writing-mode: vertical-rl; }
.manifest h2 em { color: var(--wine); }
.manifest-text {
  display: grid;
  max-width: 970px;
  margin-top: clamp(65px, 9vw, 140px);
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
}
.manifest-text p { margin: 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.65; }
.manifest-text .lead { color: var(--wine); font-family: var(--display); font-size: clamp(27px, 2.6vw, 42px); line-height: 1.16; }
.material-note {
  align-self: end;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-light);
}
.material-note span { display: block; color: var(--wine); font-family: var(--display); font-size: clamp(80px, 8vw, 128px); line-height: 0.75; }
.material-note p { margin: 26px 0 0; font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: 0.15em; text-transform: uppercase; }

.silk-window {
  display: grid;
  min-height: 100svh;
  background: var(--surface);
  grid-template-columns: minmax(300px, 0.6fr) minmax(480px, 1.4fr);
}
.silk-window-copy {
  display: flex;
  padding: clamp(80px, 9vw, 140px) clamp(22px, 4.2vw, 72px);
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-dark);
}
.silk-window-copy > p { margin: 0; color: var(--smoke); font-family: var(--display); font-size: clamp(62px, 7vw, 108px); line-height: 0.85; text-transform: uppercase; }
.silk-window-copy span { max-width: 320px; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.55; }
.silk-window figure { position: relative; display: grid; min-height: 100svh; margin: 0; overflow: hidden; }
.image-crop { position: absolute; inset: 0; overflow: hidden; }
.image-crop-blue img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 55%;
  transform: scale(1.12);
  filter: saturate(0.8) contrast(1.03);
}
.silk-window figcaption {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 390px;
  margin: 0 0 42px 42px;
  padding: 18px 20px;
  color: var(--black);
  background: oklch(0.94 0.014 170 / 0.9);
  font-size: 12px;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}

.process { padding: clamp(100px, 12vw, 190px) clamp(22px, 4.2vw, 72px); }
.process-heading { display: grid; grid-template-columns: 0.24fr 0.5fr 1.5fr; align-items: start; gap: clamp(30px, 5vw, 84px); }
.process-heading h2 em { color: var(--smoke); }
.process-list { margin: clamp(90px, 10vw, 160px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.process-list li {
  display: grid;
  min-height: 155px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 0.2fr 0.72fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
}
.process-list li > span { color: var(--madder); font-size: 10px; font-weight: 600; letter-spacing: 0.17em; }
.process-list h3 { margin: 0; font-family: var(--display); font-size: clamp(39px, 4vw, 65px); font-weight: 400; letter-spacing: -0.035em; text-transform: uppercase; }
.process-list p { max-width: 570px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; }

.author {
  display: grid;
  min-height: 100svh;
  color: var(--black);
  background: var(--smoke);
  grid-template-columns: minmax(390px, 0.85fr) minmax(480px, 1.15fr);
}
.author-photo { position: relative; min-height: 100svh; margin: 0; overflow: hidden; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 68%; filter: saturate(0.72) contrast(1.04); }
.author-photo figcaption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  padding: 15px 18px;
  color: var(--silk);
  background: oklch(0.095 0 0 / 0.78);
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.author-copy { display: flex; padding: clamp(80px, 9vw, 145px) clamp(30px, 7vw, 112px); flex-direction: column; justify-content: center; }
.author-copy .section-index { align-self: flex-end; color: oklch(0.38 0.015 230); }
.author-copy .overline { margin-top: clamp(70px, 9vw, 140px); color: var(--wine); }
.author-copy h2 { font-size: clamp(44px, 5vw, 78px); }
.author-copy h2 em { color: var(--wine); }
.author-copy > p:not(.overline) { max-width: 630px; margin: 40px 0 0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.65; }
.author-copy > p + p:not(.overline) { margin-top: 18px; }
.text-link { width: fit-content; margin-top: 50px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-decoration: none; text-transform: uppercase; }
.text-link span { display: inline-block; margin-left: 18px; transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.collection { padding: clamp(100px, 12vw, 190px) clamp(22px, 4.2vw, 72px); background: var(--black); }
.collection-heading { display: grid; grid-template-columns: 0.23fr 1.15fr 0.62fr; align-items: end; gap: clamp(30px, 5vw, 80px); }
.collection-heading h2 em { color: var(--olive); }
.collection-heading > p { max-width: 360px; margin: 0 0 8px; color: var(--muted); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.6; }
.collection-grid { display: grid; margin-top: clamp(70px, 8vw, 120px); grid-template-columns: minmax(480px, 1.35fr) minmax(290px, 0.65fr); align-items: stretch; gap: 1px; background: var(--line-dark); }
.collection-main { position: relative; min-height: 780px; margin: 0; overflow: hidden; background: var(--surface); }
.collection-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; filter: saturate(0.72) contrast(1.04); }
.collection-main figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 27px 30px; background: linear-gradient(transparent, oklch(0.095 0 0 / 0.9)); font-size: 9px; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase; }
.collection-card { display: flex; min-height: 480px; padding: clamp(40px, 5vw, 80px); flex-direction: column; justify-content: flex-end; background: var(--surface); }
.collection-card > p { margin: 0 0 20px; color: var(--smoke); font-family: var(--display); font-size: clamp(48px, 5vw, 78px); line-height: 0.92; text-transform: uppercase; }
.collection-card > span { max-width: 370px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.button {
  display: flex;
  width: 100%;
  min-height: 62px;
  margin-top: 45px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--silk);
  background: var(--madder);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}
.button b { font-size: 18px; font-weight: 400; transition: transform 180ms ease; }
.button:hover { background: var(--wine); }
.button:hover b { transform: translate(3px, -3px); }

.closing { display: flex; min-height: 100svh; padding: clamp(90px, 10vw, 160px) clamp(22px, 4.2vw, 72px); flex-direction: column; align-items: center; justify-content: center; color: var(--silk); background: var(--wine); text-align: center; }
.closing > img { color: var(--silk); }
.closing > p { margin: 28px 0 clamp(60px, 8vw, 110px); font-family: var(--display); font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; }
.closing h2 { max-width: 1250px; font-size: clamp(52px, 7.2vw, 116px); }
.closing h2 em { color: var(--smoke); }
.button-light { width: min(420px, 100%); margin-top: clamp(55px, 7vw, 95px); color: var(--black); background: var(--silk); }
.button-light:hover { color: var(--silk); background: var(--black); }

.site-footer {
  display: grid;
  min-height: 230px;
  padding: 54px clamp(22px, 4.2vw, 72px);
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  border-top: 1px solid var(--line-dark);
  background: var(--black);
  gap: 40px;
}
.footer-brand { align-self: start; }
.site-footer > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer > div { display: flex; justify-content: flex-end; gap: 34px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer > div a { text-decoration: none; }

@keyframes hero-settle {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@media (max-width: 1080px) {
  .manifest { grid-template-columns: 0.15fr 1fr; }
  .material-note { grid-column: 2; }
  .manifest-text { grid-template-columns: 1fr 1fr; }
  .manifest-text .lead { grid-column: 1 / -1; max-width: 700px; }
  .process-heading { grid-template-columns: 0.2fr 1fr; }
  .process-heading .overline { display: none; }
  .collection-heading { grid-template-columns: 0.15fr 1fr; }
  .collection-heading > p { grid-column: 2; margin-top: 20px; }
  .collection-main { min-height: 660px; }
}

@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .site-header { height: 68px; padding: 0 20px; }
  .site-header.is-scrolled { height: 62px; }
  .brand { position: relative; z-index: 22; min-width: 0; }
  .brand img { width: 29px; height: 40px; }
  .brand b { font-size: 18px; }
  .brand small { font-size: 7px; }
  .menu-button {
    position: relative;
    z-index: 22;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    color: var(--silk);
    background: transparent;
    place-content: center;
    gap: 7px;
  }
  .menu-line { display: block; width: 25px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] .menu-line:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: flex;
    padding: 126px 24px 38px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: var(--wine);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 20px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--display); font-size: clamp(30px, 9vw, 46px); letter-spacing: 0; text-transform: none; }
  .site-nav a::after { display: none; }
  .site-nav .nav-action { margin-top: 34px; padding: 18px; border: 1px solid var(--line-dark); font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-align: center; text-transform: uppercase; }

  .hero { min-height: 760px; grid-template-columns: minmax(0, 1fr); }
  .hero > *, .process-heading > *, .collection-heading > * { min-width: 0; }
  .hero-image { object-position: 53% 30%; }
  .hero-shade { background: linear-gradient(0deg, oklch(0.095 0 0 / 0.82), transparent 78%); }
  .hero-eyebrow { top: 118px; right: 15px; }
  .hero-copy { padding: 170px 20px 42px; }
  .hero h1 { max-width: 100%; font-size: clamp(60px, 18vw, 86px); line-height: 0.8; }
  .hero h1 span:last-child { margin-left: 0; }
  .hero-copy > p { margin-top: 26px; font-size: 10px; letter-spacing: 0.22em; }
  .hero-link { min-height: 74px; padding: 0 20px; border-right: 0; }
  .hero-place { display: none; }

  h2 { font-size: clamp(48px, 14.5vw, 72px); }
  .manifest { min-height: 0; padding: 92px 20px; grid-template-columns: 1fr; gap: 0; }
  .manifest .section-index { margin-bottom: 64px; writing-mode: horizontal-tb; }
  .manifest-text { margin-top: 58px; grid-template-columns: 1fr; }
  .manifest-text .lead { grid-column: auto; }
  .material-note { grid-column: auto; margin-top: 70px; }
  .material-note span { font-size: 92px; }

  .silk-window { min-height: 0; grid-template-columns: 1fr; }
  .silk-window-copy { min-height: 420px; padding: 80px 20px 54px; border-right: 0; }
  .silk-window-copy > p { font-size: 68px; }
  .silk-window figure { min-height: 78svh; }
  .silk-window figcaption { max-width: calc(100% - 40px); margin: 0 20px 20px; }

  .process { padding: 100px 20px; }
  .process-heading { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .process-heading h2 { font-size: clamp(40px, 10.7vw, 56px); }
  .process-list { margin-top: 76px; }
  .process-list li { min-height: 0; padding: 34px 0 38px; grid-template-columns: 46px 1fr; gap: 10px 18px; }
  .process-list p { grid-column: 2; }
  .process-list h3 { font-size: 45px; }

  .author { min-height: 0; grid-template-columns: 1fr; }
  .author-photo { min-height: 76svh; }
  .author-copy { padding: 88px 20px 100px; }
  .author-copy .section-index { align-self: start; }
  .author-copy .overline { margin-top: 62px; }
  .author-copy h2 { font-size: clamp(42px, 12vw, 62px); }

  .collection { padding: 100px 20px; }
  .collection-heading { grid-template-columns: 1fr; gap: 54px; }
  .collection-heading > p { grid-column: auto; margin: -20px 0 0; }
  .collection-grid { margin-top: 72px; grid-template-columns: 1fr; }
  .collection-main { min-height: 72svh; }
  .collection-main img { object-position: 50% 28%; }
  .collection-card { min-height: 450px; padding: 40px 24px; }

  .closing { min-height: 820px; padding: 90px 20px; }
  .closing h2 { font-size: clamp(45px, 13.2vw, 70px); }
  .site-footer { min-height: 360px; padding: 52px 20px; grid-template-columns: 1fr; align-items: start; }
  .site-footer > div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Store surfaces */
.shop-page {
  color: var(--black);
  background: var(--silk);
}
.shop-page .site-header {
  color: var(--silk);
  border-color: var(--line-dark);
  background: oklch(0.095 0 0 / 0.96);
}
.shop-page main { min-height: 70svh; padding-top: 76px; }
.shop-page .site-footer { color: var(--silk); }
.site-nav .cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
}
.cart-link > span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  color: var(--silk);
  background: var(--madder);
  place-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.cart-drawer {
  width: min(500px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--black);
  background: var(--silk);
  opacity: 1;
  transform: translateX(0);
  transition: transform 200ms cubic-bezier(.16,1,.3,1), opacity 160ms ease;
}
.cart-drawer::backdrop {
  background: oklch(0.095 0 0 / 0.66);
  backdrop-filter: blur(3px);
  transition: opacity 160ms ease;
}
.cart-drawer.is-closing { opacity: 0; transform: translateX(100%); }
.cart-drawer.is-closing::backdrop { opacity: 0; }
@starting-style {
  .cart-drawer[open] { opacity: 0; transform: translateX(100%); }
  .cart-drawer[open]::backdrop { opacity: 0; }
}
.cart-drawer-panel { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.cart-drawer-header {
  display: flex;
  min-height: 112px;
  padding: 26px 28px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}
.cart-drawer-header p { margin: 0 0 6px; color: var(--wine); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.cart-drawer-header h2 { margin: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 400; line-height: 0.9; text-transform: uppercase; }
.cart-drawer-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-light);
  color: var(--black);
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  place-items: center;
}
.cart-drawer-close:hover { color: var(--silk); background: var(--wine); }
.cart-drawer-content { display: flex; min-height: 0; overflow-y: auto; flex-direction: column; }
.drawer-items { padding: 4px 28px 0; }
.drawer-item { display: grid; padding: 24px 0; border-bottom: 1px solid var(--line-light); grid-template-columns: 104px minmax(0, 1fr); gap: 20px; }
.drawer-item-image { display: grid; width: 104px; aspect-ratio: 4 / 5; overflow: hidden; color: var(--muted); background: var(--surface); place-items: center; font-size: 0.6875rem; text-align: center; }
.drawer-item-image img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-copy { display: grid; min-width: 0; grid-template-columns: 1fr auto; align-content: start; gap: 7px 14px; }
.drawer-item-copy > p { grid-column: 1 / -1; margin: 0; color: oklch(0.4 0.01 220); font-size: 0.625rem; letter-spacing: 0.11em; text-transform: uppercase; }
.drawer-item-copy h3 { min-width: 0; margin: 0; font-family: var(--display); font-size: 1.55rem; font-weight: 400; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.drawer-item-copy h3 a { text-decoration: none; }
.drawer-item-copy > strong { white-space: nowrap; font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.quantity-stepper { display: inline-flex; width: fit-content; margin-top: 12px; align-items: center; border: 1px solid oklch(0.64 0.012 220); }
.quantity-stepper form { margin: 0; }
.quantity-stepper button,
.quantity-stepper > span { display: grid; width: 40px; height: 40px; padding: 0; border: 0; color: var(--black); background: transparent; place-items: center; font: 500 0.875rem/1 var(--sans); }
.quantity-stepper button { cursor: pointer; font-size: 1.15rem; }
.quantity-stepper button:hover:not(:disabled) { color: var(--silk); background: var(--wine); }
.quantity-stepper button:disabled { cursor: not-allowed; opacity: 0.3; }
.drawer-remove { align-self: end; margin: 12px 0 0; justify-self: end; }
.drawer-remove button { min-height: 40px; padding: 0; border: 0; color: var(--wine); background: transparent; cursor: pointer; font-size: 0.75rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-drawer-footer { margin-top: auto; padding: 26px 28px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-light); background: oklch(0.97 0.009 170); }
.cart-drawer-footer > div { display: flex; align-items: baseline; justify-content: space-between; }
.cart-drawer-footer > div span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-drawer-footer > div strong { font-size: 1.25rem; font-weight: 500; }
.cart-drawer-footer > p { margin: 10px 0 20px; color: oklch(0.4 0.01 220); font-size: 0.75rem; }
.cart-drawer-footer .button { margin: 0; }
.drawer-empty { display: grid; min-height: 100%; padding: 48px 28px; place-content: center; text-align: center; }
.drawer-empty > p { margin: 0; font-family: var(--display); font-size: 3rem; line-height: 0.95; text-transform: uppercase; }
.drawer-empty > span { max-width: 30ch; margin: 18px auto 0; color: oklch(0.4 0.01 220); line-height: 1.55; }
.drawer-empty .button { margin-top: 30px; }
.messages {
  position: fixed;
  z-index: 40;
  top: 92px;
  right: 20px;
  width: min(390px, calc(100vw - 40px));
}
.message {
  margin: 0 0 8px;
  padding: 16px 18px;
  color: var(--silk);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  font-size: 0.875rem;
  line-height: 1.45;
}
.message-success { background: oklch(0.34 0.08 140); }
.message-error { background: var(--wine); }

.shop-hero {
  display: grid;
  min-height: 300px;
  padding: 58px clamp(22px, 4.2vw, 72px) 38px;
  color: var(--silk);
  background: var(--surface);
  grid-template-columns: 1fr auto;
  align-content: end;
  align-items: end;
  gap: 24px;
}
.shop-hero > p { grid-column: 1 / -1; margin: 0; color: var(--smoke); font-size: 0.75rem; letter-spacing: 0.17em; text-transform: uppercase; }
.shop-hero h1, .flow-header h1, .success-page h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.shop-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
.shop-hero > span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.catalog-layout {
  display: grid;
  padding: clamp(54px, 7vw, 110px) clamp(22px, 4.2vw, 72px) clamp(90px, 10vw, 160px);
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(45px, 6vw, 96px);
}
.catalog-filters {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 34px;
}
.catalog-filters fieldset { display: grid; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--line-light); gap: 12px; }
.catalog-filters legend, .filter-group > label {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.catalog-filters label { display: flex; min-height: 30px; align-items: center; gap: 10px; font-size: 0.9375rem; }
.catalog-filters input[type="radio"], .catalog-filters input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--madder); }
.size-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.search-row { display: flex; border-bottom: 1px solid var(--black); }
.search-row input { min-width: 0; width: 100%; padding: 13px 0; border: 0; color: var(--black); background: transparent; font-size: 1rem; }
.search-row input::placeholder { color: oklch(0.43 0.012 220); }
.search-row button { padding: 0 0 0 12px; border: 0; color: var(--wine); background: transparent; font-weight: 600; }
.filter-actions { display: flex; align-items: center; gap: 22px; }
.filter-actions > a { font-size: 0.8125rem; }
.compact-button { width: auto; min-height: 48px; margin: 0; }

.product-grid, .featured-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 90px) clamp(20px, 3vw, 48px);
}
.featured-products { margin-top: clamp(70px, 8vw, 120px); }
.product-card { min-width: 0; }
.featured-products .product-card:nth-child(4n + 1) { transform: translateY(32px); }
.product-card-image {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--silk);
  background: var(--surface);
  text-decoration: none;
  place-items: center;
}
.product-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.16,1,.3,1), filter 450ms ease;
}
.product-card-image:hover img { transform: scale(1.025); filter: saturate(1.06); }
.product-image-empty { max-width: 16ch; color: var(--muted); font-family: var(--display); font-size: 2rem; line-height: 1.05; text-align: center; text-transform: uppercase; }
.product-status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  padding: 7px 10px;
  align-items: center;
  color: var(--silk);
  background: var(--wine);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card-image .product-status { position: absolute; top: 16px; left: 16px; }
.product-status-made_to_order { background: var(--olive); }
.product-status-sold { background: oklch(0.3 0.015 220); }
.product-card-copy { display: flex; padding-top: 20px; align-items: start; justify-content: space-between; gap: 20px; }
.product-card-copy p { margin: 0 0 7px; color: oklch(0.43 0.012 220); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.product-card-copy h2 { margin: 0; font-family: var(--sans); font-size: clamp(1rem, 1.1vw, 1.15rem); font-weight: 500; line-height: 1.28; letter-spacing: 0.015em; text-transform: uppercase; text-wrap: balance; }
.product-card-copy h2 a { text-decoration: none; }
.product-card-copy strong { white-space: nowrap; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.product-botanical { margin: 12px 0 0; color: oklch(0.43 0.012 220); font-size: 0.875rem; line-height: 1.45; }
.empty-state { display: grid; min-height: 440px; padding: 54px; border: 1px solid var(--line-light); background: oklch(0.97 0.009 170); place-content: center; text-align: center; }
.empty-state h2 { margin: 0; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 400; line-height: 0.95; text-transform: uppercase; }
.empty-state p { max-width: 52ch; margin: 24px auto 0; font-size: 1rem; line-height: 1.65; }
.empty-state .button { width: min(330px, 100%); margin: 34px auto 0; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  align-items: start;
  background: var(--silk);
}
.product-gallery { display: grid; gap: 1px; background: var(--line-light); }
.product-gallery figure { min-height: 85svh; margin: 0; background: var(--surface); }
.product-gallery img { width: 100%; height: 100%; max-height: 1100px; object-fit: cover; }
.product-detail-placeholder { display: grid; min-height: 85svh; padding: 32px; color: var(--muted); background: var(--surface); place-items: center; font-family: var(--display); font-size: 3.5rem; text-align: center; text-transform: uppercase; }
.product-summary { position: sticky; top: 96px; padding: clamp(48px, 6vw, 92px) clamp(30px, 5vw, 80px); }
.breadcrumbs { display: flex; margin-bottom: 34px; align-items: center; gap: 9px; font-size: 0.75rem; }
.breadcrumbs a { color: oklch(0.38 0.01 220); }
.product-summary > .product-status { margin-bottom: 22px; }
.product-summary h1 { margin: 0; font-family: var(--display); font-size: clamp(3.2rem, 5vw, 5.3rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; }
.product-lead { max-width: 48ch; margin: 24px 0 0; font-size: 1.1rem; line-height: 1.55; }
.product-price { margin: 34px 0; font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.product-facts { margin: 0; border-top: 1px solid var(--line-light); }
.product-facts > div { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line-light); grid-template-columns: 120px 1fr; gap: 16px; }
.product-facts dt { color: oklch(0.4 0.01 220); font-size: 0.75rem; text-transform: uppercase; }
.product-facts dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.product-size-list { display: flex; flex-wrap: wrap; gap: 7px; }
.product-size-list span { display: inline-flex; min-width: 38px; min-height: 30px; padding: 4px 9px; border: 1px solid var(--line-light); align-items: center; justify-content: center; font-size: .78rem; }
.add-to-cart .button { margin-top: 30px; }
.unavailable-note { padding: 22px; color: var(--silk); background: var(--surface); line-height: 1.55; }
.product-accordions { margin-top: 34px; border-top: 1px solid var(--line-light); }
.product-accordions details { border-bottom: 1px solid var(--line-light); }
.product-accordions summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; list-style: none; text-transform: uppercase; }
.product-accordions summary::after { content: "+"; font-size: 1.2rem; font-weight: 300; }
.product-accordions details[open] summary::after { content: "−"; }
.product-accordions details > div { padding: 0 0 22px; font-size: 0.9375rem; line-height: 1.65; }
.related { padding: clamp(80px, 9vw, 140px) clamp(22px, 4.2vw, 72px); }
.related > h2 { margin: 0 0 54px; font-family: var(--display); font-size: 3.2rem; font-weight: 400; text-transform: uppercase; }
.related .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related .product-card:nth-child(4n + 1) { transform: none; }
.related .product-card-image { min-height: 0; }

.flow-page { padding: clamp(64px, 8vw, 120px) clamp(22px, 4.2vw, 72px) clamp(90px, 10vw, 160px); }
.flow-header { display: grid; padding-bottom: 42px; border-bottom: 1px solid var(--line-light); grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.flow-header > p { grid-column: 1 / -1; margin: 0; color: var(--wine); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.flow-header > a { font-size: 0.8125rem; }
.cart-layout, .checkout-layout { display: grid; margin-top: 54px; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr); align-items: start; gap: clamp(44px, 7vw, 110px); }
.cart-items { border-top: 1px solid var(--line-light); }
.cart-item { display: grid; padding: 26px 0; border-bottom: 1px solid var(--line-light); grid-template-columns: 120px minmax(180px, 1fr) auto auto; align-items: center; gap: 20px; }
.cart-image { display: grid; width: 120px; height: 150px; overflow: hidden; color: var(--muted); background: var(--surface); place-items: center; font-size: 0.75rem; text-align: center; }
.cart-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-main > span { color: oklch(0.43 0.012 220); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-item-main h2 { margin: 8px 0; font-family: var(--display); font-size: 2rem; font-weight: 400; text-transform: uppercase; }
.cart-item-main h2 a { text-decoration: none; }
.cart-item-main p { margin: 0; color: oklch(0.4 0.01 220); font-size: 0.8125rem; }
.text-button { min-height: 42px; padding: 0 10px; border: 0; color: var(--wine); background: transparent; cursor: pointer; font-size: 0.75rem; text-decoration: underline; }
.cart-item > strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item > form:last-child { grid-column: 2; }
.order-summary, .checkout-summary { position: sticky; top: 110px; padding: 30px; color: var(--silk); background: var(--surface); }
.order-summary h2, .checkout-summary h2 { margin: 0 0 34px; font-family: var(--display); font-size: 2.4rem; font-weight: 400; text-transform: uppercase; }
.order-summary > div, .checkout-total { display: flex; padding: 20px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); justify-content: space-between; }
.order-summary p, .checkout-summary > p { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.order-summary .button { margin-top: 26px; }

.checkout-form { display: grid; gap: 46px; }
.checkout-form fieldset { margin: 0; padding: 0; border: 0; }
.checkout-form legend { margin-bottom: 24px; font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 54px; padding: 14px; border: 1px solid oklch(0.68 0.01 220); color: var(--black); background: oklch(1 0 0); font: inherit; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--madder); }
.form-field > p, .privacy-field > p { margin: 0; color: var(--wine); font-size: 0.8125rem; line-height: 1.4; }
.form-errors { padding: 18px; color: var(--silk); background: var(--wine); }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-hint { margin: 12px 0 0; color: oklch(0.4 0.01 220); font-size: 0.8125rem; line-height: 1.5; }
.privacy-field { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.privacy-field input { width: 20px; height: 20px; margin: 0; accent-color: var(--madder); }
.privacy-field label { font-size: 0.875rem; line-height: 1.45; }
.privacy-field > p { grid-column: 2; }
.checkout-submit { margin: 0; }
.checkout-item { display: flex; padding: 13px 0; border-bottom: 1px solid var(--line-dark); justify-content: space-between; gap: 16px; font-size: 0.875rem; }
.checkout-item strong { white-space: nowrap; font-weight: 500; }
.checkout-total { margin-top: 22px; }

.success-page { display: flex; min-height: calc(100svh - 96px); padding: 90px clamp(22px, 7vw, 120px); flex-direction: column; justify-content: center; color: var(--silk); background: var(--wine); }
.success-page > span { margin-bottom: 34px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.success-page h1 { max-width: 1100px; }
.success-page > p { max-width: 650px; margin: 40px 0; font-size: 1.125rem; line-height: 1.65; }
.success-page dl { display: grid; max-width: 720px; margin: 0; border-top: 1px solid var(--line-dark); }
.success-page dl > div { display: flex; padding: 15px 0; border-bottom: 1px solid var(--line-dark); justify-content: space-between; gap: 30px; }
.success-page dd { margin: 0; text-align: right; }
.success-actions { display: flex; margin-top: 46px; align-items: center; gap: 34px; }
.success-actions .button { margin: 0; }
.success-actions .text-link { margin: 0; }

.account-notice {
  display: flex;
  min-height: 72px;
  margin-top: 32px;
  padding: 17px 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-light);
  background: oklch(0.97 0.009 170);
  gap: 24px;
}
.account-notice p { max-width: 72ch; margin: 0; font-size: 0.875rem; line-height: 1.55; }
.account-notice strong { font-weight: 600; }
.account-notice > div { display: flex; flex: 0 0 auto; gap: 22px; }
.account-notice a { color: var(--wine); font-size: 0.75rem; font-weight: 600; text-underline-offset: 4px; }

.auth-page {
  display: grid;
  min-height: calc(100svh - 96px);
  grid-template-columns: minmax(390px, 0.85fr) minmax(500px, 1.15fr);
}
.auth-intro {
  display: flex;
  padding: clamp(70px, 8vw, 130px) clamp(32px, 6vw, 92px);
  flex-direction: column;
  justify-content: flex-end;
  color: var(--silk);
  background:
    linear-gradient(0deg, oklch(0.095 0 0 / 0.78), oklch(0.095 0 0 / 0.12)),
    url("assets/silk-blue-dress.jpg") 50% 40% / cover;
}
.auth-intro-register {
  background:
    linear-gradient(0deg, oklch(0.095 0 0 / 0.8), oklch(0.095 0 0 / 0.15)),
    url("assets/silk-kimono.jpg") 50% 34% / cover;
}
.auth-intro > p { margin: 0 0 24px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.auth-intro h1 { max-width: 720px; margin: 0; font-family: var(--display); font-size: clamp(3.7rem, 6vw, 6rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; }
.auth-intro > span { max-width: 48ch; margin-top: 30px; color: var(--smoke); font-size: 0.9375rem; line-height: 1.65; }
.auth-panel { display: flex; width: min(680px, 100%); padding: clamp(70px, 8vw, 130px) clamp(32px, 7vw, 112px); flex-direction: column; justify-content: center; }
.auth-panel-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line-light); }
.auth-panel-heading p { margin: 0 0 12px; color: var(--wine); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.auth-panel-heading h2 { margin: 0; font-family: var(--display); font-size: 3.4rem; font-weight: 400; line-height: 0.95; text-transform: uppercase; }
.auth-form { display: grid; margin-top: 34px; gap: 20px; }
.auth-form .button { margin-top: 12px; border: 0; cursor: pointer; }
.field-help { color: oklch(0.4 0.01 220); font-size: 0.75rem; line-height: 1.45; }
.field-help ul { margin: 4px 0 0; padding-left: 18px; }
.auth-switch { margin: 28px 0 0; color: oklch(0.4 0.01 220); font-size: 0.875rem; }
.auth-switch a { color: var(--wine); font-weight: 600; text-underline-offset: 4px; }

.account-page { min-height: 70svh; padding: clamp(64px, 8vw, 120px) clamp(22px, 4.2vw, 72px) clamp(90px, 10vw, 160px); }
.account-heading { display: grid; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; }
.account-heading > * { min-width: 0; }
.account-heading > div:first-child > p { margin: 0 0 22px; color: var(--wine); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.account-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(4rem, 7vw, 6rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; }
.account-identity { display: grid; justify-items: end; gap: 14px; }
.account-identity > span { max-width: 100%; color: oklch(0.4 0.01 220); font-size: 0.8125rem; overflow-wrap: anywhere; }
.account-identity form { margin: 0; }
.account-identity button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--wine);
  align-items: center;
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  gap: 18px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, transform 120ms ease;
}
.account-identity button::after { content: "↗"; font-size: 0.875rem; font-weight: 400; }
.account-identity button:hover { color: var(--silk); background: var(--wine); }
.account-identity button:active { transform: translateY(1px); }
.account-orders { display: grid; margin-top: 52px; gap: 38px; }
.account-order { border: 1px solid var(--line-light); background: oklch(0.97 0.009 170); }
.order-heading { display: grid; padding: 28px 30px; border-bottom: 1px solid var(--line-light); grid-template-columns: minmax(190px, 1fr) repeat(3, auto); align-items: end; gap: clamp(28px, 5vw, 82px); }
.order-heading > div { display: grid; gap: 7px; }
.order-heading span { color: oklch(0.4 0.01 220); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.order-heading h2 { margin: 0; font-family: var(--display); font-size: 2.25rem; font-weight: 400; line-height: 1; text-transform: uppercase; }
.order-heading strong { font-size: 0.875rem; font-weight: 500; }
.order-current-status { color: var(--wine); }
.order-current-status.is-cancelled { color: var(--madder); }
.status-track { display: grid; margin: 0; padding: 36px 30px 38px; list-style: none; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-step { position: relative; display: grid; justify-items: start; gap: 12px; }
.status-step:not(:first-child)::before { position: absolute; top: 15px; right: calc(100% - 1px); width: 100%; height: 1px; content: ""; background: oklch(0.75 0.015 190); }
.status-step > span { position: relative; z-index: 1; display: grid; width: 31px; height: 31px; border: 1px solid oklch(0.62 0.015 190); color: oklch(0.42 0.01 220); background: oklch(0.97 0.009 170); place-items: center; border-radius: 50%; font-size: 0.6875rem; font-weight: 600; }
.status-step p { margin: 0; padding-right: 12px; color: oklch(0.4 0.01 220); font-size: 0.75rem; line-height: 1.35; }
.status-complete:not(:first-child)::before, .status-current:not(:first-child)::before { background: var(--olive); }
.status-complete > span { border-color: var(--olive); color: var(--silk); background: var(--olive); }
.status-current > span { border-color: var(--madder); color: var(--silk); background: var(--madder); }
.status-current p { color: var(--black); font-weight: 600; }
.cancelled-note { margin: 0; padding: 30px; color: var(--silk); background: var(--wine); font-size: 0.875rem; line-height: 1.55; }
.order-details { border-top: 1px solid var(--line-light); }
.order-details summary { display: flex; min-height: 64px; padding: 0 30px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.order-details summary::-webkit-details-marker { display: none; }
.order-details summary span { font-size: 1.25rem; font-weight: 300; transition: transform 180ms ease; }
.order-details[open] summary span { transform: rotate(45deg); }
.order-details-grid { display: grid; padding: 0 30px 34px; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr); gap: clamp(36px, 6vw, 84px); }
.account-items { border-top: 1px solid var(--line-light); }
.account-item { display: grid; padding: 18px 0; border-bottom: 1px solid var(--line-light); grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.account-item-image { display: grid; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; color: var(--muted); background: var(--surface); place-items: center; font-size: 0.5rem; text-align: center; text-transform: uppercase; }
.account-item-image img { width: 100%; height: 100%; object-fit: cover; }
.account-item p { margin: 0 0 5px; color: oklch(0.4 0.01 220); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.account-item h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.account-item div > span { display: block; margin-top: 7px; color: oklch(0.4 0.01 220); font-size: 0.75rem; }
.account-item > strong { white-space: nowrap; font-size: 0.875rem; font-weight: 500; }
.account-delivery { margin: 0; border-top: 1px solid var(--line-light); }
.account-delivery > div { display: grid; padding: 13px 0; border-bottom: 1px solid var(--line-light); grid-template-columns: 100px 1fr; gap: 16px; }
.account-delivery dt { color: oklch(0.4 0.01 220); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.account-delivery dd { margin: 0; font-size: 0.8125rem; line-height: 1.45; }
.account-empty { display: grid; max-width: 900px; min-height: 460px; margin: 52px auto 0; padding: 56px; border: 1px solid var(--line-light); place-content: center; text-align: center; }
.account-empty > span { color: var(--wine); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.account-empty h2 { max-width: 720px; margin: 22px auto 0; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 4.7rem); font-weight: 400; line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.account-empty p { max-width: 54ch; margin: 25px auto 0; line-height: 1.65; }
.account-empty .button { width: min(360px, 100%); margin: 34px auto 0; }

@media (min-width: 1600px) {
  .catalog-layout .product-grid,
  .featured-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(18px, 2vw, 36px);
  }
}

@media (max-width: 1020px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .product-gallery figure { min-height: 70svh; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary, .checkout-summary { position: static; }
  .auth-page { grid-template-columns: minmax(320px, 0.75fr) minmax(430px, 1.25fr); }
  .order-details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .shop-page main { padding-top: 68px; }
  .shop-page .site-header { height: 68px; }
  .cart-drawer { width: 100%; }
  .cart-drawer-header { min-height: 92px; padding: 20px; }
  .drawer-items { padding-right: 20px; padding-left: 20px; }
  .drawer-item { grid-template-columns: 86px minmax(0, 1fr); gap: 16px; }
  .drawer-item-image { width: 86px; }
  .drawer-item-copy { grid-template-columns: minmax(0, 1fr); }
  .drawer-item-copy > strong { grid-row: 3; }
  .drawer-remove { grid-row: 4; justify-self: start; }
  .cart-drawer-footer { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  .shop-hero { min-height: 250px; padding: 52px 20px 32px; grid-template-columns: 1fr; }
  .shop-hero > p { grid-column: auto; }
  .shop-hero h1 { font-size: 3.15rem; }
  .flow-header h1, .success-page h1 { font-size: clamp(3.3rem, 16vw, 4.8rem); }
  .catalog-layout { padding: 50px 20px 100px; }
  .catalog-filters { grid-template-columns: 1fr; }
  .filter-actions { grid-column: auto; }
  .product-grid, .featured-products { grid-template-columns: 1fr; }
  .featured-products .product-card:nth-child(4n + 1) { transform: none; }
  .product-card-image { min-height: 0; }
  .product-card-copy h2 { font-size: 1rem; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery figure { min-height: 72svh; }
  .product-summary { position: static; padding: 52px 20px 80px; }
  .product-summary h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .related { padding: 74px 20px; }
  .related .product-grid { grid-template-columns: 1fr; }
  .flow-page { padding: 58px 20px 100px; }
  .flow-header { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { margin-top: 38px; }
  .cart-item { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: start; }
  .cart-image { width: 88px; height: 112px; }
  .cart-item-main h2 { font-size: 1.55rem; }
  .quantity-form { grid-column: 2 / -1; }
  .cart-item > strong { grid-column: 3; grid-row: 1; }
  .cart-item > form:last-child { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .success-page { min-height: calc(100svh - 78px); padding: 70px 20px; }
  .success-actions { align-items: stretch; flex-direction: column; }
  .success-actions .button { width: 100%; }
  .account-notice { align-items: flex-start; flex-direction: column; gap: 14px; }
  .auth-page { min-height: 0; grid-template-columns: 1fr; }
  .auth-intro { min-height: 480px; padding: 82px 20px 48px; }
  .auth-intro h1 { font-size: clamp(3.4rem, 15vw, 4.8rem); }
  .auth-panel { width: 100%; padding: 64px 20px 88px; }
  .account-page { padding: 58px 20px 100px; }
  .account-heading { grid-template-columns: 1fr; align-items: start; }
  .account-heading h1 { font-size: clamp(2.75rem, 11.7vw, 3.7rem); overflow-wrap: anywhere; }
  .account-identity { justify-items: start; }
  .order-heading { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .status-track { padding: 28px 22px; grid-template-columns: 1fr; gap: 0; }
  .status-step { min-height: 72px; padding-bottom: 18px; grid-template-columns: 31px 1fr; align-items: start; gap: 14px; }
  .status-step:not(:first-child)::before { top: -41px; right: auto; left: 15px; width: 1px; height: 56px; }
  .status-step p { padding: 7px 0 0; }
  .order-details summary { padding: 0 22px; }
  .order-details-grid { padding: 0 22px 28px; }
  .account-item { grid-template-columns: 60px minmax(0, 1fr); }
  .account-item-image { width: 60px; }
  .account-item > strong { grid-column: 2; }
  .account-empty { min-height: 420px; padding: 40px 22px; }
}
