/* ===== 기본 색상 (여기 값만 바꾸면 전체 테마가 바뀌어요) ===== */
:root {
  --primary: #2f9e44;
  --primary-dark: #237a34;
  --accent: #e8590c;
  --text: #212529;
  --muted: #868e96;
  --line: #e9ecef;
  --bg: #f8f9fa;
  --card: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 14px; }

/* ===== 헤더 ===== */
#site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.search { flex: 1; display: flex; max-width: 480px; margin: 0 auto; }
.search input { flex: 1; padding: 10px 14px; border: 2px solid var(--primary); border-right: 0; border-radius: 999px 0 0 999px; font-size: 15px; outline: none; min-width: 0; }
.search button { padding: 0 18px; border: 0; background: var(--primary); color: #fff; border-radius: 0 999px 999px 0; }
.cart-link { white-space: nowrap; font-weight: 600; position: relative; }
.badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 7px; margin-left: 2px; }

/* ===== 메인 배너 ===== */
.hero { margin: 24px 0; padding: 36px 40px; border-radius: var(--radius); background: linear-gradient(120deg, #d3f9d8, #fff3bf); display: flex; justify-content: space-between; align-items: center; }
.hero h1 { font-size: 30px; line-height: 1.3; margin-bottom: 8px; }
.hero p { color: #495057; }
.hero-emoji { font-size: 96px; }

/* ===== 카테고리 & 정렬 ===== */
.categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.list-toolbar select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }

/* ===== 상품 카드 ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.card > a { position: relative; display: block; }
.thumb { aspect-ratio: 1; display: grid; place-items: center; font-size: 80px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.large { font-size: 160px; border-radius: var(--radius); }
.thumb.small { width: 72px; font-size: 36px; border-radius: 8px; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; }
.card-title:hover { color: var(--primary); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .rate { color: var(--accent); font-weight: 800; }
.price del { color: var(--muted); font-size: 13px; }
.price.big strong { font-size: 28px; }
.price.big .rate { font-size: 24px; }

/* ===== 버튼 ===== */
.btn { display: inline-block; text-align: center; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; margin-top: auto; }
.btn:hover { background: var(--primary-dark); }
.btn.outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn.outline:hover { background: #ebfbee; }
.btn.block { display: block; width: 100%; margin-top: 16px; padding: 14px; font-size: 16px; }

/* ===== 상세 페이지 ===== */
.back { display: inline-block; margin: 20px 0; color: var(--muted); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--card); padding: 28px; border-radius: var(--radius); margin-bottom: 40px; }
.detail-info { display: flex; flex-direction: column; gap: 14px; }
.detail-info h1 { font-size: 26px; }
.desc { color: #495057; }
.spec { display: grid; grid-template-columns: 60px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.qty-row { display: flex; justify-content: space-between; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--bg); font-size: 18px; }
.qty span { min-width: 38px; text-align: center; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn { padding: 14px; }
.section-title { font-size: 20px; margin-bottom: 14px; }

/* 관리자 페이지에서 입력한 '상품 상세정보' */
.detail-more { background: var(--card); padding: 28px; border-radius: var(--radius); margin-bottom: 40px; line-height: 1.8; }
.detail-more h2 { font-size: 20px; margin-bottom: 12px; }
.detail-more img { display: block; max-width: 100%; margin: 16px auto 0; border-radius: 8px; }

/* ===== 장바구니 & 주문서 ===== */
.page-title { margin: 28px 0 20px; font-size: 26px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-bottom: 48px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto 100px 28px; align-items: center; gap: 16px; background: var(--card); padding: 14px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--line); }
.cart-item-info { display: flex; flex-direction: column; }
.line { text-align: right; }
.remove { border: 0; background: none; color: var(--muted); font-size: 16px; }
.remove:hover { color: var(--accent); }
.summary { background: var(--card); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); position: sticky; top: 88px; }
.summary h2 { font-size: 18px; margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; padding: 6px 0; gap: 8px; }
.row.small { font-size: 14px; color: #495057; }
.row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; }
.row.total strong { color: var(--primary); }
.summary hr { border: 0; border-top: 1px dashed var(--line); margin: 10px 0; }
.hint { font-size: 13px; color: var(--accent); background: #fff4e6; padding: 6px 10px; border-radius: 6px; margin: 6px 0; }
.empty { text-align: center; padding: 60px 20px; background: var(--card); border-radius: var(--radius); grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--muted); }

.form { background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.form h2 { font-size: 18px; margin-top: 8px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input:not([type=radio]):not([type=checkbox]), .form select { padding: 11px 12px; border: 1px solid #ced4da; border-radius: 8px; font-size: 15px; font-weight: 400; }
.form input:focus, .form select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.form .invalid { border-color: #e03131 !important; background: #fff5f5; }
.pay-options { display: flex; gap: 10px; flex-wrap: wrap; }
.form label.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.pay-options .radio { border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; }
.agree { margin-top: 8px; }
.error { color: #e03131; font-size: 14px; }

/* ===== 회원 (로그인 / 회원가입 / 마이페이지) ===== */
.user-menu { display: flex; gap: 14px; align-items: center; font-size: 14px; white-space: nowrap; }
.user-menu a:hover, .link-btn:hover { color: var(--primary); }
.link-btn { border: 0; background: none; color: inherit; font-size: 14px; padding: 0; }
.auth-box { max-width: 420px; margin: 48px auto; }
.auth-box h1 { font-size: 24px; text-align: center; margin-bottom: 4px; }
.auth-box .muted { font-weight: 400; }
.auth-links { display: flex; justify-content: center; gap: 12px; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--primary); font-weight: 600; }
.success { color: var(--primary); font-size: 14px; }
.form a { color: var(--primary); }
.notice { background: #fff9db; border: 1px solid #ffec99; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.notice a { color: var(--primary); }
.notice code { background: #fff; padding: 1px 5px; border-radius: 4px; }
.mypage { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-bottom: 48px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.status { background: #ebfbee; color: var(--primary); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.st-0 { background: #e7f5ff; color: #1971c2; }   /* 결제완료 */
.status.st-1 { background: #fff9db; color: #e67700; }   /* 배송준비중 */
.status.st-2 { background: #f3f0ff; color: #6741d9; }   /* 배송중 */
.status.st-3 { background: #ebfbee; color: #2b8a3e; }   /* 배송완료 */
.status.st-4 { background: #f1f3f5; color: #868e96; }   /* 주문취소 */
.status.st-5 { background: #fff0f6; color: #c2255c; }   /* 반품완료 */
.order-items { list-style: none; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.order-items .thumb.small { width: 56px; font-size: 28px; }
.small-btn { padding: 6px 12px; font-size: 13px; margin: 0; }
.order-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }

.file-warning { background: #fff3bf; border-bottom: 2px solid #fab005; color: #5c3c00; padding: 12px 16px; text-align: center; font-size: 14px; line-height: 1.6; }
.file-warning code { background: #fff; padding: 1px 6px; border-radius: 4px; }

/* ===== 주소 (우편번호 검색) ===== */
.addr-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }
.zip-row { display: flex; gap: 8px; }
.zip-row input { flex: 1; min-width: 0; }
.zip-row .btn { margin: 0; white-space: nowrap; padding: 0 16px; }
.form input[readonly] { background: #f8f9fa; cursor: pointer; }
.postcode-layer .modal-box { padding: 0; max-width: 520px; height: min(620px, 88vh); display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.postcode-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.postcode-body { flex: 1; min-height: 0; }

/* ===== 배송 단계 · 배송조회 ===== */
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 6px; position: relative; }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); position: relative; text-align: center; }
.progress li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e9ecef; color: #868e96; font-weight: 700; font-size: 12px; position: relative; z-index: 1; }
.progress li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: #e9ecef; }
.progress li:first-child::before { display: none; }
.progress li.done span, .progress li.now span { background: var(--primary); color: #fff; }
.progress li.done::before, .progress li.now::before { background: var(--primary); }
.progress li.now { color: var(--primary); font-weight: 700; }
.progress li.now span { box-shadow: 0 0 0 4px #d3f9d8; }
.progress.cancelled { display: block; background: #f1f3f5; color: #868e96; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.delivery { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #f3f0ff; border: 1px solid #e5dbff; border-radius: 10px; padding: 10px 14px; margin: 10px 0 4px; font-size: 14px; }
.delivery .tracking-no { letter-spacing: .5px; }
.delivery .btn { margin: 0; background: #7048e8; }
.delivery .btn:hover { background: #5f3dc4; }
.ship-notice { background: #7048e8; color: #fff; padding: 12px 16px; text-align: center; font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.ship-notice a { color: #fff; font-weight: 700; text-decoration: underline; }
.ship-notice button { border: 0; background: none; color: #fff; font-size: 16px; opacity: .8; }
.guest-note { display: block; margin-top: 12px; padding: 10px 12px; background: #fff9db; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.guest-note a, .modal-box p a { color: var(--primary); }

/* 자동 배송조회 내역 */
.delivery-wrap { margin: 10px 0 4px; }
.delivery-wrap .delivery { margin: 0; }
.track-last { font-size: 14px; padding: 8px 4px 0; }
.track-log { margin-top: 6px; font-size: 13px; }
.track-log summary { cursor: pointer; color: #7048e8; font-weight: 600; padding: 4px; }
.track-log ol { list-style: none; margin: 6px 0 0 8px; border-left: 2px solid #e5dbff; }
.track-log li { display: grid; grid-template-columns: 120px 1fr; gap: 2px 10px; padding: 6px 0 6px 14px; position: relative; color: #495057; }
.track-log li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #d0bfff; }
.track-log li.now::before { background: #7048e8; box-shadow: 0 0 0 3px #e5dbff; }
.track-log li.now .d { color: #5f3dc4; font-weight: 700; }
.track-log .t { color: var(--muted); font-size: 12px; grid-row: span 2; }
.track-log .w { color: var(--muted); font-size: 12px; }
.track-checked { font-size: 11px; padding: 4px; }

/* 주문조회 */
.track-box { max-width: 520px; margin: 40px auto 60px; display: flex; flex-direction: column; gap: 16px; }
.track-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.track-result h2 { font-size: 18px; margin-bottom: 4px; }
.track-items { list-style: none; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: #495057; display: flex; flex-direction: column; gap: 4px; }

/* ===== 알림 & 모달 ===== */
#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: #212529; color: #fff; padding: 12px 20px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; font-size: 14px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; padding: 32px; border-radius: 16px; max-width: 380px; width: 100%; text-align: center; }
.big-emoji { font-size: 56px; }
.modal-box h2 { margin: 8px 0 12px; }
.modal-box p { color: #495057; }

/* ===== 푸터 ===== */
#site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0; font-size: 14px; }

/* ===== 모바일 ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .user-menu { margin-left: auto; gap: 10px; font-size: 13px; }
  .cart-link { font-size: 14px; }
  .mypage { grid-template-columns: 1fr; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 22px; }
  .hero-emoji { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .thumb { font-size: 56px; }
  .detail { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .thumb.large { font-size: 120px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-item { grid-template-columns: 56px 1fr 28px; }
  .cart-item .thumb.small { width: 56px; }
  .cart-item .qty { grid-column: 2; }
  .cart-item .line { grid-column: 2; text-align: left; }
  .cart-item .remove { grid-row: 1; grid-column: 3; }
}

/* =====================================================================
   새 디자인 (앱처럼 가운데 한 줄 레이아웃 · 라임 컬러)
   ===================================================================== */
:root {
  --brand: #d6e86f;          /* 헤더 라임색 */
  --brand-deep: #b7cf3c;
  --primary: #33470f;        /* 버튼·강조 (짙은 올리브) */
  --primary-dark: #22300a;
  --accent: #f04a35;         /* 할인율 빨강 */
  --text: #1d1d1b;
  --muted: #8a8a85;
  --line: #ececea;
  --bg: #f6f6f3;
  --frame: 800px;
}
body { font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -0.2px; }

/* 손님 화면은 가운데 800px 앱 화면처럼 */
body:not(.admin) { background: #eceee6; }
body:not(.admin) > #site-header,
body:not(.admin) > main,
body:not(.admin) > #site-footer { width: 100%; max-width: var(--frame); margin-left: auto; margin-right: auto; background: #fff; }
body:not(.admin) > main.container { padding: 0 20px 24px; min-height: 60vh; }
body.has-bottom-nav { padding-bottom: 64px; }

/* ----- 상단 안내 띠 ----- */
.promo-bar { display: flex; align-items: center; justify-content: center; gap: 10px; background: #efe9df; color: #3d3a33; font-size: 14px; padding: 10px 44px; position: relative; text-align: center; }
.promo-bar button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 16px; color: #6b665c; }

/* ----- 헤더 ----- */
#site-header { position: sticky; top: 0; z-index: 30; background: var(--brand) !important; border-bottom: 0; }
.hd-top { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; }
.logo { font-size: 22px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 4px; letter-spacing: -0.8px; }
.logo b { font-weight: 900; }
.logo-mark { font-size: 20px; }
.hd-top .user-menu { margin-left: auto; font-size: 13px; gap: 10px; color: #3a4211; }
.hd-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; position: relative; color: var(--text); }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn svg, .bottom-nav svg, .cart-fab svg, .to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .badge { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; border-radius: 9px; margin: 0; }
.hd-tabs { display: flex; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.hd-tabs::-webkit-scrollbar { display: none; }
.hd-tabs a { flex: 1 0 auto; text-align: center; padding: 10px 14px 12px; font-size: 15px; color: #3d4413; position: relative; white-space: nowrap; }
.hd-tabs a.on { color: var(--text); font-weight: 700; }
.hd-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--text); border-radius: 2px; }
#site-header .search { display: flex; max-width: none; margin: 0; padding: 0 16px 12px; }
#site-header .search[hidden] { display: none; }
#site-header .search input { border: 0; border-radius: 10px 0 0 10px; padding: 11px 14px; background: #fff; }
#site-header .search button { background: var(--text); border-radius: 0 10px 10px 0; }

/* ----- 하단 메뉴 ----- */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(var(--frame), 100%); height: 60px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 40; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: #8e8e88; }
.bottom-nav a.on { color: var(--text); font-weight: 700; }
.bottom-nav a.on svg { fill: currentColor; fill-opacity: .12; stroke-width: 2; }
.to-top { position: fixed; right: max(16px, calc(50% - var(--frame) / 2 + 16px)); bottom: 76px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 35; color: #444; }
.to-top.show { opacity: 1; pointer-events: auto; }
#toast { bottom: 84px; }

/* ----- 섹션 공통 ----- */
.sec { padding: 28px 0 8px; scroll-margin-top: 120px; }
.sec + .sec { border-top: 8px solid var(--bg); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.sec-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.6px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sec-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sec-note { color: var(--muted); font-size: 13px; }
.sec-head .more { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ----- 메인 배너 ----- */
.hero-slider { position: relative; margin: 0 -20px; height: 300px; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 34px 28px; color: #fff; opacity: 0; transition: opacity .7s; }
.slide.on { opacity: 1; z-index: 1; }
.slide-text h2 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.slide-text p { font-size: 15px; opacity: .85; }
.slide-emoji { font-size: 130px; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.slide-count { position: absolute; right: 18px; bottom: 16px; z-index: 2; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }

/* ----- 오늘의 당도 ----- */
.brix-board { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brix-item { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px; border-right: 1px solid var(--line); }
.brix-emoji { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; }
.brix-name { font-size: 14px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.brix-num { font-size: 34px; font-weight: 500; letter-spacing: -1px; line-height: 1.1; }
.brix-unit { font-size: 12px; color: var(--muted); }

/* ----- 특가 타이머 ----- */
.deal { background: #fbfdeb; }
.timer { margin-top: 8px; font-size: 18px; color: var(--text); }
.timer b { display: inline-block; min-width: 34px; background: var(--text); color: var(--brand); border-radius: 6px; padding: 2px 6px; font-variant-numeric: tabular-nums; }

/* ----- 가로로 넘기는 상품 줄 ----- */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px; overflow-x: auto; padding-bottom: 14px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.hscroll:has(.pcard.wide) { grid-auto-columns: 260px; }
.related.hscroll { margin: 0; padding-left: 0; }

/* ----- 상품 카드 ----- */
.pcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pimg-wrap { position: relative; margin-bottom: 6px; }
.pimg .thumb { border-radius: 10px; overflow: hidden; font-size: 72px; }
.pcard.wide .pimg .thumb { font-size: 96px; aspect-ratio: 1 / 1; }
.rank-badge { position: absolute; top: 0; left: 0; background: var(--text); color: var(--brand); font-weight: 800; font-style: italic; font-size: 14px; padding: 4px 10px; border-radius: 10px 0 10px 0; }
.soldout { position: absolute; inset: 0; background: rgba(255,255,255,.6); display: grid; place-items: center; font-weight: 800; color: #555; border-radius: 10px; }
.cart-fab { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.92); display: grid; place-items: center; color: #333; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.cart-fab:hover { background: var(--brand); }
.cart-fab svg { width: 21px; height: 21px; }
.pname { font-size: 14px; line-height: 1.4; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.porig { font-size: 12px; color: #aaa; }
.pprice { display: flex; align-items: baseline; gap: 5px; }
.pprice em { font-style: normal; color: var(--accent); font-weight: 800; font-size: 17px; }
.pprice strong { font-size: 17px; font-weight: 800; }
.ptags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.ptag { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: #f1f1ee; color: #6b6b66; }
.ptag.dawn { background: #f2ecff; color: #7b4fe0; }
.ptag.brix { background: #fff3e6; color: #d9480f; }
.grid { grid-template-columns: repeat(3, 1fr); gap: 26px 14px; }

/* ----- 카테고리 칩 · 버튼 ----- */
.chip { border-radius: 999px; padding: 8px 16px; font-size: 14px; background: #f3f3f0; border-color: transparent; }
.chip.active { background: var(--brand); color: var(--text); border-color: var(--brand); font-weight: 700; }
.btn { background: var(--primary); border-radius: 10px; }
.btn:hover { background: var(--primary-dark); }
.btn.outline { color: var(--primary); border-color: var(--primary); }
.btn.outline:hover { background: #f4f8e4; }
a.card-title:hover { color: var(--primary); }

/* ----- 다른 페이지도 한 줄 레이아웃에 맞게 ----- */
.cart-layout, .mypage { grid-template-columns: 1fr; }
.summary { position: static; }
.detail { padding: 20px 0; gap: 24px; border-radius: 0; }
.track-box { margin: 28px auto 40px; }
.auth-box { margin: 32px auto; }
.page-title { font-size: 22px; }
.back { margin: 16px 0 8px; }

/* ----- 푸터 ----- */
#site-footer { border-top: 8px solid var(--bg); padding: 0; }
.ft { padding: 24px 20px 28px; font-size: 13px; color: #777; line-height: 1.7; }
.ft-links { display: flex; gap: 14px; margin-bottom: 12px; font-weight: 600; color: #444; }
.ft-cs strong { font-size: 16px; color: #222; }
.ft-info { margin-top: 10px; font-size: 12px; color: #999; }

/* ----- 휴대폰 ----- */
@media (max-width: 768px) {
  .hd-top { padding: 0 12px; }
  .hd-top .user-menu { display: none; }  /* 휴대폰에서는 하단 '마이' 메뉴로 */
  .hero-slider { height: 230px; }
  .slide { padding: 24px 20px; }
  .slide-text h2 { font-size: 22px; }
  .slide-emoji { font-size: 84px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .hscroll { grid-auto-columns: 148px; }
  .hscroll:has(.pcard.wide) { grid-auto-columns: 220px; }
  .header-inner { padding: 0; }
}
/* 배너에 사진을 올린 경우 글씨가 잘 보이게 */
.slide.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 65%); }
.slide.has-img .slide-text { position: relative; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
/* 홈 섹션 순서를 바꿔도 배경·구분선이 자연스럽게 */
.home .sec { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
#home-sections > .sec:not(:first-child), #cat-sections > .sec, #home-sections + .sec { border-top: 8px solid var(--bg); }
#home-sections > .sec:first-child { border-top: 0; }
.hd [hidden], .user-menu[hidden] { display: none !important; }
/* 인기 랭킹 TOP3 + 더보기 */
.hscroll.top3 { grid-auto-columns: calc((100% - 28px) / 3); overflow-x: visible; }
.more-wrap { display: flex; justify-content: center; margin: 18px 0 8px; }
.more-wrap:empty { display: none; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 26px; border: 1px solid #d0d5c3; border-radius: 24px; background: #fff; font-size: 14px; font-weight: 700; color: var(--primary); }
.more-btn:hover { border-color: var(--primary); background: #f7faea; }
.more-btn span { font-size: 18px; line-height: 1; }
/* 구매수 · 리뷰 수 */
.pstats { display: flex; gap: 8px; font-size: 12px; color: #868e96; margin-top: 3px; }
.pstats b { font-weight: 700; color: #495057; }
.pstats .pst-review::before { content: "★ "; color: #f59f00; }
.pstats span + span::before { content: "· "; color: #ced4da; margin-right: 2px; }
.pstats.big { font-size: 14px; margin: 4px 0 10px; }
/* 상품 상세: 사진/정보 칸 너비 고정 (내용 길이에 따라 흔들리지 않게) */
@media (min-width: 769px) { .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.detail .actions .btn { white-space: nowrap; }
/* ---------- 리뷰 ---------- */
.pstats:empty { display: none; }
.reviews { padding: 8px 0 24px; scroll-margin-top: 130px; }
.reviews:empty { display: none; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-top .section-title .muted { font-size: 16px; }
.review-top .btn { margin: 0; }
.review-summary { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; background: #f8faf0; border-radius: 14px; padding: 18px 22px; margin: 10px 0 14px; }
.rs-score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rs-score strong { font-size: 38px; line-height: 1; }
.stars { color: #f59f00; letter-spacing: 1px; }
.rs-bars { display: flex; flex-direction: column; gap: 4px; }
.rs-bar { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 8px; font-size: 12px; color: #868e96; }
.rs-bar i { height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.rs-bar b { display: block; height: 100%; background: #f59f00; border-radius: 4px; }
.rs-bar em { font-style: normal; text-align: right; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item { padding: 14px 0; border-top: 1px solid var(--line); }
.ri-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.ri-del { margin-left: auto; font-size: 12px; color: #e03131 !important; }
.review-item p { margin: 0; line-height: 1.6; white-space: normal; word-break: break-word; }
.review-empty { padding: 26px 0 !important; }
.review-note { margin-top: 8px; }
.review-note a { color: var(--primary); font-weight: 700; }
/* 리뷰 쓰기 창 */
.review-box { max-width: 480px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-head h2 { margin: 0; }
.review-head .remove { background: none; border: 0; font-size: 18px; cursor: pointer; color: #868e96; }
.review-product { font-weight: 700; color: #343a40 !important; margin: 0; }
.star-pick { display: flex; align-items: center; gap: 2px; }
.star-pick button { background: none; border: 0; font-size: 34px; line-height: 1; color: #dee2e6; cursor: pointer; padding: 0 2px; }
.star-pick button.on { color: #f59f00; }
.star-label { margin-left: 10px; font-size: 14px; font-weight: 700; color: #495057; }
.review-box textarea { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 10px; font: inherit; resize: vertical; }
.review-count { text-align: right; font-size: 12px; color: #868e96; margin-top: -6px; }
.review-actions { display: flex; gap: 8px; justify-content: flex-end; }
.review-actions .btn { margin: 0; min-width: 100px; }
.item-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.item-btns .btn { margin: 0; }
.review-btn.done { color: #e67700; border-color: #ffd8a8; }
@media (max-width: 768px) { .review-summary { grid-template-columns: 1fr; gap: 12px; } }
/* 리뷰 사진 */
.rv-photos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-photo-list { display: contents; }
.rv-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; line-height: 20px; padding: 0; }
.rv-add-photo { width: 72px; height: 72px; border: 1.5px dashed #ced4da; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #495057; cursor: pointer; text-align: center; gap: 2px; }
.rv-add-photo small { font-size: 10px; color: #868e96; font-weight: 500; }
.rv-add-photo:hover { border-color: var(--primary); color: var(--primary); }
.rv-add-photo[hidden] { display: none; }
.ri-photos { display: flex; gap: 8px; margin-top: 10px; }
.ri-ph { width: 92px; height: 92px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #f1f3f5; }
.ri-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri-ph-wait { width: 92px; height: 92px; border-radius: 10px; background: #f1f3f5; }
.photo-viewer { background: rgba(0,0,0,.85); }
.pv-box { position: relative; max-width: min(92vw, 900px); }
.pv-box img { max-width: 100%; max-height: 82vh; border-radius: 10px; display: block; }
.pv-close { position: absolute; top: -40px; right: 0; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 26px; line-height: 38px; cursor: pointer; padding: 0; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; }
.pv-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
/* 상세 이미지 (스마트스토어 860px 규격, 조각을 빈틈없이 이어 붙임) */
.detail-imgs { max-width: 860px; margin: 16px auto 0; }
.detail-imgs img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important; }
/* 상품 상세 썸네일: 옆 정보 칸이 길어도 늘어나지 않고 항상 정사각형 */
.detail > .thumb.large { align-self: start; width: 100%; height: auto; aspect-ratio: 1 / 1; }
/* 모든 상품 썸네일(카드·상세·장바구니): 세로·가로로 긴 사진도 정사각형 칸에 꽉 차게 (가운데 기준으로 잘림) */
.thumb { position: relative; overflow: hidden; }
.thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* ---------- 쿠폰 ---------- */
.coupon-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 24px; }
.coupon-card { display: flex; align-items: stretch; border: 1px solid #d8e6a8; border-radius: 14px; background: #fbfdf2; overflow: hidden; position: relative; }
.coupon-card .cp-left { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; }
.coupon-card .cp-amount { font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.coupon-card .cp-name { font-weight: 700; }
.coupon-card .cp-cond { color: #868e96; font-size: 12.5px; }
.coupon-card .cp-right { display: flex; align-items: center; justify-content: center; padding: 0 18px; border-left: 2px dashed #d8e6a8; min-width: 130px; }
.coupon-card .cp-right .btn { margin: 0; white-space: nowrap; }
.coupon-card.used { opacity: .5; background: #f8f9fa; border-color: #e9ecef; }
.cp-tag { font-size: 12px; font-weight: 700; color: #868e96; }
.cp-tag.ok { color: #2b8a3e; }
.my-coupon-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; scroll-margin-top: 130px; }
.my-coupon-head .btn { margin: 0; }
/* 주문서 쿠폰 */
.coupon-box { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.cb-head { display: flex; justify-content: space-between; align-items: center; }
.cb-applied { background: #fff4e6; color: #d9480f; border-radius: 8px; padding: 8px 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cb-applied .cb-clear { flex: none; font-size: 13px; color: #868e96; text-decoration: underline; }
.coupon-box select, .cb-code input { width: 100%; padding: 9px 10px; border: 1px solid #ced4da; border-radius: 8px; font: inherit; font-size: 14px; min-width: 0; }
.cb-code { display: flex; gap: 6px; }
.cb-code .btn { margin: 0; white-space: nowrap; }
.cb-msg { font-size: 13px; margin: 0; }
.cb-msg.ok { color: #2b8a3e; }
.cb-msg.err { color: #e03131; }
.summary .row.discount span:last-child { color: var(--accent); font-weight: 700; }
@media (max-width: 768px) { .coupon-card .cp-right { min-width: 104px; padding: 0 10px; } }
.cb-guest { margin: 0; background: #f8f9fa; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #495057; line-height: 1.6; }
.cb-guest a { color: var(--primary); font-weight: 700; }
/* 새 쿠폰 도착 알림 */
.coupon-pop { position: fixed; right: 20px; bottom: 90px; z-index: 60; width: min(340px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 18px 18px 16px; border: 2px solid var(--brand); transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; }
.coupon-pop.show { transform: none; opacity: 1; }
.cpop-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 16px; color: #868e96; cursor: pointer; }
.cpop-title { font-size: 17px; font-weight: 800; }
.cpop-sub { margin: 4px 0 10px; font-size: 13px; color: #495057; }
.coupon-pop ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.coupon-pop li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; background: #fbfdf2; border: 1px dashed #c5d98a; border-radius: 10px; padding: 8px 10px; }
.coupon-pop li strong { grid-row: span 2; color: var(--accent); font-size: 16px; align-self: center; }
.coupon-pop li span { font-weight: 700; font-size: 13px; }
.coupon-pop li small { color: #868e96; font-size: 11.5px; }
.coupon-pop li.more { display: block; text-align: center; font-size: 12px; color: #868e96; border-style: solid; background: #f8f9fa; }
.cpop-btns { display: flex; gap: 8px; }
.cpop-btns .btn { flex: 1; margin: 0; justify-content: center; text-align: center; }
@media (min-width: 900px) { .coupon-pop { right: calc(50% - 400px + 20px); } }
.ft-links a[hidden] { display: none; }
/* 직접 입력 태그 */
.ptag.custom { background: #e7f5ff; color: #1971c2; }
.detail-tags { margin: -4px 0 8px; }
.detail-tags .ptag { font-size: 12.5px; padding: 3px 9px; }
/* 토스페이먼츠 결제 */
.toss-box { display: flex; flex-direction: column; gap: 4px; margin: 0 -8px; }
.toss-box[hidden], .pay-options[hidden] { display: none; }
.toss-test { margin: 0 8px; background: #fff4e6; color: #d9480f; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.pay-result { max-width: 520px; margin: 40px auto; text-align: center; background: #fff; border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.pay-result h1 { font-size: 22px; margin: 0; }
.pay-result .btn { min-width: 200px; margin: 2px 0; }
.pay-result .big-emoji { font-size: 48px; }

/* 주문서: 결제하기 버튼 (맨 아래) */
.pay-box .btn { margin: 0; padding: 16px; font-size: 17px; }
.order-card h2 { margin-top: 2px; }
#coupon-area .coupon-box { margin-bottom: 8px; }

/* 상품 상세설명 HTML */
.detail-html { overflow-x: auto; word-break: keep-all; }
.detail-html > :first-child { margin-top: 0; }
.detail-html h1, .detail-html h2, .detail-html h3, .detail-html h4 { margin: 18px 0 8px; line-height: 1.4; }
.detail-html p { margin: 0 0 10px; }
.detail-html ul, .detail-html ol { padding-left: 22px; margin: 0 0 12px; }
.detail-html ul { list-style: disc; } .detail-html ol { list-style: decimal; }
.detail-html table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.detail-html th, .detail-html td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.detail-html th { background: #f8f9fa; }
.detail-html img { height: auto; }
.detail-html a { color: var(--primary); text-decoration: underline; }
.detail-html blockquote { border-left: 4px solid var(--line); padding: 4px 12px; color: #495057; margin: 12px 0; }
.detail-html .dimg { max-width: 860px; margin: 12px auto; }
.detail-html .dimg img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important; }
.detail-html hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.detail-html font[size="2"] { font-size: 13px; } .detail-html font[size="4"] { font-size: 18px; } .detail-html font[size="5"] { font-size: 22px; } .detail-html font[size="6"] { font-size: 28px; }

/* 주문취소 · 반품 신청 */
.order-foot-right { display: flex; align-items: center; gap: 10px; }
.order-foot-right .btn { margin: 0; }
.claim-note { margin: 10px 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.claim-note.wait { background: #fff9db; color: #8f5b00; }
.claim-note.no { background: #fff5f5; color: #c92a2a; }
.track-claim { margin-top: 12px; display: flex; justify-content: flex-end; }
.track-claim .btn { margin: 0; }
.track-claim:empty { display: none; }
.claim-modal { z-index: 900; }
.claim-box { max-width: 480px; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.claim-box select, .claim-box textarea { width: 100%; }
.claim-guide { background: #f8f9fa; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #495057; line-height: 1.6; margin: 0; }
.claim-photos { display: flex; flex-direction: column; gap: 6px; }
.claim-photos .file-btn { align-self: flex-start; margin: 0; }
.cp-list { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-list:empty { display: none; }
.cp-ph { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.cp-ph img { width: 100%; height: 100%; object-fit: cover; }
.cp-ph button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; cursor: pointer; }
.claim-box .editor-head { display: flex; justify-content: space-between; align-items: center; }
.claim-box .editor-head h2 { margin: 0; }
.claim-box .editor-foot { display: flex; justify-content: flex-end; gap: 8px; }
.claim-box .editor-foot .btn { margin: 0; }

/* 하단 사업자 정보 · 약관 */
.ft-policy a { font-size: 13px; }
.ft-biz { font-size: 12px; color: #868e96; line-height: 1.8; margin: 8px 0; word-break: keep-all; }
.ft-biz a { color: inherit; text-decoration: underline; }
.ft-sep { color: #ced4da; }
.policy-wrap { max-width: 760px; margin: 24px auto 48px; }
.policy-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.policy-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; background: #fff; }
.policy-tabs a.active { background: var(--text, #212529); color: #fff; border-color: var(--text, #212529); }
.policy-doc { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius, 12px); padding: 24px 28px; line-height: 1.8; font-size: 15px; }
.policy-doc h3 { font-size: 16px; margin: 6px 0 2px; }
.policy-doc p { margin: 0; color: #343a40; }
.policy-doc .pl-gap { height: 10px; }
.signup-agree { display: flex; flex-direction: column; gap: 6px; background: #f8f9fa; border-radius: 8px; padding: 10px 12px; }
.signup-agree a { text-decoration: underline; color: var(--primary); font-size: 13px; }

/* 카카오 · 네이버 로그인 */
.social-login { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.social-top .social-login { margin: 0 0 6px; }
.sl-or { display: flex; align-items: center; gap: 10px; color: #868e96; font-size: 13px; }
.sl-or::before, .sl-or::after { content: ""; flex: 1; border-top: 1px solid var(--line, #dee2e6); }
.sl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.sl-btn.kakao { background: #fee500; color: rgba(0,0,0,.85); }
.sl-btn.naver { background: #03c75a; color: #fff; }
.sl-btn .sl-ic { font-weight: 900; font-size: 16px; }
.sl-note { margin: 2px 0 0; line-height: 1.6; }
.sl-note a { text-decoration: underline; }
.welcome-note { background: #fff9db; border: 1px solid #ffe066; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
