:root {
    --primary-color: #7c3aed; /* Vibrant Purple */
    --accent-color: #8b5cf6; /* Violet */
    --bg-color: #000000; /* Pure Black Background */
    --bg-surface: #0a0a0a;
    --card-bg: #111111; /* Off-black for cards */
    --card-hover: #1a1a1a;
    --text-main: #f8fafc; /* Near white text */
    --text-muted: #a1a1aa; /* Dim text */
    --border-color: #27272a; /* Subtle borders */
    --shadow: 0 8px 30px rgba(0,0,0,0.8);
    --radius-lg: 16px;
    --radius-md: 12px;
}

select option {
    background-color: #1a1a1a;
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling - Kling/Omni Style */
.sidebar {
    width: 78px;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar .logo {
    width: 36px;
    height: 36px;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.sidebar .logo:hover {
    transform: rotate(15deg) scale(1.1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    padding: 0 0.5rem;
}

.sidebar-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.5rem;
    border-radius: 14px;
    gap: 0.4rem;
}

.sidebar-item span.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item span.label {
    font-size: 12px;
    font-weight: 500;
}

.sidebar-item:hover, .sidebar-item.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.sidebar-footer {
    width: 100%;
    padding: 0 0.5rem;
}

/* Main Content */
.content-wrapper {
    flex: 1;
    margin-left: 78px;
    padding: 2rem 4rem;
    background: var(--bg-color);
    width: calc(100% - 78px);
}

/* Glassmorphism search input */
.search-input {
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: var(--text-main) !important;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.4) !important;
    border-color: var(--primary-color) !important;
    background: rgba(255,255,255,0.06) !important;
}

.search-input::placeholder {
    color: #52525b;
}

/* Kling Style Tags */
.filters {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.filter-pill {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; /* Slightly squarish pills */
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
}

.filter-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

/* Grid & Cards (Modern Dark Interface) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.card.card-static:hover {
    transform: none !important;
    cursor: default;
}


.card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    transition: transform 0.6s ease;
    background: #18181b; /* Placeholder color before load */
}

.card:hover img {
    transform: scale(1.05);
}

/* Glowing text on hover */
.card:hover h3 {
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Links & Utilities */
a {
    color: var(--accent-color);
    text-decoration: none;
}

.btn-primary, .btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.4);
    filter: brightness(1.1);
}

/* Customize scrollbar completely */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Hide Number Input Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}
