:root {
  --cream: #f6f3ec;
  --paper: #fffdf8;
  --line: #e4ddcf;
  --ink: #191510;
  --muted: #857c6b;
  --coral: #6d4df2;
  --coral-soft: #e4dcff;
  --mint: #e8eede;
  --sky: #e5e9ef;
  --gold-grad: linear-gradient(120deg, #8a6cff, #5b3df0 45%, #a48aff 70%, #4c2fd9);
}

:root[data-theme="dark"] {
  --cream: #0e0c0f;
  --paper: #17141a;
  --line: #2a2530;
  --ink: #f3ecdd;
  --muted: #a29884;
  --coral: #9b7dff;
  --coral-soft: #342a63;
  --mint: #1d241a;
  --sky: #1c2129;
}
:root[data-theme="dark"] { --gold-grad: linear-gradient(120deg, #8f74ff, #5b3df0 45%, #b09aff 70%, #5538ec); }

/* Luxury type + sheen */
body { letter-spacing: .1px; }
h1, h2, h3, .logo, .stats strong, .spot-price span, .cart-total strong, .auth-modal h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; letter-spacing: -.5px;
}
.logo { font-style: italic; letter-spacing: -.5px; }
.eyebrow, .p-cat, .stats span { letter-spacing: 3.5px; }
.btn-solid {
  background: var(--gold-grad); color: #fff; letter-spacing: .6px;
  box-shadow: 0 10px 26px -12px rgba(109,77,242,.7);
}
.btn-solid:hover { filter: brightness(1.08); transform: translateY(-2px); background: var(--gold-grad); }
.cart-trigger { background: var(--ink); }
.pill.active, .pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flag-off { background: var(--gold-grad); }
.flag-drop { background: var(--ink); color: var(--paper); }
.contact { background: var(--ink); color: var(--paper); border-radius: 32px; }
.contact .btn-solid { background: var(--gold-grad); color: #fff; }
.contact .btn-solid:hover { filter: brightness(1.1); color: #fff; }
:root[data-theme="dark"] .contact { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .contact input, :root[data-theme="dark"] .contact textarea { background: rgba(0,0,0,.25); }
.p-name { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -.2px; }
:root[data-theme="dark"] body { background: var(--cream); }
body, .nav, .product-card, .cart-drawer, .auth-modal, .auth-tabs { transition: background .3s, color .3s, border-color .3s; }
:root[data-theme="dark"] .nav { background: rgba(18,18,26,.92); }
:root[data-theme="dark"] .product-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.5); }
:root[data-theme="dark"] .flag-ship, :root[data-theme="dark"] .flag-out { background: #262633; }
:root[data-theme="dark"] .p-add, :root[data-theme="dark"] .pill, :root[data-theme="dark"] .auth-btn, :root[data-theme="dark"] .btn-line { border-color: var(--ink); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", sans-serif; color: var(--ink);
  background: var(--cream); overflow-x: hidden;
}
.mono { font-family: "Space Mono", monospace; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { display: block; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,239,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw;
}
.logo { font-weight: 800; font-size: 1.35rem; }
.logo span { color: var(--coral); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 600; }
.nav-links a:hover { color: var(--coral); }
.cart-trigger {
  background: var(--ink); color: var(--cream); border: none;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: .88rem;
}
.cart-trigger:hover { background: var(--coral); }

/* Buttons */
.btn-solid {
  display: inline-block; background: var(--ink); color: var(--cream);
  border: none; border-radius: 999px; font-weight: 700; font-size: .95rem;
  padding: 15px 32px; transition: background .2s, transform .2s;
}
.btn-solid:hover { background: var(--coral); transform: translateY(-2px); }
.btn-line {
  display: inline-block; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); border-radius: 999px; font-weight: 700; font-size: .95rem;
  padding: 15px 32px; transition: all .2s;
}
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-solid.wide { width: 100%; }

/* Hero: split */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4vw;
  align-items: center; padding: 70px 6vw 80px;
}
.eyebrow {
  font-size: .72rem; letter-spacing: 2.5px; color: var(--coral);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 800;
  line-height: 1.02; letter-spacing: -2px;
}
.hero h1 em {
  font-style: normal; position: relative;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; bottom: 8%; width: 100%;
  height: 14px; background: var(--coral-soft); z-index: -1; border-radius: 6px;
}
.hero-sub { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 460px; margin: 26px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-list { list-style: none; display: flex; gap: 26px; margin-top: 40px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: 560px; object-fit: cover; border-radius: 26px;
  box-shadow: 30px 30px 0 var(--coral-soft);
}
.hero-media img.flat { object-fit: fill; background: #f2f0f9; }
.sticker {
  position: absolute; background: var(--ink); color: var(--cream);
  border-radius: 50%; width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; text-align: center; line-height: 1.5;
}
.sticker-a { top: 28px; left: -26px; transform: rotate(-10deg); background: var(--coral); color: #fff; }
.sticker-b { bottom: 40px; right: -22px; transform: rotate(9deg); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats div { background: var(--cream); text-align: center; padding: 30px 10px; }
.stats strong { display: block; font-size: 1.7rem; font-weight: 800; }
.stats span { font-family: "Space Mono", monospace; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* Pill bar */
.pillbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 60px 6vw 10px;
}
.pillbar .lead { font-weight: 800; font-size: 1.4rem; margin-right: 12px; }
.pill {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: .9rem;
  transition: all .2s;
}
.pill:hover, .pill.active { background: var(--ink); color: var(--cream); }

/* Spotlight */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw;
  align-items: center; padding: 80px 6vw 30px;
}
.spot-media img {
  width: 100%; height: 520px; object-fit: cover; border-radius: 26px;
  box-shadow: 24px 24px 0 var(--coral-soft);
}
.spot-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -1px; }
.spot-copy p { color: var(--muted); line-height: 1.75; margin: 18px 0 24px; max-width: 460px; }
.spot-price { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.spot-price span { font-size: 1.5rem; font-weight: 700; }
.spot-price s { color: var(--muted); }
.spot-price b { color: var(--coral); font-size: .85rem; }

/* Shop grid */
.shop { padding: 60px 6vw 0; }
.shop-head { margin-bottom: 34px; }
.shop-head h2 { font-size: 2.2rem; font-weight: 800; }
.shop-head p { color: var(--muted); margin-top: 8px; }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; animation: cardIn .5s ease backwards;
  transition: transform .25s, box-shadow .25s;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; } }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(19,19,19,.09); }
.product-img { position: relative; aspect-ratio: 1/.92; overflow: hidden; }
.product-img:nth-of-type(3n+2) { background: var(--mint); }
.product-img:nth-of-type(3n+3) { background: var(--sky); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.p-flag {
  position: absolute; top: 14px; left: 14px;
  font-family: "Space Mono", monospace; font-size: .6rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px;
  opacity: .92;
}
.flag-off { background: var(--gold-grad); color: #fff; padding: 4px 11px; }
.flag-mint { background: #1a8a4f; color: #fff; padding: 4px 10px; }
.flag-drop { background: var(--ink); color: var(--paper); padding: 4px 10px; }
.flag-ship { background: var(--paper); color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; }
.flag-out { background: var(--paper); color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; }
.badge-row {
  position: absolute; top: 14px; left: 14px; right: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.badge-row .p-flag { position: static; }
.p-img-emoji { font-size: 4rem; }
.product-info { padding: 18px 20px 22px; }
.p-cat { font-family: "Space Mono", monospace; font-size: .68rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.p-name { font-weight: 800; font-size: 1.08rem; margin: 6px 0 8px; }
.p-line { display: flex; align-items: baseline; gap: 10px; }
.p-price { font-weight: 800; font-size: 1.1rem; }
.p-old { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.p-off { color: var(--coral); font-weight: 700; font-size: .78rem; font-family: "Space Mono", monospace; }
.p-add {
  margin-top: 16px; width: 100%;
  background: none; border: 1px solid var(--ink); border-radius: 999px;
  padding: 11px 0; font-weight: 700; font-size: .88rem; color: var(--ink);
  transition: all .2s;
}
.p-add:hover:not(:disabled) { background: var(--coral); border-color: var(--coral); color: #fff; }
.p-add:disabled { opacity: .35; cursor: not-allowed; }

/* Process rows */
.process { padding: 110px 6vw 0; }
.proc-head { margin-bottom: 60px; }
.proc-head h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -1.5px; }
.proc-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 3vw;
  align-items: center; padding: 44px 0; border-top: 1px solid var(--line);
  max-width: 1100px;
}
.proc-row.flip { direction: rtl; }
.proc-row.flip > * { direction: ltr; }
.proc-num {
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 800;
  color: transparent; -webkit-text-stroke: 2px var(--ink); line-height: 1;
}
.proc-row:hover .proc-num { color: var(--coral); -webkit-text-stroke: 2px var(--coral); transition: color .3s; }
.proc-body h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.proc-body p { color: var(--muted); line-height: 1.7; max-width: 540px; }

/* Contact */
.contact {
  margin: 110px 6vw 0; padding: 60px;
  background: var(--ink); color: var(--cream); border-radius: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center;
}
.contact .eyebrow { color: var(--coral); }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -1px; }
.contact form { display: flex; flex-direction: column; gap: 12px; }
.contact input, .contact textarea {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  color: var(--cream); border-radius: 12px; padding: 15px 18px;
  font-family: "Manrope"; font-size: .95rem; resize: vertical;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--coral); }
.contact .btn-solid { background: var(--coral); color: #fff; }
.contact .btn-solid:hover { background: #fff; color: var(--ink); }
.form-note { color: #ffd6cf; font-size: .78rem; min-height: 18px; }

/* Footer */
.footer { padding: 70px 6vw 36px; }
.foot-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.foot-row strong { font-size: 1.4rem; font-weight: 800; }
.foot-links { display: flex; gap: 26px; font-weight: 600; font-size: .92rem; }
.foot-links a:hover { color: var(--coral); }
.footer .mono { margin-top: 24px; font-size: .72rem; color: var(--muted); }

/* Cart */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: -430px; width: 400px; max-width: 94vw; height: 100vh;
  background: var(--paper); z-index: 210; display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.22,1,.36,1); border-left: 1px solid var(--line);
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-header h3 { font-size: 1.2rem; font-weight: 800; }
.cart-header button { background: none; border: none; font-size: 1.1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.cart-item-emoji {
  width: 54px; height: 54px; border-radius: 12px; overflow: hidden;
  background: var(--coral-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .95rem; font-weight: 700; }
.cart-item-info span { font-family: "Space Mono", monospace; font-size: .78rem; color: var(--muted); }
.qty-controls { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.qty-btn {
  width: 25px; height: 25px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 700;
}
.remove-btn { background: none; border: none; color: var(--muted); font-size: .78rem; text-decoration: underline; }
.cart-footer { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total span { color: var(--muted); font-size: .9rem; }
.cart-total strong { font-size: 1.3rem; font-weight: 800; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--ink); color: var(--cream);
  font-size: .88rem; font-weight: 600; padding: 14px 28px; border-radius: 999px;
  z-index: 300; transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .spotlight, .contact { grid-template-columns: 1fr; }
  .hero-media img { height: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .proc-row { grid-template-columns: 90px 1fr; }
  .contact { padding: 40px 26px; }
}

/* Auth */
.auth-btn {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: .88rem;
  transition: background .2s;
}
.auth-btn:hover { background: var(--ink); color: var(--cream); }
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 250;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.auth-overlay.show { opacity: 1; pointer-events: auto; }
.auth-modal {
  background: var(--paper); border-radius: 24px; width: 400px; max-width: 100%;
  padding: 34px; position: relative;
  transform: translateY(24px) scale(.97); transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.auth-overlay.show .auth-modal { transform: none; }
.auth-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 1.1rem; }
.auth-modal h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.auth-note { font-size: .75rem; color: var(--coral); min-height: 16px; margin-bottom: 14px; }
.auth-tabs { display: flex; gap: 6px; background: var(--cream); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.auth-tab.active { background: var(--ink); color: var(--cream); }
#authForm { display: flex; flex-direction: column; gap: 10px; }
#authForm input {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font-family: "Manrope"; font-size: .95rem; background: var(--paper); color: var(--ink);
}
#authForm input:focus { outline: none; border-color: var(--coral); }
.auth-err { color: var(--coral); font-size: .78rem; min-height: 16px; margin: 2px 0 0; }
