/* Nsmall Theme Custom CSS */

/* 1. Global & Reset */
html, body {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #f5f6fa;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-tap-highlight-color: transparent;
}

h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 20px 0;
}

/* 2. Layout - 반응형 오버라이드 */
#hd, #wrapper, #ft {
    min-width: auto !important; /* 기본 1200px 고정 너비 제거 */
    width: 100% !important;
}

#wrapper {
    width: 100% !important;
    background: #f6f6f6 !important;
}

/* 헤더 관련 요소들 반응형 오버라이드 */
#hd_wrapper, #tnb .inner, #gnb .gnb_wrap, #ft_wr {
    width: 100% !important; /* 기본 1200px 고정 너비 제거 */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

#hd_menu {
    width: 100% !important; /* 기본 1200px 고정 너비 제거 */
    max-width: 1280px;
    margin: 0 auto;
}

#container_wr {
    max-width: 1280px;
    margin: 0 auto;
    width: 100% !important; /* 기본 1200px 고정 너비 제거 */
    padding: 0 20px;
}

#container {
    width: 100% !important; /* 기본 1200px 고정 너비 제거 */
    max-width: 1240px; /* 패딩 고려한 최대 너비 */
    margin: 0 auto !important;
    position: relative;
}

.ns-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.ns-section {
    margin-bottom: 50px;
}


/* 3. Header (PC) - ns-header-pc */
#hd_login_msg { display: none; } /* Hide default login message */

.ns-header-wrap {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 80px;
    min-height: 80px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    transition: height 0.3s ease;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ns-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
    padding: 10px 15px 10px 0;
    min-height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    align-self: center;
}

/* 모바일 메뉴 기본 스타일 */
.ns-mobile-menu {
    position: fixed !important; /* absolute에서 fixed로 변경 */
    top: 60px !important; /* 헤더 높이만큼 아래로 */
    right: 10px !important;
    width: 280px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999 !important; /* z-index 대폭 증가 */
}

.ns-mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ns-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ns-mobile-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.ns-mobile-menu li:last-child {
    border-bottom: none;
}

.ns-mobile-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    min-height: 44px;
    transition: background-color 0.2s;
}

.ns-mobile-menu a:hover {
    background-color: #f8f9fa;
}

.ns-mobile-menu i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #666;
}

.ns-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    height: 100%;
}

/* 로고 스타일 - 이미지와 텍스트 모두 지원 */
.ns-logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    height: 100%;
}

/* 이미지 로고 스타일 */
.ns-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: height 0.3s ease;
    display: block;
}

/* 텍스트 로고 스타일 (믿음실버복지) */
.ns-logo-text {
    font-size: 1.8em;
    font-weight: 900;
    color: #333;
    transition: font-size 0.3s ease;
}

.ns-logo-text .logo-main {
    color: #0052cc;
}

.ns-logo-text .logo-sub {
    color: #e60012;
}

.ns-search-form {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 40px;
    display: flex !important;
    align-items: center !important;
    flex: 1;
    flex-shrink: 1;
}

.ns-search-input {
    width: 100%;
    height: 44px;
    border: 2px solid #333;
    border-radius: 30px;
    padding: 0 50px 0 20px;
    font-size: 1.1em;
    transition: height 0.3s ease;
    box-sizing: border-box;
}

.ns-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4em;
    color: #333;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.ns-user-menu {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Scrolled State */
.ns-header-wrap.scrolled .ns-header-inner {
    height: 60px;
}

.ns-header-wrap.scrolled .ns-menu-btn {
    display: block;
}

.ns-header-wrap.scrolled .ns-logo img {
    height: 40px;
}

.ns-header-wrap.scrolled .ns-logo-text {
    font-size: 1.5em;
}

.ns-header-wrap.scrolled .ns-search-input {
    height: 40px;
}


/* 4. Main Banner */
.ns-main-banner {
    margin: 30px 0;
}

.ns-main-banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 5. Category Navigation */
.ns-category-nav {
    margin-bottom: 50px;
}

.ns-category-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ns-category-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding: 10px;
    min-height: 44px;
    justify-content: center;
    transition: all 0.2s ease;
}

.ns-category-nav li a:hover,
.ns-category-nav li a:active {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.ns-cat-icon {
    font-size: 2em;
    color: #0052cc;
    transition: color 0.2s;
}

.ns-category-nav li a:hover .ns-cat-icon {
    color: #e60012;
}


/* 6. Product Grid */
.ns-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
}

.ns-product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ns-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.ns-product-card a {
    display: block;
    min-height: 44px;
}

.ns-product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.ns-product-info {
    padding: 15px;
}

.ns-product-title {
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ns-product-price {
    font-weight: 900;
    font-size: 1.2em;
    color: #e60012;
}


/* 7. Responsive Styles */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .ns-main {
        padding: 0 40px;
    }
    
    .ns-header-wrap {
        padding: 0 40px;
    }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .ns-main {
        padding: 0 30px;
    }
    
    .ns-header-wrap {
        padding: 0 30px;
    }
    
    .ns-search-form {
        max-width: 350px;
        margin: 0 30px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .ns-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ns-main {
        padding: 0 30px;
    }

    .ns-header-wrap {
        padding: 0 30px;
    }

    .ns-search-form {
        margin: 0 30px;
    }

    .ns-header-inner {
        height: 70px;
        min-height: 70px;
    }

    .ns-logo img {
        height: 45px;
    }

    .ns-logo-text {
        font-size: 1.6em;
    }

    .ns-search-input {
        height: 42px;
        font-size: 1em;
    }

    .ns-category-nav ul {
        gap: 15px;
    }

    .ns-cat-icon {
        font-size: 1.8em;
    }

    .ns-section {
        margin-bottom: 40px;
    }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) {
    /* PC 헤더 내부 요소들 모바일 대응 */
    .ns-header-inner {
        flex-direction: row !important; /* 가로 정렬 강제! */
        height: 60px !important;
        min-height: 60px !important;
    }
    
    /* 모바일에서 검색폼 크기 조정 */
    .ns-search-form {
        max-width: 180px !important;
        margin: 0 5px !important;
        flex-shrink: 1 !important;
    }
    
    .ns-search-input {
        height: 36px !important;
        font-size: 14px !important;
        padding: 0 35px 0 15px !important;
    }
    
    /* 모바일에서 사용자 메뉴 숨김 */
    .ns-user-menu {
        display: none !important;
    }
    
    /* 모바일에서 메뉴 버튼 표시 */
    .ns-menu-btn {
        display: block !important;
    }
    
    /* 모바일 메뉴 표시 가능하도록 */
    .ns-mobile-menu {
        display: block !important;
        top: 60px !important; /* 모바일 헤더 높이에 맞춤 */
        right: 15px !important;
        width: 250px !important;
    }

    #container_wr {
        padding: 0 15px;
    }
    
    #hd_wrapper, #tnb .inner, #gnb .gnb_wrap, #ft_wr {
        padding: 0 15px;
    }
    
    .ns-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 10px;
    }
    
    .ns-main {
        padding: 0 15px;
    }
    
    .ns-category-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .ns-category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .ns-category-nav ul {
        padding: 10px;
        justify-content: flex-start;
        min-width: max-content;
        gap: 10px;
    }
    
    .ns-category-nav li {
        flex: 0 0 auto;
        text-align: center;
        min-width: 80px;
    }
    
    .ns-category-nav li a {
        gap: 5px;
        font-size: 0.9em;
        padding: 12px 5px;
    }
    
    .ns-cat-icon {
        font-size: 1.5em;
    }
    
    .ns-main-banner {
        margin: 15px 0;
    }
    
    .ns-main-banner img {
        border-radius: 8px;
    }
    
    .ns-section {
        margin-bottom: 35px;
    }
    
    .ns-section:last-child {
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .ns-product-card {
        transition: none; /* 모바일에서 호버 효과 제거 */
    }
    
    .ns-product-card:active {
        transform: scale(0.98);
    }
    

    
    .mobile-simple-header {
        display: block !important;
    }
    
    /* 모바일 헤더 한 줄 정렬 강제 */
    .mobile-header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        height: 60px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .mobile-logo {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60% !important;
    }
    
    .mobile-buttons {
        flex-shrink: 0 !important;
        display: flex !important;
        gap: 8px !important;
    }
    
    .mobile-search-toggle,
    .mobile-menu-toggle {
        flex-shrink: 0 !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    #container_wr {
        padding: 0 10px;
    }
    
    #hd_wrapper, #tnb .inner, #gnb .gnb_wrap, #ft_wr {
        padding: 0 10px;
    }
    
    .ns-main {
        padding: 0 10px;
    }
    

    
    .ns-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 8px;
    }
    
    .ns-product-info {
        padding: 10px;
    }
    
    .ns-product-title {
        font-size: 0.9em;
        line-height: 1.3;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ns-product-price {
        font-size: 1.1em;
    }
    
    .ns-category-nav ul {
        padding: 8px;
        justify-content: flex-start;
        min-width: max-content;
        gap: 8px;
    }
    
    .ns-category-nav li {
        flex: 0 0 auto;
        min-width: 70px;
    }
    
    .ns-category-nav li a {
        font-size: 0.8em;
        gap: 3px;
        padding: 10px 3px;
    }
    
    .ns-cat-icon {
        font-size: 1.3em;
    }
    
    h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .ns-section {
        margin-bottom: 30px;
    }
    
    .ns-section:last-child {
        margin-bottom: 15px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    #container_wr {
        padding: 0 8px;
    }
    
    #hd_wrapper, #tnb .inner, #gnb .gnb_wrap, #ft_wr {
        padding: 0 8px;
    }
    
    .ns-product-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ns-category-nav li {
        min-width: calc(50% - 5px);
    }
    

}

/* 8. Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .ns-product-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .ns-category-nav li a:hover {
        background-color: transparent;
    }
    
    .ns-category-nav li a:active {
        background-color: #f8f9fa;
        border-radius: 8px;
    }
}

/* 9. Footer Styles */
.ns-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.ns-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.ns-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.ns-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ns-footer-links a {
    color: #ccc;
    font-size: 0.9em;
    transition: color 0.2s;
    padding: 5px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.ns-footer-links a.privacy {
    font-weight: bold;
    color: #fff;
}

.ns-family-site select {
    background: #333;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 10px;
    min-height: 44px;
}

.ns-footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 새로운 Footer 구조 스타일 */
.ns-footer-company {
    flex: 1;
    max-width: 100%;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.company-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    margin: 0;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-info .phone,
.contact-info .fax {
    color: #0052cc;
    background: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85em;
    line-height: 1.4;
}

.detail-row .label {
    color: #aaa;
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.detail-row .value {
    color: #ccc;
    flex: 1;
    word-break: break-word;
}

.ns-footer-buttons {
    display: flex;
    gap: 10px;
}

.btn-ns-footer {
    padding: 10px 15px;
    background: #444;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 3px;
    font-size: 0.85em;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #888;
    margin-top: 20px;
}

.ns-footer-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ns-footer-logos img {
    height: 30px;
    width: auto;
    opacity: 0.7;
}

.ns-footer-aside {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.ns-aside-box {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ns-aside-box h4 {
    background: #333;
    color: #fff;
    padding: 8px 12px;
    margin: 0;
    font-size: 0.85em;
}

.ns-aside-box p {
    padding: 10px 12px;
    margin: 0;
    font-size: 0.8em;
}

.btn-ns-footer-sm {
    display: block;
    padding: 10px 12px;
    background: #e60012;
    color: #fff;
    text-align: center;
    font-size: 0.8em;
    font-weight: bold;
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .ns-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ns-footer-aside {
        right: 15px;
        bottom: 15px;
    }
    
    .ns-aside-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .ns-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ns-footer-links a {
        font-size: 0.85em;
        padding: 8px 5px;
    }
    
    .ns-family-site {
        width: 100%;
    }
    .ns-family-site select {
        width: 100%;
    }
    
    .ns-footer-aside {
        display: none;
    }
    
    /* 모바일 Footer 최적화 */
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .company-name {
        font-size: 1.2em;
    }
    
    .contact-info {
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .contact-info .phone,
    .contact-info .fax {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    
    .company-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
        padding: 8px 0;
        border-bottom: 1px solid #444;
    }
    
    .detail-row:last-child {
        border-bottom: none;
    }
    
    .detail-row .label {
        min-width: auto;
        font-size: 0.8em;
        color: #888;
    }
    
    .detail-row .value {
        font-size: 0.9em;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .ns-footer-logos {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .ns-footer-links {
        gap: 10px;
    }
    
    .ns-footer-links a {
        padding: 10px 8px;
        font-size: 0.8em;
    }
    
    /* 작은 화면 Footer 추가 최적화 */
    .company-name {
        font-size: 1.1em;
        text-align: center;
        width: 100%;
    }
    
    .contact-info {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .contact-info .phone,
    .contact-info .fax {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }
    
    .detail-row .value {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    .copyright {
        text-align: center;
        margin-top: 20px;
    }
    
    .copyright p {
        font-size: 0.75em;
        line-height: 1.4;
    }
}

/* --- 모바일 전용 헤더 스타일 --- */
/* --- 모바일 단순 헤더 스타일 --- */
.mobile-simple-header {
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
    position: relative !important; /* sticky 아님! wrapper 안 덮음 */
    z-index: 100 !important;
    display: none; /* 기본 숨김, 모바일에서만 표시 */
}

.mobile-header-content {
    display: flex !important;
    flex-direction: row !important; /* 가로 정렬 강제! */
    align-items: center !important;
    justify-content: space-between !important;
    height: 60px !important;
    padding: 0 15px !important;
    flex-wrap: nowrap !important; /* 한 줄 강제! */
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: hidden !important;
}

.mobile-logo {
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: #0052cc !important;
    text-decoration: none !important;
    flex-shrink: 0 !important; /* 절대 줄어들지 않음 */
    white-space: nowrap !important; /* 줄바꿈 안됨 */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 60% !important;
}

.mobile-buttons {
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important; /* 절대 줄어들지 않음 */
}

.mobile-search-toggle,
.mobile-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    font-size: 1.1em !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* 검색창 */
.mobile-search-area {
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.mobile-search-area form {
    display: flex;
    gap: 10px;
}

.mobile-search-area input[type="text"] {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px; /* iOS zoom 방지 */
}

.mobile-search-area button {
    height: 40px;
    padding: 0 15px;
    border: none;
    background: #0052cc;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

/* 메뉴 */
.mobile-menu-area {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.mobile-menu-area a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu-area a:last-child {
    border-bottom: none;
}

.mobile-menu-area a:hover {
    background: #f0f0f0;
}

/* ########################################################################## */
/*                    반응형 미디어 쿼리 - PC/모바일 분리                      */
/* ########################################################################## */

/* PC에서는 PC 헤더만, 모바일 헤더 숨김 */
@media (min-width: 768px) {
    .mobile-simple-header {
        display: none !important;
    }
    
    /* PC에서 모바일 메뉴 숨김 */
    .ns-mobile-menu {
        display: none !important;
    }
    
    /* PC에서 메뉴 버튼 숨김 */
    .ns-menu-btn {
        display: none !important;
    }
}

/* 모바일에서 모바일 헤더 표시 */
@media (max-width: 767px) {
    .mobile-simple-header {
        display: block !important;
    }
    
    /* 모바일 헤더 한 줄 정렬 강제 */
    .mobile-header-content {
        display: flex !important;
        flex-direction: row !important; /* 가로 정렬 강제! */
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        height: 60px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .mobile-logo {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60% !important;
    }
    
    .mobile-buttons {
        flex-shrink: 0 !important;
        display: flex !important;
        gap: 8px !important;
    }
    
    .mobile-search-toggle,
    .mobile-menu-toggle {
        flex-shrink: 0 !important;
        width: 40px !important;
        height: 40px !important;
    }
}