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

:root {
    --primary-pink: #e91e63;
    --primary-purple: #9c27b0;
    --primary-blue: #2196f3;
    --text-color: #333;
    --bg-color: #ffffff;
    --header-bg: #f0f0f0;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --watercolor-gradient: linear-gradient(135deg,
        rgba(233, 30, 99, 0.85) 0%,
        rgba(236, 64, 122, 0.85) 20%,
        rgba(171, 71, 188, 0.85) 40%,
        rgba(156, 39, 176, 0.85) 60%,
        rgba(66, 165, 245, 0.85) 80%,
        rgba(33, 150, 243, 0.85) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
}

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

/* Header */
header {
    background: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.25) 0%, rgba(236, 64, 122, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 10s ease-in-out infinite;
}

header::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.25) 0%, rgba(66, 165, 245, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 12s ease-in-out infinite reverse;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 30% 70% / 50% 40% 60% 30%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 30% 70% 60% 40% / 70% 50% 30% 60%;
        transform: rotate(270deg) scale(1.05);
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 80px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-pink);
}

/* Hero Section */
.hero {
    background: var(--watercolor-gradient);
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: watercolor-pulse 8s ease-in-out infinite;
}

@keyframes watercolor-pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 10px) scale(1.1); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 3rem 0;
    position: relative;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Watercolor background blobs */
.featured-products::before,
.recent-comparisons::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.featured-products::before {
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.6) 0%, rgba(236, 64, 122, 0.4) 30%, transparent 70%);
    border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    animation: blob-float 15s ease-in-out infinite;
}

.recent-comparisons::before {
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.6) 0%, rgba(66, 165, 245, 0.4) 30%, transparent 70%);
    border-radius: 55% 45% 40% 60% / 60% 50% 60% 40%;
    animation: blob-float 18s ease-in-out infinite reverse;
}

.featured-products::after,
.recent-comparisons::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    filter: blur(50px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.featured-products::after {
    top: 50%;
    left: -50px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.5) 0%, rgba(171, 71, 188, 0.3) 30%, transparent 70%);
    border-radius: 60% 40% 50% 50% / 40% 55% 45% 60%;
    animation: blob-float 20s ease-in-out infinite;
}

.recent-comparisons::after {
    top: 30%;
    right: -80px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.5) 0%, rgba(171, 71, 188, 0.3) 30%, transparent 70%);
    border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%;
    animation: blob-float 22s ease-in-out infinite reverse;
}

@keyframes blob-float {
    0%, 100% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        border-radius: 60% 40% 45% 55% / 55% 50% 50% 45%;
        transform: translate(30px, -20px) rotate(120deg);
    }
    66% {
        border-radius: 50% 50% 55% 45% / 45% 55% 45% 55%;
        transform: translate(-20px, 30px) rotate(240deg);
    }
}

.featured-products .container,
.recent-comparisons .container {
    position: relative;
    z-index: 1;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--watercolor-gradient);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-card .category {
    display: inline-block;
    background: var(--watercolor-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.product-card .rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.product-card .description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--watercolor-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* Comparisons Grid */
.comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.comparison-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--watercolor-gradient);
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card h3 {
    margin-bottom: 1rem;
}

.comparison-items {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-items img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer .disclaimer {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 0.5rem;
}

/* Admin Styles */
.admin-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Analytics Dashboard */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.click-log {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .products-grid,
    .comparisons-grid {
        grid-template-columns: 1fr;
    }
}