/* BASIC css start */
/* 나랑노랑 브랜드 컬러 */
:root {
    --narang-yellow: #FFD93D;
    --narang-dark: #181711;
    --narang-cream: #FFFDF7;
    --narang-light: #FFF8E7;
}

/* ========================================
   헤더 기본 스타일
   ======================================== */
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header.sticky .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   로고 스타일
   ======================================== */
.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 32px;
    width: auto;
}

/* ========================================
   PC 네비게이션
   ======================================== */
.header-nav {
    display: none;
}

/* ========================================
   헤더 아이콘/버튼
   ======================================== */
.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons img {
    width: 24px;
    height: 24px;
}

.header-icons .basket {
    position: relative;
}

.header-icons .basket .notification {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--narang-yellow);
    color: var(--narang-dark);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons .btn-text {
    display: none;
    color: var(--narang-dark);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.header-icons .btn-signup {
    display: none;
    background: var(--narang-yellow);
    color: var(--narang-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none;
    margin-left: 8px;
}

.header-icons .btn-signup:hover {
    background: #FFCE00;
}

/* ========================================
   사이드 메뉴
   ======================================== */
.side-menu-wrap {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--narang-cream);
    z-index: 101;
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.side-menu-wrap.active {
    right: 0;
}

/* 메뉴 헤더 */
.side-menu-wrap .menu-header {
    background: var(--narang-yellow);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.side-menu-wrap .side-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: none;
    background: url('//skin.makeshop.co.kr/skin/rw_shop/images/icons/ico_x.svg') no-repeat center center;
    background-size: 20px 20px;
    cursor: pointer;
}

.side-menu-wrap .menu-util {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.side-menu-wrap .menu-util a {
    color: var(--narang-dark);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.side-menu-wrap .menu-search {
    display: flex;
    gap: 8px;
}

.side-menu-wrap .menu-search input,
.side-menu-wrap .menu-search .search-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.side-menu-wrap .menu-search .search-btn {
    padding: 0 16px;
    height: 40px;
    background: var(--narang-dark);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 메인 네비게이션 (사이드 메뉴) */
.side-menu-list .main-nav {
    padding: 16px;
}

.side-menu-list .main-nav li {
    margin-bottom: 8px;
}

.side-menu-list .main-nav li:last-child {
    margin-bottom: 0;
}

.side-menu-list .main-nav li a {
    display: block;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    color: var(--narang-dark);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.side-menu-list .main-nav li a:hover {
    background: var(--narang-light);
}

/* 카테고리 */
.side-menu-list .category {
    padding: 0 16px 16px;
}

.side-menu-list .category > li {
    background: white;
    margin-bottom: 4px;
    border-radius: 8px;
    overflow: hidden;
}

.side-menu-list .category > li > a {
    display: block;
    padding: 14px 16px;
    color: var(--narang-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.side-menu-list .category .has-sub {
    position: relative;
}

.side-menu-list .category .has-sub > a {
    padding-right: 40px;
}

.side-menu-list .category .ico-toggle {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-list .category .ico-toggle::before {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--narang-dark);
}

.side-menu-list .category .has-sub.open .ico-toggle::before {
    content: '-';
}

.side-menu-list .category .submenu {
    display: none;
    background: var(--narang-light);
    padding: 8px 0;
}

.side-menu-list .category .submenu.active {
    display: block;
}

.side-menu-list .category .submenu li a {
    display: block;
    padding: 10px 16px 10px 32px;
    color: var(--narang-dark);
    font-size: 13px;
    text-decoration: none;
}

.side-menu-list .category .submenu li a:hover {
    color: var(--narang-yellow);
}

/* 오버레이 */
.side-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 100;
}

.side-overlay.active {
    display: block;
}

/* ========================================
   모바일 서브페이지 헤더
   ======================================== */
.header-container--md {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    background: white;
    border-bottom: 1px solid #eee;
}

.header-container--md .back-btn {
    width: 24px;
    height: 24px;
}

.header-container--md .back-btn img {
    width: 100%;
    height: 100%;
}

.header-container--md .navi-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--narang-dark);
}

.header-container--md .navi-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-container--md .navi-btns a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container--md .navi-btns img {
    width: 24px;
    height: 24px;
}

.header-container--md .navi-btns .notification {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--narang-yellow);
    color: var(--narang-dark);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   플로팅 버튼
   ======================================== */
.floating-wrap {
    position: fixed;
    bottom: 80px;
    right: 16px;
    display: flex;
    flex-direction: column;
    z-index: 99;
}

.floating-btns {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.floating-btns.toggle-show.show {
    opacity: 1;
    visibility: visible;
}

.floating-btns .floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.floating-btns .btn-go-top {
    background: var(--narang-yellow) url('//skin.makeshop.co.kr/skin/rw_shop/images/icons/ico_arrow_expand.svg') no-repeat center center;
    background-size: 16px 16px;
}

/* ========================================
   하단 고정 메뉴 (모바일)
   ======================================== */
.fixed-menu--md {
    display: none;
}

/* ========================================
   미디어 쿼리 - 모바일 (767px 이하)
   ======================================== */
@media (max-width: 767px) {
    .fixed-menu--md {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .fixed-menu--md .navi-btns {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
    }

    .fixed-menu--md .navi-btns a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
    }

    .fixed-menu--md .navi-btns img {
        width: 24px;
        height: 24px;
    }

    .fixed-menu--md .navi-btns p {
        font-size: 10px;
        color: var(--narang-dark);
    }

    .floating-wrap {
        bottom: 80px;
    }

    /* body 하단 패딩 추가 */
    body {
        padding-bottom: 60px;
    }
}

/* ========================================
   미디어 쿼리 - PC (768px 이상)
   ======================================== */
@media (min-width: 768px) {
    header.sticky {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1760px;
        padding: 30px 20px 0;
        box-sizing: border-box;
    }

    header.sticky .header-container {
        padding: 0 40px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    /* 스크롤 시 헤더 스타일 */
    header.sticky.scrolled {
        padding-top: 10px;
    }

    header.sticky.scrolled .header-container {
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    /* PC 네비게이션 표시 */
    .header-nav {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-nav a {
        color: var(--narang-dark);
        font-weight: 600;
        font-size: 15px;
        padding: 8px 16px;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .header-nav a:hover {
        color: var(--narang-yellow);
    }

    /* 로그인/회원가입 버튼 표시 */
    .header-icons .btn-text,
    .header-icons .btn-signup {
        display: inline-flex;
    }

    /* 메뉴 토글 버튼 숨김 */
    .header-icons .menu-toggle {
        display: none;
    }

    /* 모바일 전용 헤더 숨김 */
    .header-container--md {
        display: none !important;
    }
}

/* ========================================
   유틸리티 클래스
   ======================================== */
.no-scroll {
    overflow: hidden !important;
}

/* BASIC css end */

