/* 익명 고객용 상품 안내(/shop/) — 기존 Commerce styles.css 변수를 쓴다. 고객 브랜드는 고객 상호·소개·이미지로만 표현하고 새 색 체계를 만들지 않는다. */
.shop-page { background: var(--cream); min-height: 100vh; }
.shop-header { background: #fff; border-bottom: 1px solid var(--line); padding: 24px max(18px, calc((100vw - 1100px) / 2)); }
.shop-header-inner { display: flex; gap: 18px; align-items: center; }
.shop-header img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #fff; flex: 0 0 auto; }
.shop-header h1 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); overflow-wrap: anywhere; }
.shop-description { margin: 6px 0 0; color: #3d4b43; white-space: pre-line; overflow-wrap: anywhere; }
.shop-main { max-width: 1100px; margin: 24px auto; padding: 0 18px 60px; }
.shop-status { min-height: 1.5em; color: #5b6a61; font-size: 13px; margin-bottom: 8px; }
.shop-error { border: 1px solid var(--red); border-radius: 12px; padding: 14px 16px; background: #fff; color: var(--red); display: grid; gap: 10px; justify-items: start; margin-bottom: 16px; }
.shop-error p { margin: 0; }
.shop-error[hidden], #shop-list[hidden], #shop-detail[hidden] { display: none; }
.shop-list-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.shop-list-head h2 { margin: 0; }
.shop-search { display: grid; gap: 5px; min-width: min(100%, 420px); }
.shop-search-controls { display: flex; gap: 8px; }
.shop-search-controls input { flex: 1; min-width: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shop-card { display: grid; gap: 8px; align-content: start; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.shop-card:hover { border-color: var(--green); }
.shop-card:focus-visible, .shop-back:focus-visible, #shop-back-list:focus-visible, .shop-search button:focus-visible, #shop-retry:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.shop-card h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.shop-card p { margin: 0; }
.shop-card-image { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; background: #f4f1e8; }
.shop-card-image.legacy { object-fit: contain; }
.shop-card-placeholder { display: grid; place-items: center; color: #7a867e; font-size: 13px; }
.shop-card-description { color: #4f5d55; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.shop-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 4px; color: var(--green); font-weight: 750; }
.shop-detail-card { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.shop-detail-body { min-width: 0; }
.shop-detail-body h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.shop-detail-body h2:focus { outline: none; }
/* 제목은 누르는 것이 아니라 화면 읽기 프로그램이 읽을 자리라, 공유 링크로 처음 열 때도 테두리를 그리지 않는다. */
.shop-detail-description { white-space: pre-line; overflow-wrap: anywhere; color: #3d4b43; }
.shop-variants { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .shop-header-inner { align-items: flex-start; }
  .shop-header img { width: 64px; height: 64px; }
  .shop-detail-card { grid-template-columns: minmax(0, 1fr); }
  .shop-search-controls { flex-wrap: wrap; }
  .shop-search-controls button { flex: 1 1 auto; }
}

/* ── 주문하기·주문서·판매자 정보·주문 확인(order.html) ── 단추 높이 46, 입력 글자 16(폰에서 확대되지 않게), 기존 변수만 쓴다. */
.shop-buy, .shop-order-form { display: grid; gap: 12px; }
[hidden] { display: none !important; } /* 아래 클래스의 display 가 hidden 속성을 덮지 않게 한다. */
.shop-buy label, .shop-order-form label { font-size: 14px; }
.shop-buy input[type="number"], .shop-order-form input:not([type="checkbox"]), .shop-lookup input { min-height: 46px; font-size: 16px; width: 100%; }
.shop-qty { max-width: 220px; }
.shop-option-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.shop-option-group legend { font-weight: 800; padding: 0 6px; font-size: 14px; }
.shop-option-list { display: grid; gap: 8px; }
.shop-option { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 650; cursor: pointer; }
.shop-option input { width: 20px; height: 20px; margin: 0; padding: 0; flex: 0 0 auto; }
.shop-option:has(input:checked) { border-color: var(--green); background: var(--mint); }
.shop-option:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.shop-option.sold { background: #f1f1ec; color: #5e6b63; cursor: not-allowed; }
.shop-option-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.shop-buy-line { margin: 0; color: #3d4b43; font-size: 14px; }
.shop-primary, .shop-order-form button, .shop-buy button, .shop-lookup button, .shop-order-actions button { min-height: 46px; font-size: 16px; padding: 10px 18px; }
.shop-primary { width: 100%; max-width: 420px; }
.field-error { margin: 0; color: var(--red); font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.field-error[hidden] { display: none; }
.shop-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff3ea; border: 1px solid var(--orange); color: #6b2a0e; font-weight: 750; }
.shop-warn[hidden] { display: none; }

.shop-checkout { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 16px; }
.shop-checkout h3 { margin: 0; font-size: 22px; }
.shop-checkout h3:focus { outline: none; }
.shop-checkout h4 { margin: 0 0 6px; font-size: 16px; }
.shop-summary { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.shop-summary h4 { margin: 0; }
.shop-summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-summary-lines li { display: flex; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.shop-summary-total { margin: 0; display: grid; gap: 4px; border-top: 1px dashed var(--line); padding-top: 8px; }
.shop-summary-total div { display: flex; justify-content: space-between; gap: 12px; }
.shop-summary-total dt, .shop-summary-total dd { margin: 0; }
.shop-summary-total dd { font-variant-numeric: tabular-nums; font-weight: 750; }
.shop-summary-total .grand { font-size: 18px; font-weight: 850; }
.shop-summary-total .grand dd { font-weight: 850; }
.shop-order-form { max-width: 640px; }
.shop-order-form p { margin: 0; }
.shop-guides { display: grid; gap: 10px; }
.shop-guide { padding: 10px 12px; border-left: 3px solid var(--green); background: var(--cream); }
.shop-guide h4 { margin: 0 0 4px; }
.shop-guide p { white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.shop-agree { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.shop-agree legend { font-weight: 800; padding: 0 6px; font-size: 14px; }
.shop-order-form label.check, .shop-agree label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 650; min-height: 44px; }
.shop-agree input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; padding: 0; flex: 0 0 auto; }
.shop-order-form input[aria-invalid="true"] { border-color: var(--red); }

.shop-business { margin-top: 28px; padding: 16px 18px; border-top: 2px solid var(--line); color: #3d4b43; font-size: 14px; }
.shop-business h2 { margin: 0 0 8px; font-size: 16px; }
.shop-business dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 10px; }
.shop-business dt { font-weight: 750; }
.shop-business dd { margin: 0; overflow-wrap: anywhere; }
.shop-business p { margin: 0; font-weight: 650; }

/* order.html */
.shop-lookup { display: grid; gap: 12px; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.shop-lookup h2 { margin: 0; font-size: 20px; }
.shop-lookup p { margin: 0; }
.shop-order-card { display: grid; gap: 16px; max-width: 720px; }
.shop-order-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; min-width: 0; }
.shop-order-block h2, .shop-order-block h3 { margin: 0; font-size: 18px; }
.shop-order-block p { margin: 0; overflow-wrap: anywhere; }
.shop-order-banner { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--mint); border: 1px solid var(--green); }
.shop-order-banner.closed { background: #f1f1ec; border-color: var(--line); }
.shop-order-banner h2 { margin: 0; font-size: 22px; color: var(--green); }
.shop-order-banner.closed h2 { color: var(--ink); }
.shop-order-banner p { margin: 0; }
.shop-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.shop-kv dt { font-weight: 750; color: #3d4b43; }
.shop-kv dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.shop-kv .em { font-size: 18px; font-weight: 850; }
.shop-order-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shop-order-actions button, .shop-order-actions a.shop-link-button { min-height: 46px; }
a.shop-link-button { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--green); border-radius: 9px; color: var(--green); background: #fff; font-weight: 800; text-decoration: none; }
.shop-confirm { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--orange); border-radius: 12px; background: #fff3ea; }
.shop-confirm[hidden] { display: none; }
.shop-confirm p { margin: 0; font-weight: 750; }
.shop-copy-status { min-height: 1.4em; margin: 0; color: var(--green); font-weight: 750; font-size: 14px; }
/* 「이 주문을 다시 보려면」: 복사 전에는 빈 줄을 두지 않는다(알림 자리는 그대로 남아 글자가 들어가면 읽힌다). */
.shop-order-block .shop-copy-status-quiet:empty { min-height: 0; margin-top: -8px; }
.shop-order-late { font-weight: 750; color: var(--ink); }

@media (max-width: 640px) {
  .shop-checkout { padding: 14px; }
  .shop-business dl, .shop-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .shop-kv dd, .shop-business dd { margin-bottom: 6px; }
  .shop-primary { max-width: none; }
  .shop-order-actions button, .shop-order-actions a.shop-link-button { flex: 1 1 100%; justify-content: center; }
}
.shop-guide-text { white-space: pre-line; font-size: 14px; }
.shop-shipment { display: grid; gap: 8px; padding-bottom: 8px; }
.shop-shipment p { margin: 0; }
.shop-summary-lines .money, .shop-summary-total dd { white-space: nowrap; }
.shop-business dl > div { display: contents; }
.shop-order-banner h2:focus, .shop-checkout h3:focus { outline: none; }

/* ── 상세페이지(사진·값·구역 탭·아래 띠)와 목록 카드 — 단추 46, 탭·작은 단추 44, 본문 12 이상 ── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop-detail-card { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; }
.shop-detail-body h3 { font-size: 16px; margin: 0 0 6px; }
.shop-gallery-wrap { min-width: 0; align-self: start; }
.gallery { position: relative; }
.gallery-viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; aspect-ratio: 1 / 1; border-radius: 12px; background: #f4f1e8; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gallery-slide { flex: 0 0 100%; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; display: block; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.gallery-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-count { position: absolute; top: 10px; right: 10px; margin: 0; padding: 3px 11px; border-radius: 999px; background: rgba(22, 34, 29, .8); color: #fff; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; pointer-events: none; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 28px; line-height: 1; box-shadow: 0 2px 8px rgba(22, 34, 29, .18); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-nav:disabled { opacity: .35; cursor: default; }
.gallery-nav:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .85); border: 1px solid rgba(22, 34, 29, .45); }
.gallery-dot.on { background: var(--green); border-color: #fff; }
.gallery-empty { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 12px; background: #f4f1e8; color: #5e6b63; font-size: 14px; }

.shop-category { margin: 0 0 4px; color: #4f5d55; font-size: 13px; }
.shop-title-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.shop-title-row h2 { flex: 1 1 auto; min-width: 0; }
.shop-share { flex: 0 0 auto; min-height: 44px; min-width: 64px; padding: 0 16px; }
.shop-share-note { margin: 0 0 4px; color: var(--green); font-weight: 750; font-size: 14px; display: grid; gap: 6px; }
.shop-share-note:empty, .shop-price:empty, .shop-ship-line:empty, .shop-detail-description:empty, .shop-category:empty { display: none; }
.shop-share-url { width: 100%; max-width: 100%; min-height: 44px; font-size: 14px; }
.shop-price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.shop-price-now { font-size: 26px; font-weight: 850; }
.shop-price-old { color: #5e6b63; font-size: 15px; font-weight: 500; text-decoration: line-through; }
.shop-price-pct { color: var(--red); font-size: 20px; font-weight: 850; }
.shop-ship-line { margin: 6px 0 0; color: #3d4b43; font-size: 14px; font-weight: 650; }
.shop-detail-description { margin: 10px 0 12px; }
.shop-detail-summary { margin: 0 0 6px; color: #3d4b43; font-size: 15px; overflow-wrap: anywhere; word-break: keep-all; }
.shop-detail-summary:empty { display: none; }
.shop-option-price { display: inline-flex; align-items: baseline; gap: 8px; }
.shop-option-price .shop-price-old { font-size: 13px; }
.shop-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-qty-label { font-size: 14px; font-weight: 650; }
.shop-stepper { display: inline-flex; gap: 6px; align-items: center; }
.shop-buy .shop-stepper button { width: 46px; min-width: 46px; padding: 0; font-size: 22px; line-height: 1; }
.shop-buy .shop-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.shop-buy .shop-stepper input[type="number"] { width: 76px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.shop-stepper input::-webkit-inner-spin-button, .shop-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.shop-total-line { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 15px; font-weight: 650; }
.shop-total-line strong { font-size: 22px; font-variant-numeric: tabular-nums; text-align: right; }
.shop-buy-line:empty { display: none; }
.shop-total-line strong.pending { font-size: 14px; font-weight: 650; color: #4f5d55; }
.shop-total-detail { margin: -4px 0 0; color: #4f5d55; font-size: 14px; font-weight: 650; text-align: right; overflow-wrap: anywhere; word-break: keep-all; }
.shop-total-detail:empty { display: none; }

.shop-tabs { position: sticky; top: 0; z-index: 5; display: flex; overflow-x: auto; scrollbar-width: none; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs button { flex: 1 0 auto; min-height: 48px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 750; white-space: nowrap; }
.shop-tabs button[aria-current="true"] { color: var(--green); border-bottom-color: var(--green); background: var(--mint); }
.shop-tabs button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
/* 폰 폭(360~480)에서도 네 구역 이름이 옆으로 밀지 않고 한 줄에 다 보이게 글자·여백을 줄인다(이름은 그대로). */
@media (max-width: 480px) { .shop-tabs button { flex: 1 1 auto; padding: 0 4px; font-size: 14px; } }
.shop-sec { margin-top: 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.shop-sec h3 { margin: 0 0 12px; font-size: 20px; }
.shop-sec h3:focus { outline: none; }
.shop-block-text { margin: 0 0 16px; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; color: #26342d; }
.shop-block-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 0 16px; border-radius: 10px; background: #f4f1e8; }
.shop-blocks > :last-child { margin-bottom: 0; }
.shop-info-table { display: grid; margin: 0; border-top: 1px solid var(--line); }
.shop-info-table > div { display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.shop-info-table dt { padding: 10px 12px; background: var(--cream); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.shop-info-table dd { margin: 0; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.shop-seller-note { margin: 12px 0 0; font-size: 14px; font-weight: 650; color: #3d4b43; }
.shop-related { margin-top: 24px; }
.shop-related h3 { margin: 0 0 12px; font-size: 20px; }
.shop-related .shop-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.shop-card-frame { position: relative; border-radius: 10px; overflow: hidden; background: #f4f1e8; }
.shop-card-flag { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .74); color: var(--ink); font-size: 16px; font-weight: 850; }
.shop-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.shop-card-price .shop-price-now { font-size: 17px; }
.shop-card-price .shop-price-pct { font-size: 15px; }
.shop-card-price .shop-price-old { font-size: 13px; }
.shop-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-card-description:empty { display: none; }

.shop-sticky { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 13, .97); }
.lightbox-dialog { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); min-height: 0; }
.lightbox-close { justify-self: end; min-width: 44px; min-height: 44px; padding: 0 18px; background: #fff; color: var(--ink); border-color: #fff; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.lightbox-stage img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 30px; line-height: 1; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
.lightbox-nav:disabled { opacity: .35; }
.lightbox button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.lightbox-count { margin: 8px 0 0; text-align: center; color: #fff; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.lightbox-count:empty { display: none; }
body.lightbox-open { overflow: hidden; }

html { scroll-padding-top: 64px; } /* 붙어 있는 구역 탭에 가려지지 않게 */
@media (max-width: 719px) {
  .shop-detail-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  html { scroll-padding-bottom: 96px; } /* 아래 붙은 띠에 가려지지 않게 */
  .gallery-nav { display: none; }
  .shop-grid, .shop-related .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-card { padding: 10px; }
  .shop-card h3 { font-size: 15px; }
  .shop-sec { padding: 14px; }
  .shop-info-table > div { grid-template-columns: minmax(112px, 36%) minmax(0, 1fr); }
  .shop-info-table dt { word-break: keep-all; overflow-wrap: break-word; }
  .gallery-empty { aspect-ratio: 16 / 9; }
  .shop-detail:has(.shop-sticky:not([hidden])) { padding-bottom: 88px; }
  .shop-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(22, 34, 29, .12); }
  .shop-checkout:not([hidden]) ~ .shop-sticky, .shop-sticky.buy-visible { display: none; }
  .shop-sticky-price { margin: 0; display: grid; line-height: 1.25; min-width: 0; flex: 0 1 auto; }
  .shop-sticky-price span { font-size: 12px; color: #4f5d55; }
  .shop-sticky-price strong { font-size: 18px; white-space: nowrap; }
  .shop-sticky .shop-primary { flex: 1 1 0; width: auto; max-width: none; min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ── 주문 확인: 진행 기록·내 요청·취소·반품 요청(묶음 3-C) — 본문 12 이상, 단추 46 ── */
.shop-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.shop-timeline li { position: relative; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 12px; padding: 8px 0 8px 18px; border-left: 2px solid var(--line); margin-left: 6px; }
.shop-timeline li::before { content: ''; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--green); }
.shop-timeline li.latest { border-left-color: var(--green); }
.shop-timeline li.latest::before { background: var(--green); }
.shop-timeline li.latest .shop-tl-text { font-weight: 850; }
.shop-tl-time { font-size: 13px; color: #4b5a51; font-variant-numeric: tabular-nums; }
.shop-tl-text { overflow-wrap: anywhere; }
.shop-requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-requests li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.shop-requests p { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.shop-req-answer { font-weight: 750; color: var(--green); }
.shop-request-done { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--mint); border: 1px solid var(--green); font-weight: 750; }
.shop-request-done[hidden] { display: none; }
.shop-request-form { display: grid; gap: 12px; }
#recipient-form input { min-height: 46px; font-size: 16px; width: 100%; }
#recipient-form label { font-size: 14px; }
#recipient-form p { margin: 0; }
.shop-request-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 2px; margin: 0; min-width: 0; }
.shop-request-form legend { font-weight: 800; padding: 0 6px; font-size: 14px; }
.shop-request-form label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 650; }
.shop-request-form input[type="radio"] { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.shop-request-form textarea { width: 100%; min-height: 110px; font-size: 16px; resize: vertical; }
.shop-request-form button { min-height: 46px; font-size: 16px; padding: 10px 18px; }
.shop-reopen-note { margin: 0; font-size: 14px; color: #3d4b43; }
@media (max-width: 640px) {
  .shop-timeline li { grid-template-columns: minmax(0, 1fr); }
  .shop-request-form button { width: 100%; }
}

/* 이용 안내(/shop/guide.html)와 그리로 가는 링크 */
.guide-main { max-width: 760px; }
.guide-main .shop-sec { margin-top: 14px; }
.guide-main .shop-sec h2 { margin: 0 0 12px; font-size: 20px; }
.guide-main .shop-sec p, .guide-main .shop-sec li { font-size: 16px; line-height: 1.7; color: #26342d; overflow-wrap: anywhere; word-break: keep-all; }
.guide-main .shop-sec p { margin: 0 0 10px; }
.guide-main .shop-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.guide-main .shop-info-table dt, .guide-main .shop-info-table dd { font-size: 15px; line-height: 1.6; }
.guide-main .shop-info-table dt { word-break: keep-all; }
.guide-main .shop-info-table + .guide-more { margin-top: 12px; }
.guide-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 750; overflow-wrap: anywhere; }
.guide-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.guide-date { margin: 18px 0 0; text-align: center; font-size: 14px; color: #3d4b43; }
.shop-foot { margin: 16px 0 0; padding: 4px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.shop-agree-note { margin: 0; font-size: 14px; color: #3d4b43; }
.shop-agree-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 750; }
.shop-foot a:focus-visible, .shop-agree-note a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 640px) {
  .guide-main { margin-top: 12px; }
  .shop-main > .shop-detail:has(.shop-sticky:not([hidden])) { padding-bottom: 0; }
  .shop-detail:has(.shop-sticky:not([hidden])) ~ .shop-foot { margin-bottom: 84px; } /* 아래 붙은 띠에 가려지지 않게 */
}
.guide-page .shop-header { padding-left: max(18px, calc((100vw - 760px) / 2 + 18px)); padding-right: max(18px, calc((100vw - 760px) / 2 + 18px)); }
.guide-main .shop-info-table dd .guide-link { margin: -10px 0; }

/* ── 묶음 4-A: 위 띠(찾기·장바구니)·분류·정렬·더 보기·담기·장바구니·주문서 새 칸 — 누르는 곳 44 이상, 글자 12 이상 ── */
.shop-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.shop-bar .shop-search { flex: 1 1 320px; min-width: 0; }
.shop-bar .shop-search-controls { flex-wrap: nowrap; }
.shop-bar .shop-search-controls input { min-height: 44px; font-size: 16px; }
.shop-bar .shop-search-controls button { min-height: 44px; flex: 0 0 auto; padding: 0 16px; }
.shop-cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--green); border-radius: 10px; color: var(--green); background: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.shop-cart-link[aria-current="page"] { background: var(--mint); }
.shop-cart-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--green); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.shop-cart-link:focus-visible, .shop-cat:focus-visible, .shop-more:focus-visible, .shop-added-link:focus-visible, .cart-line a:focus-visible, #cart-store-link:focus-visible, #cart-shop-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.shop-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.shop-sort select { min-height: 44px; font-size: 15px; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.shop-cat { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.shop-cat[aria-current="true"] { border-color: var(--green); background: var(--mint); color: var(--green); }
.shop-more-row { display: flex; justify-content: center; margin-top: 18px; }
.shop-more { min-height: 46px; min-width: 200px; font-size: 16px; }
.shop-list-head h2:focus { outline: none; }
.shop-buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-buy-actions .shop-add { min-height: 46px; font-size: 16px; padding: 10px 18px; flex: 0 0 auto; min-width: 96px; }
.shop-buy-actions .shop-primary { flex: 1 1 200px; }
.shop-added { margin: 0; font-weight: 750; color: var(--green); }
.shop-added:empty { display: none; }
.shop-added-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 850; }
.shop-memory { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--mint); border: 1px solid var(--green); }
.shop-memory p { flex: 1 1 200px; font-weight: 700; }
.shop-memory button { min-height: 44px; }
.shop-orderer { display: grid; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.shop-order-form select { min-height: 46px; font-size: 16px; width: 100%; }
.shop-order-form label.check input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; padding: 0; flex: 0 0 auto; }
.shop-remember { display: grid; gap: 4px; }
.shop-order-ship { font-weight: 750; }
.shop-header-store { margin: 0 0 2px; }
.shop-header-store a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 800; }

.cart-box { display: grid; gap: 12px; }
.cart-box h2 { margin: 0; }
.cart-box h2:focus { outline: none; }
.cart-box > p { margin: 0; }
.cart-all { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.cart-all input { width: 22px; height: 22px; margin: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cart-line.blocked { background: #f6f5f0; }
.cart-pick { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.cart-pick input { width: 22px; height: 22px; margin: 0; }
.cart-pick:focus-within { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
.cart-image { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #f4f1e8; }
.cart-info { min-width: 0; display: grid; gap: 2px; }
.cart-info p { margin: 0; overflow-wrap: anywhere; }
.cart-name { font-weight: 800; font-size: 16px; }
.cart-name a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.cart-option { color: #4f5d55; font-size: 14px; }
.cart-option:empty { display: none; }
.cart-price { font-size: 15px; }
.cart-flag { font-size: 14px; font-weight: 750; color: #6b2a0e; }
.cart-flag.warn { color: var(--red); }
.cart-flag.muted { color: #4f5d55; font-weight: 600; }
.cart-actions { display: grid; gap: 8px; justify-items: end; }
.cart-stepper { display: inline-flex; align-items: center; gap: 6px; }
.cart-stepper button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; line-height: 1; }
.cart-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.cart-qty-value { min-width: 44px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-drop { min-height: 44px; padding: 0 16px; }
.cart-empty { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cart-empty a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 800; }
.cart-free-note { margin: 0; font-weight: 750; color: var(--green); }
.cart-free-note:empty { display: none; }
.cart-grand { font-weight: 850; font-size: 17px; border-top: 1px dashed var(--line); padding-top: 6px; }
@media (max-width: 640px) {
  .shop-bar .shop-search { flex-basis: 100%; }
  .shop-cart-link { flex: 1 1 auto; justify-content: center; }
  .shop-list-head { align-items: center; }
  .cart-line { grid-template-columns: 44px 64px minmax(0, 1fr); }
  .cart-image { width: 64px; height: 64px; }
  .cart-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .shop-buy-actions .shop-add { flex: 1 1 0; }
  .shop-buy-actions .shop-primary { flex: 2 1 0; }
}

/* ── 묶음 4-B: 공지 띠·가게 첫 화면·추천/새 상품·쉬기·받아 가기·문의 ── */
.shop-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff7d6; border: 1px solid #e0c35a; color: #4a3a00; font-weight: 750; font-size: 15px; overflow-wrap: anywhere; }
.shop-notice[hidden] { display: none; }
.shop-hero { margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--mint); }
.shop-hero[hidden] { display: none; }
.shop-hero img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.pill.shop-pill-pick { background: #fde7d6; color: #7a2e12; }
.pill.shop-pill-new { background: #e1ecfb; color: #1d3f72; }
.shop-made { margin: 4px 0 0; font-weight: 750; color: var(--green); }
.shop-made[hidden] { display: none; }
.shop-paused { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: #eef1ec; border: 1px solid var(--line); font-weight: 800; font-size: 16px; text-align: center; }
.shop-paused[hidden], .shop-buy-actions[hidden] { display: none; }
.shop-contact { margin-top: 24px; padding: 16px 18px; border-top: 2px solid var(--line); }
.shop-contact h2 { font-size: 17px; margin: 0 0 8px; }
.shop-contact p { margin: 6px 0; }
.shop-contact[hidden] { display: none; }
.shop-kakao { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; background: #fee500; color: #191600; font-weight: 800; text-decoration: none; }
.shop-kakao:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.shop-method { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; display: grid; gap: 2px; }
.shop-method[hidden] { display: none; }
.shop-method legend { font-weight: 800; padding: 0 4px; }
.shop-method label.check { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.shop-pickup { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #eef1ec; }
.shop-pickup[hidden] { display: none; }
.shop-pickup-title { margin: 0; font-weight: 800; }
.shop-pickup-note { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.shop-method label.check input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; }
.shop-method label.check { justify-content: flex-start; text-align: left; font-weight: 700; }

/* ── 손님 화면 다듬기(가2·가4·가6) ── */
/* 바닥의 「주문 조회」·「이용 안내」 링크 두 개를 한 줄에(좁으면 줄바꿈). */
.shop-foot { display: flex; flex-wrap: wrap; gap: 0 22px; }
.shop-foot[hidden] { display: none; }
/* 주문 조회 화면의 「이 기기에서 한 주문」: 주문번호만(전화번호·이름은 두지 않는다). */
.shop-recent { display: grid; gap: 6px; margin: 4px 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--mint); }
.shop-recent h3 { margin: 0; font-size: 15px; }
.shop-recent p { margin: 0; font-size: 14px; }
.shop-recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-recent-item { width: 100%; min-height: 44px; justify-content: flex-start; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#lookup-back-row { margin: 0 0 6px; }
/* 문의 오류 글이 칸 바로 아래에 있을 때 위아래 여백 */
.qa-form .field-error { margin: 2px 0 6px; }
/* 문의 쓰는 칸이 열려 있는 동안은 아래 붙은 「주문하기」 줄을 숨겨 입력 칸을 가리지 않게 한다. */
.shop-detail:has(#shop-qna-form:not([hidden])) .shop-sticky, .shop-detail:has(#shop-qna-mine-form:not([hidden])) .shop-sticky, .shop-sticky.typing { display: none; }
.shop-detail:has(#shop-qna-form:not([hidden])), .shop-detail:has(#shop-qna-mine-form:not([hidden])) { padding-bottom: 0; }
/* 상세 구역 탭: 글자를 줄여 390 에서도 한 줄에 다 들어오고, 넘치면 옆으로 밀어 볼 수 있다. */
.shop-tabs button { padding: 0 10px; }
@media (max-width: 480px) { .shop-tabs button { padding: 0 6px; font-size: 14px; } }
/* 폰의 상품 상세 첫 화면: 머리줄(소개 글·찾기 칸)과 공지를 줄이고 사진 높이를 화면 높이로 제한해, 이름·값이 사진 바로 아래 첫 화면 안에 보이게 한다. */
@media (max-width: 719px) {
  .shop-in-detail .shop-header { padding: 8px 16px 10px; }
  .shop-in-detail .shop-header-inner { gap: 10px; align-items: center; }
  .shop-in-detail .shop-header img { width: 36px; height: 36px; border-radius: 8px; }
  .shop-in-detail .shop-header h1 { font-size: 18px; }
  .shop-in-detail .shop-description { display: none; }
  .shop-in-detail .shop-bar { margin-top: 6px; }
  .shop-in-detail .shop-bar .shop-search { display: none; }
  .shop-in-detail .shop-main { margin-top: 8px; }
  .shop-in-detail .shop-notice { margin-bottom: 4px; padding: 5px 12px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .shop-in-detail .shop-notice[hidden] { display: none; }
  .shop-in-detail .shop-status { min-height: 0; margin: 0; }
  .shop-in-detail .gallery-viewport { max-height: 36vh; }
  .shop-in-detail .gallery-empty { max-height: 24vh; }
  .shop-in-detail .shop-detail-card { gap: 10px; padding: 10px 12px; }
}
/* 묶음 6-A 결제 칸: 시험용 결제 표시 */
.shop-pay-test { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--soft, #f4f4f0); border: 1px dashed var(--line); font-weight: 750; font-size: 14px; }
