:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #777777;
  --line: #eaeaea;
  --soft: #f6f5f3;
  --accent: #b08d57;
  --red: #c0392b;
  --r-img: 14px;      /* 대표 이미지 프레임 모서리 (상품 카드·리뷰·이벤트·갤러리·키워드 등 공통) — 모바일은 아래에서 12px */
  --r-img-sm: 8px;    /* 작은 썸네일(리뷰 상품, 장바구니·주문서, 상세 썸네일) */
}
@media (max-width: 900px) { :root { --r-img: 12px; --r-img-sm: 8px; } }
* { 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; color: var(--ink); }   /* 글자색을 지정하지 않은 버튼: 아이폰 사파리는 시스템 파란색으로 그림 → 사이트 글자색으로 고정 (색을 따로 지정한 버튼은 그대로) */
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: 70; }   /* 공지 바(60)보다 위: 회원가입 위 말풍선이 공지 바에 겹쳐도 가려지지 않게 */
.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; line-height: 0; }
/* PC(1101px~): 로고를 가운데에 두는 2단 헤더 — 1단: [로고(가운데)] [로그인·회원가입·장바구니(오른쪽)], 2단: [전체][메뉴(왼쪽부터 이어서)] ······ [검색창(오른쪽)]. 단 사이 가로선은 없음 */
.tier2 { display: contents; }
@media (min-width: 1101px) {
  .head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "logo .  right" "nav nav  search"; height: auto; row-gap: 0; align-items: center; }
  .head .logo { grid-area: logo; margin: 0; justify-self: start; padding: 14px 0 8px; }
  .head .icons { display: contents; }
  .head .head-right { grid-area: right; justify-self: end; }
  .head nav { grid-area: nav; justify-self: start; }   /* 「전체」+메뉴가 2단 왼쪽에 이어서 놓임 (검색창은 오른쪽 끝) */
  .head .nav-all { height: 50px; margin: 0 4px 0 0; }
  .head .search { grid-area: search; justify-self: end; }
  .head .nav-item > a { height: 50px; }
  .head .nav-item > a::after { bottom: 10px; }
}
.logo img { display: block; height: 24px; width: auto; }
@media (min-width: 1101px) and (max-width: 1279px) { .logo img { height: 22px; } }   /* 폭이 좁은 PC: 메뉴가 넘치지 않게 로고·간격을 살짝 줄임 */   /* 로고 이미지(assets/logo.png, 300×42 투명 PNG) — 화면 크기별 높이는 아래 반응형에서 */
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; transition: stroke .2s; }
/* PC의 「전체」 버튼과 같은 효과: 마우스를 올리거나 열려 있으면 포인트 색, 열려 있으면 ☰가 ✕로 바뀜 */
.burger { transition: color .2s; }
.burger:hover, .burger[aria-expanded="true"] { color: var(--accent); }
.burger:hover svg, .burger[aria-expanded="true"] svg { stroke: var(--accent); }
.burger .x { display: none; }
.burger[aria-expanded="true"] .bars { display: none; }
.burger[aria-expanded="true"] .x { display: block; }
.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: 0; 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: translateY(-10px); } to { opacity: 1; transform: none; } }   /* 드롭다운은 메뉴 항목의 왼쪽 끝을 기준으로 펼쳐짐 */
.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: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }   /* 메인 모듈 제목 공통 크기: PC 24px · 모바일 20px (.fy-title·.cr-title도 같음) */
@media (max-width: 720px) { .sec-head h2 { font-size: 20px; } }
.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; border-radius: var(--r-img); }
.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, .gallery .wishbtn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: #b5b5b5; font-size: 26px; line-height: 1; text-shadow: 0 0 1px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.18); transition: transform .15s, color .15s; }
.card .wish:hover, .gallery .wishbtn:hover { transform: scale(1.12); }
.card .wish.on, .gallery .wishbtn.on { color: #e5252a; }
.card .quick-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; transform: translateY(calc(100% + 2px)); opacity: 0; transition: transform .25s, opacity .15s; z-index: 1; }   /* 숨겨진 동안은 완전히 안 보이게 (둥근 모서리에 가장자리가 비치는 현상 방지) */
.card:hover .quick-bar, .card:focus-within .quick-bar { transform: translateY(0); opacity: 1; }
.card .quick-bar > * { border: 0; padding: 8px 8px; font-size: 12.5px; line-height: 1.4; 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; word-break: keep-all; overflow-wrap: anywhere; }   /* 상품명은 단어 단위로 줄바꿈 (한글이 글자 중간에서 끊기지 않게, 아주 긴 영문만 강제) */
.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: 1/1; border-radius: var(--r-img); overflow: hidden; 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; }
#rvGrid .rv > p, #list:not(.list) .rv > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }   /* 그리드형 리뷰(메인·리뷰 전체보기): 본문은 최대 3줄까지만 미리 보고 넘치면 … */
.rv-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-top: auto; }
/* 리뷰 목록형: 리뷰 한 개가 가로 한 줄 (사진 왼쪽, 상품·별점·내용·작성자 오른쪽) */
.rv-grid.list { grid-template-columns: 1fr; gap: 14px; }
/* 목록형(긴 사각 카드): 왼쪽 = 위 관련 상품 정보 / 아래 리뷰 내용(별점·글·작성자), 오른쪽 = 등록된 사진 전체(최대 5장, 한 줄로 크게) */
.rv-grid.list .rv { display: grid; grid-template-columns: minmax(0, 1fr) min(calc(var(--n, 1) * 150px + (var(--n, 1) - 1) * 8px), 58%); grid-template-areas: "head photos" "stars photos" "text photos" "meta photos"; grid-template-rows: auto auto 1fr auto; column-gap: 24px; row-gap: 8px; align-items: start; padding: 18px; }
.rv-grid.list .rv:not(:has(.rv-photo)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stars" "text" "meta"; grid-template-rows: auto auto auto auto; }
.rv-grid.list .rv > .rv-product, .rv-grid.list .rv > .rv-prod { grid-area: head; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--line); }
.rv-photos { min-width: 0; }
.rv-xps { display: none; }   /* 그리드형은 대표 사진 1장(+점 표시) */
.rv-grid.list .rv > .rv-photos { grid-area: photos; align-self: start; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 8px; }
.rv-grid.list .rv > .rv-photo { grid-area: photos; align-self: start; width: 150px; }
.rv-grid.list .rv-xps { display: contents; }
.rv-grid.list .rv-dots { display: none; }
.rv-xp { aspect-ratio: 1/1; width: 100%; padding: 0; border: 0; border-radius: var(--r-img); cursor: zoom-in; box-shadow: 0 2px 7px rgba(0,0,0,.10); transition: opacity .2s; }
.rv-xp:hover { opacity: .85; }
.rv-grid.list .rv > .stars { grid-area: stars; }
.rv-grid.list .rv > p { grid-area: text; }
.rv-grid.list .rv > .rv-meta { grid-area: meta; justify-content: flex-start; gap: 14px; margin-top: 4px; }
@media (max-width: 700px) {   /* 좁은 화면: 위에서 아래로 — 상품 · 별점 · 내용 · 작성자 · 사진(한 줄 전체 폭) */
  .rv-grid.list .rv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stars" "text" "meta" "photos"; grid-template-rows: auto auto auto auto auto; padding: 14px; row-gap: 10px; }
  .rv-grid.list .rv > .rv-photo { width: 50%; max-width: 150px; }
  .rv-grid.list .rv > .rv-photos { width: min(100%, calc(var(--n, 1) * 150px + (var(--n, 1) - 1) * 8px)); }   /* 사진은 최대 150px, 좁으면 균등 축소 */
}
.rv-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.rv-zoom::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background-color .25s; }
.rv-zoom:hover::after { background: rgba(0,0,0,.08); }
.rv-dots { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; gap: 4px; pointer-events: none; }   /* 사진이 여러 장: 좌측 상단 작은 점(장수만큼, 최대 5개) — 첫 번째만 진하게 */
.rv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.45); }
.rv-dots i:first-child { background: #fff; }
.pv-bg { position: fixed; inset: 0; z-index: 300; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; animation: pvIn .2s ease both; }
@keyframes pvIn { from { opacity: 0; } to { opacity: 1; } }
.pv-frame { position: relative; display: flex; }   /* 사진 크기에 딱 맞는 틀 — 버튼은 모두 이 틀(사진) 기준으로 놓임 */
.pv-stage { display: flex; align-items: center; justify-content: center; touch-action: pan-y; cursor: grab; }   /* 좌우 드래그로 사진 넘기기 (세로 스크롤은 그대로) */
.pv-stage.grab { cursor: grabbing; }
.pv-stage img { display: block; max-width: min(92vw, 1100px); max-height: calc(100vh - 190px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.pv-x, .pv-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.pv-x:hover, .pv-nav:hover { background: rgba(255,255,255,.28); }
.pv-x { right: 0; bottom: calc(100% + 10px); width: 44px; height: 44px; font-size: 18px; }   /* 사진 위쪽 오른쪽 모서리 바로 위 */
.pv-all { position: absolute; top: calc(100% + 14px); right: 0; height: 44px; padding: 0 24px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: #fff; color: #111; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s; }   /* 사진 아래 줄 오른쪽: 불투명 흰색 둥근 모서리 사각 버튼 (리뷰 페이지에서는 없음) */
.pv-all:hover { background: var(--accent, #b08d57); color: #fff; }
.pv-cap { position: absolute; top: calc(100% + 70px); left: 0; right: 0; max-height: 112px; overflow-y: auto; color: #fff; font-size: 14px; line-height: 1.6; text-align: left; }   /* 사진 아래: 리뷰 본문(길면 이 안에서 스크롤) */
.pv-cap-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; } .pv-cap-stars { color: #f5b50a; letter-spacing: 1px; } .pv-cap-h b { font-weight: 600; opacity: .9; }
.pv-cap p { margin: 0; word-break: keep-all; overflow-wrap: anywhere; color: rgba(255,255,255,.92); }
.pv-cap-m { margin-top: 4px; font-size: 12px; opacity: .6; }
.pv-bg.has-cap .pv-stage img { max-height: calc(100vh - 410px); min-height: 160px; }   /* 본문이 있으면 사진을 조금 줄여 아래에 자리 확보 */
.pv-nav { top: calc(100% + 14px); width: 44px; height: 44px; font-size: 28px; line-height: 1; padding-bottom: 3px; }   /* 사진 아래 줄 왼쪽: ‹ › */
.pv-prev { left: 0; } .pv-next { left: 52px; }
.pv-nav[hidden] { display: none; }
.pv-count { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); height: 44px; display: flex; align-items: center; color: #fff; font-size: 14px; pointer-events: none; }   /* 사진 아래 줄 가운데 */
@media (max-width: 600px) { .pv-all { height: 40px; padding: 0 14px; font-size: 12.5px; } .pv-nav, .pv-count { height: 40px; } .pv-nav { width: 40px; font-size: 24px; } .pv-next { left: 46px; } .pv-count { font-size: 13px; } .pv-x { width: 40px; height: 40px; } .pv-stage img { max-height: calc(100vh - 170px); } }
.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; }
footer .logo img { height: 18px; }

/* 반응형 */
/* 헤더: 메뉴가 많아 1100px 이하에서는 모바일 헤더(햄버거)로 전환 */
@media (max-width: 1100px) {
  /* PC와 같은 구성을 태블릿·모바일에도: 1단 [로고(왼쪽)] [로그인·회원가입(오른쪽)] / 2단 [전체(왼쪽)] [메뉴(옆으로 밀어서 봄)] [검색(오른쪽)].
     2단(.tier2)은 1단 아래에 떠 있는 형태이고 header 아래 여백(48px)이 그 자리를 비워 둠. 스크롤해도 숨기지 않고 항상 보임 */
  header { margin-bottom: 48px; }
  header { border-bottom-color: transparent; }   /* 1단과 2단 사이에는 선 없음 (2단 아래쪽에만 선) */
  .head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; height: auto; gap: 0 8px; padding-top: 12px; padding-bottom: 12px; }
  .logo { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; font-size: 22px; }
  .logo img { height: 21px; }
  .icons { display: contents; }
  .head-right { grid-column: 3; grid-row: 1; justify-self: end; gap: 14px; }
  .head-right #cartLink { display: none; }
  .tier2 { position: absolute; left: 0; right: 0; top: 100%; z-index: -1; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; align-items: center; gap: 6px; flex: none; width: auto; height: 48px; padding: 0; font-size: 14px; font-weight: 700; }
  .burger span { display: inline; }
  .head nav { display: block; flex: 0 0 auto; min-width: 0; height: 100%; }   /* 메뉴는 원래 폭 그대로(검색창이 남는 폭에 맞춰 줄어듦). 검색이 아이콘이 되면(.compact) 메뉴가 남는 폭을 모두 씀 */
  .tier2.compact nav { flex: 1 1 0; }
  .head nav .nav-menus { display: flex; gap: 0; height: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; scrollbar-width: none; }   /* 좌우로만 움직임: 위아래로는 스크롤·끌림 없음 */
  .head nav .nav-menus::-webkit-scrollbar { display: none; }
  .head nav .nav-menus { cursor: grab; }
  .head nav .nav-menus.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); }   /* 오른쪽에 더 있는 메뉴가 있다는 표시 */
  .head nav .nav-menus.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 30px), transparent); }
  .head nav .nav-menus.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
  .head .nav-item > a { height: 48px; padding: 0 11px; font-size: 14px; }
  .head .nav-item > a::after { left: 11px; right: 11px; bottom: 9px; }
  .head .nav-item .drop { display: none !important; }   /* 터치 화면에서는 마우스 올림 드롭다운 대신 햄버거 메뉴를 씀 */
  .tier2 .search { flex: 1 1 0; min-width: 0; max-width: 250px; margin: 0 0 0 auto; }   /* 검색창은 메뉴 옆 남는 폭을 쓰며 폭이 줄면 같이 줄어듦(안내 문구는 잘리기 직전에 짧은 문구로 바뀜) */
  .tier2.compact .search { flex: none; max-width: none; }
  .search form { width: 100%; height: 38px; }
  .rank-box { width: auto; left: auto; right: 0; top: 46px; width: 320px; max-width: calc(100vw - 28px); }
  .mega { top: calc(100% + 48px) !important; }   /* 메가 메뉴도 2단 아래에서 열려 ☰ 전체 버튼이 가려지지 않음(눌러서 닫을 수 있음) */
  .mnav.open { display: block; position: absolute; left: 0; right: 0; top: calc(100% + 48px); max-height: calc(100vh - var(--head-h, 112px) - var(--notice-h) - 8px); box-shadow: 0 14px 28px rgba(0,0,0,.12); }   /* 햄버거 메뉴 목록은 2단 아래에 겹쳐서 열림(페이지를 아래로 밀지 않음) */
  .rank-list { grid-template-columns: 1fr; }
}
/* 검색 아이콘 모드(.compact): 메뉴(NEW~리뷰)가 잘려 보이기 직전에 검색창이 돋보기 아이콘으로 줄어듦(common.js가 폭을 재서 붙임). 누르면 2단 전체를 덮는 검색창으로 펼쳐짐 */
.tier2.compact .search form { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; justify-content: center; }   /* 접힌 상태: 테두리 원 없이 돋보기만 */
.tier2.compact .search input { display: none; }
.tier2.compact .search button { width: 38px; height: 38px; display: grid; place-items: center; }
.tier2.compact .search button svg { width: 23px; height: 23px; }
.tier2.compact .search:not(.open) .rank-box { display: none !important; }   /* 접힌 돋보기에 손가락이 닿기만 해도(포커스) 인기 검색어가 작게 떴다가 펼쳐지며 커지는 현상 방지: 펼친 뒤에만 보임 */
.tier2.compact .search.open { position: static; }
.tier2.compact .search.open form { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); width: auto; height: 40px; padding: 0 0 0 14px; border: 1.5px solid var(--ink); border-radius: 20px; background: #fff; justify-content: flex-start; z-index: 2; }
.tier2.compact .search.open input { display: block; flex: 1; min-width: 0; font-size: 14px; }
.tier2.compact .search.open .rank-box { display: block; left: 20px; right: 20px; width: auto; top: 52px; }
/* 좁은 화면: 로그인·회원가입·장바구니가 헤더 한 줄에 들어가도록 줄임 */
@media (max-width: 600px) {
  .head { gap: 0 6px; }
  .tier2 { padding: 0 20px; gap: 6px; }
  .logo { font-size: 18px; }
  .logo img { height: 18px; }
  .head-right { gap: 8px; }
  .user-area { gap: 8px; }
  .user-area a, .user-area .linkbtn, .head-right a { white-space: nowrap; }
  .head .nav-item > a { padding: 0 10px; }
  .head .nav-item > a::after { left: 10px; right: 10px; }
}
.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; }
  .tier2 { padding: 0 14px; }
  .tier2.compact .search.open form { left: 14px; right: 14px; }
  .tier2.compact .search.open .rank-box { left: 14px; right: 14px; }
  .head { gap: 6px 8px; padding-top: 12px; padding-bottom: 12px; }   /* .wrap의 padding 재지정이 헤더 위아래 여백을 지우지 않게 */
  .logo { font-size: 17px; }
  .logo img { height: 16px; }
  .head-right, .user-area { gap: 6px; }
}
@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; }
.who-wrap { position: relative; display: inline-flex; }
/* 로그인 후 영역(PC·태블릿·모바일 공통): 헤더의 로그아웃 버튼은 빼고, 닉네임 앞에 고객 등급 엠블럼을 달고, 닉네임을 누르면 미니팝업 */
  .user-area > .linkbtn[data-logout] { display: none; }
  .who { display: inline-flex; align-items: center; gap: 5px; }
  .who .emblem { display: inline-block; width: 20px; height: 20px; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
  .who .emblem + .ico-user { display: none; }   /* 등급 엠블럼이 있으면 사람 아이콘은 숨김 (등급을 아직 못 받았을 때만 사람 아이콘) */
  .who .ico-user { display: inline-block; }
  .who-name { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .who-suffix { margin-left: -3px; }
  .who-pop { display: block; position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: max-content; min-width: clamp(150px, 8vw + 62px, 178px); max-width: calc(100vw - 28px); padding: clamp(5px, .2vw + 3px, 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); font-weight: 400; animation: popIn .18s ease both; }
  .who-pop[hidden] { display: none; }
  .who-pop::before { content: ''; position: absolute; top: -6px; right: 32px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }   /* 닉네임을 가리키는 작은 화살표 */
  .wp-grade { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 14px; margin-bottom: 4px; background: var(--soft); border-radius: 10px; white-space: nowrap; text-align: left; }   /* 등급 안내: 엠블럼+문구 묶음을 가운데 */
  .wp-grade .emblem { display: block; width: 26px; height: 26px; flex: none; }
  .wp-grade b { display: block; font-size: 14px; line-height: 1.3; }
  .wp-grade span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
  .who-pop a, .who-pop .wp-out { display: flex; align-items: center; justify-content: center; width: 100%; min-height: clamp(42px, 36px + .6vw, 44px); padding: 0 16px; font: inherit; font-size: clamp(13.5px, .1vw + 13px, 14px); color: var(--ink); text-align: center; background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background-color .25s ease, color .25s ease, letter-spacing .25s ease; }
  .who-pop a:hover, .who-pop .wp-out:hover, .who-pop a:focus-visible, .who-pop .wp-out:focus-visible { background: var(--soft); color: var(--ink); letter-spacing: .02em; outline: 0; }   /* 호버: 배경이 부드럽게 깔리고 글자 간격이 살짝 벌어짐 */
  .who-pop a:active, .who-pop .wp-out:active { background: #ebe9e5; transition-duration: .08s; }
  .who-pop a + a, .who-pop a + .wp-out { position: relative; }
  .who-pop a + a::before, .who-pop a + .wp-out::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: #f1efec; transition: opacity .25s ease; }   /* 구분선은 안쪽 여백을 두고, 호버 중인 칸 위아래에서는 사라져 칸이 더 부드럽게 보임 */
  .who-pop a:hover::before, .who-pop a:hover + a::before, .who-pop a:hover + .wp-out::before { opacity: 0; }
  .who-pop .wp-out { margin-top: 4px; border-radius: 8px; color: var(--red); font-weight: 700; }   /* 로그아웃: 빨간색으로 강조 */
  .who-pop .wp-out:hover, .who-pop .wp-out:focus-visible { color: var(--red); background: #fbeeec; }
  .who-pop .wp-out::before { background: var(--line) !important; left: 10px; right: 10px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* 닉네임·로그인/회원가입 영역은 태블릿→모바일로 폭이 줄어도 글자·엠블럼·"님" 크기를 그대로 두고, 남는 폭 변화는 검색창이 흡수함 (긴 닉네임만 110px에서 …로 줄임) */
@media (max-width: 360px) { .who-name { max-width: 84px; } }   /* 초소형 화면에서 아주 긴 닉네임이 검색창을 거의 없애지 않게 (보통 이름은 영향 없음) */
/* 회원가입 링크 아래 말풍선 (+10,000원) */
.user-area .join { position: relative; }
.join-tip { position: absolute; bottom: calc(100% + 6px); 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%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--accent, #b08d57); border-bottom-width: 0; }   /* 화살표는 아래(회원가입 쪽) */
@keyframes tipFloat { 0%, 100% { transform: translate(-50%, 0) rotate(0); } 50% { transform: translate(-50%, -4px) rotate(-1.5deg); } }   /* PC: 두둥실 (OS의 '동작 줄이기' 설정이 켜져 있어도 보이는 은은한 움직임) */
/* 태블릿·모바일 헤더: 말풍선을 회원가입 링크 '위'에 띄움. 위로 올라가 상단 공지 바에 붙거나 겹쳐도 되도록 헤더를 공지 바보다 위(z-index 70, 위 header 규칙)에 둠.
   링크가 화면 오른쪽 끝이라 말풍선 오른쪽 끝을 링크에 맞춤(화면 밖으로 나가지 않게). 크기는 화면 폭에 비례해 줄어들고 두둥실 떠다님 */
@media (max-width: 1100px) {
  .join-tip { bottom: calc(100% + 5px); left: auto; right: 0; transform: none; transform-origin: 85% 100%; border-radius: 999px;
    font-size: clamp(9px, 2.6vw, 11px); padding: clamp(3px, 1.1vw, 5px) clamp(6px, 2.2vw, 9px);
    animation: tipFloatM 2.4s ease-in-out infinite; }   /* animation 단축 속성으로 지정해서 '동작 줄이기' 설정에서도 이 은은한 움직임은 유지 */
  .join-tip::before { left: auto; right: clamp(8px, 3vw, 14px); margin-left: 0; border-width: 4px; border-bottom-width: 0; }
  .join-tip::after { inset: -8px -6px -8px; }
}
@keyframes tipFloatM { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }
.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-top: 12px; border-top: 1px solid var(--line); min-width: 0; }   /* 관련 상품: 카드 맨 아래 */
.rv-thumb { width: 52px; height: 52px; flex: none; background-size: cover; background-position: center; border-radius: var(--r-img-sm); }
.rv-pname { flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }   /* 화면이 줄어도 상품명은 줄바꿈 */
.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; }

/* ---------- 전체 카테고리·브랜드 메뉴 (구구스 "카테고리/브랜드" 레이어 구성) ---------- */
.nav-all { display: flex; align-items: center; gap: 7px; height: 68px; padding: 0 12px 0 0; margin-right: 6px; border: 0; background: none; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nav-all svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.nav-all:hover, .nav-all[aria-expanded="true"] { color: var(--accent); }
.nav-all:hover svg, .nav-all[aria-expanded="true"] svg { stroke: var(--accent); }
.nav-all .x { display: none; }
.nav-all[aria-expanded="true"] .bars { display: none; }
.nav-all[aria-expanded="true"] .x { display: block; }
.nav-menus { display: flex; gap: 8px; }
.mnav-all { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; }
.mnav-all svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.mega-dim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 9; animation: megaDim .25s ease both; }
@keyframes megaDim { from { opacity: 0; } to { opacity: 1; } }
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,0,0,.1); overflow-y: auto; animation: megaIn .28s cubic-bezier(.2,.7,.2,1) both; }
.mega[hidden], .mega-dim[hidden] { display: none; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.mega-in { display: flex; flex-direction: column; max-width: 1200px; margin: 0 auto; padding: 0 20px; min-height: 380px; }   /* 카테고리·브랜드 탭은 위쪽에 가로로, 목록은 그 아래 전체 폭 */
.mg-rail { flex: none; padding: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: row; justify-content: center; gap: 0; }
.mega .mg-tab { text-align: center; color: #b9b9b9; transition: color .2s; position: relative; padding: 24px 48px 20px; }   /* .mega button의 padding:0보다 우선하도록 .mega를 붙임 */
.mg-tab + .mg-tab::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; background: #d6d6d6; transform: translateY(-50%); }   /* 카테고리 | 브랜드 구분선 */
.mg-tab .en { display: block; font-family: inherit; font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.mg-tab small { display: block; font-size: 12px; margin-top: 3px; }
.mg-tab:hover { color: var(--accent); }   /* 선택하지 않은 탭: 포인트 색 (선택된 탭은 그대로 진하게) */
.mg-tab.on { color: var(--accent); }   /* 선택된 탭: 금색 글자 + 금색 밑줄 */
.mg-tab.on::after { content: ''; position: absolute; left: 48px; right: 48px; bottom: -1px; height: 2px; background: var(--accent); }
.mg-pane { flex: 1; min-width: 0; padding: 30px 0 40px; }
.mg-pane[hidden] { display: none; }
/* 카테고리 */
.mg-catnav { display: none; }
.mg-more { display: none; }   /* PC에서는 펼치기 버튼 없음 (줄어든 화면에서만 사용) */   /* 대분류 세로 목록은 줄어든 화면(1100px 이하)에서만 */
.mg-cats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 0; }   /* 열 폭은 가장 긴 항목에 맞춤(줄바꿈 없음), 남는 폭은 열 사이에 고르게 분배 */
.mg-col { flex: 0 1 auto; padding: 0 16px; border-left: 1px solid var(--line); }
.mg-col:first-child { border-left: 0; padding-left: 0; }
.mg-col h4 { font-size: 16px; margin-bottom: 16px; white-space: nowrap; }
.mg-col ul { list-style: none; }
.mg-col li a { display: block; padding: 5px 0; font-size: 14px; white-space: nowrap; color: #555; transition: color .15s, transform .15s; }
.mg-col li a:hover { color: var(--accent); transform: translateX(3px); }
.mg-col li.all a { font-weight: 600; color: var(--ink); }
.mg-col li.all a:hover { color: var(--accent); }   /* 「전체」는 위 규칙에 가려 호버 색이 안 바뀌던 것 */
.mg-col h4 a { transition: color .15s, transform .15s; display: inline-block; }   /* 대분류 제목 */
.mg-col h4 a:hover { color: var(--accent); transform: translateX(3px); }
.mg-note { margin-top: 22px; font-size: 12px; color: var(--muted); }
/* 브랜드 */
.mg-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.mg-box { background: var(--soft); border-radius: 4px; padding: 16px 20px; min-height: 92px; }
.mg-box h5 { font-size: 12px; margin-bottom: 10px; }
.mg-box p { font-size: 12px; color: var(--muted); text-align: center; padding: 8px 0; line-height: 1.6; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 12px; }
.mg-chip a:hover { color: var(--accent); }
.mg-chip button { color: #cfcfcf; font-size: 12px; line-height: 1; }
.mg-chip button.on { color: #d6453b; }
.mg-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }   /* [브랜드 전체보기] [A-Z | ㄱ-ㅎ] [브랜드명 검색] 한 줄 */
.mega .mg-all { padding: 9px 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 400; white-space: nowrap; transition: color .15s, border-color .15s, background-color .15s; }
.mega .mg-all:hover { color: var(--accent); border-color: var(--accent); }
.mega .mg-all.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mega .mg-all.on:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.mg-search { display: flex; align-items: center; flex: 1 1 220px; max-width: 320px; border: 1px solid var(--line); border-radius: 22px; padding: 0 6px 0 16px; }
.mg-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 40px; font-size: 13px; background: none; }
.mg-search button { width: 34px; height: 34px; display: grid; place-items: center; }
.mg-search button svg { transition: stroke .15s; }
.mg-search button:hover svg { stroke: var(--accent); }
.mg-search svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }
.mg-scripts { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.mg-scripts button { color: #aaa; font-weight: 500; transition: color .15s; }
.mg-scripts button:hover { color: var(--accent); }
.mg-scripts button.on { color: var(--ink); font-weight: 700; }
.mg-scripts i { width: 1px; height: 11px; background: var(--line); }
.mg-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; }
.mg-letters button { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; background: #fff; transition: .15s; }
.mg-letters button:hover:not(:disabled) { border-color: var(--ink); }
.mg-letters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mg-letters button:disabled { color: #cfcfcf; cursor: default; background: #fafafa; }
.mg-gtitle { font-size: 13px; font-weight: 700; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mg-brands { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 24px; }
.mg-brands li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3f3f3; }
.mg-brands a { min-width: 0; display: block; }
.mg-brands b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-brands b .mark { color: var(--accent); }
.mg-brands small { font-size: 11.5px; color: var(--muted); }
.mg-brands a:hover b, .mg-brands a:hover small { color: var(--accent); }
.mg-brands b, .mg-brands small { transition: color .15s; }
.mg-brands button { flex: none; width: 28px; height: 28px; color: #cfcfcf; font-size: 17px; line-height: 1; transition: color .15s, transform .15s; }
.mg-brands button:hover { color: #9a9a9a; }
.mg-brands button.on { color: #d6453b; }
.mg-brands button:active { transform: scale(.85); }
.mg-empty { padding: 24px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) {
  .nav-all { display: none; }
  .mega-in { flex-direction: column; padding: 0; min-height: 0; }
  .mg-rail { width: auto; flex-direction: row; gap: 0; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mega .mg-tab { flex: 1; text-align: center; padding: 14px 8px; }
  .mg-tab .en { font-size: 20px; }
  .mg-tab.on::after { right: 0; left: 0; top: auto; bottom: -1px; width: auto; height: 2px; }
  .mg-pane { padding: 20px; }
  .mg-pane[data-pane="cat"] { padding: 0; }
  /* 줄어든 화면의 카테고리: 한 줄에 [대분류 | 소분류들 가로 나열 | 펼치기 버튼] — 소분류가 한 줄을 넘으면 오른쪽 ⌄ 버튼으로 펼침 */
  .mg-cat-wrap { display: block; }
  .mg-cats { display: block; padding: 4px 20px 24px; }
  .mg-col, .mg-col:first-child { display: grid; grid-template-columns: clamp(72px, 20vw, 112px) minmax(0, 1fr) auto; align-items: start; border-left: 0; border-bottom: 1px solid #f0eeea; padding: 8px 0; }
  .mg-col:last-child { border-bottom: 0; }
  .mg-col h4 { margin: 0; padding: 7px 8px 0 0; font-size: 15px; }
  .mg-col ul { display: flex; flex-wrap: wrap; column-gap: 16px; max-height: 35px; overflow: hidden; transition: max-height .28s ease; }
  .mg-col.open ul { max-height: 800px; }
  .mg-col li a { padding: 7px 0; line-height: 21px; white-space: nowrap; }
  .mg-more { display: grid; place-items: center; width: 32px; height: 35px; color: #888; transition: color .15s; }
  .mg-more[hidden] { display: none; }
  .mg-more:hover { color: var(--accent); }
  .mg-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
  .mg-col.open .mg-more svg { transform: rotate(180deg); }
  .mg-top { grid-template-columns: 1fr; }
  .mg-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
}
@media (max-width: 480px) { .mg-brands { grid-template-columns: 1fr; } .mg-letters button { min-width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .mega, .mega-dim { animation: megaDim .2s ease both; } }

/* 상품·리뷰 썸네일 공통 옅은 그림자 (모든 화면·모든 페이지) — 키워드 타일과 동일한 값 */
.card .thumb, .gallery .main, .thumbs button, .rv-photo, .rv-thumb, .fp-img,
.row .img, .mini .im, .oi .im { box-shadow: 0 2px 7px rgba(0,0,0,.10); }
@media (max-width: 600px) {   /* 리뷰 카드가 2열로 좁아질 때: 여백·썸네일을 줄여 상품명이 너무 많이 줄바꿈되지 않게 */
  .rv-grid:not(.list) .rv { padding: 12px; }
  .rv-grid:not(.list) .rv-product { gap: 8px; padding-top: 10px; }
  .rv-grid:not(.list) .rv-thumb { width: 36px; height: 36px; }
  .rv-grid:not(.list) .rv-pname { font-size: 12.5px; }
  .rv-grid:not(.list) .rv-pname small { font-size: 11px; }
}

/* 실시간 상담(자주 묻는 질문) 플로팅 버튼 · 창 — 오른쪽 하단, "맨 위로" 버튼은 그 위로 올라감 */
.faq-fab { position: fixed; right: 24px; bottom: 28px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.28); z-index: 95; transition: transform .2s, background-color .2s; }
.faq-fab:hover { background: #2c2c2c; transform: translateY(-2px); }
.faq-fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faq-fab svg .faq-ic-fill { fill: #fff; }   /* 헤드셋 이어컵 */
.faq-fab-badge { position: absolute; top: -8px; right: -3px; background: #fff; color: var(--ink); font-size: 9.5px; font-weight: 800; line-height: 1; padding: 3px 7px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.22); letter-spacing: .02em; }
.faq-fab.open { background: var(--accent); }
.has-faq .to-top { right: 27px; }   /* 오른쪽 하단 순서: 맨 아래 "맨 위로"(↑) 버튼 → 그 위에 상담 버튼. 두 버튼의 가운데가 세로로 맞도록 */
.faq-fab { transition: bottom .3s ease, transform .2s, background-color .2s; }
body.show-top .faq-fab { bottom: 86px; }   /* ↑ 버튼(46px)이 나타나면 그 위로 이동 */
body.show-top .faq-panel { bottom: 150px; }
.faq-panel { position: fixed; right: 24px; bottom: 92px; width: 400px; max-width: calc(100vw - 28px); max-height: min(78vh, 640px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 16px 48px rgba(0,0,0,.28); overflow: hidden; z-index: 96; animation: faqIn .2s ease both; }
.faq-panel[hidden] { display: none; }
@keyframes faqIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.faq-head { background: #1b1b1b; color: #fff; padding: 22px 24px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex: none; }
.faq-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.faq-sub { margin-top: 6px; font-size: 12.5px; color: #b8b8b8; }
.faq-close { width: 32px; height: 32px; border: 0; background: none; color: #cfcfcf; font-size: 30px; line-height: 1; cursor: pointer; margin: -4px -6px 0 0; }
.faq-close:hover { color: #fff; }
.faq-body { padding: 18px 18px 12px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.faq-answer { background: #f5f5f3; border: 1px solid #ececea; border-radius: 16px; padding: 20px; }
.faq-q { font-size: 16px; font-weight: 800; margin-bottom: 10px; line-height: 1.45; }
.faq-a { font-size: 14px; color: #555; line-height: 1.75; word-break: keep-all; }
.faq-a p { margin: 0 0 10px; } .faq-a p:last-child { margin: 0; }
.faq-listwrap { margin-top: 18px; }
.faq-listlabel { font-size: 12px; color: #8a8a8a; margin: 0 0 10px 4px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faq-item { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 50px; padding: 8px 10px 8px 14px; text-align: left; border: 1px solid #ececea; border-radius: 14px; background: #f5f5f3; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; word-break: keep-all; }
.faq-item:hover { background: #ecebe7; border-color: #dcdad3; }
.faq-item span { flex: none; width: 22px; text-align: center; font-size: 15px; }   /* 아이콘은 같은 폭 칸에 넣어 세로 줄이 맞게 */
.faq-back { display: block; width: 100%; margin-top: 12px; padding: 14px 0; border: 1px solid #ececea; border-radius: 14px; background: #f5f5f3; font-size: 14px; font-weight: 600; cursor: pointer; }
.faq-back:hover { background: #ecebe7; }
.faq-back[hidden], .faq-listwrap[hidden] { display: none; }
.faq-foot { flex: none; padding: 14px 18px 18px; border-top: 1px solid #eeeeec; background: #fbfaf8; text-align: center; }
.faq-ask { font-size: 12.5px; color: #8a8a8a; margin-bottom: 10px; }
.faq-kakao { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; background: #fee500; color: #191600; font-size: 15px; font-weight: 800; transition: filter .15s; }
.faq-kakao:hover { filter: brightness(.96); }
@media (max-width: 600px) {
  .faq-fab { right: 14px; bottom: 18px; width: 46px; height: 46px; }
  .faq-fab svg { width: 23px; height: 23px; }
  .has-faq .to-top { right: 14px; bottom: 18px; }
  body.show-top .faq-fab { bottom: 74px; }
  body.show-top .faq-panel { bottom: 132px; }
  .faq-panel { right: 12px; left: 12px; width: auto; bottom: 76px; max-height: calc(100vh - 150px); border-radius: 18px; }
  .faq-head { padding: 18px 20px 14px; } .faq-title { font-size: 18px; }
}
/* ===== 리뷰 사진 크게 보기 v2 (테스트): X → 큰 사진 → 썸네일 줄 → ‹ › · 리뷰 전체보기 → 별점 → 내용 ===== */
.pv-bg.v2 { align-items: flex-start; justify-content: center; overflow-y: auto; scrollbar-gutter: stable both-edges; padding: clamp(14px, 4vh, 48px) 16px 40px; }
.v2 .pv-panel { width: min(100%, 520px, max(320px, calc(100vh - 410px))); margin: 0 auto;   /* 세로 가운데 정렬 안 함: 본문 길이가 달라도 사진·이전/다음 버튼 위치가 고정 */ display: flex; flex-direction: column; gap: 12px; }
.v2 .pv-top { display: flex; justify-content: flex-end; }
.v2 .pv-x { position: static; width: 40px; height: 40px; font-size: 17px; }
.v2 .pv-stage { background: transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }   /* 사진 여백은 투명 — 뒤 어두운 배경이 그대로 비침 */
.v2 .pv-stage img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; box-shadow: none; }
.v2 .pv-thumbs { display: flex; gap: 8px; overflow-x: auto; }   /* 한 줄: 5장까지 꽉 차게, 더 많으면 옆으로 스크롤 */
.v2 .pv-th { flex: 0 0 calc((100% - 32px) / 5); }
.v2 .pv-th { aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: 8px; background-size: cover; background-position: center; opacity: .55; cursor: pointer; padding: 0; transition: opacity .2s, border-color .2s; }
.v2 .pv-th:hover { opacity: .85; } .v2 .pv-th.on { opacity: 1; border-color: #fff; }
.v2 .pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2 .pv-navs { display: flex; align-items: center; gap: 8px; }
.v2 .pv-nav { position: static; width: 44px; height: 44px; font-size: 28px; }
.v2 .pv-count { position: static; transform: none; height: auto; margin-left: 6px; color: #ddd; font-size: 13px; }
.v2 .pv-all { position: static; }
.v2 .pv-cap { position: static; max-height: none; overflow: visible; padding: 2px 2px 0; }
.v2 .pv-cap-stars { color: #f5b50a; font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; } .v2 .pv-cap-stars i { font-style: normal; color: rgba(255,255,255,.25); }
.v2 .pv-cap-prod { display: inline-block; font-size: 13px; color: #bbb; margin-bottom: 8px; }
.v2 a.pv-cap-prod { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .2s, color .2s; } .v2 a.pv-cap-prod:hover { color: var(--accent, #d4b078); text-decoration-color: currentColor; }
.v2 .pv-cap p { font-size: 15px; line-height: 1.7; }
.v2 .pv-cap-m { margin-top: 10px; }
@media (max-width: 600px) { .pv-bg.v2 { padding: 10px 12px 28px; } .v2 .pv-nav { width: 40px; height: 40px; font-size: 24px; } .v2 .pv-x { width: 38px; height: 38px; } .v2 .pv-all { height: 40px; } .v2 .pv-stage img { max-height: none; } }
/* 이전/다음 리뷰: 글자가 화살표의 작대기 — ‹──이전 리뷰 / 다음 리뷰──› */
.pv-bg.still { animation: none; }
.v2 .pv-main { position: relative; }
.v2 .pv-rv { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 0; border: 0; background: none; color: #fff; font-size: 14px; white-space: nowrap; cursor: pointer; }
.v2 .pv-rv-prev { right: calc(100% + 20px); } .v2 .pv-rv-next { left: calc(100% + 20px); }
.v2 .pv-rv-head { flex: none; width: 17px; height: 42px; }   /* 큰 < > : 글자 바로 옆에 붙어 글자가 화살표의 직선이 됨 */
.v2 .pv-rv span { font-size: 15px; letter-spacing: .02em; padding: 0 2px; }
.v2 .pv-rv { gap: 2px; }
.v2 .pv-rv:hover { color: var(--accent, #d4b078); }
.v2 .pv-rv-prev:hover .pv-rv-head { transform: translateX(-3px); } .v2 .pv-rv-next:hover .pv-rv-head { transform: translateX(3px); }
.v2 .pv-rv-head { transition: transform .25s; }
@media (max-width: 860px) {   /* 옆 공간이 없는 화면: 사진 안쪽 양끝에 겹쳐서 */
  .v2 .pv-rv { padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.5); font-size: 12.5px; gap: 2px; }
  .v2 .pv-rv-head { height: 30px; width: 12px; } .v2 .pv-rv span { font-size: 12.5px; }
  .v2 .pv-rv-prev { right: auto; left: 8px; } .v2 .pv-rv-next { left: auto; right: 8px; }
}

.v2 .pv-rv:disabled { opacity: .22; cursor: default; pointer-events: none; }   /* 첫 리뷰의 이전 · 마지막 리뷰의 다음: 자리는 그대로 두고 흐리게 */
/* 아래 ‹ › 제거: 사진 이동은 썸네일·드래그/스와이프·키보드 ←→ / 몇 번째인지는 사진 왼쪽 위 */
.v2 .pv-bar { justify-content: flex-end; }
.v2 .pv-main > .pv-count { position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; pointer-events: none; }
.v2 .pv-main > .pv-count:empty { display: none; }
/* 별점 위 헤더: 상품 썸네일 · 상품명 · 고객명/날짜 */
.v2 .pv-cap-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16); }
.v2 .pv-cap-th { flex: none; width: 52px; height: 52px; border-radius: 8px; background-size: cover; background-position: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: opacity .2s; } .v2 .pv-cap-th:hover { opacity: .85; }
.v2 .pv-cap-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2 .pv-cap-who .pv-cap-prod { margin: 0; font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2 .pv-cap-who .pv-cap-m { margin: 0; font-size: 12px; opacity: .65; }
.v2 .pv-cap-stars { margin-bottom: 8px; }
/* 상품(썸네일·상품명) ··· 리뷰 전체보기 한 줄 / 별점 ··· 고객명·날짜 */
.v2 .pv-bar { justify-content: space-between; }
.v2 .pv-who { min-width: 0; display: flex; align-items: center; gap: 10px; }
.v2 .pv-who .pv-cap-th { width: 44px; height: 44px; }
.v2 .pv-who .pv-cap-prod { margin: 0; min-width: 0; font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2 .pv-cap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.v2 .pv-cap-top .pv-cap-stars { margin: 0; flex: none; }
.v2 .pv-cap-top .pv-cap-m { margin: 0; min-width: 0; font-size: 12.5px; opacity: .7; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2 .pv-bar .pv-all { flex: none; }

/* 이전/다음 리뷰: 배경 없이 그림자로 시인성 확보 (밝은 사진 위에서도 글자·화살촉이 보이게) */
.v2 .pv-rv, .v2 .pv-rv:disabled { background: none; border-radius: 0; }
.v2 .pv-rv span { text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.75), 0 0 14px rgba(0,0,0,.5); font-weight: 600; }
.v2 .pv-rv-head { filter: drop-shadow(0 1px 2px rgba(0,0,0,.95)) drop-shadow(0 0 6px rgba(0,0,0,.7)); }

@media (max-width: 860px) {   /* 사진 안으로 들어오는 폭: 이전/다음 리뷰는 큰 사진의 좌측 하단 · 우측 하단 */
  .v2 .pv-rv { top: auto; bottom: 10px; transform: none; padding: 6px 10px; }
  .v2 .pv-rv-prev { left: 4px; right: auto; } .v2 .pv-rv-next { right: 4px; left: auto; }
}

/* 터치(모바일·태블릿) 화면의 검색 입력칸: 글자가 16px보다 작으면 iOS 사파리가 칸을 누를 때 화면을 확대해 버림 → 16px 이상으로 고정 */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  .search input, .tier2.compact .search.open input, .mg-search input { font-size: 16px; }
}
/* 모바일·태블릿 헤더 깜빡임 방지: 스크롤하는 헤더(sticky)와 그 아래 2단(.tier2)에 흐림 효과(backdrop-filter)를 겹쳐 쓰면 iOS 사파리에서 스크롤할 때 깜빡임 → 이 화면에서는 흐림 없이 흰 배경으로 */
@media (max-width: 1100px) {
  header, .tier2 { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
/* 빠르게 스크롤할 때 헤더 깜빡임 방지(모바일·태블릿): ①헤더와 상단 공지를 각각 자기만의 그리기 층으로 올려 스크롤 중에도 따로 안정적으로 그려지게 함 ②스크롤하는 동안은 헤더 안 "회원가입" 말풍선의 계속 도는 움직임을 잠시 멈춤 */
@media (max-width: 1100px) {
  header, .notice { -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  body.is-scrolling .join-tip { animation-play-state: paused; }
}
/* 화면에 나타난 뒤에는 will-change를 풀어 줌: 나타나는 효과를 쓰는 카드·배너가 수십 개라 모두 별도 층으로 남아 있으면 빠른 스크롤에서 메모리가 모자라 깜빡일 수 있음 */
.reveal.in { will-change: auto; }
/* iPhone 사파리가 전화번호·날짜·주소처럼 보이는 글자(예: 푸터 "고객센터 1234-5678")를 자동으로 파란 링크로 바꾸는 것 방지 (각 페이지 format-detection 메타와 함께) */
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
/* 모바일(767px 이하) 햄버거: 「전체」 글자 없이 기호(≡ / ✕)만 보이게 (접근성용 이름은 버튼의 aria-label 그대로, 터치 영역은 34×48px) */
@media (max-width: 767px) {
  .burger span { display: none; }
  .burger { gap: 0; width: 34px; justify-content: flex-start; }
}
