  :root {
    --purple-glow: rgba(200, 150, 255, 0.4);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

body.light {
    --bg: #f5f5f5;
    --text: #222;
    --card: #fff;
    --shadow: rgba(0,0,0,0.1);
    --bg-image: url('https://files.catbox.moe/t89hhr.jpg');
}

body.dark {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #1e293b;
    --shadow: rgba(0,0,0,0.4);
    --bg-image: url('https://files.catbox.moe/t89hhr.jpg');
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
    border-radius: 0 0 20px 20px;
}

header img.profile {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text);
    box-shadow: 0 0 10px var(--purple-glow);
    transition: var(--transition);
}

header h1 {
    margin: 1rem 0 0.3rem;
}

header p {
    opacity: 0.8;
    margin: 0;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--card);
    color: var(--text);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--shadow);
    transition: var(--transition);
    z-index: 9999;
}

.theme-toggle:hover {
    box-shadow: 0 0 12px var(--purple-glow);
    transform: scale(1.05);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.product {
    background: var(--card);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.product:nth-child(1) { animation-delay: 0.2s; }
.product:nth-child(2) { animation-delay: 0.4s; }
.product:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

.product:hover {
    box-shadow: 0 0 15px var(--purple-glow);
    transform: translateY(-4px);
}

.product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.product h3 {
    margin: 0.8rem 0 0.4rem;
}

.product p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.buy-btn {
    background: #c084fc;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.buy-btn:hover {
    background: #a855f7;
}