/* ==========================================================================
   House Decor Find — Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #FAF7F2;
  --color-bg-alt: #F3EDE6;
  --color-surface: #FDFBF8;
  --color-text: #2C2620;
  --color-text-muted: #6F645A;
  --color-accent: #8B7355;
  --color-accent-dark: #5C4A38;
  --color-border: #E3DAD0;
  --color-dark: #1E1915;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(2.5rem, 5vw, 3.75rem);
  --text-h1: clamp(2.25rem, 4.5vw, 3.25rem);
  --text-h2: clamp(1.75rem, 3vw, 2.5rem);
  --text-h3: clamp(1.125rem, 2vw, 1.375rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Section vertical rhythm (~12% tighter than original) */
  --section-space-desktop: 3.85rem;
  --section-space-tablet: 3.1rem;
  --section-space-mobile: 2.35rem;

  /* Product/card grid */
  --card-min-width: 260px;
  --card-max-width: 320px;

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 760px;
  --header-height: 4.75rem;

  /* Radius & shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 24px rgba(44, 38, 32, 0.06);
  --shadow-elevated: 0 12px 40px rgba(44, 38, 32, 0.1);

  /* Motion */
  --transition: 0.25s ease;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body.hdf-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.hdf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-dark);
  color: #fff;
}

.hdf-skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

.hdf-container {
  width: min(100% - 2rem, var(--container-max));
  max-width: 100%;
  margin-inline: auto;
}

.hdf-main {
  min-height: 50vh;
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.hdf-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hdf-section-heading__title,
.hdf-hero__title,
.hdf-editorial-split__title,
.hdf-look-feature__title,
.hdf-inspiration__title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-dark);
}

.hdf-section-heading__text,
.hdf-hero__text,
.hdf-editorial-split__text,
.hdf-look-feature__text,
.hdf-inspiration__text {
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-hdf-primary,
.btn-hdf-secondary,
.btn-hdf-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}

.btn-hdf-primary {
  background: var(--color-accent-dark);
  color: #fff;
  border-color: var(--color-accent-dark);
}

.btn-hdf-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-hdf-secondary {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn-hdf-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.btn-hdf-primary:focus-visible,
.btn-hdf-secondary:focus-visible,
.hdf-nav__link:focus-visible,
.hdf-search-btn:focus-visible,
.hdf-menu-btn:focus-visible,
.hdf-offcanvas__close:focus-visible,
.hdf-link-arrow:focus-visible,
.hdf-card-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.hdf-card-cta {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-accent-dark);
  transition: color var(--transition);
}

.hdf-product-card__link:hover .hdf-card-cta,
.hdf-blog-card__link:hover .hdf-card-cta {
  color: var(--color-accent);
}

.hdf-link-arrow {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-accent-dark);
}

.hdf-link-arrow:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.hdf-trust-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.hdf-trust-bar__inner p {
  margin: 0;
  padding: 0.5rem 0;
  font-size: var(--text-xs);
  text-align: center;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.hdf-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(253, 251, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), padding var(--transition);
  max-width: 100%;
  min-width: 0;
}

.hdf-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.hdf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--header-height);
  min-width: 0;
}

.hdf-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  min-width: 0;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}

.hdf-brand--logo {
  flex-direction: row;
  align-items: center;
}

.hdf-brand__logo {
  display: block;
  max-width: min(220px, 46vw);
  max-height: 3.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hdf-brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
  overflow-wrap: anywhere;
}

.hdf-brand__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.hdf-nav--desktop {
  display: none;
}

.hdf-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.hdf-nav__link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.25rem 0;
  white-space: nowrap;
}

.hdf-nav__link:hover {
  color: var(--color-accent-dark);
}

.hdf-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.hdf-search-btn,
.hdf-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-dark);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.hdf-search-btn:hover,
.hdf-menu-btn:hover {
  border-color: var(--color-accent);
}

/* Offcanvas mobile nav */
.hdf-offcanvas {
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  max-width: 320px;
}

.hdf-offcanvas__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.hdf-offcanvas__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.hdf-offcanvas__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
}

.hdf-offcanvas__close {
  border: none;
  background: transparent;
  color: var(--color-dark);
  padding: 0.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.hdf-nav--mobile .hdf-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hdf-nav--mobile .hdf-nav__link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) and (max-width: 991px) {
  .hdf-brand__logo {
    max-height: 3.5rem;
    max-width: min(240px, 42vw);
  }
}

@media (min-width: 992px) {
  :root {
    --header-height: 5.25rem;
  }

  .hdf-nav--desktop {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .hdf-nav--desktop .hdf-nav__list {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.25rem 1rem;
  }

  .hdf-nav--desktop .hdf-nav__link {
    font-size: 1rem;
    font-weight: 500;
  }

  .hdf-brand--logo {
    flex-shrink: 0;
  }

  .hdf-brand__logo {
    max-height: 5rem;
    max-width: min(360px, 34vw);
  }

  .hdf-brand__tagline {
    display: block;
  }
}

@media (min-width: 1200px) {
  .hdf-nav--desktop .hdf-nav__list {
    gap: 0.25rem 1.25rem;
  }
}

@media (max-width: 991px) {
  .hdf-brand__tagline {
    display: none;
  }
}

/* ==========================================================================
   Section system
   ========================================================================== */

.hdf-section {
  padding: var(--section-space-mobile) 0;
}

.hdf-section--alt {
  background: var(--color-bg-alt);
}

.hdf-section--editorial {
  background: var(--color-surface);
}

.hdf-section--inspiration {
  padding-bottom: var(--section-space-mobile);
}

.hdf-look-feature {
  padding: var(--section-space-mobile) 0;
  background: var(--color-bg-alt);
}

@media (min-width: 768px) {
  .hdf-section {
    padding: var(--section-space-tablet) 0;
  }

  .hdf-section--inspiration {
    padding-bottom: var(--section-space-tablet);
  }

  .hdf-look-feature {
    padding: var(--section-space-tablet) 0;
  }
}

@media (min-width: 1024px) {
  .hdf-section {
    padding: var(--section-space-desktop) 0;
  }

  .hdf-section--inspiration {
    padding-bottom: var(--section-space-desktop);
  }

  .hdf-look-feature {
    padding: var(--section-space-desktop) 0;
  }
}

.hdf-section-heading {
  margin-bottom: var(--space-xl);
  max-width: var(--container-narrow);
}

.hdf-section-heading--centered {
  text-align: center;
  margin-inline: auto;
}

.hdf-section-heading__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

.hdf-section-heading__text {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-md);
}

.hdf-section__footer {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hdf-hero {
  padding: var(--section-space-mobile) 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hdf-hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hdf-hero__title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-md);
  max-width: 16ch;
}

.hdf-hero__text {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-lg);
  max-width: 38ch;
}

.hdf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hdf-hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
  .hdf-hero {
    padding: var(--section-space-tablet) 0;
  }

  .hdf-hero__grid {
    gap: var(--space-2xl);
  }
}

@media (min-width: 992px) {
  .hdf-hero {
    padding: var(--section-space-desktop) 0;
  }

  .hdf-hero__grid {
    grid-template-columns: 47fr 53fr;
    gap: var(--space-2xl);
    align-items: center;
  }
}

/* ==========================================================================
   Images
   ========================================================================== */

.hdf-img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  background: var(--color-bg-alt);
  border-radius: inherit;
}

/* Card and hero wrappers define aspect ratio; images fill the frame without distortion. */
.hdf-category-card__media > .hdf-img,
.hdf-product-card__media > .hdf-img,
.hdf-blog-card__media > .hdf-img,
.hdf-look-card__media > .hdf-img,
.hdf-hero__media > .hdf-img,
.hdf-editorial-split__media > .hdf-img,
.hdf-look-feature__media > .hdf-img,
.hdf-article-header__media > .hdf-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Grids
   ========================================================================== */

.hdf-grid {
  display: grid;
  gap: var(--space-lg);
}

.hdf-grid--categories {
  grid-template-columns: repeat(2, 1fr);
}

/* Trending / product grids — left-aligned flow; incomplete final rows stay left */
.hdf-grid--products {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.hdf-grid--products > .hdf-product-card {
  flex: 0 1 calc(50% - var(--space-lg) / 2);
  max-width: calc(50% - var(--space-lg) / 2);
  min-width: 0;
}

.hdf-grid--blog {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.hdf-grid--compact-categories {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  justify-content: center;
}

.hdf-grid--compact-categories[data-item-count="1"] {
  grid-template-columns: minmax(0, 400px);
  justify-content: center;
  margin-inline: auto;
}

.hdf-grid--compact-categories[data-item-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}

.hdf-grid--picks {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 576px) {
  .hdf-grid--products > .hdf-product-card {
    flex: 0 1 calc(50% - var(--space-lg) / 2);
    max-width: min(var(--card-max-width), calc(50% - var(--space-lg) / 2));
    min-width: min(100%, var(--card-min-width));
  }
}

@media (min-width: 768px) {
  .hdf-grid--categories {
    grid-template-columns: repeat(4, 1fr);
  }

  .hdf-grid--products > .hdf-product-card {
    flex: 0 1 calc(33.333% - var(--space-lg) * 2 / 3);
    max-width: min(var(--card-max-width), calc(33.333% - var(--space-lg) * 2 / 3));
  }

  .hdf-grid--blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hdf-grid--compact-categories[data-item-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin-inline: auto;
  }

  .hdf-grid--picks {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .hdf-grid__featured,
  .hdf-grid__supporting {
    min-height: 100%;
  }

  .hdf-grid__featured .hdf-product-card,
  .hdf-grid__supporting .hdf-product-card {
    height: 100%;
  }

  .hdf-grid__featured .hdf-product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .hdf-grid__featured .hdf-product-card__body {
    flex: 1;
  }

  .hdf-grid__supporting {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    align-content: start;
  }
}

@media (min-width: 1024px) {
  .hdf-grid--products > .hdf-product-card {
    flex: 0 1 calc(25% - var(--space-lg) * 3 / 4);
    max-width: min(var(--card-max-width), calc(25% - var(--space-lg) * 3 / 4));
  }

  .hdf-grid--blog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .hdf-grid--compact-categories[data-item-count="2"] {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hdf-grid--products > .hdf-product-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Product card
   ========================================================================== */

.hdf-product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.hdf-product-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.hdf-product-card__link {
  display: block;
  color: inherit;
}

.hdf-product-card__link:hover {
  color: inherit;
}

.hdf-product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hdf-product-card__media img {
  transition: transform var(--transition);
}

.hdf-product-card:hover .hdf-product-card__media img {
  transform: scale(1.03);
}

.hdf-product-card__body {
  padding: var(--space-lg);
}

.hdf-product-card__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.hdf-product-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  overflow-wrap: anywhere;
}

.hdf-product-card__text {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hdf-product-card__cta {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-accent-dark);
}

.hdf-product-card--featured .hdf-product-card__body {
  padding: var(--space-xl);
}

/* ==========================================================================
   Category card
   ========================================================================== */

.hdf-category-card__link {
  display: block;
  color: inherit;
}

.hdf-category-card__link:hover {
  color: inherit;
}

.hdf-category-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hdf-category-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  background: linear-gradient(180deg, transparent 40%, rgba(30, 25, 21, 0.65) 100%);
}

.hdf-category-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 600;
  color: #fff;
}

.hdf-category-card__title--below {
  margin-top: var(--space-sm);
  color: var(--color-dark);
  font-size: 1rem;
}

.hdf-category-card__arrow {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  margin-top: var(--space-xs);
}

.hdf-category-card--compact .hdf-category-card__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Blog card
   ========================================================================== */

.hdf-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: box-shadow var(--transition);
}

.hdf-blog-card:hover {
  box-shadow: var(--shadow-soft);
}

.hdf-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.hdf-blog-card__link:hover {
  color: inherit;
}

.hdf-blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hdf-blog-card__media img {
  transition: transform var(--transition);
}

.hdf-blog-card:hover .hdf-blog-card__media img {
  transform: scale(1.03);
}

.hdf-blog-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hdf-blog-card__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.hdf-blog-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  overflow-wrap: anywhere;
}

.hdf-blog-card__excerpt {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  flex: 1 1 auto;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hdf-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hdf-blog-card__cta {
  font-weight: 600;
  color: var(--color-accent-dark);
}

/* ==========================================================================
   Editorial split
   ========================================================================== */

.hdf-editorial-split {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.hdf-editorial-split__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-lg);
}

.hdf-editorial-split__text {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-xl);
}

.hdf-editorial-split__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 992px) {
  .hdf-editorial-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ==========================================================================
   Shop The Look feature
   ========================================================================== */

/* Shop The Look feature — padding handled in section rhythm above */

.hdf-look-feature__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.hdf-look-feature__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-lg);
}

.hdf-look-feature__text {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.hdf-look-feature__products {
  margin-bottom: var(--space-xl);
}

.hdf-look-feature__products li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
}

.hdf-look-feature__products a:hover {
  color: var(--color-accent-dark);
}

.hdf-look-feature__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 992px) {
  .hdf-look-feature__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ==========================================================================
   Inspiration CTA
   ========================================================================== */

.hdf-inspiration__inner {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hdf-inspiration__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-lg);
}

.hdf-inspiration__text {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto var(--space-xl);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.hdf-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--section-space-mobile) 0 var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .hdf-footer {
    padding: var(--section-space-tablet) 0 var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .hdf-footer {
    padding: var(--section-space-desktop) 0 var(--space-xl);
  }
}

.hdf-footer__grid {
  row-gap: var(--space-xl);
}

.hdf-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
}

.hdf-footer__logo-link {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.hdf-footer__logo {
  display: block;
  max-width: 11rem;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hdf-footer__text {
  font-size: var(--text-small);
  line-height: 1.7;
  max-width: 22rem;
}

.hdf-footer__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-md);
}

.hdf-footer__links li {
  margin-bottom: 0.5rem;
}

.hdf-footer__links a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.78);
}

.hdf-footer__links a:hover {
  color: #fff;
}

.hdf-footer__disclosure {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-small);
  line-height: 1.7;
}

.hdf-footer__disclosure p + p {
  margin-top: var(--space-sm);
}

.hdf-footer__disclosure strong {
  color: #fff;
}

.hdf-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media (max-width: 575px) {
  .hdf-hero__actions {
    flex-direction: column;
  }

  .hdf-hero__actions .btn-hdf-primary,
  .hdf-hero__actions .btn-hdf-secondary {
    width: 100%;
  }

  .hdf-hero__title {
    max-width: none;
  }

  .hdf-trust-bar__inner p {
    font-size: 0.6875rem;
    padding: 0.375rem 0;
  }

  .hdf-footer__disclosure {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
  }

  .hdf-header__inner {
    gap: var(--space-sm);
  }

  .hdf-brand__name {
    font-size: 1.0625rem;
    letter-spacing: 0.03em;
  }

  .hdf-pagination {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hdf-product-card:hover,
  .hdf-product-card:hover .hdf-product-card__media img,
  .hdf-blog-card:hover .hdf-blog-card__media img,
  .hdf-look-card:hover .hdf-look-card__media img {
    transform: none;
  }
}

/* ==========================================================================
   Content pages — listings, detail, static
   ========================================================================== */

.hdf-container--narrow {
  max-width: var(--container-narrow);
}

.hdf-page-header {
  padding: var(--section-space-mobile) 0 var(--space-xl);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hdf-page-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.15;
  margin-top: var(--space-sm);
  overflow-wrap: anywhere;
}

.hdf-page-header__text {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--text-body-lg);
  max-width: 42rem;
}

.hdf-section--compact {
  padding-top: var(--section-space-mobile);
  padding-bottom: var(--section-space-mobile);
}

.hdf-empty-state {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.hdf-empty-state__text {
  color: var(--color-text-muted);
  font-size: var(--text-body-lg);
  max-width: 32rem;
  margin: 0 auto;
}

.hdf-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.hdf-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.hdf-pagination__summary {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.hdf-pagination__link {
  font-weight: 500;
  color: var(--color-accent-dark);
}

.hdf-pagination__link.is-disabled {
  color: var(--color-text-muted);
  opacity: 0.6;
  cursor: not-allowed;
}

.hdf-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-accent-dark);
}

.hdf-pagination__page.is-current {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.hdf-pagination__ellipsis {
  color: var(--color-text-muted);
  padding: 0 0.25rem;
  user-select: none;
}

.hdf-pagination__status {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.hdf-detail {
  padding: var(--section-space-mobile) 0;
}

.hdf-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
  min-width: 0;
}

.hdf-detail__media {
  min-width: 0;
}

.hdf-detail__content {
  min-width: 0;
}

.hdf-detail__image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--color-surface-muted, #f7f4ef);
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hdf-detail__image-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.hdf-detail__media .hdf-img--product:not(.hdf-img--thumb) {
  position: static;
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  object-fit: contain;
  object-position: center center;
  background: var(--color-surface-muted, #f7f4ef);
}

.hdf-detail__media > .hdf-img--look {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-md);
}

.hdf-detail__title {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hdf-detail__lead {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--text-body-lg);
}

.hdf-detail__features {
  margin-top: var(--space-lg);
  padding-left: 1.25rem;
  list-style: disc;
}

.hdf-detail__features li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
}

.hdf-detail__cta {
  display: inline-block;
  margin-top: var(--space-xl);
}

.hdf-detail__disclosure {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hdf-detail__section {
  margin-top: var(--space-3xl);
}

.hdf-detail__section-title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hdf-detail__related {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.hdf-prose {
  color: var(--color-text);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hdf-prose h3,
.hdf-prose h4 {
  font-family: var(--font-serif);
  margin: var(--space-lg) 0 var(--space-sm);
}

.hdf-prose h3 {
  font-size: var(--text-h3);
}

.hdf-prose h4 {
  font-size: 1.125rem;
}

.hdf-prose ul,
.hdf-prose ol {
  margin: var(--space-md) 0;
  padding-left: 1.35rem;
}

.hdf-prose li + li {
  margin-top: 0.35rem;
}

.hdf-prose a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.hdf-prose a:hover {
  color: var(--color-accent);
}

.hdf-prose blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.hdf-prose img,
.hdf-prose iframe,
.hdf-prose video {
  max-width: 100%;
  height: auto;
}

.hdf-prose h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  margin: var(--space-xl) 0 var(--space-md);
}

.hdf-prose p + p {
  margin-top: var(--space-md);
}

.hdf-prose--article {
  margin-top: var(--space-2xl);
}

.hdf-article-header__date {
  display: block;
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.hdf-article-header__media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hdf-search-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.hdf-search-form__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
}

.hdf-search-form__submit {
  flex-shrink: 0;
}

.hdf-search-results + .hdf-search-results {
  margin-top: var(--space-3xl);
}

.hdf-grid--looks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-xl);
}

.hdf-look-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition);
}

.hdf-look-card:hover {
  box-shadow: var(--shadow-elevated);
}

.hdf-look-card__link {
  display: block;
  color: inherit;
}

.hdf-look-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.hdf-look-card__media img {
  transition: transform var(--transition);
}

.hdf-look-card:hover .hdf-look-card__media img {
  transform: scale(1.03);
}

.hdf-look-card__body {
  padding: var(--space-lg);
}

.hdf-look-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-top: var(--space-xs);
}

.hdf-look-card__text {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.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;
}

@media (max-width: 991px) {
  .hdf-detail__grid {
    grid-template-columns: 1fr;
  }

  .hdf-search-form {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .hdf-page-header {
    padding: var(--section-space-tablet) 0 var(--space-xl);
  }

  .hdf-section--compact {
    padding-top: var(--section-space-tablet);
    padding-bottom: var(--section-space-tablet);
  }

  .hdf-detail {
    padding: var(--section-space-tablet) 0;
  }
}

@media (min-width: 1024px) {
  .hdf-page-header {
    padding: var(--section-space-desktop) 0 var(--space-xl);
  }

  .hdf-section--compact {
    padding-top: var(--section-space-desktop);
    padding-bottom: var(--section-space-desktop);
  }

  .hdf-detail {
    padding: var(--section-space-desktop) 0;
  }
}

.hdf-breadcrumbs {
  margin-bottom: var(--space-lg);
}

.hdf-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.hdf-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-xs);
  color: var(--color-border);
}

.hdf-breadcrumbs__item a {
  color: var(--color-accent-dark);
}

.hdf-page-header__media {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Category detail page — split hero */
.hdf-page-header--category {
  padding-bottom: var(--space-xl);
}

.hdf-category-split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: stretch;
  min-width: 0;
}

.hdf-category-split-hero__media {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-surface-muted, #f7f4ef);
}

.hdf-category-split-hero__img,
.hdf-category-split-hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: var(--hdf-category-hero-position, center center);
}

.hdf-category-split-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hdf-category-split-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-top: var(--space-sm);
}

.hdf-category-split-hero__text {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--text-body-lg);
  line-height: 1.7;
  max-width: 42ch;
}

.hdf-category-split-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.hdf-category-split-hero__cta:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 992px) {
  .hdf-category-split-hero {
    grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    gap: var(--space-2xl);
  }
}

.hdf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.hdf-lightbox[hidden] {
  display: none;
}

.hdf-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.hdf-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-xl);
  box-sizing: border-box;
}

.hdf-lightbox__image {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hdf-lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.hdf-lightbox__close:hover,
.hdf-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.hdf-lightbox-open {
  overflow: hidden;
}

.hdf-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hdf-detail__gallery .hdf-img--thumb {
  position: static;
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.hdf-grid--categories-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.hdf-eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hdf-eyebrow a:hover {
  color: var(--color-accent);
}
