/* ============================================================
   FAST SERVIS - TO'LIQ CSS
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2b4a;
    --secondary: #d4af37;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2d4a7a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5d76e 100%);
    --radius: 16px;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== LOADING ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s;
}
.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading-text {
    color: #fff;
    margin-top: 20px;
    font-size: 24px;
    font-weight: 800;
}
.loading-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 4px;
}

/* ========== HEADER ========== */
.header {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.logo-text p {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: -2px;
}
.menu-toggle {
    width: 40px;
    height: 40px;
    background: var(--border);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: var(--transition);
    display: none;
}
.menu-toggle:hover {
    background: var(--primary);
    color: #fff;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.header-search-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 17px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}
.header-search-btn:hover {
    background: var(--border);
    color: var(--text);
}
.cart-btn {
    padding: 8px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
}
.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.cart-count {
    background: var(--secondary);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    min-width: 20px;
    text-align: center;
}
.theme-toggle-header {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}
.theme-toggle-header:hover {
    background: var(--border);
}
.lang-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}
.lang-toggle:hover {
    background: var(--border);
}
.lang-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-xl);
    z-index: 200;
    min-width: 140px;
}
.lang-dropdown.active {
    display: flex;
}
.lang-dropdown button {
    background: none;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
    text-align: left;
}
.lang-dropdown button:hover {
    background: var(--border);
}

/* ========== SIDEBAR ========== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.sidebar.active {
    left: 0;
}
.sidebar-header {
    background: var(--gradient-primary);
    padding: 28px 20px 24px;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-avatar {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}
.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.sidebar-header p {
    font-size: 12px;
    opacity: 0.7;
}
.sidebar-user-points {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 12px;
}
.sidebar-language {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 12px;
}
.lang-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
}
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.lang-btn.active {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}
.sidebar-menu {
    flex: 1;
    padding: 6px 0;
    overflow-y: auto;
}
.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 13px;
}
.sidebar-menu-item:hover {
    background: var(--border);
    color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-menu-item i {
    width: 20px;
    font-size: 15px;
    text-align: center;
}
.sidebar-categories-title {
    padding: 12px 20px 8px;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
    margin-top: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 50px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-category-item:hover {
    background: var(--border);
    color: var(--primary);
}
.sidebar-category-item.active {
    background: rgba(30, 58, 95, 0.06);
    color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-category-item i {
    width: 16px;
    font-size: 13px;
}
.sidebar-category-item .count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}
.logout-btn {
    margin-top: 6px;
    border-top: 1px solid var(--border);
    color: var(--danger);
}
.logout-btn:hover {
    color: var(--danger);
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
}
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: var(--transition);
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ========== AI CHAT ========== */
.ai-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 500;
}
.ai-chat-toggle {
    width: 58px;
    height: 58px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    font-size: 24px;
    position: relative;
}
.ai-chat-toggle:hover {
    transform: scale(1.06);
}
.ai-chat-toggle .ai-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--success);
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    animation: ringPulse 2.5s infinite;
}
@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
.ai-chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 600px;
    border: 1px solid var(--border);
}
.ai-chat-window.active {
    display: flex;
}
.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--gradient-primary);
    color: #fff;
    flex-shrink: 0;
}
.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}
.ai-chat-title .ai-online {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ai-chat-title .ai-online i {
    font-size: 7px;
    color: var(--success);
}
.ai-chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}
.ai-chat-header button:hover {
    transform: rotate(90deg);
}
.ai-chat-messages {
    flex: 1;
    padding: 14px 18px;
    overflow-y: auto;
    max-height: 400px;
    background: var(--bg);
}
.ai-message {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.ai-message.ai-user {
    flex-direction: row-reverse;
}
.ai-message.ai-user .ai-bubble {
    background: var(--primary);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}
.ai-message.ai-user .ai-avatar {
    background: var(--text-secondary);
}
.ai-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 13px;
}
.ai-bubble {
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: 16px 16px 16px 4px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}
.ai-bubble strong {
    color: var(--primary);
}
.ai-chat-input {
    display: flex;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    gap: 8px;
    background: var(--bg-card);
    flex-shrink: 0;
}
.ai-chat-input input {
    flex: 1;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 25px;
    outline: none;
    font-size: 13px;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}
.ai-chat-input input:focus {
    border-color: var(--primary);
}
.ai-chat-input button {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.ai-chat-input button:hover {
    transform: scale(1.05);
}
.ai-chat-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 14px;
    font-size: 9px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.ai-typing span {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}
.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
    }
}

/* ========== HERO ========== */
.hero {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}
.hero-content {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 40px 30px 32px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-content::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.hero-content::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}
.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.hero h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}
.hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
}
.hero-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ========== CATEGORIES (KOMPYUTERDA KO'RINADI) ========== */
.categories-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}
.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.categories-scroll::-webkit-scrollbar {
    display: none;
}
.category-chip {
    flex-shrink: 0;
    padding: 10px 22px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: var(--shadow);
}
.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.category-chip.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.category-chip i {
    font-size: 14px;
}
.category-chip .chip-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}
.category-chip.active .chip-count {
    opacity: 0.8;
}

/* ========== BONUS ========== */
.bonus-banner {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}
.bonus-card {
    background: var(--gradient-gold);
    border-radius: 20px;
    padding: 22px 28px;
    color: #1e293b;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.bonus-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.bonus-header i {
    font-size: 34px;
}
.bonus-header h3 {
    font-size: 20px;
    font-weight: 800;
}
.bonus-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
}
.bonus-item {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    backdrop-filter: blur(4px);
}
.bonus-item h4 {
    font-size: 14px;
    font-weight: 700;
}
.bonus-item p {
    font-size: 13px;
}
.bonus-item .discount {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.bonus-note {
    text-align: center;
    font-size: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========== SEARCH ========== */
.search-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}
.search-container {
    background: var(--bg-card);
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.search-container input {
    flex: 1;
    padding: 12px 0;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text);
}
.search-container input::placeholder {
    color: var(--text-muted);
}
.search-container button {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
}
.search-container button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== PRODUCTS ========== */
.products-section {
    max-width: 1400px;
    margin: 20px auto 40px;
    padding: 0 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.products-count {
    background: var(--primary);
    color: #fff;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 12px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.product-image {
    height: 180px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-image i {
    font-size: 50px;
    color: var(--primary);
    opacity: 0.3;
}
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.product-info {
    padding: 14px 16px 16px;
}
.product-category {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.product-price .old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}
.product-stock {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}
.add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== FOOTER ========== */
.footer {
    background: #1e293b;
    color: #fff;
    margin-top: 50px;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--secondary);
}
.footer-col ul li i {
    margin-right: 8px;
    width: 18px;
    color: var(--secondary);
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 14px;
}
.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    color: #1e293b;
}
.footer-bottom {
    text-align: center;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========== MODALS ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 16px;
}
.modal.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
    border-radius: 20px 20px 0 0;
}
.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h2 i {
    color: var(--primary);
}
.modal-close {
    font-size: 26px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* ========== CHECKOUT ========== */
.checkout-container {
    display: flex;
    flex-wrap: wrap;
}
.checkout-left {
    flex: 1.2;
    padding: 24px;
    border-right: 1px solid var(--border);
}
.checkout-right {
    flex: 0.8;
    padding: 24px;
    background: var(--bg);
}
@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }
    .checkout-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.form-group label .required {
    color: var(--danger);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.06);
}
.form-group .help-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.delivery-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.delivery-option {
    flex: 1;
    min-width: 110px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--bg-card);
}
.delivery-option.selected {
    border-color: var(--primary);
    background: rgba(30, 58, 95, 0.05);
}
.delivery-option i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}
.delivery-option h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}
.delivery-option p {
    font-size: 11px;
    color: var(--text-secondary);
}
.delivery-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}
.delivery-badge {
    font-size: 9px;
    background: var(--warning);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
}
.delivery-estimate {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}
.delivery-option.hidden {
    display: none !important;
}

.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-method {
    flex: 1;
    min-width: 90px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--bg-card);
}
.payment-method.selected {
    border-color: var(--primary);
    background: rgba(30, 58, 95, 0.05);
}
.payment-method i {
    font-size: 18px;
    color: var(--primary);
    margin-right: 6px;
}
.payment-method span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.order-summary {
    margin-bottom: 20px;
}
.summary-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}
.summary-items {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid var(--border);
    margin-top: 8px;
    color: var(--text);
}
.summary-delivery {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.summary-discount {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--success);
}

.promo-section {
    background: rgba(245, 158, 11, 0.08);
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 158, 11, 0.12);
}
.promo-section label {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
}
.promo-input-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.promo-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    text-transform: uppercase;
    background: var(--bg-card);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.promo-input-group input:focus {
    border-color: var(--primary);
}
.promo-input-group button {
    padding: 8px 18px;
    background: var(--success);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.promo-input-group button:hover {
    transform: translateY(-2px);
}
.promo-message {
    margin-top: 8px;
    font-size: 12px;
}
.promo-message.success {
    color: var(--success);
}
.promo-message.error {
    color: var(--danger);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-google {
    background: #4285f4;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 14px;
}
.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}
.btn-block {
    width: 100%;
}
.btn-large {
    padding: 14px;
    font-size: 15px;
}

/* ========== CART ========== */
.cart-items {
    max-height: 380px;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-image i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.4;
}
.cart-item-info {
    flex: 1;
}
.cart-item-info .cart-item-title {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.cart-item-info .cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}
.cart-item-info .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.cart-item-info .cart-item-quantity button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}
.cart-item-info .cart-item-quantity button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cart-item-info .cart-item-quantity span {
    min-width: 24px;
    text-align: center;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}
.cart-item-remove {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-remove:hover {
    transform: scale(1.08);
}
.cart-total {
    text-align: right;
    font-weight: 700;
    font-size: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--border);
    color: var(--text);
}
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.cart-actions .btn {
    flex: 1;
}

/* ========== LOGIN ========== */
.login-modal .modal-content {
    max-width: 460px;
}
.login-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}
.login-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    border-bottom: 3px solid transparent;
}
.login-tab:hover {
    color: var(--text);
}
.login-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.login-panel {
    padding: 24px;
    display: none;
}
.login-panel.active {
    display: block;
}
.social-login {
    margin-bottom: 16px;
}
.social-login .btn-google {
    width: 100%;
}
.divider {
    text-align: center;
    position: relative;
    margin: 16px 0;
}
.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.divider span {
    background: var(--bg-card);
    padding: 0 14px;
    position: relative;
    color: var(--text-secondary);
    font-size: 12px;
}
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 16px;
    font-size: 13px;
    color: var(--text);
}
.login-options a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.login-options a:hover {
    text-decoration: underline;
}
.register-agreement {
    margin: 12px 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.register-agreement a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.register-agreement a:hover {
    text-decoration: underline;
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: var(--text);
    color: var(--bg-card);
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 2001;
    display: none;
    font-size: 13px;
    box-shadow: var(--shadow-xl);
    max-width: 380px;
}
.notification.show {
    display: block;
    animation: slideUp 0.3s ease;
}
.notification i {
    margin-right: 8px;
}
@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.4;
}
.empty-state h3 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text);
}

/* ========== SUCCESS ========== */
.success-content {
    text-align: center;
    padding: 30px 20px;
}
.success-content i {
    font-size: 56px;
    color: var(--success);
    margin-bottom: 12px;
}
.success-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--text);
}
.success-content p {
    color: var(--text-secondary);
}

/* ========== ORDERS LIST ========== */
.orders-list {
    padding: 16px;
}
.order-card {
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin-bottom: 12px;
    background: var(--bg);
    border-radius: 10px;
    color: var(--text);
    transition: var(--transition);
}
.order-card:hover {
    background: var(--border);
}
.order-card:last-child {
    margin-bottom: 0;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 50;
    opacity: 0;
    transform: scale(0.8);
}
.scroll-top.visible {
    opacity: 1;
    transform: scale(1);
}
.scroll-top:hover {
    transform: scale(1.08) translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 28px;
    }
    .hero-stat-value {
        font-size: 24px;
    }
    .hero-stats {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .header-content {
        padding: 8px 16px;
    }
    .logo-text h1 {
        font-size: 18px;
    }
    .hero h2 {
        font-size: 24px;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stat-value {
        font-size: 22px;
    }
    .bonus-header h3 {
        font-size: 17px;
    }
    .sidebar {
        width: 280px;
        left: -280px;
    }
    .menu-toggle {
        display: block;
    }
}

/* ========== RESPONSIVE - KATEGORIYALAR ========== */
@media (max-width: 768px) {
    /* Kompyuterda ko'rinadigan kategoriyalarni yashirish */
    .categories-section {
        display: none !important;
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .cart-btn span:not(.cart-count) {
        display: none;
    }
    .cart-btn {
        padding: 6px 12px;
    }
    .hero-content {
        padding: 28px 16px 24px;
    }
    .hero h2 {
        font-size: 20px;
    }
    .hero p {
        font-size: 14px;
    }
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-value {
        font-size: 18px;
    }
    .bonus-card {
        padding: 16px 18px;
    }
    .bonus-header {
        flex-direction: column;
        text-align: center;
    }
    .bonus-header h3 {
        font-size: 15px;
    }
    .search-container {
        padding: 3px 3px 3px 14px;
    }
    .search-container button {
        padding: 8px 16px;
        font-size: 12px;
    }
    .search-container button span {
        display: none;
    }
    .ai-chat-window {
        width: calc(100vw - 40px);
        right: -10px;
        max-height: 400px;
    }
    .ai-chat-container {
        bottom: 80px;
        right: 10px;
    }
    .ai-chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .modal-content {
        max-height: 95vh;
    }
    .modal-header h2 {
        font-size: 17px;
    }
    .checkout-left,
    .checkout-right {
        padding: 14px;
    }
    .delivery-options {
        flex-direction: column;
    }
    .payment-methods {
        flex-direction: column;
    }
    .login-modal .modal-content {
        max-width: 100%;
    }
    .login-panel {
        padding: 14px;
    }
    .lang-dropdown {
        right: -10px;
        min-width: 130px;
    }
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }
    .logo-text p {
        display: none;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .hero h2 {
        font-size: 18px;
    }
    .hero p {
        font-size: 12px;
    }
    .hero-stats {
        gap: 12px;
    }
    .hero-stat-value {
        font-size: 16px;
    }
    .hero-stat-label {
        font-size: 10px;
    }
    .section-title {
        font-size: 17px;
    }
    .product-title {
        font-size: 14px;
    }
    .product-price {
        font-size: 16px;
    }
    .footer-content {
        padding: 24px 14px 16px;
        gap: 20px;
    }
    .notification {
        left: 16px;
        right: 16px;
        bottom: 70px;
        max-width: none;
        font-size: 12px;
        padding: 10px 16px;
    }
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 70px;
        right: 16px;
    }
    .ai-chat-toggle {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .ai-chat-window {
        max-height: 350px;
    }
    .ai-chat-messages {
        max-height: 250px;
    }
    .login-tabs .login-tab {
        font-size: 12px;
        padding: 8px;
    }
    .login-panel {
        padding: 10px;
    }
    .modal-content {
        border-radius: 16px;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-header h2 {
        font-size: 15px;
    }
    .cart-item {
        gap: 10px;
        padding: 10px 0;
    }
    .cart-item-image {
        width: 44px;
        height: 44px;
    }
    .cart-item-remove {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    .btn-large {
        padding: 12px;
        font-size: 14px;
    }
}