/* Northline Fashion — editorial premium ecommerce demo */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --nf-sand: #f5f0ea;
  --nf-cream: #faf8f5;
  --nf-ink: #1a1a1a;
  --nf-muted: #6b6560;
  --nf-gold: #b8956a;
  --nf-gold-d: #96784f;
  --nf-line: #e8e2da;
  --nf-white: #fff;
  --nf-radius: 2px;
  --nf-focus: #b8956a;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--nf-ink);
  background: var(--nf-cream);
}

body.nf-modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

.nf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nf-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.nf-concept {
  margin: 0;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-muted);
  padding: 0.45rem 1rem;
  background: var(--nf-sand);
  border-bottom: 1px solid var(--nf-line);
}

/* Header */
.nf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nf-line);
}

.nf-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.nf-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--nf-ink);
}

.nf-logo span { color: var(--nf-gold); font-style: italic; }

.nf-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--nf-line);
  background: var(--nf-white);
  cursor: pointer;
  border-radius: var(--nf-radius);
}

@media (min-width: 900px) {
  .nf-nav-toggle { display: none; }
}

.nf-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--nf-ink);
  margin: 0 auto;
  transition: transform 0.2s;
}

.nf-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--nf-cream);
  border-bottom: 1px solid var(--nf-line);
  padding: 1rem 1.25rem 1.25rem;
  gap: 0.75rem;
}

.nf-nav.is-open { display: flex; }

@media (min-width: 900px) {
  .nf-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    border: none;
    padding: 0;
    gap: 1.75rem;
    background: transparent;
  }
}

.nf-nav a {
  color: var(--nf-ink);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nf-nav a:hover { color: var(--nf-gold-d); }

.nf-nav-cta {
  border: 1px solid var(--nf-ink);
  padding: 0.45rem 1rem !important;
}

@media (min-width: 900px) {
  .nf-nav-cta { margin-left: 0.5rem; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--nf-focus);
  outline-offset: 2px;
}

/* Hero */
.nf-hero { padding: 2.5rem 0 3rem; }

.nf-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .nf-hero-grid { grid-template-columns: 1fr 1.05fr; }
}

.nf-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nf-gold);
  margin: 0 0 1rem;
}

.nf-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.nf-lead { color: var(--nf-muted); margin: 0 0 1.75rem; max-width: 34ch; }

.nf-hero-visual img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* Buttons */
.nf-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .nf-btn { transition: none; }
}

.nf-btn-primary {
  background: var(--nf-ink);
  color: var(--nf-white);
}

.nf-btn-primary:hover:not(:disabled) { background: var(--nf-gold-d); }

.nf-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.nf-btn-ghost {
  background: transparent;
  color: var(--nf-ink);
  border: 1px solid var(--nf-line);
  padding: 0.55rem 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.nf-btn-ghost:hover { border-color: var(--nf-ink); }

/* Sections */
.nf-section { padding: 3.5rem 0; }

.nf-section-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.nf-section-head h2,
.nf-section > .nf-container > h2,
.nf-gallery h2,
.nf-newsletter h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.nf-section-head p,
.nf-gallery-intro { color: var(--nf-muted); margin: 0; }

/* Collection */
.nf-collection { background: var(--nf-sand); }

.nf-collection-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nf-collection-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .nf-collection-feature { grid-row: span 2; }
}

.nf-collection-card {
  position: relative;
  overflow: hidden;
}

.nf-collection-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nf-collection-feature img { aspect-ratio: auto; min-height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .nf-collection-card:hover img { transform: scale(1.03); }
}

.nf-collection-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.65));
  color: var(--nf-white);
}

.nf-collection-overlay h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.nf-collection-overlay p { margin: 0; font-size: 0.8125rem; opacity: 0.9; }

/* Departments */
.nf-dept-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .nf-dept-grid { grid-template-columns: repeat(3, 1fr); }
}

.nf-dept {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.nf-dept img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.4s;
}

@media (prefers-reduced-motion: no-preference) {
  .nf-dept:hover img { filter: grayscale(0); transform: scale(1.02); }
}

.nf-dept span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--nf-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Filters & products */
.nf-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.nf-filter {
  font-family: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--nf-line);
  background: var(--nf-white);
  cursor: pointer;
  color: var(--nf-muted);
}

.nf-filter.is-active,
.nf-filter:hover {
  border-color: var(--nf-ink);
  color: var(--nf-ink);
}

.nf-products {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .nf-products { grid-template-columns: repeat(3, 1fr); }
}

.nf-product h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0.75rem 0 0.25rem;
}

.nf-price {
  margin: 0;
  font-weight: 600;
  color: var(--nf-gold-d);
}

.nf-product-img {
  position: relative;
  overflow: hidden;
  background: var(--nf-sand);
}

.nf-product-img img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.nf-wish {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--nf-muted);
}

.nf-wish.is-wished { color: #c45; }

/* Reassurance */
.nf-reassure { background: var(--nf-white); border-block: 1px solid var(--nf-line); }

.nf-reassure-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .nf-reassure-grid { grid-template-columns: 1fr 1fr; }
}

.nf-reassure-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--nf-muted);
}

.nf-size-demo {
  background: var(--nf-sand);
  padding: 1.5rem;
  border: 1px solid var(--nf-line);
}

.nf-size-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.nf-sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.nf-size {
  min-width: 2.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--nf-line);
  background: var(--nf-white);
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.nf-size.is-selected {
  border-color: var(--nf-ink);
  background: var(--nf-ink);
  color: var(--nf-white);
}

.nf-size:disabled { opacity: 0.35; cursor: not-allowed; }

.nf-size-note { font-size: 0.75rem; color: var(--nf-muted); margin: 0.75rem 0 0; }

/* Gallery */
.nf-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .nf-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.nf-gallery-grid figure { margin: 0; }

.nf-gallery-grid img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.nf-gallery-grid figcaption {
  font-size: 0.6875rem;
  color: var(--nf-muted);
  margin-top: 0.5rem;
}

/* Newsletter */
.nf-newsletter {
  background: var(--nf-ink);
  color: var(--nf-white);
  text-align: center;
}

.nf-newsletter p { color: rgba(255, 255, 255, 0.7); margin: 0 0 1.5rem; }

.nf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .nf-newsletter-form { flex-direction: row; }
}

.nf-newsletter-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--nf-white);
  font-family: inherit;
}

.nf-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.nf-newsletter .nf-btn-primary {
  background: var(--nf-gold);
  color: var(--nf-ink);
}

.nf-newsletter .nf-btn-primary:hover { background: var(--nf-gold-d); color: var(--nf-white); }

/* Footer */
.nf-footer {
  background: var(--nf-sand);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--nf-muted);
  border-top: 1px solid var(--nf-line);
}

.nf-footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .nf-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.nf-footer strong { color: var(--nf-ink); display: block; margin-bottom: 0.5rem; }

.nf-footer p { margin: 0; }

/* Modal */
.nf-modal[hidden] { display: none; }

.nf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
}

.nf-modal-panel {
  position: relative;
  background: var(--nf-white);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  gap: 0;
}

@media (min-width: 640px) {
  .nf-modal-panel { grid-template-columns: 1fr 1fr; }
}

.nf-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--nf-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nf-modal-img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

.nf-modal-body { padding: 1.5rem; }

.nf-modal-body h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.nf-modal-price { font-weight: 600; color: var(--nf-gold-d); margin: 0 0 0.75rem; }

.nf-modal-desc { color: var(--nf-muted); font-size: 0.9375rem; margin: 0 0 1rem; }

.nf-modal-note { font-size: 0.75rem; color: var(--nf-muted); margin: 0 0 1rem; }

/* Demo strip */
.nf-demo-strip {
  text-align: center;
  font-size: 0.6875rem;
  padding: 1rem;
  color: var(--nf-muted);
  background: var(--nf-cream);
  border-top: 1px solid var(--nf-line);
}

.nf-demo-strip a {
  color: var(--nf-gold-d);
  font-weight: 600;
  text-decoration: none;
}

.nf-demo-strip a:hover { text-decoration: underline; }
