/* ===== 청담식품2 — 모바일 컬럼형 · 따뜻한 톤 ===== */
:root {
  --col: 480px;
  --bg-page: #EFE5D3;
  --bg: #FFFBF4;
  --card: #FFFFFF;
  --tint: #F7EFE1;
  --kraft: #5B3E26;
  --ink: #2A2420;
  --ink-2: #5E554D;
  --ink-3: #9A9087;
  --line: #EDE3D3;
  --olive: #5F7A3A;
  --olive-dark: #4A6029;
  --olive-soft: #EEF2E3;
  --red: #E4572E;
  --straw: #F2C14E;
  --kakao: #FEE500;
  --hd-h: 104px;
  --tab-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
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.02em;
  color: var(--ink); background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ===== 컬럼 ===== */
.app {
  position: relative; width: 100%; max-width: var(--col); min-height: 100vh; margin: 0 auto;
  background: var(--bg); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  box-shadow: 0 0 40px rgba(91, 62, 38, .10);
}

/* ===== PC 좌측 소개 / 우측 퀵 패널 ===== */
.side-intro, .side-quick { display: none; }
@media (min-width: 1200px) {
  .side-intro {
    display: block; position: fixed; top: 50%; transform: translateY(-50%);
    right: calc(50% + var(--col) / 2 + 56px); width: 310px; color: var(--kraft);
  }
  .side-intro__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
  .side-intro__logo b { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; }
  .side-intro h1 { font-size: 35px; line-height: 1.28; font-weight: 800; letter-spacing: -0.05em; }
  .side-intro h1 em { font-style: normal; color: var(--olive); }
  .side-intro > p { margin-top: 16px; color: #7A6450; font-size: 15.5px; }
  .side-intro__points { margin-top: 26px; display: grid; gap: 10px; }
  .side-intro__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
  .side-intro__points span { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.6); display: grid; place-items: center; font-size: 18px; }
  .side-intro__search { margin-top: 32px; }
  .side-intro__search p { font-weight: 700; margin-bottom: 10px; }
  .side-intro .kw a { background: rgba(255,255,255,.65); border-color: transparent; }

  .side-quick {
    display: flex; flex-direction: column; gap: 10px; position: fixed; top: 50%; transform: translateY(-50%);
    left: calc(50% + var(--col) / 2 + 56px); width: 290px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: none;
  }
  .side-quick::-webkit-scrollbar { display: none; }
}
@media (min-width: 1200px) and (max-height: 820px) {
  .side-quick .q-card--cs { display: none; }
}
.q-card { background: rgba(255, 251, 244, .9); border-radius: 18px; padding: 16px; box-shadow: 0 4px 18px rgba(91,62,38,.07); }
.q-card--coupon { background: linear-gradient(135deg, #FCE9B8, #F7D7A8); }
.q-label { font-size: 12px; font-weight: 700; color: #8A6E52; }
.q-big { font-size: 19px; font-weight: 800; color: var(--kraft); letter-spacing: -0.04em; }
.q-big b { color: var(--red); font-size: 24px; }
.q-sub { font-size: 12.5px; color: var(--ink-3); }
.q-card--coupon .q-sub { color: #8A6E52; }
.q-btn { width: 100%; height: 40px; border-radius: 11px; font-weight: 800; font-size: 14px; margin-top: 10px; }
.q-btn--olive { background: var(--olive); color: #fff; }
.q-btn--olive:hover { background: var(--olive-dark); }
.q-btn--kakao { background: var(--kakao); color: #191919; }
.q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14.5px; color: var(--kraft); }
.q-timer { font-size: 13px; font-weight: 800; color: #fff; background: var(--kraft); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.q-link { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.q-link:hover { color: var(--kraft); }
.q-item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; cursor: pointer; }
.q-item + .q-item { margin-top: 8px; }
.q-item__thumb { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.q-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-item__name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.q-item__price { font-size: 13.5px; font-weight: 800; margin-top: 1px; }
.q-item__price span { color: var(--red); margin-right: 3px; }
.q-item:hover .q-item__name { text-decoration: underline; text-underline-offset: 2px; }
.q-empty { font-size: 13px; color: var(--ink-3); padding: 6px 0 2px; }
.q-cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.q-cart-sum b { font-size: 17px; color: var(--kraft); }
.q-recent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.q-recent a { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 24px; overflow: hidden; }
.q-recent a img { width: 100%; height: 100%; object-fit: cover; }
.q-recent a:hover { outline: 2px solid var(--olive); }
.q-recent .q-empty { grid-column: 1 / -1; }
.q-tel { font-size: 22px; font-weight: 800; color: var(--kraft); letter-spacing: -0.03em; }

/* ===== 공통 ===== */
.ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--kraft); }
.ic:active { background: rgba(0,0,0,.05); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px;
  border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.pill--kakao { background: var(--kakao); color: #191919; }
.pill--olive { background: var(--olive); color: #fff; }
.blk { padding: 28px 16px 0; }
.blk--flush { padding-top: 24px; }
.blk--tint { background: var(--tint); margin-top: 28px; padding-bottom: 26px; }
.blk--camp { background: #2F3A2A; margin-top: 32px; padding-bottom: 28px; color: #fff; }
.ttl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ttl h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.04em; color: var(--kraft); }
.ttl h2 small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.ttl--light h2 { color: #fff; }
.ttl__more { font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; }
.ttl__more::after { content: '›'; font-size: 18px; margin-left: 2px; line-height: 1; }
.ttl--light .ttl__more { color: rgba(255,255,255,.7); }
.ttl__note { flex-shrink: 0; font-size: 11.5px; color: var(--ink-3); background: #fff; padding: 3px 8px; border-radius: 999px; }

/* ===== 헤더 ===== */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 251, 244, .97); backdrop-filter: blur(8px); }
.hd.is-scrolled { box-shadow: 0 4px 14px rgba(91,62,38,.08); }
.hd__row { height: 56px; display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; padding: 0 8px; }
.hd__logo { justify-self: center; display: flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 800; color: var(--kraft); letter-spacing: -0.06em; }
.hd__right { display: flex; justify-content: flex-end; }
.dot {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center;
}
.dot.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

.cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 10px; border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  position: relative; flex-shrink: 0; height: 46px; padding: 0 10px; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.cats a.is-on { color: var(--kraft); font-weight: 800; }
.cats a.is-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--kraft); }
.cats a.hot { color: var(--red); }

/* ===== 배너 ===== */
.banner { position: relative; margin: 14px 16px 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1.02; max-width: 100%; }
.banner__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.banner__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; color: #fff; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__art { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 34%; }
.slide__art span { white-space: nowrap; font-size: clamp(64px, 22vw, 108px); letter-spacing: -0.12em; filter: drop-shadow(0 18px 22px rgba(0,0,0,.25)); }
.slide__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 26px; background: linear-gradient(transparent, rgba(0,0,0,.38)); }
.slide__tag { display: inline-block; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.slide__title { font-size: 27px; font-weight: 800; line-height: 1.25; letter-spacing: -0.05em; white-space: pre-line; }
.slide__desc { margin-top: 6px; font-size: 14.5px; opacity: .9; }
.banner__count { position: absolute; right: 14px; top: 14px; background: rgba(0,0,0,.3); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.banner__count b { font-weight: 800; }

/* ===== 혜택 카드 ===== */
.perk { width: 100%; text-align: left; border-radius: 16px; }
.perk--invite {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px;
  background: linear-gradient(135deg, #FCE9B8, #F7D7A8); color: var(--kraft);
}
.perk__label { font-size: 12.5px; font-weight: 700; opacity: .75; }
.perk--invite h2 { font-size: 19px; font-weight: 700; line-height: 1.35; margin-top: 3px; letter-spacing: -0.04em; }
.perk--invite b { color: var(--red); font-weight: 800; }
.perk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.perk--sm { display: flex; align-items: center; gap: 8px; padding: 12px 10px; min-width: 0; background: var(--card); border: 1px solid var(--line); }
.perk--sm b { display: block; font-size: 13px; white-space: nowrap; color: var(--kraft); }
.perk--sm small { display: block; font-size: 11.5px; white-space: nowrap; color: var(--ink-3); }
.perk__emoji { width: 34px; height: 34px; flex-shrink: 0; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 20px; }

/* ===== 상품 카드 ===== */
.thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .emo { font-size: 74px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.14)); transition: transform .3s; }
.pd:active .thumb .emo { transform: scale(.94); }
.flag { position: absolute; left: 0; top: 0; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 9px; border-radius: 14px 0 12px 0; }
.flag--new { background: var(--olive); }
.put {
  position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--kraft); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.put:active { transform: scale(.9); }
.heart { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.8); display: grid; place-items: center; font-size: 16px; color: var(--ink-3); }
.heart.is-on { color: var(--red); }
.pd__origin { font-size: 12px; color: var(--olive); font-weight: 700; margin-top: 9px; }
.pd__name { font-size: 14px; line-height: 1.4; margin-top: 2px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.pd__orig { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; margin-top: 4px; }
.pd__price { display: flex; align-items: baseline; gap: 5px; }
.pd__rate { color: var(--red); font-weight: 800; font-size: 17px; }
.pd__sale { font-weight: 800; font-size: 17px; }
.pd__sale small { font-size: 13px; font-weight: 600; }
.pd__meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--ink-3); }
.pd__meta .star { color: var(--straw); }
.free { font-size: 11px; font-weight: 700; color: var(--olive); border: 1px solid #CFDBB8; padding: 0 5px; border-radius: 4px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 10px; }
.blk--camp .pd__name, .blk--camp .pd__sale { color: #fff; }
.blk--camp .pd__origin { color: #B9D38E; }
.blk--camp .pd__orig, .blk--camp .pd__meta { color: rgba(255,255,255,.55); }
.blk--camp .free { color: #B9D38E; border-color: rgba(185,211,142,.4); }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding-inline: 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hscroll .thumb .emo { font-size: 62px; }
.rank { position: absolute; left: 8px; top: 6px; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); font-style: italic; letter-spacing: -0.05em; }
.hscroll .flag { left: auto; right: 0; border-radius: 0 14px 0 12px; }
.hscroll .heart { display: none; }

/* 후기 */
.hscroll--review { grid-auto-columns: 72%; }
.rv { background: var(--card); border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.rv__photo { height: 120px; display: grid; place-items: center; font-size: 56px; position: relative; }
.rv__photo img { width: 100%; height: 100%; object-fit: cover; }
.rv__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rv__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.rv__stars { color: var(--straw); letter-spacing: 1px; }
.rv__text { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv__pd { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.rv__pd span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.rv__pd b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 키워드 */
.kw { display: flex; flex-wrap: wrap; gap: 7px; }
.kw a, .kw button { height: 34px; padding: 0 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.kw a::before, .kw button::before { content: '#'; color: var(--olive); margin-right: 2px; }
.kw a:active, .kw button:active { background: var(--olive-soft); }

/* 특가 */
.deal-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.deal-head__label { font-size: 12.5px; font-weight: 800; color: var(--red); }
.deal-head h2 { font-size: 22px; font-weight: 800; color: var(--kraft); letter-spacing: -0.05em; }
.timer { display: flex; align-items: center; gap: 3px; }
.timer b { min-width: 34px; height: 34px; border-radius: 8px; background: var(--kraft); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer i { font-style: normal; font-weight: 800; color: var(--kraft); }
.rows { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.row .thumb { border-radius: 12px; }
.row .thumb .emo { font-size: 58px; }
.row .pd__origin { margin-top: 0; }
.row__stock { margin-top: 6px; }
.row__bar { height: 5px; border-radius: 999px; background: #F2E8DA; overflow: hidden; }
.row__bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.row__txt { font-size: 11.5px; color: var(--red); font-weight: 700; margin-top: 3px; }
.row__btn { margin-top: 8px; width: 100%; height: 34px; border-radius: 9px; background: var(--olive); color: #fff; font-weight: 700; font-size: 13.5px; }
.row__btn:active { background: var(--olive-dark); }

/* 중간 배너 */
.mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; margin: 0 16px; width: calc(100% - 32px); padding: 18px 20px; border-radius: 16px; color: var(--kraft); }
.mid b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.mid small { font-size: 13px; opacity: .8; }
.mid span { font-size: 40px; }

/* 탭 / 칩 */
.seg, .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px; }
.seg::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.seg button, .chips button {
  flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
}
.seg button.is-on, .chips button.is-on { background: var(--kraft); border-color: var(--kraft); color: #fff; }
.sort { height: 34px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.search-state { font-size: 14px; color: var(--ink-2); margin: -4px 0 14px; }
.search-state b { color: var(--olive); }
.search-state button { color: var(--red); font-weight: 700; margin-left: 6px; text-decoration: underline; }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; margin-top: 24px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; font-weight: 700; color: var(--ink-2); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--ink-3); }
.empty span { display: block; font-size: 44px; margin-bottom: 6px; }

/* 문자 알림 */
.sms { background: var(--olive); color: #fff; border-radius: 18px; padding: 22px 18px; }
.sms__label { font-size: 12.5px; font-weight: 700; opacity: .85; }
.sms h2 { font-size: 18px; font-weight: 800; margin-top: 4px; letter-spacing: -0.04em; }
.sms__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.sms__form input[type="tel"] { height: 46px; border: 0; border-radius: 11px; padding: 0 14px; font-size: 15px; outline: none; color: var(--ink); min-width: 0; }
.sms__form button { height: 46px; padding: 0 20px; border-radius: 11px; background: var(--straw); color: var(--kraft); font-weight: 800; }
.agree { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .85; }
.agree input { accent-color: var(--straw); width: 15px; height: 15px; }

/* ===== 푸터 ===== */
.ft { margin-top: 40px; background: #F3EADB; padding: 26px 16px 30px; font-size: 12.5px; color: var(--ink-2); }
.ft__cs { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ft__label { font-weight: 700; color: var(--kraft); }
.ft__tel { font-size: 24px; font-weight: 800; color: var(--kraft); letter-spacing: -0.03em; }
.ft__time { color: var(--ink-3); }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #E4D8C4; }
.ft__links b { color: var(--kraft); }
.ft__biz { margin-top: 14px; }
.ft__biz .ft__biz-title { margin-top: 0; font-weight: 700; color: var(--ink-2); }
.ft__biz p { margin-top: 8px; line-height: 1.8; color: var(--ink-3); word-break: keep-all; }
.biz { border: 1px solid #D8CBB6; border-radius: 4px; padding: 0 5px; margin-left: 4px; font-size: 11px; }
.ft__copy { margin-top: 14px; color: var(--ink-3); }

/* ===== 고정 요소 (컬럼 안에 맞춤) ===== */
.tab, .float, .toast, .side, .search-layer, .sheet, .dim { --left: max(0px, calc(50% - var(--col) / 2)); }
.tab {
  position: fixed; bottom: 0; left: var(--left); width: min(100%, var(--col)); z-index: 45;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line);
}
.tab button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tab button.is-on { color: var(--kraft); }

.float { position: fixed; z-index: 44; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); right: calc(var(--left) + 14px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.float__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: opacity .25s, transform .2s; }
.float__btn--kakao { background: var(--kakao); }
.float__btn--top { width: 42px; height: 42px; background: rgba(255,255,255,.96); color: var(--kraft); opacity: 0; pointer-events: none; }
.float__btn--top.is-show { opacity: 1; pointer-events: auto; }

.dim { position: fixed; top: 0; bottom: 0; left: var(--left); width: min(100%, var(--col)); background: rgba(30, 22, 15, .5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.dim.is-show { opacity: 1; pointer-events: auto; }

.side {
  position: fixed; top: 0; bottom: 0; left: var(--left); width: min(86%, calc(var(--col) * .86)); z-index: 90;
  background: var(--bg); overflow-y: auto; transform: translateX(-105%); transition: transform .32s cubic-bezier(.65,.05,.36,1);
  visibility: hidden;
}
.side.is-open { transform: none; visibility: visible; }
.side__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 18px; font-size: 17px; color: var(--kraft); }
.side__login { margin: 4px 16px 0; padding: 16px; border-radius: 14px; background: var(--tint); }
.side__login p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.side__login .pill { width: 100%; }
.side__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; padding: 22px 12px; }
.side__grid a { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.side__grid span { width: 56px; height: 56px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 27px; }
.side__links { border-top: 8px solid var(--tint); }
.side__links a { display: block; padding: 15px 20px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }

.search-layer {
  position: fixed; inset: 0 auto 0 var(--left); width: min(100%, var(--col)); z-index: 95; background: var(--bg);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s;
}
.search-layer.is-open { opacity: 1; pointer-events: auto; transform: none; }
.search-layer__bar { display: grid; grid-template-columns: 40px 1fr 40px; gap: 4px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
.search-layer__bar input { height: 42px; border: 0; background: var(--tint); border-radius: 11px; padding: 0 14px; outline: none; font-size: 15px; min-width: 0; }
.search-layer__body { padding: 20px 16px; }
.search-layer__label { font-size: 14px; font-weight: 800; color: var(--kraft); margin: 0 0 10px; }
.search-layer__label:not(:first-child) { margin-top: 28px; }
.hscroll--mini { grid-auto-columns: 30%; }
.hscroll--mini .thumb .emo { font-size: 44px; }
.hscroll--mini .pd__name { font-size: 12.5px; }
.hscroll--mini .pd__price * { font-size: 13.5px; }
.hscroll--mini .put, .hscroll--mini .pd__meta, .hscroll--mini .pd__orig, .hscroll--mini .pd__origin, .hscroll--mini .flag { display: none; }
.muted { color: var(--ink-3); font-size: 13.5px; }

.sheet { position: fixed; bottom: 0; left: var(--left); width: min(100%, var(--col)); z-index: 100; pointer-events: none; }
.sheet__box {
  position: relative; background: var(--bg); border-radius: 22px 22px 0 0; max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .34s cubic-bezier(.65,.05,.36,1); box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
.sheet:not(.is-open) .sheet__box { visibility: hidden; transition: transform .34s cubic-bezier(.65,.05,.36,1), visibility 0s .34s; }
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__box { transform: none; }
.sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: #DCD0BE; margin: 10px auto 0; flex-shrink: 0; }
.sheet__close { position: absolute; right: 8px; top: 8px; z-index: 2; }
.sheet__body { overflow-y: auto; padding: 8px 18px 16px; }
.sheet__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.sheet__foot:empty { display: none; }
.sheet__title { font-size: 18px; font-weight: 800; color: var(--kraft); padding: 6px 0 6px; }

.dt__thumb { aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center; font-size: 120px; margin-top: 30px; overflow: hidden; }
.dt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dt__origin { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--olive); }
.dt__name { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.04em; margin-top: 3px; }
.dt__rating { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.dt__rating .star { color: var(--straw); }
.dt__price { margin-top: 12px; }
.dt__price .pd__rate, .dt__price .pd__sale { font-size: 25px; }
.dt__info { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--tint); display: grid; grid-template-columns: 56px 1fr; gap: 7px; font-size: 13.5px; }
.dt__info dt { color: var(--ink-3); }
.dt__info dd { margin: 0; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.buy__total { text-align: right; font-size: 19px; font-weight: 800; }
.buy__btns { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 8px; margin-top: 12px; }
.buy__btns button { height: 50px; border-radius: 12px; font-weight: 800; font-size: 15px; }
.btn-wish { border: 1px solid var(--line); background: #fff; font-size: 22px !important; color: var(--ink-3); }
.btn-wish.is-on { color: var(--red); border-color: var(--red); }
.btn-cart { border: 1.5px solid var(--kraft); color: var(--kraft); background: #fff; }
.btn-buy { background: var(--olive); color: #fff; }
.btn-full { width: 100%; height: 52px; border-radius: 13px; background: var(--olive); color: #fff; font-weight: 800; font-size: 16px; margin-top: 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.qty button { width: 32px; height: 32px; font-size: 17px; color: var(--kraft); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; font-size: 14px; }
.li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li__thumb { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 34px; overflow: hidden; }
.li__thumb img { width: 100%; height: 100%; object-fit: cover; }
.li__name { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li__price { font-weight: 800; margin-top: 3px; }
.li__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.li__del { font-size: 12.5px; color: var(--ink-3); }
.sum { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.sum--total { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.sum--total b { color: var(--red); }
.ship { font-size: 12.5px; font-weight: 700; color: var(--olive); margin-bottom: 8px; }
.ship i { display: block; height: 5px; border-radius: 5px; background: #ECE4D6; margin-top: 5px; overflow: hidden; }
.ship i::after { content: ''; display: block; height: 100%; width: var(--p); background: var(--olive); transition: width .4s; }
.sheet-empty { text-align: center; padding: 50px 0 40px; color: var(--ink-3); }
.sheet-empty span { display: block; font-size: 50px; margin-bottom: 8px; }
.signup__form { display: grid; gap: 10px; margin-top: 16px; }
.signup__form input[type="tel"] { height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; outline: none; background: #fff; }
.signup__form input[type="tel"]:focus { border-color: var(--olive); }
.signup__coupon { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 2px dashed #E7C98F; background: #FFF6E2; }
.signup__coupon b { font-size: 24px; color: var(--red); font-weight: 900; }
.signup__coupon small { display: block; color: var(--ink-2); font-size: 12.5px; }

.toast {
  position: fixed; left: calc(var(--left) + min(100%, var(--col)) / 2); bottom: calc(var(--tab-h) + 20px); z-index: 200;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: all .28s;
  background: rgba(42, 36, 32, .94); color: #fff; font-size: 14px; padding: 11px 18px; border-radius: 999px;
  max-width: calc(min(100vw, var(--col)) - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 검색·AI 안내용 본문 (2026-10-16) ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seo-guide { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.seo-guide.pad { padding: 20px 16px; }
.seo-guide h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.04em; color: var(--kraft); margin: 0 0 10px; }
.seo-guide h2.seo-guide__sub { margin-top: 26px; }
.seo-guide h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 18px 0 6px; }
.seo-guide p { margin: 0 0 8px; }
.seo-guide a { color: var(--olive-dark); text-decoration: underline; }
.seo-guide__lead { color: var(--ink); }
.seo-guide__list { margin: 6px 0 10px; padding-left: 18px; list-style: disc; }
.seo-guide__list--num { list-style: decimal; }
.seo-guide__list li { margin: 3px 0; }
.seo-guide__table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 13.5px; background: var(--card); border-radius: 12px; overflow: hidden; }
.seo-guide__table caption { text-align: left; font-weight: 800; color: var(--ink); padding: 0 0 6px; }
.seo-guide__table th, .seo-guide__table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.seo-guide__table th { width: 92px; color: var(--kraft); font-weight: 700; background: var(--tint); }
.seo-guide__table tr:last-child th, .seo-guide__table tr:last-child td { border-bottom: 0; }
.seo-guide__date { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
