/* =====================================================
   BaBa Box Marketplace — Shared styles
   Brand tokens lifted from /index.html landing page
   ===================================================== */

:root {
  /* Brand */
  --forest: #2C3E2D;
  --forest-dim: #3a4f3b;
  --sage:   #5B7553;
  --sage-soft: #8aa481;
  --dand:   #D4A847;
  --dand-soft: #e7c878;
  --cream:  #FAF6EE;
  --cream-deep: #F1EADC;
  --psage:  #E8EDE3;
  --char:   #2D2D2D;
  --mid:    #555F6D;
  --soft:   #7c8794;
  --line:   #DAD5C7;
  --white:  #FFFFFF;

  /* Layout */
  --maxw: 1240px;
  --r: 2px;
  --r-md: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--char);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Typography */
.serif { font-family: 'Fraunces', serif; }
.eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage);
}
.dand-eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dand);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600; color: var(--forest); line-height: 1.15;
}
.section-sub {
  font-size: 0.95rem; color: var(--mid); margin-top: 0.5rem;
  max-width: 600px; line-height: 1.7; font-weight: 300;
}

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest);
  overflow: visible;
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-left { display: flex; align-items: center; gap: 2.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-mono {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.nav-name {
  font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 1.7rem; align-items: center; }
.nav-link {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(232,237,227,0.7);
  transition: color 0.15s;
  padding: 0.3rem 0;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active {
  border-bottom: 1px solid var(--dand); padding-bottom: 0.15rem;
}
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-search {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 0.5rem 0.85rem 0.5rem 2.1rem;
  color: var(--white); font-size: 0.82rem;
  width: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='M21 21l-4.35-4.35'/></svg>");
  background-repeat: no-repeat; background-position: 0.7rem center;
}
.nav-search::placeholder { color: rgba(255,255,255,0.5); }
.nav-icon-btn {
  background: none; border: none; color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 0.35rem; position: relative;
}
.nav-icon-btn:hover { color: var(--white); }
.nav-studio-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--sage); text-decoration: none;
  border: 1px solid var(--sage);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-studio-btn:hover { background: var(--sage); color: var(--white); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  border: 1px solid var(--dand-soft);
}
.cart-dot {
  position: absolute; top: 2px; right: 2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dand); border: 1px solid var(--forest);
}

/* ── PAGE WRAP ─────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block; text-align: center;
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.9rem; border-radius: var(--r);
  border: 1px solid transparent;
  transition: opacity 0.15s, transform 0.12s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--dand); color: var(--white); border-color: var(--dand); }
.btn-gold:hover { opacity: 0.92; }
.btn-forest { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-dim); }
.btn-outline-forest {
  background: transparent; color: var(--forest); border-color: var(--forest);
}
.btn-outline-forest:hover { background: var(--forest); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--mid); border-color: var(--line);
}
.btn-ghost:hover { background: var(--cream-deep); color: var(--forest); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.72rem; }
.btn-block { display: block; width: 100%; }

/* ── HERO ──────────────────────────────────── */
.hero {
  background: var(--forest);
  color: var(--white);
  padding: 5rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(91,117,83,0.32) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 600; line-height: 1.05; margin-bottom: 1.25rem; letter-spacing: -0.01em;
}
.hero-title em { color: var(--dand); font-style: italic; }
.hero-sub {
  font-size: 1.02rem; font-weight: 300;
  color: rgba(232,237,227,0.82); max-width: 480px; line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.hero-pill {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(232,237,227,0.7); border: 1px solid rgba(232,237,227,0.2);
  padding: 0.35rem 0.9rem; border-radius: 999px;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.hero-card {
  background: rgba(232,237,227,0.06);
  border: 1px solid rgba(232,237,227,0.12);
  border-radius: var(--r-md);
  padding: 2rem;
  width: 100%; max-width: 420px;
  backdrop-filter: blur(4px);
}
.hero-card-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dand); margin-bottom: 0.85rem;
}
.hero-card-title {
  font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.5rem; line-height: 1.15;
}
.hero-card-meta { font-size: 0.85rem; color: rgba(232,237,227,0.6); margin-bottom: 1.25rem; }
.mini-player {
  display: flex; align-items: center; gap: 0.85rem;
  background: rgba(0,0,0,0.18); border-radius: var(--r);
  padding: 0.7rem 0.9rem; margin-top: 1rem;
}
.mini-play {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dand); color: var(--forest);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.mini-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.12); border-radius: 999px; position: relative; }
.mini-bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: var(--dand); border-radius: 999px; }
.mini-time { font-size: 0.72rem; color: rgba(232,237,227,0.55); font-variant-numeric: tabular-nums; }

/* ── SECTIONS ────────────────────────────────── */
section { padding: 4rem 2rem; }
section.tight { padding: 2.5rem 2rem; }
.section-head {
  max-width: var(--maxw); margin: 0 auto 2rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.section-head-left { max-width: 640px; }
.see-all {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; border-bottom: 1px solid var(--sage);
  padding-bottom: 0.15rem;
}
.see-all:hover { color: var(--forest); border-color: var(--forest); }

/* ── CATEGORY STRIP ──────────────────────────── */
.cat-strip {
  background: var(--psage);
  padding: 1.5rem 2rem;
}
.cat-strip-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 0.5rem; overflow-x: auto;
  scrollbar-width: thin;
}
.cat-chip {
  flex-shrink: 0;
  background: var(--white); color: var(--forest);
  border: 1px solid var(--line);
  padding: 0.6rem 1.1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
  transition: background 0.15s, color 0.15s;
}
.cat-chip:hover, .cat-chip.is-active {
  background: var(--forest); color: var(--white); border-color: var(--forest);
}
.cat-chip-emoji { font-size: 1rem; }

/* ── TOKEN GRID ────────────────────────────── */
.token-shelf {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.token-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.token-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -10px rgba(44,62,45,0.18); }
.token-art {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.token-art-emoji { font-size: 3.5rem; opacity: 0.85; }
.token-art-overlay {
  position: absolute; left: 0.65rem; top: 0.65rem;
  background: rgba(44,62,45,0.85); color: var(--white);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px;
}
.token-art-lang {
  position: absolute; right: 0.65rem; top: 0.65rem;
  background: var(--white); color: var(--forest);
  font-size: 0.62rem; letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line);
}
.token-body { padding: 1rem 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.token-title {
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  font-weight: 600; color: var(--forest); line-height: 1.2; margin-bottom: 0.25rem;
}
.token-creator { font-size: 0.78rem; color: var(--mid); margin-bottom: 0.65rem; }
.token-creator a, .token-creator .creator-link { color: var(--sage); font-weight: 500; }
.token-creator a:hover, .token-card:hover .token-creator .creator-link { color: var(--forest); }
.token-meta {
  display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.72rem; color: var(--soft);
  padding-top: 0.5rem;
}
.token-meta-sep { color: var(--line); }
.token-price {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 600; color: var(--dand);
  margin-top: auto; padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.token-price .token-tracks {
  font-family: 'Inter', sans-serif; font-size: 0.68rem;
  font-weight: 400; color: var(--soft); letter-spacing: 0.04em;
}

/* Art backgrounds */
.bg-forest    { background: linear-gradient(135deg, #c5d6b8 0%, #8aa481 100%); }
.bg-sky       { background: linear-gradient(135deg, #cde0e8 0%, #92b6c4 100%); }
.bg-sunset    { background: linear-gradient(135deg, #f6d8b4 0%, #d4a847 100%); }
.bg-night     { background: linear-gradient(135deg, #3a4f5e 0%, #1f2b35 100%); }
.bg-meadow    { background: linear-gradient(135deg, #e7e0b4 0%, #b3b67a 100%); }
.bg-river     { background: linear-gradient(135deg, #b9d6cf 0%, #6a9d92 100%); }
.bg-blush     { background: linear-gradient(135deg, #f5d8d2 0%, #d99c8e 100%); }
.bg-lilac     { background: linear-gradient(135deg, #d9d3e9 0%, #9c91c4 100%); }
.bg-sand      { background: linear-gradient(135deg, #efe1c8 0%, #c4a672 100%); }
.bg-deep      { background: linear-gradient(135deg, #5B7553 0%, #2C3E2D 100%); }
.bg-warm      { background: linear-gradient(135deg, #f5dec2 0%, #d49b6c 100%); }
.bg-cream     { background: linear-gradient(135deg, #f4ead7 0%, #d4b888 100%); }

/* ── CREATORS SECTION ───────────────────────── */
.creators-row {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.creator-card {
  background: var(--cream-deep); border-radius: var(--r-md);
  padding: 1.5rem; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.18s;
}
.creator-card:hover { transform: translateY(-3px); }
.creator-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--white); margin-bottom: 1rem;
}
.creator-name {
  font-family: 'Fraunces', serif; font-size: 1.25rem;
  font-weight: 600; color: var(--forest); line-height: 1.2; margin-bottom: 0.15rem;
}
.creator-role {
  font-size: 0.78rem; color: var(--sage); font-weight: 500;
  letter-spacing: 0.05em; margin-bottom: 0.85rem;
}
.creator-bio {
  font-size: 0.82rem; color: var(--mid); line-height: 1.65; flex: 1;
  margin-bottom: 1rem;
}
.creator-stats {
  display: flex; gap: 1rem;
  font-size: 0.72rem; color: var(--soft);
  padding-top: 0.85rem; border-top: 1px solid var(--line);
}
.creator-stat strong {
  color: var(--forest); font-weight: 600; font-size: 0.85rem;
  display: block; font-family: 'Fraunces', serif;
}

/* Creator avatar colors */
.av-sage    { background: var(--sage); }
.av-dand    { background: var(--dand); color: var(--forest); }
.av-forest  { background: var(--forest); }
.av-blush   { background: #b85c52; }
.av-plum    { background: #6b4e7d; }
.av-ocean   { background: #4a7c8c; }
.av-sun     { background: #d18b3c; }
.av-leaf    { background: #6b8e4e; }

/* ── GOODS GRID ───────────────────────────── */
.goods-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.good-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.good-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -10px rgba(44,62,45,0.18); }
.good-art {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.good-body { padding: 1.1rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.good-tag {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dand); margin-bottom: 0.4rem; font-weight: 500;
}
.good-title {
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  font-weight: 600; color: var(--forest); line-height: 1.2; margin-bottom: 0.4rem;
}
.good-pair {
  font-size: 0.78rem; color: var(--mid); margin-bottom: 0.85rem;
}
.good-pair em { color: var(--sage); font-style: normal; font-weight: 500; }
.good-foot {
  margin-top: auto; padding-top: 0.85rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--line);
}
.good-price {
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  font-weight: 600; color: var(--forest);
}
.good-add {
  background: var(--forest); color: var(--white);
  border: none; padding: 0.55rem 1rem;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--r); transition: background 0.15s;
}
.good-add:hover { background: var(--dand); }

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--forest); color: rgba(232,237,227,0.7);
  padding: 4rem 2rem 2rem; margin-top: 3rem;
}
.foot-inner { max-width: var(--maxw); margin: 0 auto; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.foot-brand {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
}
.foot-mono {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--dand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.82rem;
}
.foot-name {
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  font-weight: 600; color: var(--white);
}
.foot-tag {
  font-size: 0.85rem; max-width: 320px; line-height: 1.7; font-weight: 300;
}
.foot-col h5 {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dand); margin-bottom: 1rem; font-weight: 500;
}
.foot-col a {
  display: block; font-size: 0.85rem; margin-bottom: 0.55rem;
  color: rgba(232,237,227,0.7); font-weight: 300;
}
.foot-col a:hover { color: var(--white); }
.foot-rule { border-top: 1px solid rgba(232,237,227,0.1); padding-top: 1.5rem; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(232,237,227,0.45);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-search { display: none; }
  .nav-left { gap: 1.2rem; }
  .nav-links { gap: 1rem; }
}
@media (max-width: 600px) {
  .nav { padding: 0.8rem 1rem; }
  .nav-links { display: none; }
  section { padding: 3rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
