/* 전역 스타일 */
:root {
    --primary-color: #ffc107;
    --secondary-color: #ff9800;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* 공지 배너 */
.notice-banner {
    background: var(--primary-color);
    padding: 24px 0;
    position: relative;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    padding: 0 20px;
}

.notice-banner p {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}


.banner-close-area {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.close-banner {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    line-height: 1;
    font-weight: bold;
}

.close-banner:hover {
    opacity: 0.8;
}

.close-today {
    font-size: 13px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.close-today:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 모바일: 배너 글자 축소, 닫기 X만 우측 상단, 텍스트와 X 겹침 방지 */
@media (max-width: 768px) {
    .notice-banner {
        padding: 12px 28px 12px 16px;
        min-height: 44px;
        justify-content: flex-start;
    }
    .notice-banner .container {
        padding-left: 12px;
        padding-right: 20px;
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
        box-sizing: border-box;
    }
    .notice-banner .container p {
        font-size: 11px !important;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
        white-space: normal;
        overflow: visible;
    }
    .banner-close-area {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: row;
        gap: 0;
        width: 24px;
        justify-content: flex-end;
    }
    .banner-close-area .close-today {
        display: none;
    }
    .banner-close-area .close-banner {
        font-size: 16px;
        color: var(--text-dark);
        padding: 2px;
        margin: 0;
    }
}

/* 19인치/작은 노트북: 최상단 배너 글자 축소 (모바일 제외) */
@media (min-width: 769px) and (max-width: 1440px) {
    .notice-banner p {
        font-size: 28px;
    }
    .notice-banner {
        padding: 18px 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 팝업 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--bg-white);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: var(--bg-light);
}

.popup-body h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.popup-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.popup-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 상단 바 */
.top-bar {
    background: var(--bg-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 13px;
}

.top-menu a {
    color: var(--text-light);
}

.top-menu a:hover {
    color: var(--primary-color);
}

/* 헤더 */
.header {
    background: var(--bg-white);
    padding: 40px 0 50px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: bold;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-color);
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-menu a {
    font-size: 14px;
    white-space: nowrap;
    padding: 0;
    transition: var(--transition);
}

.user-menu a:hover {
    color: var(--primary-color);
}

.user-menu .search-btn {
    display: none;
}

.signup-btn {
    position: relative;
    display: inline-block;
}

.signup-btn .badge {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    animation: float 3s ease-in-out infinite;
}

.signup-btn .badge::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--danger-color);
}

/* 둥둥 떠다니는 애니메이션 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 네비게이션 */
.navbar {
    background: white;
    padding: 0;
    position: sticky;
    top: 76px;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-btn {
    background: #999;
    color: var(--bg-white);
    padding: 15px 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.category-btn:hover {
    background: #888;
}

.main-nav {
    display: flex;
    gap: 0;
    flex: 1;
}

.main-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.main-nav li a:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

/* 네비게이션 카테고리 (호버 시 하위 카테고리 표시) */
.main-nav-categories {
    flex-wrap: wrap;
}
.main-nav-categories li a {
    white-space: nowrap;
}
.main-nav-categories .mainnav-toggle {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
}
.main-nav-categories .mainnav-toggle:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}
.main-nav-categories .nav-cat-chevron {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}
.main-nav-categories li {
    position: relative;
}
.main-nav-categories li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
}
.main-nav-categories li:hover .submenu,
.main-nav-categories li.submenu-open .submenu {
    display: block;
}
.main-nav-categories li .submenu li {
    margin: 0;
}
.main-nav-categories li .submenu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 14px;
}
.main-nav-categories li .submenu a:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.main-nav-submenu-portal {
    position: fixed;
    z-index: 1100;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.main-nav-submenu-portal li {
    margin: 0;
    position: static;
}
.main-nav-submenu-portal a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 14px;
}
.main-nav-submenu-portal a:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.popular-search {
    position: relative;
    min-width: 200px;
}

.keyword-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.keyword-header:hover {
    border-color: var(--primary-color);
}

.current-keyword {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.current-keyword .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.current-keyword .text {
    font-weight: 500;
    color: var(--text-dark);
}

.toggle-btn {
    padding: 4px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.toggle-btn.active {
    transform: rotate(180deg);
}

.popular-keywords {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
    z-index: 1000;
}

.popular-keywords.active {
    display: block;
}

.popular-keywords ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-keywords li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.popular-keywords li:hover {
    background: var(--bg-light);
}

.popular-keywords li .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--bg-white);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* 카테고리 사이드바 */
.category-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.category-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary-color);
    color: var(--text-dark);
}

.close-btn {
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
}

.sidebar-content {
    padding: 20px;
}

.user-quick {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.user-quick a {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.user-quick a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.category-list {
    border-top: 1px solid var(--border-color);
}

.category-list > li {
    border-bottom: 1px solid var(--border-color);
}

.category-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 10px;
    font-weight: bold;
    cursor: pointer;
}

.category-list > li > a:hover {
    background: var(--bg-light);
}

/* 화살표 아이콘 */
.category-list .has-submenu > a {
    position: relative;
    padding-right: 40px;
}

.category-list .has-submenu > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.category-list .has-submenu.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 서브메뉴 스타일 */
.category-list .submenu {
    display: none;
    padding-left: 20px;
    background: var(--bg-light);
}

.category-list .has-submenu.active > .submenu {
    display: block;
}

.category-list .submenu li {
    border-bottom: 1px solid #e0e0e0;
}

.category-list .submenu li:last-child {
    border-bottom: none;
}

.category-list .submenu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.category-list .submenu > li > a:hover {
    background: #e8e8e8;
    color: var(--primary-color);
}

/* 2차 카테고리의 화살표 */
.category-list .submenu .has-submenu > a {
    position: relative;
    padding-right: 35px;
}

.category-list .submenu .has-submenu > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.category-list .submenu .has-submenu.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 3차 카테고리 (서브메뉴의 서브메뉴) */
.category-list .submenu .submenu {
    display: none;
    padding-left: 15px;
    background: #f0f0f0;
}

.category-list .submenu .has-submenu.active > .submenu {
    display: block;
}

.category-list .submenu .submenu li a {
    display: block;
    padding: 10px;
    font-size: 13px;
    font-weight: normal;
}

.category-list .submenu .submenu li a:hover {
    background: #e0e0e0;
    color: var(--primary-color);
}

.sidebar-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.customer-service {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.customer-service h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.customer-service .phone {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.customer-service ul li {
    font-size: 13px;
    color: var(--text-light);
    padding: 3px 0;
}

.quick-links {
    display: grid;
    gap: 10px;
}

.quick-links a {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.quick-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 메인 슬라이더 */
.main-slider {
    position: relative;
    height: 720px;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25)),
                url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACgcHiMeGSgjISMtKygwPGRBPDc3PHtYXUlkkYCZlo+AjIqgtObDoKrarYqMyP/L2u71////m8H////6/+b9//j/2wBDASstLTw1PHZBQXb4pYyl+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj/wAARCAAVACADASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAMEAQX/xAAjEAACAgICAQQDAAAAAAAAAAABAgMRABIEIUETIjFRI0Kh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAQL/xAAXEQEBAQEAAAAAAAAAAAAAAAAAATER/9oADAMBAAIRAxEAPwCo/kkcG+mrE8gemztt+wGOi2V336BYkC/nMlMfIhoEBi90fOTIUjLu71R1PdHN5UcglYlGo0Aw+MrPHi9VJgNaNV94yaQhRHoG2+z1lcHXNecyIwIAseMVxV25CEnzeGGMwXXTmYmeUeAgr+5EGbce49YYYzFTK//Z') center / cover no-repeat;
    background-color: #1a1a2e;
    overflow: hidden;
}

.main-slider.bg-loaded {
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25)),
                url('../image/hero-bg-1920.jpg') center / cover no-repeat;
}

.slider-container {
    position: relative;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--bg-white);
    position: relative;
    z-index: 25;
}

.slide-content h1 {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    position: relative;
}

.slide-content h1 br.hero-br {
    display: block;
}

.slide-content h1 .hero-line1 { font-size: 0.75em; }
.slide-content h1 .hero-line2 { font-size: 1.15em; }

.slide-content h1 .hero-number {
    display: inline-block;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    background: linear-gradient(90deg, #e53935, #c62828, #d32f2f, #f44336, #b71c1c, #e53935, #d32f2f, #e53935);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: heroNumberEmphasis 2s ease-in-out infinite, heroNumberRotate 3s ease-in-out infinite, heroGradientFlow 5s linear infinite;
}

@keyframes heroGradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes heroNumberEmphasis {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 0 32px rgba(255, 255, 255, 0.35);
    }
}

@keyframes heroNumberRotate {
    0% { transform: rotate(0deg); }
    18% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

.slide-content h1 .char {
    display: inline-block;
    position: relative;
    color: #fff;
    vertical-align: middle;
    line-height: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3),
                 0 0 10px rgba(255, 255, 255, 0.2);
    animation: neonCharFlow 2.5s ease-in-out infinite;
}

.slide-content h1 .char.char-color-change {
    animation: neonCharFlow 2.5s ease-in-out infinite;
}

.slide-content h1 .char-space {
    display: inline-block;
    width: 0.3em;
    vertical-align: middle;
    line-height: 1;
}

@keyframes neonCharFlow {
    0%, 90%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3),
                     0 0 10px rgba(255, 255, 255, 0.2);
    }
    45%, 55% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5),
                     0 0 15px rgba(255, 255, 255, 0.3),
                     0 0 25px rgba(255, 255, 255, 0.2);
    }
}

@keyframes colorChange {
    0% {
        color: #ff6b6b;
    }
    16.66% {
        color: #4ecdc4;
    }
    33.33% {
        color: #45b7d1;
    }
    50% {
        color: #f9ca24;
    }
    66.66% {
        color: #f0932b;
    }
    83.33% {
        color: #eb4d4b;
    }
    100% {
        color: #ff6b6b;
    }
}

.slide-content p {
    font-size: 40px;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
}

/* 떠다니는 이미지들 (PC/모바일 모두 비표시) */
.floating-images {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.floating-img {
    position: absolute;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
    display: block;
    visibility: visible;
    z-index: 5;
}

.floating-img.img-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    max-width: 150px;
}

.floating-img.img-2 {
    top: 20%;
    right: 8%;
    animation-delay: 1s;
    max-width: 170px;
}

.floating-img.img-3 {
    bottom: 25%;
    left: 10%;
    animation-delay: 2s;
    max-width: 160px;
}

.floating-img.img-4 {
    top: 50%;
    right: 5%;
    animation-delay: 1.5s;
    max-width: 140px;
}

.floating-img.img-5 {
    bottom: 15%;
    right: 15%;
    animation-delay: 2.5s;
    max-width: 130px;
}

.floating-img.img-6 {
    top: 35%;
    left: 15%;
    animation-delay: 0.5s;
    max-width: 155px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* 스크롤 다운 버튼 */
.scroll-down-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 30;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-down-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) translateY(5px);
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* 히어로 바로 아래 안내 카드 (쇼핑지원금 / 참여방법) */
.promo-cards-section {
    padding: 24px 0;
    background: var(--bg-white);
}

.promo-cards {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.promo-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    min-height: 100px;
}

.promo-card:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.promo-card--pink {
    background: #FFB6C1;
}

.promo-card--blue {
    background: #87CEEB;
}

.promo-card__content {
    flex: 1;
    min-width: 0;
}

.promo-card__top {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.promo-card__main {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

.promo-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    background: #333;
    color: #fff;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 16px;
    flex-shrink: 0;
}

.promo-card:hover .promo-card__btn {
    background: #000;
}

@media (max-width: 768px) {
    .promo-cards-section {
        padding: 14px 0;
    }
    .promo-cards {
        flex-direction: row;
        gap: 10px;
    }
    .promo-card {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 4px;
        padding: 8px 12px;
        min-height: 50px;
    }
    .promo-card__top {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .promo-card__main {
        font-size: 15px;
        line-height: 1.25;
    }
    .promo-card__btn {
        margin-left: 0;
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 6px;
    }
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 25px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 슬라이더 버튼 및 도트 CSS 삭제됨 */

/* 상품 섹션 */
.product-section {
    padding: 60px 0;
}

.product-section.bg-light {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 메인 상품 페이징 (이미지 스타일: 둥근 버튼, 파란 활성) */
.main-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    min-height: 46px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.main-pagination::-webkit-scrollbar {
    height: 6px;
}

.main-pagination::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.main-pagination-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--bg-white, #fff);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-color, #333);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.main-pagination-btn:hover:not(:disabled) {
    background: var(--primary-color, #4A5FC1);
    border-color: var(--primary-color, #4A5FC1);
    color: #fff;
}
.main-pagination-btn.active {
    background: var(--primary-color, #4A5FC1);
    border-color: var(--primary-color, #4A5FC1);
    color: #fff;
}
.main-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* PC: 메인 상품 페이징 버튼 가운데 정렬 (모바일은 flex-start 유지) */
@media (min-width: 769px) {
    .main-pagination {
        justify-content: center;
    }
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg-light);
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 20px);
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-white);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge.hit {
    background: #FFC1CC;
    color: #8B4A5C;
}

.badge.new {
    background: #C7E9B0;
    color: #5A7A4A;
}

.badge.recommend {
    background: #A8D8EA;
    color: #2C5F7A;
}

.badge.popular {
    background: #E6D3FF;
    color: #6B4C7A;
}

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

.product-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    min-height: 3em; /* 한 줄일 때도 두 줄 공간 유지 → 카드 높이 통일 */
}

.product-option {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    min-height: 20px;
    height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-support {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 17px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    margin-top: 12px;
    visibility: visible;
    min-width: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #333;
    visibility: visible;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-rating span,
.product-rating .rating-value {
    color: #333;
    visibility: visible;
}

.product-rating i {
    color: var(--primary-color);
}

.share-btn {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 11px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--text-dark);
    font-weight: bold;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--primary-color);
}

/* 리뷰 섹션 */
.review-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.review-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.review-section .review-slider-outer {
    width: 100% !important;
}

.no-review {
    text-align: center;
    color: var(--text-light);
}

.no-review i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.review-sort {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.review-sort-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.review-sort-btn:hover,
.review-sort-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

/* 메인 사용후기: 가로 슬라이더, 화살표는 양쪽 끝에 고정 */
.review-slider-outer {
    position: relative;
    width: 100%;
    min-height: 280px;
    border: none;
    border-bottom: none;
}
.review-slider-viewport,
.review-slider-track {
    border: none !important;
    border-bottom: none !important;
}

.review-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.review-slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.review-slider-arrow-left {
    left: 0;
}
.review-slider-arrow-right {
    right: 0;
}

.review-slider-viewport {
    margin: 0 56px;
    overflow-x: hidden;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.review-slider-viewport::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
}

.review-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 16px 0 0 0;
    min-height: 260px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.review-slider-track::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

.review-slider-track .main-review-item {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex-shrink: 0 !important;
    width: 320px !important;
    scroll-snap-align: start;
}

.review-section-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-more-outline {
    border: 1px solid var(--primary-color);
    color: var(--text-dark);
}

.btn-more-outline:hover {
    background: var(--primary-color);
}

.main-review-wrap {
    width: 100%;
}

.main-review-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.main-review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.main-review-title {
    font-size: 16px;
    color: var(--text-dark);
}

.main-review-product {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.main-review-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

/* 후기 내용 흰색 박스: 5줄 말줄임, 클릭 시 모달로 전체 보기 */
.main-review-content-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 12px 0;
    min-height: 96px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.main-review-content-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.main-review-content-inner {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 후기 전체 내용 모달 - 평소 완전 숨김, .active일 때만 표시 */
.review-content-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}
.review-content-modal.active {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.review-content-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.review-content-modal-box {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.review-content-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.review-content-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.review-content-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    color: var(--text-light);
}
.review-content-modal-close:hover {
    color: var(--text-dark);
}
.review-content-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.main-review-meta {
    font-size: 13px;
    color: var(--text-light);
}

.main-review-stars {
    margin-right: 6px;
}

.main-review-author {
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .review-slider-track .main-review-item {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
    /* 후기 1개가 잘리지 않게 카드 크기 축소 - 슬라이더 내 카드에 직접 적용 */
    .review-section .review-slider-track .main-review-item,
    .review-slider-track .main-review-item {
        padding: 10px 12px !important;
    }
    .review-section .main-review-header,
    .main-review-header {
        margin-bottom: 6px !important;
    }
    .review-section .main-review-title,
    .main-review-title {
        font-size: 14px !important;
    }
    .review-section .main-review-content-box,
    .main-review-content-box {
        min-height: 40px !important;
        padding: 6px 10px !important;
        margin: 0 0 6px 0 !important;
    }
    .review-section .main-review-content-inner,
    .main-review-content-inner {
        font-size: 13px !important;
        -webkit-line-clamp: 3;
        line-height: 1.45 !important;
    }
    .review-section .main-review-meta,
    .main-review-meta {
        font-size: 12px !important;
    }
    .review-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .review-slider-viewport {
        margin: 0 44px;
    }
    /* 사용후기 작성 / 펼쳐보기 버튼 한 줄, 크기 축소 */
    .review-section-footer {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
    }
    .review-section-footer .btn-more {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* 비디오 섹션 */
.video-section {
    padding: 60px 0;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 푸터 */
.footer {
    background: transparent;
    color: var(--text-color);
    padding: 0;
    width: 100%;
}

.footer .container {
    padding: 0;
}

.footer-top {
    background: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links a {
    color: var(--text-color);
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    line-height: 1;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* 관리자 링크: 기본 숨김. body.show-admin-link 일 때만 표시 */
.footer-links .admin-link,
a.admin-link,
li .admin-link {
    display: none !important;
    visibility: hidden !important;
    background: rgba(255, 193, 7, 0.2);
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 193, 7, 0.5);
    opacity: 1;
}
body.show-admin-link .footer-links .admin-link,
body.show-admin-link a.admin-link,
body.show-admin-link li .admin-link {
    display: inline-flex !important;
    visibility: visible !important;
}

.footer-links .admin-link:hover {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border-color: #ffc107;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
    background: #f5f5f5;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.footer-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-info ul li {
    padding: 5px 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-info:first-child ul li:first-child {
    font-size: 20px;
    font-weight: bold;
    color: #e53935;
    opacity: 1;
}

.footer-info:not(:first-child) ul li:first-child {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-info a {
    color: var(--text-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-info a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    width: 100%;
}

.company-info {
    margin-bottom: 20px;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-img-footer {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-footer h2 {
    font-size: 24px;
    color: var(--primary-color);
}

.app-links {
    display: flex;
    gap: 10px;
}

.app-btn {
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-color);
    transition: var(--transition);
}

.app-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.company-info p {
    font-size: 12px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-company-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-company-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-color);
    opacity: 0.85;
}

.footer-company-list li {
    padding-left: 0;
    margin-bottom: 2px;
}

.footer-company-right {
    text-align: left;
}

.copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    padding-top: 20px;
}

/* 하단 고정 네비게이션 (모바일) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 98;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.bottom-nav .nav-item i {
    font-size: 20px;
}

.bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

/* 최근 본 상품 퀵메뉴 + 맨 위로 */
.today-viewed {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.scroll-to-top {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.scroll-to-top:hover {
    background: #111;
    transform: scale(1.08);
}

.toggle-viewed {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFD700;
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease;
}

.toggle-viewed:hover {
    transform: scale(1.1);
}

.toggle-viewed .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

/* 최근 본 상품 사이드 패널 */
.viewed-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.viewed-panel.active {
    display: block;
}

.viewed-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.viewed-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.viewed-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.viewed-panel-close {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.viewed-panel-close:hover {
    color: var(--primary-color);
}

.viewed-panel-header h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    flex: 1;
    text-align: center;
    padding-left: 40px;
}

.viewed-count-badge {
    display: inline-block;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.viewed-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.viewed-list {
    min-height: 100%;
}

.viewed-list .empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
}

.viewed-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.viewed-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.viewed-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.viewed-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.viewed-item-info p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.viewed-item-info .price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.viewed-panel-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-clear-all {
    width: 100%;
    padding: 14px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-clear-all:hover {
    background: #c62828;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header {
        padding: 16px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 1;
        width: auto;
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .logo-img {
        height: 56px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .user-menu {
        order: 2;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-shrink: 0;
    }

    .user-menu a:not(.search-btn) {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        white-space: nowrap;
    }

    .user-menu .search-btn {
        display: none;
    }

    .navbar {
        top: 110px;
        margin-top: 10px;
    }

    .navbar .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-left: 0;
        padding-right: 16px;
    }

    .navbar .container::-webkit-scrollbar {
        height: 4px;
    }

    .navbar .container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    .main-nav {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    .main-nav li a,
    .main-nav-categories li .mainnav-toggle {
        white-space: nowrap;
        padding: 12px 10px;
        font-size: 13px;
    }

    .popular-search {
        display: none;
    }

    .category-btn {
        flex: 0 0 auto;
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 13px;
    }

    .main-nav-categories li:hover .submenu {
        display: none;
    }

    .main-nav-categories li.submenu-open .submenu {
        display: block;
        z-index: 1100;
    }

    .main-nav-categories li .submenu {
        min-width: 160px;
        font-size: 13px;
    }

    .main-nav-categories li .submenu a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .main-slider {
        height: 460px;
    }

    .main-slider.bg-loaded {
        background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25)),
                    url('../image/hero-bg-1024.jpg') center / cover no-repeat;
    }

    .slide-content {
        transform: translateY(-24px);
    }

    .slide-content h1 br.hero-br {
        display: block;
    }

    .slide-content h1 {
        font-size: 48px;
        margin-bottom: 14px;
        line-height: 1.25;
    }

    .slide-content p {
        font-size: 28px;
    }

    .main-slider .floating-img {
        width: 68px !important;
        height: 68px !important;
        max-width: 68px !important;
        max-height: 68px !important;
        min-width: 68px !important;
        min-height: 68px !important;
        object-fit: contain;
        z-index: 2;
        opacity: 0.9;
        animation: none !important;
        transform: none !important;
    }

    .main-slider .floating-img.img-3,
    .main-slider .floating-img.img-5 {
        display: block !important;
    }

    .main-slider .floating-img.img-1 {
        top: 5%;
        left: 3%;
        width: 62px !important;
        height: 62px !important;
        max-width: 62px !important;
        max-height: 62px !important;
    }

    .main-slider .floating-img.img-2 {
        top: 5%;
        right: 3%;
        width: 62px !important;
        height: 62px !important;
        max-width: 62px !important;
        max-height: 62px !important;
    }

    .main-slider .floating-img.img-3 {
        bottom: 26%;
        left: 3%;
        top: auto;
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    .main-slider .floating-img.img-4 {
        top: 52%;
        right: 3%;
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    .main-slider .floating-img.img-5 {
        bottom: 24%;
        right: 3%;
        top: auto;
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
    }

    .main-slider .floating-img.img-6 {
        top: 36%;
        left: 3%;
        bottom: auto;
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .product-section {
        padding: 40px 0;
    }

    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-top {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-links {
        font-size: 11px;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-left: 0;
    }

    .footer-links a {
        white-space: nowrap;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
    }

    .footer-content .footer-info:nth-child(1) {
        text-align: left;
    }

    .footer-content .footer-info:nth-child(2) {
        text-align: left;
    }

    .footer-content .footer-info h3 {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .footer-content .footer-info ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .footer-content .footer-info ul li {
        padding: 2px 0;
        line-height: 1.35;
        font-size: 13px;
    }

    .footer-content .footer-info:first-child ul li:first-child {
        font-size: 16px;
    }

    .footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-company-row {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content .footer-info:nth-child(3),
    .footer-content .footer-info:nth-child(4) {
        display: none !important;
    }

    .logo-img-footer {
        height: 28px;
    }

    .logo-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .bottom-nav {
        display: flex;
    }

    .today-viewed {
        bottom: 80px;
    }

    .viewed-panel-content {
        width: 100%;
        max-width: 100%;
    }
}

/* 서비스 이용약관 모달 */
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.terms-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.terms-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.terms-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.terms-modal-close:hover {
    color: #333;
}

.terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.terms-content {
    line-height: 1.8;
    color: #555;
}

.terms-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

.terms-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.terms-modal-footer .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.terms-modal-footer .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.terms-modal-footer .btn-primary:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .terms-modal-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .terms-modal-header {
        padding: 15px 20px;
    }

    .terms-modal-header h2 {
        font-size: 20px;
    }

    .terms-modal-body {
        padding: 20px;
    }

    .terms-content h3 {
        font-size: 16px;
    }

    .terms-content p {
        font-size: 14px;
    }

    .terms-modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-slider.bg-loaded {
        background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25)),
                    url('../image/hero-bg-640.jpg') center / cover no-repeat;
    }

    .slide-content h1 br.hero-br {
        display: block;
    }

    .slide-content h1 {
        font-size: 42px;
        margin-bottom: 12px;
        line-height: 1.25;
    }

    .slide-content p {
        font-size: 24px;
    }

    .main-slider .floating-img {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        object-fit: contain;
        z-index: 2;
        opacity: 0.9;
        animation: none !important;
        transform: none !important;
    }

    .main-slider .floating-img.img-3,
    .main-slider .floating-img.img-5 {
        display: block !important;
    }

    .main-slider .floating-img.img-1 {
        top: 4%;
        left: 3%;
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .main-slider .floating-img.img-2 {
        top: 4%;
        right: 3%;
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .main-slider .floating-img.img-3 {
        bottom: 28%;
        left: 3%;
        top: auto;
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }

    .main-slider .floating-img.img-4 {
        top: 54%;
        right: 3%;
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }

    .main-slider .floating-img.img-5 {
        bottom: 26%;
        right: 3%;
        top: auto;
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .main-slider .floating-img.img-6 {
        top: 38%;
        left: 3%;
        bottom: auto;
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }

    .popup-content {
        padding: 20px;
    }

    .category-sidebar {
        width: 100%;
        left: -100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

}

/* 인기상품 배너 슬라이더 */
.popular-banner-slider {
    padding: 40px 20px;
    background: var(--bg-white);
}

.banner-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    height: 130px;
}

.banner-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    border-radius: 20px;
    min-height: 130px;
    align-items: center;
}

.banner-slide.active {
    display: flex;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
    padding: 0 50px;
    min-height: 130px;
}

.banner-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-top-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 400;
}

.banner-main-text {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.3;
}

.banner-sub-text {
    font-size: 17px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
}

.banner-dots {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* 첫 번째 배너(노란색) 전용 스타일 */
.banner-slide[style*="#FFC107"] .banner-top-text {
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

.banner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: rgba(0, 0, 0, 0.8);
    width: 20px;
    border-radius: 3px;
}

/* 두 번째 배너(핑크) 전용 - 도트 색상 */
.banner-slide[style*="#FFB6C1"] .banner-dots .dot {
    background: rgba(255, 255, 255, 0.5);
}

.banner-slide[style*="#FFB6C1"] .banner-dots .dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.banner-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
}

/* 두 번째 배너(핑크) 전용 스타일 */
.banner-slide[style*="#FFB6C1"] .banner-right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.banner-notice-text {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-align: right;
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1.3;
}

.banner-review-text {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    line-height: 1.2;
}

.banner-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0;
    white-space: nowrap;
}

.banner-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.banner-btn i {
    color: var(--primary-color);
    font-size: 14px;
}

/* 노트북/작은 데스크톱: 히어로(메인 슬라이더) 텍스트 + 플로팅 이미지 축소 (모바일 제외) */
@media (min-width: 769px) and (max-width: 1680px) {
    .main-slider {
        height: 600px;
    }
    .slide-content h1 {
        font-size: 52px;
        margin-bottom: 14px;
    }
    .slide-content p {
        font-size: 28px;
    }
    .floating-img {
        max-width: 120px !important;
        max-height: 120px !important;
    }
    .floating-img.img-1 {
        max-width: 100px !important;
    }
    .floating-img.img-2 {
        max-width: 110px !important;
    }
    .floating-img.img-3 {
        max-width: 105px !important;
    }
    .floating-img.img-4 {
        max-width: 95px !important;
    }
    .floating-img.img-5 {
        max-width: 90px !important;
    }
    .floating-img.img-6 {
        max-width: 100px !important;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .banner-slider-container {
        height: 260px;
        min-height: 260px;
    }

    .banner-slide {
        padding: 14px 25px 20px;
        min-height: 260px;
        box-sizing: border-box;
        align-items: stretch;
    }

    .banner-content {
        min-height: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 6px;
        justify-content: flex-start;
        padding-top: 8px;
        padding-bottom: 20px;
        box-sizing: border-box;
    }
    
    .banner-main-text {
        font-size: 22px;
    }
    
    .banner-sub-text {
        font-size: 16px;
    }
    
    .banner-review-text {
        font-size: 28px;
    }
    
    .banner-right {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .banner-notice-text {
        text-align: center;
        font-size: 18px;
        font-weight: 600;
    }

    .banner-btn {
        font-size: 12px;
        padding: 6px 14px;
        gap: 4px;
        border-radius: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .banner-btn i {
        font-size: 11px;
    }
    
    .banner-review-text {
        text-align: center;
    }
}

