/* 포장 주문: 크래프트지 위의 상점 */
.t-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(96px, 13vh, 130px) var(--gutter) clamp(36px, 5vw, 70px); min-height: 100svh; }
.t-hero__copy { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.t-hero .t-xxl { font-size: clamp(50px, 7.4vw, 136px); }
.t-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.t-steps li { display: grid; grid-template-columns: 30px 56px 1fr; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.t-steps i { font-style: normal; color: var(--accent); font-weight: 600; }
.t-steps span { color: var(--muted); }
.t-hero__media { position: relative; height: min(76svh, 780px); border-radius: var(--radius); overflow: hidden; background: #d9c6a7; }
.t-hero__media video { height: 112%; top: -6%; }

.t-shop { padding-block: clamp(50px, 7vw, 110px) clamp(90px, 11vw, 170px); }
.t-shop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 44px); }
.t-shop__head[hidden] { display: none; }
.t-shop .seg button[aria-pressed='true'] { background: var(--fg); color: var(--kraft); }
.t-shop__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.t-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.t-list[hidden] { display: none; }
.t-card { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius); background: rgba(255, 252, 245, .62); transition: background .3s, transform .6s var(--ease); }
.t-card:hover { background: #fffdf8; transform: translateY(-5px); }
.t-card__plate { display: grid; place-items: center; margin-bottom: 6px; }
.t-card .plate { width: 92%; height: auto; transition: transform 1.2s var(--ease); filter: drop-shadow(0 14px 18px rgba(60, 40, 20, .28)); }
.t-card:hover .plate { transform: rotate(40deg) scale(1.05); }
.t-card__meta { font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 3em; }
.t-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.t-card__foot b { font-size: 18px; font-weight: 600; }
.t-add { min-height: 44px; padding: 0 20px; border-radius: 99px; background: var(--fg); color: #fff7ea; font-weight: 600; font-size: 14px; transition: background .3s, transform .3s var(--ease); }
.t-add:hover { background: var(--accent); }
.t-add:active { transform: scale(.94); }
.t-add[disabled] { background: rgba(31, 23, 16, .2); color: #6b5a45; cursor: not-allowed; }
.t-card.is-sold .plate { filter: grayscale(.9) opacity(.6); }
.t-fly { position: fixed; z-index: 70; pointer-events: none; margin: 0; }

.t-order { position: sticky; top: 92px; display: grid; gap: 16px; padding: 22px; border-radius: var(--radius) var(--radius) 8px 8px; background: #fffdf8; box-shadow: 0 22px 60px rgba(60, 40, 20, .16); }
.t-order[hidden] { display: none; }
.t-order__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--fg); }
.t-order__head b { font-family: var(--display); font-size: 20px; font-weight: 500; }
.t-order__head span { color: var(--muted); font-size: 13px; align-self: end; }
.t-lines { display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.t-lines li { display: grid; grid-template-columns: 1fr auto 86px; align-items: center; gap: 8px; font-size: 15px; }
.t-empty { display: block !important; color: var(--muted); padding: 8px 0; }
.t-line__amt { text-align: right; font-weight: 500; }
.t-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 99px; }
.t-qty button { width: 32px; height: 32px; border-radius: 50%; font-size: 16px; }
.t-qty button:hover { background: var(--kraft); }
.t-qty b { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-block: 1px dashed var(--line); }
.t-total span:first-child { color: var(--muted); font-size: 14px; }
.t-total b { font-family: var(--display); font-size: 28px; font-weight: 500; }
.t-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.t-slot { display: grid; justify-items: center; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); transition: background .25s, color .25s; }
.t-slot b { font-weight: 600; }
.t-slot small { font-size: 12px; color: var(--muted); }
.t-slot.is-on { background: var(--fg); color: #fff7ea; border-color: var(--fg); }
.t-slot.is-on small { color: inherit; }
.t-slot[disabled] { opacity: .45; cursor: not-allowed; }
.t-order .input { background: #fff; }

.t-done { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(20px, 4vw, 60px); align-items: start; }
.t-done[hidden] { display: none; }
.t-receipt { display: grid; gap: 22px; justify-items: start; padding: clamp(26px, 4vw, 52px); border-radius: var(--radius); background: #fffdf8; box-shadow: 0 24px 70px rgba(60, 40, 20, .16); }
.t-receipt .eyebrow b { color: var(--fg); font-weight: 600; }
.t-track { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.t-track li { position: relative; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.t-track li i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: rgba(31, 23, 16, .18); z-index: 1; transition: background .5s; }
.t-track li::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(31, 23, 16, .18); }
.t-track li.is-on { color: var(--fg); font-weight: 600; }
.t-track li.is-on i, .t-track li.is-on::before { background: var(--accent); }
.t-talk { display: grid; justify-items: center; padding: 28px 20px; border-radius: 32px; background: #1c2a3a; }

.t-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 20px; border-radius: 16px; background: var(--fg); color: #fff7ea; font-weight: 600; box-shadow: 0 14px 40px rgba(31, 23, 16, .35); }
.t-bar[hidden] { display: none !important; }

@media (max-width: 899px) {
  .t-hero { grid-template-columns: 1fr; min-height: 0; }
  .t-hero__media { height: 56svh; }
  .t-shop__grid, .t-done { grid-template-columns: 1fr; }
  .t-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-card { padding: 12px; }
  .t-card__foot { gap: 6px; }
  .t-card__foot b { font-size: 16px; white-space: nowrap; }
  .t-add { padding: 0 14px; white-space: nowrap; flex: none; }
  .t-order { position: static; }
  .t-bar { display: flex; }
  .t-shop { padding-bottom: 110px; }
}
