/* MeowCraft Shop Styles - Clean Sober Design */

/* Shop Hero */
.shop-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0f 0%, #14141e 100%);
}

.cart-indicator {
    margin-top: 2rem;
}

.cart-btn {
    background: var(--gradient-1);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}

/* Shop Categories */
.shop-categories {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

.category-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.products-section.hidden {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Product Cards */
.product-card {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-card.popular {
    border: 2px solid var(--primary-color);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-description {
    color: #a0a0a0;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffd700;
    margin: auto 0 1.25rem;
}

.add-to-cart {
    width: 100%;
}

/* Rank Cards */
.rank-card .rank-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.rank-badge.vip {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.rank-badge.mvp {
    background: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
}

.rank-badge.elite {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
}

.rank-badge.legend {
    background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    padding: 0.4rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
}

.perks-list {
    list-style: none;
    text-align: left;
    margin: 1.25rem 0;
    flex-grow: 1;
}

.perks-list li {
    padding: 0.5rem 0;
    color: #a0a0a0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.08);
    font-size: 0.95rem;
}

.perks-list li:last-child {
    border-bottom: none;
}

/* Bundle Cards */
.bundle-card {
    position: relative;
}

.save-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #4caf50;
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
}

.bundle-items {
    list-style: none;
    text-align: left;
    margin: 1.25rem 0;
    flex-grow: 1;
}

.bundle-items li {
    padding: 0.4rem 0;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.new-price {
    color: #ffd700;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: #0a0a0f;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

.cart-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 8px;
}

.item-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.item-price {
    color: #ffd700;
    font-weight: 600;
}

.remove-item {
    background: #f44336;
    border: none;
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #d32f2f;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.total-price {
    color: #ffd700;
}

.checkout-btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .cart-content {
        width: 95%;
        max-height: 90vh;
    }

    .cart-header,
    .cart-items,
    .cart-footer {
        padding: 1rem;
    }
}
