/* ============================================================
   펜타몰 디자인 시스템
   브랜드: 블랙 + 화이트 + 골드 / 톤: 심플·여백·고급감 (vercel.store)
   ============================================================ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --gray-9: #6b6b6b;
  --gray-6: #9a9a9a;
  --gray-3: #e5e5e5;
  --gray-1: #f5f5f4;
  --white: #ffffff;
  --gold: #c9a84c;
  --gold-dark: #a8863a;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-3);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 9px; height: 9px; background: var(--gold); border-radius: 50%; display: inline-block; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; color: var(--gray-9); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.cart-btn { position: relative; font-size: 15px; font-weight: 600; }
.cart-count {
  position: absolute; top: -8px; right: -12px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}

/* ---------- 히어로 ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow { color: var(--gold-dark); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin: 18px 0 20px; letter-spacing: -0.03em; }
.hero p { color: var(--gray-9); font-size: 18px; max-width: 560px; margin: 0 auto; }
.hero .cta { margin-top: 36px; display: inline-flex; gap: 12px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--gray-3); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 섹션 ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.section-head a { color: var(--gray-9); font-size: 15px; }
.section-head a:hover { color: var(--gold-dark); }

/* ---------- 카테고리 타일 ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  border: 1px solid var(--gray-3); border-radius: var(--radius); padding: 32px 28px;
  transition: border-color .15s, transform .15s; background: var(--white);
}
.cat:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat .k { color: var(--gold-dark); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.cat h3 { font-size: 20px; font-weight: 800; margin: 10px 0 6px; }
.cat p { color: var(--gray-9); font-size: 14px; }

/* ---------- 상품 그리드 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; }
.card .thumb {
  aspect-ratio: 3/4; background: var(--gray-1); border-radius: var(--radius);
  overflow: hidden; position: relative; display: grid; place-items: center;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { color: var(--gray-6); font-weight: 800; font-size: 28px; letter-spacing: 0.04em; }
.card .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); color: var(--gray-9); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card h3 { font-size: 16px; font-weight: 700; margin: 14px 0 4px; }
.card .desc { color: var(--gray-9); font-size: 13px; min-height: 34px; }
.card .price { font-size: 17px; font-weight: 800; margin-top: 6px; }

/* ---------- 필터 ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gray-3); background: #fff; font-size: 14px; font-weight: 600; color: var(--gray-9); }
.chip.active { background: var(--black); color: #fff; border-color: var(--black); }

/* ---------- 상품 상세 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0; }
.detail .media { aspect-ratio: 3/4; background: var(--gray-1); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.detail .media .ph { color: var(--gray-6); font-weight: 800; font-size: 40px; }
.detail .info .k { color: var(--gold-dark); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.detail .info h1 { font-size: 34px; font-weight: 800; margin: 12px 0; letter-spacing: -0.02em; }
.detail .info .price { font-size: 26px; font-weight: 800; margin: 8px 0 20px; }
.detail .info .desc { color: var(--gray-9); font-size: 16px; margin-bottom: 28px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--gray-3); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.qty button { width: 42px; height: 42px; background: #fff; border: none; font-size: 18px; color: var(--ink); }
.qty span { width: 48px; text-align: center; font-weight: 700; }

/* ---------- 장바구니 / 주문 ---------- */
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; padding: 40px 0 8px; }
.layout-2 { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 80px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--gray-3); }
.line .th { width: 72px; height: 92px; background: var(--gray-1); border-radius: 10px; display: grid; place-items: center; color: var(--gray-6); font-weight: 800; }
.line .nm { font-weight: 700; font-size: 15px; }
.line .mt { color: var(--gray-9); font-size: 13px; margin-top: 2px; }
.line .rm { color: var(--gray-6); font-size: 13px; background: none; border: none; margin-top: 6px; }
.line .rm:hover { color: #c0392b; }
.summary { border: 1px solid var(--gray-3); border-radius: var(--radius); padding: 26px; position: sticky; top: 88px; }
.summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--gray-9); font-size: 15px; }
.summary .total { display: flex; justify-content: space-between; padding: 16px 0 20px; margin-top: 8px; border-top: 1px solid var(--gray-3); font-weight: 800; font-size: 19px; color: var(--ink); }

/* ---------- 폼 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--gray-3); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 72px; }

/* ---------- 안내/상태 ---------- */
.notice { background: var(--gray-1); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; color: var(--gray-9); line-height: 1.7; }
.notice b { color: var(--ink); }
.alert { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 12px 0; }
.empty { text-align: center; padding: 80px 0; color: var(--gray-6); }
.empty h3 { font-size: 20px; color: var(--gray-9); margin-bottom: 14px; }

/* ---------- 주문완료 ---------- */
.done { text-align: center; padding: 80px 0; }
.done .mark { width: 68px; height: 68px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 32px; margin: 0 auto 24px; }
.done h1 { font-size: 30px; font-weight: 800; }
.done .no { font-size: 15px; color: var(--gray-9); margin-top: 10px; }
.done .no b { color: var(--gold-dark); font-size: 18px; }

/* ---------- 관리자 ---------- */
.admin-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-tbl th, .admin-tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-3); }
.admin-tbl th { color: var(--gray-9); font-weight: 700; font-size: 13px; }
.status-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-pending { background: #fff4e0; color: #b7791f; }
.st-confirmed { background: #e6f4ea; color: #1e7e34; }
.st-shipped { background: #e7f0fd; color: #2b6cb0; }
.st-canceled { background: #f1f1f1; color: #888; }

/* ---------- 푸터 ---------- */
.ftr { border-top: 1px solid var(--gray-3); padding: 40px 0; margin-top: 40px; color: var(--gray-6); font-size: 13px; }
.ftr .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .layout-2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav { gap: 18px; }
  .nav .hide-m { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 30px; }
}
