/* ======= 쇼핑몰 모드 스타일 ======= */

/* 카테고리 네비게이션 - Sticky 기능 */
.shopping-mode .category-nav.sticky-category {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 스크롤 시 카테고리 네비게이션 스타일 개선 */
.shopping-mode .category-nav.sticky-category.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.shopping-mode .main-categories {
    display: flex;
    overflow-x: auto;
    padding: 15px 20px;
    gap: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shopping-mode .main-categories::-webkit-scrollbar {
    display: none;
}

.shopping-mode .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid transparent;
}

.shopping-mode .category-item:hover {
    background: #f8f9fa;
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.shopping-mode .category-item.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    border-color: #FF6B35;
    color: white;
}

.shopping-mode .category-icon {
    font-size: 24px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.shopping-mode .category-item:hover .category-icon {
    transform: scale(1.1);
}

.shopping-mode .category-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    color: #333;
    transition: color 0.3s ease;
}

.shopping-mode .category-item.active .category-name {
    color: white;
}

/* 새로운 카테고리 그리드 스타일 */
.shopping-mode .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.shopping-mode .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.shopping-mode .category-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shopping-mode .category-item.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.shopping-mode .category-icon {
    margin-bottom: 8px;
}

.shopping-mode .category-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.shopping-mode .category-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* 서브 카테고리 스타일 */
.shopping-mode .sub-categories {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: none;
}

.shopping-mode .sub-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.shopping-mode .sub-category-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .sub-category-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.shopping-mode .sub-category-btn.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

/* 메인 배너 스타일 */
.shopping-mode .main-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0;
}

.shopping-mode .banner-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.shopping-mode .banner-item {
    width: 33.333%;
    background: linear-gradient(135deg, #FF6B35, #FFB347);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.shopping-mode .banner-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.shopping-mode .banner-content p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.shopping-mode .banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .banner-btn:hover {
    background: white;
    color: #FF6B35;
}

.shopping-mode .banner-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.shopping-mode .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 로그인 섹션 스타일 */
.shopping-mode .login-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 0;
}

.shopping-mode .login-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.shopping-mode .login-section p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.5;
}

.shopping-mode .google-login-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #333;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shopping-mode .google-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.shopping-mode .google-icon {
    width: 20px;
    height: 20px;
}

.shopping-mode .google-login-error {
    margin-top: 16px;
    color: #ffcccb;
    font-size: 14px;
    display: none;
}

/* 실시간 랭킹 섹션 */
.shopping-mode .ranking-section {
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shopping-mode .section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.shopping-mode .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shopping-mode .live-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.shopping-mode .live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.shopping-mode .view-all {
    color: #FF6B35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.shopping-mode .view-all:hover {
    text-decoration: underline;
}

/* 상품 필터 탭 */
.shopping-mode .product-filter {
    margin-bottom: 24px;
}

.shopping-mode .filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shopping-mode .filter-tab {
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .filter-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.shopping-mode .filter-tab.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

/* 검색 관련 스타일 */
.shopping-mode .search-section {
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shopping-mode .popular-keywords h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.shopping-mode .keyword-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shopping-mode .keyword-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .keyword-btn:hover {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.shopping-mode .search-results-section {
    margin-top: 24px;
}

.shopping-mode .search-results-section.hidden {
    display: none;
}

.shopping-mode .search-result-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #495057;
}

.shopping-mode .search-keyword {
    color: #FF6B35;
    font-weight: 600;
}

/* 로딩 인디케이터 */
.shopping-mode .loading-indicator {
    text-align: center;
    padding: 40px;
    color: #666;
}

.shopping-mode .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .shopping-mode .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 12px;
        padding: 16px;
    }
    
    .shopping-mode .category-item {
        padding: 12px 6px;
    }
    
    .shopping-mode .category-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .shopping-mode .category-name {
        font-size: 10px;
    }
    
    .shopping-mode .main-banner {
        height: 150px;
    }
    
    .shopping-mode .banner-content h2 {
        font-size: 18px;
    }
    
    .shopping-mode .banner-content p {
        font-size: 12px;
    }
    
    .shopping-mode .login-section {
        padding: 24px 16px;
    }
    
    .shopping-mode .login-section h2 {
        font-size: 20px;
    }
    
    .shopping-mode .login-section p {
        font-size: 14px;
    }
}

/* 상품 그리드 스타일 */
.shopping-mode .products-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shopping-mode .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px; /* 하단 네비게이션 공간 확보 */
}

/* 상품 카드 스타일 */
.shopping-mode .product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.shopping-mode .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.shopping-mode .product-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    background-size: cover;
    background-position: center;
    position: relative;
}

.shopping-mode .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.shopping-mode .badge-group-buy {
    background: linear-gradient(135deg, #FF6B35, #FFB347);
}

.shopping-mode .badge-regular {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.shopping-mode .product-info {
    padding: 16px;
}

.shopping-mode .product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shopping-mode .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shopping-mode .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
}

.shopping-mode .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.shopping-mode .discount-rate {
    background: #FF6B35;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 공동구매 진행률 */
.shopping-mode .group-buy-progress {
    margin-bottom: 12px;
}

.shopping-mode .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.shopping-mode .progress-text {
    font-size: 12px;
    color: #666;
}

.shopping-mode .progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.shopping-mode .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FFB347);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.shopping-mode .time-left {
    font-size: 12px;
    color: #FF6B35;
    font-weight: 600;
    margin-top: 6px;
}

/* 상품 액션 버튼 */
.shopping-mode .product-actions {
    display: flex;
    gap: 8px;
}

.shopping-mode .btn-wishlist {
    flex: 0 0 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .btn-wishlist:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.shopping-mode .btn-cart {
    flex: 1;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35, #FFB347);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-mode .btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 반응형 상품 그리드 */
@media (max-width: 768px) {
    .shopping-mode .products-container {
        padding: 15px;
    }
    
    .shopping-mode .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .shopping-mode .product-image {
        height: 120px;
    }
    
    .shopping-mode .product-info {
        padding: 12px;
    }
    
    .shopping-mode .product-name {
        font-size: 14px;
    }
    
    .shopping-mode .current-price {
        font-size: 16px;
    }
}

/* 토스트 메시지 스타일 */
.shopping-mode .toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 80%;
    text-align: center;
}

@media (max-width: 768px) {
    .shopping-mode .toast {
        bottom: 80px;
        font-size: 13px;
        padding: 10px 20px;
    }
}
.shopping-mode .header {
    position: relative;
    background: #ffffff;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.shopping-mode .header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.shopping-mode .top-banner {
    background: linear-gradient(90deg, #FF6B35 0%, #FFB347 100%);
    color: white !important;
    text-align: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.shopping-mode .top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* 강제로 텍스트 색상 유지 */
.shopping-mode .top-banner,
.shopping-mode .top-banner *,
.shopping-mode .top-banner::after,
.shopping-mode .top-banner span,
.shopping-mode .top-banner p,
.shopping-mode .top-banner div {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.shopping-mode .header[style*="transform"] .top-banner,
.shopping-mode .header[style*="transform"] .top-banner * {
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.shopping-mode .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
}

/* left-icons/left-icon-btn 제거됨 */

.shopping-mode .logo {
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    letter-spacing: -1px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.shopping-mode .header-icons {
    display: flex;
    gap: 16px;
}

.shopping-mode .icon-btn {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.shopping-mode .icon-btn:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.shopping-mode .icon-btn svg {
    width: 20px;
    height: 20px;
}

.shopping-mode .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.shopping-mode .search-bar {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
    background: #f8f8f8;
}

.shopping-mode .search-bar.show {
    max-height: 80px;
}

.shopping-mode .search-input-container {
    padding: 12px 16px;
    position: relative;
}

.shopping-mode .search-input {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 10px 40px 10px 16px;
    border: 2px solid #000000;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.shopping-mode .search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.shopping-mode .search-submit {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.shopping-mode .page {
    display: none;
    min-height: calc(100vh - 70px);
    padding-top: 0;
}

.shopping-mode .page.active {
    display: block;
}

.shopping-mode .login-section {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 50%, #f0f8ff 100%);
    border-radius: 16px;
    margin: 16px;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.12);
    border: 2px solid #FFE4E1;
    position: relative;
    overflow: hidden;
}

.shopping-mode .login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.shopping-mode .login-section > * {
    position: relative;
    z-index: 1;
}

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

.shopping-mode .login-section h2 {
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.shopping-mode .login-section p {
    color: #666666;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.4;
}

.shopping-mode .google-login-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #ffffff 0%, #f8f8f8 100%);
    border: 2px solid #FF6B35;
    border-radius: 25px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #FF6B35;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 16px rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.shopping-mode .google-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.shopping-mode .google-login-button:hover::before {
    left: 100%;
}

.shopping-mode .google-login-button:hover {
    background: linear-gradient(45deg, #FF6B35 0%, #FFB347 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    border-color: #FFB347;
}

.shopping-mode .google-icon {
    width: 20px;
    height: 20px;
}

.shopping-mode .google-login-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    color: #991b1b;
    font-size: 14px;
    display: none;
}

.shopping-mode .main-banner {
    height: 200px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 50%, #FF8C42 100%);
    position: relative;
    overflow: hidden;
}

.shopping-mode .main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.shopping-mode .main-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
}

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

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shopping-mode .banner-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.shopping-mode .banner-item {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 50px;
}

.shopping-mode .banner-content {
    position: relative;
    text-align: center;
    z-index: 2;
    color: #ffffff;
}

.shopping-mode .banner-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease;
}

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

.shopping-mode .banner-subtitle {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 20px;
}

.shopping-mode .banner-btn {
    background: linear-gradient(45deg, #ffffff 0%, #f8f8f8 100%);
    color: #FF6B35;
    border: 2px solid #ffffff;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shopping-mode .banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s;
}

.shopping-mode .banner-btn:hover::before {
    left: 100%;
}

.shopping-mode .banner-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #ffffff 0%, #fff8f0 100%);
    border-color: #FFB347;
}

.shopping-mode .banner-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.shopping-mode .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.shopping-mode .indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.shopping-mode .category-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.shopping-mode .category-nav.scrolled {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.shopping-mode .category-grid {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.shopping-mode .category-grid::-webkit-scrollbar {
    display: none;
}

.shopping-mode .category-item:last-child {
    margin-right: 20px;
}

.shopping-mode .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 60px;
    padding: 8px 4px;
    border-radius: 12px;
}

.shopping-mode .category-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 107, 53, 0.05);
}

.shopping-mode .category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.shopping-mode .category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FF6B35 0%, #FFB347 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.shopping-mode .category-item:hover .category-icon {
    transform: translateY(-2px) scale(1.05);
    border-color: #FF6B35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.shopping-mode .category-item:hover .category-icon::before {
    opacity: 1;
}

.shopping-mode .category-item:hover .category-icon svg {
    color: #ffffff;
}

.shopping-mode .category-icon svg {
    width: 24px;
    height: 24px;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.shopping-mode .category-name {
    font-size: 10px;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shopping-mode .category-item:hover .category-name {
    color: #FF6B35;
    font-weight: 600;
    transform: scale(1.05);
}

/* API 통신 상태 표시 */
.api-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 10000;
    display: none;
}