/* ============================================================
   lunelle — stylesheet
   soft little moons for your hands.
   ============================================================ */

:root {
  --cream: #FBF4E9;
  --cream-2: #F7EEDD;
  --blush: #F4CCCB;
  --blush-2: #FBE2DC;
  --rose: #E89A9A;
  --rose-dark: #C77878;
  --champagne: #D9B48F;
  --mauve: #C9A9B8;
  --ink: #3A2A2A;
  --whisper: #8A6F6F;
  --line: rgba(58, 42, 42, 0.08);

  --serif: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 40px -20px rgba(58, 42, 42, 0.2);
  --shadow-card: 0 4px 24px -12px rgba(200, 140, 140, 0.35);

  --t: 0.25s cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- base ---------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.04em; }

.italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0 0 1em;
  font-weight: 500;
}

p { margin: 0 0 1em; color: var(--ink); max-width: 62ch; }
.lead { font-size: 1.1rem; color: var(--whisper); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 233, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 0.9rem; letter-spacing: 0.02em;
}
.nav-links a { transition: color var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--rose-dark); }
.nav-brand { justify-self: center; }
.nav-brand img { height: 38px; width: auto; }
.nav-actions {
  justify-self: end;
  display: flex; align-items: center; gap: 20px;
  font-size: 0.88rem;
}
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blush-2);
  transition: background var(--t);
}
.cart-btn:hover { background: var(--blush); }
.cart-count {
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  font-weight: 600;
}
.nav-mobile-toggle { display: none; }

/* ---------- announcement bar ---------- */
.bar {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  will-change: transform;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink); color: var(--cream);
}
.btn-soft {
  background: var(--blush-2);
  color: var(--ink);
}
.btn-soft:hover { background: var(--blush); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--pad) clamp(80px, 12vw, 140px);
  background:
    radial-gradient(ellipse at 80% 20%, var(--blush-2) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, #EADCEF 0%, transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 .italic { color: var(--rose-dark); }
.hero-sub {
  font-size: 1.1rem; color: var(--whisper);
  max-width: 46ch; margin: 0 0 2rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 30%, #fff 0%, transparent 40%),
    linear-gradient(135deg, var(--blush) 0%, #EADCEF 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.hero-visual img { width: 85%; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* floating stars / sparkles */
.sparkle {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0.7;
}
.sparkle svg { width: 100%; height: 100%; }

/* ---------- sections ---------- */
section { padding: clamp(60px, 10vw, 120px) 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head p { margin: 0 auto; color: var(--whisper); }

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card {
  display: block;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--blush-2), var(--cream-2));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 16px 18px 22px; }
.card-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  margin: 0 0 4px;
}
.card-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem;
  color: var(--whisper);
}
.card-price { color: var(--ink); font-weight: 500; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--rose);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge.muted { background: var(--champagne); color: var(--ink); }

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  transition: all var(--t);
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.sort-select {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- pdp (product page) ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding: 40px 0 80px;
}
.pdp-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.pdp-gallery .main {
  grid-column: 1 / -1;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blush-2), var(--cream-2));
  overflow: hidden;
}
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cream-2), var(--blush-2));
  overflow: hidden;
}
.pdp-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.pdp-price {
  font-size: 1.4rem; color: var(--ink); margin: 12px 0 24px;
  font-family: var(--serif);
}
.pdp-desc { color: var(--whisper); max-width: 50ch; }

.option-group { margin: 28px 0; }
.option-label {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 10px;
}
.option-label a { color: var(--rose-dark); text-transform: none; letter-spacing: 0; }
.size-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.size-grid button {
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: all var(--t);
  font-size: 0.9rem;
}
.size-grid button:hover { border-color: var(--ink); }
.size-grid button.active {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

.pdp-meta-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.pdp-meta-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.pdp-meta-list summary {
  cursor: pointer; list-style: none;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.pdp-meta-list summary::after { content: "+"; font-size: 1.3rem; color: var(--whisper); }
.pdp-meta-list details[open] summary::after { content: "–"; }
.pdp-meta-list p { padding-top: 12px; color: var(--whisper); }

/* ---------- cart / checkout ---------- */
.cart-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 100px; height: 100px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blush-2), var(--cream-2));
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body h4 { font-family: var(--serif); font-size: 1.2rem; font-style: italic; margin: 0 0 4px; font-weight: 400; }
.cart-item-meta { color: var(--whisper); font-size: 0.88rem; }
.qty-control {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; margin-top: 8px; font-size: 0.9rem;
}
.qty-control button { padding: 4px 8px; color: var(--whisper); }
.qty-control button:hover { color: var(--ink); }
.remove-btn {
  background: none; color: var(--whisper); font-size: 0.78rem;
  text-decoration: underline; margin-top: 8px; display: inline-block;
}
.remove-btn:hover { color: var(--rose-dark); }
.cart-item-price { font-family: var(--serif); font-size: 1.15rem; }

.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 20px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 10px; padding-top: 18px;
  font-family: var(--serif); font-size: 1.3rem;
}

.empty-cart {
  text-align: center; padding: 80px 20px;
}
.empty-cart h2 { margin-bottom: 12px; }
.empty-cart p { margin: 0 auto 24px; color: var(--whisper); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--blush-2);
}
.checkout-section + .checkout-section { margin-top: 36px; }
.checkout-section h3 {
  font-size: 1.2rem; margin-bottom: 16px; font-family: var(--serif);
}

/* ---------- story / features ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0;
}
.feature { text-align: center; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blush-2);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.feature h4 { margin-bottom: 6px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.feature p { color: var(--whisper); font-size: 0.92rem; margin: 0 auto; max-width: 30ch; }

/* ---------- story block ---------- */
.story {
  background: var(--blush-2);
}
.story-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.story-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 30%, #fff 0%, transparent 50%),
    linear-gradient(135deg, var(--rose) 0%, var(--mauve) 100%);
  box-shadow: var(--shadow-soft);
}
.story blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--ink);
}
.story cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whisper);
}

/* ---------- lookbook strip ---------- */
.lookbook {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lookbook-item {
  aspect-ratio: 1 / 1.2;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blush-2), #EADCEF);
  overflow: hidden;
  position: relative;
}
.lookbook-item:nth-child(2) { background: linear-gradient(135deg, var(--cream-2), var(--blush)); }
.lookbook-item:nth-child(3) { background: linear-gradient(135deg, #EADCEF, var(--mauve)); }
.lookbook-item:nth-child(4) { background: linear-gradient(135deg, var(--blush), var(--rose)); }

/* ---------- newsletter ---------- */
.newsletter {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter h2 { font-style: italic; }
.newsletter form {
  display: flex; gap: 8px; margin-top: 24px;
  background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow-card);
}
.newsletter input {
  flex: 1; border: none; background: transparent;
  padding: 12px 20px; outline: none;
}
.newsletter button {
  padding: 12px 28px; background: var(--ink); color: var(--cream);
  border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.newsletter button:hover { background: var(--rose-dark); }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer a { color: var(--cream); opacity: 0.8; transition: opacity var(--t); }
.footer a:hover { opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(251, 244, 233, 0.15);
}
.footer-brand img { height: 40px; filter: invert(1) brightness(1.2); margin-bottom: 16px; }
.footer-brand p { color: rgba(251, 244, 233, 0.7); max-width: 28ch; }
.footer h5 {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 18px; color: var(--cream);
  opacity: 0.9;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(251, 244, 233, 0.5);
}

/* ---------- hero visual: breadcrumbs and misc ---------- */
.crumbs {
  font-size: 0.82rem; color: var(--whisper);
  margin: 24px 0 0;
}
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; opacity: 0.4; }

/* ---------- story / about page ---------- */
.about-hero {
  padding: 80px 0 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.about-hero h1 { font-style: italic; }
.about-section { padding: 40px 0; }
.about-section .two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blush) 0%, var(--champagne) 100%);
  box-shadow: var(--shadow-soft);
}

/* ---------- confirmation / success ---------- */
.success {
  text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto;
}
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blush-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--cream);
  padding: 14px 22px; border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s;
  z-index: 100;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .pdp, .cart-wrap, .story-inner, .about-section .two-col, .footer-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 20px; }
  .lookbook { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-brand { justify-self: start; }
  .cart-summary { position: static; }
  .form-grid .row-2 { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px 12px 16px; }
  .card-name { font-size: 1rem; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
}
