/* MLM Marketplace — Global Styles */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1a1d2e;
    --light: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --radius: 12px;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #111827; background: #fff; }
a { color: var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

/* Cards */
.card { border: 1px solid var(--border); border-radius: var(--radius); }
.card-shadow { box-shadow: var(--shadow); border: none; }

/* Product Grid */
.products-grid .col { max-width: 220px; }

/* Price styling */
.price-original { text-decoration: line-through; color: #9ca3af; font-size: .875rem; }
.price-sale { color: #ef4444; font-weight: 700; font-size: 1.1rem; }
.price-normal { color: #111827; font-weight: 700; }

/* Star Rating */
.stars i { color: #f59e0b; font-size: .875rem; }

/* Badge styles */
.badge-deal { background: #ef4444; }
.badge-new { background: #10b981; }
.badge-featured { background: #f59e0b; color: #1a1d2e; }

/* Navbar adjustments */
#mainNav .dropdown-menu { border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,.12); }

/* Hero Carousel */
.carousel-item img { border-radius: 12px; }

/* MLM Tree */
.mlm-tree-node { border: 2px solid var(--primary); border-radius: 12px; padding: 12px; background: white; min-width: 120px; text-align: center; }

/* Dashboard Sidebar (User) */
.user-sidebar { background: white; border-radius: var(--radius); border: 1px solid var(--border); }
.user-sidebar .nav-link { color: #374151; border-radius: 8px; padding: .6rem 1rem; }
.user-sidebar .nav-link:hover, .user-sidebar .nav-link.active { background: var(--primary); color: white; }

/* Order Status Colors */
.status-pending    { color: #f59e0b; }
.status-confirmed  { color: #3b82f6; }
.status-processing { color: #8b5cf6; }
.status-shipped    { color: #06b6d4; }
.status-delivered  { color: #10b981; }
.status-cancelled  { color: #ef4444; }

/* Toast */
.toast-container { z-index: 9999; }

/* Mobile Fixes */
@media (max-width: 576px) {
    .product-card .product-img { height: 140px; }
    .banner-img { height: 200px !important; }
    .category-card { padding: 12px 8px !important; }
    .category-card .icon-wrap { width: 50px; height: 50px; font-size: 1.5rem; }
}

/* Animation */
.fade-in { animation: fadeIn .4s ease-in; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* Loader */
.page-loader { position: fixed; top:0;left:0;right:0;bottom:0; background:rgba(255,255,255,.9); z-index:9999; display:flex; align-items:center; justify-content:center; }

/* Responsive Table */
@media (max-width: 768px) { .table-responsive { font-size: .8rem; } }

/* Quantity Input */
.qty-input { width: 60px; text-align: center; }

/* Checkout Steps */
.checkout-steps .step { border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.checkout-steps .step.active { background: var(--primary); color: white; }
.checkout-steps .step.done { background: var(--success); color: white; }

/* Social Feed */
.feed-card { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.feed-card:hover { box-shadow: var(--shadow); }

/* Wallet Card Gradient */
.wallet-card { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.mlm-card { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Product Card Styles */
.product-card {
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
    overflow: hidden;
    background: #fff;
    position: relative;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.product-card .product-img {
    height: 200px;
    object-fit: contain;
    background: #f8fafc;
    padding: 10px;
}
.product-card .wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}
.product-card .wishlist-btn:hover {
    transform: scale(1.1);
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

