/* Luna Charms — shared site styles (draft mock) */
:root {
  --ground: #f6f0ea;
  --ink: #1c1917;
  --champagne: #b8956c;
  --soft-rose: #c9a0a0;
  --pearl: #faf7f2;
  --mist: #8a847c;
  --night: #2a2438;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--champagne); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 240, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 149, 108, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink);
  position: relative;
  padding: 0.2rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--champagne);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--champagne);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(184, 149, 108, 0.45);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink) !important;
  background: var(--pearl);
}

.cart-link:hover {
  border-color: var(--champagne);
  color: var(--champagne) !important;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--soft-rose);
  color: var(--pearl);
  font-size: 0.72rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(184, 149, 108, 0.4);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 3.5px 0;
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 16ch;
  margin-inline: auto;
  color: var(--ink);
}

.hero-secondary {
  font-size: 1.05rem;
  color: var(--mist);
  margin: 0 auto 2rem;
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--pearl) !important;
}

.btn-primary:hover {
  background: var(--night);
  color: var(--pearl) !important;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(184, 149, 108, 0.55);
  color: var(--ink) !important;
}

.btn-ghost:hover {
  border-color: var(--champagne);
  color: var(--champagne) !important;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--champagne);
  margin: 2.5rem auto 0;
  border: 0;
}

/* —— Sections —— */
.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--champagne) !important;
}

.section-link:hover { text-decoration: underline; }

/* —— Category cards —— */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cat-card {
  background: var(--pearl);
  border: 1px solid rgba(184, 149, 108, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.cat-card:hover {
  border-color: var(--champagne);
  transform: translateY(-2px);
}

.cat-card img {
  width: 48px;
  height: 48px;
}

.cat-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  margin: 0;
}

.cat-card p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
  flex: 1;
}

.cat-card .cat-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--champagne);
}

/* —— Product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--pearl);
  border: 1px solid rgba(184, 149, 108, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(184, 149, 108, 0.45);
  transform: translateY(-2px);
}

.product-media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--ground) 0%, #ebe4db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-media .swatch {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.06);
}

.product-media .label-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.9);
  color: var(--mist);
  border: 1px solid rgba(184, 149, 108, 0.25);
}

.product-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.product-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.product-meta {
  font-size: 0.82rem;
  color: var(--mist);
  margin: 0 0 0.65rem;
}

.product-price {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.product-price span {
  color: var(--champagne);
  font-weight: 500;
}

/* Collection page hero */
.page-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--mist);
}

.page-hero .rule {
  width: 40px;
  height: 1px;
  background: var(--champagne);
  margin: 1.5rem auto 0;
  border: 0;
}

/* About */
.about-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.about-block h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 0.75rem;
}

.about-lead {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--champagne);
  margin: 0 0 2rem;
}

.about-block p {
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.about-note {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--pearl);
  border-left: 3px solid var(--soft-rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  color: var(--mist);
}

.about-note strong {
  color: var(--ink);
  font-weight: 500;
}

/* —— Footer —— */
.site-footer {
  background: var(--night);
  color: #e8e2da;
  margin-top: 3rem;
  padding: 2.75rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.footer-domain {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #faf7f2;
}

.footer-voice {
  font-size: 0.95rem;
  color: var(--soft-rose);
  font-style: italic;
  max-width: 36ch;
}

.footer-meta {
  font-size: 0.78rem;
  color: #9a948c;
  letter-spacing: 0.04em;
}

.footer-meta span + span::before {
  content: " · ";
  color: rgba(184, 149, 108, 0.6);
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--pearl);
    border-bottom: 1px solid rgba(184, 149, 108, 0.25);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(184, 149, 108, 0.12);
  }

  .nav .cart-link {
    margin-top: 0.5rem;
    justify-content: center;
    border-bottom: none;
  }

  .header-inner { position: relative; }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3rem 0 2.5rem; }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }
}
