:root {
  --htd-bg: #f3ede4;
  --htd-bg-alt: #eae0cf;
  --htd-card: #fbf8f2;
  --htd-ink: #1b1815;
  --htd-ink-soft: rgba(27, 24, 21, 0.66);
  --htd-ink-mute: rgba(27, 24, 21, 0.42);
  --htd-accent: #c9402a;
  --htd-line: rgba(27, 24, 21, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--htd-bg);
  color: var(--htd-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .htd-logo { font-family: "Playfair Display", Georgia, serif; font-weight: 600; }

.htd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.htd-back {
  /* Fixed to the bottom, not the top — the top is already busy with this
     demo's own announcement bar + sticky header, at every viewport size. */
  position: fixed; bottom: 16px; left: 16px; z-index: 100;
  background: var(--htd-ink); color: var(--htd-bg);
  font-family: "Inter", sans-serif; font-size: 0.78rem; font-weight: 600;
  text-decoration: none; padding: 0.55rem 0.95rem; border-radius: 999px;
  opacity: 0.88; transition: opacity 0.15s ease;
  box-shadow: 0 8px 24px rgba(27,24,21,0.25);
}
.htd-back:hover { opacity: 1; }

.htd-announce {
  background: var(--htd-ink); color: var(--htd-bg);
  text-align: center; font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}

.htd-header { position: sticky; top: 0; z-index: 40; background: var(--htd-bg); border-bottom: 1px solid var(--htd-line); }
.htd-header-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 1rem;
}
.htd-logo { font-size: 1.3rem; letter-spacing: 0.01em; text-decoration: none; color: var(--htd-ink); text-align: center; white-space: nowrap; }
.htd-nav { display: flex; gap: 1.75rem; }
.htd-nav a { font-size: 0.86rem; text-decoration: none; color: var(--htd-ink-soft); transition: color 0.15s ease; }
.htd-nav a:hover { color: var(--htd-ink); }
.htd-header-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }
.htd-icon-btn { background: none; border: none; color: var(--htd-ink); cursor: pointer; padding: 0.3rem; }
.htd-menu-btn { display: none; }

.htd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.8rem; font-family: "Inter", sans-serif; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  letter-spacing: 0.01em; transition: transform 0.15s ease, background 0.15s ease;
}
.htd-btn-dark { background: var(--htd-ink); color: var(--htd-bg); }
.htd-btn-dark:hover { background: var(--htd-accent); }
.htd-btn-light { background: var(--htd-bg); color: var(--htd-ink); }
.htd-btn-light:hover { background: var(--htd-accent); color: #fff; }

.htd-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--htd-accent); margin-bottom: 1rem;
}

/* ---------- Hero ---------- */
.htd-hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.htd-hero-visual {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(120deg, #e9ddc8 0%, #d9b79a 45%, var(--htd-accent) 125%);
}
.htd-hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 85%, rgba(27,24,21,0.18), transparent 50%);
}
.htd-hero-content { position: relative; z-index: 1; max-width: 640px; }
.htd-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.98; margin: 0 0 1.3rem; color: var(--htd-ink); }
.htd-hero p { font-size: 1.1rem; color: rgba(27,24,21,0.72); max-width: 420px; margin: 0 0 2rem; }

/* ---------- Categories ---------- */
.htd-categories { padding: 4rem 0; }
.htd-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.htd-cat-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.5rem; text-decoration: none;
}
.htd-cat-card span {
  position: relative; z-index: 1; color: #fff; font-family: "Playfair Display", serif; font-size: 1.3rem;
}
.htd-cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 60%); z-index: 0; }
.htd-cat-women { background: linear-gradient(145deg, #caa6a0, #8a4a43); }
.htd-cat-men { background: linear-gradient(145deg, #a9ab8f, #4a5a3f); }
.htd-cat-accessories { background: linear-gradient(145deg, #d9c48a, #8a6a2f); }

/* ---------- Product grid ---------- */
.htd-edit { padding: 3rem 0 5rem; }
.htd-section-head { margin-bottom: 2.5rem; }
.htd-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.htd-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1.4rem; }
.htd-product-swatch {
  position: relative; aspect-ratio: 3 / 4; border-radius: 2px; display: flex; align-items: center; justify-content: center;
  color: rgba(27,24,21,0.55);
}
.htd-product-swatch svg { width: 38%; height: 38%; }
.htd-tag-new {
  position: absolute; top: 0.7rem; left: 0.7rem; background: var(--htd-ink); color: var(--htd-bg);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.htd-swatch-1 { background: linear-gradient(160deg, #e3d7c3, #b8a98c); }
.htd-swatch-2 { background: linear-gradient(160deg, #eee6d8, #cbb98f); }
.htd-swatch-3 { background: linear-gradient(160deg, #d8cab0, #a9895f); }
.htd-swatch-4 { background: linear-gradient(160deg, #e7c9c2, #b5695c); }
.htd-swatch-5 { background: linear-gradient(160deg, #cfd2c1, #8d9478); }
.htd-swatch-6 { background: linear-gradient(160deg, #e2ddd2, #a39c88); }
.htd-swatch-7 { background: linear-gradient(160deg, #ddc8ba, #9c7762); }
.htd-swatch-8 { background: linear-gradient(160deg, #e8e0cf, #c3a46b); }
.htd-product-info { display: flex; justify-content: space-between; margin-top: 0.75rem; font-size: 0.86rem; }
.htd-product-info span:first-child { color: var(--htd-ink); }
.htd-product-info span:last-child { color: var(--htd-ink-mute); }

/* ---------- Story ---------- */
.htd-story { padding: 5rem 0; background: var(--htd-bg-alt); }
.htd-story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.htd-story h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 1.25rem; line-height: 1.12; }
.htd-story p { color: var(--htd-ink-soft); max-width: 460px; margin: 0 0 1rem; }
.htd-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.htd-stat { background: var(--htd-card); border: 1px solid var(--htd-line); padding: 1.5rem; }
.htd-stat strong { display: block; font-family: "Playfair Display", serif; font-size: 1.3rem; margin-bottom: 0.3rem; }
.htd-stat span { font-size: 0.8rem; color: var(--htd-ink-mute); }

/* ---------- Lookbook ---------- */
.htd-lookbook { padding: 0; }
.htd-lookbook-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.htd-lookbook-frame { aspect-ratio: 3 / 4; }
.htd-lb-1 { background: linear-gradient(160deg, #e3d4bd, #9c7a52); }
.htd-lb-2 { background: linear-gradient(160deg, #d9c2b8, #8a4a43); }
.htd-lb-3 { background: linear-gradient(160deg, #cbd0ba, #5c6b4a); }
.htd-lb-4 { background: linear-gradient(160deg, #ece0cc, #b89a68); }

/* ---------- Newsletter ---------- */
.htd-newsletter { background: var(--htd-ink); color: var(--htd-bg); padding: 5rem 0; }
.htd-newsletter-inner { text-align: center; max-width: 520px; }
.htd-newsletter h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 0.8rem; color: var(--htd-bg); }
.htd-newsletter p { color: rgba(243,237,228,0.65); margin: 0 0 2rem; }
.htd-news-form { display: flex; gap: 0.6rem; }
.htd-news-form input {
  flex: 1; padding: 0.9rem 1rem; border: 1px solid rgba(243,237,228,0.3); background: transparent;
  color: var(--htd-bg); border-radius: 2px; font-family: "Inter", sans-serif; font-size: 0.92rem;
}
.htd-news-form input::placeholder { color: rgba(243,237,228,0.45); }
.htd-news-note { margin-top: 1rem; font-size: 0.85rem; color: #e7c9a8; min-height: 1.2em; }

/* ---------- Footer ---------- */
.htd-footer { background: var(--htd-bg-alt); padding: 4rem 0 2rem; }
.htd-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.htd-footer-brand p { color: var(--htd-ink-soft); font-size: 0.88rem; max-width: 220px; margin-top: 0.75rem; }
.htd-footer-grid h4 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 1rem; color: var(--htd-ink-mute); }
.htd-footer-grid a { display: block; text-decoration: none; color: var(--htd-ink-soft); font-size: 0.88rem; margin-bottom: 0.6rem; }
.htd-footer-grid a:hover { color: var(--htd-ink); }
.htd-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--htd-line);
  font-size: 0.82rem; color: var(--htd-ink-mute);
}
.htd-credit { color: var(--htd-ink-mute); text-decoration: none; }
.htd-credit:hover { color: var(--htd-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .htd-nav { display: none; }
  .htd-nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--htd-bg); border-bottom: 1px solid var(--htd-line); padding: 1rem 28px; gap: 1rem;
  }
  .htd-menu-btn { display: block; }
  .htd-header-row { grid-template-columns: auto 1fr auto; }
  .htd-cat-grid { grid-template-columns: 1fr; }
  .htd-product-grid { grid-template-columns: repeat(2, 1fr); }
  .htd-story-grid { grid-template-columns: 1fr; }
  .htd-lookbook-strip { grid-template-columns: repeat(2, 1fr); }
  .htd-footer-grid { grid-template-columns: 1fr 1fr; }
  .htd-news-form { flex-direction: column; }
}
