@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --ink: #3d2f52;
  --ink-soft: #6f6283;
  --bg: #fffaf6;
  --card: #ffffff;
  --lilac: #b994ff;
  --lilac-deep: #8a5cf0;
  --pink: #ff9fcc;
  --mint: #97e2c0;
  --sky: #9fd3ff;
  --butter: #ffe08a;
  --line: #efe6f7;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(90, 60, 140, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 10% 0%, #f3e9ff 0, transparent 40%), radial-gradient(circle at 95% 10%, #ffe8f3 0, transparent 35%);
  background-attachment: fixed; line-height: 1.55;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; margin: 0 0 .4em; }
a { color: var(--lilac-deep); }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.announce { background: linear-gradient(90deg, var(--lilac), var(--pink), var(--butter), var(--mint), var(--sky)); color: #3d2f52;
  text-align: center; font-weight: 700; font-size: .88rem; padding: 8px 14px; }
.demo-bar { background: #3d2f52; color: #fff; text-align: center; font-size: .85rem; padding: 7px 12px; }
.demo-bar b { color: var(--butter); }

header.site { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(255, 250, 246, .85); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.7rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.logo-img { height: 54px; width: auto; display: block; }
.logo span { background: linear-gradient(90deg, var(--lilac-deep), #ff6fae); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.links { display: flex; gap: 22px; align-items: center; }
nav.links a { text-decoration: none; color: var(--ink); font-weight: 700; }
.cart-btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.cart-btn .count { background: var(--pink); color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .8rem; }

.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--lilac-deep), #ff6fae 60%, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--lilac-deep), #c06bff); color: #fff; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(138, 92, 240, .7); }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .blob { position: absolute; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.hero-art .b1 { inset: 0 18% 18% 0; }
.hero-art .b2 { width: 48%; height: 48%; right: 0; bottom: 0; border-radius: 50%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }

section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: 2.1rem; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card .pic { aspect-ratio: 1; background: #f5efff; position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 4px 11px; font-size: .78rem; font-weight: 800; }
.badge.sold { background: var(--ink); color: #fff; }
.badge.low { background: var(--butter); }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .cat { color: var(--ink-soft); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; font-size: 1.15rem; }
.add { border: 0; background: #f2eaff; color: var(--lilac-deep); border-radius: 999px; padding: 8px 14px; font-weight: 800; }
.add:disabled { background: #eee; color: #999; cursor: not-allowed; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border-radius: 32px; padding: 44px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps div { background: #faf6ff; border-radius: 18px; padding: 18px; }
.steps b { display: block; font-family: 'Fraunces', serif; font-size: 1.1rem; }

footer { padding: 40px 0 60px; color: var(--ink-soft); font-size: .92rem; text-align: center; }

/* Modal + drawer */
.scrim { position: fixed; inset: 0; background: rgba(40, 25, 60, .45); z-index: 40; display: none; }
.scrim.open { display: block; }
.modal { position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, 94vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 28px; display: none; grid-template-columns: 1fr 1fr; }
.modal.open { display: grid; }
.modal .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.modal .thumbs { display: flex; gap: 8px; padding: 10px; }
.modal .thumbs img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; cursor: pointer; opacity: .7; }
.modal .thumbs img.on { opacity: 1; outline: 3px solid var(--lilac); }
.modal .info { padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.modal .info h2 { font-size: 2rem; }
.close { position: absolute; top: 14px; right: 14px; border: 0; background: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; box-shadow: var(--shadow); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line); }
.qty button { border: 0; background: none; width: 36px; height: 36px; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.qty span { min-width: 24px; text-align: center; font-weight: 800; }

.drawer { position: fixed; z-index: 50; top: 0; right: 0; height: 100%; width: min(420px, 100vw); background: #fff; transform: translateX(100%); transition: transform .25s;
  display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { padding: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer header h3 { margin: 0; font-size: 1.5rem; }
.drawer .items { flex: 1; overflow: auto; padding: 10px 22px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.line .nm { font-weight: 800; }
.line .rm { border: 0; background: none; color: var(--ink-soft); font-size: .8rem; text-decoration: underline; padding: 0; }
.drawer footer { padding: 20px 22px; border-top: 1px solid var(--line); text-align: left; color: var(--ink); }
.sum { display: flex; justify-content: space-between; margin: 4px 0; }
.sum.total { font-weight: 800; font-size: 1.2rem; margin-top: 8px; }
.note { font-size: .85rem; color: var(--ink-soft); }
.drawer .btn { width: 100%; margin-top: 14px; }
.empty { text-align: center; color: var(--ink-soft); padding: 50px 10px; }
.msg { padding: 10px 14px; border-radius: 12px; background: #fff0f3; color: #b0204a; font-weight: 700; font-size: .9rem; margin-top: 10px; }
.msg.ok { background: #eafaf2; color: #17714a; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; z-index: 60; transition: transform .25s; }
.toast.show { transform: translateX(-50%); }

@media (max-width: 820px) {
  .hero, .about, .modal.open { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  nav.links a { display: none; }
  .about { padding: 26px; }
}
