/* ===========================================================
   ANNA NURSERY — SHARED STYLESHEET
   Used across all pages. Tokens + nav + footer + components.
   =========================================================== */

:root {
  --bg: #F5F4ED;
  --bg-2: #EEECE1;
  --ink: #0F0F0E;
  --ink-2: #2A2A26;
  --muted: #6B6B63;
  --line: rgba(15, 15, 14, 0.1);
  --line-2: rgba(15, 15, 14, 0.2);
  --forest: #0B2818;
  --forest-2: #143B26;
  --green: #2F7D4E;
  --green-bright: #5FC27A;
  --green-glow: #A9EDBE;
  --cream: #FAF8EE;
  --sand: #E6DFC9;
  --warn: #E87A3F;

  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--forest); transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--forest); transform: translateY(-1px); }
.btn-bright { background: var(--green-bright); color: var(--forest); }
.btn-bright:hover { background: var(--green-glow); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-white { background: var(--cream); color: var(--ink); }
.btn-white:hover { background: var(--green-glow); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(245, 244, 237, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nav-logo em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}
.nav-logo .dot {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo .dot::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-bright);
  top: 2px; right: 2px;
  filter: blur(3px);
}
.nav-logo .dot svg { position: relative; z-index: 2; }
.nav-logo .logo-img { height: 40px; width: auto; display: block; }
.footer-brand .nav-logo .logo-img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--cream); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-search {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
}
.nav-search:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-cart:hover { background: var(--forest); }
.nav-cart .badge {
  background: var(--green-bright);
  color: var(--forest);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== SECTION PATTERNS ===== */
.section-head {
  max-width: 1400px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-tag .ic {
  width: 16px; height: 16px;
  background: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 10px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 900px;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--green); }
.section-sub {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
}

/* ===== PAGE HEADER (for inner pages) ===== */
.page-hero {
  padding: 60px 32px 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.breadcrumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-2); }
.breadcrumbs .now { color: var(--ink); }

.page-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.page-title em { font-style: italic; font-weight: 400; color: var(--green); }
.page-sub {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 640px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 32px 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .nav-logo { font-size: 24px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 16px;
  max-width: 280px;
}
.footer-brand .domain {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.footer-brand .domain::before { content: '→ '; color: var(--green); }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.footer-giant {
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(80px, 18vw, 260px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--ink);
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}
.footer-giant em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

/* ===== PRODUCT CARD (reused on shop + home) ===== */
.product {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(15, 15, 14, 0.2);
  border-color: transparent;
}
.product-img {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img.g1 { background: linear-gradient(160deg, #D9E6BD 0%, #9FC78C 100%); }
.product-img.g2 { background: linear-gradient(160deg, #F0E4C8 0%, #D4B881 100%); }
.product-img.g3 { background: linear-gradient(160deg, #FFD0BF 0%, #E87A3F 100%); }
.product-img.g4 { background: linear-gradient(160deg, #CFE3D1 0%, #6B9F7A 100%); }
.product-img.g5 { background: linear-gradient(160deg, #E8DCC8 0%, #A8946B 100%); }
.product-img.g6 { background: linear-gradient(160deg, #C8DBC4 0%, #84A580 100%); }
.product-img.g7 { background: linear-gradient(160deg, #E0E8BE 0%, #A5B970 100%); }
.product-img.g8 { background: linear-gradient(160deg, #F5E0D8 0%, #D4A58B 100%); }
.product-img.g9 { background: linear-gradient(160deg, #D4E8D0 0%, #7BA870 100%); }
.product-img.g10 { background: linear-gradient(160deg, #F0DCC0 0%, #C49870 100%); }

.product-img svg {
  width: 68%; height: 78%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.15));
}
.product:hover .product-img svg { transform: scale(1.07) rotate(-2deg); }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: rgba(250, 248, 238, 0.95);
  color: var(--ink);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.product-badge.new { background: var(--green-bright); color: var(--forest); }
.product-badge.sale { background: var(--warn); color: var(--cream); }

.product-fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(250, 248, 238, 0.95);
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
}
.product-fav:hover { background: var(--cream); transform: scale(1.1); }
.product-fav.liked { background: var(--warn); color: var(--cream); }

.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}
.product-meta .rating svg { color: var(--warn); }
.product-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.product-care {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.product-care span { display: inline-flex; align-items: center; gap: 5px; }
.product-care .ic { width: 14px; height: 14px; color: var(--green); }
.product-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product-price s { color: var(--muted); font-weight: 400; font-size: 16px; margin-right: 6px; }
.product-add {
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-add:hover { background: var(--green); transform: rotate(90deg); }

/* ===== FILTER CHIPS ===== */
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .page-hero { padding: 40px 16px 32px; }
  .section-head { padding: 0 16px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
