/**
 * MohirQollar - Onlayn Bozor
 * Asosiy CSS stillari
 */

/* ========================
   CSS O'ZGARUVCHILARI
   ======================== */
:root {
    /* Ranglar */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --black: #000000;
    
    /* Gradientlar */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    
    /* O'lchamlar */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Soyalar */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* O'tishlar */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Kengliklar */
    --container-max: 1280px;
}

/* ========================
   ASOSIY RESET
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================
   CONTAINER
   ======================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   NAVIGATSIYA
   ======================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Qidiruv */
.search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition-normal);
}

.search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    outline: none;
}

.search-btn {
    padding: 12px 20px;
    color: var(--gray-500);
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--primary);
}

/* Harakatlar */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    background: var(--gray-100);
    transition: var(--transition-fast);
}

.nav-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

/* Foydalanuvchi menyusi */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    transition: var(--transition-fast);
}

.user-btn:hover {
    background: var(--gray-200);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-weight: 500;
    color: var(--gray-700);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    transition: var(--transition-fast);
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 8px 0;
}

.logout-btn {
    color: var(--danger);
}

/* Mobil menyu tugmasi */
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 1.2rem;
}

.mobile-menu {
    display: none;
}

/* ========================
   TUGMALAR
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

/* ========================
   XABARLAR (ALERTS)
   ======================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ========================
   MAHSULOT KARTASI
   ======================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition-fast);
    z-index: 10;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: var(--danger);
    transform: scale(1.1);
}

.product-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.no-image {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

.product-info {
    padding: 16px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 8px 0;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.product-name:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-old {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.product-seller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.seller-rating {
    color: var(--secondary);
    font-weight: 500;
}

.add-to-cart-btn {
    width: 100%;
}

/* ========================
   MAHSULOTLAR GRID
   ======================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* ========================
   BOSH SAHIFA
   ======================== */
.main-content {
    min-height: calc(100vh - 300px);
}

/* Hero bo'lim */
.hero-section {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 30px;
}

/* Bo'limlar */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
}

.section-link {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    text-decoration: underline;
}

/* Chegirmali mahsulotlar */
.discount-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discount-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Kategoriyalar */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    color: var(--gray-700);
}

/* ========================
   SIDEBAR FILTRLARI
   ======================== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
    display: block;
}

.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary);
    color: var(--white);
}

/* ========================
   FORMA ELEMENTLARI
   ======================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input.is-invalid {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ========================
   AUTH SAHIFALARI
   ======================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.auth-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--gray-500);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.role-option {
    position: relative;
}

.role-option input {
    position: absolute;
    opacity: 0;
}

.role-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.role-option input:checked + label {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.role-option i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.role-option input:checked + label i {
    color: var(--primary);
}

/* ========================
   SAVATCHA
   ======================== */
.cart-page {
    padding: 40px 0;
}

.cart-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item-name {
    font-weight: 600;
    color: var(--gray-800);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: var(--gradient-dark);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: var(--gray-500);
}

/* ========================
   ADMIN/SELLER PANEL
   ======================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    background: var(--gray-900);
    padding: 24px;
    color: var(--white);
}

.dashboard-nav {
    list-style: none;
    margin-top: 30px;
}

.dashboard-nav li {
    margin-bottom: 8px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dashboard-content {
    padding: 30px;
    background: var(--gray-100);
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-label {
    color: var(--gray-500);
    margin-top: 4px;
}

.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

/* ========================
   CHAT
   ======================== */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 200px);
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-list {
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
}

.chat-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-item:hover,
.chat-item.active {
    background: var(--gray-50);
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.messages-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    max-width: 70%;
    margin-bottom: 16px;
}

.message.sent {
    margin-left: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
}

.message.received .message-content {
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}

.message.sent .message-content {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
}

.chat-input input {
    flex: 1;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
    }
    
    .chat-list {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-form {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        z-index: 9999;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-content {
        padding: 20px;
    }
    
    .mobile-search {
        display: flex;
        margin-bottom: 20px;
    }
    
    .mobile-search input {
        flex: 1;
        padding: 12px;
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }
    
    .mobile-search button {
        padding: 12px 16px;
        background: var(--primary);
        color: var(--white);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }
    
    .mobile-nav-links a,
    .mobile-nav-links button {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        color: var(--gray-700);
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ========================
   ANIMASYONLAR
   ======================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

/* Yuklash indikatori */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton yuklash */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
