:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #777777;
  --line: #eaeaea;
  --soft: #f6f5f3;
  --accent: #b08d57;
  --red: #c0392b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Pretendard', -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 공통 버튼 */
.btn { display: inline-block; background: var(--ink); color: #fff; padding: 14px 32px; font-size: 14px; font-weight: 600; border: 0; transition: .2s; text-align: center; }
.btn:hover { background: var(--accent); }
.btn-line { display: inline-block; background: #fff; color: var(--ink); padding: 13px 32px; font-size: 14px; font-weight: 600; border: 1px solid var(--ink); text-align: center; transition: .2s; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* 상단 안내 */
:root { --notice-h: 34px; }
/* 상단 notice 바: 항상 맨 위에 고정, 높이 고정(글자가 길어도 한 줄로 말줄임) */
.notice { display: block; position: sticky; top: 0; z-index: 60; height: var(--notice-h); line-height: var(--notice-h); padding: 0 12px; background: var(--ink); color: #fff; text-align: center; font-size: 12px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice, .notice:hover { text-decoration: none; }
.notice:hover { background: #2a2a2a; }

/* 헤더 */
header { position: sticky; top: var(--notice-h); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 10; }
.head { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 26px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
nav { display: flex; gap: 8px; font-size: 14px; font-weight: 500; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; align-items: center; justify-content: center; }
.burger svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.mnav { display: none; border-top: 1px solid var(--line); max-height: 70vh; overflow-y: auto; background: #fff; }
.mnav details, .mnav > a { border-bottom: 1px solid var(--line); }
.mnav summary, .mnav > a { display: block; padding: 15px 20px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: '+'; float: right; color: var(--muted); }
.mnav details[open] summary::after { content: '–'; }
.mnav .mg { padding: 0 20px 14px; background: var(--soft); }
.mnav .mg h5 { font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 12px 0 4px; }
.mnav .mg a { display: inline-block; padding: 6px 14px 6px 0; font-size: 14px; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; height: 68px; padding: 0 11px; white-space: nowrap; }
.nav-item:hover > a { color: var(--accent); }
/* 드롭다운: 열릴 때마다 위에서 부드럽게 내려오며 나타나고, 안의 항목은 차례로 올라오며 보임
   (transition이 아니라 keyframes 애니메이션이라 몇 번을 열어도 매번 처음부터 다시 재생됨)
   키보드 탭 이동(:focus-visible)일 때만 포커스로 열림 → 마우스로 눌러 생긴 포커스 때문에 열린 채로 남는 일이 없음 */
.drop { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.1); padding: 20px 26px; gap: 36px; z-index: 30; }
.nav-item:hover .drop, .nav-item:has(a:focus-visible) .drop { display: flex; animation: dropIn .26s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.nav-item:hover .drop > div, .nav-item:has(a:focus-visible) .drop > div { animation: dropItem .3s ease both; animation-delay: .06s; }
.nav-item:hover .drop > div:nth-child(2), .nav-item:has(a:focus-visible) .drop > div:nth-child(2) { animation-delay: .12s; }
@keyframes dropItem { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.drop h5 { font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; white-space: nowrap; }
.drop ul { list-style: none; }
.drop li a { display: block; padding: 5px 0; font-size: 13px; font-weight: 400; white-space: nowrap; transition: color .15s, transform .15s; }
.drop li a:hover { color: var(--accent); text-decoration: underline; transform: translateX(3px); }
.nav-item > a { position: relative; }
.nav-item > a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 16px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-item:hover > a::after, .nav-item:has(a:focus-visible) > a::after { transform: scaleX(1); }
/* 모바일 메뉴: 항목을 펼칠 때 부드럽게 */
.mnav details[open] .mg { animation: mgIn .28s ease; }
@keyframes mgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* OS의 "동작 줄이기/애니메이션 효과 끔" 설정이 켜진 PC에서도 드롭다운이 움직임 없이 서서히 나타나기는 하도록 (완전히 끄지 않음) */
@keyframes dropFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes itemFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .nav-item:hover .drop, .nav-item:has(a:focus-visible) .drop { animation: dropFade .3s ease both; }
  .nav-item:hover .drop > div, .nav-item:has(a:focus-visible) .drop > div { animation: itemFade .3s ease both; animation-delay: .06s; }
  .nav-item:hover .drop > div:nth-child(2), .nav-item:has(a:focus-visible) .drop > div:nth-child(2) { animation-delay: .12s; }
}
.icons { display: flex; gap: 18px; font-size: 14px; align-items: center; }
.head-right { display: flex; gap: 18px; align-items: center; }
.cart-count { background: var(--ink); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

/* 검색 */
.search { position: relative; }
.search form { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 22px; height: 42px; width: 250px; padding-left: 16px; }
.search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.search button { width: 42px; height: 38px; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.search button svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.rank-box { display: none; position: absolute; top: 50px; right: 0; width: 320px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 18px 20px; z-index: 20; }
.search:focus-within .rank-box { display: block; }
.rank-box h4 { font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.rank-box h4 span { font-size: 11px; color: var(--muted); font-weight: 400; }
.rank-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.rank-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; cursor: pointer; }
.rank-list li:hover .kw { color: var(--accent); }
.rank-list .no { width: 16px; font-weight: 700; text-align: center; }
.rank-list li:nth-child(-n+3) .no, .rank-list li:nth-child(6) .no { color: var(--red); }
.rank-list .kw { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .chg { font-size: 10px; color: var(--muted); }
.rank-list .up { color: var(--red); } .rank-list .down { color: #2f6fdb; } .rank-list .new { color: var(--accent); font-weight: 700; }

/* 섹션 */
section { padding: 72px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.sec-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.sec-head a { font-size: 13px; color: var(--muted); }

/* 상품 카드 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.card .cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .15em; }
.card .badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; letter-spacing: .05em; }
.card .wish { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 20px; color: #fff; z-index: 1; }
.card .quick-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; transform: translateY(100%); transition: transform .25s; z-index: 1; }
.card:hover .quick-bar, .card:focus-within .quick-bar { transform: translateY(0); }
.card .quick-bar > * { border: 0; padding: 12px 8px; font-size: 13px; text-align: center; }
.card .q-add { flex: 1.6; background: var(--ink); color: #fff; }
.card .q-add:hover { background: var(--accent); }
.card .q-review { flex: 1; background: #fff; color: var(--ink); border-left: 1px solid var(--line); display: block; }
.card .q-review:hover { background: var(--soft); color: var(--accent); }
.card .brand { font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: .08em; }
.card .name { font-size: 15px; font-weight: 500; margin: 2px 0 6px; display: block; }
.card .name:hover { color: var(--accent); }
.card .price { font-size: 15px; font-weight: 700; }
.card .price s { color: #aaa; font-weight: 400; font-size: 13px; margin-left: 6px; }
.card .off { color: var(--red); margin-right: 6px; }
.colors { display: flex; gap: 6px; margin-top: 8px; }
.colors i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); display: block; }

/* 별점 · 후기 */
.stars { color: var(--accent); letter-spacing: 2px; }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rv { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.rv-photo { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 11px; letter-spacing: .15em; }
.rv-prod { font-size: 12px; color: var(--muted); }
.rv p { font-size: 14px; line-height: 1.6; }
.rv-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-top: auto; }
.rv-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* 수량 조절 */
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 34px; height: 36px; border: 0; background: #fff; font-size: 16px; }
.qty button:hover { background: var(--soft); }
.qty span { width: 40px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* 페이지 상단 제목 · 경로 */
.page-head { padding: 40px 0 8px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.crumb a:hover { color: var(--accent); }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 22px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 100; display: flex; gap: 16px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* 푸터 */
footer { margin-top: 72px; background: var(--soft); padding: 40px 0; font-size: 12px; color: var(--muted); }
footer .logo { font-size: 18px; color: var(--ink); display: block; margin-bottom: 10px; }

/* 반응형 */
/* 헤더: 메뉴가 많아 1100px 이하에서는 모바일 헤더(햄버거)로 전환 */
@media (max-width: 1100px) {
  nav { display: none; }
  /* 1줄: [햄버거] [로고(가운데)] [로그인·장바구니]  /  2줄: 검색창 */
  .head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: auto; gap: 10px 8px; padding-top: 12px; padding-bottom: 12px; }
  .burger { display: flex; grid-column: 1; grid-row: 1; justify-self: start; }
  .logo { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; font-size: 22px; }
  .icons { display: contents; }
  .head-right { grid-column: 3; grid-row: 1; justify-self: end; gap: 14px; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .search form { width: 100%; }
  .rank-box { width: auto; left: 0; right: 0; }
  .mnav.open { display: block; }
  .rank-list { grid-template-columns: 1fr; }
}
/* 좁은 화면: 로그인·회원가입·장바구니가 헤더 한 줄에 들어가도록 줄임 */
@media (max-width: 600px) {
  .head { gap: 8px 6px; }
  .burger { width: 32px; }
  .logo { font-size: 18px; }
  .icons { font-size: 12px; }
  .head-right { gap: 8px; }
  .user-area { gap: 8px; }
  .user-area a, .user-area .linkbtn, .head-right a { white-space: nowrap; }
  .user-area .who-name, .head-right .cart-label { display: none; }   /* 좁은 화면에서는 이름·"장바구니" 글자 대신 아이콘 */
  .user-area .ico-user, .head-right .ico-cart { display: inline-block; }
  /* 장바구니 개수는 아이콘 위에 겹쳐서 표시 (폭 절약) */
  .head-right #cartLink { position: relative; display: inline-flex; }
  .head-right .cart-count { position: absolute; top: -7px; right: -9px; margin: 0; padding: 0 5px; font-size: 10px; line-height: 15px; min-width: 15px; text-align: center; }
}
.ico-user { display: none; width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico-cart { display: none; width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
@media (max-width: 360px) {
  .cart-label { display: none; }
  .ico-cart { display: inline-block; }
  .wrap { padding: 0 14px; }
  .head { gap: 6px 8px; }
  .burger { width: 28px; }
  .logo { font-size: 17px; }
  .icons { font-size: 11px; }
  .head-right, .user-area { gap: 6px; }
  .user-area .who { max-width: 48px; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rv-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

/* 스크롤 효과 */
html { scroll-behavior: smooth; }
section { scroll-margin-top: 150px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
header { transition: box-shadow .3s; }
header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 200; pointer-events: none; }
.to-top { position: fixed; right: 24px; bottom: 28px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 18px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s; z-index: 90; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .6s ease; }
  .scroll-bar { display: none; }
}
/* 로그인 영역 · 모바일 메뉴 사용자 링크 */
[hidden] { display: none !important; }
.icons { white-space: nowrap; }
.user-area { display: inline-flex; gap: 14px; align-items: center; white-space: nowrap; flex-shrink: 0; }
.user-area a, .user-area .linkbtn { white-space: nowrap; }
.user-area .who { font-weight: 600; }
/* 회원가입 링크 아래 말풍선 (+10,000원) */
.user-area .join { position: relative; }
.join-tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--accent, #b08d57); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 12px; white-space: nowrap; z-index: 60; cursor: pointer; animation: tipFloat 2.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.join-tip::after { content: ''; position: absolute; inset: -10px -8px -8px; }   /* 손가락으로 누르기 쉽게 터치 영역을 넓힘 */
.join-tip::before { content: ''; position: absolute; left: 50%; bottom: 100%; margin-left: -5px; border: 5px solid transparent; border-bottom-color: var(--accent, #b08d57); border-top-width: 0; }
@keyframes tipFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 3px); } }
@media (prefers-reduced-motion: reduce) { .join-tip { animation: none; } }
.linkbtn { background: none; border: 0; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.linkbtn:hover, .user-area a:hover { color: var(--accent); }


/* 로그인 · 회원가입 · 마이페이지 공통 */
.auth-box { max-width: 420px; margin: 56px auto 0; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.auth-box > p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); padding: 12px 14px; background: #fff; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
/* 태블릿·모바일(터치): 입력칸 글자를 16px 이상으로 — iPhone(Safari)이 입력칸을 누를 때 화면을 자동 확대하지 않게 함 */
@media (max-width: 900px) { .field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { font-size: 16px; } }
.form-err { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 10px; }
.auth-box .btn { width: 100%; padding: 15px; }
.auth-sub { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-sub a { color: var(--ink); font-weight: 600; text-decoration: underline; margin-left: 6px; }
/* 좌측 하단 플로팅 장바구니 버튼 */
.fab-cart { position: fixed; left: 24px; bottom: 28px; height: 48px; padding: 0 16px 0 14px; border-radius: 24px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.22); z-index: 90; transition: background .2s, transform .2s; }
.fab-cart:hover { background: var(--accent); transform: translateY(-2px); }
.fab-cart svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; line-height: 20px; text-align: center; }
.fab-cart.has .fab-count { background: var(--accent); color: #fff; }
@media (max-width: 600px) {
  .fab-cart { left: 14px; bottom: 18px; height: 46px; padding: 0 14px 0 12px; }
}
/* 확인 창 */
.dlg-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 300; }
.dlg { background: #fff; width: 380px; max-width: 100%; padding: 28px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg p { font-size: 15px; line-height: 1.7; white-space: pre-line; margin-bottom: 22px; }
.dlg-btns { display: flex; gap: 8px; justify-content: flex-end; }
.dlg-btns .btn, .dlg-btns .btn-line { padding: 11px 22px; font-size: 14px; }
.dlg-btns .btn.danger { background: var(--red); }
.dlg-btns .btn.danger:hover { background: #a02e22; }
/* 입력 안내 메시지 · 비밀번호 조건 */
.msg { font-size: 12px; margin-top: 6px; min-height: 18px; color: var(--muted); }
.msg.ok { color: #23743a; }
.msg.bad { color: var(--red); }
.pw-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; }
.pw-rules li { color: #aaa; }
.pw-rules li::after { content: ' ✓'; }   /* 단어 오른쪽에 체크 표시: 조건 전에는 회색, 만족하면 초록 */
.pw-rules li.ok { color: #23743a; }
.field input.is-ok { border-color: #23743a; }
.field input.is-bad { border-color: var(--red); }
/* 후기 카드 맨 위의 상품 정보 (이미지·이름을 누르면 상품 상세로 이동) */
.rv-product { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rv-thumb { width: 52px; height: 52px; flex: none; background-size: cover; background-position: center; }
.rv-pname { font-size: 14px; font-weight: 600; line-height: 1.4; }
.rv-pname small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.rv-product:hover .rv-pname { color: var(--accent); text-decoration: underline; }
.rv-product:hover .rv-thumb { opacity: .85; }
/* 플로팅 장바구니 버튼(button) + 펼침 패널 */
button.fab-cart { border: 0; font-family: inherit; cursor: pointer; padding: 0 14px; }
.fab-cart.open { background: var(--accent); }
.fab-panel { position: fixed; left: 24px; bottom: 90px; width: 380px; max-width: calc(100vw - 28px); max-height: min(72vh, 580px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 48px rgba(0,0,0,.22); z-index: 91; animation: fpIn .18s ease-out; }
.fab-panel[hidden] { display: none; }
@keyframes fpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fp-head { display: flex; align-items: baseline; gap: 8px; padding: 16px 18px 12px; border-bottom: 1px solid var(--ink); }
.fp-head b { font-size: 16px; }
.fp-head span { font-size: 13px; color: var(--muted); flex: 1; }
.fp-close { border: 0; background: none; font-size: 16px; color: var(--muted); padding: 2px 4px; }
.fp-close:hover { color: var(--ink); }
.fp-list { list-style: none; overflow-y: auto; flex: 1; }
.fp-list li { display: grid; grid-template-columns: 64px 1fr 22px; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: start; }
.fp-img { width: 64px; height: 64px; background-size: cover; background-position: center; display: block; }
.fp-info { min-width: 0; }
.fp-name { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-name:hover { color: var(--accent); }
.fp-info small { display: block; font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.fp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fp-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.fp-qty button { width: 26px; height: 26px; border: 0; background: #fff; font-size: 14px; }
.fp-qty button:hover { background: var(--soft); }
.fp-qty b { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; }
.fp-price { font-size: 14px; font-weight: 700; }
.fp-del { border: 0; background: none; color: #aaa; font-size: 14px; padding: 0; line-height: 1; }
.fp-del:hover { color: var(--red); }
.fp-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.fp-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.fp-total b { font-size: 18px; color: var(--ink); }
.fp-earn { display: flex; justify-content: space-between; align-items: baseline; margin: -4px 0 12px; font-size: 13px; color: var(--accent); }   /* 적립 예정: 골드 */
.fp-earn b { font-weight: 700; font-size: 14px; }
/* 비회원 화면의 가입 혜택 안내 (적립금 + 쿠폰) */
.join-bonus { font-size: 12.5px; line-height: 1.5; color: var(--accent); background: rgba(176, 141, 87, .1); padding: 8px 11px; margin: 0 0 12px; word-break: keep-all; }
.earn-row + .join-bonus { margin: -6px 0 16px; }
.fp-earn + .join-bonus { margin-top: 0; }
.sum-earn + .join-bonus { margin-top: 8px; }
.fp-earn a, .sum-earn a, .earn-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }   /* 비회원 안내의 "회원 가입" 링크 */
.fp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-btns .btn, .fp-btns .btn-line { padding: 12px 8px; font-size: 14px; }
.fp-empty { padding: 36px 18px 40px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; }
.fp-empty a { color: var(--ink); font-weight: 600; text-decoration: underline; }
@media (max-width: 600px) { .fab-panel { left: 14px; right: 14px; width: auto; bottom: 76px; } }
/* 결제 화면: 사용 가능한 쿠폰이 없을 때 */
.no-coupon { padding: 18px; background: var(--soft); color: var(--muted); font-size: 14px; text-align: center; }
.no-coupon small { display: block; margin-top: 4px; font-size: 12px; }
