/* 위지스 쇼핑몰 — 「파크골프 친구」 브랜드 컬러 시스템(wizice.com/apps/parkgolf 재사용) */
:root {
  --pg-green-900: #0b3320;
  --pg-green-800: #14532d;
  --pg-green-600: #167a45;
  --pg-green-500: #1f9d55;
  --pg-mint: #7ee2a8;
  --pg-mint-soft: #d8f5e5;
  --pg-lime: #c8f24a;
  --pg-sand: #f6f4ec;
  --pg-ink: #17251d;
  --pg-ink-soft: #55655c;
  --pg-line: #dfe7e1;
  --pg-radius: 18px;
}

body { font-family: -apple-system, "Malgun Gothic", sans-serif; background: #fff; margin: 0; color: var(--pg-ink);
       word-break: keep-all; overflow-wrap: break-word; } /* 한글이 글자 단위로 안 깨지게(2026-08-10) */
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }

.topbar { background: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center;
          justify-content: space-between; gap: 8px 16px;
          box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 20; }
.brand { font-size: 16px; font-weight: 800; color: var(--pg-green-800); text-decoration: none; white-space: nowrap; }
.topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
.lookupLink { font-size: 13px; color: var(--pg-ink-soft); text-decoration: none; font-weight: 600; white-space: nowrap; }
.cartLink { position: relative; font-size: 13px; color: var(--pg-green-800); text-decoration: none; font-weight: 700; white-space: nowrap; }
#authArea { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
#authArea a { color: var(--pg-ink-soft); text-decoration: none; font-weight: 600; }
.cartBadge { position: absolute; top: -9px; right: -14px; background: var(--pg-green-500); color: #fff;
             font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 6px; min-width: 16px; text-align: center; }
.linkBtn { background: none; border: none; color: var(--pg-ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ── 로그인/회원가입: 소셜 로그인 버튼 ─────────────────────────────────── */
.oauthRow { display: grid; gap: 10px; margin-top: 16px; }
.oauthBtn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.oauthBtn img { width: 18px; height: 18px; }
.oauthRow .oauthBtn--google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.oauthRow .oauthBtn--kakao { background: #FEE500; color: #191600; }
.orDivider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #9ca3af; font-size: 13px; }
.orDivider::before, .orDivider::after { content: ""; flex: 1; height: 1px; background: var(--pg-line); }

.page { max-width: 480px; margin: 0 auto; padding: 20px 16px 90px; box-sizing: border-box; }
/* 상품목록/상세는 데스크톱에서 넓게 — 480px에 갇히면 2~3단 그리드가 그 안에서
   다시 쪼개져 글자가 세로로 깨진다(2026-08-10 실사용 확인된 버그). 폼 성격이 강한
   장바구니/체크아웃/주문조회 등은 좁은 폭이 오히려 읽기 편해 그대로 둔다.
   ⚠️ 컨테이너가 넓어지는 시점과 아래 pdHero/pdShots가 다단 그리드로 바뀌는 시점을
   반드시 같은 breakpoint(640px)에서 맞출 것 — 어긋나면 같은 버그가 재발한다. */
@media (min-width: 640px) {
  .page--shop { max-width: 720px; padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1024px) {
  .page--shop { max-width: 1100px; padding-left: 32px; padding-right: 32px; }
}

/* ── 상품 목록 ─────────────────────────────────────────── */
.productGrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .productGrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
.productCard { background: #fff; border-radius: var(--pg-radius); padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
               text-decoration: none; color: inherit; display: block; border: 1px solid var(--pg-line); }
.productCard .thumb { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; border: 1px solid var(--pg-line);
                       display: flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 10px; overflow: hidden;
                       box-sizing: border-box; }
.productCard .thumb img { width: auto; height: auto; max-width: 44px; max-height: 44px; object-fit: contain; }
.productCard .name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.productCard .price { font-size: 18px; font-weight: 800; color: var(--pg-green-600); }
.productCard .soldout { color: #dc2626; font-weight: 700; font-size: 13px; }

/* ── 상품 상세: 히어로 ─────────────────────────────────── */
.pdHero { display: grid; gap: 20px; }
.pdGallery { background: #fff; border: 1px solid #c9d4cc; border-radius: var(--pg-radius); aspect-ratio: 1; width: 100%; max-width: 320px;
             display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; margin-left: auto; margin-right: auto;
             box-shadow: 0 2px 10px rgba(11,51,32,.06); }
/* 실제 크기(약 3x5cm, 엄지손가락만함)에 가깝게 — 컨테이너 크기와 무관하게 고정값으로 작게. */
.pdGallery img { width: auto; height: auto; max-width: 48px; max-height: 48px; object-fit: contain; }
.pdBadge { display: inline-flex; align-items: center; gap: 6px; background: var(--pg-mint-soft); color: var(--pg-green-800);
           font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
h1.pName { font-size: 21px; margin: 0 0 6px; font-weight: 800; }
.pRating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pg-ink-soft); margin-bottom: 10px; }
.pRating .stars { color: #f59e0b; letter-spacing: 1px; }
.pRating a { color: var(--pg-green-600); font-weight: 700; text-decoration: none; }
.pPrice { font-size: 26px; font-weight: 900; color: var(--pg-green-800); margin-bottom: 12px; }
.pDesc { font-size: 14px; color: var(--pg-ink-soft); line-height: 1.7; margin-bottom: 20px; white-space: pre-wrap; }
.stockBadge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.stockBadge.ok { background: var(--pg-mint-soft); color: var(--pg-green-800); }
.stockBadge.out { background: #fee2e2; color: #991b1b; }

.qtyRow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qtyRow button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--pg-line); background: #fff;
                  font-size: 18px; cursor: pointer; color: var(--pg-green-800); }
.qtyRow input { width: 60px; text-align: center; font-size: 16px; padding: 8px; border: 1px solid var(--pg-line); border-radius: 10px; }

.btnRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bigBtn { display: block; width: 100%; padding: 16px; font-size: 16px; font-weight: 700; color: #fff;
          background: var(--pg-green-500); border: none; border-radius: 14px; cursor: pointer; box-sizing: border-box;
          text-align: center; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.bigBtn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,157,85,.25); }
.bigBtn:disabled { background: #9ca3af; cursor: default; transform: none; box-shadow: none; }
.bigBtn.secondary { background: #fff; color: var(--pg-green-800); border: 2px solid var(--pg-green-500); }
.bigBtn.ghost { background: var(--pg-green-900); }

/* ── 섹션 공통(department-store 급 콘텐츠 블록) ─────────── */
/* 히어로는 1100px 전체를 쓰되, 그 아래 설명 섹션들은 760px로 다시 좁혀 읽기 편한
   본문폭을 유지한다(레퍼런스 wizice.com/apps/parkgolf의 .pg-wrap 관례와 동일). */
.pdSection { margin-top: 48px; max-width: 760px; margin-left: auto; margin-right: auto; }
.pdEyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
             color: var(--pg-green-600); margin-bottom: 8px; }
.pdH2 { font-size: 22px; font-weight: 800; margin: 0 0 10px; line-height: 1.35; }
.pdLead { font-size: 14px; line-height: 1.8; color: var(--pg-ink-soft); margin: 0 0 20px; }

/* ── GSAP 동작원리 스테이지(wizice.com/apps/parkgolf 재사용) ─ */
.pg-stage { position: relative; border-radius: 20px; background: linear-gradient(170deg, #ffffff 0%, #f0f7f2 100%);
            border: 1px solid var(--pg-line); box-shadow: 0 14px 34px rgba(11,51,32,.08); padding: 24px 14px 18px;
            perspective: 1200px; overflow: hidden; }
.pg-stage-scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px;
                   min-height: 0; transform-style: preserve-3d; }
.pg-actor { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; }
.pg-btn3d { position: relative; width: 110px; height: 110px; transform: rotateX(30deg) rotateZ(-8deg); transform-style: preserve-3d; }
.pg-btn-body { position: absolute; inset: 0; border-radius: 50%;
               background: radial-gradient(circle at 34% 28%, #eaff9a 0%, var(--pg-lime) 48%, #a5d128 100%);
               box-shadow: 0 11px 0 #7fa81d, 0 24px 28px rgba(11,51,32,.28); }
.pg-btn-top { position: absolute; inset: 16px; border-radius: 50%;
              background: radial-gradient(circle at 38% 30%, #f7ffd0, #cbf055 72%);
              box-shadow: inset 0 3px 7px rgba(255,255,255,.9), inset 0 -3px 8px rgba(120,160,20,.35); }
.pg-btn-hole { position: absolute; right: 10px; bottom: 16px; width: 14px; height: 14px; border-radius: 50%;
               background: #f4f7ee; box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.pg-btn-ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid rgba(31,157,85,.55); opacity: 0; }
.pg-hand { position: absolute; top: 0; left: 50%; margin-left: 4px; color: var(--pg-green-800); font-size: 2rem;
           line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.22)); z-index: 3; }
.pg-actor-label { font-size: .82rem; font-weight: 700; color: var(--pg-ink-soft); }
.pg-count { display: inline-flex; align-items: baseline; gap: 4px; background: var(--pg-green-800); color: #fff;
            border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.pg-count small { font-size: .74rem; font-weight: 600; opacity: .8; }

.pg-signal { position: relative; width: 100%; height: 90px; }
.pg-signal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pg-wave { fill: none; stroke: var(--pg-green-500); stroke-width: 3; stroke-linecap: round; opacity: .16; }
.pg-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; margin: -6px 0 0 -6px; border-radius: 50%;
          background: var(--pg-green-500); box-shadow: 0 0 0 6px rgba(31,157,85,.18); opacity: 0; }
.pg-signal-label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: .76rem; font-weight: 700;
                    color: var(--pg-green-600); background: #fff; border: 1px solid var(--pg-line); border-radius: 999px;
                    padding: 4px 12px; white-space: nowrap; opacity: 0; }

.pg-pocket-group { position: relative; transform-style: preserve-3d; padding-top: 74px; }
.pg-pocket { position: relative; width: 190px; height: 210px; margin: 0 auto; transform: rotateY(-10deg) rotateX(2deg); transform-style: preserve-3d; }
.pg-pocket-cloth { position: absolute; left: 0; right: 0; bottom: 0; height: 132px; border-radius: 10px 10px 24px 24px;
                    background: linear-gradient(170deg, #5478b4 0%, #3a5788 100%);
                    box-shadow: 0 16px 30px rgba(11,51,32,.22), inset 0 3px 0 rgba(255,255,255,.22); z-index: 2; }
.pg-pocket-seam { position: absolute; left: 12px; right: 12px; top: 15px; height: 0; border-top: 3px dashed rgba(255,255,255,.34); }
.pg-phone { position: absolute; left: 50%; top: 0; width: 94px; height: 160px; margin-left: -47px; border-radius: 14px;
            background: #12211a; border: 3px solid #24352c; box-shadow: 0 10px 18px rgba(0,0,0,.32); overflow: hidden; z-index: 1; }
.pg-phone-screen { position: absolute; inset: 4px; border-radius: 8px; background: linear-gradient(180deg,#dff3e6,#f3fbf6);
                    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 9px; gap: 2px; color: var(--pg-green-800); }
.pg-phone-hole { font-size: .55rem; font-weight: 700; letter-spacing: .02em; color: #4d7a60; }
.pg-phone-score { font-size: 1.6rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pg-phone-tag { font-size: .58rem; font-weight: 800; color: #b45309; }
.pg-pocket-caption { text-align: center; margin-top: 12px; font-size: .8rem; color: var(--pg-ink-soft); }

.pg-voice { position: absolute; top: 2px; left: 50%; transform: translateX(-46%); display: flex; align-items: center; gap: 8px;
            background: #fff; border: 2px solid var(--pg-green-500); border-radius: 14px; padding: 8px 14px;
            box-shadow: 0 10px 22px rgba(11,51,32,.18); white-space: nowrap; opacity: 0; z-index: 3; }
.pg-voice::after { content: ""; position: absolute; left: 30px; bottom: -8px; width: 12px; height: 12px; background: #fff;
                    border-right: 2px solid var(--pg-green-500); border-bottom: 2px solid var(--pg-green-500); transform: rotate(45deg); }
.pg-voice-text { font-weight: 800; color: var(--pg-green-800); font-size: .92rem; }
.pg-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.pg-eq i { display: block; width: 4px; height: 6px; border-radius: 2px; background: var(--pg-green-500); }
.pg-eq i:nth-child(1) { height: 8px; } .pg-eq i:nth-child(2) { height: 15px; } .pg-eq i:nth-child(3) { height: 21px; }
.pg-eq i:nth-child(4) { height: 13px; } .pg-eq i:nth-child(5) { height: 7px; }

.pg-steps { display: grid; gap: 10px; margin-top: 22px; }
.pg-step { background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; padding: 13px 15px;
           transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.pg-step.is-on { border-color: var(--pg-green-500); box-shadow: 0 8px 18px rgba(31,157,85,.16); transform: translateY(-2px); }
.pg-step b { display: block; font-size: .92rem; margin-bottom: 3px; color: var(--pg-green-800); }
.pg-step span { font-size: .82rem; color: var(--pg-ink-soft); line-height: 1.6; }

.pg-stage-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.pg-ctrl { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pg-green-500); background: #fff;
           color: var(--pg-green-800); font-weight: 700; font-size: .84rem; padding: 9px 16px; border-radius: 999px; cursor: pointer;
           transition: background .18s ease, color .18s ease; }
.pg-ctrl:hover { background: var(--pg-green-500); color: #fff; }
.pg-ctrl[hidden] { display: none !important; }

/* ── 실사 갤러리 ───────────────────────────────────────── */
.pdShots { display: grid; gap: 16px; }
.pdShot { border-radius: 16px; overflow: hidden; border: 1px solid var(--pg-line); }
.pdShot img { width: 100%; display: block; }
.pdShot figcaption { padding: 12px 14px; font-size: 13px; color: var(--pg-ink-soft); line-height: 1.6; background: var(--pg-sand); }

/* ── 스펙 ──────────────────────────────────────────────── */
.specTable { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; overflow: hidden; }
.specTable td { padding: 12px 16px; border-bottom: 1px solid var(--pg-line); }
.specTable tr:last-child td { border-bottom: none; }
.specTable td:first-child { color: var(--pg-ink-soft); font-weight: 600; width: 38%; background: var(--pg-sand); }

/* ── 후기 ──────────────────────────────────────────────── */
.reviewSummary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.reviewSummary .avg { font-size: 30px; font-weight: 900; color: var(--pg-green-800); }
.reviewSummary .stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.reviewSummary .count { font-size: 13px; color: var(--pg-ink-soft); }
.reviewCard { background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.reviewCard .rTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reviewCard .rName { font-weight: 700; font-size: 14px; }
.reviewCard .rStars { color: #f59e0b; font-size: 13px; }
.reviewCard .rDate { font-size: 12px; color: #9ca3af; }
.reviewCard .rBody { font-size: 14px; line-height: 1.7; color: var(--pg-ink); white-space: pre-wrap; }
.verifiedBadge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--pg-green-600); background: var(--pg-mint-soft);
                 padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* ── 후기 작성 폼 / 체크아웃 등 공용 폼 ────────────────── */
label { display: block; font-size: 13px; color: #555; margin: 14px 0 4px; font-weight: 600; }
label .req { color: #dc2626; font-weight: 800; }
input, textarea, select { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 15px;
        border: 1px solid #ccc; border-radius: 10px; font-family: inherit; }
input[readonly] { background: #f9fafb; color: var(--pg-ink); cursor: pointer; }
textarea { resize: vertical; min-height: 90px; }
.zipRow { display: flex; gap: 8px; align-items: stretch; }
.zipRow input { flex: 0 0 120px; }
.zipRow .bigBtn { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 12px 18px; font-size: 14px; }

.summaryCard { background: #fff; border-radius: var(--pg-radius); padding: 16px; margin: 16px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid var(--pg-line); }
.summaryRow { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; align-items: center; }
.summaryRow.total { font-size: 17px; font-weight: 800; border-top: 1px solid var(--pg-line); padding-top: 10px; margin-top: 10px; }

.errorMsg { color: #dc2626; font-size: 14px; margin: 10px 0; white-space: pre-wrap; }
.okMsg { color: var(--pg-green-600); font-size: 14px; margin: 10px 0; }
.empty { color: #999; text-align: center; padding: 40px 0; }

/* ── 결제대기 ──────────────────────────────────────────── */
.payStatus { text-align: center; padding: 30px 0; }
.payStatus .spinner { font-size: 40px; margin-bottom: 16px; }
.payStatus h2 { margin: 0 0 8px; }
.payStatus p { color: #666; font-size: 14px; }

/* ── 주문상태 진행바 ───────────────────────────────────── */
.trackBar { display: flex; justify-content: space-between; margin: 20px 0; }
.trackStep { flex: 1; text-align: center; font-size: 12px; color: #9ca3af; position: relative; }
.trackStep.done { color: var(--pg-green-600); font-weight: 700; }
.trackStep .dot { width: 12px; height: 12px; border-radius: 50%; background: #e5e7eb; margin: 0 auto 6px; }
.trackStep.done .dot { background: var(--pg-green-500); }

/* ── 장바구니 ──────────────────────────────────────────── */
.cartItem { display: flex; gap: 12px; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.cartItem .thumb { width: 64px; height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--pg-line); flex-shrink: 0; overflow: hidden;
                    box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.cartItem .thumb img { width: auto; height: auto; max-width: 22px; max-height: 22px; object-fit: contain; }
.cartItem .info { flex: 1; min-width: 0; }
.cartItem .name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cartItem .price { color: var(--pg-green-600); font-weight: 700; font-size: 14px; }
.cartItem .rmBtn { background: none; border: none; color: #9ca3af; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.cartQty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cartQty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--pg-line); background: #fff; cursor: pointer; }

/* ── 하단 고정 구매바(모바일) ──────────────────────────── */
.stickyBar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--pg-line);
             padding: 12px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); z-index: 15; }
.stickyBar .btnRow { max-width: 640px; margin: 0 auto; }

@media (min-width: 640px) {
  .pdHero { grid-template-columns: 1fr 1fr; align-items: start; }
  .pdShots { grid-template-columns: repeat(3, 1fr); }
}

/* ── 실사 라이프스타일 큰 사진 섹션(사용법 3단 아이콘과는 다른, 별도의 큰 레이아웃) ── */
.pdShowcase { display: grid; gap: 28px; max-width: 900px; margin: 0 auto; }
.pdShowcaseItem { border-radius: 20px; overflow: hidden; border: 1px solid var(--pg-line); box-shadow: 0 10px 28px rgba(11,51,32,.08); }
.pdShowcaseItem img { width: 100%; display: block; max-height: 620px; object-fit: cover; }
.pdShowcaseItem figcaption { padding: 18px 22px; font-size: 15px; color: var(--pg-ink-soft); line-height: 1.7; background: var(--pg-sand); }

/* ── 좌우 여백 앱 다운로드 배너 — 화면이 아주 넓을 때만, 컨텐츠와 안 겹치게 ──── */
.sideBanner { display: none; position: fixed; top: 96px; width: 190px; z-index: 5;
              border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(11,51,32,.16);
              transition: transform .2s ease; }
.sideBanner img { width: 100%; display: block; }
.sideBanner:hover { transform: translateY(-3px); }
.sideBanner--left { left: 24px; }
.sideBanner--right { right: 24px; }
@media (min-width: 1600px) {
  .sideBanner { display: block; }
}
@media (min-width: 1820px) {
  .sideBanner { width: 230px; }
}
