/* 시간가구 — 상품 구매(홈페이지 상품 칸 + /pay 결제 화면 + /refund). 색·글꼴은 style.css 를 따른다. 모바일 우선. */

/* ───────── 홈페이지 상품 칸 ───────── */
.shop {
  position: relative; z-index: 1; background: var(--bg);
  padding: 96px 20px 72px;
}
.shop-inner { max-width: 1120px; margin: 0 auto; }
.shop h2 { font-size: 24px; line-height: 1.35; letter-spacing: 0.01em; font-weight: 300; max-width: 15em; }
.shop-lead { margin-top: 12px; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; max-width: 34em; opacity: 0.85; }
.shop-grid {
  display: grid; gap: 24px; margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.shop-card { display: flex; flex-direction: column; background: #2f2a27; }
.shop-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #2a2623; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.shop-card-name { font-size: 20px; line-height: 1.35; letter-spacing: 0.02em; font-weight: 400; }
.shop-card-price { font-size: 18px; line-height: 1.4; letter-spacing: 0.02em; }
.shop-card-desc { font-size: 16px; line-height: 1.55; letter-spacing: 0.02em; opacity: 0.8; }
.shop-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: auto; padding-top: 16px; }
.shop-card .btn { justify-content: center; min-width: 140px; }
.shop-note { margin-top: 24px; font-size: 14px; line-height: 1.6; letter-spacing: 0.02em; opacity: 0.8; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; opacity: 0.85;
}
.text-link:hover, .text-link:focus-visible { opacity: 1; }

@media (min-width: 768px) {
  .shop { padding: 120px 48px 96px; }
  .shop h2 { font-size: 32px; }
}
@media (min-width: 1100px) {
  .shop { padding: 140px 8% 112px; }
  .shop h2 { font-size: 40px; max-width: 11.5em; }
}

/* ───────── 하단 사업자 정보(전자상거래법: 초기 화면에 표시) ───────── */
.biz-info {
  position: relative; z-index: 1; background: #2c2825; color: #fff;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; font-weight: 300;
}
.biz-info-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.biz-info a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; opacity: 0.85; }
.biz-info a:hover, .biz-info a:focus-visible { opacity: 1; }
.biz-info__links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.biz-info__rows { display: flex; flex-wrap: wrap; column-gap: 16px; opacity: 0.8; overflow-wrap: anywhere; }
.biz-info__copy { opacity: 0.7; }
@media (min-width: 768px) { .biz-info { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1100px) { .biz-info { padding-left: 8%; padding-right: 8%; } }

/* ───────── /pay 화면 공통 ───────── */
body.pay-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
.pay-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(8px + env(safe-area-inset-top)) 20px 8px; min-height: 64px;
}
.pay-brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.pay-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; opacity: 0.85; }
.pay-back:hover, .pay-back:focus-visible { opacity: 1; }
.pay-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; }
.pay-title { font-size: 24px; line-height: 1.35; letter-spacing: 0.01em; font-weight: 300; }
.pay-lead { margin-top: 8px; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; opacity: 0.85; }

/* ───────── 결제 화면 ───────── */
.toss-pay { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.pay-summary { display: grid; gap: 16px; background: #2f2a27; padding: 16px; }
.pay-summary-img { aspect-ratio: 4 / 3; overflow: hidden; background: #2a2623; }
.pay-summary-img img { width: 100%; height: 100%; object-fit: cover; }
.toss-pay__item { font-size: 20px; line-height: 1.35; letter-spacing: 0.02em; font-weight: 400; }
.pay-unit { margin-top: 4px; font-size: 16px; letter-spacing: 0.02em; opacity: 0.85; }
.pay-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pay-qty label { font-size: 16px; }
.pay-qty-ctl { display: inline-flex; align-items: stretch; border: 1px solid rgba(255,255,255,0.5); }
.pay-qty-ctl button, .pay-qty-ctl input {
  width: 48px; height: 48px; min-height: 44px; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #fff; font: inherit; font-size: 18px; text-align: center;
}
.pay-qty-ctl input { width: 64px; border-left: 1px solid rgba(255,255,255,0.5); border-right: 1px solid rgba(255,255,255,0.5); -moz-appearance: textfield; appearance: textfield; }
.pay-qty-ctl input::-webkit-outer-spin-button, .pay-qty-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-qty-ctl button { cursor: pointer; }
.pay-qty-ctl button:hover:not(:disabled), .pay-qty-ctl button:focus-visible { background: rgba(255,255,255,0.14); }
.pay-qty-ctl button:disabled, .pay-qty-ctl input:disabled { opacity: 0.4; cursor: default; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.25); font-size: 16px; }
.pay-total strong { font-size: 24px; font-weight: 400; letter-spacing: 0.02em; }
/* 토스 결제위젯은 흰 바탕으로 그려진다 — 어두운 페이지 위에서 흰 상자로 둔다 */
.pay-widget { background: #fff; color: #191f28; padding: 8px 0; min-height: 120px; }
.toss-pay__btn { width: 100%; justify-content: center; min-height: 56px; font-size: 18px; cursor: pointer; font-family: inherit; }
.toss-pay__btn:disabled { opacity: 0.5; cursor: default; background: #fff; color: #000; }
.toss-pay__note { min-height: 1.4em; font-size: 16px; line-height: 1.5; color: #ffb4a8; }
.pay-legal { font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; opacity: 0.85; }
.pay-legal a { text-decoration: underline; text-underline-offset: 3px; }
.pay-testmode { font-size: 14px; line-height: 1.6; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.35); opacity: 0.9; }

/* ───────── 승인·실패 화면 ───────── */
.toss-result { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; line-height: 1.6; overflow-wrap: anywhere; }
.toss-result h2 { font-size: 24px; line-height: 1.35; font-weight: 300; margin: 0; }
.toss-result p { font-size: 16px; letter-spacing: 0.02em; }
.toss-result a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.toss-result__code { font-size: 14px; opacity: 0.7; }
.toss-result .btn { text-decoration: none; justify-content: center; align-self: flex-start; }

/* ───────── 환불 규정 등 문서 페이지 ───────── */
.doc-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; font-size: 16px; line-height: 1.8; letter-spacing: 0.02em; }
.doc-main h1 { font-size: 28px; line-height: 1.35; font-weight: 300; margin-bottom: 16px; }
.doc-main h2 { font-size: 20px; line-height: 1.4; font-weight: 400; margin: 36px 0 8px; }
.doc-main p { margin: 8px 0; }
.doc-main ul { list-style: disc; padding-left: 1.3em; margin: 8px 0; }
.doc-main li { margin: 4px 0; }
.doc-main a { text-decoration: underline; text-underline-offset: 3px; }
.doc-main .doc-table { overflow-x: auto; }
.doc-main table { border-collapse: collapse; min-width: 320px; width: 100%; }
.doc-main th, .doc-main td { text-align: left; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.3); font-weight: 300; }
.doc-draft { font-size: 14px; line-height: 1.6; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.35); opacity: 0.9; }

@media (min-width: 768px) {
  .pay-head { padding-left: 48px; padding-right: 48px; }
  .pay-main, .doc-main { padding-left: 24px; padding-right: 24px; }
  .pay-title { font-size: 32px; }
  .pay-summary { grid-template-columns: 200px 1fr; align-items: start; padding: 20px; }
  .doc-main h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) { .pay-qty-ctl button { transition: none; } }

/* ───────── 오시는 길(카카오 지도) — 모바일 우선 ───────── */
.location {
  position: relative; z-index: 1; background: var(--bg);
  padding: 72px 20px 56px;
}
.location-inner { max-width: 1120px; margin: 0 auto; }
.location h2 { font-size: 24px; line-height: 1.35; letter-spacing: 0.01em; font-weight: 300; }
.location-address { margin-top: 12px; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.location-lead { margin-top: 4px; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; max-width: 34em; opacity: 0.85; }
.kakao-map { width: 100%; height: 300px; margin-top: 24px; overflow: hidden; background: #2a2623; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 16px; }
/* 카카오 규정: 노랑 #FEE500 + 검정 글자 */
.kakao-map-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  background: #FEE500; color: #191919; font-size: 16px; font-weight: 400; letter-spacing: 0.02em;
}
.kakao-map-link:hover, .kakao-map-link:focus-visible { background: #f5dc00; }
.kakao-map-link:focus-visible { outline-color: #FEE500; }
@media (min-width: 768px) {
  .location { padding: 96px 48px 72px; }
  .location h2 { font-size: 32px; }
  .kakao-map { height: 380px; }
}
@media (min-width: 1100px) {
  .location { padding: 112px 8% 88px; }
  .location h2 { font-size: 40px; }
  .kakao-map { height: 440px; }
}
