/* Risepick 사이트 스타일 — 목업 01-main v1.2 / 02-detail 기준 (A 나이트 딜) */
  /* 유튜브 영상 키트(A 나이트 딜)와 같은 토큰 */
  :root {
    --ink: #111113; --ink-2: #1a1a1e; --ink-3: #26262c; --line: #33333b;
    --yel: #FFD232; --red: #FF4D3D; --white: #fff; --mute: #9a9aa6;
    --num: "Inter", "Noto Sans KR", sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: "Noto Sans KR", "Malgun Gothic", sans-serif; background: var(--ink); color: var(--white); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  svg.icon { display: block; }

  /* 경고테이프 줄무늬 */
  .tape { height: 22px; background: repeating-linear-gradient(-55deg, var(--yel) 0 18px, var(--ink) 18px 36px); }
  .tape.thin { height: 10px; background: repeating-linear-gradient(-55deg, var(--yel) 0 8px, transparent 8px 16px); }

  /* 상단 고지 (17_ad_disclosure 형식) */
  .disclosure { background: #000; font-size: 12px; color: #cfcfd6; }
  .disclosure .wrap { display: flex; align-items: center; gap: 10px; padding-top: 7px; padding-bottom: 7px; }
  .disclosure b { background: var(--yel); color: var(--ink); font-weight: 900; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

  /* 헤더 */
  header { position: sticky; top: 0; z-index: 10; background: rgba(17,17,19,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
  .logo { display: flex; align-items: center; gap: 10px; font-family: "Inter"; font-weight: 900; font-size: 26px; letter-spacing: -.5px; }
  .logo b { font-weight: 900; }
  .logo span { color: var(--yel); }
  nav { display: flex; gap: 4px; }
  nav a { padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 15px; color: #d8d8de; }
  nav a:hover { background: var(--ink-3); }
  nav a.on { background: var(--yel); color: var(--ink); }
  .search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 16px; width: 280px; color: var(--mute); font-size: 14px; }
  .search:focus-within { border-color: var(--yel); }
  .search input { background: none; border: 0; outline: 0; color: var(--white); font: inherit; width: 100%; }

  /* 히어로 (채널 배너 형식) */
  .hero { position: relative; overflow: hidden; background: radial-gradient(600px 300px at 30% 55%, rgba(255,210,50,.13), transparent 70%), var(--ink); }
  .hero .stripe { position: absolute; left: -5%; right: -5%; height: 14px; background: repeating-linear-gradient(-55deg, var(--yel) 0 14px, transparent 14px 28px); }
  .hero .stripe.top { top: 10px; transform: rotate(.8deg); }
  .hero .stripe.bot { bottom: 8px; transform: rotate(.8deg); }
  .hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
  .hero .pct { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); font-family: "Inter"; font-weight: 900; font-size: 150px; color: transparent; -webkit-text-stroke: 2px #2c2c33; pointer-events: none; }
  .hero h1 { position: relative; font-family: "Inter"; font-weight: 900; font-size: 52px; line-height: .95; letter-spacing: -1.5px; }
  .hero h1 span { color: var(--yel); }
  .hero .slogan { position: relative; margin-top: 8px; font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
  .hero-row { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
  .chips { position: relative; display: flex; gap: 6px; flex-wrap: wrap; }
  .chip { padding: 4px 10px; border-radius: 7px; border: 1.5px solid #e8e8ee; font-weight: 700; font-size: 13px; }
  .chip.y { background: var(--yel); border-color: var(--yel); color: var(--ink); }
  .hero .cta-row { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
  .hero .btn { padding: 8px 16px; font-size: 14px; border-radius: 10px; gap: 8px; }
  .hero .btn.y { box-shadow: 0 4px 0 #b8941a; }
  .hero .btn .down { width: 20px; height: 20px; font-size: 12px; }

  /* 버튼 (CTA 형식) */
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 900; font-size: 17px; cursor: pointer; border: 0; font-family: inherit; }
  .btn.y { background: var(--yel); color: var(--ink); box-shadow: 0 6px 0 #b8941a; }
  .btn.y:hover { transform: translateY(2px); box-shadow: 0 4px 0 #b8941a; }
  .btn.o { background: transparent; color: var(--white); border: 2px solid #e8e8ee; }
  .btn .down { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--yel); display: grid; place-items: center; font-size: 15px; }

  /* 가격표 카드 (10_price_tag 형식) */
  .ptag { background: var(--ink-2); border: 3px solid var(--yel); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
  .ptag .head { position: relative; background: var(--yel); color: var(--ink); padding: 12px 70px 12px 18px; font-weight: 900; font-size: 19px; letter-spacing: -.3px; }
  .ptag .head .mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(-14deg); }
  .ptag .body { position: relative; padding: 16px 18px 18px; }
  .ptag .old { color: var(--mute); font-weight: 700; font-size: 14px; }
  .ptag .old s { font-family: var(--num); font-size: 20px; color: #8a8a95; text-decoration-color: var(--red); text-decoration-thickness: 3px; margin-left: 6px; }
  .ptag .lbl { margin-top: 12px; color: var(--yel); font-weight: 900; font-size: 15px; }
  .ptag .now { font-family: var(--num); font-weight: 900; font-size: 44px; line-height: 1.05; letter-spacing: -1px; }
  .ptag .now small { font-family: "Noto Sans KR"; font-size: 20px; margin-left: 4px; }
  .burst { position: absolute; right: 14px; bottom: 18px; width: 92px; height: 92px; background: var(--red); display: grid; place-items: center; font-family: "Inter"; font-weight: 900; font-size: 22px; color: var(--white); }
  .hero .ptag { transform: rotate(-2deg); border-radius: 14px; }
  .hero .ptag .head { padding: 7px 56px 7px 14px; font-size: 15px; }
  .hero .ptag .head .mark { width: 38px; height: 26px; }
  .hero .ptag .body { padding: 8px 14px 10px; }
  .hero .ptag .old s { font-size: 15px; }
  .hero .ptag .lbl { margin-top: 4px; font-size: 13px; }
  .hero .ptag .now { font-size: 38px; }
  .hero .ptag .burst { width: 76px; height: 76px; font-size: 19px; right: 12px; bottom: 10px; }

  /* 배지 (14·15·16 형식) */
  .badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-weight: 900; font-size: 13px; white-space: nowrap; }
  .badge.live { background: var(--yel); color: var(--ink); }
  .badge.soon { background: var(--red); color: var(--white); }
  .badge.low { background: var(--white); color: var(--ink); }
  .badge.open { background: var(--ink); color: var(--white); border: 2px solid var(--white); }
  .badge .dot { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid currentColor; position: relative; }
  .badge .dot::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: currentColor; }
  .badge.soon .dot { animation: blink 1s infinite; }
  @keyframes blink { 50% { opacity: .25; } }

  /* 섹션 제목 (12_lower_third 형식) */
  section { padding: 56px 0 8px; }
  .lt { display: flex; align-items: stretch; background: var(--ink-2); border-radius: 14px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); }
  .lt .ic { background: var(--yel); width: 76px; display: grid; place-items: center; flex: none; }
  .lt .tx { padding: 14px 20px; flex: 1; position: relative; }
  .lt h2 { font-size: 26px; font-weight: 900; letter-spacing: -.5px; }
  .lt p { color: var(--yel); font-weight: 700; font-size: 14px; margin-top: 2px; }
  .lt .tape.thin { position: absolute; right: 18px; bottom: 14px; width: 110px; }
  .lt .more { align-self: center; margin-right: 20px; font-weight: 700; font-size: 14px; color: #d8d8de; position: relative; z-index: 1; }

  /* 상품 그리드 */
  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .card { background: var(--ink-2); border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line); transition: transform .15s, border-color .15s; }
  .card:hover { transform: translateY(-4px); border-color: var(--yel); }
  .card .thumb { position: relative; aspect-ratio: 1; background: linear-gradient(135deg, #2a2a31, #1c1c21); display: grid; place-items: center; color: #5b5b66; font-size: 13px; font-weight: 700; }
  .card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .card .thumb .badge { position: absolute; left: 12px; top: 12px; }
  .card .thumb .dday { position: absolute; right: 12px; top: 12px; font-family: "Inter"; font-weight: 900; font-size: 14px; background: var(--ink); color: var(--yel); padding: 4px 9px; border-radius: 8px; border: 1.5px solid var(--yel); }
  .card .thumb .mini-burst { position: absolute; right: 10px; bottom: 10px; width: 62px; height: 62px; background: var(--red); display: grid; place-items: center; font-family: "Inter"; font-weight: 900; font-size: 15px; color: var(--white); }
  .card .info { padding: 14px 16px 18px; }
  .card .name { font-weight: 700; font-size: 15px; line-height: 1.4; height: 42px; overflow: hidden; }
  .card .old { margin-top: 8px; color: #8a8a95; font-size: 13px; }
  .card .old s { font-family: var(--num); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
  .card .now { display: flex; align-items: baseline; gap: 6px; }
  .card .now .l { color: var(--yel); font-weight: 900; font-size: 13px; }
  .card .now b { font-family: var(--num); font-weight: 900; font-size: 26px; letter-spacing: -.5px; }
  .card .bar { margin-top: 12px; height: 8px; background: var(--ink-3); border-radius: 99px; overflow: hidden; }
  .card .bar i { display: block; height: 100%; background: repeating-linear-gradient(-55deg, var(--yel) 0 6px, #e6b800 6px 12px); }
  .card .meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--mute); }
  .card .meta em { font-style: normal; color: var(--white); font-weight: 700; }
  /* 링크형 공구: 인원 없이 판매기간 + 외부 구매 링크 */
  .card .period { display: flex; justify-content: space-between; margin-top: 12px; padding: 7px 10px; border-radius: 8px; background: var(--ink-3); font-size: 12px; color: var(--mute); }
  .card .period em { font-style: normal; color: var(--white); font-weight: 700; }
  .card .go { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 900; color: var(--yel); }
  .card .go span { width: 22px; height: 22px; border-radius: 50%; background: var(--yel); color: var(--ink); display: grid; place-items: center; font-size: 12px; }

  /* 최저가 비교 */
  .low-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .low { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; }
  .low h3 { font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
  .low table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
  .low td { padding: 10px 4px; border-top: 1px solid var(--line); }
  .low td:last-child { text-align: right; font-family: var(--num); font-weight: 900; font-size: 16px; }
  .low tr.best td { color: var(--yel); }
  .low tr.best td:first-child::after { content: "최저"; margin-left: 8px; font-size: 11px; background: var(--yel); color: var(--ink); padding: 2px 6px; border-radius: 4px; font-weight: 900; }
  .spark { margin-top: 12px; }
  .low tr.wait td { color: var(--mute); font-family: inherit; font-weight: 400; font-size: 13px; }
  .low .src { margin-top: 10px; font-size: 12px; color: var(--mute); }
  .low a:hover { text-decoration: underline; }

  /* 띠 배너 */
  .band { margin-top: 64px; background: var(--yel); color: var(--ink); }
  .band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
  .band h3 { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
  .band p { font-weight: 700; margin-top: 4px; }
  .band .btn { background: var(--ink); color: var(--yel); }

  /* 푸터 */
  footer { padding: 40px 0 48px; color: var(--mute); font-size: 13px; }
  footer .wrap { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
  footer .logo { font-size: 20px; color: var(--white); margin-bottom: 10px; }
  footer .notice { margin-top: 10px; font-size: 12px; line-height: 1.6; color: #7d7d88; }
  footer .copy { margin-top: 8px; color: #cfcfd6; }
  .foot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
  .visits { display: flex; align-items: center; gap: 12px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 99px; font-family: "Inter"; font-weight: 700; font-size: 12px; letter-spacing: .5px; color: var(--mute); }
  .visits b { color: var(--yel); font-weight: 900; font-size: 14px; margin-left: 4px; }
  .visits i { width: 1px; height: 12px; background: var(--line); }
  .mock-ver { margin-top: 18px; font-size: 11px; color: #55555f; }
  @media (max-width: 560px) { .foot-r { align-items: flex-start; } }
  .barcode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .barcode .bars { height: 46px; width: 170px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 12px); }
  .barcode span { font-family: "Inter"; font-weight: 700; color: #cfcfd6; letter-spacing: 1px; }

  /* 반응형 */
  @media (max-width: 1000px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero .wrap { grid-template-columns: 1fr; }
    .hero .ptag { max-width: 360px; }
    .low-wrap { grid-template-columns: 1fr; }
    nav, .search { display: none; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .hero h1 { font-size: 42px; }
    .hero .slogan { font-size: 17px; }
    .hero .pct { font-size: 110px; }
    .hero .ptag .now { font-size: 32px; }
    .grid { gap: 12px; }
    .card .now b { font-size: 21px; }
    .lt h2 { font-size: 20px; }
    .lt .ic { width: 58px; }
    .lt .tape.thin { display: none; }
    .disclosure span { font-size: 11px; }
  }
  [hidden] { display: none !important; }
  a.ptag { display: block; }
  .card .thumb .dday.hot { background: var(--red); color: var(--white); border-color: var(--red); }
  .empty-box { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: 20px; }
  .empty-box svg { margin: 0 auto 16px; }
  .empty-box h3 { font-size: 24px; font-weight: 900; }
  .empty-box p { color: var(--mute); margin: 6px 0 20px; }

  /* 1+1 묶음 딜 */
  .card .thumb .deal-tag { position: absolute; left: 10px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 10px; background: var(--ink); border: 2px solid var(--yel); font-family: var(--num); font-weight: 900; font-size: 15px; color: var(--white); box-shadow: 0 6px 16px rgba(0,0,0,.45); }
  .card .thumb .deal-tag b { background: var(--yel); color: var(--ink); padding: 2px 7px; border-radius: 6px; font-size: 13px; }
  .card .thumb .deal-tag em { font-style: normal; font-family: "Noto Sans KR"; font-size: 11px; color: var(--yel); }
  .deal-strip { display: flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--red); color: var(--white); padding: 7px 14px; font-size: 13px; font-weight: 700; }
  .deal-strip b { background: var(--white); color: var(--red); padding: 1px 7px; border-radius: 5px; font-family: var(--num); font-weight: 900; }
  .deal-strip strong { font-family: var(--num); font-weight: 900; font-size: 17px; }
  .deal-strip span { opacity: .85; font-size: 12px; }
  .deal-strip em { font-style: normal; margin-left: auto; background: var(--yel); color: var(--ink); padding: 1px 8px; border-radius: 99px; font-weight: 900; font-size: 12px; }
  .low .deal-note { color: var(--yel); font-weight: 900; font-size: 13px; }
  /* 카카오톡 채널 (오픈 예정 = 비활성) */
  .btn.kakao { background: #FEE500; color: #191919; }
  .btn.kakao .kk { background: #191919; color: #FEE500; font-family: "Inter"; font-weight: 900; font-size: 10px; padding: 3px 6px; border-radius: 8px 8px 8px 2px; }
  .btn.kakao.soon { cursor: default; box-shadow: none; position: relative; }
  .btn.kakao.soon::after { content: "준비중"; position: absolute; top: -9px; right: -8px; background: var(--red); color: var(--white); font-size: 11px; padding: 2px 7px; border-radius: 99px; }
  .band .btn.kakao { background: var(--ink); color: #FEE500; }
  .band .btn.kakao .kk { background: #FEE500; color: var(--ink); }
  /* 관리자 날짜 미리보기 안내 */
  .preview-bar { background: var(--yel); color: var(--ink); text-align: center; font-size: 13px; font-weight: 700; padding: 6px; }
  .preview-bar a { text-decoration: underline; margin-left: 6px; }

  /* ===== 상품 상세 (02-detail) ===== */
  .crumb { padding: 18px 0 14px; font-size: 13px; color: var(--mute); }
  .crumb a:hover { color: var(--yel); }
  .pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .gallery .main-img { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid var(--yel); aspect-ratio: 1; background: #000; }
  .gallery .main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gallery .main-img .badge { position: absolute; left: 16px; top: 16px; font-size: 15px; padding: 7px 14px; }
  .gallery .main-img .burst { right: 16px; bottom: 16px; width: 110px; height: 110px; font-size: 26px; }
  .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
  .thumbs div { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #5b5b66; }
  .thumbs div.on { border: 2.5px solid var(--yel); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .buy .brand { color: var(--yel); font-weight: 900; font-size: 14px; letter-spacing: .5px; }
  .buy h1 { font-size: 28px; font-weight: 900; letter-spacing: -.5px; line-height: 1.3; margin-top: 4px; }
  .rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--mute); }
  .rating .stars { color: var(--yel); letter-spacing: 1px; }
  .rating b { color: var(--white); font-family: var(--num); }
  .buy .ptag { margin-top: 18px; }
  .buy .ptag .now { font-size: 50px; }
  .timer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
  .timer b { font-family: var(--num); font-weight: 900; font-size: 24px; color: var(--red); letter-spacing: .5px; }
  .join { margin-top: 10px; }
  .join .bar { height: 10px; background: var(--ink-3); border-radius: 99px; overflow: hidden; }
  .join .bar i { display: block; height: 100%; background: repeating-linear-gradient(-55deg, var(--yel) 0 7px, #e6b800 7px 14px); }
  .join .meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--mute); }
  .join .meta em { font-style: normal; color: var(--white); font-weight: 700; }
  .field { margin-top: 18px; }
  .field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
  .field select { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--ink-2); color: var(--white); border: 1.5px solid var(--line); font: inherit; font-size: 15px; }
  .field select:focus { outline: 0; border-color: var(--yel); }
  .qty-row { display: flex; align-items: center; gap: 14px; }
  .qty-row label { margin: 0; }
  .qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
  .qty button { width: 36px; height: 36px; background: var(--ink-2); color: var(--white); border: 0; font-size: 18px; cursor: pointer; }
  .qty span { width: 40px; text-align: center; font-family: var(--num); font-weight: 700; }
  .total { margin-left: auto; font-size: 15px; }
  .total b { font-family: var(--num); font-weight: 900; font-size: 24px; color: var(--yel); margin-left: 6px; }
  .actions { display: flex; gap: 10px; margin-top: 20px; }
  .actions .big { flex: 1; justify-content: center; font-size: 19px; padding: 16px; }
  .notes { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; color: #cfcfd6; }
  .notes li { padding: 4px 0; }
  .notes b { display: inline-block; width: 60px; color: var(--mute); }
  .muted { color: var(--mute); font-weight: 400; font-size: 13px; }
  .tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; position: sticky; top: 68px; background: var(--ink); z-index: 5; }
  .tabs a { padding: 12px 18px; font-weight: 700; color: var(--mute); border-bottom: 3px solid transparent; margin-bottom: -2px; }
  .tabs a.on { color: var(--white); border-color: var(--yel); }
  .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .why div { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; }
  .why b { font-family: "Inter"; font-weight: 900; color: var(--yel); font-size: 22px; }
  .why h4 { font-size: 18px; font-weight: 900; margin-top: 4px; }
  .why p { color: #cfcfd6; font-size: 14px; margin-top: 6px; line-height: 1.5; }
  .detail-img { margin-top: 18px; max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
  .detail-img img { width: 100%; border-radius: 16px; display: block; }
  .detail-img p { color: var(--mute); font-size: 13px; padding: 24px; border: 1.5px dashed var(--line); border-radius: 16px; margin-top: 12px; }
  .mbar { display: none; }
  @media (max-width: 1000px) {
    .pd { grid-template-columns: 1fr; gap: 24px; }
    .why { grid-template-columns: 1fr; }
    .tabs { top: 68px; overflow-x: auto; }
    .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink); border-top: 3px solid var(--yel); }
    .mbar s { color: #8a8a95; font-size: 12px; display: block; text-decoration-color: var(--red); }
    .mbar b { font-family: var(--num); font-weight: 900; font-size: 22px; }
    .mbar .btn { padding: 12px 22px; }
    body { padding-bottom: 72px; }
  }
  @media (max-width: 560px) {
    .buy h1 { font-size: 22px; }
    .buy .ptag .now { font-size: 40px; }
    .gallery .main-img .burst { width: 84px; height: 84px; font-size: 20px; }
    .tabs a { padding: 10px 12px; white-space: nowrap; }
  }

/* 좁은 화면: 1+1 태그가 할인율 배지와 겹치지 않게 */
@media (max-width: 560px) {
  .card .thumb .deal-tag { left: 6px; bottom: 8px; font-size: 12px; padding: 3px 7px 3px 3px; gap: 4px; }
  .card .thumb .deal-tag b { font-size: 11px; padding: 1px 5px; }
  .card .thumb .deal-tag em { display: none; }
  .card .thumb .mini-burst { width: 50px; height: 50px; font-size: 12px; right: 6px; bottom: 6px; }
}

  /* 지난 공구 + 익명 의견 — 가로형 컴팩트 카드 */
  .grid.past-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
  .card.past { display: grid; grid-template-columns: 104px 1fr; gap: 0 14px; padding: 12px; border-radius: 14px; }
  .card.past:hover { transform: none; border-color: var(--line); }
  .card.past .thumb { width: 104px; height: 104px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
  .card.past .thumb img { filter: grayscale(.3) brightness(.85); }
  .badge.ended { position: absolute; left: 6px; top: 6px; padding: 2px 8px; font-size: 11px; background: var(--ink); color: var(--mute); border: 1.5px solid #55555f; }
  .card.past .info { padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .card.past .name { height: auto; font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pline { display: flex; align-items: baseline; gap: 8px; font-family: var(--num); }
  .pline s { color: #8a8a95; font-size: 12px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
  .pline b { font-size: 19px; font-weight: 900; }
  .pline em { font-style: normal; color: var(--red); font-weight: 900; font-size: 14px; }
  .pmeta { font-size: 12px; color: var(--mute); }
  .fb-stat { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
  .fb-stat b { color: var(--yel); font-family: var(--num); font-size: 13px; }
  .fb-open { align-self: flex-start; margin-top: 4px; padding: 5px 12px; border-radius: 99px; border: 1.5px solid var(--yel); background: transparent; color: var(--yel); font: inherit; font-weight: 900; font-size: 12px; cursor: pointer; }
  .fb-open:hover { background: var(--yel); color: var(--ink); }
  .fb-done { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--yel); }
  .fb-form { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
  .fb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .fb-form .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .fb-form .chk input { accent-color: var(--yel); width: 16px; height: 16px; }
  .chips-row { display: flex; gap: 4px; }
  .pchip { padding: 4px 8px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--ink); color: var(--white); font-family: var(--num); font-weight: 700; font-size: 11px; cursor: pointer; }
  .pchip.on, .pchip:hover { border-color: var(--yel); color: var(--yel); }
  .won-in { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 6px; background: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; }
  .won-in:focus-within, .fb-cmt:focus { border-color: var(--yel); }
  .won-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--white); font-family: var(--num); font-weight: 700; font-size: 13px; padding: 7px 0; }
  .won-in span { color: var(--mute); }
  .fb-cmt { flex: 1; min-width: 160px; background: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; color: var(--white); font: inherit; font-size: 13px; padding: 7px 10px; outline: 0; }
  .fb-send { padding: 7px 18px; font-size: 13px; box-shadow: 0 3px 0 #b8941a; }
  .fb-note { color: #6f6f7a; font-size: 11px; }
  @media (max-width: 1000px) { .grid.past-grid { grid-template-columns: 1fr; } }
  @media (max-width: 560px) { .card.past { grid-template-columns: 84px 1fr; } .card.past .thumb { width: 84px; height: 84px; } .pline b { font-size: 17px; } }

  .fb-msg { font-size: 12px; color: #ff8a7d; }
  .fb-send[disabled] { opacity: .5; }
