:root[data-theme="dark"] {
    --bg-primary: #0f1115;
    --text-primary: #f8f9fb;
    --text-secondary: #a0a5b1;
    --accent-1: #00f0ff; /* Cyan */
    --accent-2: #7a5cff; /* Purple */
    --accent-1-rgb: 0, 240, 255;
    --accent-2-rgb: 122, 92, 255;
    --glass-bg: rgba(20, 23, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-neumorphic: -5px -5px 10px rgba(255, 255, 255, 0.02), 5px 5px 15px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
    --bg-primary: #f8f9fb;
    --text-primary: #1a1a24;
    --text-secondary: #5a5a6a;
    --accent-1: #d4af37; /* Gold */
    --accent-2: #c0c0c0; /* Platinum */
    --accent-1-rgb: 212, 175, 55;
    --accent-2-rgb: 192, 192, 192;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-neumorphic: -5px -5px 15px rgba(255, 255, 255, 0.8), 5px 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

canvas#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1 { font-size: 4rem; font-weight: 700; background: linear-gradient(to right, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2.5rem; font-weight: 500; margin-bottom: 1rem; }
.subtitle { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-neumorphic);
    border-radius: 20px;
}

/* Nav */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    border-radius: 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--accent-1);
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-1));
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.icon-btn:hover { color: var(--accent-1); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--accent-1-rgb), 0.3);
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-1-rgb), 0.5);
}

html[data-theme="light"] .primary-btn {
    color: #000;
}

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

.whatsapp-btn { background: #25D366; color: white; }
.whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    gap: 5%;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-product-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.4) 0%, transparent 70%);
    filter: blur(30px);
    animation: pulse 4s infinite alternate;
}
.hero-image-container img {
    max-width: 100%;
    height: auto;
    z-index: 1;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    border-radius: 20px;
}
.hero-image-container img:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.05);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}
@keyframes float {
    0% { transform: translateY(0px) perspective(1000px) rotateY(-15deg) rotateX(10deg); }
    50% { transform: translateY(-20px) perspective(1000px) rotateY(-15deg) rotateX(10deg); }
    100% { transform: translateY(0px) perspective(1000px) rotateY(-15deg) rotateX(10deg); }
}
.floating { animation: float 6s ease-in-out infinite; }

/* Filter */
.filters {
    display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: rgba(var(--accent-1-rgb), 0.2);
    border-color: var(--accent-1);
    box-shadow: 0 0 15px rgba(var(--accent-1-rgb), 0.3);
}

/* Products */
.products-section { padding: 5rem 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}
.product-card {
    padding: 1.5rem; border-radius: 20px; display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative; overflow: hidden; cursor: pointer;
}
.product-card::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease; border-radius: 50%; z-index: 0;
}
.product-card:hover::before { width: 200%; height: 200%; }
.product-card:hover {
    transform: translateY(-10px); border-color: rgba(var(--accent-1-rgb), 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 20px rgba(var(--accent-1-rgb), 0.2);
}
.product-img {
    width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 1rem;
    z-index: 1; position: relative; transition: transform 0.5s;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-title { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.5rem; z-index: 1; position: relative; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-1); margin-bottom: 1rem; z-index: 1; position: relative; }
.product-actions { display: flex; width: 100%; gap: 0.5rem; z-index: 1; position: relative; }

.buy-btn {
    flex: 1; padding: 0.6rem; background: transparent; border: 1px solid var(--accent-1);
    color: var(--text-primary); border-radius: 10px; cursor: pointer; transition: all 0.3s;
}
.buy-btn:hover { background: var(--accent-1); color: #000; }
.wa-icon-btn {
    padding: 0.6rem 1rem; background: rgba(37, 211, 102, 0.1); color: #25D366;
    border: 1px solid #25D366; border-radius: 10px; cursor: pointer; transition: all 0.3s;
    text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.wa-icon-btn:hover { background: #25D366; color: white; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }

/* Contact */
.contact-section { margin: 5rem 5%; padding: 4rem; text-align: center; }
.contact-section h2 { margin-bottom: 1rem; }
.contact-section p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-buttons { margin-bottom: 3rem; }
.large-socials { display: flex; justify-content: center; gap: 2rem; }
.large-socials a { font-size: 2.5rem; color: var(--text-primary); transition: all 0.3s; }
.large-socials a:hover { color: var(--accent-2); transform: scale(1.2) rotate(5deg); filter: drop-shadow(0 0 10px var(--accent-2)); }

footer {
    padding: 2rem 5%; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 5rem;
    background: rgba(0,0,0,0.2);
}
.footer-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; }
.footer-socials { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; }
.footer-socials a { color: var(--text-secondary); font-size: 1.2rem; }

/* Admin Base */
.admin-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.glass-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center; z-index: 2000;
}
.login-box { padding: 3rem; width: 100%; max-width: 400px; text-align: center; }
.login-box h2 { margin-bottom: 2rem; }
.glass-input {
    width: 100%; padding: 1rem; margin-bottom: 1.5rem; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary);
    outline: none; transition: all 0.3s;
}
html[data-theme="light"] .glass-input { background: rgba(0, 0, 0, 0.05); }
.glass-input:focus { border-color: var(--accent-1); box-shadow: 0 0 10px rgba(var(--accent-1-rgb), 0.2); }
.error-msg { color: #ff4d4d; margin-top: 1rem; font-size: 0.9rem; }

.admin-dashboard { width: 100%; max-width: 1200px; padding: 2rem; margin: 0 auto; margin-top: 80px;}
.admin-nav {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; margin-bottom: 2rem;
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px; z-index: 1000;
}
.outline-btn { border: 1px solid var(--text-primary); color: var(--text-primary); padding: 0.5rem 1rem; }
.danger-btn { background: #ff4d4d; color: white; padding: 0.5rem 1rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.card { padding: 2rem; }
.input-group { text-align: left; margin-bottom: 1rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
.w-100 { width: 100%; }

.admin-product-list { display: flex; flex-direction: column; gap: 1rem; max-height: 500px; overflow-y: auto; padding-right: 0.5rem;}
.admin-product-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem; background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border); border-radius: 10px;
}
.admin-product-info { display: flex; align-items: center; gap: 1rem; }
.admin-product-info img { width: 50px; height: 50px; object-fit: cover; border-radius: 5px; }
.admin-product-item .action-btns button { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    h1 { font-size: 2.5rem; }
    .navbar { flex-wrap: wrap; justify-content: center; gap: 1rem; border-radius: 20px;}
    .nav-links { display: none; }
    .admin-nav { flex-wrap: wrap; gap: 1rem; justify-content: center; }
}
