/* 제품 페이지 히어로 버튼 정리 (WEB-N-120, 2026-11-16)
   색은 한 곳에만 — 주황은 「구매하기 / 구독하기」 하나. 나머지는 흰 테두리 · 회색 칩.
   1층 사기(가격 상자 안 구매 버튼) · 2층 맛보기(흰 버튼) · 3층 도구(회색 칩). */

.ph-buybox { background: linear-gradient(90deg, #fffbeb, #fef3c7); border: 2px solid #fde68a; border-radius: 14px; padding: 18px 18px 14px; margin-bottom: 14px; }
.ph-price-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.ph-price { font-size: 1.6rem; font-weight: 800; color: #92400e; line-height: 1.25; }
.ph-price s { font-size: 1rem; font-weight: 600; opacity: .6; margin-right: 6px; }
.ph-price-sub { font-size: .875rem; color: #b45309; }
.ph-note { font-size: .78rem; color: #b45309; margin-top: 6px; line-height: 1.5; }

.ph-buy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; margin-top: 14px;
  background: linear-gradient(90deg, #f59e0b, #b45309); color: #fff; font-weight: 800; font-size: 1.05rem; text-align: center;
  padding: 14px 18px; border-radius: 12px; box-shadow: 0 6px 16px rgba(180, 83, 9, .22); transition: filter .15s, box-shadow .15s; }
.ph-buy:hover { filter: brightness(1.05); box-shadow: 0 10px 22px rgba(180, 83, 9, .3); }
.ph-buy small { font-size: .7rem; font-weight: 500; opacity: .9; }

.ph-refund { margin-top: 8px; font-size: .8rem; color: #065f46; text-align: center; }
.ph-refund a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.ph-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #fde68a; font-size: .82rem; }
.ph-links a { color: #92400e; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ph-links a:hover { color: #78350f; }
.ph-links .ph-pay { color: #a16207; font-weight: 400; text-decoration: none; }

.ph-seconds { display: grid; gap: 10px; margin-bottom: 14px; }
.ph-second { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; border: 1.5px solid #d1d5db;
  color: #1f2937; font-weight: 700; font-size: .95rem; padding: 12px 16px; border-radius: 12px; text-align: center; transition: border-color .15s, background .15s; }
.ph-second:hover { border-color: #d97706; background: #fffbeb; }
.ph-second small { font-size: .72rem; font-weight: 500; color: #6b7280; }

.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; background: #f3f4f6; border: 1px solid #e5e7eb; color: #374151; font-size: .85rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; line-height: 1.2; }
.ph-chip:hover { background: #e5e7eb; border-color: #d1d5db; }
.ph-chip svg { width: 15px; height: 15px; flex-shrink: 0; }
.ph-chip .ph-owned { font-size: .7rem; font-weight: 700; color: #047857; background: #d1fae5; border-radius: 999px; padding: 1px 7px; }

/* 모바일 — 구매 버튼이 화면 밖으로 나가면 아래에 붙는다 (product-hero.js) */
.ph-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid #e5e7eb; box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
.ph-mobilebar.is-on { display: flex; }
.ph-mobilebar .ph-mb-price { flex: 1; min-width: 0; font-weight: 800; color: #92400e; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-mobilebar .ph-buy { width: auto; margin: 0; padding: 10px 18px; font-size: .95rem; box-shadow: none; }
@media (min-width: 768px) { .ph-mobilebar, .ph-mobilebar.is-on { display: none; } }
