/* 가라4번 - SAMPLE 중고거래 마켓 (웜 오렌지) */
:root {
  --bg: #fbf8f5;
  --card: #ffffff;
  --line: #ece4db;
  --txt: #2b2118;
  --txt2: #7d6f61;
  --txt3: #b0a294;
  --accent: #f97316;
  --accent2: #e35d04;
  --accent-soft: #fff1e6;
  --navy: #2b2118;
  --green: #0d9e6e;
  --red: #e5484d;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(60, 40, 20, .05), 0 8px 24px rgba(60, 40, 20, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
  background: var(--bg); color: var(--txt);
  display: flex; flex-direction: column; min-height: 100vh;
  font-size: 15px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.page { flex: 1; }

/* ===== 상단 ===== */
.topwrap { position: sticky; top: 0; z-index: 300; }
.demobar { background: var(--navy); color: #cbb9a6; text-align: center; font-size: 12.5px; padding: 7px 16px; }
.demo-chip { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-right: 8px; letter-spacing: .08em; }
.gnb { background: #fff; border-bottom: 1px solid var(--line); }
.gnb-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { font-size: 23px; font-weight: 900; color: var(--accent); letter-spacing: -.02em; flex: none; }
.gnb-nav { display: flex; gap: 4px; flex: none; }
.gnb-nav a { padding: 8px 13px; border-radius: 8px; font-weight: 700; font-size: 14.5px; color: var(--txt2); }
.gnb-nav a:hover, .gnb-nav a.on { color: var(--accent); background: var(--accent-soft); }
.gnb-search { flex: 1; max-width: 380px; }
.gnb-search input { width: 100%; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 24px; background: #faf6f2; font-size: 14px; font-family: inherit; }
.gnb-search input:focus { outline: none; border-color: var(--accent); background: #fff; }
.gnb-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-sell { padding: 10px 18px; border-radius: 24px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.btn-sell:hover { background: var(--accent2); }
.btn-ghost { padding: 9px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--txt2); }
.btn-ghost:hover { color: var(--accent); }
.btn-main { padding: 9px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; background: var(--navy); color: #fff; }
.has-sub { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent2); }
.uava { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.caret { display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; }
.sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.sub.right { left: auto; right: 0; }
.has-sub:hover .sub { display: block; }
.sub a { display: block; padding: 9px 13px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--txt2); }
.sub a:hover { background: var(--accent-soft); color: var(--accent); }
.ham { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }
.mnav-panel { display: none; }

/* ===== 랜딩/리스트 ===== */
.hero-strip { background: linear-gradient(120deg, #fff4e8, #ffe9d6); border-bottom: 1px solid var(--line); }
.hero-strip .wrap { padding: 44px 24px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-strip h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.35; }
.hero-strip h1 em { font-style: normal; color: var(--accent); }
.hero-strip p { margin-top: 10px; color: var(--txt2); font-size: 15px; }
.hero-strip .hc { margin-left: auto; display: flex; gap: 14px; }
.hstat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; text-align: center; box-shadow: var(--shadow); }
.hstat b { display: block; font-size: 24px; font-weight: 900; color: var(--accent); }
.hstat span { font-size: 12px; color: var(--txt2); font-weight: 600; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row a { flex: none; padding: 8px 16px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--txt2); }
.cat-row a:hover, .cat-row a.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.sec-head { display: flex; align-items: center; margin: 26px 0 16px; }
.sec-head h2 { font-size: 21px; font-weight: 900; }
.sec-head .cnt { color: var(--txt3); font-size: 13.5px; font-weight: 600; margin-left: 8px; }
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 60px; }
.item-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.item-card:hover { transform: translateY(-3px); }
.item-thumb { aspect-ratio: 1; background: linear-gradient(140deg, #f5ede4, #e8ded2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-thumb .ph { font-size: 40px; font-weight: 900; color: #c4b6a5; }
.item-thumb .st { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 800; background: rgba(0,0,0,.55); color: #fff; }
.item-thumb .st.done { background: var(--navy); }
.item-thumb .st.rsv { background: var(--accent); }
.item-body { padding: 13px 15px 15px; }
.item-body .tt { font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.item-body .pr { margin-top: 7px; font-size: 16px; font-weight: 900; }
.item-body .pr.free { color: var(--green); }
.item-body .meta { margin-top: 7px; font-size: 12px; color: var(--txt3); display: flex; gap: 6px; align-items: center; }
.item-body .meta .like { margin-left: auto; color: var(--txt2); }
.empty { text-align: center; color: var(--txt3); padding: 50px 0; font-size: 14px; grid-column: 1/-1; }

/* ===== 상세 ===== */
.detail-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 36px 0 60px; }
.detail-img { border-radius: 18px; overflow: hidden; background: linear-gradient(140deg, #f5ede4, #e8ded2); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img .ph { font-size: 80px; font-weight: 900; color: #c4b6a5; }
.thumb-row { display: flex; gap: 8px; margin-top: 10px; }
.thumb-row img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.thumb-row img:hover { border-color: var(--accent); }
.detail-info .cat { font-size: 12.5px; color: var(--accent); font-weight: 800; }
.detail-info h1 { font-size: 24px; font-weight: 900; margin: 6px 0 4px; line-height: 1.4; }
.detail-info .pr { font-size: 26px; font-weight: 900; margin: 10px 0 4px; }
.detail-info .pr.free { color: var(--green); }
.detail-info .sub { font-size: 13px; color: var(--txt3); }
.detail-meta { display: flex; gap: 14px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--txt2); flex-wrap: wrap; }
.detail-desc { white-space: pre-wrap; font-size: 14.5px; line-height: 1.8; color: var(--txt); margin-bottom: 22px; }
.seller-box { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; }
.seller-box .av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent2); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.seller-box b { font-size: 15px; display: block; }
.seller-box span { font-size: 12.5px; color: var(--txt3); }
.act-row { display: flex; gap: 10px; }
.act-row .grow { flex: 1; }
.btn-big { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 15px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; }
.btn-big.acc { background: var(--accent); color: #fff; }
.btn-big.acc:hover { background: var(--accent2); }
.btn-big.dark { background: var(--navy); color: #fff; }
.btn-big.line { background: #fff; border: 1.5px solid var(--line); color: var(--txt2); }
.btn-big.line:hover { border-color: var(--accent); color: var(--accent); }
.btn-like { width: 56px; flex: none; padding: 0; font-size: 20px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.btn-like.on { color: var(--red); border-color: var(--red); }
.trade-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.trade-list .tr-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.trade-list .tr-row:last-child { border-bottom: 0; }
.trade-list .tr-row .r { margin-left: auto; display: flex; gap: 6px; }
.btn-xs { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; color: var(--txt2); cursor: pointer; font-family: inherit; }
.btn-xs:hover { border-color: var(--accent); color: var(--accent); }
.btn-xs.acc { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-xs.red { color: var(--red); }
.frm { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bdg { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bdg.sale { background: #e8faf3; color: var(--green); }
.bdg.rsv { background: var(--accent-soft); color: var(--accent2); }
.bdg.done { background: #eef0f4; color: var(--txt2); }
.bdg.req { background: #fff4dd; color: #b7791f; }
.bdg.new { background: #fdecec; color: var(--red); }

/* ===== 폼/인증 ===== */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 70px 24px; }
.form-wrap { max-width: 640px; margin: 0 auto; padding: 44px 24px 70px; }
.auth-card, .form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 38px 36px; }
.auth-card h1 { font-size: 24px; font-weight: 900; text-align: center; }
.auth-sub { text-align: center; color: var(--txt2); margin: 8px 0 26px; font-size: 14px; }
.auth-sub a { color: var(--accent); font-weight: 700; }
.fld { margin-bottom: 17px; }
.fld label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.fld input[type=text], .fld input[type=password], .fld input[type=number], .fld select, .fld textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbf8f5; font-size: 15px; font-family: inherit; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.fld .hint { font-size: 12px; color: var(--txt3); margin-top: 6px; }
.btn-block { width: 100%; padding: 15px; border: 0; border-radius: 11px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; }
.btn-block:hover { background: var(--accent2); }
.alert-err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.alert-ok { background: #e8faf3; color: #0b7a55; border: 1px solid #b9ecd9; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.chk-row { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--txt2); margin-bottom: 14px; }
.chk-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.img-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; color: var(--txt3); font-size: 13.5px; cursor: pointer; }
.img-drop:hover { border-color: var(--accent); color: var(--accent); }

/* ===== 마이페이지 ===== */
.my-head { background: linear-gradient(120deg, #fff4e8, #ffe3cc); border-bottom: 1px solid var(--line); }
.my-head .wrap { padding: 30px 24px; display: flex; align-items: center; gap: 16px; }
.my-head .av { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.my-head b { font-size: 20px; }
.my-head span { display: block; font-size: 13px; color: var(--txt2); }
.my-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding-top: 26px; padding-bottom: 60px; }
.my-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; height: fit-content; }
.my-side a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--txt2); }
.my-side a:hover { background: var(--bg); }
.my-side a.on { background: var(--accent-soft); color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-h { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-h h3 { font-size: 15.5px; font-weight: 800; margin-right: auto; }
.card-p { padding: 20px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; }
.mini-item { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mini-item .mt { aspect-ratio: 1; background: linear-gradient(140deg, #f5ede4, #e8ded2); display: flex; align-items: center; justify-content: center; position: relative; }
.mini-item .mt img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .mt .ph { font-size: 26px; font-weight: 900; color: #c4b6a5; }
.mini-item .mi { padding: 10px 12px; }
.mini-item .mi .tt { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .mi .pr { font-size: 13.5px; font-weight: 900; margin-top: 3px; }
.mini-item .mi .mt2 { font-size: 11.5px; color: var(--txt3); margin-top: 4px; }
.kv { display: flex; padding: 10px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { width: 120px; color: var(--txt3); font-weight: 600; flex: none; }
.kv .v { font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: #faf6f2; color: var(--txt3); font-size: 12px; font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.chat-list .chat-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.chat-list .chat-row:last-child { border-bottom: 0; }
.chat-list .av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent2); font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-list .tt { font-weight: 700; font-size: 14px; }
.chat-list .pr2 { font-size: 12.5px; color: var(--txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.chat-list .dt { margin-left: auto; font-size: 12px; color: var(--txt3); flex: none; }

/* ===== 채팅 ===== */
.chat-page { max-width: 720px; margin: 0 auto; padding: 30px 24px 60px; }
.chat-item-bar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.chat-item-bar .th { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(140deg, #f5ede4, #e8ded2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.chat-item-bar .th img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-bar .tt { font-weight: 700; font-size: 14px; }
.chat-item-bar .pp { font-size: 13px; color: var(--txt2); font-weight: 700; }
.chat-box { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 300px; max-height: 460px; overflow-y: auto; }
.chat-msg { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.6; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.them { align-self: flex-start; background: #f1ebe3; border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 24px; font-family: inherit; font-size: 14px; }
.chat-form button { padding: 12px 22px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ===== 기타 페이지 ===== */
.page-head { padding: 44px 0 32px; }
.page-head h1 { font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.page-head p { color: var(--txt2); margin-top: 8px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .dt { font-size: 12.5px; color: var(--txt3); flex: none; }
.list-row .tt { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-box h2 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.view-box .meta { font-size: 13px; color: var(--txt3); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.view-box .cnt { font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 17px 6px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '⌄'; color: var(--txt3); font-size: 18px; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .fa { padding: 0 6px 18px; color: var(--txt2); font-size: 14px; line-height: 1.75; }
.note { font-size: 13px; color: var(--txt2); line-height: 1.8; margin-bottom: 16px; }
.note b { color: var(--txt); }
.point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.point-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.point-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.point-card p { font-size: 13.5px; color: var(--txt2); line-height: 1.7; }

/* ===== 푸터 ===== */
.foot { background: #241b12; color: #9c8a76; padding: 38px 0 30px; margin-top: auto; }
.foot-links { display: flex; gap: 20px; margin-bottom: 16px; }
.foot-links a { font-size: 13.5px; font-weight: 700; color: #d6c5b0; }
.foot-co { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.demo-tag { background: var(--accent); color: #fff; font-weight: 800; font-size: 10px; padding: 1px 7px; border-radius: 4px; vertical-align: 2px; }
.foot-info { font-size: 12.5px; line-height: 1.8; }
.foot-copy { font-size: 12px; margin-top: 16px; color: #6d5f4d; }

/* ===== 반응형 ===== */
@media (max-width: 960px) {
  .item-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .point-grid, .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .my-wrap { grid-template-columns: 1fr; }
  .my-side { display: flex; overflow-x: auto; gap: 4px; }
  .my-side a { white-space: nowrap; }
}
@media (max-width: 720px) {
  .gnb-nav, .gnb-search, .gnb-right { display: none; }
  .ham { display: block; margin-left: auto; }
  body.mnav .mnav-panel { display: block; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .mnav-panel a { display: block; padding: 11px 4px; font-weight: 700; color: var(--txt2); border-bottom: 1px solid var(--line); }
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-strip .wrap { padding: 30px 24px; }
  .hero-strip h1 { font-size: 24px; }
  .hero-strip .hc { margin-left: 0; }
}
