/* ============================================================
   Rairaiai Store — design artistico
   ============================================================ */
:root {
  --bg: #faf7f2;
  --ink: #1f1b16;
  --muted: #7a7267;
  --line: #e8e0d4;
  --accent: #c2410c;
  --accent2: #9a3412;
  --gold: #b45309;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 40, 10, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250,247,242,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #f97316, #c2410c); font-size: 1.1rem; box-shadow: 0 6px 14px rgba(194,65,12,.35);
}
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: #f1e9dc; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(249,115,22,.14), transparent 60%),
    radial-gradient(500px 260px at 80% 10%, rgba(180,83,9,.12), transparent 60%),
    radial-gradient(400px 240px at 50% 90%, rgba(234,88,12,.08), transparent 60%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(90deg, #ea580c, #b45309); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 620px; margin: 0 auto 26px; color: var(--muted); font-size: 1.08rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer; font-weight: 700; border-radius: 999px; padding: 13px 26px; font-size: .98rem; transition: transform .12s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #ea580c, #c2410c); color: #fff; box-shadow: 0 10px 24px rgba(194,65,12,.35); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(194,65,12,.45); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #d6c9b4; }

/* ---------- categorie ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.cat-chip {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: .9rem; transition: all .15s ease; text-align: left; width: 100%;
}
.cat-chip .ic { font-size: 1.35rem; }
.cat-chip:hover, .cat-chip.active { border-color: var(--accent); background: #fff7ed; box-shadow: var(--shadow); transform: translateY(-1px); }
.cat-chip small { display:block; font-weight: 500; color: var(--muted); font-size: .74rem; }

/* ---------- griglia prodotti ---------- */
.section-title { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 6px; }
.section-title h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.01em; }
.section-title span { color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 18px 0 10px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .25s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .art {
  aspect-ratio: 1/1; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
}
.card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .art .glyph { position: relative; font-size: 3.4rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.card .prices { display: flex; align-items: baseline; gap: 10px; }
.card .price { font-size: 1.25rem; font-weight: 800; color: var(--accent2); }
.card .old { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.card .buy { margin-top: auto; }
.card .buy .btn { width: 100%; justify-content: center; padding: 11px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.note-demo { font-size: .72rem; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; background: #221a10; color: #e7d9c4; }
.footer-inner { padding: 40px 0 26px; display: grid; gap: 22px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer a { color: #e7d9c4; text-decoration: none; font-size: .88rem; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: .8rem; color: #a89a83; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: all .3s ease; z-index: 90; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
