/* 쏙딜 쇼핑몰 — 모바일 우선. PC(1200px+)에서는 가운데 모바일 화면 + 좌측 배너 + 우측 추천상품. */
:root {
  --brand: #ff4b2b;
  --brand-dark: #e5391a;
  --brand-soft: #fff1ed;
  --accent: #ffb800;
  --ink: #1a1a1a;
  --ink-2: #444;
  --muted: #8a8a8a;
  --line: #eeeeee;
  --bg: #f4f4f6;
  --sale: #ff2d2d;
  --green: #12b886;
  --blue: #2f6bff;
  --app-w: 480px;
  --header-h: 56px;
  --tab-h: 62px;
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/* 앱 틀                                                               */
/* ------------------------------------------------------------------ */
.app {
  position: relative; max-width: var(--app-w); min-height: 100vh; margin: 0 auto; background: #fff;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
@media (min-width: 481px) { .app { box-shadow: 0 0 0 1px #e8e8ea, 0 10px 40px rgba(0,0,0,.06); } }

/* 상단 띠 공지 */
.notice-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px; position: relative;
  height: 40px; padding: 0 36px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.notice-bar b { color: var(--accent); }
.notice-bar .x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; color: #bbb; font-size: 18px; }
.notice-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 헤더 */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h); background: #fff;
  display: grid; grid-template-columns: 48px 1fr 96px; align-items: center; padding: 0 6px;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .logo { justify-self: center; display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 21px; letter-spacing: -0.05em; }
.header .logo .mark {
  width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
.header .logo em { font-style: normal; color: var(--brand); }
.header .back-title { justify-self: center; font-size: 17px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; position: relative; border-radius: 50%; }
.icon-btn:active { background: #f2f2f2; }
.icon-btn svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header .right { display: flex; justify-content: flex-end; }
.badge-count {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}

/* 메인 탭 메뉴 */
.gnb {
  position: sticky; top: var(--header-h); z-index: 39; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 8px;
}
.gnb::-webkit-scrollbar { display: none; }
.gnb a { flex: none; padding: 11px 10px 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.gnb a.on { color: var(--ink); font-weight: 800; border-bottom-color: var(--ink); }
.gnb a .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); vertical-align: top; margin-left: 2px; }
.gnb a.hot { color: var(--brand); }

/* 하단 탭바 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 50;
  width: 100%; max-width: var(--app-w); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: #777; position: relative; }
.tabbar a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--ink); font-weight: 700; }
.tabbar a.on svg { stroke-width: 2.2; }
.tabbar .badge-count { top: 6px; right: calc(50% - 22px); }

/* 맨 위로 */
.to-top {
  position: fixed; z-index: 45; bottom: calc(var(--tab-h) + 16px + var(--safe-b)); right: max(14px, calc(50% - var(--app-w) / 2 + 14px));
  width: 44px; height: 44px; border-radius: 50%; background: rgba(26,26,26,.85); color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; }

/* ------------------------------------------------------------------ */
/* PC 좌우 패널                                                         */
/* ------------------------------------------------------------------ */
.pc-left, .pc-right { display: none; }
@media (min-width: 1200px) {
  body { background: #f4f4f6; }
  .pc-left, .pc-right { display: block; position: fixed; top: 0; bottom: 0; width: 330px; z-index: 10; }
  .pc-left { right: calc(50% + var(--app-w) / 2 + 48px); }
  .pc-right { left: calc(50% + var(--app-w) / 2 + 48px); }
}
.pc-left .inner { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 40px 0; }
.pc-left .brand { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 900; letter-spacing: -0.05em; }
.pc-left .brand .mark { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; }
.pc-left .brand em { font-style: normal; color: var(--brand); }
.pc-left .sub { font-size: 16px; color: var(--ink-2); font-weight: 600; }
.pc-left h2 { font-size: 34px; line-height: 1.25; font-weight: 900; letter-spacing: -0.05em; }
.pc-left .txt { font-size: 15px; color: var(--ink-2); white-space: pre-line; line-height: 1.6; }
.pc-left .side-banners { display: flex; flex-direction: column; gap: 12px; }
.pc-left .side-banners img { width: 100%; border-radius: 16px; }
.pc-left .search { display: flex; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 30px; height: 52px; padding: 0 8px 0 20px; }
.pc-left .search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; }
.pc-left .search button svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; }
.pc-left .quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-left .quick a { padding: 8px 14px; border-radius: 20px; background: #fff; border: 1px solid #e3e3e3; font-size: 14px; font-weight: 600; }
.pc-left .quick a:hover { border-color: var(--ink); }
.pc-left .promo-card {
  border-radius: 20px; padding: 26px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ff4b2b 0%, #ff7a3d 100%);
}
.pc-left .promo-card .big { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.pc-left .promo-card .lbl { font-size: 15px; font-weight: 700; opacity: .95; margin-bottom: 8px; }
.pc-left .promo-card .em { position: absolute; right: 16px; bottom: 10px; font-size: 64px; opacity: .9; }

.pc-right .inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.pc-right .panel {
  background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.06); display: flex; flex-direction: column;
  max-height: calc(100vh - 80px); overflow: hidden;
}
.pc-right .panel h3 { font-size: 18px; font-weight: 800; padding: 22px 20px 14px; }
.pc-right .panel .list { overflow-y: auto; padding: 0 12px 16px 20px; scrollbar-width: thin; }
.pc-right .rec-item { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 8px 0; align-items: center; }
.pc-right .rec-item .thumb { width: 100px; height: 100px; border-radius: 10px; }
.pc-right .rec-item .name { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-right .rec-item:hover .name { text-decoration: underline; }
.pc-right .recent { margin-top: 14px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.pc-right .recent h4 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.pc-right .recent .row { display: flex; gap: 8px; overflow-x: auto; }
.pc-right .recent .row a .thumb { width: 58px; height: 58px; border-radius: 8px; }

/* ------------------------------------------------------------------ */
/* 상품 썸네일                                                          */
/* ------------------------------------------------------------------ */
.thumb { position: relative; overflow: hidden; background: #f6f6f6; aspect-ratio: 1 / 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; }
.thumb.sm .emo { font-size: 26px; }
.thumb.lg .emo { font-size: 120px; }
.thumb .soldout {
  position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
}

/* ------------------------------------------------------------------ */
/* 섹션 · 상품 카드                                                      */
/* ------------------------------------------------------------------ */
.section { padding: 26px 0 8px; }
.section + .section { border-top: 8px solid #f6f6f6; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px 14px; gap: 10px; }
.sec-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.04em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sec-head h2 .red { color: var(--brand); }
.sec-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.sec-head .more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.countdown-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0;
}

.grid { display: grid; gap: 22px 10px; padding: 0 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; width: 38%; scroll-snap-align: start; }

.card { position: relative; display: block; min-width: 0; }
.card .thumb { border-radius: 10px; }
.card .cart-btn {
  position: absolute; right: 7px; bottom: 7px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.card .cart-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.card .tag-time {
  position: absolute; left: 6px; top: 6px; padding: 3px 6px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
}
.card .tag-rank {
  position: absolute; left: 0; top: 0; width: 26px; height: 28px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; border-bottom-right-radius: 8px;
}
.card .tag-rank.top { background: var(--brand); }
.card .info { padding-top: 8px; }
.card .name {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: keep-all; overflow-wrap: anywhere;
}
.c3 .card .name { font-size: 12.5px; }
.card .orig { font-size: 12px; color: #aaa; text-decoration: line-through; margin-top: 4px; }
.price-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.price-line .rate { color: var(--sale); font-weight: 800; font-size: 16px; }
.price-line .won { font-weight: 800; font-size: 16px; }
.c3 .price-line .rate, .c3 .price-line .won { font-size: 14px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #f2f2f2; color: #555; }
.chip.free { background: #e8f7f1; color: #0b8a63; }
.chip.gb { background: #eef3ff; color: var(--blue); }
.chip.hot { background: var(--brand-soft); color: var(--brand); }
.stars { font-size: 12px; color: var(--muted); }
.stars b { color: #ffb400; }

/* 공동구매 카드 */
.gb-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 0 16px; align-items: center; }
.gb-card .thumb { border-radius: 10px; }
.gb-list { display: flex; flex-direction: column; gap: 16px; }
.progress { height: 7px; border-radius: 4px; background: #eef0f5; overflow: hidden; margin: 8px 0 5px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #6f9bff); border-radius: 4px; }
.gb-stat { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.gb-stat b { color: var(--blue); }

/* 히어로 슬라이더 */
.hero { position: relative; overflow: hidden; }
.hero .track { display: flex; transition: transform .45s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.hero .slide { flex: none; width: 100%; aspect-ratio: 1 / 0.82; position: relative; display: block; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide.text { padding: 34px 26px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.hero .slide.text .k { font-size: 15px; font-weight: 700; opacity: .9; }
.hero .slide.text h3 { font-size: 30px; line-height: 1.22; font-weight: 900; margin: 6px 0 10px; letter-spacing: -0.05em; white-space: pre-line; }
.hero .slide.text .p { display: inline-flex; align-self: flex-start; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 22px; font-weight: 800; font-size: 14px; }
.hero .slide.text .big-emo { position: absolute; right: 18px; top: 24px; font-size: 110px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.18)); }
.hero .pager { position: absolute; right: 14px; bottom: 14px; padding: 4px 11px; border-radius: 14px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* 카테고리 아이콘 */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 4px; padding: 20px 12px 6px; }
.cat-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); text-align: center; }
.cat-grid .ic { width: 52px; height: 52px; border-radius: 18px; background: #f5f5f7; display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.cat-grid .ic img { width: 100%; height: 100%; object-fit: cover; }

/* 띠 배너 */
.strip { display: block; margin: 0 16px; border-radius: 12px; overflow: hidden; }
.strip.text { padding: 18px 20px; background: linear-gradient(90deg, #191919, #3a3a3a); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.strip.text b { color: var(--accent); }

.more-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px; margin: 22px 16px 8px; height: 48px; border-radius: 26px;
  border: 1px solid #dcdcdc; font-size: 14px; font-weight: 600; color: var(--ink-2); width: calc(100% - 32px);
}
.more-btn:active { background: #f7f7f7; }

/* 목록 페이지 */
.list-head { padding: 16px 16px 10px; }
.list-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.list-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button, .chips a { flex: none; padding: 7px 13px; border-radius: 18px; border: 1px solid #e2e2e2; font-size: 13px; color: var(--ink-2); background: #fff; }
.chips .on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 12px; font-size: 13px; color: var(--muted); }
.toolbar select { border: 0; background: transparent; font-weight: 600; color: var(--ink); outline: 0; }

.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty .e { font-size: 48px; margin-bottom: 10px; }
.empty .btn { margin-top: 18px; }
.loading { padding: 50px 0; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid #eee; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f2f2f2 25%, #e9e9e9 37%, #f2f2f2 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------------------------------------------ */
/* 버튼 · 폼                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 20px; border-radius: 10px;
  font-size: 16px; font-weight: 700; background: var(--ink); color: #fff; transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn.brand { background: var(--brand); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid #d5d5d5; }
.btn.light { background: #f3f3f5; color: var(--ink); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.form { padding: 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--brand); }
.input, .select, .textarea {
  width: 100%; height: 48px; border: 1px solid #dcdcdc; border-radius: 10px; padding: 0 14px; font-size: 15px; background: #fff; outline: 0;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.err { font-size: 13px; color: var(--sale); margin-top: 6px; }

.box { margin: 0 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.box h3 small { font-size: 12px; font-weight: 500; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 16px; font-weight: 800; color: var(--ink); }
.sum-row.total b { color: var(--brand); font-size: 20px; }
.pay-opt { display: flex; gap: 8px; }
.pay-opt label { flex: 1; height: 50px; border: 1px solid #dcdcdc; border-radius: 10px; display: grid; place-items: center; font-weight: 700; cursor: pointer; }
.pay-opt input { display: none; }
.pay-opt input:checked + span { color: var(--brand); }
.pay-opt label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt label.disabled { opacity: .4; cursor: not-allowed; }

/* 하단 고정 버튼 바 */
.bottom-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 60; width: 100%; max-width: var(--app-w);
  background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + var(--safe-b)); display: flex; gap: 8px; align-items: center;
}
.bottom-bar .btn { flex: 1; height: 52px; }
.bottom-bar .wish { width: 52px; height: 52px; border: 1px solid #ddd; border-radius: 10px; display: grid; place-items: center; flex: none; }
.bottom-bar .wish svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.bottom-bar .wish.on svg { fill: var(--brand); stroke: var(--brand); }
body.has-bottom-bar .tabbar, body.has-bottom-bar .to-top { display: none; }
body.has-bottom-bar .app { padding-bottom: calc(80px + var(--safe-b)); }
body.has-bottom-bar .toast { bottom: calc(90px + var(--safe-b)); }

/* ------------------------------------------------------------------ */
/* 상품 상세                                                            */
/* ------------------------------------------------------------------ */
.pd-gallery { position: relative; }
.pd-gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-gallery .track::-webkit-scrollbar { display: none; }
.pd-gallery .track > * { flex: none; width: 100%; scroll-snap-align: start; }
.pd-gallery .pager { position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; }
.pd-info { padding: 18px 16px 20px; }
.pd-info .cat { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pd-info h1 { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; word-break: keep-all; }
.pd-info .summary { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pd-info .rating { margin-top: 8px; font-size: 13px; color: var(--muted); }
.pd-price { margin-top: 14px; }
.pd-price .orig { font-size: 14px; color: #aaa; text-decoration: line-through; }
.pd-price .price-line .rate, .pd-price .price-line .won { font-size: 26px; }
.pd-price .price-line .won small { font-size: 18px; font-weight: 700; }
.deal-box {
  margin: 14px 0 0; border-radius: 12px; padding: 14px 16px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center;
}
.deal-box .t { font-weight: 800; }
.deal-box .cd { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--accent); }
.gb-box { margin-top: 14px; border-radius: 12px; padding: 14px 16px; background: #f3f6ff; }
.gb-box .top { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.gb-box .top b { color: var(--blue); }
.info-rows { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.info-rows .r { display: grid; grid-template-columns: 70px 1fr; padding: 5px 0; font-size: 13px; }
.info-rows .r span:first-child { color: var(--muted); }
.tabs { position: sticky; top: var(--header-h); z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-bottom: 1px solid var(--line); border-top: 8px solid #f6f6f6; }
.tabs a { text-align: center; padding: 13px 0; font-size: 15px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 800; }
.pd-detail { padding: 0; min-height: 200px; overflow: hidden; }
.pd-detail img { width: 100%; height: auto; }
.pd-detail p { line-height: 1.7; }
.pd-section { padding: 24px 16px; border-top: 8px solid #f6f6f6; }
.pd-section h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.policy { white-space: pre-line; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.review .st { color: #ffb400; letter-spacing: 1px; font-size: 13px; }
.review .body { margin-top: 6px; font-size: 14px; white-space: pre-line; word-break: break-word; }
.review .imgs { display: flex; gap: 6px; margin-top: 8px; }
.review .imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.review-sum { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: #f8f8fa; margin-bottom: 6px; }
.review-sum .big { font-size: 30px; font-weight: 900; }
.review-sum .st { color: #ffb400; font-size: 18px; letter-spacing: 2px; }

/* 바텀시트 */
.sheet-dim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.sheet-dim.show { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 91; width: 100%; max-width: var(--app-w); max-height: 85vh; overflow-y: auto;
  background: #fff; border-radius: 18px 18px 0 0; transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
  padding: 8px 16px calc(16px + var(--safe-b));
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: #ddd; margin: 4px auto 14px; }
.sheet h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.opt-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; margin-bottom: 12px; }
.opt-list button { text-align: left; padding: 13px 14px; border: 1px solid #e2e2e2; border-radius: 10px; display: flex; justify-content: space-between; font-size: 14px; }
.opt-list button.on { border-color: var(--ink); font-weight: 700; }
.opt-list button[disabled] { color: #bbb; }
.picked { background: #f7f7f9; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.picked .nm { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.picked .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; font-size: 18px; }
.qty input { width: 42px; text-align: center; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee; outline: 0; font-weight: 700; }
.sheet .total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 2px; font-weight: 700; }
.sheet .total b { font-size: 22px; color: var(--brand); }
.sheet .acts { display: flex; gap: 8px; }
.sheet .acts .btn { flex: 1; }

/* 드로어(카테고리 메뉴) */
.drawer { position: fixed; top: 0; bottom: 0; z-index: 92; width: 86%; max-width: 360px; background: #fff; overflow-y: auto; transform: translateX(-105%); transition: transform .28s; }
.drawer.show { transform: translateX(0); }
@media (min-width: 481px) { .drawer { left: calc(50% - var(--app-w) / 2); } }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer .dh b { font-size: 17px; }
.drawer .who { padding: 18px 16px; background: #f8f8fa; }
.drawer .who a { font-weight: 800; }
.drawer .menu a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid #f4f4f4; }
.drawer .menu a .i { width: 28px; font-size: 20px; text-align: center; }
.drawer .grp { padding: 16px 18px 6px; font-size: 12px; color: var(--muted); font-weight: 700; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 24px + var(--safe-b)); z-index: 200; transform: translate(-50%, 20px);
  background: rgba(26,26,26,.94); color: #fff; padding: 12px 18px; border-radius: 24px; font-size: 14px; opacity: 0; transition: all .25s;
  max-width: calc(min(100%, var(--app-w)) - 40px); text-align: center; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--accent); font-weight: 700; margin-left: 8px; pointer-events: auto; }

/* 장바구니 */
.cart-all { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 24px 84px 1fr; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); position: relative; }
.cart-item .thumb { border-radius: 8px; }
.cart-item .nm { font-size: 14px; padding-right: 26px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .op { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-item .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cart-item .pr { font-weight: 800; font-size: 15px; }
.cart-item .del { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; color: #aaa; font-size: 18px; }
.cart-item .warn { color: var(--sale); font-size: 12px; margin-top: 4px; font-weight: 600; }
.free-hint { margin: 12px 16px; padding: 12px 14px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; font-size: 13px; font-weight: 600; }
.free-hint .progress i { background: var(--brand); }

/* 주문/마이 */
.order-card { margin: 0 16px 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.order-card .oh { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #fafafa; font-size: 13px; }
.order-card .oh b { font-size: 14px; }
.order-card .oi { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 14px; }
.order-card .oi .thumb { border-radius: 8px; }
.order-card .oi .nm { font-size: 14px; }
.order-card .oi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-card .of { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); gap: 6px; }
.status { font-weight: 800; }
.status.pending { color: #f08c00; }
.status.paid, .status.preparing { color: var(--blue); }
.status.shipped { color: var(--green); }
.status.delivered { color: var(--ink); }
.status.cancelled, .status.refunded { color: #aaa; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px 10px; text-align: center; }
.steps div { font-size: 12px; color: #bbb; position: relative; }
.steps div b { display: block; font-size: 20px; color: #ccc; margin-bottom: 2px; }
.steps div.on, .steps div.on b { color: var(--ink); }
.steps div.cur b { color: var(--brand); }

.my-top { padding: 22px 16px 18px; display: flex; align-items: center; gap: 14px; }
.my-top .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 800; }
.my-top .nm { font-size: 19px; font-weight: 800; }
.my-top .em { font-size: 13px; color: var(--muted); }
.my-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 16px; border-radius: 12px; background: #f7f7f9; padding: 16px 0; text-align: center; }
.my-stats a b { display: block; font-size: 20px; font-weight: 800; }
.my-stats a span { font-size: 12px; color: var(--muted); }
.menu-list { margin-top: 14px; }
.menu-list a, .menu-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px; font-size: 15px; border-bottom: 1px solid #f3f3f3; text-align: left; }
.menu-list a::after, .menu-list button::after { content: '›'; color: #bbb; font-size: 20px; }
.menu-list .grp { padding: 18px 16px 6px; font-size: 12px; color: var(--muted); font-weight: 700; border: 0; }
.menu-list .grp::after { content: none; }

.auth-wrap { padding: 30px 20px; }
.auth-wrap h1 { font-size: 24px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.04em; }
.auth-wrap .sub { color: var(--muted); margin-bottom: 26px; }
.auth-wrap .alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-wrap .alt a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 1px solid #dcdcdc; border-radius: 10px; font-weight: 700; background: #fff; margin-top: 10px; }
.divider { display: flex; align-items: center; gap: 10px; color: #bbb; font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #eee; }

.done-hero { text-align: center; padding: 36px 20px 20px; }
.done-hero .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 32px; margin: 0 auto 14px; }
.done-hero h1 { font-size: 22px; font-weight: 900; }
.done-hero p { color: var(--muted); margin-top: 6px; }
.bank-box { margin: 0 16px 12px; padding: 18px; border-radius: 12px; background: #fff8e6; border: 1px solid #ffe3a3; }
.bank-box .acc { font-size: 18px; font-weight: 800; margin: 6px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bank-box .amt { color: var(--brand); font-weight: 900; font-size: 22px; }

/* 검색 */
.search-top { display: flex; gap: 8px; padding: 10px 16px; align-items: center; }
.search-top .input { height: 46px; border-radius: 24px; background: #f4f4f6; border-color: transparent; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.kw-list a { padding: 8px 13px; border-radius: 18px; background: #f4f4f6; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.kw-list a .x { color: #aaa; }
.sub-title { padding: 18px 16px 10px; font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; }
.sub-title button { font-size: 12px; color: var(--muted); font-weight: 400; }
.rank-list a { display: flex; gap: 12px; padding: 9px 16px; font-size: 14px; }
.rank-list a b { width: 18px; color: var(--brand); }

/* 카테고리 전체 */
.cat-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #f3f3f3; font-size: 15px; font-weight: 600; }
.cat-list a .ic { width: 44px; height: 44px; border-radius: 14px; background: #f5f5f7; display: grid; place-items: center; font-size: 22px; }
.cat-list a::after { content: '›'; margin-left: auto; color: #bbb; font-size: 20px; }

/* 공지 · 정책 */
.doc { padding: 18px 16px 30px; }
.doc h1 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.doc .date { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.doc .body { white-space: pre-line; line-height: 1.75; font-size: 14px; color: var(--ink-2); }
.doc h2 { font-size: 15px; margin: 20px 0 6px; }
.notice-list a { display: block; padding: 15px 16px; border-bottom: 1px solid #f3f3f3; }
.notice-list a .t { font-size: 15px; }
.notice-list a .d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.inq { padding: 14px 16px; border-bottom: 1px solid #f3f3f3; }
.inq .t { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.inq .b { margin-top: 6px; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.inq .a { margin-top: 10px; padding: 12px; border-radius: 10px; background: #f6f7f9; font-size: 14px; white-space: pre-line; }
.inq .a::before { content: '답변 '; font-weight: 800; color: var(--brand); }

/* 푸터 */
.footer { background: #f7f7f8; padding: 26px 16px 30px; margin-top: 30px; font-size: 12px; color: #888; line-height: 1.75; }
.footer .cs { margin-bottom: 14px; }
.footer .cs b { display: block; font-size: 18px; color: var(--ink); font-weight: 800; }
.footer .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; color: var(--ink-2); font-weight: 600; }
.footer .biz span { margin-right: 6px; }
.footer .copy { margin-top: 12px; color: #aaa; }

/* 안내 문구 */
.alert { margin: 0 16px 12px; padding: 12px 14px; border-radius: 10px; background: #f3f6ff; color: #2846a8; font-size: 13px; line-height: 1.55; }
.alert.warn { background: #fff4e5; color: #a35a00; }

@media (max-width: 360px) {
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero .slide.text h3 { font-size: 26px; }
}

/* 상품정보 제공고시 · FAQ */
.pd-extra{padding:16px;border-top:8px solid #f4f4f4}
.pd-extra h3{font-size:16px;margin:0 0 10px}
.pd-extra details{border-bottom:1px solid #eee;padding:10px 0}
.pd-extra summary{cursor:pointer;font-weight:600}
.pd-extra details p{margin:8px 0 0;color:#555;line-height:1.6}
.pd-notice{width:100%;border-collapse:collapse;font-size:13px}
.pd-notice th,.pd-notice td{border:1px solid #eee;padding:8px;text-align:left;vertical-align:top}
.pd-notice th{width:34%;background:#fafafa;color:#555;font-weight:500}
.pd-detail table{width:100%;border-collapse:collapse;margin:8px 0}
.pd-detail table th,.pd-detail table td{border:1px solid #eee;padding:8px;font-size:13px;text-align:left}
.pd-detail table th{background:#fafafa;width:34%}

/* 스크립트 없이 읽는 상품 정보 (에이전트 · 크롤러용, 쇼핑몰 화면이 뜨면 바뀜) */
.seo-doc{padding:16px;font-size:14px;line-height:1.7}
.seo-doc img{max-width:100%;height:auto}
.seo-doc table{border-collapse:collapse}
.seo-doc th,.seo-doc td{border:1px solid #eee;padding:4px 8px;text-align:left}
