/* uchi 고객 화면 — BI: Ivory 바탕, Ink 글자, Forest 주요 행동, Pretendard */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/brand/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ivory: #FAF8F3;
  --ink: #202721;
  --forest: #365B42;
  --forest-strong: #2A4834;
  --forest-soft: #EEF3EC;
  --mist: #E7ECE5;
  --stone: #D8DDD5;
  --muted: #586457;
  --line: #848E82;
  --white: #FFFFFF;
  --band: #F1EFE9;
  --danger: #B42318;
  --sale: #C93A2B;
  --sale-strong: #A82E21;
  --danger-soft: #FDF1EF;
  --warn: #7A5300;
  --warn-soft: #FFF5DD;
  --ok: #2F6B45;
  --radius: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --page: 480px;
  --focus: 0 0 0 3px rgba(54, 91, 66, 0.28);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 560px) {
  body { background: #EFEDE6; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6E9A7B; outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.app {
  position: relative;
  max-width: var(--page);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--ivory);
  overflow-x: clip;
}
@media (min-width: 560px) {
  .app { box-shadow: 0 0 0 1px var(--stone), 0 12px 48px rgba(32, 39, 33, 0.06); }
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600; line-height: 1.3;
  text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-strong); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: #C9CFC6; color: #47504A; cursor: not-allowed; }
.btn-secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--forest); color: var(--forest); }
.btn-lg { width: 100%; min-height: 56px; font-size: 17px; font-weight: 700; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 15px; border-radius: var(--radius-sm); }
.link-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px;
  border: 0; background: none; color: var(--forest); font-weight: 600; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px;
}
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.iconbtn:hover { background: rgba(32, 39, 33, 0.05); }

/* ---------- 공지 ---------- */
.notice {
  display: flex; align-items: flex-start;
  background: var(--mist); color: var(--forest-strong);
  font-size: 14px; font-weight: 600; line-height: 1.5;
}
.notice__link {
  flex: 1; min-width: 0; display: flex; gap: 8px; align-items: flex-start;
  padding: 11px 4px 11px var(--gutter); text-decoration: none;
}
.notice__icon { flex: none; margin-top: 1px; }
.notice--important .notice__icon { color: #8A3A12; }
.notice__text {
  flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notice__more { flex: none; display: inline-flex; align-items: center; color: var(--forest); white-space: nowrap; font-weight: 600; }
.notice__close {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: none; color: var(--forest-strong);
}

/* ---------- 헤더 ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 8px 0 var(--gutter); border-bottom: 1px solid var(--stone);
}
.header__logo { display: block; padding: 8px 0; }
.header__logo img { width: 92px; height: auto; }
.header__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 10px;
}
.header__link:hover { color: var(--forest); background: rgba(54, 91, 66, 0.06); }

.subheader {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  height: 56px; padding: 0 4px; background: rgba(250, 248, 243, 0.96);
  border-bottom: 1px solid var(--stone); backdrop-filter: blur(6px);
}
.subheader h1 { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: -0.03em; }

/* ---------- 홈: 기본 상품 ---------- */
.section { padding: 22px var(--gutter) 28px; }
.hero-title { font-size: 27px; font-weight: 700; line-height: 1.38; letter-spacing: -0.045em; text-wrap: balance; }
.hero-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }

.photo {
  position: relative; margin-top: 16px; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; background: var(--mist);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.photo.is-loading img { opacity: .55; }
.photo--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
/* 할인 스티커: 빨간 바탕 흰 글씨 (Ivory 위 대비 4.5:1 이상) */
.sale-sticker {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--sale); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; white-space: nowrap;
}
.sale-sticker--sm { padding: 1px 7px; font-size: 12px; }
.photo-frame { position: relative; }
.sale-sticker--photo {
  position: absolute; top: 28px; left: 12px; z-index: 1; padding: 6px 14px;
  font-size: 17px; box-shadow: 0 4px 12px rgba(32, 39, 33, 0.18);
}
.photo-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.sample-chip { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: 12px; font-weight: 600; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.price-option { position: relative; min-width: 0; }
.price-option input, .color-option input, .date-chip input, .slot-chip input, .segmented__opt input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.price-option label {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 78px; padding: 12px 34px 12px 14px;
  background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.price-option label:hover { border-color: #AEB7AB; }
.price-option input:checked + label { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--forest-soft); }
.price-option input:focus-visible + label { box-shadow: inset 0 0 0 1px var(--forest), var(--focus); }
.price-option input:disabled + label { background: #F2F1EC; border-color: var(--stone); color: #7D857B; cursor: not-allowed; }
.price-option input:disabled + label .price__now { color: #7D857B; }
.price-option__check {
  position: absolute; top: 10px; right: 10px; display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff;
}
.price-option input:checked + label .price-option__check { display: inline-flex; }
.price-option__name { font-size: 13px; color: var(--muted); }
.price-option__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 22px; }
.price-option__label { font-size: 14px; font-weight: 700; color: var(--forest-strong); }
.price-option input:disabled + label .price-option__label { color: #7D857B; }
.price-option input:disabled + label .sale-sticker { background: #9AA197; }
.soldout { font-weight: 700; color: var(--muted); }

.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.price__badge { font-size: 15px; font-weight: 800; color: var(--sale); }
.price-option input:disabled + label .price__badge { color: #7D857B; }
.price__now { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
.price__base { font-size: 14px; color: var(--muted); }
.price--lg .price__now { font-size: 28px; }
.price--lg .price__badge { font-size: 18px; }

.summary { margin-top: 14px; padding: 16px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-md); }
.summary__name { font-size: 14px; font-weight: 600; color: var(--muted); }
.summary__desc { margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.summary__event {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px;
  border-radius: 8px; background: #FDECE9; color: var(--sale-strong); font-size: 14px; font-weight: 700;
}
.facts { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stone); }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 15px; align-items: start; }
.fact dt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.fact dt .icon { color: var(--forest); flex: none; }
.cta { margin-top: 14px; }

.closed-banner {
  display: flex; gap: 10px; margin: 16px var(--gutter) 0; padding: 14px 16px;
  background: var(--warn-soft); color: #4A3600; border: 1px solid #F0DCA8; border-radius: var(--radius-md);
}
.closed-banner strong { display: block; font-size: 16px; }
.closed-banner p { font-size: 14px; margin-top: 2px; }
.empty-note { margin-top: 16px; color: var(--muted); }

/* ---------- 홈: 랜덤꽃다발 ---------- */
.random { margin-top: 4px; padding: 30px var(--gutter) 28px; background: var(--mist); }
.random__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--forest); }
.random__title { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.35; }
.random__sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.photo--random { background: #DCE3D9; }
.random__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; }
.random__size { font-size: 14px; color: var(--muted); }
.random__card { margin-top: 14px; padding: 18px 12px 16px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); }
.random__legend { padding: 0 4px; font-size: 16px; font-weight: 700; }
.color-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 2px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
@media (min-width: 420px) { .color-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.color-option { min-width: 0; }
.color-option label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 80px; padding: 8px 0 6px; border-radius: 12px; cursor: pointer; text-align: center;
}
.color-option label:hover .swatch { transform: scale(1.04); }
.swatch {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(32, 39, 33, 0.14); transition: transform .12s;
}
.swatch--white { box-shadow: inset 0 0 0 1.5px #788377; }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; }
.swatch__tick { display: none; color: #fff; }
.swatch--dark .swatch__tick { color: var(--ink); }
.color-option input:checked + label .swatch::after { border-color: var(--forest); }
.color-option input:checked + label .swatch__tick { display: inline-flex; }
.color-option input:focus-visible + label { box-shadow: var(--focus); }
.color-option__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.color-option input:checked + label .color-option__name { font-weight: 700; color: var(--forest-strong); }
.color-option input:disabled + label { cursor: not-allowed; }
.color-option input:disabled + label .swatch { opacity: .38; }
.color-option input:disabled + label .color-option__name { color: #7D857B; }
.color-option__closed { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.random__status { margin-top: 14px; min-height: 26px; text-align: center; font-size: 16px; font-weight: 600; }
.random__status.is-error { color: var(--danger); }
.random__notes { margin: 10px 4px 0; padding: 12px 0 0 18px; border-top: 1px solid var(--stone); color: var(--muted); font-size: 14px; line-height: 1.65; }
.random__notes li + li { margin-top: 2px; }
.random .cta { margin-top: 14px; }

/* ---------- 홈: 안내·카운터 ---------- */
.info { padding: 30px var(--gutter) 6px; }
.info h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 12px; }
.info-list { display: grid; gap: 10px; }
.info-item { padding: 14px 16px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-md); }
.info-item h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.info-item h3 .icon { color: var(--forest); }
.info-item p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.counter { margin: 26px var(--gutter) 0; }
.counter__card {
  padding: 18px 16px 16px; text-align: center;
  background: var(--forest-soft); border: 1px solid #CFDCCB; border-radius: var(--radius);
}
.counter__title { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--forest-strong); font-size: 16px; font-weight: 700; }
.counter__title > .icon { color: var(--sale); }
.counter__value { margin-top: 2px; color: var(--forest-strong); }
.counter__value strong { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.counter__unit { margin-left: 2px; font-size: 18px; font-weight: 700; }
.counter__sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
.counter__info-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -8px -10px -8px -4px; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.counter__info-btn:hover { color: var(--forest); }
.counter__info { margin: 10px auto 0; max-width: 360px; padding: 10px 12px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-sm); text-align: left; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 바닥글 ---------- */
.footer { margin-top: 18px; padding: 20px var(--gutter) calc(32px + var(--safe-bottom)); border-top: 1px solid var(--stone); color: var(--muted); font-size: 13px; line-height: 1.75; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 8px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
/* 하단 정보: 항목마다 한 줄, 이름 칸은 고정 폭이라 줄바꿈해도 정렬이 흐트러지지 않는다 */
.footer__info { display: grid; gap: 3px; margin: 12px 0 0; }
.footer__info > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.footer__info dt { color: #6B7569; }
.footer__info dd { color: var(--ink); overflow-wrap: anywhere; }
.footer__info a { color: inherit; text-underline-offset: 2px; }
.footer__info--contact { padding-bottom: 12px; border-bottom: 1px solid var(--stone); font-size: 14px; }
.footer__info--contact a { font-weight: 700; }
.nowrap { white-space: nowrap; }
.footer__copy { margin-top: 12px; }

/* ---------- 공통 상태 표시 ---------- */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.pill--wait { background: var(--warn-soft); color: var(--warn); }
.pill--progress { background: var(--forest-soft); color: var(--forest-strong); }
.pill--done { background: var(--mist); color: var(--muted); }
.pill--bad { background: #F3F0EE; color: #6B4B44; }
.pill--review { background: #FFEFE6; color: #8A3A12; }

.banner {
  display: flex; gap: 10px; align-items: flex-start; margin: 14px var(--gutter) 0; padding: 14px 16px;
  border-radius: var(--radius-md); border: 1px solid var(--stone); background: var(--white); font-size: 15px; text-decoration: none;
}
.banner strong { display: block; font-weight: 700; }
.banner p { margin-top: 2px; font-size: 14px; }
.banner .icon { flex: none; margin-top: 1px; }
.banner--error { background: var(--danger-soft); border-color: #F3C6C0; color: #7A1E14; }
.banner--warn { background: var(--warn-soft); border-color: #F0DCA8; color: #4A3600; }
.banner--info { background: var(--forest-soft); border-color: #CFDCCB; color: var(--forest-strong); }

/* ---------- 주문서 ---------- */
.has-paybar .app { padding-bottom: calc(92px + var(--safe-bottom)); }
.checkout { padding-bottom: 8px; }
.form-section { padding: 22px var(--gutter); border-bottom: 8px solid var(--band); }
.form-section--last { border-bottom: 0; }
.form-section h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 12px; }
.field { margin-top: 14px; }
.field:first-of-type { margin-top: 0; }
.form-section h2 + .field { margin-top: 0; }
.field--tight { margin-top: 10px; }
.field label, .field .label, .slot-grid legend { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.input {
  display: block; width: 100%; height: 52px; padding: 0 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 16px;
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input::placeholder { color: #8A9388; }
.input:focus { outline: none; border-color: var(--forest); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.hint { margin-top: 6px; color: var(--muted); font-size: 14px; }
.hint--right { text-align: right; }
.hint-inline { color: var(--muted); font-size: 14px; font-weight: 500; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; color: var(--danger); font-size: 14px; font-weight: 600; }
.field-error .icon { flex: none; margin-top: 2px; }

.product-card { display: flex; gap: 12px; align-items: center; }
.product-card__img { flex: none; width: 96px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--mist); }
.product-card__img--empty { display: block; }
.product-card__body { flex: 1; min-width: 0; }
.product-card__name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.product-card__price { margin-top: 2px; font-size: 16px; }
.product-card__price s { color: var(--muted); font-size: 14px; }
.product-card__note { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.product-card__note .icon { flex: none; }
.product-card__change { flex: none; align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--white); }
.tag-color { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--mist); font-size: 14px; font-weight: 700; color: var(--forest-strong); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.segmented__opt { position: relative; }
.segmented__opt label {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  background: var(--white); border: 1px solid var(--stone); border-radius: 12px; font-weight: 600; cursor: pointer;
}
.segmented__opt input:checked + label { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--forest-soft); color: var(--forest-strong); }
.segmented__opt input:focus-visible + label { box-shadow: inset 0 0 0 1px var(--forest), var(--focus); }
.static-choice { display: flex; gap: 8px; align-items: center; font-weight: 600; }

.address-box { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 12px 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.address-box__text { font-size: 15px; line-height: 1.5; }
.btn-secondary.btn-block { min-height: 52px; }
.manual-address { display: grid; gap: 8px; }
.region-status { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 8px; font-size: 14px; font-weight: 600; }
.region-status.is-ok { color: var(--ok); }
.region-status.is-bad { color: var(--danger); }
.pickup-box { margin-top: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--stone); border-radius: 12px; }
.pickup-box strong { display: inline-flex; gap: 6px; align-items: center; }
.pickup-box p + p { margin-top: 4px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row strong { display: inline-flex; gap: 6px; align-items: center; font-size: 16px; }
.switch-row .hint { display: block; margin-top: 2px; }
.switch { appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 999px; background: #C3CAC0; transition: background-color .15s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch:checked { background: var(--forest); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid #6E9A7B; outline-offset: 2px; }
.gift-fields { margin-top: 6px; }

.cutoff-note { display: flex; gap: 6px; align-items: flex-start; margin: -2px 0 12px; color: var(--forest-strong); font-size: 14px; font-weight: 600; }
.cutoff-note .icon { flex: none; margin-top: 2px; }
/* 시간대를 고르지 않는 퀵배송: 도착 안내 */
.eta-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--forest-soft); color: var(--forest-strong); font-size: 15px; font-weight: 600; line-height: 1.5; }
.eta-note .icon { flex: none; }
.date-scroller {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; border: 0; min-width: 0;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.date-chip { position: relative; flex: none; scroll-snap-align: start; }
.date-chip label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 66px; height: 70px; background: var(--white); border: 1px solid var(--stone); border-radius: 12px; cursor: pointer; line-height: 1.25;
}
.date-chip__dow { font-size: 13px; color: var(--muted); font-weight: 600; }
.date-chip__day { font-size: 17px; font-weight: 700; }
.date-chip__reason { font-size: 11px; font-weight: 700; color: #7D857B; }
.date-chip input:checked + label { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--forest-soft); }
.date-chip input:checked + label .date-chip__dow { color: var(--forest-strong); }
.date-chip input:focus-visible + label { box-shadow: inset 0 0 0 1px var(--forest), var(--focus); }
.date-chip input:disabled + label { background: #F2F1EC; color: #8B938A; cursor: not-allowed; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.slot-grid legend { grid-column: 1 / -1; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.slot-chip { position: relative; }
.slot-chip label {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 8px;
  background: var(--white); border: 1px solid var(--stone); border-radius: 12px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.slot-chip input:checked + label { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--forest-soft); color: var(--forest-strong); }
.slot-chip input:focus-visible + label { box-shadow: inset 0 0 0 1px var(--forest), var(--focus); }
.slot-chip input:disabled + label { background: #F2F1EC; color: #8B938A; cursor: not-allowed; text-decoration: line-through; }
.slot-chip__closed { font-size: 12px; text-decoration: none; }

.note-details summary { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.note-details summary::-webkit-details-marker { display: none; }
.note-details summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); color: var(--forest); font-weight: 700; }
.note-details[open] summary::before { content: "−"; }

.amounts { display: grid; gap: 8px; }
.amounts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.amounts dt { color: var(--muted); }
.amounts dd { font-variant-numeric: tabular-nums; text-align: right; }
.amounts__discount dd { color: var(--forest-strong); font-weight: 600; }
.amounts__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--stone); }
.amounts__total dt { color: var(--ink); font-weight: 700; font-size: 16px; }
.amounts__total dd { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.amounts--compact .amounts__total dd { font-size: 19px; }

.agree { display: grid; gap: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 15px; }
.check-row input { flex: none; appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--line); border-radius: 7px; background: var(--white); display: inline-grid; place-content: center; cursor: pointer; }
.check-row input::after { content: ""; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check-row input:checked { background: var(--forest); border-color: var(--forest); }
.check-row input:checked::after { opacity: 1; }
.check-row input[aria-invalid="true"] { border-color: var(--danger); }
.check-row b { font-weight: 700; color: var(--forest-strong); }
.check-row b.optional { color: var(--muted); }
.agree__details { margin: -2px 0 6px 34px; font-size: 14px; color: var(--muted); }
.agree__details summary { min-height: 36px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.agree__details ul { margin: 4px 0 6px; padding-left: 18px; line-height: 1.6; }
.agree__details a { color: var(--forest); font-weight: 600; }
.policy-links { margin-top: 10px; font-size: 14px; color: var(--muted); }
.inapp-help { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--forest-soft); font-size: 14px; color: var(--forest-strong); }
.inapp-help p { display: flex; gap: 6px; align-items: flex-start; }
.inapp-help .icon { flex: none; margin-top: 2px; }
.handoff-url { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ivory); font-size: 13px; word-break: break-all; font-variant-numeric: tabular-nums; }
[data-handoff-dialog] .modal__actions { grid-template-columns: 1fr 1fr; }
[data-handoff-dialog] .modal__actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.policy-links a { color: var(--muted); }

.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + var(--safe-bottom));
  background: linear-gradient(to top, var(--ivory) 78%, rgba(250, 248, 243, 0));
}
.paybar__inner { max-width: calc(var(--page) - var(--gutter) * 2); margin: 0 auto; }
body.keyboard-open .paybar { position: static; background: none; padding-bottom: 16px; }
body.keyboard-open.has-paybar .app { padding-bottom: 0; }

.address-layer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #fff; }
.address-layer__head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 4px 0 var(--gutter); border-bottom: 1px solid var(--stone); }
.address-layer__head h2 { font-size: 17px; font-weight: 700; }
.address-layer__body { position: relative; flex: 1; min-height: 0; overflow: auto; }
@media (min-width: 560px) {
  .address-layer { inset: 5vh auto auto 50%; width: 460px; height: 90vh; transform: translateX(-50%); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
}

/* ---------- 대화상자·토스트 ---------- */
.modal {
  width: min(400px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: 18px;
  background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(32, 39, 33, 0.25);
}
.modal::backdrop { background: rgba(20, 26, 22, 0.45); }
.modal h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.modal__text { margin-top: 8px; color: var(--muted); font-size: 15px; }
.amount-change { display: grid; gap: 8px; margin: 16px 0; padding: 14px; background: var(--ivory); border-radius: 12px; }
.amount-change > div { display: flex; justify-content: space-between; }
.amount-change dt { color: var(--muted); }
.amount-change dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom)); z-index: 80; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: rgba(32, 39, 33, 0.94); color: #fff;
  font-size: 15px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.preview-badge {
  position: fixed; left: 50%; bottom: 12px; z-index: 90; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(32, 39, 33, 0.85); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; white-space: nowrap;
}

/* ---------- 주문 완료·상세 ---------- */
.order-page { padding: 16px var(--gutter) 8px; display: grid; gap: 12px; }
.card { padding: 18px 16px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); }
.card__title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.card .product-card { margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--stone); }
.result { padding: 22px 8px 10px; text-align: center; }
.result h2 { margin-top: 12px; font-size: 23px; font-weight: 700; letter-spacing: -0.04em; }
.result p { margin: 6px auto 0; max-width: 340px; color: var(--muted); font-size: 15px; }
.result__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: #fff; }
.result--review .icon { margin: 0 auto; color: #8A3A12; }
.spinner { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--mist); border-top-color: var(--forest); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } html { scroll-behavior: auto; } }
.order-no { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.order-no__label { color: var(--muted); font-size: 14px; }
.order-no__value { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.order-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.info-rows { display: grid; gap: 10px; }
.info-rows > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 15px; }
.info-rows dt { color: var(--muted); }
.cancel-box summary { min-height: 40px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
.cancel-box summary::-webkit-details-marker { display: none; }
.cancel-box summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.cancel-box[open] summary::after { transform: rotate(-135deg); }
.cancel-box form { display: grid; gap: 8px; margin-top: 10px; }
.cancel-box .label { font-size: 14px; font-weight: 600; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* ---------- 주문 조회 ---------- */
.lookup { padding: 22px var(--gutter) 8px; }
.lookup__intro h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.4; }
.lookup__intro p { margin-top: 6px; font-size: 15px; }
.lookup-form { margin-top: 20px; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn { flex: none; min-height: 52px; }
.dev-note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #FFF8E6; border: 1px dashed #E3C878; color: #5B4300; font-size: 14px; }
.lookup__who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; font-size: 15px; }
.lookup__who p { flex: 1 1 220px; min-width: 0; }
.lookup__who p .icon { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.lookup__who strong { white-space: nowrap; }
.order-list { list-style: none; display: grid; gap: 10px; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-md); text-decoration: none; }
.order-item:hover { border-color: #AEB7AB; }
.order-item img, .order-item__img { flex: none; width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--mist); }
.order-item__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-item__name { font-weight: 700; }
.order-item__meta { font-size: 14px; color: var(--muted); }
.empty { padding: 40px 8px; text-align: center; display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ---------- 공지·정책 문서 ---------- */
.doc { padding: 20px var(--gutter) 8px; display: grid; gap: 14px; }
.doc__title { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.4; margin-top: 4px; }
.doc__meta { color: var(--muted); font-size: 14px; }
.doc__summary { margin: 10px 0 4px; padding: 12px 14px; background: var(--mist); border-radius: 12px; font-weight: 600; color: var(--forest-strong); }
.doc__article { display: grid; gap: 4px; }
.richtext { font-size: 16px; line-height: 1.75; }
.richtext p, .richtext ul, .richtext ol { margin: 10px 0; }
.richtext ul, .richtext ol { padding-left: 22px; }
.richtext h3 { margin: 20px 0 6px; font-size: 17px; font-weight: 700; }
.richtext h4 { margin: 14px 0 4px; font-size: 16px; font-weight: 700; }
.richtext a { color: var(--forest); font-weight: 600; }
.notice-list { list-style: none; display: grid; gap: 10px; }
.notice-list a { display: grid; gap: 2px; padding: 14px 16px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-md); text-decoration: none; }
.notice-list .pill { justify-self: start; margin-bottom: 4px; }

.error-page { padding: 72px var(--gutter); text-align: center; display: grid; justify-items: center; gap: 10px; }
.error-page__code { font-size: 15px; font-weight: 700; color: var(--forest); letter-spacing: 0.1em; }
.error-page h1 { font-size: 22px; font-weight: 700; }

@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .hero-title { font-size: 24px; }
  .price__now { font-size: 20px; }
  .price-option label { padding-left: 12px; padding-right: 32px; }
  .price-option__top { column-gap: 4px; }
  .price-option__label { font-size: 13px; }
  .sale-sticker--sm { padding: 1px 6px; font-size: 11px; }
  .fact { grid-template-columns: 84px 1fr; }
  .date-chip label { width: 60px; }
}

@media (forced-colors: active) {
  .price-option input:checked + label, .date-chip input:checked + label, .slot-chip input:checked + label, .segmented__opt input:checked + label { outline: 3px solid Highlight; }
  .color-option input:checked + label .swatch::after { border-color: Highlight; }
}

/* ---------- 계좌이체 ---------- */
.bank-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--forest-soft); }
.bank-box__account { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.bank-box .btn { flex: none; }
.text-sale { color: var(--sale-strong); }
.deposit-box .info-rows dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.deposit-box__deadline { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FDECE9; color: var(--sale-strong); font-size: 14px; font-weight: 700; }
.deposit-box__deadline .icon { flex: none; }

/* ---------- 회원: 로그인·가입·내 정보 ---------- */
.auth, .my { display: grid; gap: 14px; padding: 18px var(--gutter) 28px; }
.auth__card { display: grid; gap: 12px; padding: 22px 18px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); }
.auth__form .field { margin: 0; }
.auth__title { font-size: 21px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.4; }
.auth__sub { margin-top: -6px; color: var(--muted); font-size: 15px; }
.auth__notice { display: flex; gap: 6px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--forest-soft); color: var(--forest-strong); font-size: 14px; font-weight: 600; }
.auth__notice .icon { flex: none; margin-top: 2px; }
.auth__fine { margin-top: -4px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.auth__fine a { color: inherit; }
.auth__or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--stone); }
.auth__links { display: flex; justify-content: center; gap: 10px; font-size: 14px; }
.auth__links a { color: var(--ink); font-weight: 600; }
.auth__guest { text-align: center; font-size: 14px; }
.auth__guest a { color: var(--muted); }
/* 카카오 로그인 버튼: 카카오 디자인 가이드 (노란 바탕 #FEE500, 검은 글자·심볼) */
.btn-kakao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #FEE500; color: rgba(0, 0, 0, 0.85); border: 0; text-decoration: none; }
.btn-kakao:hover { background: #F5DC00; }
.btn-kakao .icon { color: #000; }
.my__hello { font-size: 19px; margin-bottom: 12px; }
.my .card .btn { margin-top: 14px; }
.withdraw { font-size: 14px; color: var(--muted); }
.withdraw summary { cursor: pointer; padding: 8px 0; }
.withdraw__form { display: grid; gap: 8px; padding-top: 6px; }
/* 주문서: 주문하시는 분(회원) */
.member-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--band); font-size: 15px; }
.member-line .icon { color: var(--forest); }
.member-line a { margin-left: auto; color: var(--forest); font-size: 14px; font-weight: 600; }
.btn-danger-outline { background: var(--white); color: var(--danger); border: 1px solid #E4B3AD; }
.btn-danger-outline:hover { background: var(--danger-soft); }
/* 주문서: 비회원 안내 · 결제까지 마쳐야 주문 완료 */
.guest-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--band); font-size: 14px; line-height: 1.55; }
.guest-line p { display: flex; gap: 6px; align-items: flex-start; }
.guest-line .icon { flex: none; margin-top: 2px; color: var(--forest); }
.guest-line .btn { flex: none; }
.final-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--forest-soft); color: var(--forest-strong); font-size: 15px; }
.final-note .icon { flex: none; }
.deposit-box__note { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--forest-strong); font-size: 14px; font-weight: 600; line-height: 1.55; }
.deposit-box__note .icon { flex: none; margin-top: 2px; }
/* 홈 요약: 한 칸 아래 작은 줄 (예: 오픈 이벤트 뒤 요일별 영업시간) */
.fact__sub { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
/* ---------- 주문서: 담은 상품 (수량 −/+ · 빼기 · 다른 상품 추가) ---------- */
.cart { display: grid; gap: 10px; margin-top: 4px; }
.cart-line { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 44px 12px 12px; border: 1px solid var(--stone); border-radius: var(--radius-sm); background: var(--white); }
.cart-line.is-bad { border-color: #E4B3AD; background: var(--danger-soft); }
.cart-line__img { display: block; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--mist); }
.cart-line__body { display: grid; gap: 2px; min-width: 0; }
.cart-line__name { font-size: 15px; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.cart-line__unit { font-size: 14px; color: var(--muted); }
.cart-line__unit span { color: var(--ink); font-weight: 600; }
.cart-line__bad { color: var(--sale-strong); font-size: 13px; }
.cart-line__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cart-line__total { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cart-line__remove { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cart-line__remove:hover { background: var(--band); color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--stone); border-radius: 999px; background: var(--white); }
.qty__btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.qty__btn:hover:not(:disabled) { background: var(--band); }
.qty__btn:disabled { color: var(--stone); cursor: default; }
.qty__value { min-width: 26px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-add { margin-top: 12px; }
.cart-add[aria-expanded="true"] { border-color: var(--forest); color: var(--forest-strong); }
.add-panel { margin-top: 10px; padding: 4px 14px; border: 1px solid var(--stone); border-radius: var(--radius-sm); background: var(--white); }
.add-list { display: grid; }
.add-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.add-row:last-child { border-bottom: 0; }
.add-row__img { display: block; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--mist); }
.add-row__text { display: grid; gap: 2px; min-width: 0; }
.add-row__name { font-size: 14px; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.add-row__price { font-size: 13px; color: var(--muted); }
.add-row__price strong { color: var(--ink); }
.add-row .btn { min-width: 64px; }
.add-row--random { grid-template-columns: 48px minmax(0, 1fr); }
.add-colors { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.add-color { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--stone); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.add-color:hover:not(:disabled) { border-color: var(--forest); }
.add-color i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.add-color:disabled { opacity: 0.45; cursor: default; }
.cart-notes { display: grid; gap: 4px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.cart-notes span { display: inline-flex; align-items: center; gap: 6px; }
.cart-notes .icon { flex: none; }
/* 주문 상세: 상품 줄 (상품 × 수량) */
.order-lines { display: grid; gap: 10px; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--stone); }
.order-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.order-line__img { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--mist); }
.order-line__name { font-size: 15px; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.order-line__qty { font-size: 14px; color: var(--muted); }
.order-line__total { font-weight: 800; font-variant-numeric: tabular-nums; }
/* 로그인·가입: 어절 단위 줄바꿈, 입력칸·버튼 간격 */
.auth { word-break: keep-all; overflow-wrap: break-word; }
.auth__sub { line-height: 1.6; }
.auth__form { display: grid; gap: 16px; }
.auth__form .field--tight { margin-top: 8px; }
.auth__form .btn-primary[type="submit"] { margin-top: 4px; }
.auth__fine { line-height: 1.6; }
.auth__guest-box { display: grid; gap: 8px; text-align: center; }
.auth__guest-box p { color: var(--muted); font-size: 14px; }
/* 받을 시간: 꼭 골라야 하는 단계라는 표시, 안 고르고 주문하면 살짝 흔들어 알려 준다 */
.slot-ask { margin-left: 4px; color: var(--sale-strong); font-size: 13px; font-weight: 600; }
.slot-grid:has(input:checked) .slot-ask { display: none; }
.slot-grid.is-attention .slot-chip label { border-color: var(--sale); }
.slot-grid.is-attention { animation: slot-nudge 0.28s ease 2; }
@keyframes slot-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .slot-grid.is-attention { animation: none; } }
/* 받을 시간이 많을 때(방문 수령 한 시간 단위): 세 줄로 촘촘하게 */
.slot-grid--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot-grid--many .slot-chip label { min-height: 46px; padding: 4px; font-size: 14px; line-height: 1.3; letter-spacing: -0.02em; text-align: center; word-break: keep-all; }
/* 크기별 사진 슬라이드: 손가락으로 한 장씩 넘기기 (scroll-snap) + 좌우 버튼·번호·점 */
.slider { position: relative; margin-top: 16px; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.slider .photo { margin-top: 0; border-radius: 0; }
.slider__track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; }
.slider__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slider__nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: var(--ink); box-shadow: 0 2px 8px rgba(32, 39, 33, 0.18); cursor: pointer; }
.slider__nav--prev { left: 10px; }
.slider__nav--next { right: 10px; }
.slider__nav:disabled { opacity: 0; pointer-events: none; }
.slider__count { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(32, 39, 33, 0.62); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 1; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.slider__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.65); box-shadow: 0 0 0 1px rgba(32, 39, 33, 0.12); transition: width 0.2s ease; }
.slider__dots span.is-on { width: 16px; background: #fff; }
@media (hover: none) { .slider__nav { width: 34px; height: 34px; margin-top: -17px; } }
@media (prefers-reduced-motion: reduce) { .slider__dots span { transition: none; } }
