/* ===== 회원·장바구니·주문·1:1 문의·FAQ 페이지 ===== */
.member-wrap { max-width: 1100px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: 120px; }
.member-title { margin-top: 16px; }
.member-lead { margin-top: 12px; max-width: 640px; font-size: 16px; color: var(--green-800); }
.member-lead a, .notice-box a, .muted a, .form-help a, .auth-links a { color: var(--green-800); text-decoration: underline; }
.member-root { margin-top: 36px; }
.member-loading { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

/* 안내·오류 상자 */
.notice-box, .error-box { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.7; }
.notice-box { background: var(--beige); color: var(--green-800); margin-bottom: 20px; }
.notice-box.ok { background: #eef6d8; }
.error-box { background: #fdecea; color: #8a2a1c; margin-bottom: 20px; }
.error-box ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.error-box:focus { outline: none; }
.line-problem { margin-top: 6px; color: var(--orange); font-size: 13px; font-weight: 600; }
.hint { margin-top: 10px; font-size: 13px; color: var(--green-800); font-weight: 600; }

/* 버튼 */
.btn { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-line { background: var(--white); border: 1px solid var(--line); color: var(--green-800); }
.btn-line:hover { border-color: var(--green-800); }
.btn-danger { background: #c1452e; color: var(--white); }
.btn-danger:hover { background: #a93a26; }
.btn:disabled, .btn.is-disabled { background: var(--gray-50); color: var(--muted); border-color: var(--line); cursor: not-allowed; pointer-events: none; }
.link-btn { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--muted); text-decoration: underline; }
.link-btn:hover { color: var(--green-800); }
.center-link { display: block; text-align: center; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* 빈 화면 */
.empty-box { display: grid; justify-items: center; gap: 14px; padding: 72px 20px; border-radius: var(--radius); background: var(--gray-50); text-align: center; color: var(--green-800); }
.empty-box__title { font-size: 20px; font-weight: 800; }

/* 폼 */
.narrow-form { display: grid; gap: 16px; max-width: 480px; }
.narrow-form.wide { max-width: 760px; }
.narrow-form + .narrow-form { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.form-title { font-size: 20px; font-weight: 800; color: var(--green-800); }
.form-section { display: grid; gap: 14px; margin: 0 0 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.form-section legend { padding: 0 8px; font-size: 16px; font-weight: 800; color: var(--green-800); }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-label { font-size: 14px; font-weight: 700; color: var(--green-800); }
.form-input {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 15px;
}
textarea.form-input { resize: vertical; line-height: 1.6; }
.form-input:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px rgba(32, 78, 74, 0.12); }
.form-input:disabled, .form-input[readonly] { background: var(--gray-50); color: var(--muted); }
.form-help { font-size: 13px; color: var(--muted); }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--green-800); }
.check-line.strong { font-weight: 700; color: var(--green-800); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.zip-row { display: flex; align-items: flex-end; gap: 10px; }
.zip-row .form-field { flex: 0 1 200px; }
.zip-row .btn { height: 48px; }
.pay-option { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--green-800); }
.agree-detail { font-size: 13px; color: var(--muted); }
.agree-detail summary { cursor: pointer; width: fit-content; text-decoration: underline; }
.agree-detail p { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--gray-50); line-height: 1.7; }
.auth-links { display: flex; justify-content: center; gap: 18px; font-size: 14px; color: var(--muted); }
.danger-zone summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.danger-zone form { display: grid; gap: 14px; margin-top: 14px; }

/* 금액 요약 */
.summary-box { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; align-self: start; padding: 24px; border-radius: var(--radius); background: var(--gray-50); }
.summary-title { font-size: 17px; font-weight: 800; color: var(--green-800); }
.sum-list { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; }
.sum-list dd { margin: 0; text-align: right; color: var(--green-800); font-weight: 600; }
.sum-list .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 800; color: var(--green-800); }
.sum-list dd.total { color: var(--orange); }
.mini-lines { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }

/* 장바구니 */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.cart-lines { display: grid; border-top: 2px solid var(--green-800); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px auto; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.cart-line.is-unavailable { opacity: 0.85; }
.cart-line.is-unavailable .cart-thumb { filter: grayscale(1); }
.cart-thumb { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 14px; background: var(--gray-50); overflow: hidden; }
.cart-thumb svg { width: 86%; height: auto; }
.cart-thumb .product-photo { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb__blank { width: 40px; height: 40px; border-radius: 50%; background: var(--line); }
.cart-line__name { font-weight: 700; color: var(--green-800); }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__total { text-align: right; font-weight: 800; color: var(--green-800); }
.cart-line .link-btn { margin: 0; }
.qty-box { display: flex; align-items: center; height: 40px; border-radius: 999px; border: 1px solid var(--line); }
.qty-box button { width: 36px; height: 100%; font-size: 18px; color: var(--green-800); }
.qty-box input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button, .qty-box input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* 주문 완료 · 입금 안내 */
.complete-box { display: grid; justify-items: center; gap: 14px; max-width: 620px; margin: 0 auto; text-align: center; }
.complete-box__check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--green-800); }
.complete-box__check svg { width: 34px; height: 34px; }
.complete-box__title { font-size: 26px; font-weight: 800; color: var(--green-800); }
.complete-box .notice-box { margin: 0; }
.order-no { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 800; letter-spacing: 0.04em; color: var(--green-800); }
.bank-box { display: grid; gap: 6px; width: 100%; padding: 20px 22px; border-radius: var(--radius-sm); border: 2px solid var(--yellow-dark); background: #fbfce4; text-align: left; color: var(--green-800); }
.bank-box__title { font-weight: 800; }
.bank-box__account strong { font-size: 18px; }
.bank-box__total { font-size: 20px; color: var(--orange); }

/* 마이페이지 */
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.account-head strong { font-size: 18px; color: var(--green-800); }
.account-actions { display: flex; gap: 8px; }
.account-actions .btn { height: 40px; padding: 0 16px; font-size: 13px; }
.tab-row { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tab-row a { padding: 12px 20px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--muted); }
.tab-row a[aria-current] { color: var(--green-800); border-bottom-color: var(--yellow-dark); }
.order-rows, .board-rows { display: grid; border-top: 2px solid var(--green-800); }
.order-row a, .board-row a { display: grid; align-items: center; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.order-row a:hover, .board-row a:hover { background: var(--gray-50); }
.order-row a { grid-template-columns: 110px minmax(0, 1fr) 110px 110px; }
.order-row__date { font-size: 14px; color: var(--muted); }
.order-row__name { font-weight: 700; color: var(--green-800); }
.order-row__total { text-align: right; font-weight: 700; color: var(--green-800); }
.status-badge { justify-self: end; display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-badge.is-wait { background: #fff3d6; color: #8a5a00; }
.status-badge.is-ok { background: #e3f0ee; color: var(--green-800); }
.status-badge.is-done { background: var(--green-800); color: var(--white); }
.status-badge.is-off { background: var(--gray-50); color: var(--muted); }

.order-detail { display: grid; gap: 28px; margin: 20px 0; }
.order-detail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--gray-50); }
.order-detail h3 { margin-bottom: 12px; font-size: 17px; font-weight: 800; color: var(--green-800); }
.order-detail .sum-list { max-width: 360px; margin: 14px 0 0 auto; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { background: var(--gray-50); color: var(--green-800); font-weight: 700; }
.data-table .num { text-align: right; white-space: nowrap; }
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; font-size: 14px; }
.info-list dt { font-weight: 700; color: var(--green-800); }
.info-list dd { margin: 0; }
.timeline { display: grid; gap: 12px; padding-left: 18px; border-left: 2px solid var(--line); }
.timeline li { display: grid; gap: 2px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow-dark); }
.timeline__label { font-weight: 700; color: var(--green-800); }

/* 1:1 문의 게시판 */
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.board-head .btn { height: 42px; }
.board-row a { grid-template-columns: 110px minmax(0, 1fr) 110px 90px; }
.board-row__type { font-size: 13px; font-weight: 700; color: var(--orange); }
.board-row__title { font-weight: 700; color: var(--green-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-empty { padding: 40px 10px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.board-rows + .muted { margin-top: 16px; }
.board-view { display: grid; gap: 20px; }
.board-view header { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 2px solid var(--green-800); }
.board-view h2 { font-size: 22px; font-weight: 800; color: var(--green-800); }
.board-view__body { line-height: 1.8; }
.board-answer { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--beige); line-height: 1.8; }
.board-answer h3 { margin-bottom: 8px; font-size: 15px; font-weight: 800; color: var(--green-800); }

/* FAQ */
.faq-tools { display: grid; gap: 16px; margin-bottom: 32px; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-search { max-width: 480px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group__title { margin-bottom: 14px; font-size: 18px; font-weight: 800; color: var(--green-800); }
.faq-group .faq-list { display: grid; gap: 10px; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding: 26px 28px; border-radius: var(--radius); background: var(--beige); color: var(--green-800); }
.cta-box .button-row { margin: 0; }

@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty total"; }
  .cart-thumb { grid-area: thumb; width: 72px; height: 72px; }
  .cart-line__info { grid-area: info; }
  .cart-line .qty-box { grid-area: qty; justify-self: start; }
  .cart-line__total { grid-area: total; }
  .cart-line .link-btn { grid-area: remove; justify-self: end; }
  .order-row a, .board-row a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .order-row__date, .board-row__type { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form-grid2 { grid-template-columns: 1fr; }
  .form-section { padding: 18px 16px; }
  .info-list { grid-template-columns: 1fr; gap: 2px; }
  .info-list dd { margin-bottom: 10px; }
  .cta-box { padding: 22px 18px; }
}
