:root {
  --k-bg: #fbf6ee;
  --k-ink: #2b2118;
  --k-accent: #c8742d;
  --k-card: #fff;
  --k-muted: #8a7b6b;
  --k-disabled: #e8e1d6;
  --k-line: #e6dccb;
  --k-photo-ph: #eadfcb;
  --k-coin: #e0a05f;
  font-family:
    "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body.k-page {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--k-bg);
  color: var(--k-ink);
  touch-action: manipulation;
}
button {
  border: 0;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
.k-slider {
  height: 100dvh;
  overflow: hidden;
  position: relative;
}
.k-track {
  height: 100%;
  display: flex;
  transition: transform 0.3s ease;
}
.k-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}
.k-intro {
  display: grid;
  place-items: center;
  padding: 64px;
  background: #f3eee5;
}
.k-intro img {
  max-width: min(960px, calc(100vw - 128px));
  max-height: min(640px, calc(100dvh - 128px));
  object-fit: contain;
}
.k-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 64px;
  height: 96px;
  transform: translateY(-50%);
  background: transparent;
  color: var(--k-muted);
  font-size: 64px;
}
.k-prev {
  left: 16px;
}
.k-next {
  right: 16px;
}
.k-dots {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.k-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c5bbae;
}
.k-dot[aria-current="true"] {
  background: var(--k-accent);
}
.k-menu-go {
  position: absolute;
  right: 32px;
  bottom: 24px;
  width: 220px;
  height: 56px;
  border-radius: 28px;
  background: var(--k-accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.k-products {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--k-bg);
}
.k-product-head {
  height: 72px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: #fff;
}
.k-product-head strong {
  font-size: 28px;
}
.k-intro-back {
  margin-right: 18px;
  background: transparent;
  color: var(--k-muted);
  font-size: 18px;
}
.k-product-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 32px 132px;
}
.k-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.k-group h2 {
  margin: 0 0 16px;
  font-size: 24px;
}
.k-items {
  display: grid;
  gap: 20px;
}
.k-item {
  position: relative;
  display: flex;
  height: 160px;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--k-line);
  border-radius: 20px;
  background: #fff;
}
.k-group[data-code="oden"] .k-item {
  height: 250px;
}
.k-photo {
  width: 128px;
  flex: none;
  overflow: hidden;
  border-radius: 14px;
  background: var(--k-photo-ph);
}
.k-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.k-item-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 4px 0;
}
.k-name {
  font-size: 26px;
  font-weight: 700;
}
.k-price {
  margin-top: 5px;
  color: var(--k-accent);
  font-size: 22px;
  font-weight: 700;
}
.k-option-summary {
  margin-top: 5px;
  color: var(--k-muted);
  font-size: 15px;
  font-weight: 500;
}
.k-stepper {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 15px;
  margin-top: auto;
}
.k-stepper button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 35px;
}
.k-minus {
  background: #f3e3d0;
  color: var(--k-accent);
}
.k-plus {
  background: var(--k-accent);
  color: #fff;
}
.k-stepper button:disabled {
  background: var(--k-disabled);
  color: #b9ae9c;
}
.k-qty {
  min-width: 25px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}
.k-soldout {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 76px;
  height: 34px;
  place-items: center;
  border-radius: 17px;
  background: var(--k-ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.k-item.is-soldout {
  background: #f3eee5;
}
.k-item.is-soldout .k-name,
.k-item.is-soldout .k-price {
  color: #b9ae9c;
}
.k-totalbar {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 32px;
  border-top: 2px solid var(--k-line);
  background: #fff;
}
.k-total {
  display: flex;
  align-items: center;
  gap: 14px;
}
.k-wallet {
  width: 64px;
  height: 64px;
  flex: none;
}
.k-wallet .body {
  fill: var(--k-accent);
}
.k-wallet .flap {
  fill: var(--k-coin);
}
.k-wallet .lock {
  fill: #fff;
}
.k-wallet.is-empty .body {
  fill: #c9c1b7;
}
.k-wallet.is-empty .flap {
  fill: #e2ddd5;
}
.k-total-copy small {
  display: block;
  color: var(--k-muted);
  font-size: 18px;
}
.k-total-copy strong {
  font-size: 36px;
}
.k-total-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.k-clear {
  width: 200px;
  height: 56px;
  border-radius: 28px;
  background: #f3eee5;
  color: var(--k-muted);
  font-size: 22px;
  font-weight: 700;
}
.k-pay {
  width: 300px;
  height: 72px;
  border-radius: 36px;
  background: var(--k-accent);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}
.k-pay:disabled {
  background: var(--k-disabled);
  color: #b9ae9c;
}
.k-coin-fx {
  position: fixed;
  z-index: 20;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--k-coin);
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s linear;
}
.k-wallet.bump {
  animation: k-bump 0.2s ease;
}
@keyframes k-bump {
  50% {
    transform: scale(1.08);
  }
}
.k-modal-wrap {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(43 33 24 / 55%);
}
.k-modal {
  width: min(720px, 100%);
  max-height: min(700px, calc(100dvh - 24px));
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  padding: 40px 48px;
}
.k-modal h2 {
  margin: 0 0 28px;
  font-size: 32px;
}
.k-order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 2px solid var(--k-line);
}
.k-order-row b {
  display: block;
  font-size: 24px;
}
.k-order-row small {
  display: block;
  margin-top: 4px;
  color: var(--k-muted);
  font-size: 18px;
}
.k-order-row span {
  color: var(--k-muted);
  font-size: 24px;
}
.k-order-row strong {
  font-size: 24px;
}
.k-order-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 24px 0;
}
.k-order-total span {
  color: var(--k-muted);
  font-size: 22px;
}
.k-order-total strong {
  color: var(--k-accent);
  font-size: 56px;
}
.k-modal-actions {
  display: flex;
  gap: 16px;
}
.k-modal-actions button {
  height: 72px;
  border-radius: 36px;
  font-size: 22px;
  font-weight: 700;
}
.k-edit {
  width: 260px;
  background: #f3eee5;
  color: var(--k-muted);
}
.k-confirm {
  flex: 1;
  background: var(--k-accent);
  color: #fff;
}
.k-tabs {
  display: flex;
  height: 52px;
  flex: none;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 32px;
  scrollbar-width: none;
}
.k-tabs::-webkit-scrollbar {
  display: none;
}
.k-tab {
  height: 52px;
  flex: none;
  padding: 0 24px;
  border: 1px solid var(--k-line);
  border-radius: 26px;
  background: #fff;
  color: var(--k-ink);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}
.k-tab.is-active {
  border-color: var(--k-accent);
  background: var(--k-accent);
  color: #fff;
}
.k-groups.is-tabbed {
  display: block;
}
.k-groups.is-tabbed .k-group h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.k-groups.is-tabbed .k-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.k-groups.is-tabbed .k-item {
  height: 500px;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.k-groups.is-tabbed .k-photo {
  width: 100%;
  height: 50%;
  min-height: 0;
}
.k-groups.is-tabbed .k-item-main {
  padding: 0;
}
.k-groups.is-tabbed .k-name {
  font-size: 24px;
}
.k-groups.is-tabbed .k-price {
  font-size: 20px;
}
.k-option-modal {
  width: min(800px, 100%);
  max-height: min(700px, calc(100dvh - 24px));
  padding: 36px;
}
.k-option-product {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.k-option-photo {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--k-photo-ph);
}
.k-option-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.k-option-product h2 {
  margin: 0 0 8px;
  font-size: 34px;
}
.k-option-product strong {
  color: var(--k-accent);
  font-size: 26px;
}
.k-option-group {
  margin: 22px 0;
}
.k-option-group h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.k-option-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.k-option-choice {
  min-width: 160px;
  height: 60px;
  padding: 0 20px;
  border: 1px solid var(--k-line);
  border-radius: 30px;
  background: #fff;
  font-size: 24px;
  font-weight: 700;
}
.k-option-choice small {
  font-size: 22px;
}
.k-option-choice.is-selected {
  border-color: var(--k-accent);
  background: var(--k-accent);
  color: #fff;
}
.k-option-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}
.k-option-stepper {
  margin: 0;
}
.k-option-stepper button {
  width: 56px;
  height: 56px;
}
.k-option-qty {
  min-width: 30px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}
.k-add-cart {
  width: 500px;
  max-width: 100%;
  height: 64px;
  border-radius: 32px;
  background: var(--k-accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.k-option-close {
  display: block;
  margin: 18px auto 0;
  background: transparent;
  color: var(--k-muted);
  font-size: 18px;
}
.k-payment-stage {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--k-bg);
}
.k-payment-panel {
  display: flex;
  width: min(800px, 100%);
  height: min(560px, calc(100dvh - 40px));
  flex-direction: column;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--k-line);
  border-radius: 28px;
  background: #fff;
  text-align: center;
}
.k-payment-panel small {
  color: var(--k-muted);
  font-size: 22px;
}
.k-payment-total {
  margin: 2px 0 auto;
  color: var(--k-accent);
  font-size: 64px;
}
.k-payment-guide {
  margin: auto 0;
  font-size: 32px;
  font-weight: 700;
  white-space: pre-line;
}
.k-qr-request {
  width: 400px;
  max-width: 100%;
  height: 88px;
  border-radius: 44px;
  background: var(--k-accent);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.k-payment-back {
  margin-top: 13px;
  background: transparent;
  color: var(--k-muted);
  font-size: 17px;
}
.k-qr-box {
  display: grid;
  width: 280px;
  height: 280px;
  place-items: center;
  margin: auto;
  padding: 10px;
  border: 1px solid var(--k-ink);
  background: #fff;
}
.k-qr-box img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.k-qr-amount {
  margin: 18px 0 8px;
  font-size: 28px;
  font-weight: 700;
}
.k-qr-help {
  margin: 0 0 auto;
  color: var(--k-muted);
  font-size: 22px;
}
.k-qr-return {
  width: 400px;
  max-width: 100%;
  height: 72px;
  margin-top: 20px;
  border-radius: 36px;
  background: #f3eee5;
  color: var(--k-muted);
  font-size: 22px;
  font-weight: 700;
}
.k-slider.is-products .k-arrow,
.k-slider.is-products .k-dots,
.k-slider.is-products .k-menu-go {
  display: none;
}
.k-group[data-code="oden"] .k-photo {
  width: 218px;
}
@media (max-width: 1023px) and (min-width: 821px) {
  .k-groups.is-tabbed .k-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .k-intro {
    padding: 45px;
  }
  .k-intro img {
    max-width: calc(100vw - 90px);
  }
  .k-arrow {
    width: 48px;
    font-size: 48px;
  }
  .k-menu-go {
    right: 16px;
    bottom: 18px;
  }
  .k-product-head {
    padding: 0 16px;
  }
  .k-product-head strong {
    font-size: 22px;
  }
  .k-product-scroll {
    padding: 16px 16px 118px;
  }
  .k-groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .k-group h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  .k-items {
    gap: 10px;
  }
  .k-item,
  .k-group[data-code="oden"] .k-item {
    height: 84px;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
  }
  .k-photo,
  .k-group[data-code="oden"] .k-photo {
    width: 68px;
    border-radius: 10px;
  }
  .k-item-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "n s" "p s";
    align-items: center;
    column-gap: 8px;
    padding: 0;
  }
  .k-item-main .k-name {
    grid-area: n;
    font-size: 18px;
  }
  .k-item-main .k-price {
    grid-area: p;
    margin-top: 0;
    font-size: 16px;
  }
  .k-item-main .k-stepper {
    grid-area: s;
    margin: 0;
  }
  .k-stepper {
    gap: 9px;
  }
  .k-stepper button {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
  .k-qty {
    font-size: 20px;
  }
  .k-option-summary {
    display: none;
  }
  .k-totalbar {
    height: 104px;
    gap: 8px;
    padding: 0 16px;
  }
  .k-wallet {
    width: 44px;
    height: 44px;
  }
  .k-total {
    gap: 8px;
  }
  .k-total-copy small {
    font-size: 14px;
  }
  .k-total-copy strong {
    font-size: 24px;
    white-space: nowrap;
  }
  .k-total-actions {
    gap: 8px;
  }
  .k-clear {
    width: 72px;
    height: 56px;
    font-size: 15px;
  }
  .k-pay {
    width: 174px;
    height: 56px;
    font-size: 21px;
  }
  .k-modal {
    padding: 40px 24px;
  }
  .k-modal h2 {
    font-size: 27px;
  }
  .k-order-row {
    gap: 8px;
  }
  .k-order-row b,
  .k-order-row span,
  .k-order-row strong {
    font-size: 19px;
  }
  .k-order-row small {
    font-size: 15px;
  }
  .k-order-total strong {
    font-size: 42px;
  }
  .k-modal-actions button {
    font-size: 17px;
  }
  .k-edit {
    width: 42%;
  }
  .k-tabs {
    padding: 0 16px;
  }
  .k-tab {
    padding: 0 18px;
    font-size: 18px;
  }
  .k-groups.is-tabbed .k-items {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .k-groups.is-tabbed .k-item {
    height: 92px;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
  }
  .k-groups.is-tabbed .k-photo {
    width: 76px;
    height: 76px;
    flex: none;
  }
  .k-groups.is-tabbed .k-item-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "n s" "p s" "o s";
    grid-template-rows: auto auto auto;
  }
  .k-groups.is-tabbed .k-name {
    font-size: 18px;
  }
  .k-groups.is-tabbed .k-price {
    font-size: 16px;
  }
  .k-groups.is-tabbed .k-option-summary {
    display: block;
    grid-area: o;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .k-groups.is-tabbed .k-stepper {
    margin: 0;
  }
  .k-groups.is-tabbed .k-soldout {
    top: 8px;
    right: 8px;
    transform: scale(0.8);
    transform-origin: top right;
  }
  .k-option-wrap {
    align-items: end;
    padding: 0;
  }
  .k-option-modal {
    width: 100%;
    max-height: min(700px, calc(100dvh - 24px));
    padding: 28px 24px;
    border-radius: 28px 28px 0 0;
  }
  .k-option-product {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }
  .k-option-photo {
    width: 120px;
    height: 120px;
  }
  .k-option-product h2 {
    font-size: 27px;
  }
  .k-option-bottom {
    flex-wrap: wrap;
  }
  .k-add-cart {
    min-width: 240px;
    flex: 1;
  }
  .k-payment-panel {
    padding: 28px 18px;
  }
  .k-payment-total {
    font-size: 48px;
  }
  .k-payment-guide {
    font-size: 25px;
  }
  .k-qr-request {
    height: 72px;
    font-size: 23px;
  }
  .k-qr-box {
    width: 240px;
    height: 240px;
  }
  .k-qr-help {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .k-totalbar {
    gap: 6px;
    padding: 0 12px;
  }
  .k-total {
    gap: 6px;
  }
  .k-wallet {
    width: 36px;
    height: 36px;
  }
  .k-total-copy strong {
    font-size: 20px;
  }
  .k-clear {
    width: 60px;
    font-size: 14px;
  }
  .k-pay {
    width: auto;
    min-width: 112px;
    flex: 1;
    font-size: 19px;
  }
  .k-total-actions {
    min-width: 0;
    flex: 1;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .k-track,
  .k-coin-fx {
    transition: none !important;
  }
  .k-wallet.bump {
    animation: none;
  }
}

/* [2026-10-04 검수 보정] hidden 속성이 display 규칙에 지지 않게 */
.k-group[hidden]{display:none}
