/* ===== 프리미엄 오픈몰 스타일 ===== */

/* 히어로 웰컴 섹션 */
.hero-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    margin: 0 -20px 20px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero-welcome::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.feature-text {
    font-size: 12px;
    opacity: 0.9;
}

/* 프로모션 배너 */
.promotion-banner {
    margin: 20px -20px;
    position: relative;
}

.banner-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner-container::-webkit-scrollbar {
    display: none;
}

.banner-item {
    min-width: 100%;
    scroll-snap-align: start;
    border-radius: 20px;
    margin: 0 20px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.banner-subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    opacity: 0.95;
}

.banner-highlight {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.banner-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.original-price {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.7;
}

.sale-price {
    font-size: 20px;
    font-weight: 800;
}

.discount-rate {
    background: #FF4757;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.banner-timer {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.timer-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    min-width: 50px;
}

.timer-number {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.timer-label {
    font-size: 10px;
    opacity: 0.8;
}

.banner-stats {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

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

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.banner-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

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

/* 섹션 헤더 스타일 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-area {
    flex: 1;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #333;
}

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

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-filter {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.btn-filter:hover {
    background: #e9ecef;
}

.btn-filter.active:hover {
    background: #e55a2b;
}

.btn-more {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-refresh {
    background: none;
    border: 1px solid #e9ecef;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #f8f9fa;
    color: #333;
}

/* 특가 섹션 */
.deals-section {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 20px;
    padding: 24px;
    margin: 20px 0;
}

.deals-timer {
    background: #FF4757;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.timer-label {
    font-weight: 600;
    font-size: 14px;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 800;
}

/* 스마트스토어 섹션 */
.smartstore-section {
    margin: 24px 0;
}

.smartstore-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.store-badge {
    background: #f8f9fa;
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.store-badge.verified {
    background: #28a745;
    color: white;
}

.store-badge.fast-ship {
    background: #007bff;
    color: white;
}

.store-badge.best-price {
    background: #ffc107;
    color: #333;
}

/* 카테고리 쇼케이스 */
.category-showcase {
    margin: 24px 0;
}

.category-grid.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.category-grid.enhanced .category-item {
    background: white;
    border: 2px solid #f1f3f5;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-grid.enhanced .category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.category-grid.enhanced .category-item.active {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border-color: #FF6B35;
}

.category-grid.enhanced .category-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-grid.enhanced .category-item.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-grid.enhanced .category-name {
    font-size: 13px;
    font-weight: 600;
}

/* 인기 상품 섹션 */
.popular-products {
    margin: 24px 0;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    background: white;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.view-type-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-type-btn.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.product-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-filter-tabs .filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #f1f3f5;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.product-filter-tabs .filter-tab.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.tab-icon {
    font-size: 16px;
}

.tab-text {
    font-weight: 600;
    font-size: 14px;
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.product-filter-tabs .filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* 실시간 인디케이터 */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FF4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* 브랜드 스토리 섹션 */
.brand-story {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 32px 0;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #333;
}

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

.story-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.story-feature .feature-icon {
    font-size: 24px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #333;
}

.feature-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #FF6B35;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 고객 후기 섹션 */
.reviews-section {
    margin: 32px 0;
}

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

.review-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f5;
}

.review-rating {
    font-size: 14px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 16px 0;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.author-date {
    font-size: 12px;
    color: #666;
}

/* 반응형 디자인 */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-text {
        flex: 1.5;
    }
    
    .hero-visual {
        flex: 1;
    }
    
    .story-content {
        flex-direction: row;
        align-items: center;
    }
    
    .story-text {
        flex: 2;
    }
    
    .story-stats {
        flex: 1;
        margin-top: 0;
    }
    
    .story-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 상품 그리드 개선 */
.product-grid.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* 애니메이션 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.section-header,
.deals-section,
.brand-story,
.reviews-section {
    animation: fadeInUp 0.6s ease-out;
}
