/* ============================================
   Claybead Cuties
   Palette: sage + forest green, warm beige, cream
   ============================================ */

:root {
  --ink: #2c3a2a;
  --ink-soft: #5f6b5a;
  --green: #4f7349;
  --green-dark: #3e5c39;
  --sage: #8fae7e;
  --sage-tint: #e4edde;
  --beige: #e6d3b3;
  --beige-tint: #f1e6d2;
  --cream: #faf5ea;
  --white: #ffffff;
  --clay: #e2a08c;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(44, 58, 42, 0.22);
  --shadow-soft: 0 10px 30px -12px rgba(44, 58, 42, 0.14);
  --font-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, sans-serif;
  --font-display: "Fredoka", "Plus Jakarta Sans", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 12px;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

section { padding: 80px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(79, 115, 73, 0.55);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(44, 58, 42, 0.18);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 234, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 58, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo img { height: 48px; width: auto; }
.logo .accent { color: var(--green); }
.logo-beads { display: inline-flex; gap: 3px; }
.logo-beads i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--sage);
}
.logo-beads i:nth-child(2) { background: var(--beige); }
.logo-beads i:nth-child(3) { background: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { text-decoration: none; color: var(--green); }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.cart-btn svg { width: 20px; height: 20px; }

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 80px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 .accent { color: var(--green); }
.hero .lede { margin: 20px 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }

.hero-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--sage-tint) 0%, var(--beige-tint) 100%);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}
.hero-card svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-sticker {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  transform: rotate(-4deg);
}

/* ---------- Perks ---------- */

.perks { padding: 0 0 20px; }

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.perk {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.perk .icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.perk h3 { font-size: 1.05rem; margin-bottom: 2px; }
.perk p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }

/* ---------- Shop ---------- */

.shop-head { margin-bottom: 28px; }
.shop-head .lede { margin-top: 10px; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}

.chip {
  border: 2px solid rgba(44, 58, 42, 0.14);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { border-color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

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

.product {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--beige-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product:nth-child(even) .product-media { background: var(--sage-tint); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 78%; height: 78%; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
}
.badge.sold { background: var(--ink-soft); }

.product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-body h3 { font-size: 1.08rem; }
.product-body p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; flex: 1; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.price { font-weight: 800; font-size: 1.1rem; }
.product-foot .btn { padding: 10px 18px; font-size: 0.9rem; box-shadow: none; }

.shop-error { text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }

/* ---------- About ---------- */

.about { background: var(--beige-tint); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-card {
  border-radius: var(--radius-lg);
  background: var(--sage);
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
}
.about-card svg { width: 80%; height: 100%; }

.about p { color: var(--ink-soft); margin-top: 16px; max-width: 58ch; }
.about .btn { margin-top: 26px; }

/* ---------- Custom CTA ---------- */

.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 54px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band p { opacity: 0.9; max-width: 52ch; margin: 12px auto 26px; }
.cta-band .btn { background: #fff; color: var(--green-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 50px 0 34px;
  font-size: 0.93rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-grid .logo { color: #fff; margin-bottom: 10px; }
.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-small {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(44, 58, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  width: min(420px, 100%);
  background: var(--cream);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
}
.cart.open { transform: none; visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(44, 58, 42, 0.1);
}
.cart-head h2 { font-size: 1.4rem; }

.cart-close {
  background: var(--white);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 22px;
  list-style: none;
}

.cart-empty { text-align: center; color: var(--ink-soft); padding: 50px 0; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(44, 58, 42, 0.08);
}
.cart-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--beige-tint);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb svg { width: 80%; height: 80%; }
.cart-item h3 { font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0; }
.cart-item .line-price { font-weight: 800; }

.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.qty button {
  width: 34px; height: 34px;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.92rem; }

.cart-foot {
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(44, 58, 42, 0.1);
  background: var(--white);
}
.cart-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--ink-soft); }
.cart-row.total { color: var(--ink); font-weight: 800; font-size: 1.12rem; margin: 8px 0 14px; }
.cart-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.cart-nudge {
  background: var(--sage-tint);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 12px;
  text-align: center;
  margin-bottom: 12px;
}
.cart-error { color: #a33a2a; font-size: 0.88rem; text-align: center; margin-top: 10px; }

/* ---------- Simple pages (info, success, 404) ---------- */

.page { padding: 64px 0 90px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink-soft); margin-bottom: 12px; }
.page ul { padding-left: 22px; }

.message-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 54px 34px;
  text-align: center;
}
.message-card .big { font-size: 3rem; margin-bottom: 10px; }
.message-card p { max-width: 46ch; margin: 0 auto 26px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card svg { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-sticker { left: 0; }
  .perks-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(44, 58, 42, 0.1);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 1.2rem; }
  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 10px 14px; }
  .hero-ctas { flex-direction: column; }
  .announce { font-size: 0.8rem; }
  .product-body { padding: 12px 12px 14px; }
  .product-body h3 { font-size: 0.98rem; }
  .product-body p { font-size: 0.84rem; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .product-foot .btn { width: 100%; }
  .cta-band { padding: 40px 22px; }
}
