/* =====================================================
   고래에어컨 공통 CSS
   위치: theme/mango/css/gorae.css
   ===================================================== */
:root {
    --gr-blue      : #0B5FA5;
    --gr-blue-dark : #084a82;
    --gr-cyan      : #13B0CE;
    --gr-ink       : #1a2a3a;
    --gr-muted     : #7a8fa0;
    --gr-line      : #e4edf5;
    --gr-bg        : #f0f6ff;
    --gr-card      : #fff;
    --gr-radius    : 14px;
    --gr-shadow    : 0 2px 12px rgba(11,95,165,.08);
    --gr-header-h  : 56px;
    --gr-nav-h     : 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body.gr-body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gr-bg);
    color: var(--gr-ink);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── 헤더 ── */
#gr-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--gr-blue);
    height: var(--gr-header-h);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.gr-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; padding: 0 16px;
    max-width: 720px; margin: 0 auto;
}
.gr-logo {
    display: flex; align-items: center; gap: 6px;
    font-size: 18px; font-weight: 800; color: #fff;
}
.gr-logo-whale { font-size: 22px; }
.gr-logo-text  { letter-spacing: -.02em; }
.gr-header-btns { display: flex; align-items: center; gap: 6px; }
.gr-btn {
    padding: 6px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; transition: opacity .15s; white-space: nowrap;
}
.gr-btn:active { opacity: .75; }
.gr-btn-admin  { background: rgba(255,255,255,.2); color: #fff; }
.gr-btn-order  { background: rgba(19,176,206,.3);  color: #fff; }
.gr-btn-out    { background: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
.gr-btn-login  { background: #fff; color: var(--gr-blue); font-weight: 700; }

/* ── wrapper / container ── */
#wrapper   { min-height: calc(100vh - var(--gr-header-h)); }
#container { max-width: 720px; margin: 0 auto; }

/* ── 하단 네비 ── */
#gr-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-top: 1px solid var(--gr-line);
    height: var(--gr-nav-h);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.gr-nav-inner {
    display: flex; align-items: stretch;
    height: 100%; max-width: 720px; margin: 0 auto;
}
.gr-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; font-size: 11px; color: var(--gr-muted);
    font-weight: 600; text-decoration: none; transition: color .15s;
}
.gr-nav-item.active { color: var(--gr-blue); }
.gr-nav-icon { font-size: 20px; line-height: 1; }

/* ── 푸터 ── */
#gr-footer {
    padding: 24px 16px 100px;
    text-align: center; border-top: 1px solid var(--gr-line);
    background: #fff; margin-top: 20px;
}
.gr-footer-links {
    display: flex; justify-content: center; gap: 16px; margin-bottom: 8px;
}
.gr-footer-links a { font-size: 12px; color: var(--gr-muted); text-decoration: underline; }
.gr-footer-copy { font-size: 12px; color: #bbb; }

/* ── 공통 유틸 ── */
.sound_only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

/* ── 바텀시트 ── */
.gr-bs-overlay {
    display: none; position: fixed; inset: 0; z-index: 250;
    background: rgba(0,0,0,.45);
}
.gr-bs-overlay.on { display: flex; align-items: flex-end; }
.gr-bs {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 720px; margin: 0 auto;
    padding: 20px 20px calc(40px + env(safe-area-inset-bottom));
    max-height: 90vh; overflow-y: auto;
}
/* 하단 네비가 있는 로그인 상태(관리자/판매자)에서는 시트가 네비 위로 오도록 */
.gr-is-seller .gr-bs-overlay,
.gr-is-admin  .gr-bs-overlay { bottom: var(--gr-nav-h); }
.gr-bs-handle {
    width: 36px; height: 4px; border-radius: 2px;
    background: #ddd; margin: 0 auto 18px;
}
.gr-bs-title { font-size: 17px; font-weight: 700; color: var(--gr-ink); margin-bottom: 18px; }

/* ── 폼 ── */
.gr-form-group { margin-bottom: 14px; }
.gr-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--gr-muted); margin-bottom: 6px;
}
.gr-form-group input,
.gr-form-group select,
.gr-form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--gr-line); border-radius: 10px;
    font-size: 15px; font-family: inherit; color: var(--gr-ink);
    background: #fff; outline: none; transition: border-color .15s;
}
.gr-form-group input:focus,
.gr-form-group select:focus,
.gr-form-group textarea:focus { border-color: var(--gr-blue); }

/* ── 버튼 ── */
.gr-btn-primary {
    display: block; width: 100%; padding: 15px;
    background: var(--gr-blue); color: #fff;
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; font-family: inherit;
    cursor: pointer; text-align: center; transition: background .15s;
}
.gr-btn-primary:active { background: var(--gr-blue-dark); }

.gr-btn-toss {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; padding: 15px;
    background: #0064FF; color: #fff;
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.gr-btn-toss:active { background: #0052d6; }
.gr-toss-logo {
    font-size: 12px; font-weight: 800;
    background: rgba(255,255,255,.25); padding: 2px 8px; border-radius: 4px;
}
.gr-btn-secondary {
    display: block; width: 100%; padding: 13px;
    background: #fff; color: var(--gr-muted);
    border: 1.5px solid var(--gr-line); border-radius: 12px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; text-align: center; margin-top: 8px;
}

/* ── 가격 박스 ── */
.gr-price-box {
    background: #f0f6ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.gr-price-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; padding: 4px 0;
}
.gr-price-row .lbl { color: var(--gr-muted); }
.gr-price-row .val { color: var(--gr-ink); font-weight: 600; }
.gr-price-row.total .lbl { font-size: 15px; font-weight: 700; color: var(--gr-ink); }
.gr-price-row.total .val { font-size: 20px; font-weight: 800; color: var(--gr-blue); }
.gr-price-divider { border: none; border-top: 1px solid var(--gr-line); margin: 8px 0; }

/* ── 스텝 탭 ── */
.gr-step-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.gr-step-tab {
    padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--gr-line); color: var(--gr-muted);
    cursor: pointer; background: #fff; transition: .15s;
}
.gr-step-tab.on { background: var(--gr-blue); border-color: var(--gr-blue); color: #fff; }

/* ── 슬라이더 ── */
.gr-slider-wrap { position: relative; overflow: hidden; background: #ddeaf8; }
.gr-slider-track { display: flex; transition: transform .3s ease; will-change: transform; }
.gr-slide {
    min-width: 100%; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ddeaf8, #c3d9ee); overflow: hidden;
}
.gr-slide img { width: 100%; height: 100%; object-fit: cover; }
.gr-slide-noimg { font-size: 64px; }
.gr-slider-counter {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,.4); color: #fff;
    font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.gr-slider-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px;
}
.gr-slider-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.5); transition: all .2s;
}
.gr-slider-dot.on { background: #fff; width: 18px; border-radius: 3px; }
.gr-slider-arr {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.25); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.gr-slider-arr-l { left: 10px; }
.gr-slider-arr-r { right: 10px; }
