/* DTC / Shopify demos — contemporary retail · two brand palettes · mobile-first */
/* Default tokens overwritten by body.lumen-goods / body.ridge-supply */

:root {
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --wrap: 1040px;
  --pad: max(1.25rem, env(safe-area-inset-left, 0px));
  --pad-r: max(1.25rem, env(safe-area-inset-right, 0px));
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* —— Lumen Goods: warm contemporary home / lifestyle —— */
body.lumen-goods {
  --bg: #F7F3EE;
  --surface: #FFFEFB;
  --ink: #1A1714;
  --muted: #6B635B;
  --border: #E6DFD6;
  --accent: #C45C3A;
  --accent-deep: #A3482C;
  --accent-soft: #F3E0D8;
  --accent-text: #FFFFFF;
  --nav-bg: rgba(247, 243, 238, 0.92);
  --hero-ink: #FFFEFB;
  --card: #FFFEFB;
  --ok: #2F6B3E;
  --star: #C45C3A;
  --chip: #EDE6DE;
  --price: #1A1714;
  --sticky-bg: rgba(247, 243, 238, 0.96);
}

/* —— Ridge Supply: outdoor / gear —— */
body.ridge-supply {
  --bg: #F4F6F3;
  --surface: #FFFFFF;
  --ink: #142018;
  --muted: #5A665E;
  --border: #D7DED8;
  --accent: #2F5D3A;
  --accent-deep: #23482C;
  --accent-soft: #DCE8DF;
  --accent-text: #FFFFFF;
  --nav-bg: rgba(244, 246, 243, 0.92);
  --hero-ink: #F4F6F3;
  --card: #FFFFFF;
  --ok: #2F5D3A;
  --star: #C4A035;
  --chip: #E4EBE5;
  --price: #142018;
  --sticky-bg: rgba(244, 246, 243, 0.96);
  --ridge-amber: #C4A035;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card:hover .product-media,
  .pdp-media:hover { transform: none; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5.5rem;
}

.wrap {
  width: min(100% - var(--pad) - var(--pad-r), var(--wrap));
  margin-inline: auto;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

/* Nav */
.dd-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.dd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  padding: 0.45rem 0;
}
.dd-logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--ink);
}
.dd-logo span { color: var(--accent); }
.dd-nav nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dd-nav nav > a:not(.btn) {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 560px) {
  .dd-nav nav > a:not(.btn) { display: none; }
}
.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--chip);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.cart-chip em {
  font-style: normal;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 999px;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-shop {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-shop:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-block { width: 100%; margin-top: 0.55rem; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Compact faded photo hero ≤320px */
section.hero.photo-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  min-height: 0;
  height: clamp(220px, 32vh, 320px);
  max-height: 320px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* .hero-photo retired — real photo via .hero-bg img */







.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.45) 42%, rgba(10,10,10,.15) 68%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--hero-ink);
  padding: 1.1rem 0;
  max-width: 34rem;
}
.hero .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 0.4rem;
}
.hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero .lede {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
  max-width: 28rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.hero .btn-shop {
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.hero .btn-ghost {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* Sections */
.pad { padding: 2.25rem 0; }
.pad.soft { background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg)); }
.section-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.pad h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}
.muted { color: var(--muted); font-size: 0.95rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
}
.product-media {
  aspect-ratio: 1 / 1;
  background: var(--chip);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media { transform: scale(1.03); }
.product-media .swatch {
  position: absolute;
  inset: 12% 12% 18% 12%;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.product-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.product-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.product-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.product-price {
  margin-top: auto;
  padding-top: 0.45rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--price);
}
.product-tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--ink);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Brand product washes */
body.lumen-goods .swatch-vase {
  background: linear-gradient(145deg, #f5ebe0 0%, #d4a574 45%, #8b5a45 100%);
}
body.lumen-goods .swatch-lamp {
  background: linear-gradient(160deg, #fff8f0 0%, #e8d4bc 40%, #c45c3a 100%);
  border-radius: 50% 50% 12px 12px;
}
body.lumen-goods .swatch-throw {
  background: linear-gradient(120deg, #ede6de 0%, #c4a882 50%, #6b635b 100%);
}
body.lumen-goods .swatch-candle {
  background: linear-gradient(180deg, #fff 0%, #f3e0d8 40%, #c45c3a 90%);
  border-radius: 40% 40% 12px 12px;
}

body.ridge-supply .swatch-pack {
  background: linear-gradient(145deg, #2F5D3A 0%, #1A2E20 55%, #C4A035 110%);
}
body.ridge-supply .swatch-bottle {
  background: linear-gradient(180deg, #d8e4d4 0%, #5a8a62 50%, #142018 100%);
  border-radius: 40% 40% 18% 18%;
}
body.ridge-supply .swatch-shell {
  background: linear-gradient(135deg, #E4EBE5 0%, #8a9a88 40%, #2F5D3A 100%);
}
body.ridge-supply .swatch-rope {
  background: linear-gradient(90deg, #C4A035 0%, #8a7020 40%, #2F5D3A 100%);
  border-radius: 8px;
}

/* PDP-ish */
.pdp-grid {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 720px) {
  .pdp-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 2rem;
  }
}
.pdp-media {
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--chip);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.pdp-media:hover { transform: scale(1.01); }
.pdp-media .swatch {
  position: absolute;
  inset: 10% 12% 14% 12%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}
.pdp-info .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.pdp-info h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.pdp-info .pdp-price {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.pdp-info .desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.pdp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.pdp-meta span {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
}
.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pdp-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Story */
.story-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .story-row {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
  }
}
.story-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.story-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.story-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.story-art {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
body.lumen-goods .story-art {
  background:
    radial-gradient(circle at 70% 40%, rgba(196, 92, 58, 0.35), transparent 45%),
    linear-gradient(135deg, #2A221C, #8B5A45 60%, #F3E0D8);
}
body.ridge-supply .story-art {
  background:
    radial-gradient(circle at 30% 60%, rgba(196, 160, 53, 0.4), transparent 45%),
    linear-gradient(135deg, #0E1A12, #2F5D3A 55%, #C4A035);
}

/* Reviews — RMD style (neighbor quotes, not Google widgets) */
.review-cards {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .review-cards { grid-template-columns: repeat(3, 1fr); }
}
.review-cards .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin: 0;
  box-shadow: var(--shadow);
}
.review-cards .stars {
  display: block;
  color: var(--star);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}
.review-cards p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.review-cards footer {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* Form */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 28rem;
  box-shadow: var(--shadow);
}
.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.form-card input,
.form-card textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.form-ok {
  margin: 0.75rem 0 0;
  color: var(--ok);
  font-weight: 650;
  font-size: 0.9rem;
}

/* Footer + sticky */
.dd-footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.dd-footer a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}
.dd-footer a:hover { text-decoration: underline; }
.dd-footer .by {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem max(1rem, env(safe-area-inset-left)) calc(0.65rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  background: var(--sticky-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.sticky .btn { flex: 1; }
@media (min-width: 860px) {
  .sticky { display: none; }
  body { padding-bottom: 0; }
}
