:root {
  /* Palette taken from the real Elite site (site/app/globals.css) so the demo
     matches the live brand exactly rather than approximating it. */
  --ink: #24201d;
  --paper: #f5f1e9;
  --putty: #d8cfc4;
  --cream: #fffaf5;
  --card: #ffffff;
  --line: rgba(36, 32, 29, .14);
  --muted: #6d635c;
  --red: #c92532;
  --mauve: #b99aa3;
  --mauve-btn: #9c707b;
  --mauve-btn-hover: #865d68;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Preview banner — makes clear this is a demo, not the live store */
.demo-banner {
  padding: 9px max(4vw, 24px);
  display: flex;
  align-items: center;
  gap: 13px;
  background: #241d1b;
  color: #f2e8e9;
}
.demo-banner span {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--mauve);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.demo-banner p { margin: 0; font-size: 12.5px; color: rgba(242, 232, 233, .8); }

/* ---------- nav ---------- */
.site-nav {
  padding: 18px max(4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand b { font: 400 30px/1 var(--serif); letter-spacing: .1em; }
.brand i { width: 1px; height: 30px; background: var(--line); }
.brand small { font-size: 9.5px; line-height: 1.35; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.site-nav nav { display: flex; gap: 26px; }
.site-nav nav a {
  position: relative;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .8;
}
.site-nav nav a:hover { opacity: 1; }
.site-nav nav a.is-active { opacity: 1; }
.nav-cta {
  padding: 14px 26px;
  border: 1px solid #86606a;
  border-radius: 2px;
  background: var(--mauve-btn);
  color: var(--cream);
  font: 700 10.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
.nav-cta:hover { background: var(--mauve-btn-hover); }

/* ---------- collection header ---------- */
.collection-head { padding: clamp(34px, 5vw, 64px) max(4vw, 24px) clamp(20px, 3vw, 34px); }
.collection-head h1 {
  margin: 0;
  font: 400 clamp(46px, 6vw, 82px)/1 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.collection-sub {
  margin: 14px 0 0;
  padding-top: 16px;
  max-width: 460px;
  border-top: 2px solid var(--red);
  font: 400 clamp(21px, 2.2vw, 30px)/1.2 var(--serif);
}
.collection-sub em { font-style: italic; }
.collection-copy { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- category tabs ---------- */
.category-tabs {
  padding: 0 max(4vw, 24px);
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button {
  padding: 20px 30px;
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease;
}
.category-tabs button small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
}
.category-tabs button:hover { background: rgba(155, 111, 122, .08); }
.category-tabs button.is-active { background: rgba(155, 111, 122, .16); }
.category-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--red);
}

/* ---------- catalogue grid ---------- */
.catalogue {
  padding: clamp(22px, 3vw, 34px) max(4vw, 24px) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(35, 25, 22, .12);
}
.product-card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #e9e2da; }
.product-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-card-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.product-card h3 { margin: 0; font: 400 25px/1.15 var(--serif); }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; }
.product-card-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 500;
}
.product-card-foot span { font-size: 16px; }

/* ---------- custom bar ---------- */
.custom-bar {
  padding: 22px max(4vw, 24px);
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(105deg, #8b5966, #a66f7c 48%, #72535a);
  color: #fff;
}
.custom-bar-icon { font-size: 22px; opacity: .9; }
.custom-bar p { flex: 1; margin: 0; font: 400 clamp(20px, 2.2vw, 28px)/1.2 var(--serif); font-style: italic; }
.custom-bar button {
  border-radius: 2px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: transparent;
  color: #fff;
  font: 600 11px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
.custom-bar button:hover { background: rgba(255, 255, 255, .16); }

/* ---------- drawer ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 20, 18, .42);
  backdrop-filter: blur(2px);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(560px, 94vw);
  height: 100dvh;
  overflow-y: auto;
  background: #faf7f2;
  box-shadow: -30px 0 80px rgba(28, 20, 18, .28);
  animation: slideIn .3s cubic-bezier(.22, .68, .36, 1);
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

.drawer-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease;
}
.drawer-close:hover { background: #fff; }

.drawer-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, #f7f2ec, #efe8df);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.drawer-stage.is-dragging { cursor: grabbing; }
.drawer-stage img,
.drawer-stage video {
  width: 84%;
  max-height: 82%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* The spin film sits in the same grid cell as the still, so swapping between
   them never shifts the layout. */
.drawer-stage img, .drawer-stage video { grid-area: 1 / 1; }
.drawer-stage video[hidden], .drawer-stage img[hidden] { display: none; }
.drawer-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.drawer-loading i {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(28, 25, 23, .16);
  border-top-color: var(--mauve-btn);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spin-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 99px;
  background: rgba(28, 20, 18, .58);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  transition: opacity .3s ease;
}
.spin-hint.is-hidden { opacity: 0; }

.drawer-body { padding: 30px 34px 44px; }
.drawer-body h2 { margin: 0; font: 400 clamp(32px, 3.4vw, 44px)/1.05 var(--serif); text-transform: uppercase; letter-spacing: .03em; }
.drawer-made {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--red);
  display: inline-block;
  color: var(--red);
  font: 400 19px/1.2 var(--serif);
}
.drawer-copy { margin: 14px 0 0; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.65; }

.drawer-option { margin-top: 28px; }
.drawer-option-head { margin-bottom: 13px; display: flex; align-items: baseline; gap: 10px; }
.drawer-option-head span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.drawer-option-head b { font: 400 16px/1 var(--serif); }

.swatch-row { display: flex; gap: 14px; }
.swatch-row button {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.swatch-row button:hover { transform: scale(1.06); }
.swatch-row button.is-active { box-shadow: 0 0 0 2px #faf7f2, 0 0 0 4px var(--red); }

.size-row { display: flex; gap: 10px; }
.size-row button {
  border-radius: 2px;
  min-width: 130px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.size-row button:hover { border-color: rgba(28, 25, 23, .34); }
.size-row button.is-active { border-color: transparent; background: rgba(155, 111, 122, .2); }

.drawer-actions { margin-top: 30px; display: grid; gap: 11px; }
.drawer-primary, .drawer-secondary {
  border-radius: 2px;
  min-height: 58px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.drawer-primary { border: 0; background: var(--red); color: #fff; transition: background .18s ease; }
.drawer-primary:hover { background: #ab1b26; }
.drawer-secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); transition: border-color .18s ease; }
.drawer-secondary:hover { border-color: rgba(28, 25, 23, .34); }

.drawer-stripe { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.drawer-stripe b { color: var(--ink); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(28, 20, 18, .3);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .site-nav nav { display: none; }
}
@media (max-width: 720px) {
  .demo-banner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav { flex-wrap: wrap; gap: 14px; }
  .nav-cta { width: 100%; }
  .custom-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .custom-bar button { width: 100%; justify-content: center; }
  .drawer-body { padding: 24px 22px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- cart ---------- */
.nav-cart {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 700 10.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease;
}
.nav-cart:hover { border-color: rgba(36, 32, 29, .34); }
.nav-cart i {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--red);
  color: var(--cream);
  font-style: normal;
  font-size: 10px;
}

.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 20, 18, .42);
  backdrop-filter: blur(2px);
  animation: fade .25s ease;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  width: min(440px, 94vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #faf7f2;
  box-shadow: -30px 0 80px rgba(28, 20, 18, .3);
  animation: slideIn .3s cubic-bezier(.22, .68, .36, 1);
}
.cart-head {
  padding: 26px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font: 400 30px/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.cart-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 32, 29, .06);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}
.cart-close:hover { background: rgba(36, 32, 29, .12); }

.cart-items { flex: 1; padding: 18px 26px; overflow-y: auto; }
.cart-empty { margin: 40px 0; color: var(--muted); font-size: 14px; text-align: center; }
.cart-line { padding: 16px 0; display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; background: var(--putty); }
.cart-line-info { display: grid; gap: 4px; align-content: start; }
.cart-line-info b { font: 400 17px/1.2 var(--serif); }
.cart-line-info small { color: var(--muted); font-size: 11.5px; }
.cart-line-remove {
  margin-top: 4px;
  padding: 0;
  justify-self: start;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-line-remove:hover { color: var(--red); }
.cart-line-right { display: grid; gap: 8px; justify-items: end; align-content: start; }
.cart-line-right b { font-size: 14px; font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 2px; }
.cart-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.cart-qty button:hover { background: rgba(36, 32, 29, .07); }
.cart-qty span { min-width: 24px; font-size: 12px; font-weight: 600; text-align: center; }

.cart-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; }
.cart-subtotal span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cart-subtotal b { font: 400 28px/1 var(--serif); }
.cart-note { margin: 10px 0 16px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.cart-checkout {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 2px;
  background: var(--red);
  color: var(--cream);
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
.cart-checkout:hover { background: #ab1b26; }

@media (max-width: 720px) {
  .nav-cart { order: 2; }
}
