* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #FFE4E1 0%, #E0F6FF 20%, #F0F8FF 40%, #FFFACD 60%, #FFE4B5 80%, #F0FFF0 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(144, 238, 144, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
    animation: splashMove 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}


@keyframes splashMove {
    0%, 100% {
        background-image: 
            radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(144, 238, 144, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 60% 70%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
    }
    25% {
        background-image: 
            radial-gradient(circle at 70% 30%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 30% 80%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 60%, rgba(144, 238, 144, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 10% 20%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
    }
    50% {
        background-image: 
            radial-gradient(circle at 90% 70%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 10% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 50% 90%, rgba(144, 238, 144, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 70% 10%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
    }
    75% {
        background-image: 
            radial-gradient(circle at 30% 20%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 70% 90%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 70%, rgba(144, 238, 144, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 90% 40%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ff0080, #00ff80, #8000ff, #ff8000, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}


.subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 700;
}

.filter-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.filter-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    background: linear-gradient(45deg, #ff0080, #8000ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: rainbowText 2s ease-in-out infinite;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-btn {
    background: linear-gradient(45deg, #ff0080, #ff4080, #ff8000);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.5);
    font-family: 'Comic Neue', cursive;
}

.filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.7);
}

.filter-btn.active {
    background: linear-gradient(45deg, #00ff80, #0080ff, #8000ff);
    box-shadow: 0 4px 15px rgba(0, 255, 128, 0.6);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}


.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 0, 128, 0.4);
    border-color: #00ff80;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff0080, #00ff80, #8000ff, #ff8000);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.product-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff0080, #ff4080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.product-features li::before {
    content: '🌟';
    position: absolute;
    left: 0;
    top: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff80, #0080ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 128, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 128, 0.7);
}

.btn-secondary {
    background: linear-gradient(45deg, #ff8000, #ff0080);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.5);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 128, 0, 0.7);
}

.comparison-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.comparison-table h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    background: linear-gradient(45deg, #00ff80, #0080ff, #8000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 25px;
    animation: rainbowText 2s ease-in-out infinite;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #f0f0f0;
}

th {
    background: linear-gradient(45deg, #00ff80, #0080ff, #8000ff);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

td {
    background: rgba(255, 255, 255, 0.8);
}

tr:hover td {
    background: rgba(0, 255, 128, 0.2);
}

.clear-comparison {
    background: linear-gradient(45deg, #ff0080, #ff4080, #ff8000);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    font-family: 'Comic Neue', cursive;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.5);
}

.clear-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.7);
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.footer p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
}