:root {
    /* 메인 브랜드 컬러 (기존 #5B9CB8 보다 진하게) */
    --color-main: #F18A1B;
    --color-main-dark: #ea7d07;

    /* 밝은 포인트/버튼용 (기존 #B8D8E8 톤업) */
    --color-main-light: #f4c28c;

    /* 박스/배경에 쓰는 연한 톤들 */
    --color-main-soft: #F8F8F8;   /* 기존 #E8F0F5, #F0F5F8 등 */
    --color-bg-soft:   #F5F7FA;   /* 추천 섹션 배경 등 */
    --color-bg-alt:    #F4F4F4;   /* #f9f9f9 계열 */

    /* 라인/보더 */
    --color-border:    #D3E0E6;   /* 기존 #D4E0E8, #E8EEF3 */

    /* 텍스트 */
    --color-text:        #3A3A3A;
    --color-text-muted:  #666666;

    /* 쇼핑 할인/강조용 오렌지 계열 (그대로 두되 변수화) */
    --color-accent:        #F26B3A;  /* 중간 오렌지 */
    --color-accent-strong: #D9541F;  /* 더 진한 오렌지 */
    --color-accent-soft:   #FFE0CC;  /* 부드러운 배경 */

    /* 뱃지 전용 (NEW/HOT 등) */
    --color-badge-new: #204457;
    --color-badge-hot: #7FB4CC;

    /* 공통 */
    --color-white: #FFFFFF;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: #3A3A3A;
    line-height: 1.8;
    font-size: 16px;
}

/* ==================== 공통 ==================== */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.inner-max {max-width:1400px;margin:0 auto;}

/* ==================== 색상 팔레트 - 파스텔 블루 ==================== */
/* 주 색상: #87CEEB (스카이 블루) -> 파스텔 #B8D8E8 */
/* 보조색: #C8E4E8 (라이트 블루) */
/* 악센트: #D4C8E8 (라벤더) */
/* 다크: #5B9CB8 (진한 블루) */

/* ==================== PC 헤더 ==================== */
.pc-header {
    display: none;
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

/* 헤더 숨김 상태 */
.pc-header.pc-header-hidden {
    transform: translateY(-78.5%);
    box-shadow: none;
}

.pc-header-top {
    background: #fafafa;
    padding: 0.6rem 2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s ease;
}

/* 반응형 - 모바일에서는 비활성화 */
@media (max-width: 1023px) {
    .pc-header.pc-header-hidden {
        transform: translateY(0);
    }

    .pc-nav-bar {
        position: relative;
        top: auto;
    }
}

.pc-header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.pc-header-top-left,
.pc-header-top-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.pc-header-top-link {
    color: #666;
}

.pc-header-top-link:hover {
    color: #5B9CB8;
}

.pc-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.9rem 0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}


/* PC 네비게이션 구조 개선 */
.pc-nav li {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.pc-nav li > a {
    color: #3A3A3A;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.pc-nav li a:hover {
    color: var(--color-main);
    border-bottom-color: var(--color-main);
}

/* 서브메뉴 기본 스타일 */
.pc-nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #D4E0E8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    min-width:180px;
    z-index: 101;
    list-style: none;
    padding:5px;
    font-size:0.9rem;
}

/* Hover 시 서브메뉴 표시 */
.pc-nav li:hover > .pc-nav-submenu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.pc-nav li:first-child {border-top:none;}

/* 슬라이드다운 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 서브메뉴 아이템 */
.pc-nav-submenu li {
    height:40px;
    display:block !important;
}

.pc-nav-submenu li a {
    padding:0px !important;
    padding-left:20px !important;
    color: #3A3A3A;
    font-size: 0.9rem !important;
    font-weight: 400;
    border-bottom: none;
    display: block;
    transition: all 0.2s ease;
    text-align:left;
}

.pc-nav-submenu li a:hover {
    background: var(--color-main-soft);
    color: var(--color-main);
    border:none;
}



.pc-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-main);
    white-space: nowrap;
}

.pc-logo-main {
    display: block;
    letter-spacing: -0.5px;
    font-weight:bold;

}

.pc-logo-sub {
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
    display:block;
}

.pc-search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.pc-search-input {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 1.2rem;
    border: 2px solid var(--color-main);
    font-size: 0.95rem;
    outline: none;
    border-radius:50px;
}

.pc-search-input:focus {
    box-shadow: 0 0 10px rgba(91, 156, 184, 0.2);
}

.pc-search-icon {
    position: absolute;
    right:1.4rem;
    top:1.6rem;
    font-size:20px;
    transform: translateY(-50%);
    color: var(--color-main);
    pointer-events: none;
}

.pc-fav-search {margin-top:5px;}
.pc-fav-search a {font-size:0.76rem;color:#676767;background:#f9f9f9;padding:4px 10px;border-radius:20px;}

.pc-banner-box {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    height:80px;
    width:150px;
    overflow:hidden;
}


.pc-banner-icon {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.2rem;
}

.pc-banner-text {
    color: #5B9CB8;
    font-weight: 600;
}

/* PC 서브 네비게이션 */
.pc-nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    transition: all 0.3s ease;

    border-bottom: 1px solid #ddd;
    border-top:solid 1px  #ddd;
}

.pc-nav-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.pc-nav-menu-btn {
    width: 50px;
    height: 50px;
    background: var(--color-main);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 1rem;
}

.pc-nav-menu-btn:hover {
    background: #A8CCDE;
}

.pc-nav {
    display: flex;
    list-style: none;
    flex: 1;
}

.pc-nav li > a {
    color: #3A3A3A;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 2.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width:100%;
}

.pc-nav-badge {
    display: inline-block;
    background: linear-gradient(135deg, #B8D8E8 0%, #A8CCDE 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.3rem;
}

.pc-nav-badge.new {
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-light) 100%);
}

.pc-nav-badge.hot {
    background: linear-gradient(135deg, #C8E4E8 0%, #B8D8E8 100%);
}


/* ==================== PC 푸터 ==================== */

.pc-footer {
    display: block;
    background:#f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);

}

.pc-footer-container {
    margin: 0 auto;
}

/* 상단 링크 & 오른쪽 영역 */
.pc-footer-top {
    display: block;
    padding:0.6rem 0rem ;
    border-bottom: 1px solid #eee;
    background:#f9f9f9;
}

.pc-footer-top .inner-max {
    display:flex;
    align-items: center;
    justify-content:space-between;
}

.pc-footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.pc-footer-links a {
    color: #999;
    font-weight: 500;
    font-size: 0.87rem;
}

.pc-footer-links a:hover {
    color: var(--color-main);
}

.pc-footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* SNS 아이콘 */
.pc-footer-sns {
    display: flex;
    gap: 0.5rem;
}

.pc-footer-sns .sns-icon {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: var(--color-white);
}

.pc-footer-sns .sns-icon:hover {
    border-color: var(--color-main);
    color: var(--color-main-dark);
}

/* 패밀리 사이트 셀렉트 */
.pc-footer-family-select {
    min-width: 210px;
    height: 40px;
    border-radius: 2px;
    border: 1px solid var(--color-border);
    padding: 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background-color: var(--color-white);
}

/* 회사 정보 텍스트 */
.pc-footer-info {
    line-height: 1.8;
    font-size: 0.85rem;
    margin: 0 auto;
    max-width:1400px;
    padding:1rem 0px ;
}

.pc-footer-info p {
    margin: 0.45rem 0;
}

.pc-footer-info a {
    color: var(--color-text-muted);
}

.pc-footer-info a:hover {
    color: var(--color-main);
}

.ft-strong {
    font-weight: 700;
    color: var(--color-text);
}

.ft-divider {
    margin: 0 0.25rem;
    color: #ccc;
}

/* 사업자정보확인 버튼 */
.ft-biz-button {
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 3px;
    border: 1px solid var(--color-border);
    background: #f7f7f7;
    color: var(--color-text);
    cursor: pointer;
}

.ft-biz-button:hover {
    border-color: var(--color-main);
    background: var(--color-main-soft);
    color: var(--color-main-dark);
}

/* 하단 배지 */
.pc-footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

.pc-footer-badges img {
    height: 60px;
    width: auto;
}

/* 반응형 - 1024px 이하에서 살짝 정리 */
@media (max-width: 1024px) {
    .pc-footer-container {
        padding: 1.5rem 1rem 2rem;
    }

    .pc-footer-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .pc-footer-right {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .pc-footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .pc-footer-family-select {
        min-width: 180px;
    }

    .pc-footer-badges img {
        height: 48px;
    }
}

/* ==================== 모바일 헤더 ==================== */
.mobile-header {
    display: flex;
    background:#fff;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-main);
    white-space: nowrap;
}

.mobile-menu-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    gap:6px;
    background: none;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: #3A3A3A;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-content {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-content ul {
    list-style: none;
}

.mobile-nav-content a {
    color: #3A3A3A;
    font-size: 0.84rem;
    font-weight: 500;
    padding:0.6rem;
    display: block;
}

.mobile-nav-content a:hover {
    background-color: #E8F0F5;
    color: #5B9CB8;
}


/* 모바일 푸터 */
.mobile-footer {
    display: block;
    background:#f9f9f9;
    padding: 1.5rem 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.mobile-footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.mobile-footer-section a {
    display: block;
    color: #666;
    padding: 0.1rem 0;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.mobile-footer-section a:hover {
    color: #5B9CB8;
}

.mobile-social-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.mobile-social-icons a {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mobile-social-icons a:active {
    background-color: #5B9CB8;
    transform: scale(0.95);
}

.mobile-footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
}

.mobile-footer-bottom p {
    margin-bottom: 0.3rem;
}


@media (max-width: 1170px) {
    .pc-nav li a {font-size:0.98rem;padding:0.8rem 2.2rem;}
}

/* ==================== 반응형 ==================== */
@media (min-width: 1024px) {
    .pc-header,
    .pc-main-grid-section,
    .pc-main-content,
    .pc-recommended-section,
    .pc-footer {
        display: block !important;
    }

    .mobile-header,
    .mobile-banner-section,
    .mobile-main-content,
    .mobile-recommended-section,
    .mobile-footer {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .pc-header,
    .pc-main-grid-section,
    .pc-main-content,
    .pc-recommended-section,
    .pc-footer {
        display: none !important;
    }


    .mobile-main-grid-section,
    .mobile-main-content,
    .mobile-recommended-section,
    .mobile-footer {
        display: block !important;
    }

    .mobile-header {display:flex !important;}
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .mobile-header {
        padding: 0.8rem;
    }

    .mobile-logo {
        font-size:1.1rem;
    }

    .mobile-feature-grid {
        grid-template-columns: 1fr;
    }

    .mobile-recommended-grid {
        grid-template-columns: 1fr;
    }
}