/* ==========================================================================
   PLANT MATTER — MOBILE (m.plantmatter.kr)
   톤: 앱과 같은 화이트 · 모노톤 · 각진 모서리 · 대문자 라벨 · 이탤릭 학명
   서체: Figtree (영문·숫자 300/700, 큰 숫자 800) + Noto Sans KR (한글 300/700)
   ========================================================================== */

:root {
  --text: #171717;
  --accent: #222;
  --mid: #555;
  --muted: #777;
  --line: #e8e8e8;
  --bg: #fff;

  --font: "Figtree", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --side: 16px;
  --max: 600px;                  /* PC에서 강제로 열었을 때 가운데 폭 */
  --gnb-h: calc(108px + env(safe-area-inset-top));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* 일본어일 때는 한자·가나를 일본식으로 그리는 Noto Sans JP */
:root:lang(ja) { --font: "Figtree", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0 auto; max-width: var(--max);
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 300; font-size: 15px; line-height: 1.7;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
p, h1 { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 상단 바: 로고 + 아이콘 / 탭 ---------- */
.gnb {
  --logo-w: 148px;   /* 워드마크 너비 */
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  max-width: var(--max); margin: 0 auto;
  padding: env(safe-area-inset-top) var(--side) 0;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gnb__row { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.gnb__logo img { width: var(--logo-w); height: auto; }
.gnb__util { display: flex; margin-right: -9px; }
.gnb__menu {
  display: flex; gap: 26px; height: 50px; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.gnb__menu a {
  position: relative; padding: 6px 0; line-height: 1;
  /* 로고보다 한 단계 작게, 자간은 워드마크와 같은 비율 */
  font-size: 12px; font-weight: 300; letter-spacing: .185em;
}
.gnb__menu a:first-child { margin-left: -.1em; }   /* P 글자 왼쪽 여백만큼 당겨 로고와 왼쪽 끝 맞춤 */
.gnb__menu a.is-current::after { content: ""; position: absolute; left: 0; right: .185em; bottom: 0; height: 1px; background: currentColor; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.icon-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- 탭 아래로 내려오는 메뉴 (한 줄 4칸) ---------- */
.mega {
  position: fixed; top: var(--gnb-h); left: 0; right: 0; bottom: 0; z-index: 19;
  max-width: var(--max); margin: 0 auto;
  visibility: hidden; transition: visibility 0s .38s;
}
.mega.is-open { visibility: visible; transition: none; }
.mega__panel {
  position: relative; z-index: 1;
  max-height: calc(100svh - var(--gnb-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px var(--side) 18px; background: #fff;
  opacity: 0; transform: translateY(-8px); transition: opacity .38s var(--ease), transform .38s var(--ease);
}
.mega.is-open .mega__panel { opacity: 1; transform: none; }
.mega__dim { position: absolute; inset: 0; background: rgba(23, 23, 23, .45); opacity: 0; transition: opacity .38s var(--ease); }
.mega.is-open .mega__dim { opacity: 1; }
.mega__list { display: grid; grid-template-columns: repeat(4, minmax(0, 72px)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mega__item { display: block; }
.mega__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; }
.mega__name { display: block; margin-top: 7px; font-size: 11px; font-weight: 300; line-height: 1.35; letter-spacing: .02em; }

/* ---------- 홈: 자동으로 넘어가는 사진 슬라이드 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.slides { position: absolute; top: var(--gnb-h); right: 0; bottom: 0; left: 0; overflow: hidden; animation: hero-in 1.4s var(--ease) both; }
.slides__track {
  display: flex; height: 100%;
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);   /* 천천히 출발 → 천천히 멈춤 */
  will-change: transform;
}
.slide { flex: 0 0 100%; height: 100%; margin: 0; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; object-position: var(--fx, 50%) 50%; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }

/* 아래쪽 가는 막대: 지금 사진이 머무는 시간만큼 채워짐 · 누르면 그 사진으로
   (difference: 밝은 배경에선 어둡게, 흙·잎처럼 어두운 배경에선 밝게 보임) */
.slides__nav { position: absolute; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 2; display: flex; gap: 8px; transform: translateX(-50%); mix-blend-mode: difference; }
.bar { position: relative; width: 40px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.bar::before, .bar__fill { content: ""; position: absolute; left: 0; top: 50%; height: 1px; margin-top: -.5px; }
.bar::before { right: 0; background: rgba(255, 255, 255, .3); }
.bar__fill { width: 0; background: #fff; }
.bar.is-active .bar__fill { animation: bar-fill var(--interval, 8s) linear forwards; }
@keyframes bar-fill { to { width: 100%; } }
.hero.is-paused .bar.is-active .bar__fill { animation-play-state: paused; }



/* ---------- 하단: © 왼쪽 · 언어 오른쪽 (PC와 같은 구성) ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px var(--side) calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: .16em; color: var(--muted);
}
.foot__lang {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-size: 10px; font-weight: 300; letter-spacing: .185em; color: var(--text);
}
.foot__lang svg { width: 5px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.foot__copy { margin: 0; }

/* ---------- 언어 설정 창 (화면 전체) ---------- */
.drawer { position: fixed; inset: 0; z-index: 45; visibility: hidden; transition: visibility 0s .45s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__dim { position: absolute; inset: 0; background: rgba(23, 23, 23, .45); opacity: 0; transition: opacity .45s var(--ease); }
.drawer.is-open .drawer__dim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%;
  display: flex; flex-direction: column;
  padding: 0 var(--side); background: #fff;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { padding-top: env(safe-area-inset-top); height: calc(58px + env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; }
.drawer__head h2 { margin: 0; font-size: 17px; font-weight: 300; letter-spacing: .02em; }
.drawer__close { margin-right: -9px; }
.drawer__close svg { stroke-width: 1.3; }
.drawer__body { display: grid; gap: 14px; padding-top: 28px; }
.drawer__label { font-size: 14px; color: var(--mid); }
.select { position: relative; }
.select select {
  width: 100%; height: 52px; padding: 0 44px 0 16px;
  border: 1px solid var(--text); border-radius: 0; background: #fff;
  font: inherit; font-size: 16px; font-weight: 300; color: var(--text);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.select select:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--text); }
.select__chev { position: absolute; right: 18px; top: 50%; width: 13px; height: 8px; margin-top: -4px; fill: none; stroke: currentColor; stroke-width: 1.3; pointer-events: none; }
.btn-solid {
  height: 52px; border: 0; border-radius: 0; background: var(--accent); color: #fff; cursor: pointer;
  font-size: 15px; font-weight: 300; letter-spacing: .08em;
}

/* ---------- 하위 페이지 공통 ---------- */
.gnb__menu a.is-here::after { content: ""; position: absolute; left: 0; right: .185em; bottom: 0; height: 1px; background: currentColor; }
.mega__all {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 11px; letter-spacing: .185em; color: var(--text);
}
.mega__all svg { width: 5px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* ---------- PLANT 목록 (/plant/) ---------- */
.list { min-height: 100vh; min-height: 100svh; padding: calc(var(--gnb-h) + 22px) 0 80px; }
.list { overflow-x: clip; }   /* 분류를 넘길 때 옆으로 밀리는 목록이 가로 스크롤을 만들지 않게 */
.list__head { padding: 0 var(--side); }
.crumb { display: flex; gap: 8px; margin: 0; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.list__title { margin: 10px 0 0; font-size: 26px; font-weight: 300; line-height: 1.2; letter-spacing: .02em; }
.list__bar { margin: 18px 0 22px; }
.pills {
  display: flex; gap: 6px; padding: 0 var(--side); overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
  background: #f2f2f0; color: var(--mid); font-size: 12px; letter-spacing: .04em;
}
.pill.is-active { background: var(--text); color: #fff; }
.list__count { margin: 14px 0 0; padding: 0 var(--side); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 8px; margin: 0; padding: 0 var(--side); list-style: none; }
.card { position: relative; }
.card__link { display: block; }
.card__img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; }
/* 모든 상품 사진 아래쪽에 같은 옅은 그라데이션 (아래 70%부터 약 5.5%) — 사진 배경은 도구로 순백 통일 */
.card__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(23, 23, 23, 0) 68%, rgba(23, 23, 23, .055) 100%);
}

.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: block; padding-top: 10px; }
.card__name { display: block; font-size: 13px; line-height: 1.45; }
.card__sci { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.card__sci i { font-style: italic; }
.card__price { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .02em; }
.card__note { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.card__badge { position: absolute; top: 8px; left: 8px; padding: 3px 6px; background: #fff; font-size: 9px; letter-spacing: .14em; }
.card.is-soldout .card__img img { opacity: .55; }
.card__cart {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(23, 23, 23, .28); color: #fff;
}
.card__cart svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
/* 검색 결과에서 왔을 때 해당 칸을 잠깐 표시 */
.card.is-found .card__img { animation: found 2.4s var(--ease); }
@keyframes found { 0%, 45% { box-shadow: 0 0 0 2px var(--text); } 100% { box-shadow: 0 0 0 2px rgba(23, 23, 23, 0); } }
.list__empty { margin: 0; padding: 80px var(--side); text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 공통 버튼 ---------- */
[hidden] { display: none !important; }
.btn-buy {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 20px;
  border: 0; border-radius: 0; background: var(--text); color: #fff; cursor: pointer;
  font-size: 15px; font-weight: 300; letter-spacing: .08em;
}
.btn-buy:active { background: #000; }
.btn-buy:disabled { background: #bdbdbd; cursor: default; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; flex: none; height: 48px; padding: 0 18px;
  border: 1px solid var(--text); border-radius: 0; background: #fff; color: var(--text); cursor: pointer;
  font-size: 14px; font-weight: 300; letter-spacing: .03em; white-space: nowrap;
}

/* ---------- 제품 상세 (/product/) — 위 사진, 아래 정보, 화면 아래 고정 구매 버튼 ---------- */
.pd { padding-top: var(--gnb-h); }
.pd__media { display: grid; gap: 4px; }
.pd__img { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; }
.pd__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(23, 23, 23, 0) 68%, rgba(23, 23, 23, .055) 100%); }
.pd__img img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { padding: 22px var(--side) 8px; }
.pd__name { margin: 0; font-size: 20px; font-weight: 300; line-height: 1.4; }
.pd__sci { margin-top: 2px; font-size: 13px; color: var(--muted); }
.pd__sci i, .acc__body i, .co-item__sci i { font-style: italic; }
.pd__price { margin-top: 12px; font-size: 18px; letter-spacing: .01em; }
.pd__exact { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--mid); }
.pd__exact span { display: inline-block; margin-right: 8px; padding: 2px 8px; border: 1px solid var(--text); font-size: 11px; letter-spacing: .06em; color: var(--text); }
.pd__desc { margin-top: 20px; font-size: 14px; line-height: 1.85; color: var(--mid); white-space: pre-line; }
.pd__ship { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 20px 0 0; font-size: 13px; }
.pd__ship dt { color: var(--muted); }
.pd__ship dd { margin: 0; }
.pd__opt { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.pd__opt-label { font-size: 13px; color: var(--mid); }
.qty { display: inline-flex; align-items: center; gap: 2px; }
.qty__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.qty__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.qty__btn:disabled { color: #c8c8c8; }
.qty__val { display: grid; place-items: center; width: 48px; height: 36px; border: 1px solid #dcdcdc; font-size: 15px; }
.pd__total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 6px; border-top: 1px solid var(--line); font-size: 13px; }
.pd__total strong { font-size: 18px; font-weight: 300; }
.pd__total small { font-size: 12px; color: var(--muted); }
.pd__cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; max-width: var(--max); margin: 0 auto;
  padding: 10px var(--side) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
}
.page-pd .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.page-pd .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
.acc { margin-top: 18px; }
.acc__item summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; list-style: none; font-size: 14px; cursor: pointer; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__chev { width: 7px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .25s var(--ease); }
.acc__item[open] .acc__chev { transform: rotate(90deg); }
.acc__body { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 0 0 18px; font-size: 13px; }
.acc__body dt { color: var(--muted); }
.acc__body dd { margin: 0; }
.acc__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pd-crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 26px var(--side); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pd-crumb [aria-current] { color: var(--text); }
.pd-none { padding: 100px var(--side); text-align: center; }
.pd-none p, .co__none p { margin-bottom: 24px; font-size: 14px; color: var(--muted); }

/* ---------- 주문/결제 (/checkout/) ---------- */
.co { padding: calc(var(--gnb-h) + 22px) var(--side) 56px; }
.co__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 24px; }
.co__title { margin: 0; font-size: 26px; font-weight: 300; line-height: 1.2; letter-spacing: .02em; }
.co__test { display: inline-block; padding: 5px 10px; background: #f2f2f0; font-size: 11px; letter-spacing: .02em; color: var(--mid); }
.co__none { padding: 80px 0; text-align: center; }
.co__sec { padding: 22px 0 18px; border-top: 1px solid var(--text); }
.co__h { margin: 0 0 18px; font-size: 15px; font-weight: 300; letter-spacing: .03em; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--mid); }
.field input {
  width: 100%; height: 48px; padding: 0 12px; border: 1px solid #d6d6d6; border-radius: 0; background: #fff;
  font-size: 16px; font-weight: 300; outline: none; -webkit-appearance: none; appearance: none;   /* 16px: 아이폰 확대 방지 */
}
.field input::placeholder { color: #b5b5b5; }
.field input:focus { border-color: var(--text); }
.field.is-invalid input { border-color: #b3261e; }
.field__err { margin: 6px 0 0; font-size: 12px; color: #b3261e; }
.field__err:empty { display: none; }
.field__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.field__hint:empty { display: none; }
.field__hint.is-warn { color: var(--text); }
.field__row { display: flex; gap: 8px; }
.field__row input { flex: 1; min-width: 0; }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: -2px 0 18px; font-size: 14px; cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.check__box { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--text); }
.check input:checked + .check__box { background: var(--text); }
.check input:checked + .check__box::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }
.co__widget { min-height: 120px; margin: 0 calc(var(--side) * -1); }
.co__sticky { padding-top: 22px; border-top: 1px solid var(--text); }
.co-items { margin: 0; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
.co-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.co-item__img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; }
.co-item__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(23, 23, 23, 0) 68%, rgba(23, 23, 23, .055) 100%); }
.co-item__img img { width: 100%; height: 100%; object-fit: cover; }
.co-item__name { display: block; font-size: 14px; line-height: 1.5; }
.co-item__sci { display: block; font-size: 12px; color: var(--muted); }
.co-item__meta { display: block; margin-top: 4px; font-size: 12px; color: var(--mid); }
.co-sum { margin: 0; padding: 14px 0 16px; }
.co-sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.co-sum dt { color: var(--mid); }
.co-sum dd { margin: 0; }
.co-sum .co-sum__total { align-items: baseline; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-sum__total dt { color: var(--text); }
.co-sum__total dd { font-size: 19px; }
.co__agree { margin: 0 calc(var(--side) * -1) 12px; }
.co__err { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #b3261e; }

/* 주소 찾기 창 (전체 화면) */
.addr-layer { position: fixed; inset: 0; z-index: 60; background: #fff; }
.addr-layer__box { display: flex; flex-direction: column; height: 100%; padding-top: env(safe-area-inset-top); }
.addr-layer__head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 4px 0 var(--side); border-bottom: 1px solid var(--line); }
.addr-layer__head h2 { margin: 0; font-size: 15px; font-weight: 300; }
.addr-layer__frame { flex: 1; min-height: 0; }

/* ---------- 결제 결과 ---------- */
.res { min-height: 70svh; padding: calc(var(--gnb-h) + 64px) var(--side) 80px; text-align: center; }
.res__eyebrow { font-size: 10px; letter-spacing: .22em; color: var(--muted); }
.res__title { margin: 12px 0 0; font-size: 22px; font-weight: 300; line-height: 1.4; }
.res__text { margin-top: 12px; font-size: 14px; color: var(--mid); }
.res .co__test { margin-top: 18px; }
.res__info { margin: 32px 0 0; text-align: left; border-top: 1px solid var(--text); }
.res__info div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.res__info dt { color: var(--muted); }
.res__info dd { margin: 0; overflow-wrap: anywhere; }
.res__actions { display: grid; gap: 8px; margin-top: 32px; }
.res__actions .btn-line { width: 100%; }

/* ---------- 계정: 로그인 · 회원가입 · 비밀번호 찾기 · 마이페이지 (/account/) ---------- */
.acct { min-height: 70svh; padding: calc(var(--gnb-h) + 36px) var(--side) 64px; }
.acct__loading { padding: 60px 0; text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.auth__title { margin: 0 0 28px; font-size: 24px; font-weight: 300; line-height: 1.3; letter-spacing: .02em; text-align: center; }
.auth__text { margin: -10px 0 24px; font-size: 14px; line-height: 1.8; color: var(--mid); text-align: center; }
.auth > .btn-line { display: flex; width: 100%; }
.auth__form .btn-buy { margin-top: 6px; }
.auth__h { margin: 30px 0 16px; padding-top: 22px; border-top: 1px solid var(--text); font-size: 15px; font-weight: 300; letter-spacing: .03em; }
.auth__err { margin: 4px 0 10px; font-size: 13px; line-height: 1.6; color: #b3261e; }
.auth__links { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth__links a, .co__member a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.auth__resend { padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 300; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.auth__resend:disabled { color: var(--muted); cursor: default; }
/* 비밀번호 보기/숨기기 (눈 모양 버튼) */
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw input::-ms-reveal, .pw input::-ms-clear { display: none; }   /* Edge 기본 눈 아이콘은 숨김 (중복 방지) */
.pw__toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.pw__toggle:hover { color: var(--text); }
.pw__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pw__toggle .pw__hide, .pw__toggle[aria-pressed="true"] .pw__show { display: none; }
.pw__toggle[aria-pressed="true"] .pw__hide { display: block; }
.auth__join { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.auth__join p { margin-bottom: 12px; font-size: 14px; color: var(--mid); }
.auth__join .btn-line { width: 100%; }
.auth__note { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }
.field input[readonly] { background: #f6f6f4; border-color: #e6e6e3; color: var(--mid); }

/* 약관 동의 */
.agree { margin: 26px 0 18px; padding: 14px 14px 8px; border: 1px solid var(--line); }
.agree.is-invalid { border-color: #b3261e; }
.agree .check { flex: 1 1 auto; min-width: 0; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.6; }
.agree .check__box { flex: none; margin-top: 1px; }
.check--all { width: 100%; padding-bottom: 12px; margin-bottom: 6px !important; border-bottom: 1px solid var(--line); font-size: 14px !important; }
.agree__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 10px; padding: 8px 0; }
.agree__view { flex: none; padding: 0; border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.agree__text { flex: 0 0 100%; margin: 4px 0 2px; padding: 10px 12px; background: #f6f6f4; font-size: 12px; line-height: 1.8; color: var(--mid); white-space: pre-line; }
.agree__lead { margin-bottom: 6px; font-size: 13px; color: var(--mid); }
.agree__err { margin: 2px 0 8px; font-size: 12px; color: #b3261e; }
.agree__err:empty { display: none; }

/* 마이페이지 */
.my__head { margin-bottom: 22px; }
.my__title { margin: 0; font-size: 24px; font-weight: 300; line-height: 1.3; letter-spacing: .02em; }
.my__hello { margin-top: 6px; font-size: 14px; color: var(--mid); }
.my__sec { padding: 0; border-top: 1px solid var(--line); }
.my__head + .my__sec { border-top-color: var(--text); }
/* 제목을 눌러 접기·펼치기 */
.my__h { margin: 0; }
.my__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; font-size: 15px; font-weight: 300; letter-spacing: .03em; color: var(--text); }
.my__sec.is-open .my__toggle .acc__chev { transform: rotate(90deg); }
.my__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.my__sec.is-open > .my__body { grid-template-rows: 1fr; }
.my__inner { min-height: 0; margin: 0 -6px; overflow: hidden; }
.my__pad { padding: 2px 4px 28px; }
.my__sub { margin: 26px 0 14px; font-size: 14px; font-weight: 300; color: var(--mid); }
.my__pad > .check { margin: 2px 0 20px; }
.my__pad > .btn-line { width: 100%; }
.my__empty { font-size: 14px; color: var(--muted); }
.my__foot { padding-top: 22px; border-top: 1px solid var(--line); }
.my__foot .btn-line { width: 100%; }

/* 추가 배송지 (마이페이지) · 배송지 고르기 (주문/결제) */
.my__note { margin: -8px 0 14px; font-size: 13px; color: var(--muted); }
.addr-list { margin: 0 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.addr-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.addr-item__text { display: grid; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.6; color: var(--mid); overflow-wrap: anywhere; }
.addr-item__label { color: var(--text); }
.addr-item__act { display: flex; flex: none; gap: 12px; }
.addr-empty { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 300; color: var(--mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn.is-armed { color: #b3261e; }
.addr-form { margin: 8px calc(var(--side) * -1) 0; padding: 18px var(--side) 4px; background: #f8f8f6; }
.addr-form .field input { background: #fff; }
.addr-form__title { margin: 0 0 14px; font-size: 14px; color: var(--text); }
.addr-item--default .addr-item__label::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 8px; border-radius: 50%; background: var(--text); vertical-align: middle; }
.addr-form__btns { display: grid; gap: 8px; margin: 4px 0 14px; }
.addr-pick { display: flex; gap: 6px; margin: -4px calc(var(--side) * -1) 18px; padding: 0 var(--side); overflow-x: auto; scrollbar-width: none; }
.addr-pick::-webkit-scrollbar { display: none; }
.addr-pick .pill { flex: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 300; }

/* 주문/결제: 비회원에게 로그인 안내 */
.co__member { margin: -12px 0 22px; font-size: 13px; line-height: 1.7; color: var(--mid); }

/* ---------- 검색 (전체 화면) ---------- */
/* 열릴 때: 0.5초 동안 살짝 떠오르며 천천히 멈춤 · 닫힐 때: 0.3초 매끄럽게 · 안쪽은 살짝 늦게 나타남 */
.search {
  --open: cubic-bezier(.22, 1, .36, 1); --close: cubic-bezier(.55, 0, .45, 1);
  position: fixed; inset: 0; z-index: 40;
  max-width: var(--max); margin: 0 auto;
  background: #fff;
  padding: env(safe-area-inset-top) var(--side) 0;
  opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0);
  transition: opacity .3s var(--close), transform .3s var(--close), visibility 0s .3s;
  will-change: opacity, transform;
}
.search.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--open), transform .55s var(--open); }
.search > *:not(.search__top) { opacity: 0; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease; }
.search.is-open > *:not(.search__top) { opacity: 1; transform: none; transition: opacity .45s ease .12s, transform .55s var(--open) .12s; }
.search__top { height: 58px; display: flex; align-items: center; justify-content: flex-end; }
.search__close { padding: 10px 0; border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 300; letter-spacing: .22em; }
.search__form { display: flex; align-items: center; margin-top: 28px; border-bottom: 1px solid var(--text); }
.search__form input {
  flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: none; outline: none; border-radius: 0;
  /* 16px 미만이면 아이폰이 입력할 때 화면을 확대하므로 입력 글씨는 16px 유지 */
  font-size: 16px; font-weight: 300; -webkit-appearance: none; appearance: none;
}
.search__form input::placeholder { color: #bbb; font-size: 14px; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__form .icon-btn { margin-right: -9px; }
.search__msg { margin-top: 14px; min-height: 1.6em; font-size: 13px; color: var(--muted); }

.search__results { max-height: calc(100svh - 220px - env(safe-area-inset-top)); margin: 4px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.hit { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hit__img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; }
.hit__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(23, 23, 23, 0) 68%, rgba(23, 23, 23, .055) 100%); }
.hit__img img { width: 100%; height: 100%; object-fit: cover; }
.hit__name { display: block; font-size: 13px; line-height: 1.45; }
.hit__sci { display: block; font-size: 11px; color: var(--muted); }
.hit__sci i { font-style: italic; }
.hit__price { font-size: 12px; letter-spacing: .02em; }

/* ---------- 안내 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 11px 18px; background: var(--accent); color: #fff;
  font-size: 13px; white-space: nowrap;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .bar.is-active .bar__fill { width: 100%; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
