:root {
  --pink: #ec4899;
  --pink-soft: #fdf2f8;
  --pink-mid: #fbcfe8;
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --purple-soft: #f5f3ff;
  --ink: #1f1633;
  --muted: #6b6480;
  --line: #eee9f6;
  --grad: linear-gradient(135deg, var(--pink), var(--purple));
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(124, 58, 237, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.6 'Inter', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; margin: 0 0 .5rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }
.logo { font: 700 1.5rem 'Playfair Display', serif; display: flex; align-items: center; gap: .5rem; color: var(--purple-deep); }
.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: .65rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--pink-soft); font: inherit; outline: none; }
.search input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(236,72,153,.15); }
.nav-links { display: flex; gap: 1.2rem; align-items: center; font-weight: 500; }
.nav-links a:hover { color: var(--pink); }
.bag { position: relative; }
.badge { margin-left: .35rem; background: var(--grad); color: #fff; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: 600 .95rem 'Inter', sans-serif; color: #fff; background: var(--grad); padding: .8rem 1.6rem; border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(236,72,153,.5); }
.btn.sm { padding: .45rem 1rem; font-size: .85rem; }
.btn.block { display: block; width: 100%; text-align: center; margin-top: 1rem; }
.btn.ghost { background: var(--purple-soft); color: var(--purple-deep); box-shadow: none; }
.link { display: block; text-align: center; margin-top: .8rem; color: var(--purple); font-size: .9rem; }

/* toasts */
.toasts { margin-top: 1rem; }
.toast { padding: .8rem 1.1rem; border-radius: 12px; background: var(--purple-soft); color: var(--purple-deep); border: 1px solid #ddd6fe; margin-bottom: .5rem; }
.toast.error { background: #fff1f2; color: #be123c; border-color: #fecdd3; }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; margin: 2rem 0; padding: 3.5rem; border-radius: 28px; background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft)); overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--purple-deep); }
.hero p { color: var(--muted); max-width: 32ch; margin: 1rem 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 600; color: var(--pink); }
.hero-art { position: relative; height: 220px; }
.hero-art i { position: absolute; border-radius: 50%; background: var(--grad); opacity: .85; }
.hero-art i:nth-child(1) { width: 180px; height: 180px; right: 40px; top: 0; }
.hero-art i:nth-child(2) { width: 100px; height: 100px; right: 170px; bottom: 0; background: var(--pink-mid); }
.hero-art i:nth-child(3) { width: 60px; height: 60px; right: 0; bottom: 30px; background: var(--purple); opacity: .5; }

/* chips */
.chips { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.5rem 0; }
.chip { padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; transition: .15s; }
.chip:hover { border-color: var(--pink); color: var(--pink); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--pink-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.tag { position: absolute; top: .7rem; left: .7rem; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: #fff; }
.tag.low { color: var(--pink); }
.tag.sold { color: var(--muted); }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); font-weight: 600; }
.card h3 { font: 600 1.05rem 'Inter', sans-serif; margin: .2rem 0 .8rem; }
.card h3 a:hover { color: var(--pink); }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; color: var(--purple-deep); }

/* detail */
.crumbs { color: var(--muted); font-size: .9rem; margin: 1.5rem 0 1rem; }
.crumbs a:hover { color: var(--pink); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.detail-img { border-radius: 24px; overflow: hidden; background: var(--pink-soft); aspect-ratio: 1; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 2.2rem; }
.price.big { font-size: 1.8rem; margin: .3rem 0 1rem; }
.desc { color: var(--muted); }
.stock { font-weight: 600; font-size: .9rem; }
.stock.ok { color: #059669; } .stock.out { color: #be123c; }
.buy { display: flex; gap: .8rem; margin-top: 1.2rem; }
.buy input, .qty input { width: 80px; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.section-title { font-size: 1.6rem; margin: 2rem 0 1rem; }

/* cart / checkout */
.page-title { font-size: 2.2rem; margin: 2rem 0 1.2rem; color: var(--purple-deep); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.line-info { display: flex; flex-direction: column; }
.line-info a { font-weight: 600; } .line-info a:hover { color: var(--pink); }
.qty { display: flex; gap: .4rem; }
.qty input { width: 64px; padding: .4rem; }
.x { border: 0; background: var(--pink-soft); color: var(--pink); width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.x:hover { background: var(--pink); color: #fff; }
.summary { position: sticky; top: 90px; padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--pink-soft), var(--purple-soft)); border: 1px solid var(--line); }
.summary h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.row.total { border-top: 1px dashed var(--pink-mid); margin-top: .6rem; padding-top: .9rem; font-weight: 700; font-size: 1.1rem; color: var(--purple-deep); }
.form .field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.err { color: #be123c; font-size: .85rem; font-style: normal; }

/* empty / thanks */
.empty { text-align: center; padding: 4rem 1rem; margin: 2rem 0 3rem; border: 2px dashed var(--pink-mid); border-radius: 24px; background: var(--pink-soft); }
.empty p { color: var(--muted); }
.check { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; display: grid; place-items: center; }

.foot { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; text-align: center; }

@media (max-width: 820px) {
  .hero, .detail, .two-col { grid-template-columns: 1fr; }
  .hero { padding: 2rem; } .hero-art { display: none; }
  .search { display: none; }
  .nav-links { margin-left: auto; }
  .line { grid-template-columns: 60px 1fr auto; }
  .line .qty { grid-column: 2 / 4; }
  .summary { position: static; }
}
