@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  /* ── Light (default) ──
     Warm cream, to sit naturally against the product photography,
     which is all shot on cream backgrounds. */
  --c-black: #FAF7F0;        /* page background */
  --c-dark: #F5F0E5;
  --c-surface: #F3EDE2;      /* raised panels */
  --c-surface-2: #EBE4D6;
  --c-surface-3: #DFD6C4;
  --c-border: rgba(90,68,38,0.18);
  --c-border-light: rgba(90,68,38,0.10);
  --c-cream: #1C1813;        /* primary text */
  --c-cream-dim: #5A5147;    /* secondary text */
  --c-sand: #8A6A38;         /* accent — darkened for contrast on cream */
  --c-sand-dark: #6E5228;
  --c-muted: #8B8275;
  --c-on-accent: #FFFBF3;    /* text sitting ON the accent colour */
  --c-nav-bg: rgba(250,247,240,0.94);
  --c-olive: #4D5442;
  --c-olive-light: #6E7A61;
  --c-brown: #7A5C44;
  --c-error: #B03024;
  --c-success: #1E8449;
  --hero-branch-opacity: 0.07;
  --img-dim: 1;              /* product photos need no dimming on cream */

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 72px;
  --max-w: 1280px;
  --gutter: 48px;
}

:root[data-theme="dark"] {
  --c-black: #0A0908;
  --c-dark: #111009;
  --c-surface: #171512;
  --c-surface-2: #211E1A;
  --c-surface-3: #2C2822;
  --c-border: rgba(196,168,130,0.1);
  --c-border-light: rgba(196,168,130,0.06);
  --c-cream: #F0E8DC;
  --c-cream-dim: #B8ADA0;
  --c-sand: #C4A882;
  --c-sand-dark: #9E7E5A;
  --c-muted: #5E5850;
  --c-on-accent: #0A0908;
  --c-nav-bg: rgba(10,9,8,0.94);
  --c-olive-light: #7D8A6F;
  --c-error: #C0392B;
  --c-success: #27AE60;
  --hero-branch-opacity: 0.04;
  --img-dim: 0.88;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-black);
  color: var(--c-cream);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── Typography helpers ── */
.t-display {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.t-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.t-body { font-size: 14px; line-height: 1.75; color: var(--c-cream-dim); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.28s var(--ease), color 0.28s, border-color 0.28s, transform 0.18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--c-sand); color: var(--c-on-accent); border-color: var(--c-sand); }
.btn-primary:hover { background: var(--c-cream); border-color: var(--c-cream); }

.btn-outline { background: transparent; color: var(--c-cream); border-color: var(--c-border); }
.btn-outline:hover { background: var(--c-cream); color: var(--c-black); border-color: var(--c-cream); }

.btn-dark { background: var(--c-surface-2); color: var(--c-cream); border-color: var(--c-border); }
.btn-dark:hover { background: var(--c-surface-3); }

.btn-sm { padding: 10px 22px; font-size: 10px; }
.btn-full { width: 100%; }

.btn-danger { background: transparent; color: var(--c-error); border-color: var(--c-error); }
.btn-danger:hover { background: var(--c-error); color: #fff; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--c-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--c-border-light);
}
.nav__logo {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-cream);
  flex-shrink: 0;
}
.nav__logo .accent { color: var(--c-sand); }
.nav__links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav__links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-cream-dim);
  position: relative;
  transition: color 0.22s;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--c-sand);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--c-cream); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; gap: 18px; align-items: center; }
.nav__cart-btn {
  position: relative;
  padding: 6px;
  color: var(--c-cream-dim);
  transition: color 0.22s;
  line-height: 0;
}
.nav__cart-btn:hover { color: var(--c-sand); }
.nav__cart-count {
  position: absolute;
  top: -2px; right: -4px;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--c-sand);
  color: var(--c-on-accent);
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  transition: transform 0.3s var(--ease-spring);
}
.nav__cart-count.bump { transform: scale(1.4); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  height: 1px;
  background: var(--c-cream);
  transition: all 0.3s var(--ease);
  transform-origin: left center;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(38deg) translateY(-1px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-38deg) translateY(1px); }

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px var(--gutter);
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.mobile-drawer a {
  font-family: var(--ff-display);
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--c-cream-dim);
  transition: color 0.2s;
  padding: 6px 0;
}
.mobile-drawer a:hover { color: var(--c-sand); }
.mobile-drawer__sub {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--c-border);
  padding-top: 28px;
  width: 100%;
}
.mobile-drawer__sub a {
  font-family: var(--ff-body) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
  padding: 13px 0;
  background: var(--c-surface);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track span {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding-right: 60px;
}
.marquee-track span em {
  color: var(--c-sand);
  font-style: normal;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ── Product card ── */
.product-card {
  display: block;
  cursor: pointer;
}
.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--c-surface-2);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img {
  width: 100%;
  height: 100%;
  /* contain, not cover: product photography here is landscape flat-lays, and
     cropping them to a portrait card cut the garment in half. An image already
     cropped to the card's shape fills it exactly, so this is correct either way. */
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--c-sand);
  color: var(--c-on-accent);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.product-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(10,9,8,0.85));
  transform: translateY(100%);
  transition: transform 0.34s var(--ease);
}
.product-card:hover .product-card__overlay { transform: none; }
.product-card__quick {
  width: 100%;
  padding: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--c-cream);
  color: var(--c-black);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.product-card__quick:hover { background: var(--c-sand); }
.product-card__info { padding: 16px 0 0; }
.product-card__collection {
  color: var(--c-muted);
  margin-bottom: 4px;
}
.product-card__name {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--c-cream);
  margin-bottom: 6px;
}
.product-card__price {
  font-size: 13px;
  color: var(--c-sand);
  font-weight: 400;
}

/* ── Page header ── */
.page-header {
  padding: calc(var(--nav-h) + 60px) var(--gutter) 60px;
  border-bottom: 1px solid var(--c-border-light);
}
.page-header__eyebrow {
  color: var(--c-sand);
  margin-bottom: 14px;
}
.page-header__title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.page-header__title em { font-style: italic; color: var(--c-cream-dim); }

/* ── Form styles ── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-cream-dim);
  margin-bottom: 10px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-cream);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.22s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-sand);
}
.form-input::placeholder { color: var(--c-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  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' stroke='%23C4A882' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option { background: var(--c-surface-2); color: var(--c-cream); }
.form-error { font-size: 12px; color: var(--c-error); margin-top: 6px; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--c-sand);
  color: var(--c-on-accent);
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  z-index: 500;
  transition: transform 0.4s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 100px 24px;
}
.empty-state__icon { font-size: 40px; margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 10px;
}
.empty-state p { color: var(--c-muted); font-size: 14px; margin-bottom: 28px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--c-border-light); margin: 0; }

/* ── Section ── */
.section { padding: 100px var(--gutter); }
.section--sm { padding: 60px var(--gutter); }
.section__header { margin-bottom: 60px; }
.section__eyebrow { color: var(--c-sand); margin-bottom: 14px; }
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section__title em { font-style: italic; color: var(--c-cream-dim); }

/* ── Products grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border-light);
}

/* ── Footer ── */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-light);
  padding: 72px var(--gutter) 36px;
}
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto 56px;
}
.footer__logo {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--c-cream);
  margin-bottom: 14px;
}
.footer__logo .accent { color: var(--c-sand); }
.footer__tagline {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: border-color 0.22s, color 0.22s;
}
.footer__social a:hover { border-color: var(--c-sand); color: var(--c-sand); }

.footer__col h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-sand);
  margin-bottom: 20px;
}
.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--c-cream); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-light);
  font-size: 11.5px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px var(--gutter); }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .footer__main { grid-template-columns: 1fr; }
  .footer { padding: 48px var(--gutter) 28px; }
}


/* ── Theme toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  color: var(--c-cream-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.22s;
}
.theme-toggle:hover { color: var(--c-sand); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
