:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.12);
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 600px at 10% -10%, rgba(37, 99, 235, 0.18), transparent 55%),
              radial-gradient(900px 600px at 100% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
              var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(246, 247, 251, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover { color: var(--text); }

.hero {
  padding: 28px 0 22px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs span { opacity: 0.7; }

.page {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  padding: 14px 0 42px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.product {
  overflow: hidden;
}

.product-cover {
  height: 240px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.75), rgba(14, 165, 233, 0.55)),
    radial-gradient(500px 220px at 20% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(500px 220px at 90% 0%, rgba(255, 255, 255, 0.40), transparent 55%);
  position: relative;
}

.cover-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cover-badge small {
  font-weight: 600;
  color: var(--muted);
}

.product-body {
  padding: 18px 18px 6px;
}

.title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
  color: var(--muted);
}

.pill strong { color: var(--text); font-weight: 650; }

.content {
  padding: 0 18px 18px;
}

.section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type { border-top: 0; padding-top: 0; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.92);
}

.bullet {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.22);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
}

.note {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: rgba(15, 23, 42, 0.88);
  line-height: 1.7;
  font-size: 14px;
}

.aside {
  position: sticky;
  top: 82px;
  padding: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 10px;
}

.price h3 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}

.price strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.muted { color: var(--muted); }

.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.input, .select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  font-size: 14px;
}

.input:focus, .select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qty {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.qty button {
  height: 42px;
  border: 0;
  background: rgba(15, 23, 42, 0.02);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.qty button:hover { background: rgba(15, 23, 42, 0.05); }
.qty input {
  border: 0;
  height: 42px;
  text-align: center;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover { filter: brightness(1.03); }

.btn-ghost {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(15, 23, 42, 0.06); }

.summary {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.86);
}

.summary strong { color: var(--text); }

.accordion {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.acc-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.90);
}

.acc-head span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.acc-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--brand);
  font-weight: 900;
}

.acc-body {
  padding: 0 12px 12px;
  color: rgba(15, 23, 42, 0.86);
  line-height: 1.75;
  font-size: 14px;
}

.danger {
  color: var(--danger);
  font-weight: 750;
}

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }
  .aside { position: static; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .product-cover { height: 210px; }
  .title { font-size: 22px; }
}

