/* ==========================================================================
   가요가요 C端 Web (PC 全屏版，移动端响应式降级)
   设计系统移植自 Flutter App（lib/theme.dart）：
   iOS 极简结构 × KAL 品牌蓝（deep cobalt / royal / sky），扁平、发丝线、圆角 14-18
   ========================================================================== */

:root {
    /* KAL 팔레트 — Flutter lib/theme.dart 와 동일（koreanair.com 실측값） */
    --kal-navy: #051766;      /* 主色：대한항공 네이비（로고/타이틀/주요 버튼） */
    --kal-blue: #1E4396;      /* 强调：로열 블루（액센트/링크/포커스） */
    --kal-sky: #57BBEB;       /* 辅助：스카이 블루 */
    --kal-soft: #CEE7F7;      /* 페이지 배경 상단 톤 */
    --kal-soft-blue: #CBE9FA; /* 选中 tint */
    --kal-red: #DA291C;       /* 대한항공 레드（찜/휴무/에러） */
    --kal-ink: #051766;       /* 正文 — 네이비와 동일 */
    --kal-gray: #5E5E5E;      /* 辅助文字 */
    --kal-line: #E2E7EF;      /* 发丝线 */
    --kal-field: #F7F7F7;     /* 输入底 */
    --star: #FF9500;
    --like: #FF5A5F;
    --open-bg: #E7F6EE;
    --open-dot: #1E9E6A;
    --open-text: #178F5F;
    --radius-btn: 14px;
    --radius-input: 12px;
    --radius-card: 18px;
    --card-shadow: 0 1px 3px rgba(18, 58, 107, 0.04), 0 4px 16px rgba(18, 58, 107, 0.05);
    --card-shadow-hover: 0 10px 28px rgba(18, 58, 107, 0.12);
    --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* overflow-x 用 clip 而非 hidden：full-bleed 的 100vw 含纵向滚动条宽度会超宽，
   clip 直接裁掉且不产生滚动容器，不影响 sticky 头部 */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: #fff;
    color: var(--kal-ink);
    letter-spacing: -0.2px;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; letter-spacing: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
/* 아이콘 폰트 로드 전 리거처 원문 노출 방지（layout 의 ms-ready 스크립트와 세트）
   :not() 방식이라 준비 후엔 각 요소 고유의 opacity(예: hero deco 0.10)가 그대로 살아난다 */
html:not(.ms-ready) .ms { opacity: 0; }

/* ---- 容器 ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { flex: 1; padding-bottom: 56px; }

/* 窄内容（表单/마이페이지/详情列表等） */
.narrow, .form, .menu-group, .profile-head, .mcard-wrap, .wallet-cards, .order-code,
.region-group, .auth-hero, .auth-links, .comment-form {
    max-width: 760px; margin-left: auto; margin-right: auto;
}

/* ---- 顶部导航（PC） ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 0.6px solid var(--kal-line);
}
.site-header .inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.site-header .logo { font-size: 22px; font-weight: 800; color: var(--kal-navy); letter-spacing: -0.5px; flex: 0 0 auto; }
.site-header .gnb { display: flex; gap: 4px; }
.site-header .gnb a {
    padding: 8px 14px; border-radius: 10px; white-space: nowrap;
    font-size: 15px; font-weight: 600; color: var(--kal-gray);
}
.site-header .gnb a:hover { background: var(--kal-field); color: var(--kal-ink); }
.site-header .gnb a.active { color: var(--kal-navy); }
.site-header .spacer { flex: 1; }
.region-btn {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 8px 12px; border-radius: 10px; border: 0; background: none;
    font-size: 14px; font-weight: 600; color: var(--kal-gray); white-space: nowrap;
}
.region-btn:hover { background: var(--kal-field); }
.region-btn.active { color: var(--kal-blue); }
.region-btn .ms { font-size: 18px; }
.header-search {
    display: flex; align-items: center; gap: 6px;
    background: var(--kal-field); border: 1px solid transparent;
    border-radius: 999px; padding: 8px 16px; width: 240px;
    transition: border-color 0.15s, background 0.15s;
}
.header-search:focus-within { border-color: var(--kal-blue); background: #fff; }
.header-search .ms { font-size: 19px; color: var(--kal-blue); }
.header-search input { border: 0; background: none; outline: none; font-family: inherit; font-size: 14px; width: 100%; color: var(--kal-ink); }
.hbtn {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-size: 14px; font-weight: 600; color: var(--kal-ink);
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--kal-line);
    transition: background 0.15s, border-color 0.15s;
}
.hbtn .ms { font-size: 19px; }
.hbtn:hover { background: var(--kal-field); }
.hbtn.active { color: var(--kal-navy); border-color: var(--kal-navy); }
.hbtn.solid { background: var(--kal-navy); color: #fff; border-color: var(--kal-navy); }

/* ---- 页脚 ---- */
.site-footer { background: var(--kal-navy); color: rgba(255, 255, 255, 0.75); padding: 36px 0 44px; font-size: 13px; }
.site-footer .f-logo { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.site-footer .copy { margin-top: 10px; opacity: 0.6; }

/* ---- 页头（子页面：返回 + 标题） ---- */
.page-head { display: flex; align-items: center; gap: 10px; padding: 22px 0 6px; }
.page-head .back {
    width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--kal-line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--kal-ink);
}
.page-head .back:hover { background: var(--kal-field); }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.page-title { padding: 26px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }

/* ---- Hero（首页，全出血冰蓝带 + 旅行主题装饰） ---- */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hero {
    position: relative; overflow: hidden;
    /* Flutter kalBgGradient 와 동일 — koreanair.com 실측 하늘색 → 흰색 */
    background: linear-gradient(180deg, #B9E3F6 0%, #D7EFF9 25%, #EBF7FE 55%, #FFFFFF 100%);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero .blob { position: absolute; border-radius: 50%; }
.hero .blob.b1 {
    width: 480px; height: 480px; right: -140px; top: -220px;
    background: radial-gradient(circle, rgba(79, 168, 224, 0.28), transparent 68%);
}
.hero .blob.b2 {
    width: 420px; height: 420px; left: -170px; bottom: -240px;
    background: radial-gradient(circle, rgba(47, 91, 168, 0.18), transparent 68%);
}
.hero .flight-path {
    position: absolute; inset: 0; width: 100%; height: 100%;
    color: var(--kal-blue); opacity: 0.3;
}
.hero .deco-ic { position: absolute; color: var(--kal-blue); opacity: 0.10; animation: hero-float 7s ease-in-out infinite; }
.hero .deco-ic.i1 { font-size: 44px; left: 9%;  top: 24%; animation-delay: 0s;    transform: rotate(-8deg); }
.hero .deco-ic.i2 { font-size: 30px; right: 12%; top: 20%; animation-delay: -2s; }
.hero .deco-ic.i3 { font-size: 34px; left: 20%;  bottom: 16%; animation-delay: -4s; }
.hero .deco-ic.i4 { font-size: 28px; right: 22%; bottom: 24%; animation-delay: -1s; }
.hero .deco-ic.i5 { font-size: 22px; right: 34%; top: 12%;  animation-delay: -3s; }
@keyframes hero-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}
.hero .hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 68px 24px 60px; text-align: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.72); border: 0.6px solid rgba(47, 91, 168, 0.22);
    color: var(--kal-blue); font-size: 13px; font-weight: 700;
    border-radius: 20px; padding: 6px 14px; margin-bottom: 14px;
    backdrop-filter: blur(4px);
}
.hero-eyebrow .ms { font-size: 16px; }
.hero h2 { font-size: 34px; font-weight: 800; color: var(--kal-navy); letter-spacing: -0.6px; }
.hero p { margin-top: 8px; font-size: 16px; color: var(--kal-gray); }
.hero-keywords {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin-top: 16px; font-size: 13px;
}
.hero-keywords span { color: var(--kal-gray); font-weight: 600; margin-right: 2px; }
.hero-keywords a {
    background: rgba(255, 255, 255, 0.8); border: 0.6px solid rgba(47, 91, 168, 0.18);
    color: var(--kal-blue); font-weight: 600; border-radius: 20px; padding: 5px 13px;
    transition: background 0.15s, transform 0.15s;
}
.hero-keywords a:hover { background: #fff; transform: translateY(-1px); }
.hero .searchbox {
    margin: 26px auto 0; display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1.5px solid transparent;
    border-radius: 999px; padding: 16px 24px;
    color: var(--kal-gray); font-size: 15px; max-width: 560px;
    box-shadow: 0 6px 24px rgba(18, 58, 107, 0.10);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hero .searchbox:hover,
.hero .searchbox:focus-within { border-color: var(--kal-blue); box-shadow: 0 10px 32px rgba(18, 58, 107, 0.14); }
.hero .searchbox .ms { font-size: 21px; color: var(--kal-blue); }

/* ---- 分类图标条 ---- */
.category-strip {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 14px; padding: 30px 0 6px;
}
.category-strip a {
    width: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 13px; color: var(--kal-ink); font-weight: 500;
}
.category-strip .squircle {
    width: 58px; height: 58px; border-radius: 19px; background: var(--kal-field);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.2s ease;
}
.category-strip a:hover .squircle { background: var(--kal-soft-blue); transform: translateY(-3px); }
.category-strip .squircle .ms { color: var(--kal-navy); font-size: 28px; }
.category-strip a span.label { max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Banner 横滑 ---- */
.banner-scroll {
    display: flex; gap: 14px; overflow-x: auto; padding: 22px 0 4px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.banner-scroll::-webkit-scrollbar { display: none; }
.banner-scroll a {
    flex: 0 0 32.5%; scroll-snap-align: start;
    border-radius: var(--radius-card); overflow: hidden; background: #EDEDED;
}
.banner-scroll img { width: 100%; aspect-ratio: 21/9; object-fit: cover; transition: transform 0.2s; }
.banner-scroll a:hover img { transform: scale(1.03); }

/* ---- Section 标题 ---- */
.section-title { display: flex; align-items: baseline; justify-content: space-between; padding: 42px 0 18px; }
.section-title h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.section-title a { font-size: 14px; color: var(--kal-gray); font-weight: 500; transition: color 0.15s; }
.section-title a:hover { color: var(--kal-navy); }

/* ---- 商家卡网格（首页/列表） ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.product-card {
    display: block; border-radius: var(--radius-card);
    background: #fff; box-shadow: var(--card-shadow); overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.product-card .thumb { position: relative; background: #EDEDED; overflow: hidden; }
.product-card .thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .thumb img { transform: scale(1.045); }
.product-card .badge-appt {
    position: absolute; left: 10px; bottom: 10px;
    background: var(--kal-navy); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 8px; border-radius: 7px;
}
.product-card .badge-rate {
    position: absolute; right: 10px; top: 10px;
    background: rgba(255, 255, 255, 0.94); color: var(--kal-blue);
    font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px;
    max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card .body { padding: 14px 16px 16px; }
.product-card .row1 { display: flex; align-items: center; gap: 8px; }
.product-card .row1 .name {
    flex: 1; font-size: 16px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card .row2 {
    margin-top: 4px; font-size: 13px; color: var(--kal-gray);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
.stars-num { color: var(--kal-ink); font-weight: 700; font-size: 13px; }

/* ---- 商家横向小卡（列表/搜索/收藏，PC 双列网格） ---- */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; padding-top: 14px; }
.product-item {
    display: flex; gap: 14px; padding: 14px;
    border-radius: var(--radius-card);
    background: #fff; box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-item:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.product-item .thumb {
    width: 104px; height: 104px; flex: 0 0 104px;
    border-radius: 14px; overflow: hidden; background: #EDEDED;
}
.product-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-item:hover .thumb img { transform: scale(1.06); }
.product-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.product-item .name-row { display: flex; align-items: center; gap: 6px; }
.product-item .name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-item .tag-appt {
    flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: var(--kal-navy);
    background: var(--kal-soft-blue); border-radius: 6px; padding: 2px 6px;
}
.product-item .addr { font-size: 13px; color: var(--kal-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-item .rate-text { font-size: 13px; color: var(--kal-blue); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 列表页大卡变体（/shop/list）：min() 防止窄屏溢出 */
.items-grid.lg { grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr)); gap: 16px; }
.items-grid.lg .product-item { gap: 16px; padding: 16px; }
.items-grid.lg .product-item .thumb { width: 132px; height: 132px; flex: 0 0 132px; }
.items-grid.lg .product-item .info { gap: 6px; }
.items-grid.lg .product-item .name { font-size: 18px; }
.items-grid.lg .product-item .addr,
.items-grid.lg .product-item .rate-text { font-size: 14px; }

/* ---- 按钮 ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: var(--radius-btn);
    background: var(--kal-navy); color: #fff;
    font-size: 16px; font-weight: 600; padding: 15px 22px;
    width: 100%; text-align: center;
    transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: 0.5; }
.btn.outline { background: #fff; color: var(--kal-navy); border: 1px solid var(--kal-line); }
.btn.outline:hover { background: var(--kal-field); filter: none; }
.btn.sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; width: auto; }
.btn.danger { background: #fff; color: var(--kal-red); border: 1px solid var(--kal-line); }
.btn.danger:hover { background: #FBE9EC; filter: none; }

/* ---- 表单 ---- */
.form { padding: 18px 0; display: flex; flex-direction: column; gap: 15px; }
.form label { font-size: 13.5px; font-weight: 600; color: var(--kal-ink); display: block; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="tel"], .form input[type="date"], .form input[type="time"],
.form input[type="number"], .form select, .form textarea {
    width: 100%; border: 1px solid var(--kal-line); border-radius: var(--radius-input);
    background: var(--kal-field); padding: 13px 14px; font-size: 15px;
    font-family: inherit; color: var(--kal-ink); outline: none;
    -webkit-appearance: none; appearance: none;
}
.form input:focus, .form select:focus, .form textarea:focus {
    border-color: var(--kal-blue); border-width: 1.4px; background: #fff;
}
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { font-size: 12.5px; color: var(--kal-gray); margin-top: 5px; }
.form .check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--kal-ink); }
.form .check input { width: 18px; height: 18px; accent-color: var(--kal-navy); }

/* ---- 提示条（flash） ---- */
.flash {
    max-width: 760px; margin: 14px auto 0; padding: 13px 16px; border-radius: 12px;
    font-size: 14px; font-weight: 500;
}
.flash.msg { background: var(--kal-soft-blue); color: var(--kal-navy); }
.flash.error { background: #FBE9EC; color: var(--kal-red); }

/* ==========================================================================
   详情页（PC 两栏：主内容 + 右侧预约卡）
   ========================================================================== */
.detail-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px; align-items: start; padding-top: 22px;
}
.detail-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }

.gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; background: #EDEDED;
    border-radius: var(--radius-card); margin-bottom: 18px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
    flex: 0 0 100%; scroll-snap-align: start;
    width: 100%; height: 420px; object-fit: cover;
}

.detail-card {
    padding: 22px; background: #fff; margin-bottom: 18px;
    border: 0.6px solid var(--kal-line); border-radius: 18px;
    box-shadow: var(--card-shadow);
}
.detail-card h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.5px; }
.detail-card .meta { margin-top: 7px; font-size: 14px; color: var(--kal-gray); }
.detail-card .badges { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.badge-navy { background: var(--kal-navy); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.badge-soft { background: var(--kal-soft-blue); color: var(--kal-navy); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.hairline { border: 0; border-top: 0.6px solid var(--kal-line); margin: 16px 0; }
.detail-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.detail-row .ms { font-size: 20px; color: var(--kal-blue); flex: 0 0 auto; margin-top: 1px; }
.detail-row .val { flex: 1; min-width: 0; word-break: break-all; }
.detail-row .sub { color: var(--kal-gray); font-size: 13px; }

.open-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--open-bg); color: var(--open-text);
    font-size: 12px; font-weight: 700; border-radius: 20px; padding: 3px 10px;
}
.open-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--open-dot); }
.open-pill.closed { background: #FBE9EC; color: var(--kal-red); }
.open-pill.closed .dot { background: var(--kal-red); }

.opentime-table { width: 100%; max-width: 340px; margin-top: 8px; font-size: 13.5px; color: var(--kal-gray); border-collapse: collapse; }
.opentime-table td { padding: 3px 0; }
.opentime-table td:first-child { width: 44px; font-weight: 600; }
.opentime-table tr.today td { color: var(--kal-ink); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { background: var(--kal-field); color: var(--kal-blue); font-size: 12.5px; font-weight: 600; border-radius: 20px; padding: 4px 11px; }

/* 快捷操作条 */
.quick-actions { display: flex; gap: 26px; padding: 4px 4px 22px; flex-wrap: wrap; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; color: var(--kal-ink); }
.quick-actions .circle {
    width: 50px; height: 50px; border-radius: 50%; background: var(--kal-soft-blue);
    display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.quick-actions a:hover .circle { background: var(--kal-sky); }
.quick-actions a:hover .circle .ms { color: #fff; }
.quick-actions .circle .ms { color: var(--kal-navy); font-size: 24px; }

/* 右侧预约卡 */
.book-card {
    padding: 20px; background: #fff;
    border: 0.6px solid var(--kal-line); border-radius: 18px; box-shadow: var(--card-shadow);
}
.book-card .price-label { font-size: 12.5px; color: var(--kal-gray); font-weight: 600; }
.book-card .price { font-size: 21px; font-weight: 800; color: var(--kal-navy); margin-top: 3px; word-break: break-all; }
.book-card .actions { display: flex; gap: 10px; margin-top: 16px; }
.book-card .fav-btn {
    width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid var(--kal-line); border-radius: 13px;
    background: #fff; display: inline-flex; align-items: center; justify-content: center;
    color: var(--kal-gray); transition: background 0.15s;
}
.book-card .fav-btn:hover { background: var(--kal-field); }
.book-card .fav-btn.on { color: var(--kal-red); border-color: #F4C6CE; background: #FDF3F5; }
.book-card .btn { padding: 14px 10px; }
.book-card .contact { margin-top: 14px; border-top: 0.6px solid var(--kal-line); padding-top: 8px; }

/* 优惠券卡 */
.coupon-card {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px; padding: 13px 14px;
    border: 1px dashed var(--kal-sky); border-radius: 12px; background: var(--kal-field);
}
.coupon-card:first-child { margin-top: 0; }
.coupon-card .ms { color: var(--kal-blue); font-size: 26px; }
.coupon-card .info { flex: 1; min-width: 0; }
.coupon-card .name { font-size: 14px; font-weight: 700; }
.coupon-card .period { font-size: 12px; color: var(--kal-gray); margin-top: 2px; }
.coupon-card form { flex: 0 0 auto; }
.coupon-card .btn.sm { background: var(--kal-navy); color: #fff; }
.coupon-card .got { font-size: 12.5px; font-weight: 700; color: var(--kal-gray); padding: 8px 6px; }

/* 소개 / 유튜브 */
.about-text { font-size: 15px; line-height: 1.75; color: var(--kal-ink); white-space: pre-line; word-break: break-word; }
.youtube-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.youtube-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 详情页笔记横滑 */
.note-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.note-strip::-webkit-scrollbar { display: none; }
.note-strip a { flex: 0 0 160px; }
.note-strip .cover { width: 160px; height: 112px; border-radius: 12px; object-fit: cover; background: #EDEDED; }
.note-strip .t { margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-strip .a { margin-top: 3px; font-size: 11.5px; color: var(--kal-gray); display: flex; align-items: center; gap: 4px; }
.note-strip .a .like { color: var(--like); }

/* ---- Feed 网格（PC 多列） ---- */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; padding-top: 16px; }
.note-card {
    border-radius: var(--radius-card);
    overflow: hidden; background: #fff; box-shadow: var(--card-shadow);
    display: block; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.note-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.note-card .cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #EDEDED; transition: transform 0.35s ease; }
.note-card:hover .cover { transform: scale(1.045); }
.note-card .cover.empty { display: flex; align-items: center; justify-content: center; color: var(--kal-gray); }
.note-card .body { padding: 12px 14px 14px; background: #fff; position: relative; }
.note-card .t { font-size: 14px; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-card .a { margin-top: 7px; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--kal-gray); }
.note-card .a img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: #EDEDED; }
.note-card .a .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-card .a .like { color: var(--like); display: inline-flex; align-items: center; gap: 2px; }
.note-card .a .like .ms { font-size: 13px; }

/* ---- 笔记详情（居中窄栏） ---- */
.note-detail { max-width: 760px; margin: 0 auto; padding-bottom: 8px; }
.note-detail .media img { width: 100%; max-height: 520px; object-fit: cover; background: #EDEDED; border-radius: var(--radius-card); margin-bottom: 10px; }
.note-detail .inner { padding: 14px 0 0; }
.note-detail .author { display: flex; align-items: center; gap: 10px; }
.note-detail .author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #EDEDED; }
.note-detail .author .name { font-size: 14.5px; font-weight: 700; }
.note-detail .author .date { font-size: 12.5px; color: var(--kal-gray); }
.note-detail h2 { margin-top: 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.note-detail .content { margin-top: 10px; font-size: 15px; line-height: 1.8; white-space: pre-line; word-break: break-word; }
.note-detail .topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.note-detail .topics span { color: var(--kal-blue); font-size: 13.5px; font-weight: 600; }
.note-detail .section-title { padding: 24px 0 10px; }
.note-actions { display: flex; gap: 10px; padding: 18px 0 0; }
.note-actions form { flex: 1; max-width: 220px; }
.note-actions button {
    width: 100%; border: 1px solid var(--kal-line); background: #fff;
    border-radius: var(--radius-btn); padding: 11px 0; font-size: 14px; font-weight: 600;
    color: var(--kal-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.note-actions button:hover { background: var(--kal-field); }
.note-actions button .ms { font-size: 19px; }
.note-actions button.on { color: var(--like); border-color: #F7CDCF; background: #FEF5F5; }
.note-actions button.on-collect { color: var(--star); border-color: #F7E3C0; background: #FFF9EE; }

/* 内嵌店铺卡 */
.embed-product {
    display: flex; gap: 12px; align-items: center;
    margin-top: 16px; padding: 12px; border: 0.6px solid var(--kal-line);
    border-radius: 14px; background: var(--kal-field);
}
.embed-product:hover { background: var(--kal-soft-blue); }
.embed-product img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: #EDEDED; }
.embed-product .info { flex: 1; min-width: 0; }
.embed-product .name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-product .sub { font-size: 12.5px; color: var(--kal-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-product .ms { color: #C7C7CC; }

/* 评论 */
.comments { padding: 6px 0 16px; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 0.6px solid var(--kal-line); }
.comment img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #EDEDED; }
.comment .body { flex: 1; min-width: 0; }
.comment .name { font-size: 13px; font-weight: 700; color: var(--kal-gray); }
.comment .text { font-size: 14.5px; margin-top: 2px; word-break: break-word; }
.comment .date { font-size: 12px; color: var(--kal-gray); margin-top: 3px; }
.comment-form { display: flex; gap: 8px; padding: 14px 0; }
.comment-form input {
    flex: 1; border: 1px solid var(--kal-line); border-radius: 22px;
    background: var(--kal-field); padding: 11px 18px; font-size: 14px; outline: none; font-family: inherit;
}
.comment-form input:focus { border-color: var(--kal-blue); background: #fff; }
.comment-form button { border: 0; background: var(--kal-navy); color: #fff; border-radius: 22px; padding: 0 22px; font-size: 14px; font-weight: 600; }

/* ---- chips 筛选 ---- */
.chips { display: flex; gap: 8px; padding: 16px 0 4px; overflow-x: auto; scrollbar-width: none; max-width: 760px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
    flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--kal-ink);
    background: var(--kal-field); border-radius: 999px; padding: 9px 18px;
    transition: background 0.15s, color 0.15s;
}
.chips a:hover { background: var(--kal-soft-blue); }
.chips a.active { background: var(--kal-navy); color: #fff; }
.chips.wide { max-width: none; margin: 0; } /* 列表页：与全宽 items-grid 对齐 */

/* ---- 预约列表 ---- */
.order-item {
    display: flex; gap: 14px; max-width: 760px; margin: 14px auto 0; padding: 16px;
    border: 0.6px solid var(--kal-line); border-radius: var(--radius-card);
    background: #fff; box-shadow: var(--card-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.order-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 58, 107, 0.12); }
.order-item img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: #EDEDED; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .name { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item .when { font-size: 13.5px; color: var(--kal-gray); margin-top: 3px; }
.status-pill { flex: 0 0 auto; align-self: flex-start; font-size: 11.5px; font-weight: 700; border-radius: 20px; padding: 4px 10px; }
.status-pill.pending { background: var(--kal-soft-blue); color: var(--kal-navy); }
.status-pill.ok { background: var(--open-bg); color: var(--open-text); }
.status-pill.off { background: var(--kal-field); color: var(--kal-gray); }

/* 预约详情（窄栏容器） */
.order-detail { max-width: 760px; margin: 0 auto; }
.order-code {
    margin-top: 18px; padding: 26px; text-align: center;
    border: 1px dashed var(--kal-sky); border-radius: var(--radius-card); background: var(--kal-field);
}
.order-code .label { font-size: 12.5px; color: var(--kal-gray); font-weight: 600; }
.order-code .code { font-size: 34px; font-weight: 800; letter-spacing: 6px; color: var(--kal-navy); margin-top: 6px; }

/* ---- 마이페이지 ---- */
/* 프로필 헤더 — 탭하면 회원정보 수정 */
.profile-head {
    display: flex; align-items: center; gap: 14px;
    margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #fff;
    box-shadow: var(--card-shadow); color: var(--kal-ink);
    transition: transform 0.15s, box-shadow 0.15s;
}
.profile-head:hover { transform: translateY(-1px); box-shadow: var(--card-shadow-hover); }
.profile-head img, .profile-head .avatar-ph {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px;
    background: rgba(31, 58, 114, 0.08);
}
.profile-head .avatar-ph { display: inline-flex; align-items: center; justify-content: center; }
.profile-head .avatar-ph .ms { color: var(--kal-navy); font-size: 28px; }
.profile-head .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-head .name { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.profile-head .sub { font-size: 13px; color: var(--kal-gray); }
.profile-head .edit { color: var(--kal-gray); font-size: 18px; }

/* 멤버십 카드 — App _MemberCard 이식（실물 비율 1.586 + 등급 소재 + 3D 플립） */
.mcard-wrap { margin-top: 18px; }
.mcard {
    max-width: 430px; margin: 0 auto; aspect-ratio: 1.586;
    perspective: 1200px; cursor: pointer; outline: none;
}
.mcard-inner {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.32, 0.72, 0.24, 1);
}
.mcard-inner.flipped { transform: rotateY(180deg); }
.mface {
    position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: var(--mc-bg); color: var(--mc-fg);
    box-shadow: 0 8px 16px rgba(16, 20, 38, 0.18);
    display: flex; flex-direction: column;
}
.mface.front { padding: 16px 20px; justify-content: space-between; }
.mface.back { transform: rotateY(180deg); }
/* 등급 소재（App _TierStyle 값 그대로） */
.tier-std {
    --mc-bg: linear-gradient(135deg, #FFFFFF 0%, #F3F7FF 45%, #DDE9FF 100%);
    --mc-fg: #00265E; --mc-accent: #0048E8;
    --mc-wm1: #0048E8; --mc-wm2: #00265E; --mc-mk1: #69A3FF; --mc-mk2: #2C74DD;
}
.tier-std .mface { border: 1px solid rgba(0, 72, 232, 0.16); }
.tier-gold {
    --mc-bg: linear-gradient(135deg, #9A7328 0%, #C9A24D 30%, #F0DDA2 52%, #C79F4B 74%, #8A6420 100%);
    --mc-fg: #3A2A0D; --mc-accent: #4A3610;
    --mc-wm1: #3A2A0D; --mc-wm2: #3A2A0D; --mc-mk1: rgba(58, 42, 13, 0.55); --mc-mk2: #3A2A0D;
}
.tier-plat {
    --mc-bg: linear-gradient(135deg, #838B96 0%, #C8CDD5 30%, #EFF1F4 52%, #B4BAC3 74%, #6F7883 100%);
    --mc-fg: #242A34; --mc-accent: #39404B;
    --mc-wm1: #242A34; --mc-wm2: #242A34; --mc-mk1: rgba(36, 42, 52, 0.55); --mc-mk2: #242A34;
}
.tier-dia {
    --mc-bg: linear-gradient(135deg, #0B1638 0%, #0E1F52 45%, #080F28 100%);
    --mc-fg: #F2F5FB; --mc-accent: #8AB8FF;
    --mc-wm1: #FFFFFF; --mc-wm2: #FFFFFF; --mc-mk1: rgba(255, 255, 255, 0.6); --mc-mk2: #FFFFFF;
}
/* 다이아몬드 프리즘 엣지 — 그라데이션 보더 */
.tier-dia .mface {
    border: 1.5px solid transparent;
    background:
        var(--mc-bg) padding-box,
        linear-gradient(90deg, #69A3FF, #A78BFA, #F0ABFC, #5EEAD4, #69A3FF) border-box;
}
.mface .row { display: flex; align-items: center; }
.mface .row.top { justify-content: space-between; align-items: flex-start; }
.mface .wordmark {
    font-size: 17px; font-weight: 800; letter-spacing: -0.3px; line-height: 1;
    color: var(--mc-wm1); display: inline-flex; align-items: flex-start; gap: 2px;
}
.mface .wordmark i { font-style: normal; color: var(--mc-wm2); }
.mface .wordmark .mk { width: 12px; height: 10px; margin-top: -2px; }
.mface .tier { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.mface .tier b { color: var(--mc-accent); font-size: 10.5px; font-weight: 700; letter-spacing: 3px; }
.mface .tier span { font-size: 12.5px; font-weight: 600; opacity: 0.75; }
.mface .chips-row { gap: 10px; }
.mface .icchip {
    width: 38px; height: 28px; border-radius: 6px;
    background: linear-gradient(135deg, #EFD9A0, #D3B268, #B8934A);
    border: 1px solid rgba(90, 65, 20, 0.45);
}
.mface .cl { font-size: 20px; opacity: 0.8; }
.mface .cardno {
    font-size: 17px; font-weight: 600; letter-spacing: 2px;
}
.tier-dia .cardno { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.mface .row.bottom { align-items: flex-end; gap: 18px; }
.mface .field {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    font-size: 12.5px; font-weight: 700; letter-spacing: 1px; white-space: nowrap;
}
.mface .field b { font-size: 7.5px; letter-spacing: 2px; opacity: 0.65; }
.mface .spacer { flex: 1; }
/* 회원 QR — 흰 타일이 콰이어트존（어두운 카드에서도 스캔 가능） */
.mface .qr-tile {
    width: 54px; height: 54px; flex: 0 0 54px; padding: 5px; border-radius: 9px;
    background: #fff; box-shadow: 0 2px 8px rgba(10, 16, 38, 0.25);
    display: inline-flex; align-items: center; justify-content: center;
}
.mface .qr-tile img, .mface .qr-tile canvas { width: 44px !important; height: 44px !important; display: block; }
/* 뒷면 */
.mface .stripe { height: 30px; margin-top: 14px; background: #12172B; }
.tier-dia .stripe { background: rgba(0, 0, 0, 0.55); }
.mface .benefits { flex: 1; padding: 10px 20px 4px; display: flex; flex-direction: column; justify-content: center; }
.mface .benefits .head { font-size: 12px; font-weight: 700; margin-bottom: 8px; opacity: 0.9; }
.mface .benefits .head b { color: var(--mc-accent); letter-spacing: 3px; font-size: 11px; margin-right: 8px; }
.mface .benefits .li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12.5px; line-height: 1.4; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mface .benefits .li i {
    flex: 0 0 4.5px; width: 4.5px; height: 4.5px; border-radius: 50%;
    margin-top: 6px; background: currentColor; opacity: 0.5;
}
.mface .foot {
    display: flex; justify-content: space-between; padding: 0 20px 12px;
    font-size: 9px; font-weight: 600; letter-spacing: 1.5px; opacity: 0.72;
}
.mcard-hint {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin-top: 10px; font-size: 12px; color: var(--kal-gray);
}
.mcard-hint .ms { font-size: 14px; }
/* 카드 하단 액션 바：회원정보 | 회원 QR（App 의 회원정보|모바일카드 저장 대응） */
.mcard-actions {
    max-width: 430px; margin: 10px auto 0; background: #fff; border-radius: 14px;
    box-shadow: var(--card-shadow); display: flex; align-items: center;
}
.mcard-actions a, .mcard-actions button {
    flex: 1; padding: 13px 0; text-align: center; border: 0; background: none; cursor: pointer;
    color: var(--kal-navy); font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px;
    font-family: inherit;
}
.mcard-actions a:hover, .mcard-actions button:hover { background: var(--kal-field); border-radius: 14px; }
.mcard-actions i { width: 0.6px; height: 22px; background: var(--kal-line); }
/* 회원정보 수정 — 아바타 편집 */
.avatar-edit { text-align: center; }
.avatar-edit label { position: relative; display: inline-block; cursor: pointer; }
.avatar-edit img, .avatar-edit .avatar-ph {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    background: rgba(31, 58, 114, 0.08); display: inline-flex; align-items: center; justify-content: center;
}
.avatar-edit .avatar-ph .ms { color: var(--kal-navy); font-size: 44px; }
.avatar-edit .cam {
    position: absolute; right: -2px; bottom: 2px;
    width: 30px; height: 30px; border-radius: 50%; background: var(--kal-navy);
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.avatar-edit .cam .ms { color: #fff; font-size: 15px; }
.avatar-edit .hint { margin-top: 8px; }

/* 메뉴 카운트 배지（예약 내역） */
.count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 19px; height: 19px; padding: 0 5px; margin-left: 6px;
    border-radius: 9.5px; background: #E0342C; color: #fff;
    font-size: 11.5px; font-weight: 700; line-height: 1; vertical-align: 2px;
}
/* 회원 QR 팝업 */
.qr-modal {
    position: fixed; inset: 0; z-index: 60; background: rgba(9, 20, 40, 0.45);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qr-modal[hidden] { display: none; } /* display:flex 가 hidden 속성을 덮지 않도록 */
.qr-modal .sheet {
    background: #fff; border-radius: 20px; padding: 26px 28px 20px;
    text-align: center; box-shadow: 0 18px 48px rgba(9, 20, 40, 0.25);
}
.qr-modal .t { font-size: 17px; font-weight: 700; color: var(--kal-ink); }
.qr-modal .qr-box {
    width: 226px; height: 226px; margin: 16px auto 0;
    display: flex; align-items: center; justify-content: center;
}
.qr-modal .qr-box img, .qr-modal .qr-box canvas { width: 226px !important; height: 226px !important; }
.qr-modal .s { font-size: 12.5px; color: var(--kal-gray); margin-top: 12px; }
.menu-group { margin-top: 16px; border: 0.6px solid var(--kal-line); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.menu-group a, .menu-group .row {
    display: flex; align-items: center; gap: 12px; padding: 15px 18px;
    border-bottom: 0.6px solid var(--kal-line); font-size: 15px; font-weight: 500; background: #fff;
    width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.menu-group a:hover { background: var(--kal-field); }
.menu-group a:last-child, .menu-group .row:last-child { border-bottom: 0; }
.menu-group .ms.lead { color: var(--kal-navy); font-size: 21px; }
.menu-group .grow { flex: 1; }
.menu-group .arrow { color: #C7C7CC; font-size: 18px; }

/* 积分 */
.wallet-cards { display: flex; gap: 12px; padding-top: 20px; }
.wallet-cards div {
    flex: 1; padding: 18px 16px; border: 0.6px solid var(--kal-line);
    border-radius: var(--radius-card); background: #fff; box-shadow: var(--card-shadow);
}
.wallet-cards .v { font-size: 23px; font-weight: 800; color: var(--kal-navy); }
.wallet-cards .k { font-size: 12.5px; color: var(--kal-gray); margin-top: 2px; }
.point-list { max-width: 760px; margin: 0 auto; }
.point-log { display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 0.6px solid var(--kal-line); }
.point-log .info { flex: 1; min-width: 0; }
.point-log .t { font-size: 14.5px; font-weight: 600; }
.point-log .d { font-size: 12.5px; color: var(--kal-gray); margin-top: 2px; }
.point-log .amt { font-size: 15.5px; font-weight: 800; }
.point-log .amt.plus { color: var(--kal-blue); }
.point-log .amt.minus { color: var(--kal-red); }

/* 等级 */
.level-item {
    display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 14px auto 0; padding: 16px 18px;
    border: 0.6px solid var(--kal-line); border-radius: var(--radius-card); background: #fff;
}
.level-item.current { border-color: var(--kal-blue); box-shadow: 0 0 0 1px var(--kal-blue) inset; }
.level-item .dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.level-item .info { flex: 1; }
.level-item .name { font-size: 15.5px; font-weight: 700; }
.level-item .cond { font-size: 12.5px; color: var(--kal-gray); margin-top: 2px; }
.level-item .disc { font-size: 14.5px; font-weight: 800; color: var(--kal-navy); }

/* 优惠券（我的） */
.mycoupon {
    max-width: 760px; margin: 14px auto 0; border: 0.6px solid var(--kal-line);
    border-radius: var(--radius-card); background: #fff; box-shadow: var(--card-shadow); overflow: hidden;
}
.mycoupon .top { display: flex; gap: 12px; padding: 15px; align-items: center; }
.mycoupon img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #EDEDED; }
.mycoupon .info { flex: 1; min-width: 0; }
.mycoupon .cname { font-size: 15px; font-weight: 700; }
.mycoupon .pname { font-size: 13px; color: var(--kal-gray); margin-top: 2px; }
.mycoupon .period { font-size: 12px; color: var(--kal-gray); margin-top: 2px; }
.mycoupon .use-form { display: flex; gap: 8px; padding: 10px 15px 15px; border-top: 1px dashed var(--kal-line); }
.mycoupon .use-form input {
    flex: 1; max-width: 280px; border: 1px solid var(--kal-line); border-radius: 10px; background: var(--kal-field);
    padding: 9px 12px; font-size: 13.5px; outline: none; font-family: inherit;
}
.mycoupon .use-form button { border: 0; background: var(--kal-navy); color: #fff; border-radius: 10px; padding: 0 18px; font-size: 13px; font-weight: 700; }
.mycoupon.used { opacity: 0.55; }

/* 评价 */
.review-list { max-width: 760px; margin: 0 auto; }
.review-item { padding: 15px 4px; border-bottom: 0.6px solid var(--kal-line); }
.review-item .head { display: flex; align-items: center; gap: 8px; }
.review-item .name { font-size: 14px; font-weight: 700; }
.review-item .date { font-size: 12.5px; color: var(--kal-gray); margin-left: auto; }
.review-item .text { font-size: 14.5px; margin-top: 6px; line-height: 1.7; word-break: break-word; }
.review-item .of { font-size: 12.5px; color: var(--kal-blue); font-weight: 600; margin-top: 4px; display: inline-block; }

/* 菜单（推荐菜品） */
.menu-list { max-width: 760px; margin: 0 auto; }
.menu-item { display: flex; gap: 14px; padding: 15px 4px; border-bottom: 0.6px solid var(--kal-line); }
.menu-item img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: #EDEDED; flex: 0 0 92px; }
.menu-item .info { flex: 1; min-width: 0; }
.menu-item .name { font-size: 15.5px; font-weight: 700; }
.menu-item .about { font-size: 13px; color: var(--kal-gray); margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item .price { font-size: 14.5px; font-weight: 800; color: var(--kal-navy); margin-top: 5px; }

/* 地区选择 */
.region-group { padding-top: 6px; }
.region-group h4 { font-size: 13.5px; font-weight: 700; color: var(--kal-gray); padding: 16px 0 8px; }
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.region-list button {
    border: 1px solid var(--kal-line); background: #fff; border-radius: 12px;
    padding: 11px 4px; font-size: 13.5px; font-weight: 600; color: var(--kal-ink);
}
.region-list button:hover { background: var(--kal-field); }
.region-list button.active { background: var(--kal-navy); color: #fff; border-color: var(--kal-navy); }

/* 空状态 / 加载更多 */
.empty { padding: 80px 20px; text-align: center; color: var(--kal-gray); font-size: 14.5px; }
.empty .ms { font-size: 48px; color: var(--kal-line); display: block; margin: 0 auto 12px; }
.load-more { display: block; max-width: 320px; margin: 26px auto 0; text-align: center; }
.the-end { text-align: center; color: var(--kal-gray); font-size: 13px; padding: 26px 0; }

/* auth（居中卡） */
.auth-hero { padding: 48px 24px 10px; text-align: center; }
.auth-hero .logo { font-size: 32px; font-weight: 800; color: var(--kal-navy); letter-spacing: -0.5px; }
.auth-hero .slogan { font-size: 14px; color: var(--kal-gray); margin-top: 6px; }
.auth-links { display: flex; justify-content: center; gap: 16px; padding: 16px; font-size: 14px; color: var(--kal-blue); font-weight: 500; }
.form.auth { max-width: 420px; }

/* 별점 선택 (write review) */
.score-select { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; padding: 6px 0 2px; }
.score-select input { display: none; }
.score-select label { font-size: 36px; color: #D9DEE7; cursor: pointer; margin: 0; }
.score-select input:checked ~ label, .score-select label:hover, .score-select label:hover ~ label { color: var(--star); }

/* 评价页（详情下） */
.review-form-wrap { max-width: 760px; margin: 0 auto; }

/* ---- 右下角浮动按钮（맨 위로 / 실시간 문의） ---- */
.fab-stack {
    position: fixed; right: 26px; bottom: 30px; z-index: 120;
    display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.fab {
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--kal-line);
    background: #fff; color: var(--kal-navy);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(18, 58, 107, 0.16);
    transition: transform 0.15s, background 0.15s, opacity 0.2s, visibility 0.2s;
}
.fab:hover { transform: translateY(-2px); background: var(--kal-field); }
.fab .ms { font-size: 24px; }
.fab.primary { background: var(--kal-navy); border-color: var(--kal-navy); color: #fff; }
.fab.primary:hover { background: var(--kal-blue); }
#fabTop { opacity: 0; visibility: hidden; }
#fabTop.show { opacity: 1; visibility: visible; }

/* ---- 실시간 문의 패널 ---- */
.chat-panel {
    position: fixed; right: 26px; bottom: 96px; z-index: 130;
    width: 360px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 140px);
    background: #fff; border: 0.6px solid var(--kal-line); border-radius: 18px;
    box-shadow: 0 16px 48px rgba(18, 58, 107, 0.22);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: var(--kal-navy); color: #fff;
}
.chat-head .t { font-size: 15px; font-weight: 700; }
.chat-head .s { font-size: 11.5px; opacity: 0.75; margin-top: 1px; }
.chat-close { border: 0; background: none; color: #fff; opacity: 0.85; }
.chat-close:hover { opacity: 1; }
.chat-msgs {
    flex: 1; overflow-y: auto; padding: 14px;
    display: flex; flex-direction: column; gap: 8px; background: var(--kal-field);
}
.chat-msg { display: flex; }
.chat-msg .bubble {
    max-width: 78%; padding: 9px 13px; border-radius: 14px 14px 14px 4px;
    background: #fff; border: 0.6px solid var(--kal-line);
    font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-line;
}
.chat-msg.mine { justify-content: flex-end; }
.chat-msg.mine .bubble {
    background: var(--kal-navy); color: #fff; border-color: var(--kal-navy);
    border-radius: 14px 14px 4px 14px;
}
.chat-msg.sys { justify-content: center; }
.chat-msg.sys .bubble {
    background: none; border: 0; color: var(--kal-gray); font-size: 12px; max-width: 100%;
}
.chat-msg img { max-width: 72%; border-radius: 12px; }
.chat-input {
    display: flex; gap: 8px; padding: 10px 12px;
    border-top: 0.6px solid var(--kal-line); background: #fff;
}
.chat-input input {
    flex: 1; border: 1px solid var(--kal-line); border-radius: 20px;
    background: var(--kal-field); padding: 10px 15px; font-size: 14px;
    outline: none; font-family: inherit; color: var(--kal-ink);
}
.chat-input input:focus { border-color: var(--kal-blue); background: #fff; }
.chat-input button {
    width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%;
    background: var(--kal-navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.chat-input button:hover { background: var(--kal-blue); }
.chat-input button .ms { font-size: 19px; }

/* ---- 底部导航（仅移动端显示） ---- */
.bottom-nav { display: none; }

/* ==========================================================================
   响应式（≤900px：详情单栏；≤768px：移动端布局 + 底部 Tab）
   ========================================================================== */
@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .gallery img { height: 300px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .page { padding-bottom: 90px; }

    .site-header .gnb, .header-search { display: none; }
    .site-header .inner { gap: 8px; height: 54px; }
    .site-header .logo { font-size: 19px; }
    .hbtn { padding: 7px 11px; font-size: 13px; }

    .hero .hero-inner { padding: 30px 16px 28px; text-align: left; }
    .hero h2 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .hero .searchbox { margin: 16px 0 0; }
    .hero-keywords { justify-content: flex-start; }
    .hero .deco-ic.i1, .hero .deco-ic.i3, .hero .deco-ic.i5 { display: none; }
    .hero .blob.b1 { width: 300px; height: 300px; right: -120px; top: -150px; }

    .category-strip { gap: 6px; }
    .category-strip a { width: 72px; font-size: 12px; }
    .category-strip .squircle { width: 52px; height: 52px; border-radius: 17px; }

    .banner-scroll a { flex: 0 0 86%; }

    .section-title { padding: 20px 0 12px; }
    .section-title h3 { font-size: 18px; }
    .product-grid { grid-template-columns: 1fr; gap: 14px; }
    .items-grid { grid-template-columns: 1fr; }

    .page-head { padding: 14px 0 4px; }
    .page-head h1 { font-size: 18px; }

    .gallery img { height: 240px; }
    .detail-card { padding: 18px; }
    .detail-card h2 { font-size: 21px; }
    .quick-actions { justify-content: space-around; gap: 8px; }

    .feed-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .site-footer { padding-bottom: 100px; }

    .fab-stack { right: 14px; bottom: 84px; }
    .fab { width: 46px; height: 46px; }
    .chat-panel { right: 14px; bottom: 144px; height: 440px; }

    .bottom-nav {
        position: fixed; bottom: 0; left: 0; right: 0; height: 62px; z-index: 100;
        background: #fff; border-top: 0.6px solid var(--kal-line);
        display: flex; padding-bottom: env(safe-area-inset-bottom);
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--kal-gray);
    }
    .bottom-nav a.active { color: var(--kal-navy); }
    .bottom-nav a .ms { font-size: 24px; }
}
