/* ============================================================
   EMBER & COLE — Main Stylesheet
   Dark luxury. Range Rover energy. Lighthouse 100 target.
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #0C0C0A;
  --surface:     #141412;
  --surface-2:   #1D1D1A;
  --surface-3:   #252522;
  --gold:        #C9A55A;
  --gold-light:  #DFC07C;
  --gold-dim:    #7A6234;
  --cream:       #F0EBE0;
  --cream-dim:   #B8B0A0;
  --muted:       #6A6560;
  --border:      #2A2A26;
  --border-light:#3A3A35;

  --font-serif:  'Cormorant Garant', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --header-h:    72px;
  --max-w:       1340px;
  --gutter:      clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, select { font-family: var(--font-sans); cursor: pointer; }

/* --- UTILITY --- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

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

.btn--ghost {
  background: transparent;
  color: var(--cream-dim);
  border-color: rgba(240,235,224,0.25);
}
.btn--ghost:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.btn--full { width: 100%; text-align: center; }

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
}

.header-nav {
  display: flex;
  gap: 36px;
}

.header-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }

.header-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
  white-space: nowrap;
}

.logo-amp {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  color: var(--gold);
  margin: 0 4px;
}

/* Mobile header */
.header-mobile-inner {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
}

.nav-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.25s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
  gap: 2px;
}
.mobile-nav a {
  padding: 10px 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,165,90,0.07) 0%, transparent 60%),
    linear-gradient(135deg, #0C0C0A 0%, #1A1612 50%, #0C0C0A 100%);
}

/* Subtle grain texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
  max-width: 700px;
  margin-left: var(--gutter);
}

@media (min-width: 1340px) {
  .hero-content { margin-left: auto; padding-left: calc((100vw - var(--max-w)) / 2 + var(--gutter)); }
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--cream-dim);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

/* --- PILLARS --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillar {
  padding: 56px 48px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--surface); }

.pillar-icon {
  color: var(--gold);
  font-size: 10px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* --- PRODUCT GRID --- */
.featured-section {
  padding: 100px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.product-card {
  display: block;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); }

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__image-wrap img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-card__info {
  padding: 20px 22px 24px;
}

.product-card__type {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 10px;
}

.product-card__pricing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card__price {
  font-size: 14px;
  color: var(--gold);
  font-weight: 400;
}

.product-card__compare {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.section-cta {
  text-align: center;
  margin-top: 56px;
}

/* --- CATEGORY TILES --- */
.categories-section {
  padding: 100px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.categories-section .section-header { max-width: var(--max-w); margin: 0 auto 56px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.category-tile {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
}

.category-tile__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}
.category-tile:hover .category-tile__bg { transform: scale(1.06); }

.category-tile__bg--skincare {
  background: linear-gradient(145deg, #1A1610 0%, #2E2416 60%, #1A1308 100%);
}
.category-tile__bg--bodycare {
  background: linear-gradient(145deg, #12161A 0%, #182028 60%, #0E1216 100%);
}
.category-tile__bg--wellness {
  background: linear-gradient(145deg, #1A1214 0%, #281820 60%, #150E10 100%);
}
.category-tile__bg--home {
  background: linear-gradient(145deg, #111814 0%, #182418 60%, #0C1410 100%);
}

/* Gold geometric overlay */
.category-tile__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(201,165,90,0.12) 0%, transparent 55%);
}

.category-tile__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(12,12,10,0.85) 0%, transparent 50%);
}

.category-tile__content h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 8px;
}

.category-tile__content span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s;
}

/* --- STATEMENT SECTION --- */
.statement-section {
  padding: 120px var(--gutter);
}

.statement-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.statement-quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 36px;
}

.statement-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
}

.statement-attr {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- COLLECTION PAGE --- */
.collection-hero {
  padding: calc(var(--header-h) + 80px) var(--gutter) 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.collection-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.collection-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 8px;
}

.collection-hero__count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.collection-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 100px;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.collection-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.collection-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.collection-nav a:hover,
.collection-nav a.active {
  color: var(--gold);
  border-color: var(--border-light);
}
.collection-nav a.active {
  border-color: var(--gold-dim);
}

.collection-sort select {
  background: var(--surface-2);
  color: var(--cream-dim);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236A6560'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

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

.empty-collection {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}
.empty-collection p { margin-bottom: 24px; }

/* --- PRODUCT PAGE --- */
.product-section {
  padding: calc(var(--header-h) + 60px) var(--gutter) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.gallery-main {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.03); }

.gallery-main--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); }

.product-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}
.product-breadcrumb a { transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--gold); }

.product-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 24px;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.product-price {
  font-size: 26px;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold);
}

.product-compare {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
}

.product-save-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: 4px 10px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.product-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.product-description {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 32px;
}

.product-description__inner {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.8;
}
.product-description__inner p { margin-bottom: 12px; }
.product-description__inner ul { padding-left: 20px; margin-bottom: 12px; }
.product-description__inner li { margin-bottom: 4px; }
.product-description__inner strong { color: var(--cream); font-weight: 500; }

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-meta__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--cream-dim);
}

.product-meta__icon {
  color: var(--gold);
  font-size: 8px;
  flex-shrink: 0;
}

/* --- RELATED PRODUCTS --- */
.related-section {
  padding: 80px var(--gutter) 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.related-section .section-header { max-width: var(--max-w); margin: 0 auto 48px; }

.related-section .product-grid {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* --- ABOUT PAGE --- */
.about-hero {
  padding: calc(var(--header-h) + 100px) var(--gutter) 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.about-hero__inner {
  max-width: 700px;
  margin: 0 auto;
}

.about-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.about-body {
  padding: 80px var(--gutter) 80px;
  max-width: 780px;
  margin: 0 auto;
}

.about-body__inner { display: flex; flex-direction: column; }

.about-block {
  padding: 48px 0;
}

.about-block h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 20px;
}

.about-block p {
  font-size: 16px;
  color: var(--cream-dim);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.about-cta-section {
  padding: 100px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.about-cta__inner h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 36px;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 72px var(--gutter) 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-cols {
  display: flex;
  gap: 72px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--collection { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
}

@media (max-width: 800px) {
  :root { --header-h: 60px; }

  .header-inner { display: none; }
  .header-mobile-inner { display: flex; }
  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .hero-content {
    margin-left: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

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

  .product-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }

  .footer-inner { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 32px; }

  .collection-nav { display: none; }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}
