/* Shop Hero Section */
.shop-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px; /* limit height so particles background isn't too tall */
    max-height: 50vh;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.stat-item i {
    font-size: 1.5rem;
    color: #ffffff;
}

.stat-item span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Shop Section */
.shop-section {
    padding: 60px 0;
    background: #f8fafc;
    background-image:
        radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.08) 0px, transparent 50%),
        radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.08) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.08) 0px, transparent 50%);
    min-height: 100vh;
}

/* Shop Tabs */
.shop-tabs {
    border-bottom: 3px solid rgba(102, 126, 234, 0.2);
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.shop-tabs .nav-link {
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-tabs .nav-link i {
    font-size: 1.2rem;
}

.shop-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.shop-tabs .nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.12);
}

/* Vehicle Category Pills */
.vehicle-category-pills {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.vehicle-category-pills .nav-link {
    color: #64748b;
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-category-pills .nav-link:hover {
    color: #667eea;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.vehicle-category-pills .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.vehicle-category-pills .nav-link i {
    font-size: 1.1rem;
}

/* VIP Packages Grid */
.vip-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.vip-package {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.vip-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.vip-package:hover::before {
    left: 100%;
}

.vip-package:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.vip-bronze {
    border-color: #cd7f32;
}

.vip-bronze:hover {
    box-shadow: 0 20px 50px rgba(205, 127, 50, 0.3);
}

.vip-silver {
    border-color: #c0c0c0;
}

.vip-silver:hover {
    box-shadow: 0 20px 50px rgba(192, 192, 192, 0.4);
}

.vip-gold {
    border-color: #ffd700;
}

.vip-gold:hover {
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
}

.vip-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
    z-index: 2;
}

.vip-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.vip-bronze .vip-icon {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    color: #cd7f32;
}

.vip-silver .vip-icon {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    color: #c0c0c0;
}

.vip-gold .vip-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    color: #ffd700;
}

.vip-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vip-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.vip-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.vip-features li {
    padding: 12px 0;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.vip-features li:last-child {
    border-bottom: none;
}

.vip-features li i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vip-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.vip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    color: #ffffff;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    outline: none;
    text-decoration: none;
}

.product-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 290px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-loader i {
    font-size: 3rem;
    color: #cbd5e1;
}

.product-image {
    width: 290px;
    height: 290px;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.product-id {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-buy-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.product-card:hover .product-buy-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Other Items Grid */
.other-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.other-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    outline: none;
    text-decoration: none;
}

.other-item:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.other-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.other-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.other-item h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.other-item p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
}

.other-price {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading State */
.tab-content > .tab-pane {
    min-height: 400px;
}

.tab-pane.fade:not(.show) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .vip-packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .stat-item i {
        font-size: 1.2rem;
    }

    .stat-item span {
        display: none;
    }

    .shop-tabs .nav-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .shop-tabs .nav-link span {
        display: none;
    }

    .shop-tabs .nav-link i {
        font-size: 1.3rem;
    }

    .vehicle-category-pills .nav-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .vip-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vip-title {
        font-size: 1.5rem;
    }

    .vip-price {
        font-size: 2rem;
    }

    .product-image-container {
        height: 250px;
    }

    .product-image {
        width: 250px;
        height: 250px;
    }

    .other-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .other-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .other-item h4 {
        font-size: 1.1rem;
    }

    .other-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-item {
        padding: 10px 15px;
    }

    .product-image-container {
        height: 200px;
    }

    .product-image {
        width: 200px;
        height: 200px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-buy-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .vip-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .vip-features li {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}

/* Shop loading overlay */
.shop-loading {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.shop-loading.d-none { display: none; }

.shop-loading-inner {
    text-align: center;
    color: #ffffff;
}

.shop-loading .loading-text {
    margin-top: 12px;
    font-weight: 700;
}
