/* ==========================================================================
   Lettmedia — split theme
   Desktop: <main> carries a half-white / half-black background. Each `.dual`
   block is full-width and centred, and paints its text with the inverse
   gradient (background-clip: text), so glyphs are black over the white half
   and white over the black half — even when one word crosses the centre.
   Mobile: the split becomes alternating light/dark sections with diagonal
   edges; `.m-light` / `.m-dark` set the ink colour per section.
   Anything with its own colour (buttons, tags) simply keeps it.
   ========================================================================== */

:root {
  --white: #ffffff;
  --black: #0e0e0f;
  --charcoal: #1a1a1c;
  --line: #2c2c30;
  --pink-1: #dca1e5;
  --pink-2: #c37bc5;
  --chrome: linear-gradient(135deg, #f4d9f7 0%, #dca1e5 30%, #c37bc5 62%, #ecc6f0 82%, #c37bc5 100%);
  --glow: 0 0 0 1px rgba(220, 161, 229, .55), 0 30px 80px -30px rgba(195, 123, 197, .65);

  --f-display: "Special Gothic Expanded One", "Arial Black", sans-serif;
  --f-label: "Syncopate", "Arial", sans-serif;
  --f-body: "Sora", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Split background & adaptive ink ---------- */

.split { background: linear-gradient(90deg, var(--white) 50%, var(--black) 50%); }

.dual {
  background-image: linear-gradient(90deg, var(--black) 50%, #fff 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.display {
  margin: 0 0 1.25rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 400;
}

/* ---------- Buttons & tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}

.btn--chrome {
  background: var(--chrome);
  background-size: 160% 160%;
  color: var(--black);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 10px 28px -10px rgba(195, 123, 197, .85);
}
.btn--chrome:hover:not(:disabled) {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 16px 34px -10px rgba(195, 123, 197, 1);
}
.btn--chrome:disabled { filter: grayscale(.8) brightness(.8); cursor: not-allowed; }

/* Ghost button has no colour of its own: its label takes the split ink */
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--pink-2);
}
.btn--ghost:hover { background: var(--chrome); color: var(--black); }

.btn--line {
  background: transparent;
  border: 1.5px solid var(--pink-1);
  color: inherit;
}
.btn--line:hover { background: rgba(220, 161, 229, .15); }

.btn--sm { padding: .75rem 1.15rem; font-size: .64rem; }
.btn--block { width: 100%; }

.tag {
  display: inline-block;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: var(--pink-1);
  color: var(--black);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tag--ship { background: var(--chrome); }
.tag--outline { background: var(--black); color: #fff; box-shadow: inset 0 0 0 1px var(--pink-1); }
.ship-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.4rem 0 0; }
@media (max-width: 760px) { .ship-tags { margin-bottom: 2.5rem; } }
.ship-info { margin: 0; font-size: .78rem; line-height: 1.6; color: #aaa; }
.ship-info .tag { margin-right: .35rem; vertical-align: 1px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.icon-btn:hover { border-color: var(--pink-1); color: var(--pink-1); }

:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 3px; }

/* ---------- Navigation ---------- */

.nav-ink {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 calc(var(--gutter) + 150px) 0 var(--gutter);
  box-shadow: inset 0 -1px 0 rgba(195, 123, 197, .35);
  /* Two layers: inverse gradient clipped to the text, solid split bar behind it */
  background-image:
    linear-gradient(90deg, var(--black) 50%, #fff 50%),
    linear-gradient(90deg, var(--white) 50%, var(--black) 50%);
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
}
.nav-logo img { height: 30px; width: auto; filter: invert(1); }
.nav-ink ul { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-ink a {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-ink a:hover { text-decoration: underline; text-underline-offset: 6px; }

.cart-fab {
  position: fixed;
  top: 14px;
  right: var(--gutter);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 44px;
  padding: 0 .55rem 0 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--chrome);
  color: var(--black);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 8px 26px -10px rgba(195, 123, 197, .9);
  transition: transform .2s ease;
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--pink-1);
  font-size: .7rem;
  letter-spacing: 0;
}
.cart-fab.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

@media (max-width: 760px) {
  .nav-ink { padding-right: var(--gutter); }
  .nav-ink ul { display: none; }
  .cart-fab span:not(.cart-count) { display: none; }
  .cart-fab { padding-left: .85rem; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: 120px var(--gutter) 60px;
  text-align: center;
}
.hero-title {
  margin: 0 0 2.5rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 7.4vw, 7rem);
  line-height: .98;
  text-transform: uppercase;
}
/* Two equal columns keep the gap exactly on the centre line */
.hero-sub { max-width: 46ch; margin: -1.2rem auto 2.5rem; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.5; text-wrap: balance; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: min(100%, 520px); }
.hero-actions .btn:first-child { justify-self: end; }
.hero-actions .btn:last-child { justify-self: start; }
.hero-scroll {
  margin: 4rem 0 0;
  font-family: var(--f-label);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 1.5rem 0 3rem;
}
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track img {
  height: clamp(170px, 22vw, 260px);
  width: auto;
  border-radius: 10px;
  box-shadow: var(--glow);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

section { position: relative; }

.section-head {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.store { padding: clamp(60px, 10vw, 140px) 0 40px; }
.store-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }
.tab {
  padding: .8rem 1.4rem;
  border: 1px solid var(--pink-1);
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab:hover { border-color: var(--pink-2); color: var(--pink-1); }
.tab[aria-selected="true"] { background: var(--chrome); border-color: transparent; color: var(--black); }
.tab:focus-visible { outline: 2px solid var(--pink-1); outline-offset: 3px; }
.store-panel > .section-head { margin-top: clamp(30px, 5vw, 60px); }
.store-panel .teasers { margin-bottom: clamp(50px, 8vw, 100px); }
.designs { padding: clamp(60px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
  max-width: 1200px;
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding: 0 var(--gutter);
}
.design-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--glow);
  background: var(--black);
}
.design-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.design-tile:hover img, .design-tile:focus-visible img { transform: scale(1.04); }
.design-tile:focus-visible { outline: 2px solid var(--pink-1); outline-offset: 3px; }
.design-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--chrome);
  color: var(--black);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .56rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.design-cta { margin: clamp(30px, 4vw, 50px) 0 0; text-align: center; }
@media (max-width: 760px) {
  .design-grid { grid-template-columns: repeat(2, 1fr); }
  .design-label { left: 8px; bottom: 8px; padding: .3rem .55rem; font-size: .5rem; letter-spacing: .08em; white-space: nowrap; }
}

/* Product rows: each half lines up with a half of the background */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(50px, 8vw, 120px) 0;
}
.product .half { padding: 0 var(--gutter); }
.product:nth-child(even) .half--media { order: 2; }

.half--text { max-width: 620px; }
.product:nth-child(odd) .half--text { justify-self: start; }
.product:nth-child(even) .half--text { justify-self: end; }

.poster-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--glow);
}
.poster-frame img { width: 100%; }

.product-main {
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}
.product-main img { width: 100%; height: 100%; object-fit: cover; }

.thumbs {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
}
.thumbs button {
  width: 64px;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.thumbs button:hover, .thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--pink-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.opts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; border: 0; }
/* Legends ignore the split-colour text trick, so the label is for screen readers only */
.opts legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border: 1px solid var(--pink-2);
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: .8rem;
}
.opt i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.opt input:checked + span { background: var(--chrome); border-color: transparent; color: var(--black); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--pink-1); outline-offset: 2px; }
.order-fields { display: grid; gap: 1.4rem; }
.gift-colours { display: flex; flex-wrap: wrap; gap: .5rem; }
.gift-includes { margin: 0; font-size: .82rem; color: var(--pink-1); }
.teaser-link { display: inline-block; margin-top: .8rem; font-family: var(--f-label); font-weight: 700; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-1); }
.ready-note { margin: 1rem 0 0; max-width: 34ch; font-size: .8rem; line-height: 1.6; }

.style-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .8;
  opacity: 1;
}
.product h3 {
  margin: .4rem 0 1rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.price {
  margin: 0 0 1.6rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(60px, 10vw, 140px) 0;
}
.about .half { padding: 0 var(--gutter); }
.about .half--media { display: grid; place-items: center; }
.poster-frame--tilt { max-width: 440px; rotate: -2deg; }
.mini-shot {
  width: 140px;
  margin: 2rem 0 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--glow);
  rotate: 3deg;
}

/* Vision */
.vision { padding: clamp(60px, 10vw, 140px) 0; }
.vision-gallery {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: clamp(14px, 2.5vw, 36px);
  max-width: 1280px;
  margin: clamp(40px, 6vw, 80px) auto;
  padding: 0 var(--gutter);
}
.explore {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.explore h3 {
  margin: 0 0 .75rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.explore .btn { margin-top: 1rem; }

/* Workshop Backstage */
.backstage {
  isolation: isolate;
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px dashed var(--pink-2);
  border-bottom: 1px dashed var(--pink-2);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(220, 161, 229, .22), transparent 70%),
    repeating-linear-gradient(45deg, rgba(195, 123, 197, .09) 0 2px, transparent 2px 14px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.teasers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 900px;
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding: 0 var(--gutter);
}
.teaser {
  padding: 2rem 1.6rem;
  border: 2px dashed var(--pink-2);
  border-radius: var(--radius);
}
.teaser-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
  fill: none;
  stroke: var(--pink-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teaser h3 {
  margin: 1rem 0 .5rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.teaser p { margin: 0; font-size: .95rem; }

/* Contact & footer */
.contact {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 60px;
  text-align: center;
}
.contact .display { font-size: clamp(1.8rem, 4.4vw, 3.6rem); }

.footer {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  padding: 50px var(--gutter) 40px;
  text-align: center;
}
/* Logo drawn through a mask so it can take the split gradient like text */
.footer-logo {
  display: block;
  width: 180px;
  aspect-ratio: 2491 / 816;
  background: linear-gradient(90deg, var(--black) 50%, #fff 50%);
  -webkit-mask: url("assets/img/header.png") center / contain no-repeat;
  mask: url("assets/img/header.png") center / contain no-repeat;
}
.footer-links { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-copy { margin: 0; font-size: .75rem; }

/* ---------- Mobile layout ---------- */

@media (max-width: 860px) {
  .split { background: var(--black); }

  /* Alternating sections replace the vertical split */
  .dual { background-image: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }
  .m-light { --ink: var(--black); background-color: var(--white); }
  .m-dark { --ink: #fff; background-color: var(--black); }
  .m-light, .m-dark { color: var(--ink); }
  /* Diagonal seams: each section overlaps the previous one with a slanted edge */
  .hero ~ .m-light, .hero ~ .m-dark,
  .product {
    margin-top: -8vw;
    padding-top: calc(8vw + 48px);
    clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%);
  }
  .marquee { padding-bottom: 12vw; }
  .store { padding-bottom: 0; }
  .footer-logo { background: #fff; }

  .nav-ink { background: var(--black); color: #fff; }
  .nav-logo img { filter: none; }

  .product, .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .product:nth-child(even) .half--media { order: 0; }
  .product .half--text, .about .half--text { justify-self: stretch; max-width: none; }
  .vision-gallery { grid-template-columns: 1fr 1fr; }
  .vision-gallery .poster-frame--wide { grid-column: 1 / -1; order: -1; }
  .teasers { grid-template-columns: 1fr; }
  .style-num { font-size: 4rem; }
}

/* ---------- Overlay, modal ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(14, 14, 15, .72);
  backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: min(1020px, 94vw);
  max-height: 92svh;
  overflow: auto;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--pink-2), 0 40px 120px -20px rgba(195, 123, 197, .55);
  transform: translate(-50%, -50%);
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }

.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; color: #fff; }

.modal-left {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  color: var(--black);
}
.modal-right {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(24px, 4vw, 44px);
  padding-top: clamp(70px, 8vw, 90px);
  background: var(--black);
  color: #fff;
}
.modal-kicker {
  margin: 0;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pink-2);
}
.modal-title {
  margin: .3rem 0 1.3rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 2px dashed var(--pink-2);
  border-radius: var(--radius);
  background: #faf6fb;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.dropzone:hover, .dropzone.is-drag { background: #f5e6f8; border-color: var(--black); }
.dropzone-empty {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: 1.5rem;
  text-align: center;
}
.dropzone-empty svg { width: 42px; height: 42px; fill: none; stroke: var(--pink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-empty strong { font-weight: 600; }
.dropzone-empty span { font-size: .85rem; color: #555; }
.photo-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .8rem; }
.photo-item { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #111; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item.is-low { box-shadow: 0 0 0 2px var(--pink-2); }
.photo-flag { position: absolute; left: 4px; bottom: 4px; padding: .1rem .4rem; border-radius: 999px; background: var(--pink-1); color: var(--black); font-size: .6rem; font-weight: 700; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(14, 14, 15, .8); color: #fff; font-size: .7rem; line-height: 24px; cursor: pointer; }
.photo-remove:hover { background: var(--pink-2); }
.file-meta { min-height: 1.4em; margin: .8rem 0 0; font-size: .8rem; color: #555; }
.file-meta.ok::before { content: "✓ "; color: #2f8a4a; font-weight: 700; }
.file-meta.low { color: #8e3f91; font-weight: 600; }

.quality-alert {
  margin-top: 1rem;
  padding: 1.3rem 1.3rem 1.2rem;
  border-radius: 16px;
  background: var(--black);
  color: #fff;
  box-shadow: 0 0 0 1.5px var(--pink-1), 0 18px 50px -12px rgba(195, 123, 197, .8);
  animation: alert-in .3s ease;
}
@keyframes alert-in { from { opacity: 0; transform: translateY(8px); } }
.quality-alert p { margin: 0 0 .7rem; font-size: .9rem; }
.qa-title {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .78rem !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qa-stats { color: var(--pink-1); font-size: .78rem !important; }
.qa-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.sizes { margin: 0; padding: 0; border: 0; }
.sizes legend, .field > span {
  margin-bottom: .7rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.field em { font-style: normal; color: #999; letter-spacing: .1em; }
.size-options { display: grid; gap: .6rem; }
.size-option { position: relative; }
.size-option input { position: absolute; opacity: 0; }
.size-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.size-option label small { color: #aaa; font-size: .78rem; }
.size-option label:hover { border-color: var(--pink-2); }
.size-option input:checked + label { border-color: var(--pink-1); background: rgba(220, 161, 229, .12); }
.size-option input:checked + label strong { color: var(--pink-1); }
.frame-option label strong:first-child::before { content: "+ "; color: var(--pink-1); }
.frame-option input:checked + label strong:first-child::before { content: "✓ "; }
.size-option input:focus-visible + label { outline: 2px solid var(--pink-2); outline-offset: 2px; }

.field { display: grid; }
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--charcoal);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--pink-1); }
.field select, .field input[type=text] {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--charcoal);
  color: #fff;
  font: inherit;
  font-size: .9rem;
}
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23DCA1E5' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select:focus, .field input[type=text]:focus { outline: none; border-color: var(--pink-1); }

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-label);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.order-total strong { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0; color: var(--pink-1); }
.hint { margin: -.6rem 0 0; font-size: .78rem; color: #aaa; text-align: center; }
.hint a { color: var(--pink-1); }

@media (max-width: 760px) {
  .modal {
    top: auto;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 94svh;
    border-radius: 22px 22px 0 0;
    transform: none;
    animation: sheet .3s ease;
  }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .modal-close { color: var(--black); }
  .modal-right { padding-top: 28px; }
  .dropzone, .dropzone-preview { min-height: 220px; height: 220px; }
}

/* ---------- Cart drawer ---------- */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  background: var(--black);
  color: #fff;
  box-shadow: -1px 0 0 var(--pink-2), -40px 0 100px -30px rgba(195, 123, 197, .45);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.4rem;
  text-transform: uppercase;
}
.cart-items { flex: 1; overflow: auto; margin: 0; padding: 8px 24px; list-style: none; }
.cart-empty { flex: 1; margin: 0; padding: 40px 24px; color: #aaa; text-align: center; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--pink-2); }
.cart-item h3 { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.cart-item .meta { margin: .25rem 0 .6rem; font-size: .8rem; color: #aaa; }
.cart-item .flag {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(220, 161, 229, .14);
  color: var(--pink-1);
  font-size: .68rem;
}
.cart-item .price-col { display: grid; justify-items: end; align-content: space-between; }
.cart-item .line-price { font-family: var(--f-display); color: var(--pink-1); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; color: #fff; }
.qty button:hover { color: var(--pink-1); }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; }
.remove { border: 0; background: none; color: #888; font-size: .75rem; text-decoration: underline; }
.remove:hover { color: var(--pink-1); }

.drawer-foot { display: grid; gap: 1.1rem; padding: 18px 24px 26px; border-top: 1px solid var(--line); }
.drawer-foot .hint { margin: 0; }
.delivery { display: grid; gap: .9rem; }
.delivery .field > span { margin-bottom: .5rem; }
.delivery .hint { text-align: left; }
.totals { display: grid; gap: .35rem; margin: 0; font-size: .85rem; color: #aaa; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; color: #fff; }
.free-note { margin: -.4rem 0 0; color: var(--pink-1); font-size: .8rem; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  background: var(--chrome);
  color: var(--black);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px -12px rgba(195, 123, 197, .9);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.drawer-foot .order-total { padding-top: 0; border-top: 0; }

/* ---------- Legal pages ---------- */

.legal-page { background: var(--white); color: var(--black); }

.legal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px var(--gutter);
  background: var(--black);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(195, 123, 197, .35);
}
.legal-logo img { display: block; height: 28px; width: auto; }
.legal-back {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.legal-back:hover { color: var(--pink-1); }

.legal {
  width: min(100% - 2 * var(--gutter), 760px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 64px;
}
.legal h1 {
  margin: 0 0 .5rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
}
.legal h2 {
  margin: 3rem 0 .8rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.25rem;
}
.legal section { scroll-margin-top: 90px; }
.legal p, .legal li { font-size: .98rem; }
.legal a { color: var(--pink-2); text-underline-offset: 3px; }
.legal-meta { margin: 0 0 2rem; font-size: .8rem; opacity: .65; }

.legal-toc {
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  background: #f6f1f7;
  border: 1px solid rgba(195, 123, 197, .35);
}
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.legal-toc li { font-size: .88rem; break-inside: avoid; }
.legal-toc a { color: inherit; text-decoration: none; }
.legal-toc a:hover { color: var(--pink-2); text-decoration: underline; }

.legal-card {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .4rem 1.4rem;
  margin: 1rem 0;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
}
.legal-card dt {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-top: .3rem;
  color: var(--pink-1);
}
.legal-card dd { margin: 0; }
.legal-card a { color: #fff; }

mark.todo {
  padding: 0 .3em;
  border-radius: 4px;
  background: rgba(220, 161, 229, .45);
  color: inherit;
}

.legal-foot {
  padding: 32px var(--gutter);
  background: var(--black);
  color: #fff;
  text-align: center;
  font-size: .78rem;
}
.legal-foot a { color: inherit; }

.footer-legal { margin: 0; font-size: .72rem; }
.footer-legal a { color: inherit; text-underline-offset: 4px; }

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
  .legal-card { grid-template-columns: 1fr; gap: .1rem; }
  .legal-card dd { margin-bottom: .6rem; }
}
