@font-face {
  font-family: 'Pretendard';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations');
}

:root {
  --ink: #16181D;
  --sub: #4A4E55;
  --line: #E2E5E9;
  --line-dark: #C5CAD1;
  --soft: #F4F6F8;
  --tile: #F0F2F5;
  /* 사이트 주색은 분홍 (2026-10-10 확정. 그 전에 파랑, 보라와 함께 비교했다) */
  --brand: #EE4F8B;
  --brand-deep: #D2386F;
  --brand-light: #FFBFD6;
  --brand-tint: #FFEDF3;
  /* 주색을 따라가는 나머지 색: 배너 돌기 무늬, 배너의 큰 글자, 단품 표시 바탕 */
  --brand-stud: #FFD8E4;
  --brand-stud-shade: #F6B6CA;
  --brand-accent: #FFE6EE;
  --tint-stud: #FFF5F8;
  --tint-stud-shade: #FADCE6;
  --unit-bg: #FCE4EC;
  /* 주색 배너의 바탕과 글자. 분홍은 넓은 면에 그대로 깔면 너무 진해서, 연한 분홍 바탕에 짙은 글자로 한다 */
  --banner-bg: #FFCBDB;
  --banner-fg: var(--ink);
  --red: #D8382C;
  --sticker: #FF7A9C;
  --wrap: 1200px;
  /* 모서리 둥글기 (2026-10-13 디자인 개편: 각진 모양과 둥근 모양이 섞여 있던 것을 둥근 쪽으로 통일).
     작은 표시와 작은 사진은 --r-s, 버튼과 입력칸은 --r-m, 큰 사진과 패널은 --r-l, 태그와 알약 모양 버튼은 999px */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.page { padding: 36px 0 96px; }
.num { font-variant-numeric: tabular-nums; }

/* ── 헤더 ─────────────────────────────── */
/* 맨 위 띠 공지: 색 라벨, 세로선, 문구. 검은 바탕에 라벨은 분홍, 문구는 흰색 (2026-10-13 옅은 분홍 띠로 바꿔 봤다가 유저가 검은 띠로 되돌림. 높이만 낮췄다) */
.benefit { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 34px; padding: 6px 16px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; text-align: center; }
.benefit b { color: var(--brand-light); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; white-space: nowrap; }
.benefit i { flex: none; width: 1px; height: 12px; background: #5B616B; }
.benefit span { font-weight: 600; }
.sns-links { display: flex; align-items: center; gap: 16px; }
.sns-links img { width: 20px; height: 20px; }
.util { font-size: 13px; }
.util .wrap { display: flex; justify-content: space-between; height: 36px; align-items: center; }
.util-links { display: flex; align-items: center; gap: 18px; font-weight: 500; }
.util-btn { border: 0; background: none; padding: 0; font: inherit; }
/* 맨 위 줄 "OO님" 뒤의 아이콘: 평소에는 인증 배지, 크리스마스 테마일 때는 눈사람 (templates/base.html 의 season).
   둘 다 Flaticon 무료 아이콘이라 푸터 맨 아래(.foot-credit)에 출처를 적는다 (2026-10-14 유저 요청. 처음엔 이름 앞이었다가 뒤로 옮김) */
.util-member { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.util-member span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.util-member::after { content: ''; flex: none; width: 16px; height: 16px; background: url('../icons/verified.png') center / contain no-repeat; }
.util-member.is-christmas::after { width: 17px; height: 17px; background-image: url('../img/themes/christmas/snowman.png'); }

/* 로고가 가운데, 상품 검색은 왼쪽 끝, 방송 상태와 장바구니는 오른쪽 끝 */
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "search logo act"; align-items: center; gap: 24px; height: 100px; }
/* 로고는 이미지 한 장. 높이만 정하고 너비는 이미지 비율을 따른다 */
/* 2026-10-21 로고가 작아 보여서 키움 (64 → 76px, 줄어든 상단 44 → 52px, 1000px 이하 54 → 64px, 휴대폰 32 → 40px, 아주 좁은 화면 28 → 34px) */
.logo { grid-area: logo; display: block; height: 76px; }
.logo img { display: block; height: 100%; width: auto; }
/* 로고 이미지를 올리지 않았을 때: 그 자리에 가게 이름을 글자로 적는다 (2026-11-26 유저: 운영이니 크기 표시는 모두 없앰. 예전엔 회색 칸에 크기를 적었다) */
.logo-slot { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
/* 로고 줄과 메뉴는 스크롤해도 화면 위에 붙어 따라온다. 붙은 뒤(.is-stuck, static/js/header.js)에는 로고 줄이 낮아진다.
   낮아진 만큼 아래 여백(--shrink)을 줘서 본문이 밀려 올라가지 않게 한다. */
/* overflow-anchor: 줄 높이가 바뀔 때 브라우저가 이 헤더를 기준으로 스크롤 위치를 다시 맞추지 않게 한다 (헤더 떨림 방지) */
#stick-mark { height: 1px; margin-bottom: -1px; overflow-anchor: none; }
.stick { --shrink: 28px; position: sticky; top: 0; z-index: 35; background: #fff; overflow-anchor: none; }
html { scroll-padding-top: 150px; }
@media (min-width: 641px) {
  .stick.is-stuck { margin-bottom: var(--shrink); }
  .stick.is-stuck .head { height: 72px; }
  .stick.is-stuck .logo { height: 52px; }
  .stick.is-stuck .logo-slot { font-size: 20px; }
  .stick.is-stuck .search-big { height: 54px; }
  .stick.is-stuck .search-big label { top: 7px; font-size: 11px; }
  .stick.is-stuck .search-big input { padding-top: 18px; font-size: 17px; }
}
/* 검색: 왼쪽 끝 돋보기. 누르면 로고 줄을 덮는 큰 검색창이 뜬다 */
.head-zone { position: relative; }
/* 왼쪽 칸: 돋보기 */
.head-left { grid-area: search; justify-self: start; display: flex; align-items: center; gap: 10px; }
.search-open { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; }
.search-layer { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; background: #fff; }
.search-layer[hidden] { display: none; }
.search-layer .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.search-big { position: relative; flex: 1; min-width: 0; max-width: 880px; height: 64px; border: 1.5px solid var(--ink); border-radius: var(--r-m); background: #fff; }
.search-big label { position: absolute; left: 18px; top: 9px; font-size: 12px; font-weight: 700; line-height: 1; }
.search-big input { width: 100%; height: 100%; padding: 22px 64px 4px 18px; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 600; }
.search-big input::-webkit-search-cancel-button { display: none; }
.search-big button { position: absolute; right: 0; top: 0; width: 60px; height: 100%; display: flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; }
.search-close { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; padding: 0; }
.head-act { grid-area: act; justify-self: end; display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14px; }
/* 장바구니: 아이콘 오른쪽 위에 담긴 상품 수 배지 */
.cart-link { position: relative; display: inline-flex; padding: 4px 9px 0 0; }
.cart-link svg { display: block; width: 21px; height: 21px; }
.cart-link b { position: absolute; right: 0; top: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; font-weight: 800; text-align: center; }

.gnb { border-bottom: 1px solid var(--line); }
/* 메뉴는 로고 아래 가운데에 한 줄. 좁아서 넘칠 때는 왼쪽부터 보이며 옆으로 밀린다 */
.gnb .wrap { position: relative; display: flex; gap: 30px; }
.gnb ul { position: relative; z-index: 1; display: flex; gap: 30px; }
.gnb ul:first-child { margin-left: auto; }
.gnb .gnb-sub { position: relative; margin-right: auto; padding-left: 30px; }
.gnb .gnb-sub::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--line-dark); }
.gnb a { position: relative; display: block; height: 50px; line-height: 50px; font-size: 16px; font-weight: 700; white-space: nowrap; }
/* 지금 보고 있는 탭: 글자 가운데 아래의 작은 점 (사이트 주색).
   스크립트가 꺼져 있을 때만 이 점이 보이고, 보통은 아래 .gnb-bar 가 대신한다 */
.gnb a.is-on::after { content: ''; position: absolute; left: calc(50% - 2.5px); top: calc(50% + 13px); width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.js .gnb a.is-on::after { content: none; }
/* 탭 표시 점 (static/js/header.js 가 메뉴 줄에 하나 만들고 위치를 정한다).
   탭을 옮기면 이전 탭 자리에서 새 탭 자리로 젤리처럼 늘어났다 붙으며 옮겨 간다 */
.gnb-bar { position: absolute; left: 0; top: calc(50% + 13px); width: 5px; height: 5px; border-radius: 99px; background: var(--brand); pointer-events: none; }
.gnb .gnb-sub a { font-weight: 500; font-size: 15px; }

/* ── 메인 상단 ────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 20px; margin-top: 28px; }
.slider { position: relative; height: 384px; overflow: hidden; border-radius: var(--r-l); background: var(--soft); }
.slides { display: flex; height: 100%; transition: transform .45s ease; }
/* 블록 장난감 판처럼 동그란 돌기가 줄지어 있는 배경. 돌기와 그 아래 그늘 두 겹, 색은 배경마다 --stud / --stud-shade 로 준다 */
.studs {
  background-image:
    radial-gradient(circle at 50% 50%, var(--stud) 0 11px, transparent 11.6px),
    radial-gradient(circle at calc(50% + 1.5px) calc(50% + 2px), var(--stud-shade) 0 11.4px, transparent 12px);
  background-size: 40px 40px;
}
.slide { position: relative; flex: 0 0 100%; height: 100%; padding: 52px 56px; display: flex; flex-direction: column; overflow: hidden; }
.slide-kind { align-self: flex-start; height: 26px; line-height: 24px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.slide-title { margin-top: 22px; font-size: 42px; line-height: 1.22; font-weight: 800; letter-spacing: -0.04em; max-width: 60%; }
.slide-sub { margin-top: 14px; font-size: 18px; font-weight: 500; max-width: 60%; }
.slide-accent { position: absolute; right: 44px; bottom: 6px; font-size: 168px; line-height: 1; font-weight: 900; letter-spacing: -0.06em; }
.slide-img { position: absolute; right: 0; top: 0; width: 46%; height: 100%; object-fit: cover; }
.slide.t-brand { background-color: var(--banner-bg); color: var(--banner-fg); --stud: var(--brand-stud); --stud-shade: var(--brand-stud-shade); }
.slide.t-brand .slide-accent { color: var(--brand-accent); }
.slide.t-tint { background-color: var(--brand-tint); color: var(--ink); --stud: var(--tint-stud); --stud-shade: var(--tint-stud-shade); }
.slide.t-tint .slide-accent, .slide.t-tint .slide-kind { color: var(--brand); }
.slide.t-black { background-color: var(--ink); color: #fff; --stud: #22262D; --stud-shade: #0E1014; }
.slide.t-black .slide-accent, .slide.t-black .slide-kind { color: var(--brand-light); }
.slide.t-white { background-color: #EEF1F5; color: var(--ink); --stud: #F4F6F9; --stud-shade: #E2E6EC; }
.slide.t-white .slide-accent { color: #fff; }
.slide.t-red { background-color: var(--red); color: #fff; --stud: #DD453A; --stud-shade: #C52F24; }
.slide.t-red .slide-accent { color: var(--ink); }
.slider-nav { position: absolute; left: 56px; bottom: 40px; display: flex; align-items: center; background: #fff; color: var(--ink); height: 36px; border-radius: 999px; overflow: hidden; }
.slider-nav button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 17px; font-weight: 700; padding: 0; }
.slider-count { min-width: 52px; text-align: center; font-size: 13px; font-weight: 700; }
/* ── 신상 공개 배너 (메인 배너의 구분이 "신상"이고 사진이 있을 때. templates/shop/_slide_new.html) ──
   곧 공개되는 티저 느낌. 유저가 고른 방향이고, 거슬린다고 한 넷(단색 배경, 작은 사진, 적은 꾸밈, 평범한 글자)을 이렇게 푼다:
   - 배경: 올린 사진을 키워 흐리고 어둡게 깐다 (.nw-amb). 색 덩어리만 남아서 사진마다 배너 분위기가 달라진다. 왼쪽은 글자가 읽히게 더 어둡게 덮는다
   - 사진: 배너 높이를 꽉 채운다 (.nw-photo). 상자에 넣지 않고 양옆을 배경으로 스며들게 해서 크게 보인다
   - 꾸밈: 맨 아래 흐르는 글자 띠 (.nw-tick, 색은 배너 색상을 따르는 --nw-accent), 오른쪽 끝의 작은 사진 (.nw-thumbs)
   - 글자: 제목 위 한 줄은 LIMITED 태그와 같은 홀로그램 색이 흐르고, 오픈 일시가 있으면 남은 시간을 흰 숫자판으로 크게 센다 (.nw-clock)
   2026-11-25 유저: 먼저 보고 마음에 안 들면 되돌릴 것 → 이 구역(끝 표시까지)만 지우면 CSS 는 예전 그대로다 */
.slide.is-new { padding-top: 34px; background: var(--ink); color: #fff; --nw-accent: var(--brand); --nw-accent-ink: #fff; --nw-accent-alt: var(--ink); }
.slide.is-new.t-red { --nw-accent: var(--red); --nw-accent-alt: #FFD6D2; }
.slide.is-new.t-white { --nw-accent: #fff; --nw-accent-ink: var(--ink); --nw-accent-alt: var(--brand); }
.slide.is-new .slide-title { margin-top: 0; font-size: 40px; max-width: 50%; }
.slide.is-new .slide-sub { margin-top: 10px; max-width: 46%; }
.slide.is-new .nw-kick, .slide.is-new .slide-title, .slide.is-new .slide-sub, .slide.is-new .nw-clock { position: relative; z-index: 2; }
.nw-amb { position: absolute; inset: 0; overflow: hidden; }
.nw-amb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(48px) brightness(.66) saturate(1.6); transform: scale(1.35); opacity: 0; transition: opacity .6s; }
.nw-amb img.is-on { opacity: 1; }
.nw-amb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 20, .7), rgba(14, 16, 20, .36) 42%, rgba(14, 16, 20, 0) 74%); }
/* 큰 사진: 세로 3:4 를 배너 높이에 맞춘다. 양옆 14% 는 배경으로 스며든다 */
.nw-photo { position: absolute; right: 78px; top: 0; bottom: 0; aspect-ratio: 3 / 4;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.nw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .5s, transform .8s cubic-bezier(.2, .8, .3, 1); }
.nw-photo img.is-on { opacity: 1; transform: none; }
/* 제목 위 한 줄: COMING SOON / NOW OPEN / NEW ARRIVAL + 오픈 일시 */
.nw-kick { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; line-height: 18px; }
.nw-kick b { font-weight: 800; letter-spacing: 0.22em; color: #FFD9A0;
  background: linear-gradient(100deg, #FFB5C9, #FFD9A0, #FFF3A6, #B9F3CF, #A8DAFF, #CDB8FF, #FFB5C9) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: holo 8s linear infinite; }
.nw-kick i { flex: none; width: 26px; height: 1px; background: #fff; }
.nw-kick span { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
/* 남은 시간: 흰 숫자판 (상품 상세의 오픈 카운트다운과 같은 모양을 어두운 바탕용으로 뒤집은 것) */
.nw-clock { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.nw-clock [hidden] { display: none; }
.nw-unit { display: flex; align-items: flex-start; gap: 8px; }
.nw-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nw-digits { display: flex; gap: 3px; }
.nw-digits i { position: relative; width: 36px; height: 46px; line-height: 46px; border-radius: var(--r-s); background: #fff; color: var(--ink); text-align: center; font-style: normal; font-size: 26px; font-weight: 800; }
.nw-digits i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(22, 24, 29, .16); }
.nw-unit small { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.nw-sep { height: 46px; line-height: 42px; font-size: 22px; font-weight: 800; }
/* 오른쪽 끝의 작은 사진: 지금 크게 나온 것만 흰 테두리, 나머지는 살짝 어둡다. 마우스를 올려도 밝아지지 않는다 */
.nw-thumbs { position: absolute; right: 18px; top: 50%; z-index: 3; display: flex; flex-direction: column; gap: 8px; transform: translateY(calc(-50% - 14px)); }
.nw-thumb { position: relative; width: 44px; height: 58px; overflow: hidden; border-radius: 9px; cursor: pointer; }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(14, 16, 20, .45); transition: background .3s; }
.nw-thumb.is-on { cursor: inherit; }
.nw-thumb.is-on::after { background: none; box-shadow: inset 0 0 0 2px #fff; }
/* 맨 아래 흐르는 띠 */
.nw-tick { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 28px; overflow: hidden; background: var(--nw-accent); color: var(--nw-accent-ink); font-size: 12px; line-height: 28px; letter-spacing: 0.2em; white-space: nowrap; }
.nw-tick span { display: inline-block; animation: nw-tick 40s linear infinite; }
.nw-tick b { margin-right: 30px; font-weight: 800; }
.nw-tick b:nth-child(even) { color: var(--nw-accent-alt); }
@keyframes nw-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .nw-kick b, .nw-tick span { animation: none; }
  .nw-amb img, .nw-photo img { transition: none; }
}
@media (max-width: 860px) {
  .nw-photo { right: 64px; }
  .nw-digits i { width: 32px; height: 44px; line-height: 44px; font-size: 24px; }
  .nw-sep { height: 44px; line-height: 40px; font-size: 20px; }
}
@media (max-width: 640px) {
  .slide.is-new { padding-top: 24px; }
  .slide.is-new .slide-title { font-size: 28px; max-width: 56%; }
  .slide.is-new .slide-sub { margin-top: 6px; font-size: 13px; max-width: 50%; }
  .nw-amb::after { background: linear-gradient(90deg, rgba(14, 16, 20, .82), rgba(14, 16, 20, .6) 46%, rgba(14, 16, 20, .1) 88%); }
  /* 사진을 오른쪽으로 더 밀고 왼쪽을 길게 스며들게 해서, 글자와 숫자판이 사진의 주인공을 가리지 않게 한다. 초 칸은 자리가 없어 뺀다 */
  .nw-photo { right: -26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%); mask-image: linear-gradient(90deg, transparent, #000 42%); }
  .nw-unit[data-unit="s"], .nw-unit[data-unit="m"] .nw-sep { display: none; }
  .nw-kick { gap: 8px; margin-bottom: 9px; font-size: 10px; }
  .nw-kick i { width: 14px; }
  .nw-kick span { font-size: 11px; }
  .nw-clock, .nw-unit { gap: 4px; }
  .nw-clock { margin-top: 10px; }
  .nw-col { gap: 4px; }
  .nw-digits { gap: 2px; }
  .nw-digits i { width: 24px; height: 33px; line-height: 33px; font-size: 18px; border-radius: 6px; }
  .nw-sep { height: 33px; line-height: 30px; font-size: 15px; }
  .nw-unit small { font-size: 8px; letter-spacing: 0.08em; }
  .nw-thumbs { right: 9px; gap: 6px; transform: translateY(calc(-50% - 9px)); }
  .nw-thumb { width: 30px; height: 40px; border-radius: 7px; }
  .nw-tick { height: 18px; font-size: 9px; line-height: 18px; }
  .nw-tick b { margin-right: 18px; }
}
/* ── 신상 공개 배너 끝 ── */

/* 홈의 라이브 순번 칸: 흰 바탕에 옅은 테두리의 둥근 카드 (2026-10-13 분홍 바탕은 눈이 아프다고 해서 바꿈).
   안은 위에서부터 제목, 지금 개봉(옅은 회색 안쪽 칸), 다음 순서 목록, 대기 인원과 전체 보기.
   방송 상태는 여기에 두지 않는다 (머리 부분의 장바구니 옆에 이미 있다). 닉네임과 상품 이름은 한 줄로만 보여 주고 넘치면 말줄임표.
   분홍은 순번 숫자와 '지금 개봉' 글씨에만 쓴다 */
.qbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 20px 16px; display: flex; flex-direction: column; height: 384px; }
.qbox-head { font-weight: 700; font-size: 17px; }
.qbox-label { font-size: 12px; font-weight: 700; color: var(--sub); }
/* 지금 개봉: 이 칸만 옅은 회색 바탕으로 묶어 목록과 구분한다 */
.qbox-cur { margin: 12px 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--soft); }
.qbox-cur .qbox-label { color: var(--brand-deep); }
.qbox-now { display: flex; align-items: center; gap: 12px; margin-top: 6px; min-height: 50px; }
.qbox-now > div { min-width: 0; }
.qbox-now-no { flex: none; font-size: 42px; line-height: 1; font-weight: 900; color: var(--brand); letter-spacing: -0.04em; }
.qbox-now-name { font-size: 18px; line-height: 1.3; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbox-now-item { margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbox-empty { font-size: 15px; font-weight: 600; }
/* 다음 순서: 순번, 닉네임, 상품 이름의 세 칸. 목록 전체가 한 격자라서 닉네임 칸은 그중 가장 긴 닉네임만큼만 넓어지고
   (너무 길면 말줄임표), 상품 이름은 줄마다 같은 자리에서 닉네임 바로 옆에 붙어 시작한다. li 는 칸을 만들지 않고 줄만 묶는다 */
.qbox-list { flex: 1; margin-top: 4px; overflow: hidden; display: grid; grid-template-columns: 26px max-content minmax(0, 1fr); grid-auto-rows: 34px; align-content: start; align-items: center; column-gap: 10px; }
.qbox-list li { display: contents; font-weight: 600; font-size: 14px; }
.qbox-list .no { color: var(--brand); font-weight: 700; }
.qbox-list .nick { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbox-list .item { font-weight: 500; font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbox-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 11px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.qbox-foot a::after { content: '›'; margin-left: 5px; }

/* ── 첫 화면 팝업 ─────────────────────── */
.popup { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(22, 24, 29, .5); }
.popup-box { position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; border-radius: var(--r-l); background: #fff; }
/* 화면들을 같은 자리에 겹쳐 두고 하나만 보이게 한다. 상자 높이는 가장 긴 화면에 맞춰진다 */
.popup-slides { display: grid; }
.popup-slide { grid-area: 1 / 1; visibility: hidden; }
.popup-slide.is-on { visibility: visible; }
.popup-img { position: relative; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.popup-img img { width: 100%; height: auto; }
.popup-text { padding: 22px 24px 26px; }
.popup-label { margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--brand-deep); }
.popup-text h2 { font-size: 23px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.popup-body { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.popup-text .btn { margin-top: 16px; }
.popup-nav { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; height: 34px; border-radius: 999px; overflow: hidden; background: #fff; }
.popup-nav button { width: 34px; height: 34px; border: 0; background: transparent; padding: 0; font-size: 17px; font-weight: 700; }
.popup-nav span { min-width: 44px; text-align: center; font-size: 13px; font-weight: 700; }
/* 장바구니 담기 안내: 같은 팝업 틀에 문구와 버튼 두 개만 */
.cart-box { max-width: 360px; }
.cart-msg { padding: 34px 24px 32px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.5; }
.popup-foot a { display: flex; align-items: center; justify-content: center; height: 50px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.popup-foot:has(a[hidden]) { grid-template-columns: 1fr; }
.popup-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.popup-foot button { height: 50px; border: 0; background: #fff; font-size: 14px; font-weight: 700; }
.popup-foot button + button { background: var(--ink); color: #fff; }

/* ── 섹션 / 상품 ───────────────────────── */
.sec { margin-top: 92px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.sec-title { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
/* 구역 제목 아래의 작은 영문 라벨 (NEW ARRIVALS 등). 제목만 크게 두고 나머지는 작고 조용하게 */
.sec-eyebrow { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--brand-deep); }
.sec-more { font-size: 14px; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 20px; }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; position: relative; }
.thumb { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-s); background: var(--tile); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 상품 카드의 사진은 세로로 조금 긴 4:5 에 크게 둥근 모서리. 장바구니 줄 같은 작은 사진(.thumb)은 정사각형 그대로 */
.card .thumb { aspect-ratio: 4 / 5; border-radius: var(--r-l); }
.cat-tile .thumb { border-radius: var(--r-l); }
/* 디자인 요청용: 이미지가 들어갈 자리의 크기 표시 */
.thumb-blank { font-size: 14px; font-weight: 800; letter-spacing: -0.04em; color: #CBD1D9; }
/* 상품 태그. 이미지 왼쪽 위에 순위 → 태그 순으로 나란히. 사진 모서리가 둥글어서 가장자리에서 조금 띄운다. 카드에는 태그를 하나만 보여 준다 (templates/shop/_card.html) */
.tags { position: absolute; left: 10px; top: 10px; gap: 4px; max-width: calc(100% - 20px); display: flex; flex-wrap: wrap; align-items: flex-start; }
/* 순위가 왼쪽 위를 차지하는 줄(베스트)에서는 태그를 오른쪽 위로 */
.tags.is-right { left: auto; right: 10px; max-width: calc(100% - 56px); justify-content: flex-end; }
.tag { flex: none; height: 24px; line-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; word-spacing: 0.18em; white-space: nowrap; background: var(--brand); color: #fff; }
/* BEST: 브랜드 분홍 + 앞에 흰 왕관 (2026-10-22 유저가 시안 중 고름. 예전엔 검정) */
.tag.t-BEST { display: flex; align-items: center; gap: 4px; background: var(--brand); color: #fff; }
.tag.t-BEST::before {
  content: ''; flex: none; width: 11px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath fill='%23FFFFFF' d='M1 3.2l3 2.6L7 .8l3 5 3-2.6-1.2 6.6H2.2z'/%3E%3Crect x='2.2' y='9.6' width='9.6' height='1.4' rx='.5' fill='%23FFFFFF'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tag.t-EVENT { background: #BD76FF; color: #fff; }   /* 2026-10-22 유저: 연한 보라 + 흰 글자 (쿠폰 배지 색) */
/* HOT: 불꽃 색(붉은색 → 주황 → 노랑)이 천천히 일렁이고 앞에 작은 불꽃 */
.tag.t-HOT {
  display: flex; align-items: center; gap: 4px; color: var(--ink);
  background: linear-gradient(100deg, #FF5A36, #FF8A1F, #FFC53D, #FF8A1F, #FF5A36);
  background-size: 200% 100%;
  animation: holo 5s linear infinite;
}
.tag.t-HOT::before {
  content: ''; flex: none; width: 9px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath fill='%2316181D' d='M6.4 0c.5 3 4.4 4.9 4.4 9.3A5.3 5.3 0 0 1 5.5 16 5.3 5.3 0 0 1 .2 10.6c0-2.1 1-3.7 2.1-4.9.2 1.5.9 2.4 1.9 2.8C3.7 5 4.7 2.200 6.400 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* LIMITED: 홀로그램 카드처럼 옅은 무지개가 천천히 흐르고 가끔 빛이 한 번 지나간다 */
.tag.t-LIMITED {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(100deg, #FFB5C9, #FFD9A0, #FFF3A6, #B9F3CF, #A8DAFF, #CDB8FF, #FFB5C9);
  background-size: 200% 100%;
  animation: holo 8s linear infinite;
}
.tag.t-LIMITED::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  animation: glint 4s ease-in-out infinite;
}
@keyframes holo { to { background-position: 200% 0; } }
@keyframes glint { 0%, 60% { left: -45%; } 100% { left: 125%; } }
@media (prefers-reduced-motion: reduce) { .tag.t-LIMITED, .tag.t-LIMITED::after, .tag.t-HOT, .unit.u-new, .unit.u-limited { animation: none; } }
/* 순위는 태그와 같은 높이로 맨 앞에 */
.rank { flex: none; min-width: 26px; height: 26px; line-height: 26px; padding: 0 7px; border-radius: 999px; text-align: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
/* 남은 수량: 이미지 왼쪽 아래 */
.stock { position: absolute; left: 10px; bottom: 10px; height: 24px; line-height: 24px; padding: 0 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; }
/* 재고 10개 미만: 남은 수량 자리에 빨간 LOW STOCK */
.stock.is-soon { background: var(--ink); color: #fff; }
.spec .low { color: var(--red); font-weight: 800; }
/* 품절: 이미지를 어둡게 덮고 가운데에 글자만 */
.soldout { position: absolute; inset: 0; background: rgba(22, 24, 29, .5); display: flex; align-items: center; justify-content: center; }
.soldout b { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: 0.12em; text-indent: 0.12em; }
.pd-img .soldout b { font-size: 36px; }
/* 구성 태그: 단품, 풀박스 */
.units { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px; }
/* 테두리 없이 옅은 바탕색만. 단품은 주색의 옅은 톤(분홍), 풀박스는 옅은 민트 */
.unit { display: inline-block; height: 21px; line-height: 21px; padding: 0 9px; border-radius: 999px; background: #ECEFF3; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.unit.u-SINGLE { background: var(--unit-bg); }
.unit.u-FULLBOX { background: #DCF1E8; }
/* 상품 카드에서는 구성(단품, 풀박스)을 색 칸 없이 작은 글씨로만 적는다. 카드에서 눈에 띄는 표시는 신상품 하나만 남긴다.
   단품은 분홍, 풀박스는 초록 글자로 구분한다 (상세 화면의 색 칸과 같은 짝) */
.card .unit:not(.u-new) { height: auto; padding: 0; background: none; font-size: 12px; font-weight: 600; line-height: 21px; color: var(--sub); }
.card .unit.u-SINGLE { color: var(--brand-deep); }
.card .unit.u-FULLBOX { color: #1B7F57; }
/* 신상품: 구성 표시 맨 앞에 붙는다. 흰 바탕에 테두리만 분홍, 보라, 물빛이 오로라처럼 천천히 흘러간다.
   글자는 옆의 단품, 풀박스와 같은 색이고, 번쩍이는 빛이나 번짐은 넣지 않는다 */
.unit.u-new {
  border: 1.5px solid transparent; line-height: 18px; font-weight: 700; color: var(--ink);
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #FF8EC2, #BFA0FF, #7FDDEE, #BFA0FF, #FF8EC2) border-box;
  background-size: auto, 220% 100%;
  animation: aurora 7s ease-in-out infinite alternate;
}
.pd-tags .unit.u-new { height: 24px; line-height: 21px; }
/* 한정판: LIMITED 태그가 붙은 상품의 구성 표시에서 단품 바로 왼쪽에 붙는다 (2026-11-25 유저. 신상품 알약이 있으면 그 다음).
   2026-11-25 유저: 금색, 검정 상자, 마름모는 별로 → 단품, 풀박스처럼 상자 없이 글자만, LIMITED 태그처럼 오로라 빛이 글자 위로 흐르게.
   LIMITED 의 색은 옅어서 흰 바탕의 글자로는 안 읽히므로 같은 결의 짙은 색(분홍, 보라, 파랑, 청록)을 쓴다 */
.unit.u-limited, .card .unit.u-limited {   /* 뒤쪽 선택자: 카드에서 구성 표시를 글씨로만 적는 규칙보다 앞서게 */
  height: auto; padding: 0; font-size: 12px; font-weight: 800; line-height: 21px; color: #9A62F2;
  background: linear-gradient(100deg, #F0569B, #9A62F2, #2C97E8, #14B3A2, #9A62F2, #F0569B) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: holo 6s linear infinite;
}
@keyframes aurora { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 100% 0; } }
.card-name { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
/* 품절 임박: 가격 오른쪽에 빨간 글자만 (재고 여유, 보통은 카드에 안 보인다) */
.card-price .low { margin-left: 2px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--red); }
.card-price .rate { color: var(--red); }
.card-price small { font-size: 13px; font-weight: 600; }
.card-list { font-size: 13px; color: var(--sub); text-decoration: line-through; }

.strip { position: relative; margin-top: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 36px; height: 96px; border-radius: var(--r-l); background: var(--brand-tint); color: var(--ink); }
.strip-title { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.strip-date { font-size: 14px; font-weight: 700; color: var(--brand-deep); }

.boards { margin-top: 92px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 8px; }
.board-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.board li a { display: flex; align-items: center; gap: 12px; height: 50px; border-bottom: 1px solid var(--line); }
.board .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.board .d { flex: none; font-size: 13px; color: var(--sub); }
.flag { flex: none; font-size: 12px; font-weight: 700; }
.flag.is-red { color: var(--red); }

/* ── 목록 화면 ────────────────────────── */
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
/* 큰 분류 안의 세부 탭 (카테고리에 상위 카테고리를 지정하면 생긴다) */
.subtabs { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; }
.subtabs a { flex: none; height: 40px; line-height: 38px; padding: 0 18px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14px; font-weight: 600; }
.subtabs a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.listbar { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* 세부 카테고리 타일: 정사각형 이미지 아래에 이름 */
.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 20px; margin: 28px 0 56px; }
.cat-tile { display: block; text-align: center; }
.cat-tile .thumb.has-img { background: #fff; }
.cat-tile .thumb.has-img img { object-fit: contain; }
.cat-tile p { margin-top: 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.sorts { display: flex; gap: 16px; font-size: 14px; font-weight: 500; }
.sorts a.is-on { font-weight: 700; }
.count { font-size: 14px; font-weight: 500; }
.empty { padding: 90px 0; text-align: center; font-weight: 600; }
/* 시즌 테마 미리보기 주소(/theme/<이름>/)에서 왼쪽 아래에 뜨는 안내 (shop/themes.py) */
.th-note { position: fixed; left: 16px; bottom: 16px; z-index: 45; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
/* 없는 주소로 들어왔을 때 (templates/404.html): 큰 404, PAGE NOT FOUND, 한 줄 안내, 버튼 두 개.
   - 404 는 가운데를 지나는 들쭉날쭉한 선을 따라 찢어져 있다. 같은 글자를 두 장 겹쳐 위쪽과 아래쪽만 잘라 보이고, 아래쪽을 조금 비껴 둔다.
     가끔 위쪽이 옆으로 툭 밀렸다 돌아오고, 가는 띠 한 줄이 옆으로 튄다
   - 가운데 0 과 PAGE NOT FOUND 는 고장 난 간판 불빛처럼 불규칙하게 툭툭 꺼졌다 켜진다
   - 오래된 인쇄물처럼 군데군데 벗겨져 있다: 잔 얼룩 구멍, 크게 바랜 자국, 긁힌 선 몇 줄을 그린 SVG 를 마스크로 씌운다.
     마스크는 찢어진 조각마다 씌워서, 조각이 움직이면 벗겨진 자국도 같이 움직인다
   번지는 빛은 쓰지 않는다. 색은 사이트 주색보다 한결 옅고 살짝 바랜 분홍
   (2026-10-14 유저: "느낌 있게 깜빡이는 404", "분홍이 너무 진하다, 찢어진 느낌", "헌 것 같은 느낌") */
.lost { padding: 92px 0 128px; text-align: center; }
.lost-no { --lost: #EFA0BE; --lost-off: #FBE2EB; --tear: 7px; --worn-size: 360px;
  display: grid; justify-content: center; font-size: 140px; line-height: 1; font-weight: 900; letter-spacing: -0.05em; color: var(--lost); }
.lost-half { grid-area: 1 / 1; display: flex;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4' result='f'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3' seed='9' result='c'/%3E%3CfeComposite in='f' in2='c' operator='arithmetic' k2='.62' k3='.62'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -14 0 0 0 8.8'/%3E%3C/filter%3E%3Cmask id='s'%3E%3Crect width='360' height='360' fill='white'/%3E%3Cg fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath d='M18 96 C90 80 160 92 250 70' stroke-width='1.6'/%3E%3Cpath d='M120 250 C180 238 250 246 344 224' stroke-width='1.3'/%3E%3Cpath d='M40 300 L110 288' stroke-width='2'/%3E%3Cpath d='M230 150 L300 132' stroke-width='1.1'/%3E%3Cpath d='M300 40 L338 30' stroke-width='1.4'/%3E%3Cpath d='M60 190 L96 182' stroke-width='1'/%3E%3C/g%3E%3C/mask%3E%3Crect width='360' height='360' filter='url%28%23w%29' mask='url%28%23s%29'/%3E%3C/svg%3E") 0 0 / var(--worn-size) repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4' result='f'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3' seed='9' result='c'/%3E%3CfeComposite in='f' in2='c' operator='arithmetic' k2='.62' k3='.62'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -14 0 0 0 8.8'/%3E%3C/filter%3E%3Cmask id='s'%3E%3Crect width='360' height='360' fill='white'/%3E%3Cg fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath d='M18 96 C90 80 160 92 250 70' stroke-width='1.6'/%3E%3Cpath d='M120 250 C180 238 250 246 344 224' stroke-width='1.3'/%3E%3Cpath d='M40 300 L110 288' stroke-width='2'/%3E%3Cpath d='M230 150 L300 132' stroke-width='1.1'/%3E%3Cpath d='M300 40 L338 30' stroke-width='1.4'/%3E%3Cpath d='M60 190 L96 182' stroke-width='1'/%3E%3C/g%3E%3C/mask%3E%3Crect width='360' height='360' filter='url%28%23w%29' mask='url%28%23s%29'/%3E%3C/svg%3E") 0 0 / var(--worn-size) repeat; }
.lost-half.is-top { clip-path: polygon(0 0, 100% 0, 100% 50%, 89% 57%, 77% 48%, 64% 58%, 52% 50%, 39% 59%, 26% 49%, 13% 57%, 0 50%); animation: lost-tear 4.4s step-end infinite; }
.lost-half.is-bottom { clip-path: polygon(0 50%, 13% 57%, 26% 49%, 39% 59%, 52% 50%, 64% 58%, 77% 48%, 89% 57%, 100% 50%, 100% 100%, 0 100%); transform: translate(var(--tear), 4px); }
.lost-half.is-slice { clip-path: inset(24% 0 68% 0); opacity: 0; animation: lost-slice 4.4s step-end infinite; }
.lost-eyebrow { margin-top: 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--brand-deep); }
.lost h1 { margin-top: 28px; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.lost-btns { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.lost-btns .btn { min-width: 168px; }
.lost-flick { animation: lost-flick 4.6s step-end infinite; }
.lost-eyebrow { animation: lost-flick-soft 6.2s step-end infinite 1.3s; }
@keyframes lost-tear {
  0%, 100% { transform: none; }
  40% { transform: translateX(-11px); } 41% { transform: translateX(5px); } 42.5% { transform: none; }
  84% { transform: translateX(-6px); } 85.5% { transform: none; }
}
@keyframes lost-slice {
  0%, 100% { opacity: 0; transform: none; }
  40% { opacity: 1; transform: translateX(16px); } 41.5% { opacity: 1; transform: translateX(-9px); } 42.5% { opacity: 0; transform: none; }
}
@keyframes lost-flick {
  0%, 100% { color: var(--lost); }
  8% { color: var(--lost-off); } 9% { color: var(--lost); } 11% { color: var(--lost-off); } 13% { color: var(--lost); }
  52% { color: var(--lost-off); } 53.5% { color: var(--lost); }
  71% { color: var(--lost-off); } 72% { color: var(--lost); } 73% { color: var(--lost-off); } 78% { color: var(--lost); }
}
@keyframes lost-flick-soft {
  0%, 100% { opacity: 1; }
  30% { opacity: .25; } 31.5% { opacity: 1; } 33% { opacity: .25; } 34% { opacity: 1; }
  80% { opacity: .25; } 81% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .lost-flick, .lost-eyebrow, .lost-half { animation: none; } }
/* 주문내역 조회 기간: 왼쪽에 기간 버튼, 오른쪽에 날짜 직접 선택 */
.period { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; }
.period-quick { display: flex; gap: 6px; }
.period-quick a { min-width: 68px; height: 40px; line-height: 38px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: #fff; text-align: center; font-size: 14px; font-weight: 600; }
.period-quick a.is-on { position: relative; background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.period-range { display: flex; align-items: center; gap: 8px; }
.period-range .input { width: 150px; height: 40px; padding: 0 10px; font-size: 14px; }
.period-range span { font-weight: 700; }
.period-range .btn { height: 40px; padding: 0 20px; font-size: 14px; }
.period-sum { margin: 26px 0 12px; font-size: 14px; font-weight: 600; }
.period-sum b { margin-right: 10px; font-size: 16px; font-weight: 800; }
.pager { margin-top: 56px; display: flex; justify-content: center; gap: 4px; }
.pager a, .pager span { min-width: 38px; height: 38px; line-height: 36px; text-align: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.pager .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── 상품 상세 ────────────────────────── */
.crumb { font-size: 13px; font-weight: 500; margin-bottom: 18px; display: flex; gap: 8px; }
.pd { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 60px; }
.pd-img { aspect-ratio: 1 / 1; border-radius: var(--r-l); overflow: hidden; background: var(--tile); display: flex; align-items: center; justify-content: center; position: relative; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-img .thumb-blank { font-size: 22px; }
.pd-media { min-width: 0; }
/* 큰 이미지 아래 작은 이미지 줄. 누른 것에 테두리 */
.pd-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pd-thumb { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: var(--r-s); background: var(--tile); overflow: hidden; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-on::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: inherit; }
.pd-name { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.035em; }
.pd-price { margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
/* 가격은 회원에게만 (2026-10-20): 로그인하지 않은 사람에게는 구매 칸 대신 로그인 안내 */
.pd-lock { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-l); background: var(--soft); }
.pd-lock b { display: block; font-size: 17px; font-weight: 700; }
.pd-lock p { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--sub); }
.pd-lock .btn { margin-top: 18px; }
.pd-price.is-empty { margin-top: 0; }
.pd-price .list { font-size: 15px; color: var(--sub); text-decoration: line-through; }
.pd-price .now { display: flex; align-items: baseline; gap: 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.pd-price .rate { color: var(--red); }
.pd-price .now small { font-size: 20px; font-weight: 700; }
.spec { margin-top: 6px; }
.spec div { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
/* 줄 이름 자리에 아이콘 하나 (택배차, 상자). 글자는 화면 읽기 프로그램용으로만 남긴다 */
.spec dt { width: 36px; flex: none; display: flex; align-items: center; font-weight: 600; }
.spec-ic { width: 22px; height: 22px; flex: none; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.spec dd { font-weight: 500; }
.pick + .pick { margin-top: 18px; }
.pick { margin: 22px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.pick-card { position: relative; display: block; cursor: pointer; }
.pick-card.is-wide { grid-column: 1 / -1; }   /* 일반 구매: 두 개봉 방식 아래 한 줄 */
.pick-card input { position: absolute; left: 16px; bottom: 0; width: 1px; height: 1px; opacity: 0; }
.pick-body { position: relative; display: block; height: 100%; padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--r-m); background: #fff; }
.pick-body b { display: block; padding-right: 30px; font-size: 16px; font-weight: 700; }
.pick-body small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; line-height: 1.45; }
.pick-body::after { content: ''; position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-dark); background: #fff; }
.pick-card input:checked + .pick-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick-card.is-off { cursor: default; }
.pick-card.is-off .pick-body { background: var(--soft); }
.pick-card input:checked + .pick-body::after { border: 6px solid var(--brand); }
.pick-card input:focus-visible + .pick-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.qty { display: inline-flex; border: 1px solid var(--line-dark); border-radius: var(--r-m); overflow: hidden; height: 42px; }
.qty button { width: 42px; border: 0; background: #fff; font-size: 18px; font-weight: 600; padding: 0; }
.qty button[disabled] { background: var(--soft); color: #868C95; cursor: default; }
.qty input { width: 52px; border: 0; border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); text-align: center; font-weight: 700; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; font-weight: 700; }
.sum-row b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
/* 출시 전 상품의 오픈 카운트다운. 숫자 한 자리가 타일 하나 */
.drop { margin-top: 22px; padding: 22px 16px 20px; border-radius: var(--r-l); background: var(--soft); text-align: center; }
.drop-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 700; }
.drop-head b { height: 22px; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.drop-clock { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin-top: 18px; }
.drop-clock [hidden] { display: none; }
.drop-unit { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.drop-digits { display: flex; gap: 4px; }
.drop-digits i { position: relative; width: 46px; height: 60px; line-height: 60px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-style: normal; font-size: 34px; font-weight: 800; }
.drop-digits i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .22); }
.drop-unit small { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.drop-sep { height: 60px; line-height: 56px; font-size: 28px; font-weight: 800; }
.pd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
/* 품절 상품의 재입고 요청 버튼. 요청한 뒤에는 종이 채워지고 바탕이 바뀐다 */
.restock { gap: 8px; padding: 0 10px; white-space: nowrap; }
.restock svg { flex: none; }
.restock.is-done, .restock.is-done[disabled] { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-deep); }
.restock.is-done svg { fill: currentColor; }
.pd-body { margin-top: 72px; }
.pd-h { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-desc { padding: 28px 0 56px; font-size: 16px; line-height: 1.8; white-space: pre-line; max-width: 760px; }
/* 편집기로 쓴 상품 설명: 글자 크기와 색은 글에 저장된 값을 그대로 따르고, 여기서는 간격과 이미지 배치만 잡는다 */
.pd-desc.is-rich { white-space: normal; max-width: 860px; }
.pd-desc.is-rich p { margin: 0 0 0.8em; }
.pd-desc.is-rich h2 { margin: 1.4em 0 0.5em; font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.pd-desc.is-rich h3 { margin: 1.2em 0 0.4em; font-size: 19px; line-height: 1.4; font-weight: 800; }
.pd-desc.is-rich ul, .pd-desc.is-rich ol { margin: 0 0 0.8em; padding-left: 1.4em; }
.pd-desc.is-rich ul { list-style: disc; }
.pd-desc.is-rich ol { list-style: decimal; }
.pd-desc.is-rich a { text-decoration: underline; }
.pd-desc.is-rich hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.pd-desc.is-rich img { display: block; max-width: 100%; height: auto; }
.pd-desc.is-rich figure.image { display: table; margin: 18px auto; max-width: 100%; }
.pd-desc.is-rich figure.image.image-style-align-left { margin-left: 0; }
.pd-desc.is-rich figure.image.image-style-align-right { margin-right: 0; }
.pd-desc.is-rich figure.image_resized img { width: 100%; }
.pd-desc.is-rich figcaption { margin-top: 6px; font-size: 13px; text-align: center; }
.pd-desc.is-rich > :first-child { margin-top: 0; }
.guide div { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide dt { width: 130px; flex: none; font-weight: 600; }

/* ── 버튼 / 폼 ────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border: 1px solid var(--ink); border-radius: var(--r-m); background: #fff; font-size: 16px; font-weight: 700; }
.btn.is-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.is-dark { background: var(--ink); color: #fff; }
.btn.is-sm { height: 36px; padding: 0 14px; border-radius: var(--r-s); font-size: 13px; }
.btn.is-full { width: 100%; }
.btn[disabled] { background: #DDE1E6; border-color: #DDE1E6; color: var(--ink); cursor: default; }

.field { margin-top: 16px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: var(--r-m); background: #fff; outline: 0; }
.input:focus { border-color: var(--ink); }
/* 유튜브 닉네임 칸: 앞의 @ 는 늘 보이는 표시이고 사람은 그 뒤의 이름만 적는다 (직접 친 @ 는 static/js/nickname.js 가 지운다) */
.at-field { position: relative; }
.at-field .at { position: absolute; left: 14px; top: 0; height: 48px; display: flex; align-items: center; font-weight: 700; pointer-events: none; }
.at-field .input { padding-left: 29px; }
/* 필수 표시와 빠뜨린 칸 */
.req { margin-left: 4px; color: var(--red); font-weight: 700; }
/* 칸 이름 오른쪽에 붙는 작은 빨간 안내 */
.label-note { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--red); }
/* 유튜브 닉네임 칸의 댓글 인증 (templates/shop/_nickname_field.html): 우편번호 칸처럼 '읽기 전용 칸 + 단추' 한 줄,
   코드를 받으면 그 아래 테두리만 있는 칸에 안내 한 줄, 코드와 복사, 남은 시간 */
.yt-row { display: flex; gap: 8px; }
.yt-row .at-field { flex: 1; min-width: 0; }
.yt-row .input[readonly] { cursor: default; }
.yt-row .btn { flex: none; min-width: 104px; height: 48px; padding: 0 18px; font-size: 14px; }   /* 단추 글자가 바뀌어도 너비가 그대로 */
.yt-verify[data-state="done"] .yt-row .btn { border-color: var(--line-dark); background: #fff; color: var(--ink); }   /* 다시 인증은 꼭 누를 단추가 아니라 흰 단추 */
.yt-box { margin-top: 10px; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--r-m); list-style: none; }
.yt-box li { display: flex; gap: 10px; }
.yt-box li + li { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.yt-box li > div { flex: 1; min-width: 0; }
.yt-n { flex: none; width: 14px; font-size: 15px; font-weight: 800; line-height: 1.45; }   /* 1, 2 번호: 숫자만 굵게 */
.yt-guide { font-size: 14px; font-weight: 500; line-height: 1.55; }
.yt-guide b { font-weight: 700; }
.yt-code { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-top: 10px; padding: 0 6px 0 16px; border-radius: var(--r-m); background: var(--soft); }
.yt-code b { font-size: 17px; font-weight: 800; letter-spacing: 0.06em; }
.yt-video { display: flex; gap: 8px; width: 100%; height: 44px; margin-top: 8px; border-color: var(--line-dark); font-size: 14px; }   /* 뽑냥이 영상 열기 */
.yt-copy { height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: #fff; font-size: 13px; font-weight: 700; }
.yt-sub { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--sub); }
.yt-sub:empty { display: none; }
.yt-msg { margin-top: 6px; font-size: 13px; font-weight: 600; }
.yt-msg:empty { display: none; }
.yt-msg.is-bad { color: var(--red); }
/* 같은 자리의 차분한 안내 (예: Google 로그인으로 채운 값이라는 설명) */
.label-info { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--sub); }
.input.is-err, .input.is-err:focus { border-color: var(--red); }
.input::placeholder { color: #868C95; }
/* 검색으로만 채우는 칸: 눌러서 검색을 연다 */
.input[readonly] { background: var(--tile); cursor: pointer; }
.zip-row { display: flex; gap: 8px; }
.zip-row .input { width: 160px; }
.zip-row .btn { flex: none; height: 48px; padding: 0 18px; font-size: 14px; }
/* 주소 검색 창 */
.zip-layer { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(22, 24, 29, .5); }
.zip-layer[hidden] { display: none; }
.zip-box { display: flex; flex-direction: column; width: 100%; max-width: 480px; height: 600px; max-height: 100%; border-radius: var(--r-l); overflow: hidden; background: #fff; }
.zip-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px 0 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.zip-head b { font-weight: 800; }
.zip-head button { height: 40px; padding: 0 12px; border: 0; background: transparent; font-size: 14px; font-weight: 700; }
.zip-body { flex: 1; min-height: 0; }
.zip-wait { padding: 40px 0; text-align: center; font-size: 15px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.err a { text-decoration: underline; text-underline-offset: 2px; }
/* 화면 위쪽의 한 줄 안내와 오류 (비밀번호가 맞지 않습니다 등): 옅은 회색 바탕의 둥근 칸. 분홍 바탕은 쓰지 않는다 (2026-10-13 유저 요청) */
.notice-line { margin-bottom: 20px; padding: 13px 16px; border-radius: var(--r-m); background: var(--soft); font-weight: 600; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 1px solid var(--line-dark); border-radius: var(--r-m); font-weight: 600; cursor: pointer; margin: 0; }
.checks input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.agree, .field label.agree { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; font-size: 14px; }
.agree input { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }

/* ── 장바구니 / 주문 ───────────────────── */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; margin-top: 26px; }
/* 표 머리: 굵은 검은 윗줄 없이 조용한 글씨와 옅은 밑줄만 */
.tbl th { height: 44px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--sub); text-align: left; padding: 0 12px; }
.tbl td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.line-item { display: flex; align-items: center; gap: 16px; }
.line-item .thumb { width: 72px; flex: none; }
.tbl .line-item .thumb { width: 56px; }
.line-item .thumb-blank { font-size: 10px; }
.line-item .n { font-weight: 600; }
.line-item .ty { font-size: 12px; font-weight: 700; }
.line-item .ty.is-live { color: var(--red); }
.link-btn { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; text-decoration: underline; }
/* 주문 요약은 따라 내려온다. 위에 붙어 있는 로고와 메뉴(124px) 바로 아래에 멈춘다 */
.side { border-radius: var(--r-l); background: var(--soft); padding: 26px 24px; position: sticky; top: 144px; }
.side h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.side dl div { display: flex; justify-content: space-between; padding: 8px 0; font-weight: 500; }
.side .total { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-dark); align-items: baseline; font-weight: 700; }
.side .total dd { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.side .btn { margin-top: 20px; }
.form-sec { margin-top: 44px; }
.form-sec:first-of-type { margin-top: 0; }
.form-sec h2 { font-size: 19px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.form-sec h2 a { font-size: 13px; font-weight: 600; text-decoration: underline; }

/* ── 주문 완료 ──────────────────── */
.narrow { max-width: 620px; margin: 0 auto; }
/* 결제 (templates/shop/pay.html, pay_smartro.html, pay_wait.html, pay_fail.html): 주문 요약, 결제하기 */
.pay-next { margin-top: 12px; font-size: 14px; font-weight: 500; }
/* 적립금 (shop/points.py): 주문서의 쓸 금액 칸과 '전액 사용', 오른쪽 결제 금액의 적립금 줄, 적립 예정 */
.point-use { display: flex; gap: 8px; margin-top: 16px; }
.point-box { position: relative; width: 200px; }
.point-box .input { padding-right: 36px; text-align: right; font-weight: 700; -moz-appearance: textfield; }
.point-box .input::-webkit-outer-spin-button, .point-box .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.point-box span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; }
.point-use .btn { flex: none; height: 48px; padding: 0 18px; font-size: 14px; }
.point-have { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 500; }
.point-have b { font-weight: 700; }
.point-have .point-unit { color: var(--sub); }
.point-ship { margin-top: 8px; font-size: 14px; font-weight: 700; word-break: keep-all; }
.pay-test { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-m); background: var(--soft); font-size: 14px; font-weight: 600; }
.pay-sum { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.pay-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; }
.pay-sum dt { flex: none; font-weight: 600; }
.pay-sum dd { text-align: right; }
.pay-sum .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.pay-widget { margin-top: 14px; }
.pay-note { margin-top: 16px; font-size: 14px; font-weight: 500; line-height: 1.6; }
.pay .err { margin-top: 12px; }
.pay .btn.is-full { margin-top: 16px; }
.pay-back { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 600; }
.pay-back a { text-decoration: underline; text-underline-offset: 3px; }
.pay-fail { padding-top: 72px; text-align: center; }
.pay-fail h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.pay-fail-msg { margin-top: 14px; font-size: 16px; font-weight: 600; line-height: 1.7; }
.pay-fail-sub { margin-top: 6px; font-size: 15px; }
.done-head { text-align: center; padding: 28px 0 34px; }
.done-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.done-head .done-lead { margin-top: 16px; font-size: 17px; font-weight: 600; line-height: 1.7; }
.done-head .done-sub { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.done-head a { text-decoration: underline; text-underline-offset: 3px; }
.turn { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-l); background: var(--brand-tint); }
.turn div { padding: 24px 26px; }
.turn div + div { border-left: 1px solid var(--tint-stud-shade); }
.turn dt { font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.turn dd { margin-top: 4px; font-size: 38px; line-height: 1.1; font-weight: 900; letter-spacing: -0.04em; }
.turn dd small { font-size: 17px; font-weight: 700; margin-left: 3px; }
.info { margin-top: 28px; }
.info div { display: flex; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info dt { width: 110px; flex: none; font-weight: 600; }
.info dd { font-weight: 500; }
.btn-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
.btn-trio .btn { padding: 0 8px; font-size: 15px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 32px; }

/* ── 내 정보 ──────────────────────────── */
/* 내 정보의 주문 요약 카드: 흰 바탕에 옅은 테두리의 둥근 카드 (2026-10-13 분홍 바탕은 유저가 빼라고 함. 홈의 라이브 순번 칸과 같은 모양) */
.my-sum { max-width: 816px; margin-top: 22px; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.my-sum dl { margin: 0; }
.my-sum dt { font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.my-sum dd { margin-top: 4px; font-size: 34px; line-height: 1.15; font-weight: 900; letter-spacing: -0.04em; }
.my-sum dd small { margin-left: 3px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
/* 마이페이지 탭 (templates/shop/_my_tabs.html): 내 정보, 주문내역, 보관함, 적립금. 아래 기간 버튼(둥근 알약)과 헷갈리지 않게 밑줄 탭으로 */
/* 바닥 줄과 지금 탭의 밑줄을 모두 안쪽 그림자로 그린다 (밑줄이 칸 밖으로 나가 스크롤 막대가 생기지 않게) */
.my-tabs { display: flex; gap: 28px; margin: 18px 0 26px; box-shadow: inset 0 -1px 0 var(--line); }
.my-tabs a { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 48px; font-size: 16px; font-weight: 600; color: var(--sub); }
.my-tabs a.is-on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.my-sum-stats { display: flex; gap: 48px; }
.point-rule { max-width: 816px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--sub); }
.tbl.points { max-width: 816px; margin-top: 24px; }
.tbl.points td b { font-weight: 700; }
.tbl.points .link-btn { margin-left: 6px; }
.tbl.points .is-minus { color: var(--red); }   /* 적립금 사용, 회수처럼 줄어든 금액 */
.pay-points { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--sub); }   /* 주문 상세: 총 결제 금액 옆 (적립금 사용 -N원) */
.point-more { display: flex; justify-content: center; max-width: 816px; padding: 18px 0; }
.point-loading { visibility: hidden; font-size: 13px; font-weight: 600; color: var(--sub); }
.point-more.is-loading .point-loading { visibility: visible; }
.point-memo { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--sub); }
.my-form { max-width: 816px; margin-top: 26px; }
/* 쿠폰 (마이페이지 쿠폰함과 주문서, shop/coupons.py, 2026-11-24 유저). 쿠폰 한 장 = 왼쪽 본문 + 오른쪽 떼는 칸.
   검정 티켓에 분홍 포인트 (유저: 연분홍은 흐리고 티켓 같지 않다 → 블랙 계열에 핑크). 분홍은 쿠폰 이름과 떼는 칸만.
   사이는 점선 절취선(떼는 칸의 왼쪽 테두리), 위아래 반원 홈은 mask 로 실제로 뚫는다. 빛과 그림자는 넣지 않는다.
   검정 위 글자는 흰색 (흐린 회색 글자를 쓰지 않는다). 지난 쿠폰은 밝은 회색 티켓에 진한 글자 */
.cp-list { max-width: 816px; margin-top: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp {
  --stub: 100px; --hole: 9px;
  display: flex; min-height: 124px; border-radius: 10px; background: var(--ink); color: #fff;
  -webkit-mask: radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) top / 100% 51% no-repeat,
        radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) bottom / 100% 51% no-repeat;
}
.cp-g { display: flex; }                                    /* 같은 줄의 티켓 높이를 맞춘다 */
.cp-g > .cp { flex: 1; min-width: 0; }
.cp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; }
.cp-name { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-title { margin-top: 4px; font-size: 26px; line-height: 1.2; font-weight: 900; letter-spacing: -0.04em; }
.cp-cond { margin-top: 3px; font-size: 13px; font-weight: 700; }
.cp-when { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.cp-stub { flex: none; width: var(--stub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-left: 2px dashed var(--ink); background: var(--brand); color: #fff; }
.cp-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-stub b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.cp.is-held .cp-stub { background: var(--brand-deep); }                                                    /* 결제 중 */
.cp.is-waiting .cp-stub { background: #2C2F36; color: var(--brand); }                                     /* 시작일 전 */
.cp.is-used, .cp.is-expired { background: #ECEEF1; color: var(--ink); }                                     /* 지난 쿠폰 */
.cp.is-used .cp-name, .cp.is-expired .cp-name { color: var(--ink); }
.cp.is-used .cp-stub, .cp.is-expired .cp-stub { border-left-color: #ECEEF1; background: #DDE0E4; color: var(--ink); }
.cp-h { max-width: 816px; margin: 44px 0 14px; font-size: 19px; font-weight: 700; }
/* 빈 쿠폰함: 글자 한 줄만 (판, 그림 없이) */
.cp-none { max-width: 816px; padding: 56px 16px; text-align: center; font-size: 16px; font-weight: 700; }
/* 쿠폰 이용 안내: 맨 아래, 위에 가는 선 하나와 분홍 점 목록 */
.cp-guide { max-width: 816px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.cp-guide h2 { font-size: 15px; font-weight: 800; }
.cp-guide ul { margin-top: 10px; display: grid; gap: 6px; }
.cp-guide li { position: relative; padding-left: 14px; font-size: 14px; font-weight: 500; color: var(--sub); line-height: 1.55; }
.cp-guide li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* 주문서의 쿠폰 고르기 (2026-11-24 유저: 흰 카드 + 연분홍은 흐리고 티켓 같지 않다 → 검정 + 분홍). 쿠폰함과 같은 검정 티켓을 두 장씩.
   안 고른 티켓은 떼는 칸이 짙은 회색에 분홍 금액, 고르면 떼는 칸이 분홍으로 차고 체크가 뜬다. 홈은 mask 로 뚫고 빛, 그림자는 없다.
   못 쓰는 쿠폰은 밝은 회색 티켓 */
.cpk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cpk {
  --stub: 104px; --hole: 8px;
  position: relative; display: flex; min-height: 96px; border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer;
  -webkit-mask: radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) top / 100% 51% no-repeat,
        radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--hole), #000 calc(var(--hole) + 0.5px)) bottom / 100% 51% no-repeat;
}
.cpk-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cpk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 14px 20px; }
.cpk-name { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpk-ben { margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.cpk-sub { margin-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.cpk-stub { flex: none; width: var(--stub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-left: 2px dashed var(--ink); background: #2C2F36; color: var(--brand); transition: background-color 0.15s ease, color 0.15s ease; }
.cpk-stub b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.cpk-ok { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cpk:has(.cpk-in:checked) .cpk-stub { background: var(--brand); color: #fff; }
.cpk:has(.cpk-in:checked) .cpk-ok { display: block; }
.cpk:has(.cpk-in:focus-visible) .cpk-main { box-shadow: inset 0 0 0 2px var(--brand); border-radius: 10px 0 0 10px; }
.cpk.is-off { cursor: default; background: #ECEEF1; color: var(--ink); }
.cpk.is-off .cpk-name { color: var(--ink); }
.cpk.is-off .cpk-stub { border-left-color: #ECEEF1; background: #DDE0E4; color: var(--ink); }
.cpk.is-off .cpk-stub b { font-size: 13px; }
/* 보관함 (마이페이지, shop/boxes.py): 보관 중인 상자 카드, 담긴 상품, 지금 보내 주세요 */
.my-sum-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.my-box-lead { margin-top: 8px; font-size: 15px; font-weight: 500; }
.my-box { max-width: 816px; margin-top: 10px; }
/* 확인 창 (보관함의 '지금 보내 주세요'): 분홍 상자 그림, 제목과 한 줄 안내, 옅은 분홍 바탕의 알아 둘 점, 아니요 / 보내 주세요 */
.confirm { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(22, 24, 29, .5); }
.confirm[hidden] { display: none; }
.confirm-box { width: 100%; max-width: 380px; padding: 30px 22px 22px; border-radius: var(--r-l); background: #fff; text-align: center; }
.confirm-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.confirm-box h2 { margin-top: 16px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.confirm-body { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.confirm-body b { color: var(--brand); }
.confirm-notes { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-m); background: var(--brand-tint); text-align: left; }
.confirm-notes li { position: relative; padding-left: 14px; font-size: 13px; font-weight: 600; line-height: 1.6; }
.confirm-notes li + li { margin-top: 6px; }
.confirm-notes li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.confirm-notes li[hidden] { display: none; }
.confirm-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.confirm-foot .btn { height: 50px; padding: 0 10px; font-size: 15px; }
.confirm-foot .btn:disabled { opacity: .7; }
/* 보관함 상태: 흰 카드에 한 줄씩 (상태, 보관 기간, 무료배송까지). 남은 날과 남은 금액만 분홍으로 짚는다
   (2026-10-15: 검은 카드에 막대 두 개였는데 유저가 "블랙 별로, AI 스러운 디자인" 이라 바꿨다) */
.bx-summary { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.bx-info { padding: 4px 22px; }
.bx-info.is-pay { border-left: 1px solid var(--line); }
.bx-info .is-total dt, .bx-info .is-total dd { font-size: 16px; font-weight: 800; }
.bx-info.is-pay dt { width: 118px; white-space: nowrap; }
.bx-info div { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; }
.bx-info div + div { border-top: 1px solid var(--line); }
.bx-info dt { flex: none; width: 96px; font-size: 14px; font-weight: 700; }
.bx-info dd { font-size: 15px; font-weight: 600; line-height: 1.5; }
.bx-em { margin-left: 6px; color: var(--brand); font-weight: 800; }
.bx-info dd > .bx-em:first-child { margin-left: 0; }
.bx-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.bx-chip.is-open { background: var(--brand-tint); color: var(--brand-deep); }
.bx-chip.is-ready { background: var(--soft); color: var(--ink); }
.bx-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 34px; }
.bx-sec-head h2 { font-size: 18px; font-weight: 800; }
.bx-sec-head h2 span { margin-left: 4px; color: var(--brand); }
.bx-sec-note { font-size: 13px; font-weight: 700; color: var(--red); }
.bx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; margin-top: 12px; }
.bx-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.bx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bx-state { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }
.bx-state.is-now { background: var(--brand); }
.bx-state.is-done { background: var(--ink); }
.bx-name { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.bx-meta + .bx-name { margin-top: 6px; }
.bx-price { margin-top: 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.bx-price small { margin-left: 1px; font-size: 13px; font-weight: 700; }
.bx-split { margin: 40px 0 0; border: 0; border-top: 1px solid var(--line); }
.bx-empty { margin-top: 18px; padding: 40px 20px; border: 1px dashed var(--line-dark); border-radius: var(--r-l); text-align: center; font-size: 14px; font-weight: 500; line-height: 1.7; }
.bx-empty-title { margin-bottom: 6px; font-size: 17px; font-weight: 800; }
.bx-empty .btn { margin-top: 16px; }
.box-ship { margin-top: 12px; }
.box-ship-note { margin-top: 8px; font-size: 13px; font-weight: 500; text-align: center; }
.box-past-title { margin-top: 22px; font-size: 15px; font-weight: 700; }
.box-past li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
/* 보관 표시 (장바구니, 주문서, 주문 상품 표) */
/* 개봉 방식 표시 (순번, 보관함, 주문 내역): 라이브 개봉은 연분홍, 미개봉은 회색 바탕. 보관(.keep-tag)은 검정 */
.kind-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.kind-tag.is-LIVE { background: var(--brand-tint); color: var(--brand-deep); }
.kind-tag.is-SHIP { background: var(--tile); color: var(--ink); }
/* 라이브 순번 표의 방식 칸 (예전 수량 칸 자리). 섞인 주문은 태그 두 개가 나란히, 좁으면 아래로 */
.qtbl .q-kinds { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.keep-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 4px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
/* 장바구니와 주문서의 배송비 줄 아래 보관함 안내 (templates/shop/_keep_ship.html): 값과 같은 오른쪽 정렬, 작은 한 줄 */
.side dl .ship-row { flex-wrap: wrap; }
.side dl .ship-sub { flex-basis: 100%; margin-top: 4px; font-size: 13px; font-weight: 500; line-height: 1.5; text-align: right; }
.side dl .ship-due { color: var(--red); font-weight: 600; }   /* 보관함 만료일과 남은 날 */
/* 상품 상세의 '보관하기' 스위치 (라이브 개봉을 고르면 나온다) */
.keep-switch { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: var(--r-m); background: #fff; cursor: pointer; }
.keep-switch[hidden] { display: none; }
.keep-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.keep-track { position: relative; flex: none; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: var(--line-dark); transition: background-color .15s; }
.keep-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.keep-switch input:checked + .keep-track { background: var(--brand); }
.keep-switch input:checked + .keep-track::after { transform: translateX(16px); }
.keep-switch input:focus-visible + .keep-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.keep-switch input:disabled + .keep-track { opacity: .5; }
.keep-text b { display: block; font-size: 15px; font-weight: 700; }
.keep-text small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.5; }
/* 회원가입 화면 위쪽의 인사말 */
.signup-hello { margin-top: 16px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
/* 회원가입을 마치고 홈에 처음 왔을 때의 환영 카드. 뒤에서 색종이가 한 번 터진다 (static/js/welcome.js) */
.welcome { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(22, 24, 29, .45); }
.welcome canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.welcome-card { position: relative; width: 100%; max-width: 360px; padding: 38px 28px 28px; border-radius: var(--r-l); background: #fff; text-align: center; animation: welcome-in .45s cubic-bezier(.2, .9, .3, 1.2); }
.welcome-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.welcome-card h2 b { color: var(--brand); }
.welcome-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.welcome-card .btn { margin-top: 24px; }
.welcome-card .welcome-next { display: block; margin-top: 14px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .welcome-card { animation: none; } }
.agree a { text-decoration: underline; text-underline-offset: 3px; }
/* 잠깐 떴다 사라지는 알림 */
.toast { position: fixed; left: 50%; top: 28px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px rgba(22, 24, 29, .10); font-size: 15px; font-weight: 600; white-space: nowrap; pointer-events: none; transform: translateX(-50%); animation: toast 2.8s ease forwards; }
.toast svg { flex: none; }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  9%, 82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .toast { animation-duration: 3.2s; } }

/* ── 로그인 ───────────────────────────── */
.auth { max-width: 400px; margin: 0 auto; padding-top: 20px; }
.auth h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; text-align: center; margin-bottom: 26px; }
.auth .field { margin-top: 10px; }
.auth-opt { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 18px; font-size: 14px; }
.auth-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.sns { display: grid; gap: 8px; }
.sns .btn { border-color: transparent; font-size: 15px; }
/* Google 로그인 버튼: Google 이 정한 모양대로 흰 바탕, 회색 테두리, 왼쪽에 G 로고 */
.sns .google { display: flex; align-items: center; justify-content: center; gap: 10px; border-color: #747775; background: #fff; color: #1F1F1F; font-weight: 600; }
/* 아이디 로그인 (결제사, 카드사 심사용 계정): Google 버튼 아래 밑줄 글자 하나, 누르면 칸이 펼쳐진다 */
.id-login { margin-top: 20px; text-align: center; }
.id-login summary { display: inline-block; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.id-login summary::-webkit-details-marker { display: none; }
.id-login form { margin-top: 14px; text-align: left; }
.id-login .btn { margin-top: 12px; }
[hidden] { display: none !important; }

/* ── 게시판 ───────────────────────────── */
.post-list { margin-top: 22px; border-top: 1px solid var(--line); }
.post-list a { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.post-list .t { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; }
.post-list .d { font-size: 14px; color: var(--sub); }
.post-head { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 8px; margin-top: 22px; }
.post-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.post-head p { margin-top: 6px; font-size: 14px; color: var(--sub); }
.post-body { padding: 34px 8px 48px; font-size: 16px; line-height: 1.85; white-space: pre-line; border-bottom: 1px solid var(--line); }
/* 비밀 문의를 쓴 사람, 관리자가 아닌 사람이 열었을 때 (templates/shop/inquiry_detail.html) */
.post-locked { padding: 48px 8px; text-align: center; font-size: 15px; font-weight: 600; color: var(--sub); border-bottom: 1px solid var(--line); }
.post-foot { margin-top: 24px; text-align: center; }
/* 이용약관, 개인정보처리방침 같은 긴 문서 (templates/shop/page.html). 조항 제목과 본문, 목록의 간격만 잡는다 */
.doc { max-width: 860px; margin-top: 22px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.doc h3 { margin: 30px 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.doc > :first-child { margin-top: 0; }
.doc p { margin: 0 0 8px; }
.doc ol, .doc ul { margin: 0 0 8px; padding-left: 1.5em; }
.doc ol { list-style: decimal; }
.doc ul { list-style: disc; }
.doc li { margin: 2px 0; }
.doc li > ul, .doc li > ol { margin-top: 2px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.ev-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.ev-thumb { height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 28px; background: var(--brand); color: #fff; position: relative; overflow: hidden; border-radius: var(--r-l); }
.ev-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-thumb strong { font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -0.04em; }
.ev-card:nth-child(4n+2) .ev-thumb { background: var(--ink); color: #fff; }
.ev-card:nth-child(4n+3) .ev-thumb { background: var(--brand-tint); color: var(--ink); }
.ev-card:nth-child(4n+4) .ev-thumb { background: #EEF1F5; color: var(--ink); }
.ev-card.is-end .ev-thumb { background: #DDE1E6; color: var(--ink); }
.ev-meta { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; }
/* 이벤트 탭 (진행 중, 종료) 바로 아래의 카드: 탭 아래 여백이 있으니 카드 위 여백은 뺀다. 비었을 때 문구는 두 칸을 다 쓴다 */
.ev-tabs + .ev-grid { margin-top: 0; }
.ev-grid .empty { grid-column: 1 / -1; }

/* ── 문의 ─────────────────────────────── */
.board-top { display: flex; align-items: flex-end; justify-content: space-between; }
.inq-tbl { margin-top: 22px; }
.inq-tbl td { height: 58px; padding: 0 12px; }
.inq-tbl .kind { width: 110px; font-size: 14px; font-weight: 600; }
.inq-tbl .who { width: 110px; }
.inq-tbl .date { width: 120px; color: var(--sub); font-size: 14px; }
.inq-tbl .state { width: 96px; font-size: 14px; font-weight: 700; }
.inq-tbl .state.is-done { color: var(--brand-deep); }
/* 문의 탭 [문의][자주 묻는 질문] (templates/shop/_inquiry_tabs.html). 탭 아래 여백이 있으니 표 위 여백은 뺀다 */
.inq-tabs + .inq-tbl { margin-top: 0; }
/* 자주 묻는 질문 (2026-11-18). 분류 단추는 주문내역의 기간 단추와 같은 알약, 목록 위 굵은 선은 라이브 순번 화면과 같다.
   질문을 누르면 답이 펼쳐지고 오른쪽 + 가 - 로 바뀐다. 답 글은 너무 길게 늘어지지 않게 폭을 줄인다 */
.faq-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-cats button { height: 40px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.faq-cats button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.faq-list { margin-top: 22px; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 16px 12px; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { max-width: 760px; padding: 0 12px 26px; font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--sub); }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 10px; }
.faq-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .faq-icon::before, .faq-icon::after { transition: none; } }
.lock { display: inline-block; margin-right: 8px; padding: 0 8px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 2px; }
.form-narrow { max-width: 720px; margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316181D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
textarea.input { height: 220px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.inq-ref { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-m); background: var(--soft); font-weight: 600; }
/* 문의할 주문 드롭다운 (templates/shop/inquiry_write.html, static/js/inquiry.js): 주문번호, 상품 이름, 날짜를 칸 맞춰. 입력칸과 같은 모양 */
.osel { position: relative; }
.osel-btn { display: flex; align-items: center; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
            background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316181D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.osel-ph { color: var(--sub); }
.osel-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.osel-row b { font-weight: 800; }
.osel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.osel-date { color: var(--sub); font-size: 13px; font-weight: 600; }
.osel-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 288px; overflow-y: auto; margin: 0; padding: 6px;
             list-style: none; background: #fff; border: 1px solid var(--line-dark); border-radius: var(--r-m); }
.osel-list .osel-row { padding: 11px 10px; border-radius: var(--r-s); font-size: 14px; cursor: pointer; outline: 0; }
.osel-list .osel-row:hover, .osel-list .osel-row:focus { background: var(--soft); }
.osel-list .osel-row[aria-selected="true"] { background: var(--tile); }
.osel-none { padding: 11px 10px; font-size: 14px; font-weight: 600; color: var(--sub); }
.answer { margin-top: 0; padding: 28px 8px 36px; border-bottom: 1px solid var(--line); }
.answer h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--brand-deep); }
.answer p { font-size: 16px; line-height: 1.85; white-space: pre-line; }
.answer .wait { font-weight: 600; }

/* ── 라이브 순번 ───────────────────────── */
/* 화면 전체 폭(1200)은 너무 넓어서 이 화면만 가운데로 모은다 (2026-11-18 유저: 양옆 여백을 두고 가운데로) */
#live { max-width: 880px; margin-left: auto; margin-right: auto; }
/* 위쪽 판 (2026-11-18 유저가 시안 C '판 없이' 골라 적용): 바탕 판 없이 위의 굵은 선 하나로 아래 표와 한 덩어리.
   분홍은 지금 순서 번호에만. 왼쪽 끝은 표 글자(칸 안쪽 12px)에, 오른쪽 숫자는 표의 주문 시간 끝에 맞춘다.
   예전 연분홍 판, 떠다니던 먹거리 그림(.live-fx), 글자 둘레 테두리는 없앴다 */
.lq { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 48px; margin-top: 22px; padding: 22px 12px 24px; border-top: 2px solid var(--ink); }
.lq-lb, .lq-stats dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.lq-row { display: flex; align-items: center; gap: 18px; margin-top: 12px; min-height: 72px; }
.lq-no { flex: none; margin-left: -0.05em; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
.lq-thumb { flex: none; display: block; width: 64px; height: 64px; border-radius: var(--r-m); background: var(--tile); overflow: hidden; }
.lq-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lq-who { min-width: 0; }
.lq-nick { font-size: 22px; font-weight: 800; line-height: 1.3; }
/* 상품 줄: 좁으면 상품 이름이 태그 옆에 남지 않고 통째로 다음 줄로 */
.lq-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.lq-empty { font-size: 22px; font-weight: 800; line-height: 1.3; }
.lq-stats { display: flex; gap: 48px; margin: 0; text-align: right; }
.lq-stats dd { display: flex; align-items: center; justify-content: flex-end; min-height: 72px; margin: 12px 0 0; font-size: 15px; font-weight: 700; }
.lq-stats dd b { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin-right: 3px; }
/* 순번이 바뀌면 지금 순서 줄이 살짝 떠오르며 다시 나타난다 (templates/shop/live.html 이 is-new 를 붙인다) */
.lq-row.is-new { animation: lq-in .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes lq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lq-row.is-new { animation: none; } }
.qtbl { margin-top: 14px; }
/* 대기가 비면 표 머리줄을 숨긴다 (빈 표에서는 머리 글자들이 칸 너비 없이 흩어져 보여서) */
.qtbl.is-empty thead { display: none; }
.qtbl.is-empty td { border-top: 1px solid var(--line); }
.qtbl th { height: 44px; border-bottom: 1px solid var(--line); text-align: left; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--sub); }
.qtbl td { height: 54px; padding: 0 12px; border-bottom: 1px solid var(--line); font-weight: 500; }
.qtbl .no { width: 80px; font-size: 18px; font-weight: 800; }
.qtbl .nick { width: 150px; font-weight: 700; }
.qtbl .r { text-align: right; width: 90px; }
/* 닉네임과 상품 이름 사이의 작은 상품 이미지. 이미지가 없는 상품은 같은 크기의 옅은 빈 칸(.q-blank)을 둬서 줄이 들쭉날쭉하지 않게 한다 */
.qtbl .q-thumb { width: 44px; padding: 0; }
.qtbl .q-blank { display: block; width: 44px; height: 44px; border-radius: var(--r-s); background: var(--tile); }
.qtbl .q-thumb img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-s); background: var(--tile); }
.qtbl .q-thumb a { display: block; }
/* 라이브 순번의 닉네임: 글자 아래쪽 절반에만 연한 형광펜 띠를 깐다 (색 번짐 없이 한 가지 색) */
#live .nick .hl { padding: 0 4px; margin: 0 -4px; background: linear-gradient(transparent 55%, var(--tint-stud-shade) 55%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── 떠 있는 바로가기 ─────────────────── */
/* 상자 없이 아이콘만. 넓은 화면은 오른쪽 가운데에 세로로 */
.fab { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 16px; }
.fab a { display: block; }
.fab img { width: 30px; height: 30px; }
/* 화면 옆 여백이 모자라면 카카오톡 하나만 오른쪽 아래에 */
@media (max-width: 1339px) {
  .fab { right: 16px; top: auto; bottom: 16px; transform: none; }
  .fab .fab-sns { display: none; }
  .fab img { width: 44px; height: 44px; }
}

/* ── 푸터 ─────────────────────────────── */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 13px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line-dark); }
.foot-cs b { display: block; font-size: 13px; }
.foot-cs strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 4px; }
.foot-links { display: flex; gap: 22px; font-weight: 700; font-size: 14px; }
.foot-info { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--sub); }
.foot-copy { margin-top: 14px; color: var(--sub); }
.foot-credit { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12px; color: var(--sub); }
.foot-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1000px) {
  /* minmax(0, 1fr): 1fr 만 쓰면 한 줄로 두는 긴 상품 이름(라이브 순번 칸)이 칸을 밀어 화면이 옆으로 넓어진다 */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .qbox { height: auto; }
  .qbox-list { max-height: 180px; }
  .grid, .grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .two { grid-template-columns: 1fr; }
  .side { position: static; }
  .gnb .wrap { overflow-x: auto; }
  .head { gap: 16px; height: 92px; }
  .stick { --shrink: 20px; }
  .logo { height: 64px; }
}
@media (max-width: 640px) {
  .bx-summary { grid-template-columns: 1fr; }
  .bx-info { padding: 2px 16px; }
  .bx-info.is-pay { border-left: 0; border-top: 1px solid var(--line); }
  .bx-info.is-pay dt { width: 104px; }
  .bx-info .is-total dt, .bx-info .is-total dd { font-size: 15px; }
  .bx-info dt { width: 84px; font-size: 13px; }
  .bx-info dd { font-size: 14px; }
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-note { left: 12px; bottom: 12px; font-size: 12px; }
  .lost { padding: 64px 0 96px; }
  .lost-no { font-size: 100px; --tear: 5px; --worn-size: 260px; }
  .lost-eyebrow { font-size: 12px; }
  .lost h1 { margin-top: 22px; font-size: 23px; }
  .lost-btns { margin-top: 30px; }
  .lost-btns .btn { flex: 1; min-width: 0; padding: 0 10px; }
  .wrap { padding: 0 16px; }
  /* 좁은 화면에서도 맨 위 줄(왼쪽 SNS, 오른쪽 로그인과 주문조회)을 보여 준다. 숨기면 휴대폰에서 로그인할 길이 없다 */
  .util .wrap { height: 34px; gap: 12px; }
  .sns-links { gap: 14px; flex: none; }
  .util-links { gap: 14px; min-width: 0; white-space: nowrap; }
  .util-links > a:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 10px; margin: 20px 0 40px; }
  .cat-tile p { margin-top: 10px; font-size: 14px; }
  /* 좁은 화면: 한 줄에 돋보기, 로고, 방송 상태와 장바구니 */
  .head { height: 64px; gap: 8px; }
  .head-left { gap: 4px; }
  .head-act { gap: 10px; }
  .logo { height: 40px; }
  .logo-slot { font-size: 18px; }
  .search-layer .wrap { gap: 4px; }
  .search-big { height: 48px; }
  .search-big label { left: 12px; top: 6px; font-size: 10px; }
  .search-big input { padding: 16px 46px 2px 12px; font-size: 16px; }
  .search-big button { width: 44px; }
  .search-big button svg { width: 21px; height: 21px; }
  .search-close { width: 38px; margin-right: -8px; }
  .gnb .wrap, .gnb ul { gap: 20px; }
  .gnb .gnb-sub { padding-left: 20px; }
  .gnb a { height: 46px; line-height: 46px; font-size: 15px; }
  .hero { margin-top: 16px; }
  /* 홈의 라이브 순번 칸: 좁은 화면에서는 다음 순서를 두 줄짜리 줄(닉네임, 그 아래에 상품 이름)로 바꾼다.
     한 줄에 나란히 두면 긴 닉네임 하나 때문에 다른 줄의 닉네임과 상품 이름 사이가 벌어지고 상품 이름 자리가 모자란다.
     줄이 높아진 만큼 세 명까지만 보여 준다 (나머지는 전체 순번 보기) */
  .qbox { padding: 18px 16px 14px; }
  .qbox-cur { padding: 12px 14px; }
  .qbox-list { display: block; max-height: none; margin-top: 2px; }
  .qbox-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "no nick" "no item"; column-gap: 10px; align-items: center; padding: 7px 0; font-size: 15px; }
  .qbox-list li:nth-child(n+4) { display: none; }
  .qbox-list .no { grid-area: no; }
  .qbox-list .nick { grid-area: nick; max-width: none; line-height: 1.35; }
  .qbox-list .item { grid-area: item; line-height: 1.4; }
  .qbox-foot { margin-top: 6px; }
  .slider { height: 300px; }
  .slide { padding: 30px 24px; }
  .slide-title { font-size: 28px; max-width: 100%; }
  .slide-sub { font-size: 15px; max-width: 100%; }
  .slide-accent { font-size: 62px; right: 20px; bottom: 16px; }
  .slider-nav { left: 24px; bottom: 22px; }
  .sec, .strip, .boards { margin-top: 64px; }
  .sec-title { font-size: 23px; }
  .grid, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
  .card .thumb { border-radius: 16px; }
  .tags { left: 8px; top: 8px; max-width: calc(100% - 16px); }
  .tags.is-right { right: 8px; max-width: calc(100% - 50px); }
  .stock { left: 8px; bottom: 8px; }
  .restock { gap: 5px; padding: 0 4px; font-size: 15px; }
  .period { gap: 10px; }
  .period-quick { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .period-quick a { min-width: 0; }
  .period-range { width: 100%; gap: 6px; }
  .period-range .input { flex: 1; width: 0; min-width: 0; padding: 0 6px; }
  .period-range .btn { flex: none; padding: 0 16px; }
  /* 주문내역: 표를 풀어서 주문 한 건을 세 줄로 (주문일과 상태 / 상품 / 주문번호와 금액) */
  .orders, .orders tbody { display: block; }
  .orders thead { display: none; }
  .orders tbody { border-top: 1px solid var(--line); }
  .orders tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date state" "item item" "no total"; align-items: center; gap: 10px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .orders td { padding: 0; border: 0; }
  .orders .o-date { grid-area: date; font-weight: 700; }
  .orders .o-state { grid-area: state; text-align: right; font-size: 14px; font-weight: 700; }
  .orders .o-item { grid-area: item; }
  .orders .o-no { grid-area: no; font-size: 14px; }
  .orders .o-total { grid-area: total; }
  .orders td.empty { grid-column: 1 / -1; padding: 60px 0; }
  .drop { padding: 18px 8px 16px; }
  .drop-head { font-size: 15px; }
  .drop-clock { gap: 5px; }
  .drop-digits { gap: 3px; }
  .drop-digits i { width: 32px; height: 46px; line-height: 46px; font-size: 25px; }
  .drop-sep { height: 46px; line-height: 43px; font-size: 22px; }
  .drop-unit small { font-size: 10px; letter-spacing: 0.1em; }
  .restock svg { width: 18px; height: 18px; }
  .strip { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 22px; height: 96px; }
  .strip-title { font-size: 18px; }
  .boards { grid-template-columns: 1fr; gap: 40px; }
  .page { padding: 24px 0 64px; }
  .page-title { font-size: 24px; }
  .done-head h1 { font-size: 23px; }
  .done-head .done-lead { font-size: 16px; }
  .listbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pd-name { font-size: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .btn-trio { grid-template-columns: 1fr; }
  .my-sum { padding: 14px 16px; }
  .my-sum dd { font-size: 26px; }
  .my-sum-stats { gap: 28px; }
  /* 좁은 화면: 탭 다섯 개가 화면 너비를 똑같이 나눠 쓴다 (쿠폰함이 생겨 글자를 조금 줄임) */
  .my-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 20px; }
  .my-tabs a { height: 46px; font-size: 14px; letter-spacing: -0.03em; }
  .my-tabs .my-sum-count { margin-left: 2px; }
  .cp-list { grid-template-columns: 1fr; gap: 12px; }
  .cp { --stub: 86px; min-height: 112px; }
  .cp-main { padding: 14px 18px; }
  .cp-title { font-size: 23px; }
  .cpk-list { grid-template-columns: 1fr; }
  .cpk-main { padding: 12px 16px; }
  .cpk-stub { width: 88px; }
  .ev-tabs, .inq-tabs { grid-template-columns: repeat(2, 1fr); }
  .faq-cats button { height: 36px; padding: 0 13px; font-size: 13px; }
  .faq-list { margin-top: 18px; }
  .faq-item summary { min-height: 58px; padding: 14px 8px; gap: 12px; }
  .faq-q { font-size: 15px; }
  .faq-a { padding: 0 8px 22px; font-size: 14px; }
  .tbl .hide-m { display: none; }
  .ev-grid { grid-template-columns: 1fr; }
  /* 라이브 순번 위쪽 판: 지금 순서 아래에 대기, 오늘 완료를 왼쪽 정렬로. 닉네임이나 상품 이름이 길면 줄을 바꾼다 */
  .lq { grid-template-columns: 1fr; gap: 18px; padding: 18px 8px 20px; }
  .lq-row { gap: 14px; min-height: 60px; }
  .lq-no { font-size: 46px; }
  .lq-thumb { width: 52px; height: 52px; border-radius: var(--r-s); }
  .lq-nick { font-size: 19px; }
  .lq-item { font-size: 14px; }
  .lq-nick, .lq-item { overflow-wrap: anywhere; }
  .lq-stats { gap: 40px; text-align: left; }
  .lq-stats dd { justify-content: flex-start; min-height: 0; margin-top: 8px; }
  .lq-stats dd b { font-size: 30px; }
  /* 순번 표: 칸 너비를 고정한다. 내용 길이대로 두면 긴 닉네임 하나가 이미지와 상품 칸을 밀어내 상품 이름이 한 단어씩 세로로 쌓인다.
     닉네임과 상품 이름은 자르지 않고 칸 안에서 줄을 바꿔 전부 보여 준다 (본인 순번을 찾는 화면이라 말줄임표로 가리지 않는다) */
  .qtbl { table-layout: fixed; }
  .qtbl .c-no { width: 44px; }
  .qtbl .c-nick { width: 31%; }
  .qtbl .c-thumb { width: 38px; }
  .qtbl .c-kind { width: 76px; }
  .qtbl col.hide-m { display: none; }
  .qtbl th, .qtbl td { padding-left: 8px; padding-right: 8px; }
  /* 줄은 단어 단위로 바꾼다 (2026-11-18: break-all 이면 '뽑 기', 'OP-1 3' 처럼 글자 중간에서 끊겼다). 칸보다 긴 한 단어만 칸 안에서 끊는다 */
  .qtbl td { padding-top: 8px; padding-bottom: 8px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; word-break: keep-all; }
  .qtbl .no { width: auto; padding-right: 0; font-size: 17px; }
  .qtbl .nick { width: auto; font-size: 15px; }
  .qtbl .q-thumb { padding: 8px 0; }
  .qtbl .q-thumb, .qtbl .q-thumb img, .qtbl .q-blank { width: 38px; }
  .qtbl .q-thumb img, .qtbl .q-blank { height: 38px; }
  .qtbl .hide-m { display: none; }
  .foot-top { flex-direction: column; gap: 20px; }
  /* 링크가 한 줄에 안 들어가면 다음 줄로 넘긴다. 넘기지 않으면 360px 화면에서 마지막 링크가 밖으로 나가 화면 전체가 옆으로 넓어진다 */
  .foot-links { flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 380px) {
  /* 아주 좁은 화면: 로고를 조금 줄여 방송 상태 칸과 겹치지 않게 한다 */
  .logo { height: 34px; }
}
