/* Luna & Lane — boutique storefront styles (dependency-free) */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6f6a63;
  --accent: #b4542f;
  --accent-dark: #96431f;
  --line: #e9e1d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 27, 24, 0.08);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--muted);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 0 0 24px 24px; overflow: hidden;
  min-height: 520px; display: flex; align-items: flex-end;
  background: #2a2622;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.75;
}
.hero-content {
  position: relative; padding: 64px 0; color: #fff; max-width: 640px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.75rem; font-weight: 600; color: #f3d9c8; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08; font-weight: 700; margin-bottom: 16px;
}
.hero p { font-size: 1.1rem; color: #f5ede3; margin-bottom: 28px; max-width: 480px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(29,27,24,0.13); }
.card-img { aspect-ratio: 3/4; overflow: hidden; background: #efe9dd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.7rem; font-weight: 600; color: var(--accent);
}
.card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.card-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.card-cta {
  margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Category filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; color: var(--muted); transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0 72px; align-items: start; }
.detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.detail-info .card-cat { margin-bottom: 10px; display: block; }
.detail-info h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 16px; }
.detail-info > p { color: var(--muted); margin-bottom: 22px; font-size: 1.05rem; }
.highlights { list-style: none; margin-bottom: 30px; }
.highlights li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.highlights li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.buy-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px;
}
.buy-box .note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 28px 0 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Value props ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prop {
  background: var(--surface); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); text-align: center;
}
.prop .icon { font-size: 1.9rem; margin-bottom: 12px; }
.prop h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.prop p { font-size: 0.9rem; color: var(--muted); }

/* ---------- About / disclosure ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; text-align: center; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 34px 0 12px; }
.prose p { color: #3d3833; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: #3d3833; }
.page-hero { text-align: center; padding: 64px 0 8px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 48px 0 28px; background: #f5efe5;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; color: var(--muted); }
.footer-grid a { display: block; text-decoration: none; font-size: 0.92rem; color: #3d3833; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand span { color: var(--accent); }
.affiliate-note {
  font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line);
  padding-top: 22px; line-height: 1.7;
}

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; font-size: 0.92rem; }
.admin-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-table tr:nth-child(even) td { background: #faf6ee; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .props { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-cards { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line); gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 52px 0; }
}
