:root {
  --bg: #fdf8f6;
  --surface: #fff9f7;
  --surface2: #fef2ee;
  --primary: #d4748a;
  --primary-lt: #f0b8c4;
  --accent: #b5617a;
  --blush: #f7d9df;
  --petal: #ffe4ec;
  --mauve: #c49aaa;
  --text: #3d2a30;
  --text-muted: #9c7d87;
  --border: rgba(212, 116, 138, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--petal); }
::-webkit-scrollbar-thumb { background: var(--primary-lt); border-radius: 2px; }

.app-container { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
@media (min-width: 480px) {
  body { background: #f5e8ed; }
  .app-container { box-shadow: 0 0 60px rgba(212, 116, 138, 0.15); }
}

.page { display: none; animation: fadeUp 0.35s ease; }
.page.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 320;
  display: flex;
  justify-content: center;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.install-banner.open {
  transform: translateY(0);
  pointer-events: auto;
}
.install-banner-inner {
  width: min(480px, 100%);
  margin: 8px auto 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(61, 42, 48, 0.12);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 246, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.rose-line { height: 1px; background: linear-gradient(90deg, transparent, var(--primary-lt), transparent); }
.no-scrollbar::-webkit-scrollbar { display: none; }

.hero-bg {
  background:
    radial-gradient(ellipse 85% 65% at 80% 15%, rgba(240, 184, 196, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 10% 95%, rgba(247, 217, 223, 0.6) 0%, transparent 55%),
    linear-gradient(160deg, #fff9f7 0%, #fef0f3 55%, #fdf5f0 100%);
}

.btn-rose {
  background: linear-gradient(135deg, #d4748a, #b5617a);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-rose:hover { filter: brightness(1.05); }

.btn-ghost {
  border: 1px solid rgba(212, 116, 138, 0.45);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-ghost:hover { background: rgba(212, 116, 138, 0.08); }

.nav-item {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-item.active { color: var(--primary); }

.tag {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid rgba(212, 116, 138, 0.45);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 228, 236, 0.5);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(212, 116, 138, 0.2);
}

.cat-pill {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill:hover { color: var(--primary); border-color: var(--primary); }
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 116, 138, 0.12);
}

.type-card,
.material-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
  cursor: pointer;
}
.type-card {
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.type-card.active { border-color: var(--primary); background: var(--petal); }
.material-chip {
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.material-chip.active { border-color: var(--primary); color: var(--accent); background: var(--petal); }

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--petal);
  border: 1px solid rgba(212, 116, 138, 0.25);
  flex-shrink: 0;
}

.masonry { columns: 2; column-gap: 12px; }
.masonry-item { break-inside: avoid; margin-bottom: 12px; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
  background: rgba(253, 248, 246, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  background: rgba(61, 42, 48, 0.3);
  backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 24px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  background: rgba(61, 42, 48, 0.24);
  backdrop-filter: blur(5px);
}
.menu-overlay.open { display: block; }
.menu-sheet {
  width: min(86%, 340px);
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  animation: slideRight 0.28s ease;
}
.menu-link {
  transition: all 0.2s;
}
.menu-link:hover {
  border-color: var(--primary) !important;
}
.menu-link.active {
  background: var(--petal) !important;
  border-color: rgba(212, 116, 138, 0.45) !important;
  color: var(--accent) !important;
  font-weight: 600;
}
@keyframes slideRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}
