/* 모두안 공식몰 — 주문하기 · 주문 조회 · 약관 페이지 */

/* ───────── 공통 ───────── */
.shop main { padding: 32px 0 96px; }
.shop-title { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--brown); margin-bottom: 20px; }
.shop-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.shop-card + .shop-card { margin-top: 12px; }
.shop-card h2 { font-size: 18px; font-weight: 800; color: var(--brown); margin-bottom: 16px; letter-spacing: -0.02em; }
.shop-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff6e5; color: #7a5212; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.shop-note b { font-weight: 700; }
.shop-err { color: #c0362c; font-size: 14px; margin-top: 10px; min-height: 1em; }
.shop-err:empty { display: none; }
.shop-ok { color: #1f7a45; }
.btn-line { background: var(--white); color: var(--brown); border: 1px solid var(--line); }
.btn-line:hover { background: var(--beige); filter: none; }
.btn[disabled] { background: var(--beige-2); color: var(--muted); cursor: default; transform: none; filter: none; }

/* 입력칸 */
.f { margin-bottom: 14px; }
.f:last-child { margin-bottom: 0; }
.f label, .f .f-label { display: block; font-size: 14px; font-weight: 600; color: var(--brown); margin-bottom: 6px; }
.f label small { font-weight: 400; color: var(--muted); }
.f input, .f select {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--text); background: var(--white); -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.f select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.f input:focus, .f select:focus { outline: none; border-color: var(--brown-2); box-shadow: 0 0 0 3px rgba(89, 54, 51, .1); }
.f input[readonly] { background: var(--cream); cursor: pointer; }
.f.bad input, .f.bad select { border-color: #d9534f; }
.f-msg { font-size: 13px; color: #c0362c; margin-top: 6px; display: none; }
.bad .f-msg { display: block; }
.f-row { display: flex; gap: 8px; }
.f-row > input { flex: 1; min-width: 0; }
.f-row > .btn { flex: none; height: 52px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.f-stack { display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; line-height: 1.5; padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brown); cursor: pointer; }
.check.small { font-size: 14px; color: var(--muted); }

/* ───────── 주문하기 ───────── */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.co-side { position: sticky; top: 84px; }
.co-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.co-item:first-child { border-top: 0; padding-top: 0; }
.co-item img { width: 72px; height: 72px; object-fit: contain; background: var(--beige); border-radius: 14px; padding: 6px; }
.co-item-name { font-weight: 700; color: var(--brown); line-height: 1.4; }
.co-item-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-item-price { font-weight: 700; margin-top: 4px; }
.co-item-side { display: grid; justify-items: end; gap: 8px; }
.co-del { font-size: 13px; color: var(--muted); text-decoration: underline; min-height: 32px; padding: 0 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.qty button { width: 44px; height: 44px; font-size: 20px; color: var(--brown); }
.qty button:disabled { color: var(--line); cursor: default; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; }
.co-add { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--beige); font-size: 14px; }
.co-add img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.co-add div { flex: 1; min-width: 0; line-height: 1.45; }
.co-add b { color: var(--brown); }
.co-add .btn { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; flex: none; }
.co-empty { text-align: center; padding: 24px 0; color: var(--muted); }
.co-empty .btn { margin-top: 14px; }

.co-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.co-seg label { position: relative; cursor: pointer; }
.co-seg input { position: absolute; opacity: 0; pointer-events: none; }
.co-seg span { display: flex; align-items: center; justify-content: center; height: 52px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--muted); transition: .15s; background: var(--white); }
.co-seg input:checked + span { border-color: var(--brown); color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); background: #fffaf3; }
.co-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(89, 54, 51, .2); }

.co-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: 15px; }
.co-sum dt { color: var(--muted); }
.co-sum dd { text-align: right; font-weight: 600; }
.co-sum .free { color: #1f7a45; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.co-total span { font-weight: 700; color: var(--brown); }
.co-total b { font-size: 24px; font-weight: 800; color: var(--brown); letter-spacing: -0.02em; }
.co-agree { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.co-agree details { margin: 6px 0 0 32px; font-size: 13px; color: var(--muted); }
.co-agree summary { cursor: pointer; text-decoration: underline; list-style: none; min-height: 32px; display: flex; align-items: center; }
.co-agree summary::-webkit-details-marker { display: none; }
.co-agree details > div { padding: 8px 0 4px; line-height: 1.7; }
.co-agree details b { color: var(--brown); font-weight: 600; }
.co-agree a { text-decoration: underline; }
.co-pay { margin-top: 16px; }
.co-ship-note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.co-bar { display: none; }

/* 주소 검색 창 */
.co-post { position: fixed; inset: 0; z-index: 100; background: rgba(43, 29, 27, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-post[hidden] { display: none; }
.co-post-in { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 520px; overflow: hidden; display: flex; flex-direction: column; max-height: min(640px, 100%); }
.co-post-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; font-weight: 700; color: var(--brown); border-bottom: 1px solid var(--line); }
.co-post-head button { min-width: 44px; height: 44px; font-size: 15px; color: var(--muted); }
#postcode { height: 470px; flex: none; min-height: 360px; }

/* ───────── 주문 조회 · 완료 ───────── */
.od { max-width: 640px; margin: 0 auto; }
.od-hero { text-align: center; padding: 24px 0 28px; }
.od-hero .od-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #e7f5ec; color: #1f7a45; }
.od-hero .od-icon.warn { background: #fdecea; color: #c0362c; }
.od-hero .od-icon.wait { background: var(--beige); color: var(--brown); }
.od-hero h1 { font-size: 26px; font-weight: 800; color: var(--brown); letter-spacing: -0.03em; }
.od-hero p { color: var(--muted); margin-top: 8px; }
.od-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.od-id b { font-size: 18px; letter-spacing: .02em; color: var(--brown); }
.od-id .btn { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.od-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.od-steps span { position: relative; text-align: center; font-size: 13px; color: var(--muted); padding-top: 22px; }
.od-steps span::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.od-steps span::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.od-steps span:first-child::after { display: none; }
.od-steps span.on { color: var(--brown); font-weight: 700; }
.od-steps span.on::before, .od-steps span.on::after { background: var(--brown); }
.od-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--beige); color: var(--brown); }
.od-badge.cancel { background: #fdecea; color: #c0362c; }
.od-badge.test { background: #fff6e5; color: #7a5212; margin-left: 6px; }
.od-rows { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; font-size: 15px; }
.od-rows dt { color: var(--muted); }
.od-rows dd a { text-decoration: underline; }
.od-actions { display: grid; gap: 8px; margin-top: 16px; }
.od-cancel { margin-top: 12px; padding: 16px; border-radius: var(--radius-sm); background: #fdf3f2; }
.od-cancel p { font-size: 14px; color: #7d2a23; margin-bottom: 12px; line-height: 1.6; }
.od-cancel .f-row .btn { flex: 1; }
.od-lookup { max-width: 440px; margin: 0 auto; }
.od-lookup .shop-title { text-align: center; }
.od-lookup > p { text-align: center; color: var(--muted); margin: -8px 0 20px; }

/* ───────── 약관 · 방침 ───────── */
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: 30px; font-weight: 800; color: var(--brown); letter-spacing: -0.03em; }
.doc .doc-date { color: var(--muted); font-size: 14px; margin: 8px 0 28px; }
.doc .doc-toc { background: var(--beige); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 14px; margin-bottom: 28px; columns: 2; column-gap: 24px; }
.doc .doc-toc a { display: block; padding: 3px 0; color: var(--brown-2); }
.doc h2 { font-size: 19px; font-weight: 800; color: var(--brown); margin: 36px 0 12px; letter-spacing: -0.02em; scroll-margin-top: 80px; }
.doc p, .doc li { font-size: 15px; line-height: 1.85; color: #4a3a37; }
.doc p + p { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 20px; margin-top: 8px; }
.doc li + li { margin-top: 4px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.doc th { background: var(--beige); color: var(--brown); font-weight: 700; }
.doc .doc-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 12px; }
.doc a { text-decoration: underline; }
.doc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 960px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 640px) {
  .shop main { padding: 16px 0 120px; }
  .shop-title { font-size: 24px; }
  .shop-card { padding: 20px 16px; border-radius: 18px; }
  .co-item { grid-template-columns: 60px minmax(0, 1fr); }
  .co-item img { width: 60px; height: 60px; }
  .co-item-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .co-pay { display: none; }
  .co-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .co-bar .btn { width: 100%; height: 54px; }
  .shop .footer { padding-bottom: 140px; }
  .od-rows { grid-template-columns: 84px 1fr; font-size: 14px; }
  .doc h1 { font-size: 24px; }
  .doc .doc-toc { columns: 1; }
  #postcode { height: min(420px, calc(90vh - 70px)); }
  .co-post { padding: 0; align-items: flex-end; }
  .co-post-in { border-radius: 20px 20px 0 0; max-height: 90vh; }
}

/* 간편 로그인 · 내 주문 */
.co-login { flex-wrap: wrap; align-items: center; background: #f6f3ee; color: var(--ink, #3b2f2a); }
.co-login a { text-decoration: underline; }
.co-login-txt { flex: 1 1 260px; }
.co-login-err { color: #c2410c; }
.co-login-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-login { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.btn-login i { width: 18px; height: 18px; background: center/contain no-repeat; }
.btn-kakao { background: #fee500; color: rgba(0,0,0,.85); }
.btn-kakao i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3C6.5 3 2 6.6 2 11c0 2.8 1.9 5.3 4.7 6.7l-1 3.6c-.1.3.3.6.6.4l4.3-2.8c.5.1.9.1 1.4.1 5.5 0 10-3.6 10-8S17.5 3 12 3z'/%3E%3C/svg%3E"); }
.btn-naver.btn-login, .btn-login.btn-naver { background: #03c75a; color: #fff; }
.btn-naver i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M15.6 12.8 8.1 2H2v20h6.4V11.2L15.9 22H22V2h-6.4z'/%3E%3C/svg%3E"); }
.my { max-width: 720px; }
.my-login { text-align: center; }
.my-login h2 { margin-bottom: 8px; }
.my-login .co-login-btns { justify-content: center; margin: 20px 0 8px; }
.my-login .btn-login { min-width: 220px; justify-content: center; }
.my-guest { text-align: center; font-size: 14px; color: var(--muted, #8a7f78); margin-top: 18px; }
.my-guest a { text-decoration: underline; }
.my-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.my-order { display: block; color: inherit; text-decoration: none; margin-bottom: 12px; transition: box-shadow .15s; }
.my-order:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.my-order-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.my-order-name { margin-top: 8px; font-weight: 600; }
.my-order-sum { margin-top: 4px; font-weight: 700; }
.my-st { font-size: 13px; color: #2f7d4f; }
.my-st-cancelled, .my-st-failed { color: #9a8f88; }
.my-ship h2 { margin-bottom: 8px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }

/* ═══════════════ 2026-10 리뉴얼 ═══════════════ */
.shop-title { color: var(--ink); font-weight: 700; }
.shop-card { border-radius: var(--radius); }
.shop-card h2 { color: var(--ink); font-weight: 700; }
.shop-note { border-radius: 6px; background: #f7f6f4; color: #555; }
.f label, .f .f-label { color: var(--ink); font-weight: 600; }
.f input, .f select { border-radius: 6px; border-color: #dcdcdc; }
.f input:focus, .f select:focus { border-color: var(--ink); box-shadow: none; }
.f-row > .btn { border-radius: 6px; }
.co-item img { border-radius: 4px; }
.co-item-name { color: var(--ink); }
.qty { border-radius: 6px; }
.co-add { border-radius: 6px; }
.co-add .btn { border-radius: 6px; }
.co-seg span { border-radius: 6px; }
.co-seg input:checked + span { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.co-post-in { border-radius: var(--radius); }
.od-id .btn { border-radius: 6px; }
.od-badge { border-radius: 3px; }
.od-cancel { border-radius: 6px; }
.doc .doc-toc, .doc .doc-box { border-radius: 6px; }
.doc p, .doc li { color: #444; }
.co-login { background: #f7f6f4; color: var(--text); }
.btn-login { border-radius: 6px; }
.my-order:hover { box-shadow: none; border-color: #cfcfcf; }
@media (max-width: 640px) {
  .shop-card { border-radius: var(--radius); }
  .co-post-in { border-radius: 12px 12px 0 0; }
}
