/* ==========================================================================
   NOVAÉ — Design System & Homepage Styles
   "Modern essentials. Made for everyday."

   Table of contents:
   1.  Fonts
   2.  Reset
   3.  Design tokens (custom properties)
   4.  Base / typography
   5.  Layout helpers
   6.  Accessibility helpers
   7.  Buttons
   8.  Announcement bar
   9.  Header / navigation
   10. Mobile menu
   11. Hero
   12. Section heading pattern
   13. Product card
   14. New arrivals / best sellers grids
   15. Shop by category
   16. Editorial section
   17. Brand story
   18. Lookbook
   19. Instagram / social
   20. Newsletter
   21. Footer
   22. Quick View modal
   23. Cart drawer
   24. Scroll reveal animation
   25. Responsive tweaks
   ========================================================================== */

/* 1. Fonts
   Fraunces — editorial display serif for headlines
   Inter — clean modern sans for UI & body copy
   Loaded via <link> in the <head> (see index.html) rather than @import,
   so the browser can fetch them in parallel with this stylesheet.
   ========================================================================== */

/* 2. Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* 3. Design tokens
   ========================================================================== */
:root {
  /* Brand colour palette */
  --novae-white: #faf7f1;
  --novae-paper: #f2ede2;
  --novae-black: #16140f;
  --novae-charcoal: #2e2b26;
  --novae-beige: #ede4d3;
  --novae-beige-dark: #dccfb5;
  --novae-grey: #e5e2dc;
  --novae-grey-mid: #948e82;
  --novae-line: #ddd6c7;
  --novae-olive: #6b6b4f;
  --novae-olive-dark: #4c4b37;
  --novae-brown: #9c7a54;

  /* Semantic tokens */
  --color-bg: var(--novae-white);
  --color-bg-alt: var(--novae-paper);
  --color-text: var(--novae-black);
  --color-text-muted: var(--novae-grey-mid);
  --color-border: var(--novae-line);
  --color-accent: var(--novae-olive);
  --color-inverse-bg: var(--novae-black);
  --color-inverse-text: var(--novae-white);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --step-eyebrow: 0.72rem;
  --step-body: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem);
  --step-h1: clamp(2.75rem, 4vw + 1.6rem, 6rem);
  --step-h2: clamp(2rem, 2.4vw + 1.3rem, 3.4rem);
  --step-h3: clamp(1.4rem, 1vw + 1.1rem, 1.9rem);
  --step-h4: clamp(1.1rem, 0.4vw + 1rem, 1.35rem);

  /* Layout */
  --container-max: 1400px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-py: clamp(4rem, 7vw, 8rem);
  --section-py-sm: clamp(2.5rem, 4vw, 4.5rem);
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur-med: 420ms;
  --dur-slow: 700ms;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(22, 20, 15, 0.04);
  --shadow-pop: 0 24px 60px -20px rgba(22, 20, 15, 0.35);

  --header-h: 76px;
}

/* 4. Base / typography
   ========================================================================== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 {
  font-size: var(--step-h1);
  font-weight: 400;
}

h2 {
  font-size: var(--step-h2);
}

h3 {
  font-size: var(--step-h3);
}

h4 {
  font-size: var(--step-h4);
  font-weight: 500;
}

p {
  color: var(--color-text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.6em;
  height: 1px;
  background: currentColor;
}

/* 5. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
}

.section--tight {
  padding-block: var(--section-py-sm);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-inverse-bg);
  color: var(--color-inverse-text);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: inherit;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head__text {
  max-width: 40rem;
}

.section-head h2 {
  margin-top: 0.5rem;
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--color-text-muted);
  max-width: 34rem;
}

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur-fast) var(--ease);
}

.link-underline:hover {
  opacity: 0.6;
}

/* 6. Accessibility helpers
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--novae-black);
  color: var(--novae-white);
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

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

/* 7. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  min-height: 48px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--novae-black);
  color: var(--novae-white);
  border-color: var(--novae-black);
}

.btn--primary:hover {
  background: var(--novae-olive-dark);
  border-color: var(--novae-olive-dark);
}

.btn--ghost-light {
  background: transparent;
  color: var(--novae-white);
  border-color: rgba(250, 247, 241, 0.75);
}

.btn--ghost-light:hover {
  background: rgba(250, 247, 241, 0.12);
  border-color: var(--novae-white);
}

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

.btn--outline:hover {
  background: var(--novae-black);
  color: var(--novae-white);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.7rem 1.4rem;
  min-height: 40px;
}

/* 8. Announcement bar
   ========================================================================== */
.announcement {
  background: var(--novae-black);
  color: var(--novae-white);
}

.announcement__track {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem var(--container-pad);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* Concept disclosure banner (sits above the announcement bar) */
.concept-banner {
  background: var(--novae-charcoal);
  color: var(--novae-grey);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.55rem var(--container-pad);
}

.concept-banner strong {
  color: var(--novae-white);
}

.concept-banner a {
  color: var(--novae-beige-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.concept-banner .banner-text-short {
  display: none;
}

@media (max-width: 600px) {
  .concept-banner .banner-text-full {
    display: none;
  }
  .concept-banner .banner-text-short {
    display: inline;
  }
}

/* 9. Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(22, 20, 15, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
  flex: 1;
}

.nav-group--end {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-block: 0.4rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--dur-fast) var(--ease);
}

.nav-link:hover::after {
  right: 0;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
}

.logo a {
  display: inline-block;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-text);
  transition: background-color var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  background: var(--novae-beige);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.icon-btn__count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--novae-olive);
  color: var(--novae-white);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
}

.icon-btn__count[hidden] {
  display: none;
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 40px -24px rgba(22, 20, 15, 0.3);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease),
    visibility var(--dur-med) var(--ease);
}

.search-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-panel__form {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Reused inside the mobile menu, which already has its own container
   padding — cancel the panel's own padding there to avoid double-indent
   and keep the row from overflowing the viewport. */
.mobile-menu__body .search-panel__form {
  padding: 0;
}

.search-panel__form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0.1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
}

.search-panel__form input:focus {
  outline: none;
  border-bottom-color: var(--novae-black);
}

.search-panel__form input::placeholder {
  color: var(--color-text-muted);
}

/* 10. Mobile menu
   ========================================================================== */
.menu-toggle {
  display: inline-flex;
}

.menu-toggle__box {
  position: relative;
  width: 20px;
  height: 14px;
}

.menu-toggle__box span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease),
    top var(--dur-fast) var(--ease);
}

.menu-toggle__box span:nth-child(1) {
  top: 0;
}

.menu-toggle__box span:nth-child(2) {
  top: 6px;
}

.menu-toggle__box span:nth-child(3) {
  top: 12px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__box span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__box span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__box span:nth-child(3) {
  top: 6px;
  transform: rotate(-135deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--novae-white);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: var(--container-pad);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__body {
  padding: 2.25rem var(--container-pad) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex: 1;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 110ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 160ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 210ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 260ms; }

.mobile-menu__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.mobile-menu__meta {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* 11. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(520px, 78svh, 760px);
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--novae-black);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 20, 15, 0.15) 0%,
    rgba(22, 20, 15, 0.05) 35%,
    rgba(22, 20, 15, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--container-pad) clamp(3rem, 7vw, 5.5rem);
  color: var(--novae-white);
}

.hero__eyebrow {
  color: var(--novae-beige);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.hero__eyebrow::before {
  content: '';
  width: 2.2em;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  color: var(--novae-white);
  margin-top: 0.9rem;
  max-width: 22ch;
  font-size: var(--step-h1);
}

.hero__sub {
  margin-top: 1.4rem;
  max-width: 32ch;
  font-size: 1.05rem;
  color: rgba(250, 247, 241, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--novae-white);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll-cue span.line {
  display: block;
  width: 1px;
  height: 42px;
  background: rgba(250, 247, 241, 0.5);
  overflow: hidden;
  position: relative;
}

.hero__scroll-cue span.line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--novae-white);
  animation: scrollcue 2.2s var(--ease) infinite;
}

@keyframes scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* 12. Section heading pattern — see .section-head above */

/* 13. Product card
   ========================================================================== */
.product-card {
  position: relative;
}

.product-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--novae-beige);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
}

.product-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.product-card:hover .product-card__frame img {
  transform: scale(1.055);
}

.product-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: var(--novae-white);
  color: var(--novae-black);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

.product-card__wishlist {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.9);
  color: var(--novae-black);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.product-card:hover .product-card__wishlist,
.product-card__wishlist:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card__wishlist svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: fill var(--dur-fast) var(--ease), stroke var(--dur-fast) var(--ease);
}

.product-card__wishlist.is-active {
  opacity: 1;
  transform: translateY(0);
}

.product-card__wishlist.is-active svg {
  fill: var(--novae-olive);
  stroke: var(--novae-olive);
}

.product-card__quickview {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.product-card:hover .product-card__quickview,
.product-card__quickview:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quickview button {
  width: 100%;
  background: var(--novae-white);
  color: var(--novae-black);
  border: 1px solid var(--novae-white);
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.product-card__quickview button:hover {
  background: var(--novae-black);
  color: var(--novae-white);
}

.product-card__body {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 500;
}

.product-card__name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.product-card__category {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.product-card__price {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-card__price del {
  margin-right: 0.5rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-card__swatches {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(22, 20, 15, 0.15);
  box-shadow: 0 0 0 1px transparent;
}

/* 14. Product grids
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
}

/* 15. Shop by category
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 20, 15, 0) 45%, rgba(22, 20, 15, 0.65) 100%);
}

.category-tile__content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  color: var(--novae-white);
  width: 100%;
}

.category-tile__content h3 {
  color: inherit;
  font-size: 1.6rem;
}

.category-tile__content .link-underline {
  margin-top: 0.85rem;
  color: inherit;
}

/* 16. Editorial section
   ========================================================================== */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.editorial__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 5;
}

.editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial__text {
  max-width: 34rem;
}

.editorial__text .eyebrow {
  margin-bottom: 1rem;
}

.editorial__text p {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.editorial__text .btn,
.editorial__text .link-underline {
  margin-top: 2rem;
}

.editorial + .editorial {
  margin-top: clamp(3rem, 6vw, 6rem);
}

/* 17. Brand story
   ========================================================================== */
.brand-story {
  position: relative;
  overflow: hidden;
}

.brand-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.brand-story__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 5 / 4;
}

.brand-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-story__text blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.32;
  color: var(--novae-white);
}

.brand-story__text .brand-story__lede {
  margin-top: 1.5rem;
  color: rgba(250, 247, 241, 0.75);
  max-width: 34rem;
}

.brand-story__text cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--novae-beige-dark);
}

.brand-story__text .btn {
  margin-top: 2.25rem;
}

/* 18. Lookbook
   ========================================================================== */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lookbook-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.lookbook-item:hover img {
  transform: scale(1.06);
}

.lookbook-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; }
.lookbook-item:nth-child(2) { aspect-ratio: 3 / 4; }
.lookbook-item:nth-child(3) { aspect-ratio: 3 / 4; }
.lookbook-item:nth-child(4) { aspect-ratio: 3 / 4; }
.lookbook-item:nth-child(5) { grid-column: span 2; aspect-ratio: 16 / 10; }

.lookbook-item:nth-child(1) img,
.lookbook-item:nth-child(5) img {
  object-position: 50% 22%;
}

.lookbook-item__caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  color: var(--novae-white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.lookbook-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 20, 15, 0) 55%, rgba(22, 20, 15, 0.55) 100%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.lookbook-item:hover::after,
.lookbook-item:hover .lookbook-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* 19. Instagram / social
   ========================================================================== */
.social-head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.social-head .eyebrow {
  justify-content: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.social-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-fast) var(--ease);
}

.social-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 15, 0.35);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.social-item__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--novae-white);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.social-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.social-item:hover img {
  transform: scale(1.08);
}

.social-item:hover::after,
.social-item:hover .social-item__icon {
  opacity: 1;
}

.social-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* 20. Newsletter
   ========================================================================== */
.newsletter {
  background: var(--novae-olive);
  color: var(--novae-white);
}

.newsletter__inner {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.newsletter h2 {
  color: inherit;
}

.newsletter p {
  margin-top: 1rem;
  color: rgba(250, 247, 241, 0.85);
}

.newsletter-form {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.newsletter-form input[type='email'] {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(250, 247, 241, 0.55);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--novae-white);
  font-size: 0.95rem;
}

.newsletter-form input[type='email']::placeholder {
  color: rgba(250, 247, 241, 0.65);
}

.newsletter-form input[type='email']:focus {
  outline: none;
  border-color: var(--novae-white);
}

.newsletter-form__note {
  font-size: 0.72rem;
  color: rgba(250, 247, 241, 0.65);
}

.newsletter-form__status {
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.3em;
}

/* 21. Footer
   ========================================================================== */
.site-footer {
  background: var(--novae-black);
  color: rgba(250, 247, 241, 0.82);
}

.site-footer a {
  color: inherit;
}

.footer-top {
  padding-block: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

.footer-brand .logo {
  color: var(--novae-white);
}

.footer-brand p {
  margin-top: 1.1rem;
  max-width: 28rem;
  color: rgba(250, 247, 241, 0.65);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer-social a,
.footer-social__icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(250, 247, 241, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.footer-social a:hover {
  border-color: var(--novae-white);
  background: rgba(250, 247, 241, 0.08);
}

.footer-social svg,
.footer-social__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
  gap: 2.25rem;
}

.footer-col h4 {
  color: var(--novae-white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(250, 247, 241, 0.72);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--novae-white);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 241, 0.14);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(250, 247, 241, 0.55);
}

.footer-bottom a {
  color: rgba(250, 247, 241, 0.75);
}

/* 22 & 23. Quick View modal + Cart drawer (shared dialog primitives)
   ========================================================================== */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(22, 20, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease);
}

.overlay-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.quickview {
  position: fixed;
  z-index: 960;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: min(880px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--novae-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease);
}

.quickview.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.quickview::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 28px;
  margin-top: -28px;
  background: linear-gradient(to bottom, rgba(22, 20, 15, 0), rgba(22, 20, 15, 0.09));
  pointer-events: none;
}

.quickview__close,
.cart-drawer__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--novae-white);
}

.quickview__close:hover,
.cart-drawer__close:hover {
  background: var(--novae-beige);
}

.quickview__close svg,
.cart-drawer__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.quickview__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.quickview__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--novae-beige);
}

.quickview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quickview__body {
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 2.25rem;
}

.quickview__category {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.quickview__name {
  margin-top: 0.4rem;
}

.quickview__price {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.quickview__field {
  margin-top: 1.75rem;
}

.quickview__field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quickview__field-label span.selected {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
}

.quickview__swatches {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(22, 20, 15, 0.15);
  position: relative;
  cursor: pointer;
}

.swatch-btn.is-selected::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--novae-black);
  border-radius: 50%;
}

.quickview__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.size-btn {
  min-width: 46px;
  height: 42px;
  padding-inline: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.size-btn:hover {
  border-color: var(--novae-black);
}

.size-btn.is-selected {
  background: var(--novae-black);
  border-color: var(--novae-black);
  color: var(--novae-white);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: 0.85rem;
}

.qty-stepper button {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-stepper output {
  min-width: 36px;
  text-align: center;
  font-size: 0.9rem;
}

.quickview__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.quickview__addtobag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.quickview__note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  min-height: 1.2em;
}

.cart-drawer {
  position: fixed;
  z-index: 960;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--novae-white);
  box-shadow: -24px 0 60px -30px rgba(22, 20, 15, 0.4);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  position: relative;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-drawer__header h2 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-drawer__empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  color: var(--color-text-muted);
  padding-block: 3rem;
}

.cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
}

.cart-item__media {
  width: 76px;
  height: 95px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--novae-beige);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__name {
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-item__meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cart-item__row {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item__price {
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item__remove {
  font-size: 0.72rem;
  text-decoration: underline;
  color: var(--color-text-muted);
}

.cart-drawer__footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
}

.cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 24. Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 450ms; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 540ms; }
[data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 630ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }
}

/* Image fallback (graceful degrade if a remote placeholder image fails) */
img.img-fallback {
  object-fit: cover;
  background: var(--novae-beige);
}

/* 25. Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .newsletter-form__row {
    flex-direction: row;
  }
}

@media (min-width: 800px) {
  .editorial {
    grid-template-columns: 1fr 1fr;
  }

  .editorial:nth-child(even) .editorial__media {
    order: 2;
  }

  .brand-story__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__scroll-cue {
    display: flex;
  }
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 480px) minmax(0, 460px);
  }

  .quickview__grid {
    grid-template-columns: 1fr 1fr;
  }

  .quickview__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .social-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 899px) {
  .header-icons .icon-btn--search {
    display: none;
  }
}
