/* ============================================================
   CREPOPS — one system.
   Section padding, one heading size, one display size, images at
   a fixed ratio with a height cap, text columns centered on them.
   ============================================================ */
:root {
  --bg: #ffffff;
  --tile: #f4f4f2;
  --ink: #141414;
  --ink-2: #5a5a5a;
  --ink-3: #9a9a9a;
  --line: #e8e8e6;
  --line-strong: #d4d4d1;
  --lemon: #f3c74a;
  --grape: #a8d44f;
  --blueberry: #b9a6e6;
  /* subscription perks — green only ever means "you get this by subscribing" */
  --go: #14894b;
  --go-ink: #0d7440;
  --go-soft: #eaf6ef;
  --go-line: #cde9d8;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  /* type scale — the only sizes used for headings */
  --fs-display: 40px;
  --fs-h2: 26px;
  --fs-h3: 17px;
  --fs-body: 15px;
  --fs-small: 13px;

  /* rhythm */
  --section: 56px;   /* vertical padding of every section */
  --head-gap: 24px;  /* section header → content */
  --gutter: 20px;
  --container: 1200px;
  --header-h: 60px;
  --media-max: 520px; /* no split image taller than this */
  --radius: 12px; /* every photo */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 768px) {
  :root {
    --fs-display: clamp(44px, 4.4vw, 60px);
    --fs-h2: clamp(28px, 2.5vw, 34px);
    --fs-h3: 18px;
    --fs-body: 16px;
    --fs-small: 13.5px;
    --section: 96px;
    --head-gap: 40px;
    --gutter: 48px;
    --header-h: 68px;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
body.menu-open {
  overflow: hidden;
}
img,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.br-wide {
  display: none;
}
@media (min-width: 768px) {
  .br-wide {
    display: inline;
  }
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: var(--head-gap);
}
.section-head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-head--row > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-head__aside {
  font-size: var(--fs-small);
  color: var(--ink-3);
  padding-bottom: 4px;
  white-space: nowrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s var(--ease);
}
.text-link::after {
  content: '→';
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}
.text-link:hover {
  opacity: 0.6;
}
.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- controls ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:active {
  transform: translateY(1px);
}
.button--primary {
  background: var(--ink);
  color: #fff;
}
.button--primary:hover {
  background: #000;
}
.button--block {
  width: 100%;
}
.button--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.button--ghost:hover {
  border-color: var(--ink);
}

/* ---------- flash (one line under the header) ---------- */
.flash {
  max-width: var(--container);
  margin: 12px auto 0;
  padding: 12px var(--gutter);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.flash--alert {
  color: #c0392b;
}

/* ---------- 로그인 / 회원가입 ---------- */
.auth {
  display: flex;
  justify-content: center;
  padding-block: 40px var(--section);
}
.auth__card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.auth__mark {
  display: block;
  width: 72px;
  height: 54px;
}
.auth__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.auth__lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.auth__providers {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.auth__provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s var(--ease);
}
.auth__provider:hover {
  filter: brightness(0.94);
}
.auth__provider--naver {
  background: #03c75a; /* 네이버 브랜드 그린(가이드 지정색) */
  color: #fff;
}
.auth__provider--kakao {
  background: #fee500; /* 카카오 로그인 디자인 가이드 지정색 */
  color: rgba(0, 0, 0, 0.85);
}
.auth__provider-icon {
  width: 15px;
  height: 15px;
}
.auth__legal {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.auth__legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth__provider--email {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.auth__provider--email:hover {
  filter: none;
  border-color: var(--ink);
}
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth__input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.auth__input:focus {
  outline: none;
  border-color: var(--ink);
}
.auth__input.is-invalid {
  border-color: #c0392b;
}
.auth__submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}
.auth__link {
  align-self: center;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 일반 가입 폼(/signup) — 칸은 왼쪽 정렬, 묶음(기본정보 · 추가정보 · 동의)은 얇은 선으로 나눈다 */
.auth__card--form {
  max-width: 480px;
  align-items: stretch;
  text-align: left;
}
.auth__card--form .auth__title {
  text-align: center;
}
.signup {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}
.signup__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.signup__group + .signup__group {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.signup__legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.signup__req-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.signup__req {
  color: #c0392b;
}
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field__error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #c0392b;
}
.signup .address-search + input[type='hidden'] + input[type='hidden'] + input {
  margin-top: 2px;
}
.signup__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.signup__choices .paymethod {
  justify-content: center;
}
.signup__choices .paymethod input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.signup__choices .paymethod:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.signup__birth {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
}
.signup__birth label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.signup__birth input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  text-align: center;
  color: var(--ink);
}
.signup__birth input:focus {
  outline: none;
  border-color: var(--ink);
}
.signup__birth.is-invalid input {
  border-color: #c0392b;
}
.signup__gift {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--go-ink);
}
.signup__gift svg {
  flex: 0 0 auto;
}
.signup__agree {
  gap: 12px;
}
.signup__agree-all {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
/* 동의 한 줄: 체크 · 문구는 왼쪽, '보기'는 오른쪽 끝. 개인정보 '보기'를 펼치면 표가 그 줄 아래에 열린다 */
.signup__agree-row {
  position: relative;
}
.signup__agree-row > .check {
  padding-right: 44px;
}
.signup__view {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.signup__terms {
  margin-left: 28px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.signup__terms summary {
  list-style: none;
}
.signup__terms summary::-webkit-details-marker {
  display: none;
}
.signup__terms table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
}
.signup__terms th,
.signup__terms td {
  padding: 6px 8px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.signup__terms th {
  width: 3.2em;
  background: var(--tile);
  font-weight: 600;
}
.signup__terms p {
  margin: 8px 0 0;
}

/* ---------- 약관 문서 (이용약관 · 개인정보처리방침 · 배송/교환/환불) ---------- */
.legal {
  max-width: 760px;
  padding-block: 32px var(--section);
}
.legal__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}
.legal__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13.5px;
}
.legal__nav a {
  color: var(--ink-3);
  text-decoration: none;
  padding-bottom: 2px;
}
.legal__nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
}
.legal__body {
  padding-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.legal__body > p:first-child {
  font-size: 13px;
  color: var(--ink-3);
}
.legal__body h3 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.legal__body p {
  margin: 0 0 12px;
}
.legal__body ol,
.legal__body ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.legal__body li {
  margin: 4px 0;
}
.legal__body li > ul,
.legal__body li > ol {
  margin: 4px 0 6px;
}
.legal__body ul {
  list-style: disc;
}
.legal__body ol {
  list-style: decimal;
}
.legal__body table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}
.legal__body th,
.legal__body td {
  padding: 10px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal__body th {
  background: #f6f6f5;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.legal__body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 767px) {
  .legal__body table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- 폼 공통 (주문서 · 주문조회) ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input[type='text'],
.field input[type='tel'],
.field input[type='email'],
.field input[type='password'],
.coupon input[type='text'] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
.field input:focus,
.coupon input:focus {
  outline: none;
  border-color: var(--ink);
}
.field input[readonly] {
  background: #fafaf9;
  cursor: pointer;
}
.field input.is-invalid {
  border-color: #c0392b;
}
.field__row {
  display: flex;
  gap: 8px;
}
.field__row input {
  flex: 1;
}
.field__row .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}
.field__hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.form-errors {
  padding: 12px 14px;
  border: 1px solid #f1c3bd;
  border-radius: 10px;
  background: #fdecea;
  color: #c0392b;
  font-size: 13.5px;
}
.form-errors ul {
  margin: 0;
  padding-left: 18px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check.is-invalid {
  color: #c0392b;
}
.check--inline {
  align-items: center;
  font-size: 13px;
}

/* ---------- 주문서 ---------- */
.checkout {
  padding-block: 24px var(--section);
}
.checkout__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.checkout__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.checkout__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.checkout__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout__h {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
/* 주문서 할인 받기 — 인플루언서 코드 · 카카오 채널 두 카드(주문당 하나만 적용) */
.coupons {
  display: grid;
  gap: 10px;
}
.coupon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.coupon__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.coupon__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.coupon__icon--tag {
  background: var(--go-soft);
  color: var(--go-ink);
}
.coupon__icon--kakao {
  background: #fee500;
  color: #191919;
}
.coupon__text {
  min-width: 0;
  word-break: keep-all; /* 좁은 화면에서도 단어 단위로 꺾는다 */
}
.coupon__title {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}
.coupon__desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* 인플루언서 카드: 코드를 넣으면 빠질 금액 */
.coupon__desc--amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--go-ink);
}
.coupon--kakao {
  border-color: #f4e27c;
  background: #fffbe2;
}
.coupon__channel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: #fee500;
  color: #191919;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
}
.coupon__channel:hover {
  background: #f5dc00;
}
.coupon__message:empty {
  display: none;
}
.coupon__message:not(.is-error) {
  color: var(--go-ink);
  font-weight: 600;
}
.coupon .field__row .button {
  background: #fff;
}
/* 적용된 카드: 초록 테두리만 — 카드 색(카카오 노랑)은 그대로 */
.coupon.is-applied {
  border-color: var(--go);
  box-shadow: inset 0 0 0 1px var(--go);
}

.checkout__h-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.checkout__h-row .checkout__h {
  padding-bottom: 0;
  border: 0;
}
.order-item {
  display: flex;
  gap: 14px;
  align-items: center;
}
.order-item__media {
  flex: 0 0 84px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #eaeaea;
}
.order-item__media img {
  width: 100%;
  height: auto;
}
.order-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  color: var(--ink-2);
}
.order-item__body strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.order-item__price {
  font-weight: 600;
  color: var(--ink);
}
.order-item__price small {
  font-weight: 400;
  color: var(--ink-3);
}
.order-item__perks {
  display: flex;
  gap: 6px;
}
.order-item__perks span {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--go-soft);
  color: var(--go-ink);
  font-size: 12px;
  font-weight: 700;
}
.paymethods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.paymethod {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.paymethod:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.paymethod input {
  accent-color: var(--ink);
}
/* 결제 수단(주문서 · 주문 · 구독 결제 수단 변경): 카드는 위 한 줄, 카카오페이 · 네이버페이는 각 결제 버튼처럼
   브랜드 색으로 그린다. 라디오는 숨기고(키보드 · 화면낭독기는 그대로) 고른 것은 바깥 테두리로 보인다 */
.paymethod--pay {
  position: relative;
  justify-content: center;
  min-height: 52px;
}
.paymethod--card {
  grid-column: 1 / -1;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.paymethod__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.paymethod--kakaopay,
.paymethod--naverpay {
  gap: 5px;
  border-color: transparent;
}
.paymethod--kakaopay {
  background: #ffeb00;
  color: #191919;
}
.paymethod--naverpay {
  background: #03c75a;
  color: #fff;
}
.paymethod__mark {
  flex: 0 0 auto;
  fill: currentColor;
}
.paymethod--kakaopay .paymethod__mark {
  width: 22px;
  height: 20px;
}
.paymethod--naverpay .paymethod__mark {
  width: 15px;
  height: 15px;
}
.paymethod__pay {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.paymethod--kakaopay:has(input:checked),
.paymethod--naverpay:has(input:checked) {
  border-color: transparent;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.paymethod--pay:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafaf9;
}
.summary__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}
.summary__rows > div {
  display: flex;
  justify-content: space-between;
}
.summary__rows > div[hidden] {
  display: none;
}
.summary__rows dt {
  color: var(--ink-2);
}
.summary__rows dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.summary__rows dd.is-free {
  font-weight: 600;
  color: var(--go);
}
.summary__total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: 16px;
  font-weight: 700;
}
.summary__total dt {
  color: var(--ink);
}
.summary__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.checkout__submit {
  margin-top: 4px;
}
@media (min-width: 900px) {
  .checkout__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .checkout__main {
    flex: 1 1 auto;
    min-width: 0;
  }
  .checkout__side {
    flex: 0 0 360px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ---------- 주문 확인 ---------- */
.order {
  max-width: 680px;
  padding-block: 32px var(--section);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.order__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.order__number {
  font-size: 14px;
  color: var(--ink-2);
}
.order__notice {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff8e1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
/* 결제 직후 업셀 — 눈에 띄는 한 줄(초록 상자), 화살표를 누르면 펼쳐진다 */
.upsell {
  margin-top: 10px;
  border: 1px solid var(--go-line);
  border-radius: var(--radius);
  background: var(--go-soft);
}
.upsell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}
.upsell__head::-webkit-details-marker {
  display: none;
}
.upsell__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--go-ink);
}
.upsell__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.upsell[open] .upsell__arrow {
  transform: rotate(180deg);
}
.upsell__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.upsell__offer {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.upsell__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
}
.upsell__was,
.upsell__now {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.upsell__was small,
.upsell__now small {
  font-size: 12px;
  color: var(--ink-3);
}
.upsell__was s {
  font-size: 16px;
  color: var(--ink-3);
}
.upsell__to {
  font-size: 18px;
  color: var(--ink-3);
}
.upsell__now strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--go-ink);
  font-variant-numeric: tabular-nums;
}
.upsell__badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--go);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.upsell__body form {
  margin: 0;
}
.upsell__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 업그레이드 조건 — 지금 결제 · 다음 결제부터(변경 전후) · 해지 방법. 동의 체크 바로 위 */
.upsell__terms {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.6;
}
.upsell__terms div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  padding: 6px 0;
}
.upsell__terms div + div {
  border-top: 1px solid var(--line);
}
.upsell__terms dt {
  font-weight: 700;
  color: var(--ink);
}
.upsell__terms dd {
  margin: 0;
  color: var(--ink-2);
}
.upsell__terms s {
  color: var(--ink-3);
}
.upsell__terms strong {
  color: var(--go-ink);
  font-weight: 800;
}
.upsell__terms small {
  font-size: 12px;
  color: var(--ink-3);
}
.upsell__agree {
  color: var(--ink);
}
.upsell__note {
  font-size: 13px;
  color: var(--ink-3);
}

/* 구독 관리 — 30일마다 통 수 고르기 */
.qty-option {
  display: block;
  cursor: pointer;
}
.qty-option input {
  position: absolute;
  opacity: 0;
}
.qty-option__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.qty-option__body strong {
  font-size: 15px;
  color: var(--ink);
}
.qty-option input:checked + .qty-option__body {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.qty-option input:focus-visible + .qty-option__body {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.qty-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 맛 변경: 맛마다 그 맛의 색(.flavor-레몬 … 이 --accent 를 정한다). 옅은 바탕 → 고르면 진한 색 */
.flavor-option .qty-option__body {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border-color: var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.flavor-option .qty-option__body strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.flavor-option input:checked + .qty-option__body {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}
.flavor-option input:checked + .qty-option__body strong {
  color: var(--accent-ink);
}
.flavor-option input:focus-visible + .qty-option__body {
  outline-color: var(--accent-text);
}
/* 통 수 변경: 'N통/월' 아래에 금액 — 2통부터는 할인 전 금액에 줄을 긋고 할인가를 굵게 */
.qty-option--price .qty-option__body {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 14px;
}
.qty-option--price .qty-option__body strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.qty-option--price .qty-option__body strong small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.qty-option__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-variant-numeric: tabular-nums;
}
.qty-option__price s {
  font-size: 12.5px;
  color: var(--ink-3);
}
.qty-option__price b {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.qty-option__price s + b {
  color: var(--go-ink);
}

.order__rows {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.order__rows > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.order__rows dt {
  font-weight: 600;
  color: var(--ink);
}
.order__rows dd {
  margin: 0;
  color: var(--ink-2);
  word-break: keep-all;
}
.order__rows small {
  color: var(--ink-3);
}
.order__actions {
  display: flex;
  gap: 10px;
}
.order__help {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.order__help a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lookup {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  text-align: left;
}

/* ---------- 제품 상세 배송 요약 ---------- */
.ship-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -4px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fafaf9;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ship-summary a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.buybar__cta[disabled] {
  background: var(--line-strong);
  color: var(--ink-2);
  cursor: not-allowed;
}

/* ---------- 푸터 운영시간 · 사업자정보확인 ---------- */
.site-footer__hours {
  font-size: 12.5px;
  color: var(--ink-3);
}
.biz__check {
  margin-left: 4px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-menu__foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice-date {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}
.legal__body--prose p {
  font-size: 15.5px;
  line-height: 1.9;
  margin-bottom: 18px;
}

/* ---------- 마이페이지 ---------- */
.mypage {
  max-width: 640px;
  padding-block: 32px var(--section);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mypage__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mypage__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.mypage__meta {
  font-size: 14px;
  color: var(--ink-3);
}
.mypage__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.mypage__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.mypage__list small {
  font-size: 12.5px;
  color: var(--ink-3);
}
.mypage__orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mypage__empty {
  font-size: 14px;
  color: var(--ink-2);
}
.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-list > li > a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.order-list > li > a:hover {
  border-color: var(--ink);
}
.order-list__top,
.order-list__bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.order-list__top strong {
  color: var(--ink);
}
.order-list__top span,
.order-list__bottom em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
}
.order-list__bottom span {
  font-weight: 600;
  color: var(--ink);
}
.order__pay {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order__manage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.order__manage form,
.order-list__card form {
  margin: 0;
}
.checkout__error {
  font-size: 13px;
  color: #c0392b;
}
.field__hint.is-error {
  color: #c0392b;
}
.order-list__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.order-list__warn {
  font-size: 12.5px;
  color: #c0392b;
}
.order-list__action {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.mypage__logout {
  align-self: flex-start;
}
/* 회원 탈퇴: 로그아웃 아래 작은 글자 버튼(눈에 띄지 않게, 그래도 찾을 수 있게) */
.mypage__withdraw {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-menu__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 14px;
}
.site-menu__who span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.site-menu__logout {
  margin: 0;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: calc(var(--gutter) - 10px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-header__left {
  display: flex;
  align-items: center;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.wordmark__logo {
  display: block;
  height: 46px;
}
.wordmark__logo img {
  width: auto;
  height: 100%;
}
.wordmark__text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.icon-button--cart {
  justify-self: end;
}
.cart-badge {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
@media (min-width: 900px) {
  .site-header__inner {
    padding-inline: var(--gutter);
  }
  /* The hamburger stays on every width — the side menu is the only navigation now
     (the old inline desktop links were removed with the menu redesign). */
}

/* off-canvas menu (phones) */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.menu-scrim.is-open {
  opacity: 1;
}
.site-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: min(86vw, 360px);
  padding: 14px 24px 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
}
.site-menu.is-open {
  transform: translateX(0);
}
.site-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - 14px);
}
.site-menu__auth {
  margin-top: 20px;
}
.site-menu__auth .button {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
}
.site-menu__group {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.site-menu__head {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.site-menu__sub a,
.site-menu__list a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.site-menu__sub a:hover,
.site-menu__list a:hover {
  color: var(--ink);
}
.site-menu__list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.site-menu__list a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.site-menu__foot {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ============================================================
   1. Hero — the photo is never cropped; the copy sits in its empty part.
   Phones: 3:4 photo, title + lead in its empty top, the button below it.
   Wide (768+): 2560 × 1188 photo, title + lead + button in its empty left part.
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  /* phones: rows 1–3 are the photo (title, lead, the rest of it), then the button */
  grid-template-rows: auto auto 1fr auto;
  container-type: inline-size;
}
/* Phones: the photo sets the height — full width, nothing cropped, no bands.
   The phone photo (blueberry, 1200 × 1603) has an empty sky-blue top 36%. */
.hero__stage {
  grid-row: 1 / 4;
  grid-column: 1;
  position: relative;
  background: #b4ccf6;
  overflow: hidden;
}
/* Slides: a native scroll-snap row (swipe, dots, autoplay from main.js); the copy stays put */
.hero__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.hero__track::-webkit-scrollbar {
  display: none;
}
.hero__media {
  display: block;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.hero__media img {
  display: block;
  width: 100%;
  height: auto;
}
.hero .hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  margin: 0;
}
.hero__dots button {
  background: rgba(17, 17, 17, 0.22);
}
.hero__dots button[aria-current='true'] {
  background: var(--ink);
}
.hero__title {
  grid-row: 1;
  grid-column: 1;
  z-index: 1;
  justify-self: center;
  margin-top: 4.5cqi; /* title (two rows) + lead centered in the photo's empty top (36% of width × 1603 / 1200) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--ink);
  pointer-events: none;
}
.hero__brand {
  font-size: clamp(14.5px, 4.1vw, 17px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* optical centering with tracking */
  color: var(--ink-2);
}
.hero__line {
  font-size: clamp(24px, 7.9vw, 36px); /* the longer row (8.6em, "블루베리 맛으로 맛있게") is ~2/3 of the photo's width */
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.045em;
}
/* two fixed rows: "크레아틴을" stays put across the slides, only the flavor row changes */
.hero__row {
  display: block;
}
.hero__row + .hero__row {
  margin-top: 0.16em; /* room for the dots over '맛있게' — no more */
}
/* one headline per photo (main.js shows the one in view); a long one wraps between words only */
.hero__line .word {
  white-space: nowrap;
}
/* '맛있게' 글자마다 위에 강조점(data-emph). text-emphasis 는 줄 높이를 키워 두 줄 사이가 벌어지므로
   글자 위에 띄운 점(자리를 차지하지 않는다)으로 그린다 */
.hero__line .word--dot .ch {
  position: relative;
}
.hero__line .word--dot .ch::before {
  content: '';
  position: absolute;
  top: -0.15em;
  left: 50%;
  width: 0.12em;
  height: 0.12em;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.hero__copy {
  display: contents;
  text-align: center;
}
.hero__lead {
  grid-row: 2;
  grid-column: 1;
  z-index: 1;
  justify-self: center;
  margin-top: 12px;
  padding-inline: var(--gutter);
  font-size: clamp(15.5px, 5.1vw, 22px);
  color: var(--ink-2);
  pointer-events: none; /* a swipe that starts on the copy still moves the photos */
}
.hero__actions {
  grid-row: 4;
  grid-column: 1;
  justify-self: center;
  margin: 32px 0 8px;
}
@media (min-width: 768px) {
  /* Wide screens: the wide photo sets the height (never cropped). Rows 1–5 are the photo;
     the 1fr rows above and below the copy center it vertically on the photo's empty left. */
  .hero {
    --hero-left: calc(max(0px, (100cqi - 1400px) / 2) + var(--gutter) + 5px);
    --hero-room: calc(37cqi - var(--hero-left));
    grid-template-rows: 1fr auto auto auto 1fr;
  }
  .hero__stage {
    grid-row: 1 / 6;
    grid-column: 1;
    background: #bdd4fb;
  }
  /* The copy starts on the header's line — where the menu icon's strokes start: header padding
     (gutter − 10px, the full gutter from 900px) + 11px button padding + 4px stroke inset — and must
     end before the product, which starts at 40% of the photo, so the sizes come from that gap. */
  .hero__title,
  .hero__lead,
  .hero__actions {
    grid-column: 1;
    justify-self: start;
    z-index: 1;
    margin-left: var(--hero-left);
  }
  .hero__title {
    grid-row: 2;
    margin-top: 0;
    max-width: var(--hero-room); /* a headline longer than one line wraps here instead of running over the product */
    align-items: flex-start;
    gap: 1.2cqi;
    text-align: left;
  }
  .hero__brand {
    font-size: clamp(14px, 1.35cqi, 22px);
    text-indent: 0;
  }
  .hero__line {
    font-size: clamp(25px, min(3.33cqi, var(--hero-room) / 9.8), 58px); /* the longer row is 8.6em wide */
  }
  .hero__lead {
    grid-row: 3;
    margin-top: 2cqi;
    padding-inline: 0;
    font-size: clamp(16px, min(1.75cqi, var(--hero-room) / 13.8), 28px); /* 13.4em wide */
  }
  .hero__actions {
    grid-row: 4;
    margin-top: 2.8cqi;
    margin-bottom: 0;
  }
  .hero .hero__dots {
    left: var(--hero-left);
    right: auto;
    bottom: 6%;
    justify-content: flex-start;
  }
  .hero__actions .button {
    min-height: clamp(48px, 3.9cqi, 64px);
    padding-inline: clamp(26px, 2.1cqi, 36px);
    font-size: clamp(15px, 1.2cqi, 18px);
  }
}

@media (min-width: 900px) {
  .hero {
    --hero-left: calc(max(0px, (100cqi - 1400px) / 2) + var(--gutter) + 15px);
  }
}

/* ============================================================
   2. Products
   ============================================================ */
.products {
  padding: var(--section) 0;
}
.product-grid {
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  /* the reveal/hover transforms used to make the row scroll vertically too */
  overflow-y: hidden;
  padding-block: 4px 20px;
  margin-block: -4px -20px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.product-grid::-webkit-scrollbar {
  display: none;
}
.product-grid > .product {
  flex: 0 0 94.6%; /* 86% 에서 10% 키웠다(카드 · 사진 · 글 상자 전체) — 다음 카드가 조금 보인다 */
  scroll-snap-align: start;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.carousel-dots button[aria-current='true'] {
  background: var(--ink);
}
.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.product__media img {
  width: 100%;
  height: auto;
  /* no zoom: the frame shows the photo exactly as supplied (same margins as the original) */
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .product:hover .product__media img {
    transform: scale(1.03);
  }
}
.product__badge--soon {
  padding: 7px 13px;
  background: #e03131;
  color: #fff;
  font-size: 14px;
}
.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.product__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.product__price-label {
  font-size: 12.5px;
  color: var(--ink-2);
}
.product__price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.product__price-row strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.product__off {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--go-soft);
  color: var(--go-ink);
  font-size: 12.5px;
  font-weight: 700;
}

/* rating: five outlined stars, waiting to be filled */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars i {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c9c6' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.6 6.1.7-4.5 4.2 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.8l6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rating__score {
  font-weight: 600;
  color: var(--ink-2);
}
.product__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.product__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.product__meta {
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.product__actions {
  width: 100%;
  margin-top: 10px;
}
.product__actions .button {
  min-height: 44px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .products .container {
    max-width: calc(var(--container) + 212px); /* the cards sit wider than the text sections — 10% bigger cards on wide screens */
  }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .product-grid > .product {
    flex: none;
  }
  .carousel-dots {
    display: none;
  }
}

/* ============================================================
   3 · 4. Feature — centered copy, photo below
   ============================================================ */
.feature {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
/* FAQ 바로 아래 맛 섹션에는 선을 두지 않는다 — FAQ 마지막 줄의 선 바로 밑에 선이 하나 더 그어져 보였다 */
#ingredients {
  border-top: 0;
  padding-top: calc(var(--section) * 0.3); /* FAQ 와 사이가 너무 떠 보였다(선을 뺀 뒤) — 위 섹션의 아래 여백만으로 충분하다 */
}
.feature__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: var(--head-gap);
}
.feature__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.03em;
}
.feature__title strong {
  font-weight: 700;
}
.feature__text {
  max-width: 30em;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink-2);
}
.feature__media {
  max-width: 760px;
  margin-inline: auto;
}
.feature__media picture {
  overflow: hidden;
  border-radius: var(--radius);
}
.feature__media img {
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .feature__copy {
    gap: 16px;
  }
}

/* Photo slides under the how-to lines: swipe row on phones, three across on wide screens */
.slides {
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.slide picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
@media (min-width: 768px) {
  .slides {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .slide {
    flex: none;
  }
  .slides + .carousel-dots {
    display: none;
  }
}
.feature__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 4. Ingredients — photos slide underneath, the copy stays put in the empty top of the frame */
.ing-stage {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  container-type: inline-size;
}
.ing-stage__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.ing-stage__track::-webkit-scrollbar {
  display: none;
}
.ing-stage__slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.ing-stage__slide picture {
  display: block;
}
.ing-stage__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
/* Sized in container units so the copy always covers the same top slice of the photo
   (both photos are empty there; the lemon arm starts just below it on the left). */
.ing-stage__copy {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5cqi 5cqi 0;
  text-align: center;
  pointer-events: none;
}
.ing-stage__copy .eyebrow {
  margin-bottom: 3.6cqi;
  font-size: clamp(10.5px, 3.2cqi, 14px);
  color: var(--ink-2);
}
.ing-stage__copy .feature__title {
  margin-bottom: 4.4cqi;
  font-size: min(7cqi, 38px);
  line-height: 1.24;
}
.ing-stage__copy .feature__text {
  font-size: clamp(12.5px, 4.15cqi, 19px);
  line-height: 1.5;
  color: var(--ink-2);
}
/* The copy holds still while the photos slide; only the words that differ per photo swap, with no fade
   (main.js toggles [data-ing-text]). The fade below runs once, when the copy first appears. */
.ing-stage__copy .feature__text[hidden] {
  display: none;
}
.js .ing-stage.is-visible .ing-stage__copy .feature__text:not([hidden]) {
  animation: ing-text-in 0.45s ease both;
}
@keyframes ing-text-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ing-stage.is-visible .ing-stage__copy .feature__text:not([hidden]) {
    animation: none;
  }
}
.ing-stage__copy .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.ing-stage__copy .line > span {
  display: block;
}
.ing-stage .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  margin: 0;
}
.ing-stage .carousel-dots button {
  background: rgba(17, 17, 17, 0.22);
}
.ing-stage .carousel-dots button[aria-current='true'] {
  background: var(--ink);
}

/* FAQ under the how-to photo */
.faq {
  max-width: 760px;
  margin: 40px auto 0;
}
.faq__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-of-type {
  border-top: 1px solid var(--ink);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-3);
  transition: transform 0.48s var(--ease-in-out);
}
/* data-state 는 main.js 가 누르는 순간 바꾼다 — 닫힐 때 open 속성은 애니메이션이 끝날 때까지 남아 있다 */
.faq__item[open]:not([data-state='closed']) summary::after {
  transform: rotate(45deg);
}
/* 높이를 잴 때 마지막 줄의 아래 여백까지 포함되게 */
.faq__body {
  display: flow-root;
}
.faq__item p {
  padding: 0 36px 20px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.faq__item p sup {
  font-size: 0.7em;
  line-height: 0;
  margin-left: 1px;
  color: var(--ink-3);
}
/* 답변 근거: 위첨자 번호와 같은 번호로 한 줄씩 */
.faq__refs {
  list-style: decimal;
  margin: -8px 36px 20px 0;
  padding-left: 1.6em;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}
.faq__refs li + li {
  margin-top: 4px;
}
@media (min-width: 768px) {
  .faq {
    margin-top: 56px;
  }
  .faq__item summary {
    padding: 20px 0;
    font-size: 17px;
  }
}

/* 홈 후기 — '맛 관련 후기 보기' · '운동하는 사람들의 후기 보기' 줄을 누르면 바로 아래에 펼쳐진다(어드민 '크레팝스 홈 후기').
   카드는 옆으로 넘긴다. 한두 장이라 넘칠 일이 없으면 가운데에 모인다(양 끝 auto 여백). */
.home-reviews {
  max-width: 760px;
  margin: 20px auto 0;
}
.home-reviews__toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.home-reviews__toggle::-webkit-details-marker {
  display: none;
}
.home-reviews__toggle .text-link::after {
  content: '↓';
  transition: transform 0.48s var(--ease-in-out);
}
.home-reviews__toggle:hover .text-link::after {
  transform: none;
}
.home-reviews[open]:not([data-state='closed']) .home-reviews__toggle .text-link::after {
  transform: rotate(180deg);
}
.home-reviews__body {
  display: flow-root;
}
.home-reviews__list {
  display: flex;
  align-items: flex-start; /* 글만 있는 카드는 사진 카드 높이로 늘리지 않는다 */
  gap: 12px;
  margin: 0;
  padding: 20px 0 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-reviews__list::-webkit-scrollbar {
  display: none;
}
/* 폰에서는 카드 줄이 화면 끝까지 닿게(옆 카드가 화면 가장자리에서 잘려 보여야 넘길 수 있다는 게 보인다) */
@media (max-width: 767px) {
  .home-reviews__list {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}
.review-tile {
  flex: 0 0 min(78%, 280px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  text-align: left;
}
.review-tile:first-child {
  margin-left: auto;
}
.review-tile:last-child {
  margin-right: auto;
}
.review-tile--photo {
  overflow: hidden;
  padding: 0 0 18px;
}
.review-tile--photo > p {
  padding: 0 18px;
}
/* 사진만 있는 후기는 사진 아래 빈 여백 없이 */
.review-tile--photo-only {
  padding: 0;
}
/* 정사각형 칸을 먼저 잡아 둔다 — 펼칠 때 높이를 재는데, 아직 안 받은 사진은 높이가 0이다 */
.review-tile__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--line);
}
.review-tile__body {
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.review-tile__author {
  margin-top: auto;
  font-size: 13px;
  color: var(--ink-3);
}

/* 구독 중인 손님에게 '추가 1통 30% 할인' 팝업 — 폰에서는 아래쪽 카드, 넓은 화면에서는 가운데 */
.sub-offer {
  width: min(calc(100vw - 32px), 400px);
  margin: auto auto max(16px, env(safe-area-inset-bottom));
  padding: 30px 22px 18px;
  border: 0;
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.sub-offer::backdrop {
  background: rgba(17, 17, 17, 0.45);
}
.sub-offer__close,
.sub-offer__later {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.sub-offer__title:focus {
  outline: none; /* 열릴 때 제목에 포커스를 둔다(화면 낭독기가 제목부터 읽는다) */
}
.sub-offer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-3);
}
.sub-offer__eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--go);
}
.sub-offer__title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sub-offer__text {
  margin: 10px auto 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.sub-offer__price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 18px;
}
.sub-offer__price s {
  font-size: 15px;
  color: var(--ink-3);
}
.sub-offer__price strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--go);
}
.sub-offer__badge {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--go);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.sub-offer__later {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-3);
}
@media (min-width: 768px) {
  .sub-offer {
    margin: auto;
  }
}

/* ============================================================
   Footer — brand · contact/policy, then business lines
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
  font-size: var(--fs-small);
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.site-footer__tagline {
  color: var(--ink-2);
}
.site-footer__right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--ink);
}
.site-footer__contact span {
  color: var(--ink-3);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.site-footer__legal a {
  color: var(--ink-2);
}
.site-footer__legal a:hover {
  color: var(--ink);
}
.site-footer__legal strong {
  font-weight: 600;
  color: var(--ink);
}
.biz {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}
.biz b {
  font-weight: 400;
  white-space: nowrap; /* a phone number or e-mail never breaks mid-item */
}
.biz .biz__addr {
  white-space: normal; /* the address is longer than a phone screen — it may wrap ('.biz b' 의 nowrap 을 이기려면 이 선택자여야 한다) */
}
.biz span {
  margin: 0 6px;
  color: var(--line-strong);
}
.site-footer__copy {
  margin-top: 8px;
}
@media (min-width: 768px) {
  .site-footer {
    padding: 56px 0 36px;
  }
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .site-footer__right {
    align-items: flex-end;
    text-align: right;
  }
  .site-footer__contact {
    justify-content: flex-end;
  }
  .biz {
    margin-top: 40px;
    padding-top: 24px;
  }
}

/* ---------- intro (first screen, on load) ---------- */
.js .hero__track {
  opacity: 0;
  transform: scale(1.1) translateY(2%);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .hero__track.is-in {
  opacity: 1;
  transform: none;
}
.js .hero__line .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) scale(0.4);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.55s + var(--i) * 0.07s);
}
.js .hero__title.is-in .hero__line .ch {
  opacity: 1;
  transform: none;
}
.js .hero__brand {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .hero__brand {
  letter-spacing: 0.7em;
}
.js .hero__title.is-in .hero__brand {
  opacity: 1;
  transform: none;
  filter: none;
  letter-spacing: 0.34em;
  transition-delay: 0.35s;
}
/* no blur here: iOS Safari leaves a smeared copy of a blurred, moving button behind after the transition */
.js .intro > * {
  opacity: 0;
  transform: translateY(44px) scale(0.96);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .intro.is-in > * {
  opacity: 1;
  transform: none;
}
.js .intro.is-in > :nth-child(1) { transition-delay: 1.3s; }
.js .intro.is-in > :nth-child(2) { transition-delay: 1.5s; }
.js .intro.is-in > :nth-child(3) { transition-delay: 1.75s; }

/* ---------- reveal (everything after, on scroll) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none; /* not blur(0): Safari keeps a filter layer for blur(0) and can leave a stale copy */
}
.js .product.reveal {
  transform: none;
}
/* Ingredients copy: each line rises out of its own mask, a beat after the photo arrives */
.js .ing-stage__copy .line > span {
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .ing-stage.is-visible .ing-stage__copy .line > span {
  transform: none;
}
.js .ing-stage.is-visible .eyebrow .line > span { transition-delay: 0.3s; }
.js .ing-stage.is-visible .feature__title .line:nth-child(1) > span { transition-delay: 0.42s; }
.js .ing-stage.is-visible .feature__title .line:nth-child(2) > span { transition-delay: 0.54s; }
.js .ing-stage.is-visible .feature__text .line:nth-child(1) > span { transition-delay: 0.72s; }
.js .ing-stage.is-visible .feature__text .line:nth-child(2) > span { transition-delay: 0.82s; }
.js .product.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.js .product.reveal:nth-child(3) {
  transition-delay: 0.12s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .js .reveal,
  .js .ing-stage__copy .line > span,
  .js .intro > *,
  .js .hero__track,
  .js .hero__brand,
  .js .hero__line .ch {
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: inherit;
  }
}

/* ============================================================
   Product page
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs span:last-child {
  color: var(--ink-2);
}

/* 맛 고르기 — 상세 맨 위(예전 '홈 / 제품 / 레몬맛' 자리). 세 맛을 사진으로, 지금 맛은 검은 고리.
   휴대폰은 사진 위, 넓은 화면은 오른쪽 열 맨 위(.pdp 그리드) */
.flavors {
  margin-bottom: -10px; /* .pdp 의 28px 간격보다 사진에 가깝게 */
}
.flavors__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flavors__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  -webkit-tap-highlight-color: transparent;
}
.flavors__img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #eaeaea;
  transition: box-shadow 0.2s var(--ease);
}
.flavors__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.flavors__item:hover .flavors__img img {
  transform: scale(1.04);
}
.flavors__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.flavors__name small {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.flavors__item:hover {
  color: var(--ink-2);
}
.flavors__item.is-current {
  color: var(--ink);
}
.flavors__item.is-current .flavors__img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.flavors__item.is-current .flavors__name {
  font-weight: 800;
}
.flavors__item:focus-visible {
  outline: none;
}
.flavors__item:focus-visible .flavors__img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--go);
}

.pdp {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: var(--section);
}
.pdp__media {
  position: relative; /* the badges hang off the photo's corner */
}
.pdp__media picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eaeaea;
}
.pdp__media img {
  width: 100%;
  height: auto;
}
.pdp__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.pdp__badge {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pdp__badge--soon {
  background: #e03131;
  font-size: 14px;
}
.pdp__panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pdp__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp__name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.pdp__flavor {
  white-space: nowrap;
}
.pdp__meta {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

/* reviews */
.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.reviews__side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.reviews__all {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.reviews__all:hover {
  border-color: var(--ink);
}
.reviews__title {
  flex: none;
  white-space: nowrap;
  margin: 0;
  padding: 0 0 4px;
  border-bottom: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reviews__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-3);
}

/* buy box */
.buy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.buy__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--tile);
}
.buy__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.buy__tab[aria-selected='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.05);
}
.buy__tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--go);
  color: #fff;
}

/* 혜택 카드(탭 아래) — 흰 카드 · 진한 테두리 · 검은 원 체크. 정기 구독은
   '건너뛰기 · 일시정지 · 해지 언제든' 줄이 붙는다(.is-sub). 일회성은 받는 혜택만 체크하고, 못 받는 혜택은
   회색으로 그어진다(product.js). 아무것도 못 받는 1개월은 테두리까지 흐려진다(.is-once) */
.perkbar {
  padding: 16px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.35s var(--ease);
}
.perkbar.is-once {
  border-color: var(--line-strong);
}
.perkbar__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.perkbar__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.perkbar.is-once .perkbar__title {
  color: var(--ink-2);
}
.perkbar:not(.is-sub) .perkbar__row--sub {
  display: none;
}
/* 세 번째 줄(언제든지 취소 가능 · 단순 변심도 환불 가능)은 오른쪽 금액이 없어 이름이 줄 끝까지.
   두 혜택을 한 줄에 잇는다 — 좁은 휴대폰(390px 아래)에서는 글자를 화면 폭에 맞춰 살짝 줄여 한 줄을 지킨다 */
.perkbar__row--sub .perkbar__name {
  grid-column: 2 / -1;
  font-size: min(15px, 3.8vw);
}
.perkbar__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perkbar__row {
  display: grid;
  grid-template-columns: 22px auto 1fr;
  align-items: center;
  gap: 10px;
}
.perkbar__icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  transition: background-color 0.35s var(--ease);
}
.perkbar__icon::before,
.perkbar__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: center / 12px no-repeat;
  transition: opacity 0.25s var(--ease);
}
.perkbar__icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.perkbar__icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  opacity: 0;
}
.perkbar__row.is-kept .perkbar__icon {
  background: #c4c4c0;
}
.perkbar__row.is-lost .perkbar__icon {
  background: #ececea;
}
.perkbar__row.is-lost .perkbar__icon::before {
  opacity: 0;
}
.perkbar__row.is-lost .perkbar__icon::after {
  opacity: 1;
}
.perkbar__name {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
/* the strike is drawn left to right, the second row a beat after the first */
.perkbar__name::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.perkbar__row + .perkbar__row .perkbar__name::after {
  transition-delay: 0.1s;
}
.perkbar__row.is-kept .perkbar__name {
  color: var(--ink-2);
}
.perkbar__row.is-lost .perkbar__name {
  color: var(--ink-3);
}
.perkbar__row.is-lost .perkbar__name::after {
  transform: scaleX(1);
}
/* '무료배송' 아래 한 줄 — 정기 구독일 때만 */
.perkbar__sub {
  grid-column: 2 / -1;
  margin-top: -7px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
}
.perkbar:not(.is-sub) .perkbar__sub {
  display: none;
}
.perkbar__detail {
  justify-self: end;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.perkbar__detail s {
  color: var(--ink-3);
}
.perkbar__row.is-lost .perkbar__detail {
  color: var(--ink);
  font-weight: 600;
}
.perkbar__detail.is-swap {
  animation: perk-swap 0.35s var(--ease) both;
}
@keyframes perk-swap {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .perkbar__detail.is-swap {
    animation: none;
  }
}

.price {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price__now {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}


.plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan {
  position: relative;
  display: block;
  cursor: pointer;
}
.plan input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.plan__body {
  /* 왼쪽: 몇 개월 · 묶음 금액 / 오른쪽: 1통 가격(크게) · 할인 · 무료배송 배지 (2026-11-25) */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name unit' 'total badges';
  align-items: center;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.plan input:checked + .plan__body {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.plan input:focus-visible + .plan__body {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.plan__name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
}
.plan__name small {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
}
.plan__unit {
  grid-area: unit;
  justify-self: end;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan__unit small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 1px;
}
.plan__total {
  grid-area: total;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.plan__badges {
  grid-area: badges;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
/* 할인 · 무료배송 배지 — 정기 구독 탭의 '30% 할인' 배지와 같은 모양(할인은 진한 초록, 무료배송은 옅은 초록) */
.plan__off,
.plan__ship {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__off {
  background: var(--go);
  color: #fff;
}
.plan__ship {
  background: var(--go-soft);
  color: var(--go-ink);
  box-shadow: inset 0 0 0 1px var(--go-line);
}

/* 정기 구독 가격: '25,900원/30일' 한 줄 */
.price--sub {
  flex-direction: row;
  flex-wrap: wrap; /* 아주 좁은 화면에서는 정가 · 할인율이 다음 줄로(320px 은 한 줄에 들어간다) */
  align-items: baseline;
  gap: 4px 2px;
}
.price__per {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
/* 가격 바로 오른쪽: 그어진 정가 + 할인율 */
.price__list {
  margin-left: 8px;
  font-size: 15px;
  color: var(--ink-3);
  white-space: nowrap;
}
.price__off {
  margin-left: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--go);
  white-space: nowrap;
}
/* 구독 관리(마이페이지) 통 수 안내 — 2통째부터 통당 30% 추가 할인 */
.qty__note {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--go-ink);
}
.qty__badge {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--go);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  vertical-align: 1px;
  white-space: nowrap;
}

/* 결제사 심사 요건 상자 — 정기 구독의 서비스 제공기간(결제 후 이용 기간 · 갱신 · 결제 주기)과 배송기간(배송완료까지) */
.buy__period {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--tile);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.buy__period strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}
.buy__period p + p {
  margin-top: 14px;
}

.perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.perks li::before {
  content: '';
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.buy__total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.buy__total-ship {
  grid-column: 2;
  justify-self: end;
  font-size: 13px;
  color: var(--ink-3);
}
.buy__total-ship.is-free {
  font-weight: 600;
  color: var(--go);
}
.buy__total-label {
  font-size: 14px;
  color: var(--ink-2);
}
.buy__total-value {
  justify-self: end;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.buy__note {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}
.buy__note a {
  text-decoration: underline;
}

/* other flavors */
.pdp-more {
  padding-bottom: var(--section);
}
.pdp-more .section-title {
  text-align: left;
  font-size: var(--fs-h3);
  margin-bottom: 16px;
}
.pdp-more__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pdp-more__list a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.pdp-more__list picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.pdp-more__list img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.pdp-more__list a:hover img {
  transform: scale(1.03);
}

/* 리뷰 · 제품상세 tabs: sit under the buy area, then stick under the header while scrolling */
.page-product {
  --pdp-tabs-h: 52px;
  --buybar-h: 72px;
  padding-bottom: calc(var(--buybar-h) + env(safe-area-inset-bottom));
}
.pdp-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  height: var(--pdp-tabs-h);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pdp-tabs__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
.pdp-tabs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pdp-tabs__tab[aria-current='true'] {
  border-bottom-color: var(--ink);
  font-weight: 700;
  color: var(--ink);
}
.pdp-tabs__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
#pdp-reviews,
#pdp-detail {
  scroll-margin-top: calc(var(--header-h) + var(--pdp-tabs-h));
}
.page-product .review-board {
  padding-top: 32px;
  padding-bottom: 32px;
}
.pdp-detail {
  padding-top: 24px;
}

/* 제품상세 첫머리 — 흰 바탕 위 큰 글씨(강조는 검정, 나머지는 회색), 사진의 위아래는 흰색으로 풀려 있어 경계가 없다 */
.pdp-story {
  max-width: 640px;
  margin: 0 auto 8px;
  padding-top: 32px;
}
.pdp-story__copy {
  padding: 0 var(--gutter);
}
/* Type follows the reference detail pages: a title in bold (700, not 800) and the body in regular weight
   and a lighter colour, with normal-ish tracking. Sizes are the user's (+20% on 2026-11-06). */
.pdp-story__lead,
.pdp-story__text {
  margin: 0;
  font-size: clamp(30px, 8.2vw, 48px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.pdp-story__lead {
  color: var(--ink);
}
.pdp-story__text {
  margin-top: 1em;
  font-size: clamp(25px, 7.1vw, 41px); /* a step below the title */
  font-weight: 400;
  color: #8c8c8c;
}
/* 앞 문단과 붙여 읽는 문단 — 문단 사이를 조금만 띄운다 */
.pdp-story__text--close {
  margin-top: 0.55em;
}
/* the closing line ('집착하며 고민했습니다') reads like the title */
.pdp-story__text--strong {
  font-weight: 700;
  color: var(--ink);
}
.pdp-story__media {
  display: block;
  margin-top: 4px;
}
.pdp-story__media img {
  width: 100%;
  height: auto;
}
/* wider than the photo: its cream left and right edges would show against the white page, so they fade out */
@media (min-width: 641px) {
  .pdp-story__media {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 95%, transparent);
  }
}

/* the short headings between photos: a bold first line and a regular grey second line, the same size, centred */
.pdp-story__copy--next {
  margin-top: 64px;
  margin-bottom: 28px; /* a little air before the photo */
  text-align: center;
}
.pdp-story__copy--next .pdp-story__text {
  margin-top: 0.05em;
  font-size: clamp(30px, 8.2vw, 48px);
}
/* a small body line under a heading (regular, grey, a reading size) */
.pdp-story__desc {
  margin: 0.9em 0 0;
  font-size: clamp(17px, 4.6vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #7c7c7c;
}
/* a full photo with its own edges (dark scene): no white fade at the sides */
.pdp-story__photo {
  display: block;
  margin-bottom: 32px; /* air before 상품정보제공고시 (the photo is dark, so its edge is hard) */
}
.pdp-story__photo img {
  display: block;
  width: 100%;
  height: auto;
}
/* second photo: a hand lifting the grape jar. Its top is gently darkened so white copy reads on the light wall. */
.pdp-story__scene {
  position: relative;
  margin: 28px 0 0;
  container-type: inline-size;
}
.pdp-story__scene img {
  display: block;
  width: 100%;
  height: auto;
}
.pdp-story__scene::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background: linear-gradient(to bottom, rgba(36, 22, 8, 0.52), rgba(36, 22, 8, 0.34) 42%, rgba(36, 22, 8, 0) 100%);
  pointer-events: none;
}
.pdp-story__scene-copy {
  position: absolute;
  z-index: 1;
  top: 6cqi;
  left: var(--gutter);
  right: var(--gutter);
  color: #fff;
  text-shadow: 0 1px 18px rgba(30, 18, 6, 0.28);
}
.pdp-story__scene-text,
.pdp-story__scene-lead {
  margin: 0;
  line-height: 1.38;
  letter-spacing: -0.03em;
}
/* the set-up line is body (regular, a touch softer), the punch line is the title (bold, larger) */
.pdp-story__scene-text {
  font-size: min(7.1cqi, 41px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}
.pdp-story__scene-lead {
  margin-top: 0.5em;
  font-size: min(9.5cqi, 55px);
  font-weight: 700;
}

/* the purchase bar that stays at the bottom of the product page */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.buybar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--container);
  margin-inline: auto;
}
.buybar__sum {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.buybar__label {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.buybar__total {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.buybar__cta {
  flex: 1;
  min-height: 52px;
  font-size: 16px;
}
@media (min-width: 900px) {
  .buybar__cta {
    flex: 0 0 340px;
    margin-left: auto;
  }
}

/* 후기 — above 상품정보제공고시; topic labels pick which reviews to show */
.review-board {
  padding-bottom: var(--section);
}
.review-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.review-board__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}
/* '리뷰 작성하기' — 제목 줄 오른쪽 작은 알약 버튼 */
.review-write {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.review-write:hover,
.review-write:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

/* 리뷰 쓰기 — 팝업(.rv-dialog)과 팝업이 못 뜰 때의 화면(.rv-page)이 같은 양식(.rv-form)을 쓴다.
   맨 위 맛 고르기(상세 맨 위 맛 고르기와 같은 사진 · 검은 고리) → 별점 → 글 → 사진 → 등록 */
.rv-dialog {
  width: min(calc(100vw - 24px), 460px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: auto;
  overscroll-behavior: contain;
}
.rv-dialog::backdrop {
  background: rgba(17, 17, 17, 0.45);
}
.rv-dialog__inner {
  padding: 18px 20px 20px;
}
.rv-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rv-dialog__title,
.rv-page__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.rv-dialog__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}
.rv-page {
  max-width: 460px;
  padding-top: 28px;
  padding-bottom: var(--section);
}
.rv-page__title {
  margin-bottom: 18px;
  font-size: 22px;
}
.rv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rv-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.rv-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rv-form__error {
  font-size: 14px;
  font-weight: 600;
  color: #d92d20;
}
.rv-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rv-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rv-product input {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rv-product__img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #eaeaea;
  transition: box-shadow 0.2s var(--ease);
}
.rv-product__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-product__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rv-product input:checked ~ .rv-product__img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.rv-product input:checked ~ .rv-product__name {
  color: var(--ink);
  font-weight: 800;
}
.rv-product input:focus-visible ~ .rv-product__img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--go);
}
/* 별점: 왼쪽부터 1~5점. DOM 은 5 → 1 순서(row-reverse)라 고른 별과 그 왼쪽이 채워진다 */
.rv-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 2px;
}
.rv-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rv-stars label {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rv-stars svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #c9c9c6;
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 0.15s, stroke 0.15s;
}
.rv-stars input:checked ~ label svg,
.rv-stars label:hover svg,
.rv-stars label:hover ~ label svg {
  fill: #f3c74a;
  stroke: #e2b336;
}
.rv-stars input:focus-visible + label {
  border-radius: 10px;
  outline: 2px solid var(--go);
}
.rv-form__text {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}
.rv-form__text:focus {
  outline: none;
  border-color: var(--ink);
}
/* 작성자 표시: 이름 첫 글자만(김**) / 익명 — 두 칸 고르기, 비회원은 아래에 이름 칸 */
.rv-who {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-who__legend {
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.rv-who__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rv-who__opt {
  position: relative;
  cursor: pointer;
}
.rv-who__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.rv-who__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.rv-who__opt input:checked + span {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
}
.rv-who__opt input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.rv-who__name {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.rv-who__name:focus {
  outline: none;
  border-color: var(--ink);
}
/* 익명을 고르면 이름 칸은 필요 없다 */
.rv-who:has(input[value='1']:checked) .rv-who__name {
  display: none;
}
.rv-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rv-photos__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  height: 72px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.rv-photos__add.is-full {
  opacity: 0.4;
  pointer-events: none;
}
.rv-photos__add:focus-within {
  border-color: var(--ink);
}
/* '기본 이미지 사용' — 사진 칸 옆의 작은 체크. 켜면 고른 맛의 상자 사진이 미리 보기에 놓인다(reviews.js) */
.rv-photos__default {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rv-photos__default input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rv-photos__default span::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: #fff center / 12px no-repeat;
  vertical-align: -4px;
}
.rv-photos__default:has(input:checked) {
  border-color: var(--ink);
  color: var(--ink);
}
.rv-photos__default input:checked + span::before {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.rv-photos__default input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}
.rv-photos__hint {
  margin-top: -4px;
  font-size: 13px;
  color: #d4443b;
}
.rv-photos__list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-photo {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
}
.rv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-photo button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.rv-form__policy,
.review-board__policy a {
  align-self: center;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rv-form__policy {
  margin-top: -6px;
}
/* 후기 쪽 번호 */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}
.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.pager a:hover {
  background: var(--tile);
}
.pager .pager__num.is-current {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.pager__arrow {
  font-size: 18px;
}
.review-board__policy {
  margin-top: 18px;
  text-align: right;
}
.review-card__photos {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
}
.review-card__photos img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.review-board .section-title {
  text-align: left;
  font-size: var(--fs-h3);
}
.review-board__empty {
  min-height: 120px;
}
/* 상품정보제공고시 — the statutory product table, below 다른 맛 */
.notice {
  padding-bottom: var(--section);
}
/* 상세에서 품질 섹션(회색 바탕) 바로 밑이면 제목이 회색 끝에 붙지 않게 띄운다(2026-11-25) */
.quality + .notice {
  padding-top: var(--section);
}
.notice .section-title {
  text-align: left;
  font-size: var(--fs-h3);
}
.notice__note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.notice__table {
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid var(--ink);
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}
.notice__table th,
.notice__table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.notice__table th {
  width: 104px;
  padding-right: 14px;
  font-weight: 600;
  color: var(--ink);
}
.notice__table td {
  color: var(--ink-2);
}
.notice__more {
  margin-top: 18px;
}
@media (min-width: 768px) {
  .notice__table {
    font-size: 14px;
  }
  .notice__table th {
    width: 200px;
    padding-right: 24px;
  }
}

@media (min-width: 900px) {
  .crumbs {
    padding-top: 24px;
  }
  .flavors {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding-top: 8px;
  }
  .flavors__list {
    grid-template-columns: repeat(3, minmax(0, 132px));
    gap: 14px;
  }
  .pdp {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto 1fr;
    gap: 36px clamp(40px, 5vw, 80px);
    align-items: start;
    padding-top: 24px;
  }
  .pdp__media {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .pdp__panel {
    grid-column: 2;
    grid-row: 2;
    gap: 32px;
  }
  .pdp__name {
    font-size: 26px;
  }
  .pdp-more__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .pdp-more__list li {
    max-width: 280px;
  }
}

/* ============================================================
   마이페이지 · 정기 구독 관리 · 배송지 · 장바구니 · 후기 쓰기
   ============================================================ */
.mypage__orders {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.manage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.order-list__card .order-list__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  color: inherit;
  text-decoration: none;
}
.order-list__card .order-list__link:hover {
  border: 0;
}
.order-list__note {
  font-size: 12.5px;
  color: var(--ink-3);
}
.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  vertical-align: 1px;
}

.order-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.order-list__actions form {
  margin: 0;
}
.order-list__actions .order-list__action {
  margin-top: 0;
}
.order-list__card.is-used {
  opacity: 0.55;
}

/* ---------- 파트너(인플루언서) 정산 — /partner ---------- */
.partner__code {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.partner-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.partner-next__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.partner-next__amount {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.partner-next__when {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.partner-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.partner-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.partner-stats dt {
  font-size: 12.5px;
  color: var(--ink-3);
}
.partner-stats dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.partner-stats small {
  font-size: 12px;
  color: var(--ink-3);
}
.partner-rates {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.partner-rates b {
  color: var(--ink);
}
.partner-rates span {
  white-space: nowrap;
}
.partner-months {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.partner-months__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.partner-months__row.is-selected {
  background: var(--tile);
  padding-inline: 12px;
}
.partner-months__top,
.partner-months__bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.partner-months__top strong,
.partner-months__top span {
  font-weight: 600;
  color: var(--ink);
}
.partner-months__bottom em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: right;
}
.partner-foot {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}


/* 저장한 배송지 고르기 */
.saved-addresses {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.saved-address {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(260px, 78vw);
  max-width: 260px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--ink-2);
  cursor: pointer;
}
.saved-address strong {
  color: var(--ink);
}
/* 주소 한 줄은 카드 안에서 두 줄까지 접는다 — 버튼(<button>)은 플렉스 상자가 안 되는 브라우저가 있어
   한 줄 말줄임이 안 먹고 글자가 카드 밖으로 삐져나왔다(iOS Safari). 그래서 블록으로 두고 줄을 접는다 */
.saved-address strong,
.saved-address > span {
  display: block;
  min-width: 0;
  max-width: 100%;
}
.saved-address > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-height: 1.5;
}
.saved-address:hover,
.saved-address[aria-pressed='true'] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
/* 주소 한 줄: 누르면 우편번호 검색이 열린다(입력칸과 같은 모양). 값은 숨은 칸이 들고 간다 */
.address-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.address-search.is-empty {
  color: var(--ink-3);
}
.address-search:focus-visible {
  outline: none;
  border-color: var(--ink);
}
.address-search.is-invalid {
  border-color: #c0392b;
}
/* 주문서: 회원의 저장한 배송지 요약 + '변경' */
.ship-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ship-summary strong {
  color: var(--ink);
}
.ship-summary__edit {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ship-fields {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.ship-fields[hidden],
.ship-summary[hidden],
.address-search[hidden] {
  display: none;
}
.address-form,
.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flavors .paymethod {
  flex: 0 0 auto;
}
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
fieldset.field legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
}
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* 별점 고르기: 오른쪽에서부터 칠한다(row-reverse) */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.star-input label {
  font-size: 34px;
  line-height: 1;
  color: var(--line-strong);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--lemon);
}
.star-input input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 채워진 별(후기 별점) */
.stars i.is-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f3c74a' stroke='%23e2b336' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.6 6.1.7-4.5 4.2 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.8l6.1-.7z'/%3E%3C/svg%3E");
}
.stars--sm i {
  width: 12px;
  height: 12px;
}
a.rating {
  text-decoration: none;
}

/* 후기 카드 */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-card[hidden] {
  display: none;
}
.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.review-card__who {
  color: var(--ink-2);
  font-weight: 500;
}
.review-card__date {
  margin-left: auto;
}
.review-card__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.review-board__empty[hidden] {
  display: none;
}

/* 상품 상단 '베스트 후기' — 위아래 두 장씩, 좌우로 넘긴다(다음 칸이 조금 보인다). 2026-11-25 */
.reviews__best {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc(100% - 40px);
  gap: 8px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews__best::-webkit-scrollbar {
  display: none;
}
.reviews__best--one-col {
  grid-auto-columns: 100%;
}
.best-review {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 4px 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
}
.best-review__body {
  grid-column: 1 / -1;
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.best-review__who {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  font-size: 12px;
  color: var(--ink-3);
}
/* 사진 후기: 왼쪽에 사진, 오른쪽에 별점 · 이름 · 글 */
.best-review--photo {
  grid-template-columns: 72px auto 1fr;
  column-gap: 12px;
}
.best-review__photo {
  grid-row: 1 / span 2;
  grid-column: 1;
  align-self: start;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--tile);
}
.best-review--photo .stars {
  grid-row: 1;
  grid-column: 2;
}
.best-review--photo .best-review__who {
  grid-column: 3;
}
.best-review--photo .best-review__body {
  grid-column: 2 / -1;
}

/* 구매 줄의 장바구니(일회성 결제일 때만 보인다) */
.buybar__cart {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 18px;
}
.buybar__cart[hidden] {
  display: none;
}

/* 담았어요 알림 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: opacity 0.4s var(--ease);
}
.toast a {
  margin-left: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.toast.is-out {
  opacity: 0;
}

/* 장바구니 */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-line {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cart-line .order-item__body a {
  color: inherit;
  text-decoration: none;
}
.cart-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.cart-line__remove-form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}
.cart-line__remove {
  padding: 4px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cart-line .order-item__body {
  padding-right: 40px;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.stepper__form {
  margin: 0;
}
.stepper__btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}
.stepper__btn[disabled] {
  color: var(--line-strong);
  cursor: not-allowed;
}
.stepper__value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 정기 구독 관리: 건너뛰기 · 일시정지 한 줄, 해지 사유 */
/* 건너뛰기 한 줄 · 일시정지 한 줄. 버튼이 줄을 채우고, 기간 고르기는 필요한 만큼만 */
.manage__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manage__row form {
  margin: 0;
}
.manage__row > form:not(.manage__pause) .button {
  width: 100%;
}
.manage__pause {
  display: flex;
  gap: 8px;
}
.manage__pause select {
  flex: 0 0 auto;
  width: 96px;
  min-height: 48px;
  padding: 0 28px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.manage__pause .button {
  flex: 1 1 auto;
}
@media (min-width: 600px) {
  .manage__row {
    flex-direction: row;
  }
  .manage__row > form {
    flex: 1 1 0;
  }
}
.manage__cancel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manage__reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.manage__reasons legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  padding: 0;
}
.manage__cancel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
}
.manage__cancel textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.manage__cancel .button {
  align-self: flex-start;
}
@media (max-width: 420px) {
  .manage__reasons {
    grid-template-columns: 1fr;
  }
}

/* 구독 해지 확인 팝업 — 잃는 혜택 · 일시정지 · 유지/해지. 폰에서는 아래쪽 카드, 넓은 화면에서는 가운데 */
.keep {
  width: min(calc(100vw - 32px), 420px);
  max-height: calc(100dvh - 32px);
  margin: auto auto max(16px, env(safe-area-inset-bottom));
  padding: 28px 20px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}
.keep__notice {
  margin: 8px 4px 0;
  line-height: 1.6;
  color: var(--ink);
  word-break: keep-all;
}
.keep__ok {
  margin-top: 20px;
}
.keep::backdrop {
  background: rgba(17, 17, 17, 0.5);
}
.keep__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.keep__title:focus {
  outline: none;
}
.keep__lead {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.keep__perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.keep__perks li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px 13px 46px;
  border-radius: 14px;
  background: #f6f6f4;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.keep__perks li::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.keep__perks strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.keep__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.keep__price s {
  font-size: 14px;
  color: var(--ink-3);
}
.keep__price b {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.keep__pause {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: #fff7d6;
}
.keep__pause-text {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: keep-all;
}
.keep__months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.keep__month {
  position: relative;
  cursor: pointer;
}
.keep__month input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.keep__month span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}
.keep__month input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.keep__month input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.keep > .button {
  margin-top: 10px;
}
.keep__go {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 13px 8px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.keep__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* 주문 완료: 구매 후 설문(선택) */
.survey {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.survey__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
}
.survey__title small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.survey__q {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.survey__q legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.survey__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.survey__option {
  position: relative;
  cursor: pointer;
}
.survey__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.survey__option span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.survey__option input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.survey__option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.survey__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.survey .button {
  align-self: flex-start;
}

/* ---------- 제품 상세: 맛마다 버튼 · 강조색(포장 색) ----------
   --accent      버튼 · 배지 바탕          --accent-ink   그 위 글자
   --accent-text 흰 바탕 위 강조 글자(할인율 · 배송비 무료)  --accent-soft  옅은 바탕 */
:root {
  --accent: var(--ink);
  --accent-ink: #fff;
  --accent-text: var(--go);
  --accent-soft: var(--tile);
}
.flavor-lemon {
  --accent: #ffc928;
  --accent-ink: #141414;
  --accent-text: #9c6700;
  --accent-soft: #fff6d9;
}
.flavor-grape {
  --accent: #9fd332;
  --accent-ink: #141414;
  --accent-text: #4a7d0a;
  --accent-soft: #f0f8e1;
}
.flavor-blueberry {
  --accent: #7353e0;
  --accent-ink: #fff;
  --accent-text: #5f40cc;
  --accent-soft: #f1edfd;
}
.page-product .buybar__cta {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.page-product .buybar__cta:hover {
  background: var(--accent);
  filter: brightness(0.94);
}
.page-product .buybar__cta[disabled] {
  border-color: var(--line-strong);
  background: var(--line-strong);
  color: var(--ink-2);
  filter: none;
}
.page-product .buybar__cart:hover {
  border-color: var(--accent-text);
}
.page-product .buy__tab-badge,
.page-product .plan__off {
  background: var(--accent);
  color: var(--accent-ink);
}
.page-product .plan__ship {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: none;
}
.page-product .price__off,
.page-product .buy__total-ship.is-free {
  color: var(--accent-text);
}
.page-product .plan input:checked + .plan__body {
  /* 고른 칸: 맛 색 테두리(2px) + 아주 옅은 맛 색 바탕. 둘레의 빛(glow)은 2026-11-25 소유자 요청으로 뺐다 */
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* 맛 섞기(일회성 3 · 6개월) — 평소엔 없고, 3 · 6개월을 고르면 플랜 아래 한 줄. 누르면 맛 칸(지금 맛 = 나머지, 다른 맛 −/+) */
.mix {
  margin-top: 10px;
}
.mix__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mix__title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mix__sub {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.mix__icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.mix__icon::before,
.mix__icon::after {
  content: '';
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-3);
}
.mix__icon::after {
  transform: rotate(90deg);
  transition: transform 0.2s var(--ease);
}
.mix.is-open .mix__icon::after {
  transform: rotate(0);
}
.mix.is-open .mix__toggle {
  border-style: solid;
  border-color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
}
.mix__toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.mix__panel {
  padding: 12px;
  border: 1px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.mix__cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mix__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 4px;
  border-radius: 12px;
  background: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 24%, #fff);
}
.mix__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.mix__fixed {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 700;
}
.mix__fixed b,
.mix__step b {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mix__step {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mix__step b {
  min-width: 20px;
  text-align: center;
}
.mix__step button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mix__step button:disabled {
  opacity: 0.35;
  cursor: default;
}
.mix__step button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
@media (max-width: 380px) {
  /* 맛 세 칸 + −/+ 가 320px 한 줄에 들어가게 */
  .mix__panel {
    padding: 10px;
  }
  .mix__cells {
    gap: 6px;
  }
  .mix__step {
    gap: 2px;
  }
  .mix__step button {
    width: 28px;
    height: 28px;
  }
  .mix__step b {
    min-width: 16px;
  }
}

/* ---------- 주문서 · 주문 확인: 고른 맛의 색(제품 상세와 같은 --accent) ----------
   결제 · 업그레이드 버튼, 할인코드 '적용', 혜택 배지, 통 수 고르기, 결제 직후 업셀 상자.
   카카오 채널 카드(카카오 노랑)와 간편결제 상표 색은 그대로 둔다. */
.page-checkout .button--primary,
.page-order .button--primary,
.page-checkout .coupon .field__row .button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.page-checkout .button--primary:hover,
.page-order .button--primary:hover,
.page-checkout .coupon .field__row .button:hover {
  background: var(--accent);
  filter: brightness(0.94);
}
.page-checkout .button--primary[disabled],
.page-order .button--primary[disabled] {
  border-color: var(--line-strong);
  background: var(--line-strong);
  color: var(--ink-2);
  filter: none;
}
.page-checkout .coupon__icon--tag {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.page-checkout .coupon__desc--amount,
.page-checkout .coupon__message:not(.is-error),
.page-checkout .summary__rows dd.is-free {
  color: var(--accent-text);
}
.page-checkout .coupon.is-applied {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.page-checkout .order-item__perks span {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.page-checkout .check input,
.page-order .check input {
  accent-color: var(--accent-text);
}
/* 주문서: 정기 구독 통 수(주문 상품 아래) */
.order-qty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.order-qty__label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.order-qty .stepper {
  background: #fff;
}
.order-qty .stepper__btn {
  width: 42px;
  height: 42px;
  font-size: 20px;
}
.order-qty .stepper__btn[disabled] {
  cursor: default;
}
.order-qty .stepper__value {
  min-width: 30px;
  font-size: 16px;
  font-weight: 700;
}
.order-qty__note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.order-qty__note strong {
  font-weight: 800;
  color: var(--ink);
}
.order-qty__badge {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
/* 주문서: 일회성 주문에서 더 할인받는 길(정기 구독 · 다음 묶음) — 주문 상품 바로 아래 */
.order-upsell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-soft);
}
.order-upsell__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: keep-all;
}
/* 제목 아래 한 줄 — 최대 할인액(강조색) */
.order-upsell__sub {
  margin: -14px 0 4px; /* 상자의 칸 사이(20px)보다 제목에 붙게 */
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text, var(--ink));
}
/* 상자 = 지금 가격 → 할인된 가격, 상자 위 모서리에 붙은 스티커 = 할인액 */
.order-upsell__row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 38px 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}
.order-upsell__row::after {
  content: '›';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
}
.order-upsell__row:hover,
.order-upsell__row:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.order-upsell__sticker {
  position: absolute;
  top: -12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(-3deg);
  box-shadow: 0 3px 8px rgba(17, 17, 17, 0.14);
}
.order-upsell__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.order-upsell__prices {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
  white-space: nowrap;
}
.order-upsell__prices s {
  font-size: 14.5px;
  color: var(--ink-3);
}
.order-upsell__prices small {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.order-upsell__arrow {
  font-size: 14px;
  color: var(--ink-3);
}
.order-upsell__prices strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* '+ 무료배송' — 지금 주문은 배송비가 있고 그 길로 가면 무료배송일 때. 휴대폰은 상자 오른쪽 가운데(비어 있는 자리),
   더 좁으면 가격 아래 줄, 넓은 화면은 가격 바로 뒤 */
.order-upsell__ship {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text, var(--ink));
  white-space: nowrap;
}
@media (min-width: 390px) and (max-width: 519px) {
  .order-upsell__ship {
    position: absolute;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
  }
}
@media (max-width: 359px) {
  /* 320px: '37,000원/통 → 29,900원/통' 이 한 줄에 들어가게 */
  .order-upsell {
    padding: 14px 12px;
  }
  .order-upsell__row {
    padding-left: 14px;
    padding-right: 30px;
  }
  .order-upsell__row::after {
    right: 10px;
  }
  .order-upsell__prices {
    gap: 2px 5px;
  }
  .order-upsell__prices s {
    font-size: 13.5px;
  }
  .order-upsell__prices strong {
    font-size: 17px;
  }
}
@media (min-width: 520px) {
  .order-upsell__row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .order-upsell__label {
    flex: 1; /* 가격 · '+ 무료배송'은 오른쪽에 붙여서 */
    font-size: 15px;
  }
}
/* 결제 직후 업셀 상자 */
.page-order .upsell {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.page-order .upsell__title {
  color: var(--ink);
  word-break: keep-all;
  text-wrap: balance; /* '…구매하기, 20%' / '할인!' 처럼 끝 단어만 떨어지지 않게 */
}
.page-order .upsell__arrow {
  background-color: var(--accent-text);
}
.page-order .upsell__now strong,
.page-order .upsell__terms strong {
  color: var(--accent-text);
}
.page-order .upsell__badge {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ============================================================
   3-1. Quality — 검사 결과 · 로트별 검사 · 품목제조신고 · GMP
   한 톤 낮은 바탕(--tile) 위 흰 카드. 포인트 색은 --q 하나(붓자국 · 숫자 칸 · 빛 · 아이콘 원 · 도장) — 맛마다 다르다.
   문서 이미지는 파일 자체에 가림 처리를 구웠다(CSS 로 가리지 않는다).
   ============================================================ */
.quality {
  --q: var(--lemon);
  padding: var(--section) 0;
  background: var(--tile);
}
.flavor-grape .quality {
  --q: #a9d94a;
}
.flavor-blueberry .quality {
  --q: #a590f0;
}
/* 붓자국 그림은 레몬 색이라 다른 맛에서는 색을 돌린다 */
.flavor-grape .quality__brush img {
  filter: hue-rotate(44deg) saturate(0.85) brightness(1.12);
}
.flavor-blueberry .quality__brush img {
  filter: hue-rotate(212deg) saturate(0.7) brightness(1.05);
}
.quality__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.quality__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  text-align: center;
}
.quality__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink-3);
}
.quality__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.045em;
  word-break: keep-all;
}
/* '품질' 뒤의 붓자국 — 통 라벨처럼 글자 뒤에 깔린다 */
.quality__mark {
  position: relative;
  z-index: 0;
  display: inline-block;
}
.quality__brush {
  position: absolute;
  z-index: -1;
  left: -22%;
  top: -12%;
  width: 150%;
  pointer-events: none;
}
.quality__brush img {
  display: block;
  width: 100%;
  height: auto;
}
.qcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 18px 30px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  /* 성적서 뒤 빛이 카드 밖으로 새지 않게 */
  overflow: hidden;
}
.qcard .quality__eyebrow {
  margin-bottom: 4px;
}
.qcard__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.qcard__text {
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: keep-all;
}

/* 숫자 — 옅은 포인트 색 칸 네 개. 휴대폰 2×2, 넓은 화면 1×4 */
.qstats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.qstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 6px 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--q) 20%, #fff);
}
.qstat__num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.qstat__num small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.qstat__label {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  word-break: keep-all;
}

/* 문서 한 장(썸네일) — 반듯한 흰 종이, 얇은 테두리 · 약한 그림자 */
.qdoc {
  position: relative;
  display: block;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.06), 0 2px 4px rgba(20, 20, 20, 0.05), 0 18px 36px -12px rgba(20, 20, 20, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.qdoc:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.07), 0 4px 8px rgba(20, 20, 20, 0.06), 0 26px 44px -14px rgba(20, 20, 20, 0.28);
}
.qdoc__img {
  display: block;
  aspect-ratio: 1653 / 2339;
  overflow: hidden;
  border-radius: 6px;
}
.qdoc__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qdoc__chip {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.qdoc__zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* A — 성적서 두 장을 빛 아래 겹쳐 둔다 */
.qstack {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.06;
  margin-top: 30px;
}
.qstack::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 4% -10% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--q) 34%, transparent), transparent);
  pointer-events: none;
}
.qstack .qdoc {
  position: absolute;
}
.qstack__front {
  z-index: 2;
  left: 6%;
  top: 9%;
  width: 60%;
}
.qstack__back {
  z-index: 1;
  right: 5%;
  top: 0;
  width: 54%;
}

/* B — 3단계: 원 아이콘 · 01 · 제목 · 한 줄, 사이에 → */
.qflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 22px 0 4px;
  padding: 0;
  list-style: none;
}
.qflow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qflow__step + .qflow__step::before {
  content: '→';
  position: absolute;
  top: 27px;
  left: -10px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-3);
}
.qflow__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, color-mix(in srgb, var(--q) 38%, #fff) 72%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--q) 55%, #fff), 0 10px 22px -10px color-mix(in srgb, var(--q) 90%, transparent);
  color: var(--ink);
}
.qflow__icon svg {
  width: 30px;
  height: 30px;
}
.qflow__no {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.qflow__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.qflow__text {
  padding-inline: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  word-break: keep-all;
}

/* B — 로트마다 성적서 윗부분(제품명 · 제조번호 · 결과표 머리) */
.qlots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.qlot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qlot__doc .qdoc__img {
  aspect-ratio: 4 / 3.3;
}
.qlot__doc .qdoc__img img {
  object-position: top;
}
.qlot__doc .qdoc__img::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 92%);
  pointer-events: none;
}
.qlot__caption {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.qlot__flavor {
  font-weight: 700;
  color: var(--ink);
}
.qlot__caption strong {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* C · D — 문서를 겹쳐 펼쳐 둔다. 뒤에 옅은 빛 */
.qpair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.qcard--doc {
  padding-bottom: 36px;
}
.qfan {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1.02;
  margin-top: 22px;
}
.qfan::before {
  content: '';
  position: absolute;
  inset: 8% -8% -4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--q) 32%, transparent), transparent);
  pointer-events: none;
}
.qfan .qdoc {
  position: absolute;
}
.qfan__front {
  z-index: 2;
  right: 4%;
  top: 12%;
  width: 60%;
}
.qfan__back {
  z-index: 1;
  left: 4%;
  top: 0;
  width: 56%;
}
.qfan--one .qfan__single {
  left: 50%;
  top: 2%;
  width: 66%;
  transform: translateX(-50%);
}
.qfan--one .qfan__single:hover {
  transform: translate(-50%, -4px);
}
/* GMP 공식 마크 대신 글자 도장 — 지정서 귀퉁이에 */
.qseal {
  position: absolute;
  z-index: 3;
  right: 6%;
  top: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--q);
  box-shadow: 0 0 0 4px #fff, 0 10px 22px -8px rgba(20, 20, 20, 0.35);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
  pointer-events: none;
}

@media (min-width: 768px) {
  .quality__inner {
    gap: 24px;
  }
  .quality__head {
    gap: 18px;
    margin-bottom: 26px;
  }
  .quality__title {
    font-size: clamp(36px, 3.6vw, 46px);
  }
  .qcard {
    padding: 60px 48px 52px;
    border-radius: 36px;
  }
  .qcard__title {
    font-size: clamp(26px, 2.4vw, 32px);
  }
  .qcard__text {
    font-size: 16px;
  }
  .qstats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 900px;
    margin-top: 26px;
  }
  .qstats {
    gap: 12px;
  }
  .qstat {
    padding: 32px 10px 28px;
    border-radius: 22px;
  }
  .qstat__num {
    font-size: 46px;
  }
  .qstat__label {
    font-size: 13.5px;
  }
  .qstack {
    max-width: 520px;
    margin-top: 44px;
  }
  .qflow {
    gap: 24px;
    max-width: 820px;
    margin-top: 34px;
  }
  .qflow__step + .qflow__step::before {
    top: 46px;
    left: -24px;
    font-size: 20px;
  }
  .qflow__icon {
    width: 112px;
    height: 112px;
  }
  .qflow__icon svg {
    width: 42px;
    height: 42px;
  }
  .qflow__no {
    font-size: 12px;
  }
  .qflow__title {
    font-size: 18px;
  }
  .qflow__text {
    font-size: 14px;
  }
  .qlots {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 24px;
    max-width: 840px;
    margin-top: 40px;
  }
  .qlot__caption {
    font-size: 13.5px;
  }
  .qpair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .qcard--doc {
    padding-inline: 36px;
  }
  .qfan {
    max-width: 340px;
    margin-top: auto;
    padding-top: 30px;
  }
}

/* 문서 라이트박스 — 화면 전체, 핀치 · 두 번 탭 · 휠 확대(quality.js) */
html.qv-open {
  overflow: hidden;
}
.qv {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.94);
  color: #fff;
  overflow: hidden;
}
.qv[open] {
  display: flex;
  flex-direction: column;
}
.qv::backdrop {
  background: rgba(17, 17, 17, 0.94);
}
.qv__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px 18px;
}
.qv__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qv__count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.qv__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.qv__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.qv__stage.is-zoomed {
  cursor: grab;
}
.qv__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  background: #fff;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.qv__nav {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
}
.qv__nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.qv__nav--prev {
  left: 16px;
}
.qv__nav--next {
  right: 16px;
}
@media (min-width: 768px) {
  .qv__nav {
    display: grid;
  }
  .qv__nav[hidden] {
    display: none;
  }
}

/* ============================================================
   카카오톡 채널 친구 할인 — 홈 첫 화면 스티커(.kd-sticker) → 팝업(.kd)
   쿠폰 두 장(단건 · 정기 구독) + 정기 구독 회차마다 -N%(.kd-orders) + 채널 추가 · 코드 등록
   ============================================================ */
/* 오른쪽 가장자리에 붙은 세로 라벨 — 글자는 세로쓰기(한글은 바로 서고 숫자는 눕는다). 안쪽 점선은 라벨지 재단선 */
.kd-sticker {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 44px;
  padding: 16px 0 17px;
  border: 0;
  border-radius: 14px 0 0 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: -8px 12px 24px -14px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  animation: kd-slide 0.6s var(--ease) 0.5s both;
  transition: transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.kd-sticker::before {
  content: '';
  position: absolute;
  inset: 5px 0 5px 5px;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  pointer-events: none;
}
.kd-sticker:hover,
.kd-sticker:focus-visible {
  transform: translateX(-4px);
}
.kd-sticker__value,
.kd-sticker__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
  white-space: nowrap;
}
.kd-sticker__value {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--lemon);
}
.kd-sticker__label {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
@keyframes kd-slide {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
}

.kd {
  width: min(calc(100vw - 24px), 420px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  overflow: auto;
  overscroll-behavior: contain;
}
.kd::backdrop {
  background: rgba(17, 17, 17, 0.5);
}
.kd__inner {
  position: relative;
  padding: 30px 20px 18px;
  text-align: center;
}
.kd__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}
.kd__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.kd__title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.04em;
}

/* 쿠폰 두 장 — 가장자리가 반원으로 파인 표 모양 */
.kd__tickets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.kd-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 8px 14px;
  border: 1.5px dashed #e3bd45;
  border-radius: 14px;
  background: #fff7da;
}
.kd-ticket::before,
.kd-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--bg);
}
.kd-ticket::before {
  left: -8px;
}
.kd-ticket::after {
  right: -8px;
}
.kd-ticket--sub {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}
.kd-ticket__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.07);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kd-ticket--sub .kd-ticket__tag {
  background: rgba(255, 255, 255, 0.14);
}
.kd-ticket__value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.kd-ticket__value small {
  margin-left: 1px;
  font-size: 16px;
  font-weight: 800;
}
.kd-ticket--sub .kd-ticket__value {
  color: var(--lemon);
}
.kd-ticket__note {
  font-size: 12px;
  color: var(--ink-2);
}
.kd-ticket__note s {
  color: var(--ink-3);
}
.kd-ticket__note b {
  font-weight: 700;
  color: var(--ink);
}
.kd-ticket--sub .kd-ticket__note {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

/* 정기 구독 — 회차마다 -N%, 점선으로 이어진다 */
.kd-orders {
  margin-top: 12px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  background: var(--tile);
}
.kd-orders__head {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kd-orders__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.kd-orders__list::before {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 44px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(20, 20, 20, 0.28) 0 5px, transparent 5px 10px);
}
.kd-orders__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.kd-orders__no {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.kd-orders__chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 0 4px var(--tile);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.kd-orders__item--more .kd-orders__chip {
  background: var(--ink);
  color: var(--lemon);
}
.kd[open] .kd-orders__chip {
  animation: kd-chip 0.5s var(--ease) both;
}
.kd[open] .kd-orders__item:nth-child(2) .kd-orders__chip {
  animation-delay: 0.12s;
}
.kd[open] .kd-orders__item:nth-child(3) .kd-orders__chip {
  animation-delay: 0.24s;
}
.kd[open] .kd-orders__item:nth-child(4) .kd-orders__chip {
  animation-delay: 0.36s;
}
@keyframes kd-chip {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* 단계: 채널 추가 → 코드 등록 → 끝 */
.kd__step {
  margin-top: 18px;
}
.kd__kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: #fee500;
  color: #191919;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.kd__hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.kd__hint a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kd__link {
  margin-top: 2px;
  padding: 6px;
  border: 0;
  background: none;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.kd__lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.kd__lead strong {
  color: var(--ink);
}
.kd__form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.kd__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.kd__input::placeholder {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.kd__input:focus {
  outline: none;
  border-color: var(--ink);
}
.kd__save {
  flex: none;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.kd__save:disabled {
  opacity: 0.5;
}
.kd__msg {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--go);
}
.kd__msg.is-error {
  color: #d4380d;
}
.kd__done-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--go);
  color: #fff;
}
.kd__go {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.kd__fine {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .kd-sticker {
    top: 26%;
    width: 56px;
    padding: 22px 0 23px;
    gap: 9px;
    border-radius: 18px 0 0 18px;
  }
  .kd-sticker::before {
    inset: 6px 0 6px 6px;
    border-radius: 13px 0 0 13px;
  }
  .kd-sticker__value {
    font-size: 21px;
  }
  .kd-sticker__label {
    font-size: 17px;
  }
  .kd__inner {
    padding: 36px 28px 22px;
  }
  .kd__title {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kd-sticker,
  .kd[open] .kd-orders__chip {
    animation: none;
  }
}

/* 마이페이지 쿠폰함 — 받은 할인코드 등록 */
.mypage__coupon-form {
  margin-bottom: 14px;
}

/* ============================================================
   카카오 채널 할인 — 긁는 팝업(.kd--scratch). 쿠폰 두 장을 은박(canvas)이 덮고, 긁으면 나온다(kakao-offer.js).
   긁기 전: 제목 한 줄과 은박뿐(건너뛰는 버튼 없음). 긁은 뒤(.is-revealed): 종전 팝업 내용 그대로.
   ============================================================ */
.kd--scratch .kd__inner {
  overflow: hidden; /* 색종이가 팝업 밖으로 나가 스크롤바를 만들지 않게 */
}
.kd--scratch .kd__after-text,
.kd--scratch.is-revealed .kd__before,
.kd--scratch:not(.is-revealed) .kd__eyebrow,
.kd--scratch:not(.is-revealed) .kd__rest {
  display: none;
}
.kd--scratch:not(.is-revealed) .kd__inner {
  padding-bottom: 26px; /* 긁기 전에는 제목과 은박뿐 — 아래 여백을 위와 맞춘다 */
}
.kd--scratch.is-revealed .kd__after-text {
  display: inline;
}
.kd--scratch.is-revealed .kd__rest {
  animation: kd-rise 0.5s var(--ease) 0.15s both;
}
.kd-scratch {
  position: relative;
  margin-top: 20px;
  border-radius: 16px;
  -webkit-user-select: none;
  user-select: none;
}
.kd-scratch .kd__tickets {
  margin-top: 0;
}
/* 은박을 칠하기 전에는 쿠폰이 비치지 않게(칠하지 못하면 스크립트가 바로 연다) */
.kd--scratch:not(.is-ready):not(.is-revealed) .kd__tickets {
  visibility: hidden;
}
.kd-scratch__foil {
  position: absolute;
  inset: -4px; /* 쿠폰보다 사방 4px 크게 — 둥근 모서리로 쿠폰 테두리가 비치지 않는다 */
  display: block;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08), 0 6px 18px -10px rgba(17, 17, 17, 0.35);
  cursor: grab;
  touch-action: none; /* 긁는 동안 팝업이 스크롤되지 않게 */
  transition: opacity 0.45s ease;
}
.kd-scratch__foil:active {
  cursor: grabbing;
}
.kd-scratch__foil:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.kd--scratch.is-revealed .kd-scratch__foil {
  opacity: 0;
  pointer-events: none;
}
.kd-scratch [hidden] {
  display: none;
}
.kd--scratch .kd__title:focus {
  outline: none; /* 열릴 때 제목에 포커스를 둔다(닫기 버튼에 테두리가 생기지 않게 · 화면 낭독기는 제목부터) */
}
/* 긁으라는 손짓 — 처음 긁으면 사라진다 */
.kd-scratch__hand {
  position: absolute;
  left: 50%;
  bottom: 9%;
  display: block;
  margin-left: -15px;
  color: #3b4047;
  pointer-events: none;
  animation: kd-hand 1.7s ease-in-out infinite;
}
@keyframes kd-hand {
  0%,
  100% {
    transform: translateX(-46px) rotate(-10deg);
  }
  50% {
    transform: translateX(46px) rotate(8deg);
  }
}
.kd--scratch.is-revealed .kd-ticket {
  animation: kd-pop 0.5s var(--ease) both;
}
.kd--scratch.is-revealed .kd-ticket--sub {
  animation-delay: 0.08s;
}
@keyframes kd-pop {
  0% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes kd-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.kd-confetti {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}
.kd-confetti i {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: kd-confetti 1.15s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes kd-confetti {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.6);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), calc(var(--dy) + 90px)) rotate(var(--rot)) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kd-scratch__hand,
  .kd--scratch.is-revealed .kd-ticket,
  .kd--scratch.is-revealed .kd__rest {
    animation: none;
  }
}
@media (max-width: 340px) {
  /* 320px: '3,000원' 이 쿠폰 밖으로 나가지 않게 */
  .kd-ticket__value {
    font-size: 28px;
  }
}
