/* Products Page Styles */
main {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #93c5fd, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #93c5fd;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(66, 153, 225, 0.1);
    color: #93c5fd;
    border: 2px solid rgba(66, 153, 225, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.product-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(66, 153, 225, 0.2);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.1), transparent 70%);
    animation: rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(66, 153, 225, 0.3);
    border-color: rgba(220, 38, 38, 0.5);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.3), rgba(220, 38, 38, 0.3));
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.product-card h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.product-description {
    color: #93c5fd;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    color: #dc2626;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.product-price .old-price {
    color: rgba(147, 197, 253, 0.5);
    font-size: 1.2rem;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.add-to-cart {
    background: linear-gradient(135deg, #4299e1, #7c3aed);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(66, 153, 225, 0.4);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.add-to-cart:hover {
    box-shadow: 0 12px 30px rgba(66, 153, 225, 0.6);
    transform: translateY(-2px);
}

.add-to-cart:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.add-to-cart.added {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    pointer-events: none;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 14, 39, 0.95));
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(66, 153, 225, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.cart-header h2 {
    color: #dc2626;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #93c5fd, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-cart {
    background: rgba(220, 38, 38, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(66, 153, 225, 0.1);
}

.cart-item-info h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #dc2626;
    font-weight: bold;
    font-size: 1.1rem;
}

.remove-item {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.remove-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.6);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0;
    text-align: center;
    color: #dc2626;
    padding: 1rem;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.checkout-btn {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.7);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #93c5fd;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}