:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --bg-light: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Styling (Desktop) */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0,0,0,0.05);
    flex-direction: column;
    padding: 2rem;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-muted);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.user-bottom {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 16px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-card .name {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-card .status {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Mobile Header */
.mobile-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #f1f5f9;
}

.search-bar-mini {
    background: #f1f5f9;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin: 0 15px;
}

.search-bar-mini input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    width: 100%;
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
}

.cart-icon .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.6rem;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Hero Section */
.hero-card {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 30px;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-card h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 24px;
    padding: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.product-img {
    background: #f8fafc;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-img img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.badge-discount {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    z-index: 5;
}

.wishlist-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 5;
}

.product-info {
    position: relative;
}

.category-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-area {
    display: flex;
    flex-direction: column;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.3);
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    gap: 4px;
}

.mobile-nav a i {
    font-size: 1.3rem;
}

.mobile-nav a.active {
    color: var(--primary-color);
}

/* Categories Scroll */
.cat-item {
    background: white;
    padding: 10px 25px;
    border-radius: 14px;
    white-space: nowrap;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cat-item.active, .cat-item:hover {
    background: var(--primary-color);
    color: white;
}

.custom-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .hero-card {
        padding: 2rem;
    }
    .hero-card h1 {
        font-size: 1.8rem;
    }
}
