/* 쇼핑몰 모드 스타일 */
.shopping-mode {
    padding-bottom: 70px;
}

/* 헤더 스타일 */
.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: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    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 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
}

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

/* 메인 배너 스타일 (백업 버전 복원) */
.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: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    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 {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        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: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    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: 3;
}

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

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

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

/* 플로팅 카테고리 사이드바 */
.floating-category-sidebar {
    position: fixed;
    top: 50%;
    right: -220px; /* 초기에는 숨김 */
    transform: translateY(-50%);
    width: 250px;
    max-height: 80vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px 0 0 20px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    border: 2px solid #e9ecef;
    overflow: hidden;
}

.floating-category-sidebar.expanded {
    right: 0; /* expanded일 때 항상 화면에 보이도록 */
}

.sidebar-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle {
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    border: none;
    border-radius: 10px 0 0 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    transform: translateY(-50%) scale(1.05);
}

.toggle-icon {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.floating-category-sidebar.expanded .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-content {
    padding: 20px 0;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    border-radius: 3px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    border-left-color: #FF6B35;
    transform: translateX(5px);
}

.category-item.active {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    border-left-color: #FF6B35;
    font-weight: 600;
}

.category-icon {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.category-item:hover .category-name {
    color: #FF6B35;
    font-weight: 600;
}

.category-item.active .category-name {
    color: #FF6B35;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .floating-category-sidebar {
        width: 200px;
        right: -170px;
    }
    
    .sidebar-toggle {
        left: -35px;
        width: 32px;
        height: 50px;
    }
    
    .sidebar-title {
        font-size: 16px;
    }
    
    .category-item {
        padding: 10px 15px;
    }
    
    .category-icon {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
    
    .category-name {
        font-size: 13px;
    }
}

/* 모바일에서는 더 작게 */
@media (max-width: 480px) {
    .floating-category-sidebar {
        width: 180px;
        right: -150px;
    }
    
    .category-item {
        padding: 8px 12px;
    }
    
    .category-icon {
        font-size: 18px;
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

/* 계층적 카테고리 사이드바 스타일 */
.category-group {
    margin-bottom: 10px;
}

.main-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.main-category:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.main-category-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-category-header:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #FF9F2E 100%);
}

.main-category-header .category-icon {
    font-size: 20px;
    margin-right: 10px;
}

.main-category-header .category-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.main-category-header .expand-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.main-category.expanded .expand-icon {
    transform: rotate(180deg);
}

.subcategory-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
}

.main-category.expanded .subcategory-list {
    max-height: 500px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-left: 25px;
}

.subcategory-item.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    color: white;
    font-weight: 600;
}

.subcategory-item.active::before {
    content: '●';
    position: absolute;
    left: 8px;
    color: white;
    font-size: 8px;
}

.subcategory-item .subcategory-icon {
    font-size: 16px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.subcategory-item:hover .subcategory-icon {
    transform: scale(1.2);
}

.subcategory-item .subcategory-name {
    font-size: 14px;
    flex: 1;
}

/* 대분류별 색상 구분 */
.main-category[data-category="남녀공용"] .main-category-header {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
}

.main-category[data-category="남녀공용"] .main-category-header:hover {
    background: linear-gradient(135deg, #45A049 0%, #7CB776 100%);
}

.main-category[data-category="남녀공용"] .subcategory-item.active {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
}

.main-category[data-category="여성의류"] .main-category-header {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
}

.main-category[data-category="여성의류"] .main-category-header:hover {
    background: linear-gradient(135deg, #D81B60 0%, #EC407A 100%);
}

.main-category[data-category="여성의류"] .subcategory-item.active {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-category-header {
        padding: 12px;
        font-size: 14px;
    }
    
    .main-category-header .category-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .subcategory-item {
        padding: 10px 15px;
    }
    
    .subcategory-item .subcategory-icon {
        font-size: 14px;
        margin-right: 8px;
    }
    
    .subcategory-item .subcategory-name {
        font-size: 12px;
    }
}

/* 의류 전용 카테고리 레이아웃 */
.clothing-category-layout {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-section {
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.brand-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.brand-section .section-header {
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.brand-section .section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
}

.brand-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-section .section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.brand-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.15);
    border-color: #FF6B35;
}

.brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    transform: rotate(5deg) scale(1.1);
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.brand-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.brand-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.brand-stat {
    text-align: center;
}

.brand-stat .stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
}

.brand-stat .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 섹션별 색상 구분 */
.unisex-brands .section-title {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unisex-brands .brand-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.15);
}

.women-brands .section-title {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.women-brands .brand-card:hover {
    border-color: #E91E63;
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.15);
}

/* 각 브랜드 섹션 하단의 상품 그리드 스타일 */
.brand-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

/* UI에 불필요한 텍스트가 노출되는 것을 방지하기 위해 제거 */
/* .brand-section .product-grid::before { }
*/

/* 브랜드별 상품 페이지 스타일 */
.brand-products-section {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.brand-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.brand-products-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.btn-back {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-back:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.brand-products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 사용 안내 메시지 */
.usage-hint {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #1565c0;
    font-weight: 500;
}

.usage-hint .hint-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.usage-hint .hint-text {
    margin: 0;
    line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .clothing-category-layout {
        padding: 15px;
    }
    
    .brand-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .brand-section .section-title {
        font-size: 24px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .brand-card {
        padding: 20px;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-section .section-title {
        font-size: 20px;
    }
    
    .brand-card {
        padding: 15px;
    }
}

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

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

.shopping-mode .left-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.shopping-mode .left-icon-btn {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.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;
}

/* 하단 네비게이션 - PC/모바일 모두 표시 */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1px solid #e0e0e0 !important;
    padding: 8px 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    width: 100% !important;
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    border: none !important;
    background: none !important;
    color: #999 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-item:hover {
    color: #666 !important;
}

.nav-item.active {
    color: #FF6B35 !important;
    font-weight: 600 !important;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* PC에서 하단 네비게이션 스타일 개선 */
@media (min-width: 768px) {
    .bottom-nav {
        padding: 12px 0;
        border-top: 1px solid #e0e0e0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }
    
    .nav-item {
        padding: 12px 8px;
        border-radius: 8px;
        margin: 0 4px;
    }
    
    .nav-item:hover {
        background: rgba(255, 107, 53, 0.1);
        color: #FF6B35;
    }
    
    .nav-item svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 12px;
        margin-top: 2px;
    }
}

/* 반응형 - 상품 그리드 */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}