/* Header Styles */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; }
.header .gnb { border-bottom: 1px solid #E5E7EB; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; flex-shrink: 0; }
.logo-camel-wrap { width: 130px; height: 30px; position: relative; overflow: visible; }
.logo-camel { height: 30px; width: auto; position: relative; animation: camelWalk 10s ease-in-out infinite; }
@keyframes camelWalk {
    0% { transform: translateX(0) scaleX(1); }
    45% { transform: translateX(110px) scaleX(1); }
    50% { transform: translateX(110px) scaleX(-1); }
    95% { transform: translateX(0) scaleX(-1); }
    100% { transform: translateX(0) scaleX(1); }
}
.logo-text { height: 14px; margin-top: 2px; }
.header .search-box { max-width: 420px; width: 100%; position: relative; }
.header .search-box input { width: 100%; height: 44px; padding: 0 44px 0 18px; border: 1px solid #D1D5DB; border-radius: 22px; font-size: 15px; outline: none; transition: border-color .2s; }
.header .search-box input:focus { border-color: #1e2761; }
.header .search-box i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #9CA3AF; }
.header .search-box button { position: absolute; right: 0; top: 0; height: 100%; width: 44px; background: none !important; border: none; cursor: pointer; color: #9CA3AF; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; }
.popular-rolling { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-right: auto; margin-left: 16px; position: relative; cursor: pointer; }
.popular-rolling .label { font-size: 13px; color: #1F2937; white-space: nowrap; font-weight: 700; }
.popular-rolling .hot-badge { background: #EF4444; color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.popular-rolling .rolling-wrap { display: flex; align-items: center; gap: 8px; }
.popular-rolling .rolling-current { width: 80px; height: 24px; overflow: hidden; position: relative; }
.popular-rolling .rolling-list { list-style: none; margin: 0; padding: 0; animation: rolling 25s linear infinite; }
.popular-rolling .rolling-list li { height: 24px; line-height: 24px; display: flex; align-items: center; }
.popular-rolling .rolling-list a { font-size: 14px; color: #1F2937; font-weight: 500; text-decoration: none; display: block; }
.popular-rolling .arrow { font-size: 12px; color: #9CA3AF; transition: transform 0.2s; }
.popular-rolling:hover .rolling-list { animation-play-state: paused; }
.popular-rolling:hover .arrow { transform: rotate(180deg); }
.popular-rolling .dropdown { position: absolute; top: 100%; left: 0; padding-top: 12px; background: transparent; min-width: 260px; display: none; z-index: 100; }
.popular-rolling .dropdown::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.popular-rolling .dropdown li { position: relative; z-index: 1; list-style: none; }
.popular-rolling:hover .dropdown { display: block; }
.popular-rolling .dropdown li { padding: 0; height: auto; }
.popular-rolling .dropdown li:first-child a { padding-top: 22px; }
.popular-rolling .dropdown li a { display: flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 14px; color: #374151; text-decoration: none; }
.popular-rolling .dropdown li a:hover { background: #F3F4F6; color: #1e2761; }
.popular-rolling .dropdown li a .rank { width: 20px; font-weight: 600; color: #1e2761; }
.popular-rolling .dropdown li a .hot-badge { background: #EF4444; color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-right: -2px; }
@keyframes rolling { 0%, 8% { transform: translateY(0); } 10%, 18% { transform: translateY(-24px); } 20%, 28% { transform: translateY(-48px); } 30%, 38% { transform: translateY(-72px); } 40%, 48% { transform: translateY(-96px); } 50%, 58% { transform: translateY(-120px); } 60%, 68% { transform: translateY(-144px); } 70%, 78% { transform: translateY(-168px); } 80%, 88% { transform: translateY(-192px); } 90%, 100% { transform: translateY(-216px); } }
.nav-actions { display: flex; align-items: center; gap: 0; font-size: 12px; }
.nav-actions a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; color: #6B7280; transition: color .2s; text-decoration: none; position: relative; }
.nav-actions a i { font-size: 20px; }
.nav-actions a:hover { color: #1e2761; }
.nav-actions .divider { width: 1px; height: 36px; background: #E5E7EB; margin: 0 4px; }
.nav-actions .cart-link .badge { position: absolute; top: 2px; right: 6px; background: #EF4444; color: #fff; font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
header.header .gnb { background: #fff; border-bottom: 1px solid #E5E7EB; display: block; }
header.header .gnb .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
header.header .gnb .gnb-list { display: flex; gap: 32px; height: 48px; align-items: center; font-size: 15px; font-weight: 400; list-style: none; margin: 0; padding: 0; justify-content: flex-start; }
.gnb-list a { color: #1F2937; padding: 14px 0; position: relative; text-decoration: none; }
.gnb-list a:hover { color: #1e2761; }
.gnb-list a.active { color: #1e2761; font-weight: 600; }
.gnb-list .gnb-all { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.gnb-list .gnb-all i { font-size: 14px; }
header.header .gnb .gnb-utils { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
header.header .gnb .gnb-utils a { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9CA3AF; text-decoration: none; transition: color .2s; }
header.header .gnb .gnb-utils a:hover { color: #1e2761; }
header.header .gnb .gnb-utils a.active { color: #1e2761; font-weight: 600; }
header.header .gnb .gnb-utils a i { font-size: 14px; }

/* Mobile Menu Button - hidden by default on desktop */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 20px; color: #374151; cursor: pointer; padding: 8px; }

/* Mobile Menu Overlay */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; transition: opacity 0.3s; }
.mobile-menu-overlay.active { display: block; opacity: 1; }

/* Mobile Slide Menu */
.mobile-menu { position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw; height: 100vh; background: #fff; z-index: 201; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #E5E7EB; font-size: 18px; font-weight: 700; }
.mobile-menu-close { background: none; border: none; font-size: 20px; color: #6B7280; cursor: pointer; padding: 4px; }
.mobile-menu-list { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu-list li a { display: block; padding: 10px 20px; font-size: 15px; color: #374151; text-decoration: none; }
.mobile-menu-list li a:hover { background: #F9FAFB; color: #1e2761; }
.mobile-menu-utils { padding: 8px 20px; display: flex; flex-direction: column; gap: 0; }
.mobile-menu-utils a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: #6B7280; text-decoration: none; }
.mobile-menu-utils a i { font-size: 16px; width: 20px; text-align: center; }
.mobile-menu-utils a:hover { color: #1e2761; }

/* Mobile */
@media (max-width: 768px) {
    .header-inner { height: 56px; display: flex !important; justify-content: center !important; }
    .header-inner > *:not(.logo) { display: none !important; }
    .mobile-menu-btn { display: none !important; }
    .header .search-box { display: none !important; }
    .popular-rolling { display: none !important; }
    .nav-actions { display: none !important; }
    header.header .gnb { display: none !important; }
    .mega-menu { display: none !important; }
    .logo { position: static !important; margin: 0 !important; flex-shrink: 0; }
    body { padding-bottom: 64px; }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: #fff; border-top: 1px solid #e5e7eb; z-index: 100; }
.mobile-bottom-nav-inner { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: #6b7280; font-size: 11px; font-weight: 500; transition: color .2s; }
.mobile-bottom-nav a i { font-size: 22px; }
.mobile-bottom-nav a:active { color: #1e2761; }
.mobile-bottom-nav a.kakao { background: #fee500; color: #3a1d1d; }
.mobile-bottom-nav a.kakao i { color: #3a1d1d; }
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
}

/* Mega Menu */
header.header .gnb { position: relative; }
.mega-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; z-index: 150; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.mega-menu.active { display: block; }
.mega-menu > .container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 30px; }
.mega-grid { display: flex; gap: 80px; align-items: flex-start; }
.mega-col { min-width: 130px; }
.mega-close { background: none; border: none; font-size: 20px; color: #374151; cursor: pointer; padding: 8px; margin-left: 20px; flex-shrink: 0; align-self: flex-start; }
.mega-close:hover { color: #1e2761; }
.mega-col h4 { font-size: 16px; font-weight: 700; color: #1F2937; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #1e2761; }
.mega-col h4 a { color: #1F2937; text-decoration: none; }
.mega-col h4 a:hover { color: #1e2761; }
.mega-col h4:not(:first-child) { margin-top: 28px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col ul li { margin-bottom: 10px; }
.mega-col ul li a { font-size: 14px; color: #6B7280; text-decoration: none; transition: color 0.2s; }
.mega-col ul li a:hover { color: #1e2761; }
.mega-footer { border-top: 1px solid #E5E7EB; font-size: 14px; color: #6B7280; background: #f9fafb; }
.mega-footer-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; }
.mega-footer strong { font-size: 18px; font-weight: 700; color: #1e2761; margin: 0 12px; }
