/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 100%;
    max-width: 90%; /* QHD 해상도에 맞게 90%로 확대 */
    margin: 0 auto;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 메인페이지가 아닌 페이지에서 로고 중앙 정렬 */
body:not(.main-page) .header-container {
    justify-content: space-between; /* 원래대로 유지 */
}

body:not(.main-page) .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
}

body:not(.main-page) .logo-img {
    margin-left: 0; /* 로고 이미지 좌측 마진 제거 */
}

.logo-img {
    margin-left: 0; /* 40px에서 0으로 변경 */
    width: 47.84px;
    height: 33.54px;
    /* background: linear-gradient(135deg, #ff4757, #ff6b7a); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.logo-text {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-top: 10px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
}

/* 메인화면이 아닌 페이지에서 검색 버튼 숨기기 */
body:not(.main-page) .search-btn {
    display: none !important;
}

/* 사이드 메뉴 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-overlay.active .sidebar {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo-img {
    width: 47.84px;
    height: 33.54px;
    /* background: linear-gradient(135deg, #ff4757, #ff6b7a); */
    border-radius: 6px;
}

.sidebar-logo-text {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    margin-left: 5px;
}

.close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.menu-link:hover {
    background: #f8f9fa;
    color: #ff4757;
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 드롭다운 메뉴 스타일 */
.has-submenu .menu-link {
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.has-submenu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.has-submenu.open .submenu {
    max-height: 200px;
}

.submenu-item {
    margin: 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 52px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 400;
}

.submenu-link:hover {
    background: #e9ecef;
    color: #ff4757;
}

.submenu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 메인 배너 */
.main-banner {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    height: 800px; /* QHD 해상도에 맞게 높이 증가 */
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    will-change: opacity; /* GPU 가속 */
}

.banner-slide.active {
    opacity: 1;
}

.banner-image {
    background-color: #f8f9fa;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 테마 버튼들 */.theme-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 80%; /* 화면 너비의 80%로 변경 */
    margin: 20px auto;
    justify-content: flex-start;
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: flex-start;
}

.theme-btn {
    text-decoration: none;
    display: inline-block;
    padding: 9px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 60px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.theme-btn.friends {
    border-color: #e91e63;
    color: #e91e63;
}

.theme-btn.friends.active {
    background: #e91e63;
    color: white;
}

/* 제품 카드 섹션 */
.products-section {
    padding: 20px;
    background: #f8f9fa;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* QHD 해상도에 맞게 3열로 변경 */
    gap: 30px; /* 간격 증가 */
    max-width: 90%; /* 화면 너비의 90%로 확대 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 스켈레톤 카드 */
.product-card.skeleton {
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
}
.product-card.skeleton .product-image,
.product-card.skeleton .product-info {
    background: #f0f2f5;
}
.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
    0% { left: -150px; }
    100% { left: 100%; }
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg);} }

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 360px;
}

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

.product-card.hidden {
    display: none;
}

.product-image {
    width: 100%;
    height: 300px; /* QHD 해상도에 맞게 높이 증가 */
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 원본 비율 유지 */
    object-position: center;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

.product-img:hover {}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.product-placeholder.mario {
    background: #f39c12;
}

.product-placeholder.city {
    background: #f39c12;
}

.product-placeholder.disney {
    background: #f39c12;
}

.product-placeholder.ninjago {
    background: #f39c12;
}

.product-placeholder.friends {
    background: #f39c12;
}

.product-brand {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-age {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 제품 제목 컨테이너 */
.product-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* 제품 번호 배지 */
.product-number-badge {
    background: linear-gradient(135deg, #667eea 0%, #338cdb 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

/* 제품 제목 */
.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* 플로팅 버튼들 */
.floating-buttons {
    position: fixed;
    right: 20px;
    /* top: 50%; */
    bottom: 1%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-btn {
    background: #333;
    color: white;
}

.kakao-btn {
    background: #fee500;
    color: #333;
    font-weight: bold;
    font-size: 12px;
}

.kakao-btn i {
    font-size: 18px;
    color: #333;
}

.instagram-btn {
    background: #e4405f;
    color: white;
}

.instagram-btn i {
    font-size: 18px;
    color: white;
}

/* 플로팅 버튼 아이콘 스타일 */
.floating-btn i {
    font-size: 18px;
    line-height: 1;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* 검색 오버레이 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    padding: 60px 20px 20px;
}

.search-overlay.active {
    display: block;
}

.search-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 80%; /* 화면 너비의 80%로 변경 */
    margin: 0 auto;
    max-height: 80vh;
    overflow-y: auto;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-search {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.search-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-submit {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.search-close-btn {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    cursor: pointer;
}

.recent-searches h4,
.recommended-products h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.no-searches {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* 세로 모드 최적화 (LG 스탠바이미 2: 1440x2560) */
@media (min-width: 1440px) and (max-height: 2560px) and (orientation: portrait) {
    .header-container {
        max-width: 95%;
        padding: 0 30px;
        height: 80px; /* 세로 모드에서 헤더 높이 증가 */
    }
    
    .header {
        height: 80px;
    }
    
    .main-banner {
        margin-top: 80px;
        height: 900px; /* 세로 모드에 맞는 배너 높이 */
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr); /* 세로 모드에서는 2열 */
        gap: 25px;
        max-width: 95%;
        padding: 0 20px;
    }
    
    .product-image {
        height: 280px; /* 세로 모드에 맞는 카드 이미지 높이 */
    }
    
    .product-card {
        border-radius: 16px; /* 더 둥근 모서리 */
    }
    
    .products-section {
        padding: 30px 20px;
    }
    
    /* 세로 모드에서 스크롤 최적화 */
    .theme-buttons {
        padding: 20px;
    }
    
    .grade-filters {
        padding: 15px 20px;
    }
    
    .customer-service {
        padding: 40px 20px;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    /* 세로 모드에서 텍스트 크기 조정 */
    .product-name {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .product-number {
        font-size: 0.9rem;
    }
    
    .product-series {
        font-size: 0.85rem;
    }
}

/* 가로 모드 QHD 해상도 최적화 */
@media (min-width: 2560px) and (orientation: landscape) {
    .header-container {
        max-width: 95%;
        padding: 0 40px;
    }
    
    .products-container {
        grid-template-columns: repeat(4, 1fr); /* 4열로 더 확대 */
        gap: 40px;
        max-width: 95%;
        padding: 0 30px;
    }
    
    .main-banner {
        height: 1000px; /* 더 큰 배너 */
    }
    
    .product-image {
        height: 350px; /* 더 큰 카드 이미지 */
    }
}

/* 반응형 디자인 - 작은 화면 */
@media (max-width: 768px) {
    .header-container {
        max-width: 480px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        max-width: 480px;
    }
    
    .banner-text {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    .button-grid {
        max-width: 480px;
        justify-content: center;
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 480px;
    }
    
    .search-container {
        max-width: 480px;
    }
    
    .floating-buttons {
        right: 15px;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .product-card {
        max-width: none;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .button-grid {
        justify-content: center;
    }
    
    .theme-btn {
        min-width: 50px;
        max-width: 150px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .theme-btn {
        min-width: 45px;
        max-width: 120px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 등급 필터 스타일 */
.grade-filters {
    padding: 10px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.grade-filter-container {
    max-width: 80%; /* 화면 너비의 80%로 변경 */
    margin: 0 auto;
    padding: 0 20px;
}

.grade-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.grade-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    min-width: 70px;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    user-select: none;
}

/* .grade-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 122, 255, 0.3);
    color: #007aff;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

.grade-btn.active {
    background: #007aff;
    border-color: #007aff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.grade-btn.active:hover {
    background: #0056cc;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.grade-btn.sort-asc::after {
    content: " ↑";
    font-size: 12px;
    font-weight: 600;
}

.grade-btn.sort-desc::after {
    content: " ↓";
    font-size: 12px;
    font-weight: 600;
}

.grade-btn.sort-none::after {
    content: " ○";
    font-size: 12px;
    opacity: 0.4;
}




/* 고객서비스 섹션 */
.customer-service {
    background: #ffd700;        /* 노란색 배경 */
    padding: 40px 0;
    text-align: center;
}

.customer-service h2 {
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-phone {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.operating-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    color: #000;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 푸터 스타일 */
.footer {
    background: #2c3e50;        /* 어두운 파란색 배경 */
    color: #fff;
    padding: 30px 0;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon.facebook {
    background: #3b5998;        /* 페이스북 파란색 */
}

.social-icon.twitter {
    background: #1da1f2;        /* 트위터 파란색 */
}

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

.info-item {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.4;
}

.copyright {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #34495e;
}




.scroll-top {
    /* position: fixed; */
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.scroll-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    /* transform: translateY(-4px) scale(1.1); */
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.scroll-top:hover::before {
    transform: scale(1.1);
    opacity: 0.8;
}

.scroll-top:active {
    transform: translateY(-2px) scale(1.05);
    transition: all 0.1s ease;
}

.scroll-top i {
    transition: transform 0.3s ease;
}

.scroll-top:hover i {
    transform: translateY(-2px);
}



/* 검색 팝업 스타일 */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-popup.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-popup-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.search-popup.active .search-popup-content {
    transform: scale(1);
}

.search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.search-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.search-popup-body {
    padding: 24px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-submit-btn {
    padding: 12px 20px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-submit-btn:hover {
    background: #0056cc;
    transform: translateY(-1px);
}

.search-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    border-color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.search-result-details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.search-result-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.search-no-results h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.search-no-results p {
    font-size: 14px;
    color: #666;
}

/* 검색 버튼 스타일 */
/* .search-btn {
    background: #007aff; */
    /* color: white;
} */

.search-btn i {
    font-size: 18px;
    color: white;
}

.search-btn:hover {
    /* background: #0056cc; */
    transform: scale(1.1);
}

/* 반응형 검색 팝업 */
@media (max-width: 768px) {
    .search-popup.active {
        padding: 10px;
    }
    
    .search-popup-content {
        max-height: 90vh;
    }
    
    .search-popup-header {
        padding: 16px 20px;
    }
    
    .search-popup-body {
        padding: 20px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-submit-btn {
        justify-content: center;
    }
    
    .search-results {
        max-height: 300px;
    }
}

/* 사이드바 소셜 미디어 버튼 */
.sidebar-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.social-btn i {
    font-size: 20px;
    text-align: center;
}

.social-btn span {
    display: none; /* 텍스트 숨김 */
}

.social-btn.kakao-btn {
    background: linear-gradient(135deg, #FEE500 0%, #FFEB3B 100%);
    color: #3C1E1E;
}

.social-btn.kakao-btn:hover {
    background: linear-gradient(135deg, #FFEB3B 0%, #FEE500 100%);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.3);
}

.social-btn.instagram-btn {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    color: white;
}

.social-btn.instagram-btn:hover {
    background: linear-gradient(135deg, #C13584 0%, #E4405F 50%, #833AB4 100%);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(196, 53, 132, 0.3);
}

.social-btn.phone-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.social-btn.phone-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* 오시는길 페이지 스타일 */
.location-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 40px;
}

.location-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.location-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    padding: 40px;
    text-align: center;
}

.location-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.location-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.location-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section p {
    margin: 8px 0;
    color: #666;
    line-height: 1.6;
}

.map-section {
    display: flex;
    flex-direction: column;
}

.map-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-actions {
    padding: 30px 40px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.action-btn.phone-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.action-btn.map-btn {
    background: linear-gradient(135deg, #FEE500 0%, #FFEB3B 100%);
    color: #3C1E1E;
}

.action-btn.naver-btn {
    background: linear-gradient(135deg, #03C75A 0%, #00B04F 100%);
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .location-header {
        padding: 30px 20px;
    }
    
    .location-header h2 {
        font-size: 2rem;
    }
    
    .location-actions {
        padding: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}
/* 배너 드래그 기능 스타일 */
.banner-slider {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y;
}

.banner-slider:active {
    cursor: grabbing;
}

.banner-slider.dragging {
    cursor: grabbing;
    transition: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner-slide {
    pointer-events: none;
}

.banner-slide.active {
    pointer-events: auto;
}

/* 드래그 중 시각적 피드백 */
.banner-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.banner-slider.dragging::before {
    opacity: 1;
}

/* 드래그 힌트 텍스트 */
/* .banner-slider::after {
    content: '← 드래그하여 슬라이드 →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
} */

.banner-slider:hover::after {
    opacity: 1;
}

/* 모바일에서 힌트 숨기기 */
@media (max-width: 768px) {
    .banner-slider::after {
        display: none;
    }
}

/* 키보드 포커스 스타일 */
.banner-slider:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 드래그 중 애니메이션 비활성화 */
.banner-slider.dragging .banner-slide {
    transition: none !important;
}


/* 이미지 드래그 방지 */
.banner-image {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* 모든 이미지에 드래그 방지 적용 */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 배너 슬라이드 전체에 드래그 방지 */
.banner-slide {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


/* 이미지 드래그 방지 */
.banner-image {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* 배너 슬라이드 전체에서 이미지 드래그 방지 */
.banner-slide {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 드래그 중 이미지 선택 방지 */
.banner-slider.dragging * {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 품절 제품 카드 스타일 */
.product-card.out-of-stock {
    position: relative;
    opacity: 0.7;
}

/* 레고 스러운 귀여운 대여중 오버레이 스타일 */
/* 블럭팡 브랜드 컬러 대여중 오버레이 스타일 */
.out-of-stock-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(145deg, #e91e63, #e91e63);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    z-index: 15;
    box-shadow: 
        0 3px 0 #003d99,
        0 6px 12px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    font-family: 'Noto Sans KR', sans-serif;
    transform: rotate(-2deg);
    animation: legoBounce 2s ease-in-out infinite;
    cursor: default;
    user-select: none;
}

/* 레고 블록 느낌의 애니메이션 */
@keyframes legoBounce {
    0%, 100% {
        transform: rotate(-2deg) translateY(0);
        box-shadow: 
            0 3px 0 #003d99,
            0 6px 12px rgba(0, 122, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: rotate(-1deg) translateY(-2px);
        box-shadow: 
            0 4px 0 #003d99,
            0 8px 16px rgba(0, 122, 255, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* 호버 시 약간의 상호작용 */
.out-of-stock-overlay:hover {
    transform: rotate(0deg) scale(1.05);
    animation-play-state: paused;
}

/* 레고 블록 느낌의 점들 추가 */
.out-of-stock-overlay::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        6px 0 0 rgba(255, 255, 255, 0.4),
        12px 0 0 rgba(255, 255, 255, 0.3);
}

/* 텍스트에 작은 이모지 효과 */
.out-of-stock-overlay::after {
    /* content: ' 🧱'; */
    font-size: 10px;
    margin-left: 2px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .out-of-stock-overlay {
        font-size: 10px;
        padding: 4px 8px;
        top: 6px;
        left: 6px;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* 업데이트 알림 스타일 */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.update-notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.update-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: opacity 0.2s ease;
}

.update-notification-close:hover {
    opacity: 0.7;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

