﻿        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
        :root {
            --primary-50: #f0f9ff;
            --primary-100: #e0f2fe;
            --primary-200: #bae6fd;
            --primary-300: #7dd3fc;
            --primary-400: #38bdf8;
            --primary-500: #0ea5e9;
            --primary-600: #0284c7;
            --primary-700: #0369a1;
            --primary-800: #075985;
            --primary-900: #0c4a6e;
            --primary-950: #082f49;

            --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            --bg-light: #f8fafc;
            --surface-light: #ffffff;
            --surface-subtle: #f1f5f9;
            --border-subtle: rgba(148, 163, 184, 0.22);
            --border-focus: #0284c7;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --text-secondary: #475569;

            --bg-dark: #090d16;
            --surface-dark: #0f172a;
            --surface-dark-subtle: #1e293b;
            --border-dark: rgba(71, 85, 105, 0.35);

            --header-light: rgba(255, 255, 255, 0.82);
            --header-dark: rgba(15, 23, 42, 0.85);

            --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
            --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
            --shadow-card-hover: 0 20px 35px -8px rgba(2, 132, 199, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.06);
            --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
            --radius-sm: 0.5rem;
            --radius-md: 0.875rem;
            --radius-lg: 1.25rem;
            --radius-xl: 1.75rem;
            --radius-pill: 9999px;
            --transition-smooth: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
        }
        /* Light theme utility classes (Tailwind-like names used in markup) */
        .bg-primary-50 { background-color: var(--primary-50) !important; }
        .bg-primary-100 { background-color: var(--primary-100) !important; }
        .bg-primary-600 { background-color: var(--primary-600) !important; }
        .text-primary-600 { color: var(--primary-600) !important; }
        .text-primary-400 { color: var(--primary-400) !important; }
        
        * {
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-light);
            color: var(--text-main);
            transition: background-color 0.3s ease, color 0.3s ease;
            letter-spacing: -0.011em;
            line-height: 1.5;
        }
        /* Dark theme variables */
        :root {
            --dark-bg-primary: #0f172a;
            --dark-bg-secondary: #1e293b;
            --dark-bg-tertiary: #334155;
            --dark-text-primary: #f8fafc;
            --dark-text-secondary: #cbd5e1;
            --dark-text-tertiary: #94a3b8;
            --dark-text-muted: #64748b;
            --dark-text-disabled: #475569;
            --dark-border-primary: rgba(51, 65, 85, 0.7);
            --dark-border-secondary: rgba(71, 85, 105, 0.5);
            --dark-accent: var(--primary-600);
        }

        /* Dark theme base styles */
        body.dark-off {
            background-color: var(--bg-dark);
        }
        body.dark-off header {
            background-color: rgba(35, 35, 35, 0.8) !important;
            border-bottom-color: var(--dark-bg-secondary) !important;
        }
        body.dark-off .text-dark { color: var(--dark-text-primary) !important; }
        body.dark-off .bg-white { background-color: var(--dark-bg-primary) !important; }
        body.dark-off .bg-light { background-color: var(--dark-bg-secondary) !important; }
        body.dark-off .border-secondary { border-color: var(--dark-bg-secondary) !important; }
        body.dark-off .text-secondary { color: var(--dark-text-tertiary) !important; }

        /* Dark theme utility classes */
        .dark-d-block { display: none !important; }
        .dark-d-none { display: block !important; }
        body.dark-off .dark-d-block { display: block !important; }
        body.dark-off .dark-d-none { display: none !important; }

        /* Button and Interactive elements enhancement */
        .btn {
            font-family: inherit;
            border-radius: var(--radius-md);
            font-weight: 600;
            transition: var(--transition-smooth);
            letter-spacing: -0.01em;
        }
        .btn:hover {
            transform: translateY(-1px);
        }
        .btn:active {
            transform: translateY(0) scale(0.98);
        }
        .btn-check:focus + .btn, .btn:focus {
            outline: 0;
            box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
        }
        .form-control, .form-select {
            font-family: inherit;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-subtle);
            background-color: var(--surface-light);
            color: var(--text-main);
            padding: 0.65rem 1rem;
            transition: var(--transition-smooth);
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--border-focus);
            box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
            background-color: var(--surface-light);
            color: var(--text-main);
        }

        /* Dark theme component overrides */
        body.dark-off .dark-bg-slate-800 { background-color: var(--dark-bg-secondary) !important; }
        body.dark-off .dark-bg-slate-900 { background-color: var(--dark-bg-primary) !important; }
        body.dark-off .dark-text-white { color: var(--dark-text-primary) !important; }
        body.dark-off .dark-text-slate-400 { color: var(--dark-text-tertiary) !important; }
        body.dark-off .dark-text-slate-500 { color: var(--dark-text-muted) !important; }
        body.dark-off .dark-text-slate-600 { color: var(--dark-text-disabled) !important; }
        body.dark-off .dark-bg-primary-600 { background-color: var(--dark-accent) !important; }
        body.dark-off .dark-bg-primary-900-20 { background-color: rgba(12, 74, 110, 0.2) !important; }
        body.dark-off .dark-text-primary-400 { color: var(--primary-400) !important; }
        body.dark-off .dark-bg-emerald-900-30 { background-color: rgba(6, 78, 59, 0.3) !important; }
        body.dark-off .dark-text-emerald-400 { color: rgb(52, 211, 153) !important; }
        body.dark-off .dark-bg-amber-900-30 { background-color: rgba(120, 53, 15, 0.3) !important; }
        body.dark-off .dark-text-amber-400 { color: rgb(251, 191, 36) !important; }
        body.dark-off .dark-bg-black-80 { background-color: rgba(0, 0, 0, 0.8) !important; }
        body.dark-off .dark-bg-slate-900-40 { background-color: rgba(15, 23, 42, 0.4) !important; }

        /* Modal overrides вЂ” С‚С‘РјРЅС‹Р№ С„РѕРЅ РґР»СЏ РєРѕСЂР·РёРЅС‹ Рё РјРѕРґР°Р»РєРё С‚РѕРІР°СЂР° */
        body.dark-off #cart-drawer,
        body.dark-off #product-modal > div { background-color: var(--dark-bg-primary) !important; }
        body.dark-off #cart-drawer .border-bottom,
        body.dark-off #cart-drawer .border-top,
        body.dark-off #product-modal .border-bottom,
        body.dark-off #product-modal .border-top { border-color: var(--dark-border-secondary) !important; }
        body.dark-off .form-control,
        body.dark-off .form-select { background-color: var(--dark-bg-secondary) !important; color: var(--dark-text-primary) !important; border-color: var(--dark-border-secondary) !important; }
        body.dark-off .form-control::placeholder { color: var(--dark-text-muted); }
        .backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
        .rounded-3xl { border-radius: 1.5rem; }
        .rounded-2xl { border-radius: 1rem; }
        .rounded-full { border-radius: 50rem; }
        .aspect-square { aspect-ratio: 1 / 1; }
        .translate-x-full { transform: translateX(100%); }

        /* Utility classes for common styles */
        .transition-all { transition: all 0.3s; }
        .transition-color { transition: color 0.3s; }
        .container-max { max-width: 1280px; }
        .header-height { height: 64px; }
        .logo-size { height: 32px; width: auto; object-fit: contain; }
        .letter-spacing-tight { letter-spacing: -0.025em; }
        .z-1040 { z-index: 1040; }
        .z-1050 { z-index: 1050; }
        .z-1100 { z-index: 1100; }
        .z-1110 { z-index: 1110; }
        .z-1120 { z-index: 1120; }
        .z-1200 { z-index: 1200; }
        /* DaData address suggestions */
        .dadata-suggestion-item:hover { background-color: var(--bg-light) !important; }
        body.dark-off .dadata-suggestion-item { color: var(--dark-text-primary); }
        body.dark-off .dadata-suggestion-item:hover { background-color: var(--dark-bg-secondary) !important; }
        body.dark-off #checkout-delivery-address-suggestions { background-color: var(--dark-bg-primary) !important; border-color: var(--dark-border-secondary) !important; }
        .checkout-address-status { width: 22px; height: 22px; font-size: 14px; line-height: 1; pointer-events: none; }
        .checkout-address-status.is-clear { pointer-events: auto; cursor: pointer; opacity: 0.6; }
        .checkout-address-status.is-clear:hover { opacity: 1; }
        .checkout-address-status.is-ok { color: var(--success, #198754); }
        body.dark-off .checkout-address-status.is-ok { color: #4ade80; }
        .bg-header { background-color: rgba(255, 255, 255, 0.8); }
        .border-header { border-bottom: 1px solid rgb(226, 232, 240); }
        .bg-cart-backdrop { background-color: rgba(15, 23, 42, 0.4); }
        .bg-modal-backdrop { background-color: rgba(0, 0, 0, 0.6); }
        .bg-login-backdrop { background-color: rgba(15, 23, 42, 0.6); }
        .max-w-cart { max-width: 448px; }
        .max-w-modal { max-width: 980px; }
        #modal-product-description { line-height: 1.35; }
        #modal-product-description p { margin-bottom: 0.2em; }
        #modal-product-description p:last-child { margin-bottom: 0; }
        .product-modal-handle { display: flex; justify-content: center; align-items: center; padding: 10px 0 4px; touch-action: none; }
        .product-modal-handle-bar { width: 42px; height: 5px; border-radius: 999px; background: #cbd5e1; }
        .product-modal-details { font-size: 0.9rem; color: #475569; line-height: 1.45; }
        .product-modal-details h4 { font-size: 0.78rem; letter-spacing: 0.02em; font-weight: 800; color: #0f172a; margin: 1rem 0 0.35rem; }
        .product-modal-details h4:first-child { margin-top: 0.15rem; }
        .product-modal-details p { margin-bottom: 0.2em; }
        .product-kbju { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
        .product-kbju-item { background: #f1f5f9; border-radius: 0.85rem; padding: 0.65rem 0.35rem 0.55rem; text-align: center; }
        .product-kbju-item b { display: block; color: #0f172a; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
        .product-kbju-item span { display: block; margin-top: 0.2rem; font-size: 0.68rem; color: #64748b; font-weight: 600; }
        body.dark-off .product-modal-handle-bar { background: #475569; }
        body.dark-off .product-modal-details h4 { color: #e2e8f0; }
        body.dark-off .product-kbju-item { background: #1e293b; }
        body.dark-off .product-kbju-item b { color: #f8fafc; }
        #modal-action-container-desktop .btn { white-space: nowrap; min-width: 180px; }
        #product-modal .product-modal-sheet.product-modal-dragging { transition: none !important; }
        @media (min-width: 768px) {
            #product-modal { align-items: center; justify-content: center; padding: 2rem; }
            #product-modal .product-modal-sheet {
                height: auto;
                max-height: 88vh;
                border-radius: 1.75rem;
                box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
            }
            #product-modal .product-modal-layout { min-height: 0; }
            #product-modal .product-modal-media {
                width: 44%;
                flex: 0 0 44%;
                min-height: 420px;
                border-radius: 0;
            }
            #product-modal .product-modal-info {
                width: 56%;
                flex: 1 1 auto;
                min-width: 0;
                overflow-y: auto;
            }
            #product-modal .product-image { max-height: 420px; }
            #product-modal .modal-product-name { font-size: 1.65rem; line-height: 1.2; }
        }
        .max-w-login { max-width: 520px; }
        .max-w-search { max-width: 672px; }
        .text-xs-custom { font-size: 0.875rem; font-weight: 500; }
        .text-xs-error { font-size: 0.75rem; font-weight: bold; }
        .text-sm-custom { font-size: 0.875rem; font-weight: 500; }
        .btn-autofill { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
        .input-transition { transition: all 0.3s; }
        .cart-badge { width: 20px; height: 20px; font-size: 10px; transform: translate(25%, -25%); border: 2px solid white; }
        .search-icon { padding: 4px; pointer-events: none; }
        .modal-transition { transition: all 0.2s; }
        .modal-z-index { z-index: 10; }
        .product-img-placeholder { filter: blur(14px); transform: scale(1.08); }
        .product-card-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px); transform: scale(1.08); pointer-events: none; }
        .product-img-full { object-fit: contain; object-position: center; }
        .product-image { max-height: 32vh; max-height: 320px; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); mix-blend-mode: multiply; transition: all 0.3s; }
        body.dark-off .product-image,
        body.dark-off .product-img-full,
        body.dark-off .product-img-placeholder { mix-blend-mode: normal; }
        #products-grid.products-grid {
            --product-min: 168px;
            --product-gap: 1rem;
            display: grid;
            gap: var(--product-gap);
            grid-template-columns: repeat(auto-fit, minmax(min(var(--product-min), calc((100% - var(--product-gap)) / 2)), 1fr));
        }
        #products-grid .product-col { min-width: 0; }
        #products-grid .product-card {
            border: 1px solid var(--border-subtle) !important;
            box-shadow: var(--shadow-card) !important;
            transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s;
            border-radius: var(--radius-xl) !important;
        }
        #products-grid .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-card-hover) !important;
            border-color: rgba(2, 132, 199, 0.35) !important;
        }
        #products-grid .product-card-body { padding: 0 !important; margin: 0 1rem 1rem; }
        #products-grid .product-card-title {
            font-size: 1.05rem;
            line-height: 1.35;
            letter-spacing: -0.015em;
            cursor: pointer;
            transition: color 0.2s;
        }
        #products-grid .product-card-title:hover {
            color: var(--primary-600) !important;
        }
        #products-grid .product-card-unit-hint { color: #64748b; font-weight: 600; font-size: 0.78rem; line-height: 1.2; margin: 0 0 0.15rem; }
        #products-grid .product-qty-meta { line-height: 1.15; text-align: center; min-width: 0; }
        #products-grid .product-qty-weight { font-weight: 700; color: #334155; font-size: 0.78rem; }
        #products-grid .product-qty-price { font-weight: 900; color: #0f172a; font-size: 0.88rem; }
        body.dark-off #products-grid .product-card {
            border-color: var(--dark-border-primary) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
        }
        body.dark-off #products-grid .product-card:hover {
            box-shadow: 0 10px 28px rgba(2, 132, 199, 0.2) !important;
            border-color: rgba(56, 189, 248, 0.4) !important;
        }
        body.dark-off #products-grid .product-card-unit-hint,
        body.dark-off #products-grid .product-qty-weight { color: #94a3b8; }
        body.dark-off #products-grid .product-qty-price { color: #f8fafc; }
        @media (min-width: 768px) {
            #products-grid.products-grid {
                --product-min: 220px;
                --product-gap: 1.25rem;
            }
        }
        @media (min-width: 992px) {
            #products-grid.products-grid { --product-min: 240px; --product-gap: 1.5rem; }
        }
        /* РљРѕРјРїР°РєС‚РЅС‹Рµ РєР°СЂС‚РѕС‡РєРё РЅР° РјРѕР±РёР»СЊРЅС‹С… вЂ” Р±РµР· СЂР°Р·РјС‹С‚РёСЏ, РєР°СЂС‚РёРЅРєР° РєРІР°РґСЂР°С‚РѕРј */
        @media (max-width: 767.98px) {
            #products-grid .product-card { min-height: 0; height: auto; display: flex; flex-direction: column; }
            #products-grid .product-card .product-card-img-wrap { aspect-ratio: 1; height: auto; flex-shrink: 0; width: auto; margin: 1rem; }
            #products-grid .product-card .product-card-img-wrap .product-img-placeholder,
            #products-grid .product-card .product-card-img-wrap .product-card-img-bg { filter: none; transform: none; }
            #products-grid .product-card .product-card-img-wrap .product-img-full,
            #products-grid .product-card .product-card-img-wrap .product-img-placeholder { object-fit: cover; object-position: center; }
            #products-grid .product-card .product-card-body { width: auto; margin: 0 1rem 1rem; padding: 0 !important; flex: 1; min-height: 0; display: flex; flex-direction: column; }
            #products-grid .product-card .product-card-title { font-size: 0.82rem; margin-bottom: 0.1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
            #products-grid .product-card .product-card-price-wrap { margin-bottom: 0; flex-shrink: 0; }
            #products-grid .product-card .product-card-price { font-size: 1.05rem; }
            #products-grid .product-card .product-card-unit-hint { font-size: 0.68rem; line-height: 1.2; margin-bottom: 0.2rem; }
            #products-grid .product-card .product-card-actions { min-height: 52px; height: auto !important; padding-top: 0.25rem; padding-bottom: 0.45rem; flex-shrink: 0; border-top: 0; }
            #products-grid .product-card .product-qty-weight { font-size: 0.72rem; }
            #products-grid .product-card .product-qty-price { font-size: 0.78rem; }
        }
        /* РњРѕРґР°Р»РєР° С‚РѕРІР°СЂР° РЅР° РјРѕР±РёР»СЊРЅС‹С… вЂ” РІС‹РµР·Р¶Р°РµС‚ СЃРЅРёР·Сѓ (bottom sheet) */
        @media (max-width: 767.98px) {
            #product-modal { align-items: flex-end; justify-content: center; padding: 0; }
            #product-modal .product-modal-sheet { width: 100%; max-width: 100%; height: 90vh; max-height: 90vh; min-height: 0; border-radius: 1rem 1rem 0 0; transform: translateY(100%); transition: transform 0.35s ease-out; animation: none; }
            #product-modal .product-modal-sheet.product-modal-sheet-visible { transform: translateY(0); }
            #product-modal .product-modal-header { padding-top: 0.35rem; }
        }
        .icon-lock { width: 28px; height: 28px; }
        .icon-sparkle { width: 12px; height: 12px; }
        .cursor-not-allowed { cursor: not-allowed; }
        .notification-top { top: 80px; }
        .main-padding { padding-top: 80px; }
        .catalog-disclaimer {
            margin: 2.5rem 0 1.5rem;
            text-align: center;
            font-size: 0.78rem;
            line-height: 1.45;
            color: #94a3b8;
        }
        body.dark-off .catalog-disclaimer { color: #64748b; }

        /* Animation utilities */
        .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
        .animate-in { animation: fadeIn 0.3s ease-out; }
        .fade-in { animation: fadeIn 0.3s ease-out; }
        .slide-in-from-top-4 { animation: slideInFromTop 0.3s ease-out; }
        .zoom-in { animation: zoomIn 0.2s ease-out; }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: .5; }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-1rem); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes slideInFromTop {
            from { opacity: 0; transform: translateY(-1rem); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes zoomIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
