/* =====================================================
   뷰티판다 사용가이드 공통 스타일
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.container { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 60px; }

/* 헤더 */
.g-header {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.g-title { font-size: 20px; font-weight: 700; }
.g-back {
    position: absolute; left: 12px;
    background: none; border: none;
    font-size: 22px; color: #333; cursor: pointer; padding: 8px;
}

/* 검색 */
.g-search-wrap { padding: 16px 20px 8px; }
.g-search {
    position: relative;
    background: #f4f4f7; border-radius: 24px;
    display: flex; align-items: center;
    padding: 0 18px; height: 46px;
}
.g-search i { color: #8b7ec8; font-size: 16px; margin-right: 10px; }
.g-search input {
    flex: 1; border: none; background: none; outline: none;
    font-size: 15px; font-family: inherit; color: #333;
}

/* 카테고리 아코디언 */
.g-cate { border-bottom: 1px solid #f0f0f0; }
.g-cate-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; cursor: pointer;
}
.g-cate-name { font-size: 17px; font-weight: 600; }
.g-cate-head i { color: #bbb; font-size: 15px; transition: transform .2s; }
.g-cate.open .g-cate-head i { transform: rotate(180deg); }

.g-cate-body { display: none; background: #f7f7fa; padding: 6px 20px 14px; }
.g-cate.open .g-cate-body { display: block; }

.g-link {
    display: block; padding: 10px 0;
    font-size: 15px; color: #777; text-decoration: none;
}
.g-link:hover { color: #472E8F; }

.g-empty { padding: 60px 20px; text-align: center; color: #aaa; font-size: 15px; }

/* ===== 상세 페이지 ===== */
.g-tabs { display: flex; border-bottom: 1px solid #eee; }
.g-tab {
    flex: 1; text-align: center; padding: 14px 8px;
    font-size: 16px; font-weight: 600; color: #bbb;
    cursor: pointer; border-bottom: 2px solid transparent;
}
.g-tab.on { color: #472E8F; border-bottom-color: #472E8F; }

.g-pane { display: none; padding: 20px 20px 40px; }
.g-pane.on { display: block; }

.g-notice {
    text-align: center; font-size: 14px; color: #472E8F;
    line-height: 1.8; margin-bottom: 26px;
}

.g-sub {
    text-align: center; font-size: 16px; font-weight: 600;
    margin: 30px 0 18px;
}

/* STEP */
.g-step { margin-bottom: 26px; }
.g-step-no {
    display: inline-block;
    background: #f0ecfa; color: #472E8F;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    margin-bottom: 10px;
}
.g-step-text { font-size: 15px; margin-bottom: 12px; }
.g-step-text em { color: #472E8F; font-style: normal; font-weight: 600; }

/* UI 모형 */
.g-ui {
    background: #f7f7fa; border-radius: 12px;
    padding: 16px; font-size: 14px;
}
.g-ui-title { font-size: 13px; color: #999; margin-bottom: 8px; }

.g-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #ececf2; border-radius: 8px;
    padding: 12px 14px; margin-bottom: 8px;
}
.g-row:last-child { margin-bottom: 0; }
.g-row.on { border-color: #472E8F; box-shadow: 0 0 0 1px #472E8F inset; }
.g-row .arw { color: #ccc; font-size: 13px; }

/* 하단 탭바 모형 */
.g-tabbar {
    display: flex; background: #fff;
    border: 1px solid #ececf2; border-radius: 10px;
    margin-top: 10px; overflow: hidden;
}
.g-tabbar div {
    flex: 1; text-align: center; padding: 10px 4px;
    font-size: 11px; color: #999;
}
.g-tabbar div i { display: block; font-size: 15px; margin-bottom: 3px; }
.g-tabbar div.on { color: #472E8F; font-weight: 600; }
.g-tabbar div.on i { color: #472E8F; }

/* 버튼 모형 */
.g-btn {
    display: block; width: 100%; text-align: center;
    background: #472E8F; color: #fff;
    border-radius: 24px; padding: 12px;
    font-size: 15px; font-weight: 600; margin-top: 10px;
}
.g-btn.line {
    background: #fff; color: #472E8F;
    border: 1px solid #472E8F;
}
.g-btn.text {
    background: none; color: #888;
    text-decoration: underline; font-weight: 400;
}

/* 표 */
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.g-table th, .g-table td {
    border: 1px solid #ececf2; padding: 10px 12px; text-align: left;
}
.g-table th { background: #f7f7fa; font-weight: 600; width: 34%; color: #555; }

.g-tip {
    background: #fff8e6; border-radius: 10px;
    padding: 14px 16px; font-size: 14px; color: #8a6d1f;
    line-height: 1.7; margin-top: 14px;
}
