:root {
    --purple: #7c3aed;
    --purple-dark: #6d28d9;
    --purple-light: #a78bfa;
    --purple-bg: #f5f3ff;
    --dark: #1e1b4b;
}

body { font-family: 'Inter', sans-serif; color: #333; }

.btn-purple {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-purple:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(124,58,237,0.3); }

.btn-outline-purple {
    border: 2px solid var(--purple);
    color: var(--purple);
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-outline-purple:hover { background: var(--purple); color: #fff; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--purple) 0%, var(--dark) 100%);
    padding: 100px 0;
    color: #fff;
}
.hero-section h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.hero-section p { font-size: 1.2rem; opacity: 0.9; }

/* Product Card */
.product-card {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.product-card .card-img { height: 200px; object-fit: cover; background: var(--purple-bg); display:flex; align-items:center; justify-content:center; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-img .placeholder-icon { font-size: 3rem; color: var(--purple-light); }
.product-card .card-body { padding: 1.25rem; }
.product-card .category-badge { background: var(--purple-bg); color: var(--purple); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.product-card .price { color: var(--purple); font-weight: 700; font-size: 1.25rem; }
.product-card .original-price { text-decoration: line-through; color: #999; font-size: 0.9rem; }
.product-card .discount-badge { background: #fef2f2; color: #dc2626; padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }

/* Category Card */
.category-card {
    background: var(--purple-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}
.category-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.category-card .icon { font-size: 2.5rem; color: var(--purple); margin-bottom: 1rem; }

/* Sections */
.section-title { font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.section-subtitle { color: #666; margin-bottom: 2.5rem; }

/* Testimonial */
.testimonial-card { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.testimonial-card .stars { color: #fbbf24; }

/* Features */
.feature-card { text-align: center; padding: 2rem; }
.feature-card .icon-box { width: 80px; height: 80px; background: var(--purple-bg); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.feature-card .icon-box i { font-size: 2rem; color: var(--purple); }

/* Admin */
.admin-sidebar { background: var(--dark); min-height: 100vh; color: #fff; width: 260px; position: fixed; left: 0; top: 0; padding-top: 1.5rem; z-index: 1000; }
.admin-sidebar .nav-link { color: rgba(255,255,255,0.7); padding: 0.75rem 1.5rem; border-radius: 8px; margin: 0.15rem 0.75rem; transition: all 0.2s; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(124,58,237,0.3); color: #fff; }
.admin-sidebar .nav-link i { width: 24px; }
.admin-content { margin-left: 260px; padding: 2rem; background: #f8f7ff; min-height: 100vh; }

.stat-card { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* Status Badges */
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

/* Toggle Switch */
.toggle-switch { cursor: pointer; }

/* Alert */
.alert-floating { position: fixed; top: 20px; right: 20px; z-index: 9999; min-width: 300px; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* Responsive */
@media (max-width: 991px) {
    .hero-section h1 { font-size: 2.25rem; }
    .hero-section { padding: 60px 0; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-content { margin-left: 0; }
}
