/* ============================================
   Mobile Page Styles - 대박통신 스타일
   ============================================ */

.mobile-page {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

/* Mobile Hero */
.mobile-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.mobile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.mobile-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Category Filter */
.category-filter {
    background: #fff;
    padding: 16px 0;
    /* Reduced padding for better mobile feel */
    position: sticky;
    top: 60px;
    /* Matched to mobile header height */
    z-index: 90;
    /* Lower than header (1000) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: center;
}

.filter-tab {
    padding: 12px 28px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Product Section */
.product-section {
    padding: 60px 0 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* Product Card - 대박통신 스타일 */
.product-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

.product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.badge-sale {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.badge-kids {
    background: linear-gradient(135deg, #ff69b4, #ff85c1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

/* Product Image */
.product-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #f8f9fc 0%, #f1f3f5 100%);
    border-radius: 20px;
    padding: 30px 20px;
    min-height: 200px;
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
}

.product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Colors */
.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* Product Tags */
.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    font-size: 0.8rem;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Product Info */
.product-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 14px;
    text-align: center;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    justify-content: center;
}

.original-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, #fff5f5, #ffe3e3);
    color: #ff6b6b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.final-price {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 16px;
    text-align: center;
}

.final-price strong {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1a1a2e;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carrier Icons */
.carrier-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    justify-content: center;
}

.carrier {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.carrier.skt {
    background: linear-gradient(135deg, #fff0f3, #ffe3e8);
    color: #e60012;
}

.carrier.kt {
    background: linear-gradient(135deg, #fff5ed, #ffe8d6);
    color: #ff6600;
}

.carrier.lg {
    background: linear-gradient(135deg, #fff0f3, #ffe3e8);
    color: #a50034;
}

/* Product Button */
.product-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-align: center;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd6, #6a3f96);
}

/* Mobile CTA */
.mobile-cta {
    padding: 60px 0;
    background: #fff;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #fff;
    color: #667eea;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-phone-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mobile-hero-title {
        font-size: 2.2rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .mobile-hero {
        padding: 100px 0 50px;
    }

    .mobile-hero-title {
        font-size: 1.8rem;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .cta-box {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .product-card {
        padding: 20px;
    }
}