/* ===== 기본 색·글꼴 ===== */
:root {
  --cream: #fffaf3;
  --pink: #ffd6e3;
  --pink-deep: #f27aa0;
  /* 글자가 올라가는 분홍 (흰 글자·분홍 글자 대비 4.5:1 이상). 장식(테두리·밑줄)은 --pink-deep 그대로 */
  --pink-strong: #d23d72;
  --pink-text: #c93468;
  --sky: #cfeaff;
  --mint: #d6f3e4;
  --butter: #fff0c9;
  --lilac: #ece0ff;
  --ink: #3d3346;
  --ink-soft: #776d80;
  --line: #f0e6ea;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(242, 122, 160, 0.12);
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container--narrow { width: min(760px, 92%); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pink-text);
  margin-bottom: .6em;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink-strong); color: var(--white); box-shadow: 0 8px 20px rgba(210,61,114,.3); }
.btn--ghost { background: var(--white); border-color: var(--pink); color: var(--ink); }
.btn--small { padding: .5em 1em; font-size: .9rem; background: var(--ink); color: var(--white); }
.btn--small:hover { background: var(--pink-strong); }
.text-link { font-family: var(--font-head); font-weight: 600; color: var(--pink-text); }
.pill {
  display: inline-block; padding: .1em .6em; border-radius: 999px;
  background: var(--pink-strong); color: var(--white);
  font-size: .72rem; font-weight: 700; vertical-align: middle; margin-left: .3em;
}

/* ===== ① 공지 바 ===== */
.announce {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: .85rem;
  padding: .55em 1em;
}

/* ===== ② 헤더 ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; }
.logo__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink); color: var(--pink-text); font-size: 1.1rem;
}
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 700; }
.nav a { position: relative; padding: .3em 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 3px; background: var(--pink-deep);
  transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: .9rem; }
.currency { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.currency__btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--ink-soft);
  padding: .35em .8em; border-radius: 999px;
}
.currency__btn.is-active { background: var(--pink); color: var(--ink); }
.cart { position: relative; font-size: 1.4rem; }
.cart__count {
  position: absolute; top: -6px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--pink-strong); color: var(--white);
  font-size: .7rem; font-weight: 700;
}
.menu-toggle { display: none; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
/* 헤더 가운데 검색창 (넓은 화면). 좁은 화면에서는 숨기고 돋보기 아이콘만 */
.header-search {
  flex: 1 1 auto; min-width: 0; max-width: 400px;
  display: flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 1rem; height: 42px; color: var(--ink-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within { border-color: var(--pink-deep); box-shadow: 0 0 0 4px var(--pink); }
.header-search .ico { width: 20px; height: 20px; flex: none; }
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .95rem; color: var(--ink);
}
.header-search input::placeholder { color: var(--ink-soft); opacity: .8; }
.header-search { position: relative; }
.header-search input::-webkit-search-cancel-button { cursor: pointer; }
/* 검색 미리보기 목록 */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  min-width: 320px; max-height: min(70vh, 480px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(61, 51, 70, .14); padding: .4rem;
}
.suggest-item { display: flex; align-items: center; gap: .75rem; padding: .45rem .55rem; border-radius: 12px; color: var(--ink); }
.suggest-item:hover, .suggest-item.is-active, .suggest-all:hover, .suggest-all.is-active { background: var(--cream); }
.suggest-item__img {
  flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; font-size: 1.5rem; background: var(--c, var(--pink));
}
.suggest-item__img img { width: 100%; height: 100%; object-fit: cover; }
.suggest-item__text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.suggest-item__text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item__text small { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item__price { flex: none; font-weight: 700; font-size: .9rem; }
.suggest-item.is-sold { opacity: .6; }
.suggest-item.is-sold .suggest-item__price { font-weight: 600; color: var(--ink-soft); }
.suggest-all { display: block; margin-top: .2rem; padding: .65rem .55rem; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; font-weight: 700; font-size: .9rem; color: var(--pink-text); }
.suggest-empty { margin: 0; padding: .8rem .6rem; color: var(--ink-soft); font-size: .9rem; }
.suggest-alert { padding: 0 .6rem .7rem; margin-top: -.35rem; font-size: .88rem; }
.suggest-alert .ico { width: 16px; height: 16px; vertical-align: -3px; }
/* 보이는 크기는 작게, 누르는 영역은 휴대폰 손가락만큼 (위아래 패딩 + 같은 만큼 음수 마진) */
.suggest-alert__link { background: none; border: 0; padding: .7em 0; margin: -.7em 0; font: inherit; font-weight: 700; color: var(--pink-text); cursor: pointer; }
.suggest-alert__link:hover { text-decoration: underline; }
.suggest-alert__form { display: flex; align-items: center; gap: .6rem; }
.suggest-alert__form input { flex: 1; min-width: 0; padding: .35em .1em; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; }
.suggest-alert__form input:focus { outline: none; border-bottom-color: var(--pink); }
.suggest-alert__msg { display: block; color: var(--pink-text); }
.suggest-alert__done { color: var(--ink-soft); }
.header__actions .icon-link--search { display: none; }

/* ===== ③ 히어로 ===== */
.hero { padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero__pay { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.hero__pay li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: .35em .9em; font-size: .88rem; font-weight: 700;
}
.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob--pink { width: 78%; height: 78%; background: var(--pink); top: 4%; left: 2%; }
.blob--sky { width: 55%; height: 55%; background: var(--sky); bottom: 0; right: 0; }
.hero__photo {
  position: absolute; inset: 14%;
  border-radius: 40% 40% 32px 32px;
  background: var(--white);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  background-image: radial-gradient(circle at 30% 25%, #fff 0 30%, #fdf0f4 100%);
}
.photo-hint { color: var(--ink-soft); font-size: .9rem; text-align: center; font-weight: 700; }
.floating {
  position: absolute; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow); font-size: 1.8rem;
  animation: bob 4s ease-in-out infinite;
}
.floating--1 { top: 6%; right: 8%; }
.floating--2 { bottom: 12%; left: 0; animation-delay: -1.3s; }
.floating--3 { bottom: 2%; right: 26%; animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-6deg); } }

/* ===== ④ 신뢰 배지 ===== */
.trust { padding: 1.4rem 0; background: var(--white); border-block: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trust__item { display: flex; gap: .8rem; align-items: flex-start; }
.trust__item > span { font-size: 1.6rem; line-height: 1; }
.trust__item strong { font-family: var(--font-head); display: block; }
.trust__item p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* ===== 공통 섹션 ===== */
.section { padding: 5rem 0; }
.section--tint { background: linear-gradient(180deg, #fff1f5 0%, var(--cream) 100%); }
.section__head { text-align: center; margin-bottom: 2.6rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 1rem; flex-wrap: wrap; }
.section__head--row h2 { margin: 0; }

/* ===== ⑤ 유형별 카드 ===== */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.type-card {
  border-radius: var(--radius); padding: 1.8rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.type-card--cream { background: var(--butter); }
.type-card--pink { background: var(--pink); }
.type-card--sky { background: var(--sky); }
.type-card--mint { background: var(--mint); }
.type-card__icon {
  width: 56px; height: 56px; border-radius: 18px; background: var(--white);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem;
}
.type-card p { color: var(--ink-soft); flex: 1; }
.type-card__link { font-family: var(--font-head); font-weight: 600; }

/* ===== ⑥ 시리즈 ===== */
.series { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.series-card { text-align: center; font-family: var(--font-head); font-weight: 600; }
.series-card__img {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--c); border: 5px solid var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 2.6rem; margin-bottom: .7rem;
  transition: transform .2s ease;
}
.series-card:hover .series-card__img { transform: scale(1.06) rotate(-4deg); }

/* ===== ⑦ 한정판 ===== */
.limited { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.limited__visual {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--lilac) 0 22px, #f5edff 22px 44px);
  display: grid; place-items: center;
}
.limited__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--ink); color: var(--white);
  padding: .4em 1em; border-radius: 999px; font-family: var(--font-head); font-size: .85rem;
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.checklist li { padding-left: 1.8em; position: relative; margin-bottom: .5em; font-weight: 600; }
.checklist li::before { content: "♥"; position: absolute; left: 0; color: var(--pink-deep); }

/* ===== ⑧ 상품 카드 ===== */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__img {
  position: relative; aspect-ratio: 1; background: var(--c);
  display: grid; place-items: center; font-size: 4rem;
}
.tag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--white); border-radius: 999px; padding: .25em .75em;
  font-size: .72rem; font-weight: 700; font-family: var(--font-body);
}
.tag--rare { background: var(--ink); color: var(--white); }
.tag--new { background: var(--pink-strong); color: var(--white); }
.product__body { padding: 1rem 1.1rem 1.2rem; }
.product__series { margin: 0; font-size: .8rem; color: var(--ink-soft); font-weight: 700; }
.product__body h3 { margin: .15em 0 .8em; }
.product__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }

/* ===== ⑨ 주문 단계 ===== */
.steps {
  list-style: none; padding: 0; margin: 0 0 2.4rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  counter-reset: step;
}
.step {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  border: 1px solid var(--line); position: relative;
}
.step__num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pink); color: var(--pink-text);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: .9rem;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.step strong { color: var(--ink); }
.pay-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pay-box__item {
  border-radius: var(--radius); padding: 1.5rem 1.6rem; background: var(--sky);
}
.pay-box__item--highlight { background: var(--mint); }
.pay-box__item strong { font-family: var(--font-head); font-size: 1.15rem; display: block; margin-bottom: .4em; }
.pay-box__item p { margin: 0; color: var(--ink-soft); }

/* ===== ⑩ 배송표 ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.ship-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ship-table th, .ship-table td { padding: 1rem 1.3rem; text-align: left; }
.ship-table th { font-family: var(--font-head); background: var(--pink); }
.ship-table tr + tr td { border-top: 1px solid var(--line); }
.ship-table tr.is-main td { background: #fff6f9; font-weight: 700; }
.note { margin-top: 1.2rem; font-size: .92rem; color: var(--ink-soft); }

/* ===== ⑪ 후기 ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.review {
  margin: 0; background: var(--white); border-radius: var(--radius);
  padding: 1.6rem; border: 1px solid var(--line);
}
.stars { color: #ffb547; letter-spacing: .1em; margin-bottom: .5em; }
.review p { font-weight: 600; }
.review cite { font-style: normal; color: var(--ink-soft); font-size: .9rem; }
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; margin-bottom: 1.4rem; }
.insta__tile { aspect-ratio: 1; border-radius: 16px; background: var(--c); }

/* ===== ⑫ FAQ ===== */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.1rem 1.4rem; margin-bottom: .8rem;
}
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--pink-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* ===== ⑬ 뉴스레터 ===== */
.newsletter {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  background: var(--pink); border-radius: 32px; padding: 2.6rem 3rem;
}
.newsletter h2 { margin-bottom: .2em; }
.newsletter p { margin: 0; color: var(--ink-soft); }
.newsletter__form { display: flex; gap: .6rem; flex: 1; max-width: 440px; }
.newsletter__form input {
  flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: .85em 1.3em;
  font: inherit; background: var(--white);
}

/* ===== ⑭ 푸터 ===== */
.footer { background: var(--ink); color: #e9e2ee; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-top: .6rem; }
.footer a { display: block; margin-bottom: .4em; opacity: .85; }
.footer a:hover { opacity: 1; color: var(--pink); }
.logo--footer { color: var(--white); }
.footer__small { font-size: .9rem; opacity: .8; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem;
  font-size: .78rem; opacity: .65;
}
.footer__legal p { margin-bottom: .4em; }

/* ===== 반응형 ===== */
@media (max-width: 960px) {
  .hero__inner, .limited { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .types, .products, .steps { grid-template-columns: repeat(2, 1fr); }
  .series { grid-template-columns: repeat(3, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .insta { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav a { padding: 1rem 4%; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.is-open { max-height: 400px; }
  .header__inner { gap: 1rem; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .header-search { display: none; }
  .header__actions .icon-link--search { display: inline-flex; }
}
@media (max-width: 560px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0; }
  .products { gap: .8rem; }
  .product__foot { flex-direction: column; align-items: flex-start; }
  .product__foot .btn { width: 100%; }
  .steps, .pay-box { grid-template-columns: 1fr; }
  .newsletter { padding: 2rem 1.5rem; }
  .newsletter__form { flex-direction: column; max-width: none; }
  .currency { display: none; }
}

/* ===== 빈티지 단품용 추가 ===== */
.grade {
  position: absolute; top: .8rem; right: .8rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
}
.grade--inline { position: static; flex: none; }
.product__incl { margin: -.4em 0 .8em; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.tag--sold { background: var(--ink-soft); color: var(--white); }
.product.is-sold .product__img { filter: grayscale(.7); opacity: .7; }
.product.is-sold .price { text-decoration: line-through; color: var(--ink-soft); }
.btn[disabled] { background: var(--line); color: var(--ink-soft); cursor: not-allowed; transform: none; }
.series--spaced { margin-top: 3rem; }
.grades { display: grid; gap: .9rem; margin-bottom: 1.2rem; }
.grades__row { display: flex; gap: 1rem; align-items: flex-start; }
.grades__row strong { font-family: var(--font-head); }
.grades__row p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.small-note { font-size: .9rem; color: var(--ink-soft); }

/* ===== 하위 페이지 공통 ===== */
.section--top { padding-top: 2.2rem; }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--pink-text); }
.page-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .2em; }
.muted { color: var(--ink-soft); }
.btn--block { width: 100%; }
.product h3 a:hover { color: var(--pink-text); }
.tag--hold { background: #ffb547; color: var(--white); }
.dev-note {
  margin-top: 1rem; padding: .7em 1em; border-radius: 12px;
  background: #fff7d6; border: 1px dashed #e8c75a; font-size: .82rem; color: #7a6320;
}

/* ===== 전체 상품 목록 ===== */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sort { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.sort select, .filters select, .select {
  font: inherit; padding: .55em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filters {
  position: sticky; top: 90px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.filters summary { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters__group { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.filters__group:last-of-type { border-bottom: 0; margin-bottom: .6rem; }
.filters__group h4 { font-size: .95rem; margin-bottom: .6em; }
.filters select { width: 100%; }
.shop-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.shop-search { width: 260px; max-width: 100%; font: inherit; padding: .55em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.shop-search:focus { outline: 2px solid var(--pink); border-color: var(--pink-deep); }
.check { display: flex; align-items: center; gap: .5em; margin-bottom: .45em; cursor: pointer; font-size: .95rem; }
.check input { accent-color: var(--pink-deep); width: 16px; height: 16px; }
.grade--sm { width: 24px; height: 24px; font-size: .75rem; border-width: 1.5px; }
.products--3 { grid-template-columns: repeat(3, 1fr); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-soft); }

/* ===== 상품 상세 ===== */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.gallery__main {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--c);
  display: grid; place-items: center;
}
.gallery__emoji { font-size: clamp(6rem, 14vw, 10rem); }
.gallery__label {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.85); border-radius: 999px; padding: .3em 1em; font-size: .85rem; font-weight: 700;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-top: .8rem; }
.thumb {
  aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--c);
  font-size: 1.5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.thumb small { font-size: .55rem; font-weight: 700; color: var(--ink-soft); line-height: 1.1; }
.thumb.is-active { border-color: var(--pink-deep); }
.pdp__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .3em; }
.pdp__price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin-bottom: .3em; }
.pdp__ship { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .9rem; }
.pdp__facts { display: flex; align-items: center; gap: .4rem; font-size: .93rem; margin: 0 0 1.2rem; }
.pdp__facts .ico { color: var(--pink-deep); flex: none; }
.pdp__qty { display: flex; align-items: center; gap: .8rem; margin: 0 0 .8rem; font-weight: 700; font-size: .93rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--pink); border-radius: 999px; background: var(--white); }
.qty__btn { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; color: var(--pink-text); cursor: pointer; border-radius: 999px; }
.qty__btn:disabled { color: #d6cfd9; cursor: default; }
.qty__n { min-width: 2ch; text-align: center; font-weight: 700; }
.cart-item .qty { margin-top: .4rem; }
.cart-item .qty__btn { width: 36px; height: 36px; }
.status { font-weight: 700; color: var(--pink-text); }
.status--sold { color: var(--ink-soft); }
.status--hold { color: #d48a12; }
.pdp__grade {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; margin: 1.2rem 0 1rem;
}
.pdp__grade p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.includes { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.includes li { padding: .35em .9em; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.includes .yes { background: var(--mint); }
.includes .no { background: #f2eef3; color: var(--ink-soft); }
.pdp__actions { display: grid; gap: .6rem; }
.pdp__actions .btn { padding: 1em; font-size: 1.1rem; text-align: center; }
.pdp__actions .btn--ghost { border-width: 2px; color: var(--pink-text); }
.pdp__incart { margin: 0; font-weight: 700; color: var(--pink-text); }
.pdp__note { margin: .6rem 0 0; }
.perks { margin: 1.2rem 0 1.4rem; display: grid; gap: .5rem; font-size: .93rem; }
.perks > div { background: #fff6f9; border-radius: 12px; padding: .6em 1em; }
.faq--compact details { padding: .9rem 1.1rem; }
.faq--compact summary { font-size: 1rem; }
.related { margin-top: 4.5rem; }
.related h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }

/* ===== 장바구니 ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.4rem; align-items: start; margin-top: 1.2rem; }
.cart-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: .8rem; margin-bottom: .7rem;
}
.cart-item__img { aspect-ratio: 1; border-radius: 14px; background: var(--c); display: grid; place-items: center; font-size: 2.4rem; }
.cart-item__info p { margin: 0; }
.cart-item__side { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.link-btn { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.step-title { margin: 1.8rem 0 .8rem; font-size: 1.1rem; }
.select { width: 100%; max-width: 360px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice {
  display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: .9rem 1rem;
}
.choice.is-active { border-color: var(--pink-deep); background: #fff6f9; }
.choice input { accent-color: var(--pink-deep); margin-top: .3em; }
.choice small { display: block; color: var(--ink-soft); font-size: .82rem; }
.summary {
  position: sticky; top: 90px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.summary dl { margin: 0 0 1.2rem; }
.summary dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .95rem; }
.summary dt small { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 700; white-space: nowrap; }
.summary .good dd { color: #2f9e6a; }
.summary .muted dd { font-weight: 600; }
.summary .total { border-top: 2px solid var(--line); margin-top: .4rem; padding-top: .8rem; font-family: var(--font-head); font-size: 1.25rem; }
.summary__note { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }
.btn--paypal { background: #ffc439; color: #1b2a4e; }
.empty-cart, .placed { text-align: center; padding: 3rem 1rem; max-width: 640px; margin: 0 auto; }
.placed__icon { font-size: 3.5rem; }
.bank {
  display: grid; gap: .5rem; text-align: left; margin: 1.4rem 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.4rem;
}
.bank > div { display: flex; justify-content: space-between; gap: 1rem; }
.bank span { color: var(--ink-soft); }
.bank__why { margin: 0; line-height: 1.45; }

@media (max-width: 960px) {
  .shop, .pdp, .cart-layout { grid-template-columns: 1fr; }
  .filters, .summary { position: static; }
  .products--3 { grid-template-columns: repeat(2, 1fr); }
  .pdp { gap: 1.6rem; }
}
@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item__side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* Wise 결제 버튼 */
.btn--wise { background: #9fe870; color: #163300; margin: .4rem 0 1rem; }
.wise-steps { text-align: left; margin: 0 auto 1rem; padding-left: 1.2em; color: var(--ink-soft); font-size: .93rem; }
.wise-steps li { margin-bottom: .3em; }
.bank > div:has(.copy-btn) { align-items: center; gap: .7rem; }
.bank > div:has(.copy-btn) span { flex: 1; }
.copy-btn {
  flex: none; min-width: 5.4em; border: 1.5px solid var(--pink); background: var(--white); color: var(--pink-text);
  border-radius: 999px; padding: .3em .9em; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.copy-btn:hover { background: #fff6f9; }
.copy-btn.is-done { background: #2f9e6a; border-color: #2f9e6a; color: var(--white); }
.wise-note { margin: -.3rem 0 1.2rem; }

/* ===== v1 구조 개편 ===== */
.product { position: relative; }
.product > .grade { top: .8rem; right: 3.2rem; z-index: 2; }
.wish {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--pink-text); font-size: 1.1rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.wish.is-on { background: var(--pink-strong); color: var(--white); }
.pdp__buy { display: flex; gap: .6rem; align-items: stretch; }
.pdp__buy .wish { position: static; width: 56px; height: auto; border-radius: 999px; font-size: 1.4rem; flex: none; border: 2px solid var(--pink); }
.icon-link { font-size: 1.25rem; }
.nav a.is-current::after { transform: scaleX(1); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section--slim { padding: 2.4rem 0; }

/* 주문 방법 한 줄 */
.steps-line { background: var(--white); border-block: 1px solid var(--line); padding: 1.2rem 0; }
.steps-line__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; justify-content: center; font-weight: 700; }
.steps-line b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink); color: var(--pink-text); font-family: var(--font-head); margin-right: .3em;
}
.steps-line__arrow { color: var(--ink-soft); }

/* 등급 한 줄 */
.grade-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: center; }
.grade-row__item { display: flex; gap: .6rem; align-items: center; }
.grade-row__item p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.grade-row__item strong { font-family: var(--font-head); }

/* 글 페이지 */
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose ul:not(.checklist) { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.numbered { padding-left: 1.3em; }
.numbered li { margin-bottom: .5em; }
.toc { margin: .5rem 0 1rem; font-weight: 700; }
.toc a { color: var(--pink-text); }
.grades--cards .grades__row { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem; }

/* 양식 */
.form-card, .checkout { display: grid; gap: .2rem; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.2rem; }
.field { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.field input, .field textarea, .field select {
  font: inherit; font-weight: 400; padding: .7em .9em; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--pink); border-color: var(--pink-deep); }
.field .select { max-width: none; }
.field-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.form-error { color: #c0392b; font-weight: 700; }
.note-box { background: #fff6f9; border-radius: 12px; padding: .7em 1em; font-size: .92rem; margin: .6rem 0; }

/* 상품 상세 추가 */
.landed { display: grid; gap: .2rem; background: var(--white); border: 1px dashed var(--pink); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .9rem; }
.landed span { font-size: .85rem; color: var(--ink-soft); }
.landed strong { font-family: var(--font-head); font-size: 1.1rem; }
.pdp__pkg { margin-bottom: 1.2rem; }
.pdp__pkg .includes { margin-bottom: .4rem; }
.ask { margin: 1rem 0 .8rem; font-size: .92rem; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; font-size: .92rem; }
.share__label { font-weight: 700; margin-right: .15rem; }
.share__btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--white); background: var(--ink); transition: transform .15s;
}
.share__btn:hover { transform: translateY(-2px); }
.share__btn svg { width: 19px; height: 19px; }
.share__btn--facebook { background: #fff; color: #1877f2; }
.share__btn--facebook svg { width: 40px; height: 40px; }
.share__btn--x { background: #000; }
.share__btn--pinterest { background: #fff; color: #e60023; }
.share__btn--pinterest svg { width: 40px; height: 40px; }
.share__btn--native, .share__btn--link { background: var(--white); color: var(--pink-text); box-shadow: inset 0 0 0 2px var(--pink); }
.notify { background: #fff6f9; border-radius: 18px; padding: 1rem 1.2rem; }
.notify .newsletter__form { max-width: none; }
.notify input { border: 1px solid var(--line); }
.keyword-alert { max-width: 560px; margin: 1.6rem auto 0; }
/* 주문 링크 다시 받기 (주문 찾기 화면의 한 줄) */
.resend { max-width: 460px; margin: 1rem 0; display: grid; gap: .4rem; }
.resend__row { display: flex; gap: .5rem; }
.resend__row input { flex: 1; min-width: 0; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
/* 내 알림 페이지 */
.alerts-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1rem; }
.alerts-card.is-off { opacity: .55; }
.alerts-h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.alerts-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.alerts-card > .alerts-row:first-child { border-top: 0; padding-top: 0; }
.alerts-row__end { display: flex; align-items: center; gap: .9rem; }
.alerts-add { display: flex; gap: .5rem; margin-top: .8rem; }
.alerts-add input { flex: 1; min-width: 0; padding: .55em .9em; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9d2dd; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--pink-strong); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--pink-text); outline-offset: 2px; }
.keyword-alert[hidden] { display: none; }
a.grade { text-decoration: none; }

/* 주문 완료 */
.order-status { font-size: 1.05rem; }
.save-account { background: var(--pink); border-radius: 18px; padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.save-account p { margin-bottom: .8rem; }

/* 로그인·계정 */
.auth { display: grid; justify-items: center; }
.auth__card { width: min(440px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: left; }
.auth__card .checklist { margin-top: 1.2rem; }
.auth .dev-note { width: min(440px, 100%); }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.btn--small-ghost { padding: .5em 1em; font-size: .9rem; }
.tabs { display: flex; gap: .4rem; border-bottom: 2px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab { border: 0; background: none; font: inherit; font-family: var(--font-head); font-weight: 600; padding: .7em 1.1em; cursor: pointer; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.is-active { color: var(--ink); border-color: var(--pink-deep); }
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.3rem; margin-bottom: .8rem; }
.order-card__head { display: flex; justify-content: space-between; align-items: center; }
.order-card p { margin: .3rem 0; }
.pill--ok { background: #2f9e6a; }
.pill--wait { background: #e8a23a; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .steps-line__arrow { display: none; }
  .account-head { align-items: flex-start; }
}

/* $15 고정 배송 상자 */
.flat-ship {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--pink); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 1rem 0 1.4rem;
}
.flat-ship__price {
  flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--pink-text);
}
.flat-ship strong { font-family: var(--font-head); font-size: 1.15rem; }
.flat-ship p { margin: .2rem 0 0; color: var(--ink-soft); }

/* 인스타그램 미리보기 */
.ig-preview { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ig-preview img { width: 100%; display: block; transition: transform .3s ease; }
.ig-preview:hover img { transform: scale(1.03); }
.ig-preview__badge {
  position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.92);
  border-radius: 999px; padding: .4em 1em; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}

/* 구글 로그인 버튼 (구글 브랜드 가이드: 흰 바탕 + G 로고) */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%;
  margin: 1rem 0 .4rem; padding: .85em 1.2em; border-radius: 999px; cursor: pointer;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
  font: 600 1rem/1.2 "Nunito", system-ui, sans-serif;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.2); }
.or { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 .2rem; color: var(--ink-soft); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== 아이콘 (Phosphor duotone, 색은 글자색을 따름) ===== */
.ico { width: 1.2em; height: 1.2em; vertical-align: -.22em; flex: none; }
.logo__mark .ico { width: 22px; height: 22px; vertical-align: 0; }
.icon-link, .cart { display: inline-flex; color: var(--ink); }
.icon-link .ico, .cart .ico { width: 26px; height: 26px; }
.menu-toggle .ico { width: 28px; height: 28px; vertical-align: middle; }
.trust__item > span { color: var(--pink-deep); }
.trust__item > span .ico { width: 30px; height: 30px; }
.type-card__icon { color: var(--ink); }
.type-card__icon .ico { width: 30px; height: 30px; }
.floating { color: var(--pink-deep); }
.floating .ico { width: 30px; height: 30px; }
.wish .ico { width: 18px; height: 18px; vertical-align: middle; }
.pdp__buy .wish .ico { width: 24px; height: 24px; }
.perks .ico, .note-box .ico, .summary__note .ico, .ask .ico, .includes .ico { color: var(--pink-deep); }
.choice strong .ico { color: var(--pink-deep); width: 1.3em; height: 1.3em; }
.placed__icon { color: var(--pink-text); }
.placed__icon .ico { width: 56px; height: 56px; }
.admin-card h2 .ico { color: var(--pink-deep); }

/* ===== 로고 (Baebi) ===== */
.logo--img img { display: block; height: 54px; width: auto; }
.logo--footer img { height: 54px; }
.hero__photo--logo { background: #3d3346; border-color: #3d3346; padding: 0; overflow: hidden; }
.hero__photo--logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .logo--img img { height: 38px; } }
.admin-entry { display: inline !important; opacity: 1 !important; color: var(--pink) !important; font-weight: 700; text-decoration: underline; }

/* 합배송 보관 박스 */
.box-card { background: #fff6f9; border: 2px dashed var(--pink); border-radius: 18px; padding: 1.1rem 1.3rem; margin: 0 0 1.2rem; }
.box-card p { margin: .35rem 0; }
.box-card__label { font-family: var(--font-head); font-weight: 600; color: var(--pink-text); display: flex; align-items: center; gap: .4em; }
.box-card__label .ico { width: 1.3em; height: 1.3em; }
/* 인스타그램: 인스타 색 동그라미 + 흰 로고 */
.ig-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.9em; height: 1.9em; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.ig-badge .ico { width: 62%; height: 62%; vertical-align: 0; margin: 0; color: #fff; }
.icon-link .ig-badge { width: 28px; height: 28px; transition: transform .15s ease; }
.icon-link .ig-badge .ico { width: 17px; height: 17px; }
.icon-link:hover .ig-badge { transform: scale(1.08); }
.btn.ig-link { display: inline-flex; align-items: center; gap: .5em; }
.btn.ig-link .ig-badge { width: 1.7em; height: 1.7em; margin-left: -.4em; }
.footer .footer__ig { display: inline-flex; align-items: center; gap: .6em; margin-top: .6em; opacity: 1; }
.footer .footer__ig .ig-badge { width: 38px; height: 38px; transition: transform .15s ease; }
.footer .footer__ig:hover .ig-badge { transform: scale(1.08); }
.box-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 .4rem; }
.pill--done { background: #5b7bd5; }
.pill--off { background: #b3a9b8; }

/* 실제 사진 */
.product__img { overflow: hidden; }
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__main { overflow: hidden; }
.gallery__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb { overflow: hidden; position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.form-error[hidden] { display: none; }
.thumb small { position: relative; z-index: 1; }
.thumb img + small { background: rgba(255,255,255,.85); border-radius: 6px; padding: 0 .3em; margin-top: auto; margin-bottom: 3px; }
.cart-item__img { position: relative; overflow: hidden; }
.cart-item__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item__img { position: relative; overflow: hidden; }
.cart-item__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== 모바일 압축: 글자·여백을 줄여 스크롤 길이를 줄임 ===== */
@media (max-width: 560px) {
  html { font-size: 14.5px; }
  body { line-height: 1.5; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.05rem; }
  p { margin-bottom: .8em; }
  .eyebrow { font-size: .75rem; margin-bottom: .4em; }
  .btn { padding: .7em 1.3em; font-size: .95rem; }

  .header__inner { height: 60px; }
  .nav { top: 60px; }
  .announce { font-size: .78rem; padding: .45em .8em; }

  .hero { padding: 1.6rem 0 1.2rem; }
  .hero__inner { gap: 1.2rem; }
  .hero__lead { font-size: .98rem; }
  .hero__cta { margin: 1.1rem 0 .8rem; gap: .6rem; }
  .hero__visual { max-width: 240px; }

  .section { padding: 2.2rem 0; }
  .section--slim { padding: 1.6rem 0; }
  .section__head { margin-bottom: 1.3rem; }
  .section__head--row { align-items: center; }
  .lead { font-size: 1rem; }

  /* 신뢰 배지: 아이콘 + 제목만 짧게 */
  .trust { padding: 1rem 0; }
  .trust__grid { gap: .8rem .7rem; }
  .trust__item { gap: .5rem; }
  .trust__item > span .ico { width: 22px; height: 22px; }
  .trust__item strong { font-size: .9rem; line-height: 1.25; }
  .trust__item p { font-size: .78rem; line-height: 1.35; }

  /* 유형 카드 */
  .types { gap: .7rem; }
  .type-card { padding: 1rem .9rem; border-radius: 18px; }
  .type-card__icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: .6rem; }
  .type-card__icon .ico { width: 22px; height: 22px; }
  .type-card h3 { margin-bottom: .3em; }
  .type-card p { font-size: .82rem; line-height: 1.4; margin-bottom: .6em; }
  .type-card__link { font-size: .85rem; }

  /* 상품 카드 */
  .product__body { padding: .7rem .8rem .85rem; }
  .product__body h3 { margin: .1em 0 .5em; }
  .product__series { font-size: .75rem; }
  .product__incl { font-size: .75rem; margin-bottom: .5em; }
  .price { font-size: 1.05rem; }
  .product__foot .btn { padding: .55em 1em; font-size: .88rem; }
  .tag { top: .55rem; left: .55rem; font-size: .68rem; }
  .wish { top: .55rem; right: .55rem; width: 30px; height: 30px; }
  .wish .ico { width: 16px; height: 16px; }

  /* 뉴스레터 */
  .newsletter { padding: 1.4rem 1.2rem; border-radius: 22px; gap: 1rem; }
  .newsletter__form input { padding: .7em 1.1em; }

  /* 푸터 */
  .footer { padding: 2.2rem 0 1.2rem; margin-top: 1rem; }
  .footer__grid { gap: 1.2rem 1rem; }
  .footer h4 { font-size: .95rem; margin: 0 0 .4em; }
  .footer a { font-size: .9rem; margin-bottom: .25em; }
  .logo--footer img { height: 40px; }
  .footer .footer__ig .ig-badge { width: 30px; height: 30px; }
  .footer__legal { margin-top: 1.4rem; padding-top: 1rem; }

  /* 하위 페이지 */
  .section--top { padding-top: 1.4rem; }
  .crumbs { margin-bottom: .8rem; }
  .page-title, .pdp__title { font-size: 1.6rem; }
  .pdp__price { font-size: 1.5rem; }
  .faq details { padding: .85rem 1rem; }
  .faq summary { font-size: .98rem; }
  .related { margin-top: 2.6rem; }
  .related h2 { font-size: 1.3rem; }
  .form-card, .auth__card { padding: 1.2rem; }
  .prose h2 { margin-top: 1.5rem; font-size: 1.2rem; }
  .faq details { margin-bottom: .5rem; }
}

/* ===== 모바일 전용 구성: PC와 다르게, 필요한 것만 ===== */
.show-sm { display: none !important; }
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .nav .show-sm { display: block !important; }
  /* iOS는 16px 미만 입력칸을 누르면 화면을 확대함 */
  input, select, textarea { font-size: 16px !important; }
  .header__inner { height: 56px; }
  .nav { top: 56px; }
  .header__actions { gap: .2rem; }
  .header__actions .icon-link, .header__actions .cart, .menu-toggle {
    min-width: 44px; height: 44px; justify-content: center; align-items: center;
  }
  .cart__count { top: 2px; right: 0; }

  /* 홈: 소개 → 상품 → 신뢰, 장식과 중복 설명은 뺌 */
  .home .hero__visual, .home .steps-line, .home .ig-preview,
  .home .trust__item p, .home .newsletter p { display: none; }
  .home .hero { padding: 1.3rem 0 .4rem; }
  .home .hero__cta { margin: .9rem 0 .4rem; }
  .home .hero__cta .btn--primary { width: 100%; }
  .home .section { padding: 1.8rem 0; }
  .home #newGrid > .product:nth-child(n+5),
  .home #soldGrid > .product:nth-child(n+3) { display: none; }

  .home .trust__item { align-items: center; }

  /* 카테고리: 큰 카드 4장 → 가로로 미는 이름 버튼 한 줄 */
  .home #shop .section__head { text-align: left; margin-bottom: .8rem; }
  .home #shop .section__head h2 { font-size: 1.2rem; }
  .home .types { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .home .type-card { padding: .65rem .6rem; border-radius: 999px; align-items: center; justify-content: center; text-align: center; }
  .home .type-card:hover { transform: none; box-shadow: none; }
  .home .type-card__icon, .home .type-card p, .home .type-card__link { display: none; }
  .home .type-card h3 { margin: 0; font-size: .88rem; white-space: nowrap; }

  /* 판매자 소개: 사진 빼고 짧게, 버튼 두 개 나란히 */
  .home .limited { gap: 0; }
  .home .limited h2 { font-size: 1.25rem; }
  .home .limited .hero__cta { margin: .6rem 0 0; flex-wrap: nowrap; }
  .home .limited .hero__cta .btn { padding: .6em 1em; font-size: .85rem; }
  .home .limited .hero__cta .btn:first-child { flex: none; }
  .home .limited .hero__cta .ig-link { min-width: 0; }

  /* 새 상품 알림: 입력칸 + 버튼 한 줄 */
  .home .newsletter { padding: 1.1rem 1rem; gap: .6rem; }
  .home .newsletter h2 { font-size: 1.15rem; margin: 0; }
  .home .newsletter__form { flex-direction: row; }
  .home .newsletter__form .btn { flex: none; padding: .6em 1.1em; }

  /* 푸터: Shop 열(메뉴와 중복)·한 줄 소개 숨김 */
  .footer { padding: 1.4rem 0 1rem; }
  .footer__grid { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
  .footer__grid > div:first-child {
    width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem;
  }
  .footer__grid > div:first-child .logo--footer img { height: 32px; }
  .footer .footer__ig { margin: 0; }
  .footer .footer__ig > span:not(.ig-badge) { display: none; }
  .footer .footer__ig .ig-badge { width: 32px; height: 32px; }
  .footer__grid > div:not(:first-child):not(.hide-sm) { display: contents; }
  .footer__grid h4 { display: none; }
  .footer__grid > div:not(:first-child) a { margin: 0; font-size: .82rem; }
  .footer__legal { margin-top: .9rem; padding-top: .7rem; font-size: .68rem; }
  .footer__legal p { margin-bottom: .25em; }

  /* 목록: 검색·정렬 한 줄, 상품이 바로 보이게 */
  .shop-head { margin-bottom: 1rem; }
  .shop-tools { width: 100%; flex-wrap: nowrap; gap: .5rem; }
  .shop-search { flex: 1; min-width: 0; width: auto; }
  .sort { font-size: 0; gap: 0; }
  .filters { padding: .7rem 1rem; }
  .filters summary { font-size: .95rem; }
  .shop { gap: 1rem; }

  /* 상세: 썸네일은 가로 한 줄, 관련 상품 2개 */
  .pdp > * { min-width: 0; }
  .gallery__thumbs { display: flex; overflow-x: auto; gap: .4rem; scrollbar-width: none; }
  .gallery__thumbs .thumb { flex: 0 0 56px; border-radius: 10px; }
  .perks { font-size: .85rem; gap: .35rem; margin: .9rem 0 1rem; }
  .perks > div { padding: .45em .8em; }
  #related > .product:nth-child(n+3) { display: none; }
}

/* ===== 상품 사진 크게 보기 ===== */
.gallery__zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.gallery__label { pointer-events: none; }
.gallery__main { touch-action: pan-y pinch-zoom; }
.gallery__expand { position: absolute; top: .8rem; right: .8rem; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); pointer-events: none; }
.viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(20,16,24,.94); display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; }
.viewer[hidden] { display: none; }
.viewer__img { max-width: 100vw; max-height: 100dvh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer__close, .viewer__nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; line-height: 1; }
.viewer__close { top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; font-size: 1.3rem; }
.viewer__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; padding-bottom: .15em; }
.viewer__nav--prev { left: 14px; }
.viewer__nav--next { right: 14px; }
.viewer__nav[hidden] { display: none; }
.viewer__close:hover, .viewer__nav:hover { background: rgba(255,255,255,.3); }
.viewer__close:focus-visible, .viewer__nav:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 2px; }
.viewer__count { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: .95rem; background: rgba(0,0,0,.35); padding: .3em .9em; border-radius: 999px; }
html.viewer-open, html.viewer-open body { overflow: hidden; }
@media (max-width: 560px) {
  .viewer__nav { width: 40px; height: 40px; font-size: 1.6rem; background: rgba(0,0,0,.3); }
  .viewer__nav--prev { left: 6px; }
  .viewer__nav--next { right: 6px; }
}

/* ===== PC 압축: 글자·여백을 줄이고 한 줄에 더 많이 (모바일 560px 이하는 위 규칙 그대로) ===== */
@media (min-width: 561px) {
  html { font-size: 15px; }
  body { line-height: 1.55; }
  h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
  h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
  h3 { font-size: 1.08rem; }
  .container { width: min(1240px, 94%); }
  .eyebrow { font-size: .78rem; margin-bottom: .4em; }
  .btn { padding: .7em 1.4em; }

  /* 헤더 */
  .announce { font-size: .8rem; padding: .4em 1em; }
  .header__inner { height: 60px; }
  .nav { top: 60px; }
  .logo--img img { height: 42px; }
  .header-search { height: 38px; }

  /* 히어로: 낮게 */
  .hero { padding: 2.2rem 0 1.8rem; }
  .hero__inner { gap: 1.6rem; }
  .hero__visual { max-width: 330px; justify-self: center; width: 100%; }
  .hero__cta { margin: 1.2rem 0 .6rem; }
  .floating { width: 50px; height: 50px; }
  .floating .ico { width: 24px; height: 24px; }

  /* 섹션 공통 */
  .section { padding: 2.8rem 0; }
  .section--slim { padding: 1.8rem 0; }
  .section--top { padding-top: 1.6rem; }
  .section__head { margin-bottom: 1.4rem; }
  .crumbs { margin-bottom: .8rem; }
  .page-title, .pdp__title { font-size: clamp(1.6rem, 2.6vw, 2rem); }

  /* 신뢰 배지 */
  .trust { padding: 1rem 0; }
  .trust__item > span .ico { width: 24px; height: 24px; }
  .trust__item p { font-size: .82rem; }

  /* 카테고리 카드 */
  .types { gap: 1rem; }
  .type-card { padding: 1.1rem 1.2rem; }
  .type-card:hover { transform: translateY(-3px); }
  .type-card__icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: .6rem; }
  .type-card__icon .ico { width: 22px; height: 22px; }
  .type-card h3 { margin-bottom: .3em; }
  .type-card p { font-size: .88rem; margin-bottom: .6em; }

  .steps-line { padding: .8rem 0; }

  /* 판매자 소개: 인스타 사진 작게 */

  /* 상품 카드: 작게, 한 줄에 더 많이 */
  .products { gap: 1rem; }
  .product { border-radius: 16px; }
  .product__img { font-size: 3rem; }
  .product__body { padding: .7rem .85rem .85rem; }
  .product__body h3 { font-size: 1rem; margin: .1em 0 .5em; }
  .product__series { font-size: .75rem; }
  .product__incl { font-size: .75rem; margin-bottom: .5em; }
  .price { font-size: 1.05rem; }
  .product__foot .btn { padding: .45em .9em; font-size: .82rem; }
  .tag { top: .6rem; left: .6rem; font-size: .68rem; }
  .wish { top: .6rem; right: .6rem; width: 30px; height: 30px; }
  .wish .ico { width: 16px; height: 16px; }
  .product > .grade { top: .6rem; right: 2.8rem; }

  /* 뉴스레터·푸터 */
  .newsletter { padding: 1.6rem 2.2rem; border-radius: 24px; }
  .footer { padding: 2.4rem 0 1.2rem; margin-top: 1rem; }
  .footer__grid { gap: 1.6rem; }
  .logo--footer img { height: 42px; }
  .footer .footer__ig .ig-badge { width: 32px; height: 32px; }
  .footer__legal { margin-top: 1.6rem; padding-top: 1rem; }

  /* 목록 */
  .shop-head { margin-bottom: 1.1rem; }
  .filters { top: 76px; padding: 1rem 1.1rem; }
  .filters__group { padding: .75rem 0; }

  /* 상세: 사진이 화면을 다 차지하지 않게 */
  .pdp__price { font-size: 1.55rem; }
  .pdp > .gallery { width: 100%; max-width: 520px; justify-self: center; }
  .pdp__grade { margin: .9rem 0 .8rem; padding: .8rem 1rem; }
  .pdp__actions .btn { padding: .8em; font-size: 1rem; }
  .perks { margin: .9rem 0 1rem; }
  .related { margin-top: 2.6rem; }
  .related h2 { font-size: 1.35rem; margin-bottom: .9rem; }
  .faq details { padding: .85rem 1.1rem; margin-bottom: .6rem; }
  .faq summary { font-size: 1rem; }

  /* 장바구니·양식 */
  .summary { top: 76px; padding: 1.2rem; }
  .form-card, .auth__card { padding: 1.3rem; }
  .prose h2 { margin-top: 1.6rem; font-size: 1.3rem; }
}
@media (min-width: 961px) {
  .products { grid-template-columns: repeat(5, 1fr); }
  .products--3 { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { grid-template-columns: 1.4fr .6fr; gap: 2rem; }
  .limited { grid-template-columns: minmax(0, 420px) 1fr; gap: 2.4rem; }
  .shop { grid-template-columns: 210px 1fr; gap: 1.6rem; }
  .pdp { grid-template-columns: minmax(0, 520px) 1fr; gap: 2.4rem; }
  .cart-layout { grid-template-columns: 1fr 340px; gap: 2rem; }
}
