@charset "utf-8";

/* 그누보드 기본 레이아웃 숨김/초기화 */
body {
    background: #fff;
}

#wrapper,
#container,
#container_wr {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#aside,
#ft,
#hd_pop,
#tnb,
#hd_wrapper,
#gnb,
#hd_sch {
    display: none !important;
}

/* 메인 기본 */
.wookle-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 20px 14px 90px;
    background: #fff;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.wookle-main * {
    box-sizing: border-box;
}

.wookle-main a {
    color: inherit;
    text-decoration: none;
}

.wookle-main ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wookle-main button,
.wookle-main input {
    font: inherit;
}

.wookle-main button {
    border: 0;
    background: none;
    cursor: pointer;
}

/* 로고 + 검색 */
.wookle-hero {
    padding-top: 0;
}

.wookle-logo {
    margin-bottom: 18px;
}

.wookle-logo img {
    display: block;
    width: 95px;
    height: auto;
}

.wookle-search {
    width: 100%;
}

.wookle-search input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #aaa;
    border-radius: 999px;
    background: #f8f8f8;
    color: #222;
    font-size: 15px;
    text-align: center;
    outline: none;
}

.wookle-search input::placeholder {
    color: #222;
}

.wookle-search input:focus {
    border-color: #333;
    background: #fff;
}

/* 메인 지역/연령 버튼 */
.wookle-filter {
    max-width: 430px;
    margin: 32px auto 0;
    border: 1px solid #aaa;
    background: #fff;
}

.filter-open-btn {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    text-align: left;
    font-size: 15px;
    color: #222;
    background: #fff;
}

.filter-open-btn + .filter-open-btn {
    border-top: 1px solid #aaa;
}

/* 공통 레이어 */
.wookle-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
}

.wookle-layer.is-open {
    display: block;
}

.layer-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

/* 지역 선택 박스 */
.region-box {
    position: absolute;
    left: 50%;
    top: 64px;
    width: 280px;
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.region-head {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-head strong {
    font-size: 13px;
    font-weight: 700;
}

.layer-close-btn {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: #222;
}

/* 현재 위치 */
.location-row {
    display: grid;
    grid-template-columns: 1fr 70px;
    gap: 8px;
    padding: 0 16px 12px;
}

.location-row button {
    height: 30px;
    border-radius: 4px;
    background: #eee;
    color: #777;
    font-size: 12px;
    text-align: center;
}

.location-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 4px;
    background: #eee;
    color: #222;
    font-size: 12px;
    text-align: center;
    word-break: keep-all;
}

/* 시/도 탭 */
.region-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 16px 8px;
    white-space: nowrap;
}

.region-tabs::-webkit-scrollbar {
    display: none;
}

.region-tab {
    flex: 0 0 auto;
    padding: 0 0 5px;
    color: #222;
    font-size: 12px;
}

.region-tab.active {
    font-weight: 700;
    border-bottom: 2px solid #222;
}

/* 구/동 2단 목록 */
.region-select-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 256px;
    overflow: hidden;
    border-top: 1px solid #e5e5e5;
}

.region-list {
    max-height: 256px;
    overflow-y: auto;
    background: #fff;
}

.region-list-left {
    border-right: 1px solid #e5e5e5;
}

.region-option,
.dong-option {
    display: block;
    width: 100%;
    height: 28px;
    padding: 0 12px;
    color: #222;
    font-size: 12px;
    text-align: left;
    background: #fff;
}

.region-option.active,
.dong-option.active {
    background: #cfcfcf;
    font-weight: 700;
}

.region-apply-btn {
    display: block;
    width: 100%;
    height: 34px;
    background: #cfcfcf;
    color: #222;
    font-size: 12px;
    text-align: center;
}

.loading-text {
    margin: 0;
    padding: 20px 8px;
    color: #777;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

/* 연령 선택 */
.age-box {
    position: absolute;
    left: 50%;
    top: 410px;
    width: 280px;
    transform: translateX(-50%);
    background: transparent;
    color: #222;
    box-shadow: none;
}

.age-guide {
    width: 100%;
    padding: 14px 16px;
    background: #fff;
}

.age-guide p {
    margin: 0;
    color: #222;
    font-size: 12px;
    line-height: 2.1;
}

.age-list {
    width: 220px;
    margin: 0 0 0 16px;
    background: #e5e5e5;
}

.age-list li {
    margin: 0;
    padding: 0;
}

.age-option {
    display: block;
    width: 100%;
    height: 31px;
    padding: 0 12px;
    color: #222;
    font-size: 12px;
    text-align: left;
}

.age-option.active,
.age-option:hover {
    background: #cfcfcf;
    font-weight: 700;
}

/* 카테고리 */
.wookle-category {
    margin-top: 26px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 18px;
}

.category-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: #222;
}

.category-grid button.active {
    border-color: #555;
    background: #555;
    color: #fff;
}

/* 더보기 */
.more-content {
    display: none;
    margin-top: 14px;
}

.more-content.is-open {
    display: block;
}

.more-btn {
    display: block;
    margin: 18px 0 0 auto;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.more-btn.center {
    margin-left: auto;
    margin-right: auto;
}

/* 브랜드 */
.wookle-brand {
    margin-top: 42px;
}

.wookle-brand h2,
.wookle-section h2,
.wookle-proud h2,
.wookle-popular h2 {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 22px;
    align-items: center;
}

.brand-grid li {
    min-height: 26px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* 이벤트 */
.event-banner {
    margin: 42px -14px 0;
    padding: 32px 14px;
    background: #d9d9d9;
    text-align: center;
}

.event-banner h2 {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 500;
}

.event-banner p {
    margin: 0;
    font-size: 16px;
}

/* 내가 찜한 클래스 */
.wookle-section {
    margin-top: 34px;
}

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.placeholder-card {
    flex: 0 0 150px;
    height: 140px;
    background: #d9d9d9;
}

/* 자랑하기 */
.wookle-proud {
    margin-top: 42px;
}

.gray-banner {
    margin: 0 -14px;
    padding: 34px 14px;
    background: #d9d9d9;
    text-align: center;
}

.gray-banner strong {
    display: block;
    margin-bottom: 8px;
    font-size: 23px;
    font-weight: 500;
}

.gray-banner p {
    margin: 0;
    font-size: 15px;
}

/* 인기 클래스 */
.wookle-popular {
    margin-top: 42px;
}

.popular-tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    margin-bottom: 22px;
    white-space: nowrap;
}

.popular-tabs::-webkit-scrollbar {
    display: none;
}

.popular-tabs button {
    flex: 0 0 auto;
    padding: 0;
    font-size: 15px;
    color: #222;
}

.popular-tabs button.active {
    font-weight: 700;
}

.class-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
}

.class-card a {
    display: block;
}

.class-thumb {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    margin-bottom: 8px;
    background: #d9d9d9;
}

.class-badge {
    display: inline-block;
    margin-bottom: 4px;
    padding: 1px 4px;
    background: #e5e5e5;
    color: #555;
    font-size: 12px;
}

.class-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.class-card p {
    margin: 0 0 4px;
    color: #555;
    font-size: 13px;
}

.class-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    font-size: 13px;
}

.class-bottom strong {
    color: #111;
    font-weight: 500;
}

/* 페이지 */
.simple-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 30px;
    font-size: 16px;
}

.simple-paging button {
    color: #222;
}

/* 하단 메뉴 */
.wookle-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 430px;
    height: 64px;
    transform: translateX(-50%);
    border-top: 1px solid #ccc;
    background: #d9d9d9;
}

.wookle-bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    text-decoration: none;
    font-size: 15px;
}

.wookle-bottom-nav a.active {
    font-weight: 700;
}

/* PC에서 가운데 모바일 화면처럼 보이게 */
@media (min-width: 768px) {
    .wookle-main {
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
}