/* =========================================================
   Kawaii Crochet — Design System premium (mobile-first)
   ========================================================= */

:root {
  --kc-purple: #9333ea;
  --kc-purple-dark: #6d28d9;
  --kc-ink: #2e1065;
  --kc-muted: #8b7bb8;
  --kc-lavender: #f3efff;
  --kc-line: #efe9fb;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: #fbf9ff;
  color: var(--kc-ink);
  padding-bottom: 84px; /* espaço da bottom nav (mobile) */
}
@media (min-width: 768px) { body { padding-bottom: 40px; } }

.font-display { font-family: "Baloo 2", "Nunito", sans-serif; }
.text-muted { color: var(--kc-muted); }

/* ---------- Cards & botões ---------- */
.kc-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(109, 40, 217, 0.07);
  border: 1px solid var(--kc-line);
}
.kc-card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.kc-card-hover:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(109, 40, 217, 0.14); }

.kc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; font-weight: 800;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.kc-btn:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.05); }
.kc-btn:active { transform: scale(.97); }

.kc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid #ddd0f8; color: var(--kc-purple-dark);
  font-weight: 800; border-radius: 9999px; background: #fff;
  transition: background .18s ease;
}
.kc-btn-ghost:hover { background: var(--kc-lavender); }

/* ---------- Header ---------- */
.kc-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kc-line);
}
.kc-icon-btn {
  width: 40px; height: 40px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kc-purple-dark); background: var(--kc-lavender);
  transition: background .18s ease, transform .18s ease;
}
.kc-icon-btn:hover { background: #e7defc; transform: translateY(-1px); }
.kc-icon-btn svg { width: 20px; height: 20px; }

.lang-btn {
  font-size: .68rem; font-weight: 900; letter-spacing: .04em;
  padding: .3rem .55rem; border-radius: 9999px; color: var(--kc-muted);
  transition: all .15s ease;
}
.lang-active { background: var(--kc-purple-dark); color: #fff; }

/* ---------- Hero ---------- */
.kc-hero {
  background: linear-gradient(160deg, #efe7ff 0%, #f6ecff 45%, #fdeef8 100%);
  border-radius: 26px;
  border: 1px solid #eadffa;
}

/* ---------- Categorias ---------- */
.cat-tile {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--kc-line);
  box-shadow: 0 3px 10px rgba(109,40,217,.06);
  color: var(--kc-purple-dark);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-tile svg { width: 28px; height: 28px; }
a:hover .cat-tile { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(109,40,217,.14); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Produtos ---------- */
.badge-new {
  background: linear-gradient(135deg, #f472b6, #a855f7);
  color: #fff; font-size: .62rem; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 9999px; padding: .28rem .7rem;
  box-shadow: 0 4px 10px rgba(244,114,182,.4);
}
.wish-btn {
  width: 34px; height: 34px; border-radius: 9999px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #c4b0ea; box-shadow: 0 3px 8px rgba(46,16,101,.12);
  transition: color .15s ease, transform .15s ease;
}
.wish-btn:hover { color: #ec4899; transform: scale(1.1); }
.wish-btn svg { width: 17px; height: 17px; }

.star { color: #fbbf24; font-size: .8rem; }
.star.off { color: #e5ddf5; }

.price { font-weight: 900; color: var(--kc-purple-dark); }
.price-big { font-size: 2.1rem; font-weight: 900; color: var(--kc-purple-dark); line-height: 1; }

/* ---------- Galeria do produto ---------- */
.kc-thumb {
  border: 2px solid transparent; border-radius: 16px; cursor: pointer;
  opacity: .65; transition: all .15s ease; overflow: hidden;
}
.kc-thumb.active, .kc-thumb:hover { border-color: var(--kc-purple); opacity: 1; }
.kc-dot { width: 7px; height: 7px; border-radius: 9999px; background: #ddd2f5; transition: all .2s ease; }
.kc-dot.active { background: var(--kc-purple); width: 20px; }

/* ---------- Benefícios / chips ---------- */
.kc-chip {
  background: #fff; border: 1px solid var(--kc-line);
  border-radius: 18px; box-shadow: 0 3px 10px rgba(109,40,217,.05);
}
.chip-icon {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--kc-lavender); color: var(--kc-purple-dark);
}
.chip-icon svg { width: 21px; height: 21px; }

/* ---------- Bottom nav (mobile) ---------- */
.kc-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--kc-line);
  box-shadow: 0 -6px 24px rgba(46,16,101,.08);
}
.kc-bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .62rem; font-weight: 800; color: var(--kc-muted); padding: 8px 0 10px;
}
.kc-bottomnav a svg { width: 22px; height: 22px; }
.kc-bottomnav a.active { color: var(--kc-purple-dark); }

/* Barra de compra fixa (página de produto, mobile) */
.kc-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--kc-line);
  box-shadow: 0 -6px 24px rgba(46,16,101,.10);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floaty { animation: floaty 4.5s ease-in-out infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .06s; } .fade-up-2 { animation-delay: .12s; } .fade-up-3 { animation-delay: .18s; }
