/* ============================================================
   FUSSY FINDS — Warm & Joyful Design System
   Target: Instagram moms, home & food influencers
   Vibe: Caraway · Little Spoon · Our Place · Sunday Citizen
   ============================================================ */

:root {
  --ff-bg:           #FFFCF7;
  --ff-bg-2:         #F7F2EA;
  --ff-card:         #FFFFFF;
  --ff-ink:          #2D2417;
  --ff-ink-2:        #5C4F3A;
  --ff-muted:        #A89880;
  --ff-line:         #EDE5D8;

  --ff-accent:       #E4439C;
  --ff-accent-ink:   #FFFFFF;
  --ff-accent-subtle:#FDE8F3;

  --ff-lime:         #E8F5D8;
  --ff-lav:          #EDE0FF;
  --ff-sky:          #DDF0FF;
  --ff-sun:          #FFF3CC;
  --ff-pink:         #FFE4F0;
  --ff-mint:         #D8F5EC;
  --ff-peach:        #FFE8DC;
  --ff-teal:         #1D9E75;

  --ff-shadow:       0 2px 8px rgba(180,140,100,.08), 0 8px 24px rgba(180,140,100,.06);
  --ff-shadow-lg:    0 4px 12px rgba(180,140,100,.10), 0 20px 48px rgba(180,140,100,.12);
  --ff-shadow-sm:    0 1px 4px rgba(180,140,100,.10);

  --ff-radius:       16px;
  --ff-radius-lg:    24px;
  --ff-border:       1.5px solid var(--ff-line);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  background: var(--ff-bg);
  color: var(--ff-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.65;
}

h1, h2, h3, h4, .ff-display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}

button  { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
a       { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Buttons */
.ff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  border-radius: 999px;
  border: 1.5px solid var(--ff-line);
  background: var(--ff-card);
  color: var(--ff-ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  white-space: nowrap; box-shadow: none; user-select: none;
}
.ff-btn:hover  { background: var(--ff-bg-2); border-color: #C8BAA4; transform: translateY(-1px); }
.ff-btn:active { transform: translateY(0); opacity: .9; }

.ff-btn--primary {
  background: var(--ff-accent); color: #fff; border-color: transparent;
  box-shadow: 0 4px 18px rgba(228,67,156,.22);
}
.ff-btn--primary:hover {
  background: #cc2f8a; border-color: transparent; color: #fff;
  box-shadow: 0 6px 22px rgba(228,67,156,.30);
}
.ff-btn--ink {
  background: var(--ff-ink); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(45,36,23,.18);
}
.ff-btn--ink:hover {
  background: #3d3220; border-color: transparent; color: #fff;
  box-shadow: 0 6px 20px rgba(45,36,23,.24);
}
.ff-btn--ghost { border-color: transparent; background: transparent; box-shadow: none; }
.ff-btn--ghost:hover { background: var(--ff-bg-2); box-shadow: none; transform: none; }
.ff-btn--sm    { padding: 9px 20px; font-size: 13px; }
.ff-btn--block { width: 100%; }
.ff-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Inputs */
.ff-input {
  width: 100%; padding: 13px 18px;
  border: 1.5px solid var(--ff-line); border-radius: 12px;
  background: var(--ff-card); color: var(--ff-ink); font-size: 14px;
  outline: none; transition: border-color .15s, box-shadow .15s; box-shadow: none;
}
.ff-input:hover { border-color: #C8BAA4; }
.ff-input:focus { border-color: var(--ff-accent); box-shadow: 0 0 0 3px rgba(228,67,156,.10); }
.ff-input::placeholder { color: var(--ff-muted); }

.ff-label {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ff-ink-2); display: block; margin-bottom: 7px;
}

/* Chips */
.ff-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--ff-bg-2); color: var(--ff-ink-2); user-select: none;
}
.ff-chip--viral { background: #FFF3CC; color: #7A5800; border-color: #F5D878; }
.ff-chip--new   { background: var(--ff-lav); color: #4A3080; border-color: #C8A8F8; }
.ff-chip--best  { background: var(--ff-peach); color: #8B3010; border-color: #F8C0A0; }
.ff-chip--low   { background: var(--ff-pink); color: #8B0040; border-color: #F0A0C8; }

/* Cards */
.ff-card {
  background: var(--ff-card); border: 1.5px solid var(--ff-line);
  border-radius: var(--ff-radius-lg); box-shadow: var(--ff-shadow);
  transition: box-shadow .22s ease, transform .22s ease;
}
.ff-card:hover { box-shadow: var(--ff-shadow-lg); transform: translateY(-2px); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ff-line); border-radius: 99px; }

/* Product placeholder */
.ff-ph {
  position: relative; overflow: hidden;
  background: var(--ph-color, #F5EDE3);
  display: flex; align-items: flex-end; padding: 12px;
}
.ff-ph::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.22) 0%, transparent 65%);
  pointer-events: none;
}
.ff-ph__tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 4px 8px; background: rgba(45,36,23,.6);
  backdrop-filter: blur(8px); color: rgba(255,255,255,.92);
  border-radius: 8px; letter-spacing: .04em; position: relative; z-index: 1;
}

/* Marquee */
@keyframes ffMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ff-marquee {
  overflow: hidden; background: var(--ff-ink); color: rgba(255,255,255,.55);
  border-top: 1.5px solid rgba(255,255,255,.06);
  border-bottom: 1.5px solid rgba(255,255,255,.06);
}
.ff-marquee__track {
  display: flex; gap: 56px; padding: 13px 0; white-space: nowrap;
  animation: ffMarquee 48s linear infinite; width: max-content;
}
.ff-marquee__item {
  font-weight: 500; letter-spacing: .08em; font-size: 12px;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 18px;
}
.ff-marquee__star { color: var(--ff-accent); font-size: 14px; }

/* Rainbow */
.ff-rainbow {
  height: 4px;
  background: linear-gradient(90deg, #F4A261 0 20%, #E76F51 20% 40%, var(--ff-accent) 40% 60%, #9B6AB5 60% 80%, #52B788 80% 100%);
}

/* Utility */
.ff-hide { display: none !important; }
@media (max-width: 820px)  { .ff-hide-mobile { display: none !important; } }
@media (min-width: 821px)  { .ff-show-mobile { display: none !important; } }
.ff-stars { display: inline-flex; gap: 2px; color: var(--ff-ink); }
.ff-stars svg { width: 13px; height: 13px; }

/* Toast */
@keyframes ffToastIn {
  from { transform: translateY(12px) translateX(-50%); opacity: 0; }
  to   { transform: translateY(0)    translateX(-50%); opacity: 1; }
}
.ff-toast { animation: ffToastIn .24s cubic-bezier(.34,1.56,.64,1); }

/* Motion */
@keyframes ffFade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes ffPop     { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes ffSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ffSpin    { to { transform: rotate(360deg); } }
@keyframes ffPulse   { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.ff-spin { animation: ffSpin .75s linear infinite; }
.ff-chip, .ff-btn { user-select: none; }

/* Responsive */
@media (max-width: 1020px) {
  .ff-hero-grid, .ff-shop-grid, .ff-pdp-grid, .ff-three-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .ff-footer-grid { grid-template-columns: 1fr 1fr !important; }
  .ff-checkout-grid { grid-template-columns: 1fr !important; }
  .ff-order-grid { grid-template-columns: 1fr !important; }
}
