/* 손님 가게 화면(2026-11-20 새로 짬) — public/_app.html 이 부른다. app.css 위에 얹고 .kshop 안에서만 쓴다.
   가운데 한 줄(560px) · 위 머리줄(가게 이름 + 아이콘) · 폰은 아래 탭. 가게 색은 --primary(업체가 고른 테마). */
.kshop { --ink2: #3A4556; --hair: rgba(11, 18, 32, .07); --ease: cubic-bezier(.32, .72, 0, 1);
  --sh: 0 1px 2px rgba(11, 18, 32, .04), 0 10px 28px -14px rgba(11, 18, 32, .16);
  display: block; min-height: 100dvh; background: #F3F4F6; font-family: "SUIT Variable", "Pretendard", system-ui, sans-serif; letter-spacing: -.01em; }
.kshop .app { max-width: 560px; margin: 0 auto; background: #fff; min-height: calc(100dvh - 64px); padding-bottom: 130px; box-shadow: 0 0 0 1px var(--hair); }

/* 머리줄 */
.sh-top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--hair); }
.sh-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 12px 0 16px; }
.sh-brand { display: flex; align-items: center; gap: 9px; min-width: 0; margin-right: auto; color: var(--title); }
.sh-brand img, .sh-mk { width: 32px; height: 32px; border-radius: 11px; object-fit: cover; flex: none; }
.sh-mk { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; }
.sh-brand b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-ic { display: flex; gap: 2px; }
.sh-ic a, .sh-cart { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border-radius: 999px; color: var(--ink2); font-size: 13px; font-weight: 700; transition: background .4s var(--ease); }
.sh-ic a:hover, .sh-cart:hover { background: rgba(11, 18, 32, .05); } .sh-ic a.on { color: var(--primary); }
.kshop .sh-cart { position: relative; width: 40px; padding: 0; justify-content: center; background: rgba(11, 18, 32, .05); font-size: inherit; }
.kshop .sh-cart span { top: -3px; right: -3px; background: var(--primary); }

/* 가게 머리 */
.sh-hero { padding: 20px 18px 6px; }
.sh-hero .cover { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 20px; margin-bottom: 16px; }
.sh-id { display: flex; align-items: center; gap: 14px; }
.sh-id .logo { width: 60px; height: 60px; flex: none; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary); font-size: 24px; font-weight: 800; }
.sh-id .logo img { width: 100%; height: 100%; object-fit: cover; }
.sh-id h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; color: var(--title); }
.sh-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.sh-open i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent); }
.sh-open.off { color: #8C95A3; }
.sh-hero .sub { margin: 12px 0 0; color: var(--sub); font-size: 14px; line-height: 1.55; white-space: pre-line; }

/* 탭 — 밑줄 대신 알약 */
.kshop .sh-tabs { display: flex; gap: 6px; margin: 12px 18px 4px; padding: 4px; border: 0; border-radius: 999px; background: #F1F2F5; }
.kshop .sh-tabs a { flex: 1; padding: 9px 0; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sub); text-align: center; transition: background .4s var(--ease), color .4s var(--ease); }
.kshop .sh-tabs a.on { background: #fff; color: var(--title); box-shadow: 0 1px 3px rgba(11, 18, 32, .1); }

/* 검색 · 분류 */
.kshop .searchbar { padding: 12px 18px 4px; }
.sh-q { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: #F3F4F6; color: var(--faint); }
.sh-q input { flex: 1; height: 100%; border: 0 !important; background: none !important; padding: 0; font-size: 14.5px; box-shadow: none !important; }
.kshop .searchbar .lay { border-radius: 12px; }
.kshop .catbar { padding: 8px 18px; gap: 6px; }
.kshop .catbar .chip { padding: 7px 14px; border-radius: 999px; background: #F3F4F6; border: 0; color: var(--ink2); font-weight: 700; }
.kshop .catbar .chip.on { background: var(--title); color: #fff; }

/* 상품 */
.kshop .items.image { gap: 18px 12px; padding: 12px 18px; }
.kshop .items.image .item .pic { aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #F3F4F6; }   /* 세로 flex 안에서 사진 칸이 26px 더 커지던 것 — 칸 자체를 정사각으로 */
.kshop .items.image .item .pic img, .kshop .items.image .item .pic .noimg { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.kshop .item .pic img, .kshop .item .noimg { border-radius: 14px; }
.kshop .item { border-bottom-color: var(--hair); }
.kshop .item .nm { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.kshop .item .pr { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--title); font-variant-numeric: tabular-nums; }
.kshop .item .badges .chip { border-radius: 6px; font-weight: 700; }
.kshop .sh-add { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--primary); color: #fff; border: 0; font-weight: 800; transition: transform .3s var(--ease); }
.kshop .sh-add:active { transform: scale(.95); } .kshop .sh-add.ok { background: var(--title); }
.kshop .btn.weak:not(.sh-add) { border-radius: 999px; }
.kshop .mq-bar i { background: var(--primary); }
.kshop .post { border-bottom-color: var(--hair); }

/* 아래 장바구니 단추 */
.kshop .fixed-cta { max-width: 560px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0)); border: 0; }
.kshop .fixed-cta .btn.primary { height: 54px; border-radius: 999px; background: var(--title); font-size: 16px; font-weight: 800; box-shadow: 0 10px 24px -10px rgba(11, 18, 32, .5); }
.kshop .sh-go { display: flex; align-items: center; justify-content: center; gap: 8px; }
.kshop .btn.primary { border-radius: 14px; }
.kshop .powered { color: #A3ABB8; letter-spacing: .02em; }

/* 폰 — 머리 아이콘은 아래 탭으로 */
@media (max-width: 900px) {
  .sh-ic { display: none; }
  .kshop .app { box-shadow: none; padding-bottom: 150px; }
  .kshop .bnav { max-width: 560px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); }
  .kshop .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 10px; font-size: 11px; font-weight: 700; color: #8C95A3; }
  .kshop .bnav a.on { color: var(--title); }
  .kshop .fixed-cta { bottom: 60px; }
}
@media (min-width: 901px) { .kshop .bnav { display: none; } .kshop .app { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .kshop * { transition: none !important; } }

/* 로그인·가게 비밀번호 — 가운데 카드 하나 */
.kshop.sh-solo { display: grid; place-items: center; padding: 24px 16px; }
.kshop .login { margin: 0; width: min(420px, 100%); padding: 32px 26px 28px; border-radius: 28px; background: #fff; box-shadow: var(--sh); }
.kshop .login .logo { border-radius: 20px; }
.kshop .login h1 { font-weight: 800; letter-spacing: -.03em; }
.kshop .login .btn.block { height: 50px; border-radius: 999px; font-weight: 800; }
