/* === 폰트 및 기본 설정 적용 === */
body {
    /* 원본 사이트 폰트 적용 */
    font-family: 'Noto Sans KR', 'Roboto', "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* 기본 레이아웃 및 초기화 */
#header .head {
    position: relative;
    width: 100%;
    height: 100px;
    background: #fff;
}

/* === 검색창 Wrapper === */
#header .search_wrap {
    position: absolute !important;
    left: 48% !important;
    transform: translateX(-50%) !important;
    top: 20px !important; /* 데모용 위치 조정 */
    width: 580px !important;
    height: 52px !important;
    box-sizing: border-box !important;
    z-index: 20000 !important;
}

#header .search_wrap fieldset,
#header .search_wrap .write_area {
    background: none !important; border: none !important;
    padding: 0 !important; margin: 0 !important;
    box-shadow: none !important;
    position: relative;
}

/* === 검색창 Input 스타일 === */
#header .search_wrap input[type="text"] {
    width: 100% !important;
    height: 52px !important;
    line-height: 52px !important;
    padding: 0 60px 0 25px !important;
    
    border: 2px solid #060606 !important;
    border-radius: 26px !important;
    
    /* 인풋 내 폰트도 강제 적용 */
    font-family: 'Noto Sans KR', 'Roboto', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #333 !important;
    background-color: #fff !important;
    background-image: none !important;
    
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 99999 !important;
    outline: none !important;
}

#header .search_wrap.active input[type="text"] {
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 1px solid #fff !important;
}

/* === 돋보기 아이콘 === */
#header .search_wrap .btn_search {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    width: 24px !important; height: 24px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 20px 20px !important;
    text-indent: -9999px !important;
    z-index: 100000 !important;
    border: none !important; cursor: pointer !important;
    margin: 0 !important; padding: 0 !important;
}

/* === 드롭다운 박스 === */
#custom-search-dropdown {
    display: none;
    position: absolute !important;
    top: 50px !important; left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    border: 2px solid #060606 !important;
    border-top: none !important; 
    border-radius: 0 0 26px 26px !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    z-index: 99998 !important;
    box-sizing: border-box !important;
    padding-top: 20px !important;
    overflow: hidden !important;
    /* 드롭다운 내 폰트 강제 적용 */
    font-family: 'Noto Sans KR', 'Roboto', sans-serif !important;
}

.custom-section { padding: 10px 25px 15px !important; }
.custom-section h3 {
    font-size: 14px !important; font-weight: bold !important; color: #000 !important;
    margin: 0 0 12px 0 !important; display: block !important;
    
}
.custom-section h3.event-title { color: #005eff !important; margin-top: 10px !important; }

.recent-tags span {
    display: inline-block; padding: 6px 14px; margin: 0 6px 6px 0;
    background: #fff; border: 1px solid #ddd; border-radius: 20px;
    font-size: 13px; color: #555; cursor: pointer;
}
.recent-tags span:hover { background: #f5f5f5; }

.popular-list { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none !important; }
.popular-list li { width: 50%; margin-bottom: 10px; font-size: 14px; color: #333; }
.popular-list li em { color: #000000; font-weight: bold; margin-right: 8px; font-style: normal; }

.product-list { padding: 0 !important; margin: 0 !important; list-style: none !important; }
.product-list li {
    display: flex; align-items: center; padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.product-list li:hover { background-color: #fafafa; }
.thumb-box {
    width: 56px; height: 56px; border: 1px solid #eee; border-radius: 6px;
    margin-right: 15px; background: #f4f4f4; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.thumb-box img { width: 100%; height: 100%; object-fit: contain; }
.product-list .p-info { flex: 1; }
.product-list .p-info p { margin: 0 0 4px 0; font-size: 14px; color: #333; font-weight: 500; }
.product-list .p-info strong { color: #d00; font-size: 16px; font-weight: bold; }

.event-banner-wrap { display: flex; gap: 10px; margin-top: 10px; }
.event-banner-wrap a {
    flex: 1; display: block; height: auto;  border-radius: 8px;
    overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background: #eee; 
}

.dropdown-footer {
    background: #f9f9f9; padding: 10px 20px; display: flex;
    justify-content: space-between; align-items: center; border-top: 1px solid #eee;
}
.toggle-save { font-size: 12px; color: #888; display: flex; align-items: center; gap: 5px; }
/* 기본 상태: 비활성화 (Off) */
.toggle-btn { 
    width: 30px; 
    height: 16px; 
    background: #ccc; /* 꺼졌을 때 회색 */
    border-radius: 10px; 
    position: relative; 
    cursor: pointer;
    transition: background 0.3s; /* 부드러운 색상 전환 */
}

.toggle-btn::after { 
    content:''; 
    position:absolute; 
    top:2px; 
    left:2px; /* 꺼졌을 때 왼쪽 위치 */
    width:12px; 
    height:12px; 
    background:#fff; 
    border-radius:50%; 
    transition: left 0.3s; /* 부드러운 버튼 이동 */
}

/* 활성화 상태: .active 클래스가 붙었을 때 (On) */
.toggle-btn.active { 
    background: #005eff; /* 켜졌을 때 파란색 */
}

.toggle-btn.active::after { 
    left: 16px; /* 켜졌을 때 오른쪽으로 이동 */
}
.dropdown-footer button { background: none; border: none; font-size: 13px; color: #888; cursor: pointer; }