/* ============================================================
   TIDY STORE — 공통 + 고객 페이지 스타일
   ============================================================ */
:root {
  /* Tidy Store — Healthy life 팔레트 (로고 기준) */
  --mint: #acffad;          /* 로고 배경 민트 */
  --mint-soft: #e4ffe4;
  --leaf: #5fab3d;          /* 로고 잎 */
  --leaf-dark: #3f8a26;
  --brand: #174c4f;         /* 로고 글자색 · 기본 버튼 */
  --brand-dark: #0e3639;
  --brand-soft: #dcf6dc;
  --green: #3f8a26;
  --green-soft: #e6f6df;
  --ink: #143d40;
  --ink-2: #2f5c5e;
  --muted: #6b8a85;
  --line: #cfe9d1;
  --bg: #f4fff4;
  --card: #ffffff;
  --danger: #d64545;
  --amber: #c98a00;
  --blue: #1f6f73;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 26px rgba(23, 76, 79, 0.10);
  --shadow-sm: 0 2px 8px rgba(23, 76, 79, 0.06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; word-break: keep-all; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.brand-text { color: var(--brand); }
.hidden { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.right { text-align: right; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; background: #e6f4e6; color: var(--ink); font-weight: 600; cursor: pointer; transition: 0.15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { filter: brightness(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); filter: none; }
.btn-green { background: var(--leaf-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: #fff; border-color: var(--leaf); color: var(--leaf-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 38px; height: 38px; }

/* ---------- 입력 ---------- */
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: 0.15s; }
.input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(95, 171, 61, 0.22); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7a6e' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req::after { content: " *"; color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--leaf-dark); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.error-text { color: var(--danger); font-size: 13px; }

/* ---------- 배지 ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge-gray { background: #e8f0e8; color: #556b66; }
.badge-blue { background: #e4eeff; color: #2153b3; }
.badge-indigo { background: #e8e6ff; color: #4a3fb5; }
.badge-purple { background: #f0e6ff; color: #6a3fb5; }
.badge-amber { background: #fff2cc; color: #8a5f00; }
.badge-teal { background: #dcf5f0; color: #106b5a; }
.badge-green { background: #dff3e6; color: #1f7a3f; }
.badge-red { background: #ffe3e3; color: #b32626; }
.badge-brand { background: var(--brand-soft); color: var(--leaf-dark); }
.pbadge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.pbadge-best { background: var(--brand); } .pbadge-new { background: var(--leaf); } .pbadge-sale { background: var(--danger); } .pbadge-reco { background: #b57a00; }
.soldout-cover { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink-2); font-size: 15px; }

/* ---------- 카드 / 썸네일 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--mint-soft); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { font-size: 64px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18)); }
.thumb-sm { width: 56px; height: 56px; border-radius: 10px; flex: none; aspect-ratio: auto; }
.thumb-sm span { font-size: 26px; }
.thumb-md { width: 84px; height: 84px; border-radius: 12px; flex: none; aspect-ratio: auto; }
.thumb-md span { font-size: 38px; }
.thumb-lg span { font-size: 120px; }

/* ---------- 헤더 ---------- */
.ticker { background: var(--brand); color: var(--mint); font-size: 13px; padding: 7px 0; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--brand); line-height: 1.05; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: flex; align-items: center; justify-content: center; flex: none; }
.logo-mark img { width: 34px; height: auto; display: block; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--leaf-dark); letter-spacing: 0.04em; margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.nav a:hover, .nav a.active { background: var(--brand-soft); color: var(--brand); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; }
.search-box input { width: 220px; padding: 9px 12px 9px 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.search-box::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: 0.7; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; }
.icon-btn .cnt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--leaf-dark); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav, .search-box { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav { display: none; position: fixed; inset: 66px 0 0 0; background: var(--bg); z-index: 39; padding: 16px 20px; flex-direction: column; gap: 4px; overflow: auto; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-nav .search-box { display: block; margin-bottom: 8px; }
  .mobile-nav .search-box input { width: 100%; }
}

/* ---------- 히어로 ---------- */
.hero { padding: 40px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.hero-main { background: var(--mint); color: var(--brand); border-radius: 22px; padding: 44px 40px; position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.hero-leaf { position: absolute; right: -40px; bottom: -30px; width: 380px; opacity: 0.35; transform: rotate(-18deg); pointer-events: none; }
.hero-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(23, 76, 79, 0.15); color: var(--brand); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 16px; position: relative; }
.hero-main h1 { font-size: 34px; font-weight: 800; line-height: 1.25; white-space: pre-line; position: relative; color: var(--brand); }
.hero-main p { margin-top: 14px; color: var(--ink-2); max-width: 480px; position: relative; }
.hero-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.mini-banner { border-radius: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; transition: 0.15s; }
.mini-banner:hover { transform: translateY(-2px); border-color: var(--leaf); box-shadow: var(--shadow-sm); }
.mini-banner .emo { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.mini-banner b { display: block; font-size: 16px; color: var(--brand); }
.mini-banner span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-main { padding: 32px 24px; min-height: 260px; } .hero-main h1 { font-size: 26px; } .hero-side { grid-template-rows: none; } }

/* ---------- 신뢰 배지 ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.trust > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.trust b { color: var(--brand); }
.trust .ico { font-size: 24px; }
.trust b { display: block; font-size: 14px; }
.trust span { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }

/* ---------- 섹션 ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 12px 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.15s; }
.cat-chip .ico { font-size: 26px; }
.cat-chip:hover, .cat-chip.active { border-color: var(--leaf); background: var(--brand-soft); color: var(--brand); }

/* ---------- 상품 그리드 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: 0.18s; cursor: pointer; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--leaf); }
.pcard .thumb { border-radius: 0; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .cat { font-size: 11px; color: var(--muted); font-weight: 600; }
.pcard .name { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .now { font-size: 16px; font-weight: 800; color: var(--brand); }
.price .was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price .off { font-size: 12px; font-weight: 800; color: var(--danger); }
.pcard .meta { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 6px; display: flex; gap: 8px; }
.pcard-add { margin-top: 8px; }

/* ---------- 필터 바 ---------- */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .input { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 상품 상세 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 20px; } }
.detail .thumb { border-radius: 20px; }
.detail h1 { font-size: 24px; font-weight: 800; }
.detail .price .now { font-size: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.qty input { width: 48px; text-align: center; border: 0; height: 40px; font-weight: 700; }
.calc-box { background: var(--mint-soft); border: 1px dashed #9edc9f; border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.calc-box .row { justify-content: space-between; }
.calc-box .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 800; font-size: 15px; }
.desc { white-space: pre-line; color: var(--ink-2); line-height: 1.7; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 12px 18px; border: 0; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button.active { color: var(--leaf-dark); border-color: var(--leaf); }
.stars { color: #f5a623; letter-spacing: 1px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review .reply { margin-top: 10px; background: var(--mint-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* ---------- 장바구니/주문서 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 84px; }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .name { font-weight: 700; font-size: 14px; }
.summary .row { justify-content: space-between; padding: 5px 0; font-size: 14px; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.summary .total .now { color: var(--leaf-dark); }
.bank-box { background: var(--mint-soft); border: 1px solid #b9ecb9; border-radius: 12px; padding: 16px 18px; }
.bank-box b { font-size: 17px; }
.step-list { counter-reset: s; display: grid; gap: 10px; }
.step-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.step-list li::before { counter-increment: s; content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--leaf); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- 주문 상태 스텝 ---------- */
.stepper { display: flex; align-items: flex-start; gap: 0; margin: 14px 0; overflow-x: auto; }
.stepper .st { flex: 1; min-width: 68px; text-align: center; position: relative; font-size: 11px; color: var(--muted); font-weight: 600; }
.stepper .st .dot { width: 22px; height: 22px; border-radius: 999px; background: #dfeee0; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; position: relative; z-index: 1; }
.stepper .st::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #dfeee0; }
.stepper .st:first-child::before { display: none; }
.stepper .st.done .dot, .stepper .st.done::before { background: var(--leaf); }
.stepper .st.done { color: var(--leaf-dark); }
.stepper .st.now .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(23, 76, 79, 0.18); }
.stepper .st.now { color: var(--brand); }
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 16px; display: grid; gap: 10px; font-size: 13px; }
.timeline div { position: relative; }
.timeline div::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 999px; background: var(--leaf); }

/* ---------- 테이블 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.tbl th, .tbl td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 700; background: #f3faf3; white-space: nowrap; }
.tbl tr:hover td { background: #f8fff8; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl-click tbody tr { cursor: pointer; }

/* ---------- 마이페이지 ---------- */
.my-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .my-layout { grid-template-columns: 1fr; } }
.side-menu { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.side-menu a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.side-menu a.active { background: var(--brand-soft); color: var(--brand); }
.side-menu a:last-child { border-bottom: 0; }
.profile-box { background: linear-gradient(135deg, #174c4f, #2e7d6a); color: #fff; padding: 18px; }
.profile-box b { font-size: 17px; }
.profile-box .pts { margin-top: 8px; font-size: 13px; opacity: 0.9; }
.order-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px 18px; margin-bottom: 12px; }
.order-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-grid div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat-grid b { display: block; font-size: 20px; }
.stat-grid span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 안내 / FAQ / 공지 ---------- */
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; overflow: hidden; }
.faq summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 10px; }
.faq summary::before { content: "Q"; color: var(--leaf-dark); font-weight: 900; }
.faq[open] summary { border-bottom: 1px solid var(--line); background: var(--bg); }
.faq .a { padding: 14px 16px; color: var(--ink-2); white-space: pre-line; line-height: 1.7; }
.notice-item { padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notice-item b { font-size: 15px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.guide-step .n { display: inline-flex; width: 30px; height: 30px; border-radius: 999px; background: var(--leaf); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 14px; color: #fff; font-weight: 800; text-align: center; }
.contact-btn span { font-size: 26px; }
.contact-btn small { font-weight: 500; opacity: 0.9; font-size: 12px; }
.c-kakao { background: #fee500; color: #3c1e1e; }
.c-line { background: #06c755; }
.c-tele { background: #229ed9; }
.c-insta { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.prose { line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.prose h3 { color: var(--ink); margin: 22px 0 8px; font-size: 17px; }
.page-title { font-size: 26px; font-weight: 900; margin: 28px 0 6px; }
.page-sub { color: var(--muted); margin-bottom: 20px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ico { font-size: 44px; margin-bottom: 8px; }
.auth-box { max-width: 420px; margin: 40px auto; }

/* ---------- 푸터 ---------- */
.footer { margin-top: 48px; background: var(--brand); border-top: 4px solid var(--mint); padding: 36px 0 28px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.footer .logo { color: #fff; }
.footer .logo small { color: var(--mint); }
.footer .btn { background: rgba(255, 255, 255, 0.12); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer b { color: #fff; }
.footer a:hover { color: var(--mint); }
.footer .links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.footer .biz { line-height: 1.8; }
.demo-bar { position: fixed; bottom: 12px; left: 12px; z-index: 50; background: var(--brand); color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.demo-bar button { border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; border-radius: 999px; padding: 3px 9px; cursor: pointer; font-size: 11px; }

/* ---------- 모달 / 토스트 ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20, 61, 64, 0.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade 0.15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); animation: pop 0.18s; }
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 1040px; }
.modal-body { padding: 26px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: #e6f4e6; font-size: 20px; cursor: pointer; z-index: 2; }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; padding-right: 30px; }
.modal-msg { color: var(--ink-2); margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#ts-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--brand); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(-8px); transition: 0.25s; box-shadow: var(--shadow); max-width: 90vw; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--leaf-dark); }
.toast-error { background: var(--danger); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--leaf); border-radius: 999px; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.alert-info { background: #e8f0ff; color: #1e4fa8; }
.alert-warn { background: #fff4d6; color: #7a5300; }
.alert-danger { background: #ffe3e3; color: #a12020; }
.alert-success { background: #dff3e6; color: #1b6b36; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.img-preview { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--mint-soft); }
@media print { .header, .footer, .ticker, .demo-bar, .no-print { display: none !important; } }

/* ---------- 상품 갤러리 ---------- */
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs .thumb { cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs .thumb.active, .gallery-thumbs .thumb:hover { border-color: var(--leaf); }
.detail .thumb-lg img { background: #fff; }
.thumb img { background: #fff; }
