/* =========================================================
   MUE 자사몰 — 공통 스타일
   기준: 피그마 '리스키_수정본_7 (모바일 480)'
   ========================================================= */

:root {
  --black: #000;
  --ink: #111;
  --ink-2: #1b2430;
  --ink-3: #222;
  --gray-333: #333;
  --gray-555: #555;
  --gray-777: #777;
  --gray-888: #888;
  --gray-999: #999;
  --line: #ddd;
  --line-light: #eee;
  --bg-soft: #f6f6f6;
  --bar-bg: #f1f1f1;
  --pink-bg: #fff0f4;
  --pink-num: #ef8dab;
  --pink-ring: #f1a6b6;
  --sale: #e5484d;
  --page-width: 480px;
  --font: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-kr: 'Noto Sans KR', var(--font);
  --font-serif: 'Noto Serif KR', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #f4f4f4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  position: relative;
  max-width: var(--page-width);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  padding-bottom: 90px;
}
.page.has-bottom-bar { padding-bottom: 190px; }

/* ---------- 01 상단 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 10px 16px;
  background: #fff;
}
.site-header__menu {
  width: 60px;
  text-align: left;
  font-size: 22px;
  line-height: 33px;
  color: var(--ink);
}
.burger { display: flex; flex-direction: column; justify-content: space-between; width: 17px; height: 13.5px; margin-left: 2px; }
.burger i { display: block; height: 2.5px; border-radius: 1px; background: var(--ink); }
.site-header__logo { display: block; width: 88px; height: 42px; }
.site-header__logo img { width: 100%; height: 100%; object-fit: cover; }
.site-header__cart {
  display: flex;
  justify-content: flex-end;
  width: 45px;
  height: 26px;
}
.site-header__cart img {
  flex: none;
  width: 52px;
  height: 26px;
  transform: scaleX(-1);
}

#customs, #info, #review, #reviewTotal, #colorPicker, #trResult { scroll-margin-top: 62px; }

/* ---------- 03 대표 사진 / 상세 사진 ---------- */
.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 600;
  overflow: hidden;
  background: #fff;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}
.photo img.is-fading { opacity: 0; }
.photo__back { display: none; } /* 핑크배경 뒷면: 폰에서는 안 씀 */

/* 상품 영역: 폰에서는 대표 사진 → 상품명·색상 선택 → 나머지 사진 순서로 한 줄 */
.product { display: flex; flex-direction: column; }
.product__gallery { display: contents; }
.product__gallery .photo { order: 3; }
.product__gallery .photo--hero { order: 1; }
.product__panel { order: 2; }

/* ---------- 1:1 문의 떠 있는 버튼 ---------- */
.float-inquiry {
  position: fixed;
  z-index: 25;
  bottom: 24px;
  right: max(9px, calc((100vw - var(--page-width)) / 2 + 9px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border-radius: 99px;
  background: var(--black);
  color: #fff;
  font-size: 11px;
  line-height: 16.5px;
  white-space: nowrap;
  transition: bottom .25s ease;
}
.has-bottom-bar.bar-visible .float-inquiry { bottom: 184px; }

/* ---------- 04 상품명·가격 ---------- */
.product-title {
  padding: 16px 16px 4px;
  font-family: var(--font-kr);
  font-weight: 700;
  font-size: 15px;
  line-height: 22.5px;
  color: var(--ink);
}
.product-price {
  display: flex;
  align-items: baseline;
  height: 38.1px;
  padding: 0 16px;
  white-space: nowrap;
}
.product-price__now { font-weight: 900; font-size: 16px; line-height: 24px; color: var(--ink); }
.product-price__rate { margin-left: 4px; font-weight: 700; font-size: 11px; line-height: 16.5px; color: var(--sale); }
.product-price__was { margin-left: 4.5px; font-size: 15px; line-height: 22.5px; color: var(--gray-999); text-decoration: line-through; }
.product-price__ship { margin-left: 10px; font-weight: 900; font-size: 14px; line-height: 21px; color: var(--ink); }

/* ---------- 05 색상 선택 ---------- */
.color-picker {
  min-height: 135px;
  padding: 14px 16px;
  border-top: 0.8px solid var(--line-light);
}
.color-picker__title { font-weight: 700; font-size: 15px; line-height: 22.5px; color: var(--gray-333); }
.color-picker__label { font-size: 12px; line-height: 19.5px; color: var(--gray-888); }
.color-picker__label.is-alert { color: var(--sale); animation: shake .35s; }
.color-picker__list { display: flex; gap: 7px; margin-top: 5px; }

/* 색상 동그라미: 바탕색 + 땡땡이 그림을 원 안에 잘라 넣음 */
.swatch {
  --swatch-bg: #ccc;
  --swatch-dot: url('../images/dot_brown.png');
  position: relative;
  flex: none;
  width: 36.508px;
  height: 36.508px;
  border-radius: 50%;
  background-color: var(--swatch-bg);
  background-image: var(--swatch-dot);
  background-repeat: no-repeat;
  background-size: 46px 46px;
  background-position: -7.302px -5.111px;
}
.swatch--pink  { --swatch-bg: #f1a6b6; }
.swatch--black { --swatch-bg: #000; --swatch-dot: url('../images/dot_white.png'); }
.swatch--ivory { --swatch-bg: #fbf7ed; }
.swatch--beige { --swatch-bg: #cb8e50; }

.swatch-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
/* 선택하면 테두리 (피그마 Ellipse 1·2: 지름 38, 두께 3) — 애니메이션 없이 바로 나타남 */
.swatch-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--ring, #000);
  opacity: 0;
  pointer-events: none;
}
.swatch-btn[aria-checked="true"]::after { opacity: 1; }
.swatch-btn:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }

/* 선택한 색상 줄 */
.option-row {
  display: flex;
  align-items: center;
  height: 59px;
  padding: 0 16px 0 15px;
}
.option-row[hidden] { display: none; }
.option-row__name {
  margin-left: 14.5px;
  font-family: var(--font-kr);
  font-weight: 700;
  font-size: 15px;
  line-height: 22.5px;
  color: var(--ink);
  white-space: nowrap;
}
.option-row__right { display: flex; align-items: center; gap: 11px; margin-left: auto; padding-left: 10px; }
/* 좁은 폰(400px 이하)에서는 줄이 넘치지 않게 TOTAL 글자만 숨김 */
@media (max-width: 400px) {
  .option-row .total__label { display: none; }
}

.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92px;
  height: 23px;
  border: 0.8px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  line-height: 21px;
}
.qty--lg { height: 38px; }
.qty button { width: 32px; height: 100%; display: flex; align-items: center; justify-content: center; }
.qty button:disabled { cursor: default; }
.qty__num { min-width: 20px; text-align: center; }

.total { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.total__label { font-size: 13px; line-height: 19.5px; color: var(--gray-777); }
.total__price { font-weight: 700; font-size: 14px; color: var(--ink); }

.btn-cart {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 5px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}
/* 바로 결제하기: 장바구니 버튼과 같은 크기, 흰 바탕 + 검정 테두리 (테두리는 안쪽 그림자라 높이 그대로) */
.btn-buy {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--black);
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}
.product__panel .btn-buy { margin-top: 8px; }

/* ---------- 14 개인통관고유부호 ---------- */
.customs { background: var(--line-light); }
.customs__inner { padding: 34px 18px; background: var(--pink-bg); }
.customs__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: var(--ink-3);
  text-align: center;
}
.customs__desc { padding-top: 8px; font-size: 14px; line-height: 21px; color: var(--gray-888); text-align: center; }
.customs__steps { padding-top: 16px; }
.customs__step {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 16px;
  background: #fff;
}
.customs__step + .customs__step { margin-top: 10px; }
.customs__step b { display: block; font-weight: 500; font-size: 16px; line-height: 24px; color: var(--ink-3); }
.customs__step p { padding-top: 2.6px; height: 24px; font-size: 13px; line-height: 21.4px; color: var(--gray-888); }
.customs__num {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--pink-num);
  color: #fff;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
}
.customs__cta { display: flex; justify-content: center; padding-top: 16px; }
.customs__cta a {
  padding: 14px 32px;
  border-radius: 99px;
  background: var(--ink-3);
  color: #fff;
  font-size: 15px;
  line-height: 22.5px;
  white-space: nowrap;
}

/* ---------- 10 상세 정보 아코디언 ---------- */
.info { padding: 14px 16px; border-top: 0.8px solid var(--line-light); }
.info__list { padding-top: 12px; padding-bottom: 77.6px; }
.acc { border-top: 0.8px solid var(--ink); }
.acc:last-child { border-bottom: 0.8px solid var(--ink); }
.acc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 13px 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
  text-align: left;
}
.acc__body { display: none; padding: 0 0 18px; font-size: 12.5px; line-height: 20px; color: var(--gray-555); }
.acc.is-open .acc__body { display: block; }
.acc__body table { width: 100%; border-collapse: collapse; }
.acc__body th, .acc__body td { padding: 7px 0; border-bottom: 0.8px solid var(--line-light); text-align: left; vertical-align: top; font-weight: 400; }
.acc__body th { width: 34%; color: var(--gray-888); }
.acc__body p + p, .acc__body ul + p, .acc__body p + ul { margin-top: 8px; }
.acc__body ul li { position: relative; padding-left: 10px; }
.acc__body ul li::before { content: '·'; position: absolute; left: 0; }
.todo { color: var(--sale); }

/* ---------- 15 리뷰 ---------- */
.review { padding: 10px 20px 0; }
.review__head {
  padding-bottom: 20px;
  border-bottom: 1.6px solid var(--gray-555);
  font-family: 'Arial Black', 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.review__score { padding-top: 40px; text-align: center; font-size: 36px; line-height: 54px; color: var(--ink-2); }
.review__score b { font-weight: 500; }
.review__count { padding-top: 8px; text-align: center; font-size: 17px; line-height: 25.5px; color: var(--ink-2); }
.review__count b { font-weight: 700; }

.dist { padding-top: 36px; }
.dist__row { display: flex; align-items: center; gap: 20px; font-size: 12px; line-height: 18px; color: var(--gray-999); }
.dist__row + .dist__row { padding-top: 6px; }
.dist__row.is-top { font-weight: 700; color: var(--ink); }
.dist__label { width: 52px; flex: none; white-space: nowrap; }
.dist__bar { flex: 1; height: 10px; border-radius: 10px; background: var(--bar-bg); overflow: hidden; }
.dist__bar i { display: block; height: 10px; border-radius: 10px; background: var(--black); }
.dist__pct { width: 34px; flex: none; text-align: right; }

.review__invite { margin-top: 36px; padding-top: 36px; border-top: 0.8px solid var(--line); text-align: center; font-size: 14px; line-height: 21px; color: var(--gray-777); }
.btn-review {
  display: block;
  margin-top: 16px;
  padding: 16px;
  border-radius: 6px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
.review__total { padding-top: 36px; font-weight: 700; font-size: 18px; line-height: 27px; color: var(--ink-2); }

.review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 14px 0;
  border-top: 0.8px solid var(--line);
  border-bottom: 0.8px solid var(--line);
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-2);
}
.review-toolbar__photo { font-weight: 600; }
.review-toolbar__photo[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.review-toolbar__right { display: flex; align-items: center; white-space: nowrap; }
.review-toolbar__sep { margin: 0 9px; }
.review-toolbar__search { color: var(--gray-888); }
/* 정렬: 글자는 span으로 보이고, 실제 선택 상자는 투명하게 위에 덮음 */
.sort { position: relative; }
.sort select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.review-search { display: none; margin-top: 10px; }
.review-search.is-open { display: flex; gap: 6px; }
.review-search input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 0.8px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.review-search button { padding: 0 14px; border-radius: 6px; background: var(--ink-2); color: #fff; font-size: 13px; }

.star-filter { position: relative; margin-top: 12px; width: 158px; }
.star-filter select {
  appearance: none;
  -webkit-appearance: none;
  width: 158px;
  height: 46.6px;
  padding: 0 12px;
  border: 0.8px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  cursor: pointer;
}
.star-filter::after { content: '▾'; position: absolute; right: 19px; top: 12.8px; font-size: 14px; line-height: 21px; color: var(--gray-999); pointer-events: none; }

.review-list { margin-top: 4px; }
.review-item { padding: 24px 0; border-top: 0.8px solid var(--line); }
.review-item__top { display: flex; justify-content: space-between; align-items: center; }
.review-item__stars { font-weight: 700; font-size: 22px; line-height: 33px; letter-spacing: 3px; color: var(--black); white-space: nowrap; }
.review-item__stars .off { color: #ddd; }
.review-item__meta { font-size: 13px; line-height: 19.5px; color: var(--gray-555); white-space: nowrap; }
.review-item__option {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 2.4px solid #ccc;
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-333);
}
.review-item__text { padding-top: 16px; font-size: 14px; line-height: 23.8px; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.review-item__source { padding-top: 10px; font-size: 14px; line-height: 23.8px; color: var(--ink); }
.review-item__photos {
  display: flex;
  gap: 3px;
  margin-right: -20px;
  padding-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.review-item__photos::-webkit-scrollbar { display: none; }
.review-item__photos img { flex: none; width: 168px; height: 168px; object-fit: cover; }
.review-item__photo { flex: none; width: 168px; height: 168px; cursor: zoom-in; }
.review-item__photo img { max-width: none; }
.review-item__actions { display: flex; gap: 20px; padding-top: 14px; font-size: 13px; line-height: 19.5px; color: var(--gray-777); }
.review-empty { padding: 48px 0; border-top: 0.8px solid var(--line); text-align: center; font-size: 14px; color: var(--gray-888); }

.pager { display: flex; justify-content: center; gap: 6px; padding-top: 30px; }
.pager button {
  width: 44px;
  height: 44px;
  border: 0.8px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
}
.pager button.is-active { background: var(--ink-2); color: #fff; }
.pager button:disabled { color: #ccc; cursor: default; }
.review-links { padding: 14px 0 20px; text-align: center; font-size: 13px; line-height: 19.5px; color: var(--gray-777); white-space: pre; }
.review-links a + a { margin-left: 20px; }
.review-links b { color: var(--black); }

/* ---------- 17 하단 장바구니 바 ---------- */
.bottom-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--page-width);
  padding: 10px 18px 14px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, .13));
  transform: translate(-50%, 110%);
  transition: transform .25s ease;
}
.bar-visible .bottom-bar { transform: translate(-50%, 0); }
.bottom-bar__handle { display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 4px; background: #ccc; }
.bottom-bar__name {
  padding-top: 10px;
  height: 31px;
  font-family: var(--font-kr);
  font-weight: 700;
  font-size: 15px;
  line-height: 22.5px;
  color: var(--ink);
  white-space: nowrap;
}
.bottom-bar__name.is-empty { font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--gray-888); }
.bottom-bar__row { display: flex; justify-content: space-between; align-items: center; height: 48px; padding-top: 10px; }
.bottom-bar .btn-cart { margin-top: 10px; padding: 11px; }
/* 장바구니 | 바로 결제하기 나란히 (바 높이 그대로) */
.bottom-bar__btns { display: flex; gap: 8px; margin-top: 10px; }
.bottom-bar__btns .btn-cart, .bottom-bar__btns .btn-buy { flex: 1; margin-top: 0; padding: 11px; }

/* ---------- 메뉴 (☰) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__dim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(0px, calc((100vw - var(--page-width)) / 2));
  width: min(320px, 82vw);
  padding: 14px 20px 30px;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.drawer__top img { width: 88px; height: 42px; object-fit: cover; }
.drawer__close { font-size: 24px; line-height: 1; padding: 6px; }
.drawer__group { margin-top: 26px; }
.drawer__group a { display: block; padding: 14px 0; border-bottom: 0.8px solid var(--line-light); font-size: 15px; color: var(--ink); }
.drawer__group a.is-current { font-weight: 700; }
.drawer__group a small { margin-left: 4px; font-size: 12px; color: var(--gray-999); }

/* 컴퓨터 화면용 가로 메뉴 (폰에서는 숨김) */
.site-nav { display: none; }

/* ---------- 알림(토스트)·팝업 ---------- */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 40px;
  max-width: calc(min(100vw, var(--page-width)) - 40px);
  padding: 12px 18px;
  border-radius: 99px;
  background: rgba(17, 17, 17, .92);
  color: #fff;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.bar-visible .toast { bottom: 200px; }

.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .4); }
.modal.is-open { display: flex; }
.modal__box {
  width: 100%;
  max-width: var(--page-width);
  padding: 24px 20px 22px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  animation: up .22s ease;
}
.modal__title { font-weight: 700; font-size: 17px; line-height: 26px; color: var(--ink); }
.modal__text { margin-top: 6px; font-size: 14px; line-height: 21px; color: var(--gray-777); }
.modal__btns { display: flex; gap: 8px; margin-top: 20px; }
.modal__btns > * { flex: 1; padding: 13px; border-radius: 5px; font-weight: 700; font-size: 14px; line-height: 21px; text-align: center; }
.btn-line { border: 0.8px solid var(--ink); color: var(--ink); background: #fff; }
.btn-fill { background: var(--black); color: #fff; }
.modal__options { margin-top: 14px; }
.modal__options label { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; border-bottom: 0.8px solid var(--line-light); }

/* 리뷰 사진 크게 보기 (작은 팝업) */
.photo-pop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .6);
  animation: fade .15s ease;
}
.photo-pop__box { position: relative; width: min(100%, 440px); background: #fff; }
.photo-pop__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-pop__close, .photo-pop__nav {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
}
.photo-pop__close { top: 8px; right: 8px; background: rgba(0, 0, 0, .45); color: #fff; }
.photo-pop__nav { top: 50%; margin-top: -20px; background: rgba(255, 255, 255, .85); color: var(--ink); line-height: 36px; }
.photo-pop__nav--prev { left: 8px; }
.photo-pop__nav--next { right: 8px; }
.photo-pop__count {
  position: absolute;
  left: 50%;
  bottom: 10px;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  transform: translateX(-50%);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* =========================================================
   서브 페이지 공통 (장바구니·주문서·문의·리뷰작성·정책)
   ========================================================= */
.sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 16px;
  border-bottom: 1.6px solid var(--gray-555);
}
.sub-head__back { font-size: 22px; line-height: 1; padding: 2px 6px 2px 0; }
.sub-head h1 {
  font-family: 'Arial Black', 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.sub-head h1 small { margin-left: 8px; font-family: var(--font); font-weight: 500; font-size: 14px; text-transform: none; color: var(--gray-777); }
.sub-body { padding: 0 20px 40px; }
.sub-section { padding: 24px 0; border-bottom: 0.8px solid var(--line); }
.sub-section:last-child { border-bottom: 0; }
.sub-section h2 { font-weight: 700; font-size: 16px; line-height: 24px; color: var(--ink-2); margin-bottom: 14px; }
.sub-section h2 small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--gray-888); }
.sub-note { margin-top: 10px; font-size: 12px; line-height: 19px; color: var(--gray-888); }

/* 장바구니 상품 */
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 0.8px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item__img { flex: none; width: 86px; height: 107.5px; overflow: hidden; background: #fff; }
.cart-item__img img, .mini-product__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.9); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--font-kr); font-weight: 700; font-size: 14px; line-height: 21px; }
.cart-item__opt { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--gray-777); }
.cart-item__opt .swatch { width: 16px; height: 16px; background-size: 20px 20px; background-position: -3px -2px; }
.cart-item__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.cart-item__price { font-weight: 700; font-size: 15px; }
.cart-item__del { align-self: flex-start; padding: 0 0 0 6px; font-size: 20px; line-height: 1; color: var(--gray-999); }

.summary { margin-top: 18px; padding: 18px; border-radius: 6px; background: var(--bg-soft); font-size: 14px; line-height: 21px; }
.summary__row { display: flex; justify-content: space-between; color: var(--gray-555); }
.summary__row + .summary__row { margin-top: 8px; }
.summary__row.is-total { margin-top: 14px; padding-top: 14px; border-top: 0.8px solid var(--line); color: var(--ink); font-weight: 700; font-size: 16px; }
.summary__row.is-total b { font-size: 18px; }

.empty { padding: 80px 0 60px; text-align: center; }
.empty p { font-size: 15px; color: var(--gray-777); }
.empty .btn-line { display: inline-block; margin-top: 18px; padding: 12px 28px; border-radius: 5px; font-weight: 700; font-size: 14px; }

.btn-big { display: block; width: 100%; margin-top: 20px; padding: 16px; border-radius: 6px; background: var(--black); color: #fff; font-weight: 700; font-size: 16px; line-height: 24px; text-align: center; }
.btn-big:disabled { background: #bbb; cursor: default; }

/* 입력 폼 */
.field + .field { margin-top: 14px; }
.field label, .field .field__label { display: block; margin-bottom: 6px; font-size: 13px; line-height: 19px; color: var(--gray-555); }
.field label .req { color: var(--sale); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 0.8px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.field textarea { height: 150px; padding: 12px; line-height: 22px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--sale); }
.field__err { display: none; margin-top: 6px; font-size: 12px; color: var(--sale); }
.field.is-error .field__err { display: block; }
.field__row { display: flex; gap: 6px; }
.field__row > * { flex: 1; }
.field__row .btn-line { flex: none; padding: 0 14px; border-radius: 6px; font-size: 13px; }
.field__help { margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--gray-888); }
.field__help a { text-decoration: underline; color: var(--ink); }
.counter { margin-top: 6px; text-align: right; font-size: 12px; color: var(--gray-999); }

.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 20px; color: var(--gray-555); cursor: pointer; }
.check input { margin-top: 3px; accent-color: #000; }
.check + .check { margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip input + span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0.8px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.chip .swatch { width: 16px; height: 16px; background-size: 20px 20px; background-position: -3px -2px; }

.star-input { display: flex; gap: 4px; }
.star-input button { font-size: 34px; line-height: 40px; color: #ddd; }
.star-input button.is-on { color: var(--black); }
.star-input__text { margin-top: 4px; font-size: 13px; color: var(--gray-777); }

.photo-input { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-input .photo-input__add { display: flex; margin: 0; flex-direction: column; align-items: center; justify-content: center; width: 76px; height: 76px; border: 0.8px dashed #bbb; border-radius: 6px; font-size: 12px; color: var(--gray-888); cursor: pointer; }
.photo-input__add b { font-size: 22px; font-weight: 400; line-height: 24px; }
.photo-input__thumb { position: relative; width: 76px; height: 76px; }
.photo-input__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.photo-input__thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; line-height: 22px; }

.mini-product { display: flex; gap: 12px; align-items: center; }
.mini-product__img { flex: none; width: 64px; height: 80px; overflow: hidden; }
.mini-product b { display: block; font-family: var(--font-kr); font-size: 14px; }
.mini-product span { font-size: 13px; color: var(--gray-777); }

.done { padding: 70px 0 30px; text-align: center; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--pink-bg); color: var(--pink-num); font-size: 30px; line-height: 64px; }
.done h2 { font-family: var(--font-serif); font-weight: 700; font-size: 22px; line-height: 33px; color: var(--ink-3); }
.done p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--gray-777); }
.done__box { margin-top: 26px; padding: 18px; border-radius: 6px; background: var(--bg-soft); text-align: left; font-size: 14px; line-height: 22px; }
.done__box div { display: flex; justify-content: space-between; }
.done__box div + div { margin-top: 6px; }
.done__box span { color: var(--gray-777); }

.policy h2 { margin-top: 26px; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.policy p, .policy li { font-size: 13.5px; line-height: 22px; color: var(--gray-555); }
.policy ul { margin-top: 6px; }
.policy li { position: relative; padding-left: 12px; }
.policy li::before { content: '·'; position: absolute; left: 2px; }
.policy .draft { margin-top: 20px; padding: 12px 14px; border-radius: 6px; background: var(--pink-bg); font-size: 12.5px; line-height: 19px; color: var(--gray-555); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-methods label { position: relative; }
.pay-methods input { position: absolute; opacity: 0; }
.pay-methods span { display: block; padding: 14px 0; border: 0.8px solid var(--line); border-radius: 6px; text-align: center; font-size: 14px; cursor: pointer; }
.pay-methods input:checked + span { border-color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 0.8px var(--ink); }
.pay-methods input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.pay-methods--single { grid-template-columns: 1fr; }

/* 무통장 입금 계좌 안내 (주문 완료 화면) */
.bank-box { word-break: keep-all; margin-top: 26px; padding: 18px; border: 0.8px solid var(--ink); border-radius: 6px; text-align: left; }
.bank-box__title { display: block; font-weight: 700; font-size: 15px; line-height: 22px; color: var(--ink); }
.done .bank-box__lead { margin-top: 2px; font-size: 12.5px; line-height: 19px; color: var(--gray-777); }
.bank-box dl { margin-top: 14px; font-size: 14px; line-height: 22px; }
.bank-box dl div { display: flex; align-items: center; gap: 10px; }
.bank-box dl div + div { margin-top: 6px; }
.bank-box dt { flex: none; width: 64px; color: var(--gray-777); }
.bank-box dd { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); word-break: break-all; }
.bank-box dd.is-empty { font-weight: 400; color: var(--gray-999); }
.bank-box dd.is-amount { font-weight: 700; font-size: 15px; }
.bank-box .btn-mini { flex: none; }
.bank-box__warn { margin-top: 14px; padding-top: 12px; border-top: 0.8px solid var(--line-light); font-weight: 600; font-size: 13px; line-height: 20px; color: var(--sale); }
.done .bank-box__warn { margin-top: 14px; font-weight: 600; font-size: 13px; line-height: 20px; color: var(--sale); }
.bank-box .btn-mini:disabled { border-color: var(--line); color: var(--gray-999); cursor: default; }

/* 작은 버튼 (복사·조회 등) */
.btn-mini {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 0.8px solid var(--ink);
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
.btn-mini--fill { background: var(--ink); color: #fff; }

/* 반품 주소 안내 (교환·반품 신청한 분께만 보임) */
.addr-box { margin-top: 24px; padding: 16px 18px; border-radius: 6px; background: var(--bg-soft); text-align: left; }
.addr-box__label { display: block; font-size: 12px; line-height: 18px; color: var(--gray-888); }
.done .addr-box p { margin-top: 4px; font-weight: 600; font-size: 14.5px; line-height: 22px; color: var(--ink); }
.addr-box .btn-mini { margin-top: 10px; }
.done .addr-box p.addr-box__note { margin-top: 10px; font-weight: 400; font-size: 12.5px; line-height: 19px; color: var(--gray-777); }

/* =========================================================
   배송조회 (tracking.html)
   ========================================================= */
.track-intro { font-size: 13.5px; line-height: 21px; color: var(--gray-777); }
.track-form { padding-top: 18px; }
.track-err { display: none; margin-top: 12px; font-size: 13px; line-height: 19px; color: var(--sale); }
.track-err.is-show { display: block; }
.demo-badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 99px; background: var(--pink-bg); color: var(--pink-num); font-weight: 700; font-size: 11.5px; }

.track-now__label { font-size: 12px; line-height: 18px; color: var(--gray-888); }
.track-now__title { margin-top: 2px; font-family: var(--font-serif); font-weight: 700; font-size: 22px; line-height: 33px; color: var(--ink-3); }
.track-now__desc { margin-top: 2px; font-size: 13.5px; line-height: 21px; color: var(--gray-777); }
.track-now__desc a { color: var(--ink); text-decoration: underline; }
.track-now__eta { display: inline-block; margin-top: 12px; padding: 8px 12px; border-radius: 6px; background: var(--pink-bg); font-size: 13px; line-height: 19px; color: var(--gray-555); }
.track-now__eta b { margin-left: 6px; color: var(--ink); }

/* 단계 그래프 (가로) */
.stepper { display: flex; margin-top: 28px; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stepper li + li::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--ink); }
.stepper__dot { position: relative; z-index: 1; width: 14px; height: 14px; border: 1.6px solid #ccc; border-radius: 50%; background: #fff; }
.stepper li.is-done .stepper__dot { border-color: var(--ink); background: var(--ink); }
.stepper li.is-current .stepper__dot { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pink-num); }
.stepper__label { margin-top: 10px; font-size: 11.5px; line-height: 16px; color: var(--gray-999); white-space: nowrap; }
.stepper li.is-done .stepper__label { color: var(--gray-555); }
.stepper li.is-current .stepper__label { font-weight: 700; color: var(--ink); }

/* 진행 기록 (타임라인) */
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 13px 0; border-top: 0.8px solid var(--line-light); }
.timeline li:first-child { padding-top: 0; border-top: 0; }
.timeline time { font-size: 12px; line-height: 21px; color: var(--gray-888); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline b { display: block; font-weight: 600; font-size: 14px; line-height: 21px; color: var(--gray-555); }
.timeline p { margin-top: 1px; font-size: 12.5px; line-height: 19px; color: var(--gray-888); }
.timeline li.is-latest b { font-weight: 700; color: var(--ink); }
.timeline__tag { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: 10.5px; line-height: 16px; vertical-align: 1px; }

/* 송장 */
.parcel { padding: 14px 16px; border: 0.8px solid var(--line); border-radius: 6px; }
.parcel + .parcel { margin-top: 8px; }
.parcel__courier { font-size: 12.5px; line-height: 19px; color: var(--gray-777); }
.parcel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.parcel__btns { display: flex; gap: 6px; }
.parcel__no { margin-right: auto; font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.track-help { display: flex; gap: 8px; }
.track-help a { flex: 1; padding: 13px 0; border-radius: 5px; font-weight: 700; font-size: 14px; line-height: 21px; text-align: center; }

/* =========================================================
   Q&A (qna.html)
   ========================================================= */
.qna-list { padding-top: 20px; }
.qna-list .acc__head { font-size: 14px; line-height: 21px; }
.qna-list .acc__body { font-size: 13.5px; line-height: 22px; }
.qna-list .acc__body a { color: var(--ink); text-decoration: underline; }
.qna-more { padding: 36px 0 10px; text-align: center; }
.qna-more p { font-size: 14px; line-height: 21px; color: var(--gray-777); }
.qna-more .btn-big { margin-top: 14px; }

/* =========================================================
   컴퓨터 화면 (가로 900px 이상): 폭에 맞게 늘어나는 웹페이지
   ========================================================= */
@media (min-width: 900px) {
  body { background: #fff; }
  .page, .page.has-bottom-bar { max-width: none; padding-bottom: 0; }

  /* 상단: 로고 왼쪽, 메뉴 오른쪽 */
  .site-header {
    height: 76px;
    padding: 0 max(40px, calc((100% - 1200px) / 2));
    border-bottom: 0.8px solid var(--line-light);
  }
  .site-header__menu, .site-header__cart { display: none; }
  .site-header__logo { width: 104px; height: 50px; }
  .site-nav { display: flex; align-items: center; gap: 30px; }
  .site-nav a { position: relative; font-size: 14px; line-height: 21px; color: var(--gray-555); white-space: nowrap; }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a.is-current { font-weight: 700; color: var(--ink); }
  .site-nav a small { font-size: 12px; color: var(--gray-999); }
  #customs, #info, #review, #reviewTotal, #colorPicker, #trResult { scroll-margin-top: 96px; }

  /* 상품: 왼쪽 사진 4장(한 줄로 크게, 아래로), 오른쪽 구매 영역(스크롤해도 따라옴) */
  .product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 40px 90px;
  }
  .product__gallery { display: grid; grid-template-columns: 1fr; gap: 6px; container-type: inline-size; }
  /* 대표 사진: 첫 화면 안에 다 보이게 높이를 화면에 맞춤 (지갑은 그대로, 위아래 핑크 배경만 줄어듦)
     최소 72cqw = 지갑 위아래에 여백이 남는 높이 / 최대 125cqw = 사진 원래 비율(4:5) 전체 */
  .product__gallery .photo--hero { height: clamp(72cqw, calc(100vh - 144px), 125cqw); }
  .product__panel { position: sticky; top: 112px; }
  .product__panel .product-title { padding: 0; font-size: 22px; line-height: 33px; }
  .product__panel .product-price { height: auto; padding: 10px 0 24px; }
  .product-price__now { font-size: 22px; line-height: 33px; }
  .product-price__rate { margin-left: 8px; font-size: 15px; }
  .product-price__was { margin-left: 8px; font-size: 16px; }
  .product-price__ship { margin-left: 12px; font-size: 14px; }
  .color-picker { min-height: 0; padding: 22px 0; border-top: 0.8px solid var(--line); }
  .color-picker__title { font-size: 16px; }
  .color-picker__label { margin-top: 2px; font-size: 13px; }
  .color-picker__list { gap: 10px; margin-top: 12px; }
  .option-row { height: 64px; padding: 0; border-top: 0.8px solid var(--line-light); }
  .option-row .total__label { display: inline; }
  .product__panel .btn-cart { margin-top: 12px; padding: 16px; font-size: 15px; }
  .product__panel .btn-buy { margin-top: 8px; padding: 16px; font-size: 15px; }
  .bottom-bar { display: none; }

  .float-inquiry, .has-bottom-bar.bar-visible .float-inquiry { right: 32px; bottom: 32px; padding: 16px 20px; font-size: 13px; }
  .toast, .bar-visible .toast { bottom: 48px; }

  /* 통관부호 안내: 3단계를 가로로 */
  .customs__inner { padding: 72px 40px; }
  .customs__title { font-size: 30px; line-height: 44px; }
  .customs__desc { padding-top: 10px; font-size: 15px; line-height: 24px; }
  .customs__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; padding-top: 32px; } /* 1040: 3단계 설명이 한 줄에 들어가는 폭 */
  .customs__step + .customs__step { margin-top: 0; }
  .customs__step { padding: 20px 20px 20px 62px; }
  .customs__step p { height: auto; }
  .customs__num { top: 20px; left: 18px; }
  .customs__cta { padding-top: 28px; }
  .customs__step p { white-space: nowrap; }

  /* 상세 정보·교환 환불 */
  .info { max-width: 880px; margin: 0 auto; padding: 72px 40px 0; border-top: 0; }
  .info__list { padding-bottom: 40px; }
  .acc__head { padding: 18px 0; font-size: 15px; line-height: 22px; }
  .acc__body { padding-bottom: 22px; font-size: 14px; line-height: 24px; }

  /* 리뷰: 평점과 막대그래프를 옆으로 */
  .review { max-width: 880px; margin: 0 auto; padding: 60px 40px 40px; }
  .review__head { font-size: 24px; line-height: 36px; }
  .review__summary { display: flex; align-items: center; gap: 56px; padding-top: 40px; }
  .review__avg { flex: none; width: 220px; }
  .review__score { padding-top: 0; }
  .dist { flex: 1; padding-top: 0; }
  .dist__row + .dist__row { padding-top: 10px; }
  .btn-review { max-width: 360px; margin-left: auto; margin-right: auto; }
  .review-item__photos { margin-right: 0; }

  /* 서브 페이지: 가운데 정렬된 넓은 칸 */
  .sub-head, .sub-body { width: min(760px, calc(100% - 80px)); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .page--wide .sub-head, .page--wide .sub-body { width: min(1080px, calc(100% - 80px)); }
  .sub-head { padding-top: 48px; padding-bottom: 18px; }
  .sub-head h1 { font-size: 24px; line-height: 36px; }
  .sub-head h1 small { font-size: 15px; }
  .sub-body { padding-bottom: 100px; }
  .done { max-width: 480px; margin: 0 auto; }

  /* 장바구니·주문서: 왼쪽 내용, 오른쪽 결제 금액(따라옴) */
  .cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .cart-side { position: sticky; top: 112px; }
  .cart-side .summary { margin-top: 0; }
  .order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; align-items: start; }
  .order-grid > .sub-section { grid-column: 1; }
  .order-grid > .order-side { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 100px; border-bottom: 0; }

  /* 팝업: 아래에서 올라오는 대신 가운데 */
  .modal { align-items: center; }
  .modal__box { max-width: 420px; border-radius: 12px; }

  /* 배송조회 */
  .stepper__label { font-size: 13px; }
  .timeline li { grid-template-columns: 120px 1fr; }
}

/* 좁은 컴퓨터 창(900~1099px): 통관 3단계를 위아래로 쌓아 설명이 한 줄로 보이게 */
@media (min-width: 900px) and (max-width: 1099px) {
  .customs__steps { grid-template-columns: 1fr; max-width: 520px; gap: 10px; }
}

/* 컴퓨터(마우스 있을 때만): 대표 사진에 커서를 올리면 핑크배경 뒷면. 누르는 동작은 없음 */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .photo__back { display: block; position: absolute; inset: 0; opacity: 0; }
  .photo--hero:hover .photo__back { opacity: 1; }
}

/* =========================================================
   버튼 반응 (2026-12-04, 미우미우 상품 페이지 참고 — 모양은 그대로, 반응만)
   - 검정 버튼: 커서를 올리거나 누르면 진회색(#4b4b4b)으로 0.15초
   - 테두리 버튼·칩: 커서를 올리거나 누르면 테두리·글자가 진회색
   - 밑줄 링크: 원래 밑줄이 오른쪽으로 빠지고, 새 밑줄이 왼쪽부터 0.5초 동안 그어짐
   - 컴퓨터 메뉴: 커서를 올리면 밑줄이 왼쪽부터 그어짐
   - 색상 동그라미: 커서를 올리면 얇은 테두리가 바로 보임 (애니메이션 없음)
   - 커서 반응은 마우스가 있을 때만, 누를 때 반응은 폰에서도
   ========================================================= */
:root { --hover-ink: #4b4b4b; --ease-out: cubic-bezier(.4, 0, .2, 1); }
a, button, label { -webkit-tap-highlight-color: transparent; }

.btn-cart, .btn-big, .btn-review, .btn-fill, .btn-mini, .btn-line, .customs__cta a, .chip input + span, .pay-methods span {
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn-buy { transition: color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.float-inquiry { transition: bottom .25s ease, background-color .15s var(--ease-out); }

/* 누를 때 (폰 포함) */
.btn-cart:not(:disabled):active, .btn-big:not(:disabled):active, .btn-review:active, .btn-fill:active,
.float-inquiry:active, .customs__cta a:active, .btn-mini--fill:active { background: var(--hover-ink); }
.btn-line:active, .btn-mini:not(.btn-mini--fill):not(:disabled):active { border-color: var(--hover-ink); color: var(--hover-ink); }
.btn-buy:active { box-shadow: inset 0 0 0 1px var(--hover-ink); color: var(--hover-ink); }
.chip input:not(:checked) + span:active, .pay-methods input:not(:checked) + span:active { border-color: var(--hover-ink); }

/* 키보드로 고를 때 테두리 */
.btn-cart:focus-visible, .btn-buy:focus-visible, .btn-big:focus-visible, .btn-review:focus-visible, .btn-fill:focus-visible, .btn-line:focus-visible,
.btn-mini:focus-visible, .float-inquiry:focus-visible, .customs__cta a:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }

/* 밑줄 링크: ::after = 원래 밑줄, ::before = 새로 그어지는 밑줄 */
.u-link, .field__help a, .track-now__desc a, .qna-list .acc__body a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.u-link::before, .u-link::after, .field__help a::before, .field__help a::after,
.track-now__desc a::before, .track-now__desc a::after, .qna-list .acc__body a::before, .qna-list .acc__body a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  pointer-events: none;
}
.u-link::before, .field__help a::before, .track-now__desc a::before, .qna-list .acc__body a::before { width: 0; transition: width .5s var(--ease-out); }
.u-link::after, .field__help a::after, .track-now__desc a::after, .qna-list .acc__body a::after { width: 100%; transition: left .5s var(--ease-out), width .5s var(--ease-out); }
@media (min-width: 900px) {
  .site-nav a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color .2s var(--ease-out), background-size .5s var(--ease-out);
  }
}

/* 커서 올렸을 때 (마우스 있을 때만) */
@media (hover: hover) and (pointer: fine) {
  .btn-cart:not(:disabled):hover, .btn-big:not(:disabled):hover, .btn-review:hover, .btn-fill:hover,
  .float-inquiry:hover, .customs__cta a:hover, .btn-mini--fill:hover { background: var(--hover-ink); }
  .btn-line:hover, .btn-mini:not(.btn-mini--fill):not(:disabled):hover { border-color: var(--hover-ink); color: var(--hover-ink); }
  .btn-buy:hover { box-shadow: inset 0 0 0 1px var(--hover-ink); color: var(--hover-ink); }
  .chip input:not(:checked) + span:hover, .pay-methods input:not(:checked) + span:hover { border-color: var(--hover-ink); }
  .swatch-btn[aria-checked="false"]:hover::after { opacity: 1; border-width: 1px; border-color: var(--hover-ink); }
  .u-link:hover::before, .field__help a:hover::before, .track-now__desc a:hover::before, .qna-list .acc__body a:hover::before { width: 100%; }
  .u-link:hover::after, .field__help a:hover::after, .track-now__desc a:hover::after, .qna-list .acc__body a:hover::after { left: 100%; width: 0; transition-duration: .2s; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background-size: 100% 1px; }
}
