        :root {
            --uv-main: var(--uv-main);    /* основной УФ */
            --uv-hover: var(--uv-hover);   /* hover */
            --uv-border: var(--uv-border);  /* рамки акцентов */
            --uv-chip: var(--uv-chip);    /* подложки чипов */
            --uv-bg: var(--uv-bg);      /* светлые подложки */
            --uv-shadow: 79, 43, 150;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(180deg, #FFFFFF 0%, #EFEDF6 100%); background-attachment: fixed; color: #1A1A1A; }
        .product-price, .product-detail-price, .cart-summary-row, .qty-value, .card-qty-value, .price { font-variant-numeric: tabular-nums; }

        /* Header */
        .header { background: linear-gradient(90deg, #FFFFFF 0%, var(--uv-bg) 100%); color: #1A1A1A; padding: 1rem 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(80,40,140,0.08); border-bottom: 1px solid #ECE7F5; }
        .header-content { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 2rem; }
        .logo { cursor: pointer; display: flex; align-items: center; }
        .logo:hover { opacity: 0.9; }
        .logo-img { height: 50px; width: auto; object-fit: contain; }
        .search-box { flex: 1; max-width: 500px; position: relative; display: flex; gap: 0.25rem; background: #fff; border-radius: 8px; padding: 0.25rem; box-shadow: 0 1px 3px rgba(80,40,140,0.10); }
        .search-box input { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: 6px; font-size: 1rem; background: transparent; }
        .search-box button { padding: 0.75rem 1.5rem; background: var(--uv-main); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; }
        .search-box button:hover { background: var(--uv-hover); }
        .search-results { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); max-height: 400px; overflow-y: auto; display: none; z-index: 101; }
        .search-results.active { display: block; }
        .search-item { padding: 0.75rem 1rem; border-bottom: 1px solid #eee; cursor: pointer; display: flex; gap: 0.75rem; align-items: center; transition: background 0.15s; color: #1A1A1A; }
        .search-item:hover { background: #F8F7FB; }
        .search-item.active { background: #F5F2FA; border-left: 3px solid var(--uv-main); padding-left: 0.5rem; }
        .search-item.active div { color: var(--uv-main); }
        .search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
        .header-stats { font-size: 0.875rem; opacity: 0.9; white-space: nowrap; }

        /* Header actions (icons) — белая подложка СОХРАНЯЕТСЯ */
        .header-actions { display: flex; align-items: center; gap: 0.25rem; background: #fff; border-radius: 8px; padding: 0.25rem; box-shadow: 0 1px 3px rgba(80,40,140,0.10); }
        .header-icon { cursor: pointer; padding: 0.5rem; display: flex; align-items: center; justify-content: center; color: #4A4A52; transition: all 0.2s; border-radius: 6px; }
        .header-icon:hover { color: var(--uv-main); background: var(--uv-bg); transition-duration: 0.1s; }
        .header-icon svg { width: 24px; height: 24px; }

        /* Category header (search results page) */
        .category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #D8D2E4; }
        .category-header h2 { font-size: 1.5rem; color: #1A1A1A; }

        /* Empty state */
        .empty-state { text-align: center; padding: 4rem 2rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
        .empty-icon { font-size: 4rem; margin-bottom: 1rem; }
        .empty-state h3 { font-size: 1.25rem; color: #1A1A1A; margin-bottom: 0.5rem; }
        .empty-state p { color: #6B7280; }

        /* Product grid (search results) */
        .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
        .product-sticker { position: absolute; top: 12px; left: 12px; padding: 0.375rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; z-index: 2; }

        /* Layout */
        .container { max-width: 1400px; margin: 0 auto; display: flex; gap: 2rem; padding: 2rem; }
        .sidebar { width: 280px; flex-shrink: 0; }
        .main-content { flex: 1; min-width: 0; }

        /* Category Tree */
        .category-tree { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
        .category-tree::-webkit-scrollbar { width: 6px; }
        .category-tree::-webkit-scrollbar-track { background: #F8F7FB; border-radius: 3px; }
        .category-tree::-webkit-scrollbar-thumb { background: #ECE7F5; border-radius: 3px; }
        .category-tree::-webkit-scrollbar-thumb:hover { background: #6B7280; }
        .category-tree h3 { font-size: 1.125rem; margin-bottom: 1rem; color: #1A1A1A; }
        .tree-item { margin-bottom: 0.25rem; }
        .tree-parent { padding: 0.5rem 0.75rem; cursor: pointer; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; transition: all 0.2s; }
        .tree-parent:hover { border: 1px solid var(--uv-main); transition-duration: 0.1s; }
        .tree-parent { border: 1px solid transparent; }
        .tree-parent.active { background: var(--uv-bg); color: var(--uv-main); font-weight: 700; }
        .tree-children { margin-left: 1rem; margin-top: 0.25rem; display: none; }
        .tree-children.open { display: block; }
        .tree-child { padding: 0.5rem 0.75rem; cursor: pointer; border-radius: 6px; transition: all 0.2s; }
        .tree-child:hover { border: 1px solid var(--uv-main); transition-duration: 0.1s; }
        .tree-child { border: 1px solid transparent; }
        .tree-child.active { background: #F5F2FA; color: var(--uv-main); font-weight: 700; }
        .arrow { transition: transform 0.2s; }
        .arrow.open { transform: rotate(90deg); }

        /* Breadcrumbs */
        .breadcrumbs { margin-bottom: 1.5rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
        .breadcrumb { color: #6B7280; text-decoration: none; font-size: 0.875rem; }
        .breadcrumb:hover { color: var(--uv-hover); }
        .breadcrumb.active { color: var(--uv-main); font-weight: 500; }
        .breadcrumb-sep { color: #6B7280; }

        /* Product Grid */
        .products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
        .products-header h2 { font-size: 1.5rem; color: #1A1A1A; }
        .product-count { color: #6B7280; font-size: 0.875rem; }
        .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

        /* Product Card */
        .product-card { background: white; border: 1px solid #ECE7F5; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(80,40,140,0.08); transition: all 0.3s; cursor: pointer; position: relative; }
        .product-card:hover { transform: translateY(-4px); box-shadow: 0 4px 24px rgba(var(--uv-shadow),0.45); transition-duration: 0.1s; }
        .product-image { width: 100%; height: 250px; object-fit: contain; background: #fff; padding: 1rem; }
        .product-info { padding: 1.25rem; }
        .product-name { font-size: 1rem; font-weight: 500; margin-bottom: 0.75rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .product-price { font-size: 1.25rem; font-weight: 700; color: #1A1A1A; margin-bottom: 0.5rem; }
        .product-old-price { font-size: 0.875rem; color: #6B7280; text-decoration: line-through; margin-left: 0.5rem; }
        .product-registration { font-size: 0.75rem; color: #3A206E; margin-top: 0.5rem; background: var(--uv-bg); border: 1px solid #B098E1; border-radius: 6px; padding: 0.35rem 0.6rem; display: inline-block; }
        /* Индикатор «Кварцевание включено» — пульсирующий УФ-свет */
        .uv-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--uv-hover); box-shadow: 0 0 12px rgba(var(--uv-shadow),0.8); animation: uv-glow 2s ease-in-out infinite; display: inline-block; margin-right: 6px; vertical-align: middle; }
        @keyframes uv-glow { 0%, 100% { box-shadow: 0 0 10px rgba(var(--uv-shadow),0.5); } 50% { box-shadow: 0 0 20px rgba(var(--uv-shadow),1); } }

        /* Stickers */
        .sticker { position: absolute; top: 12px; left: 12px; padding: 0.375rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
        .sticker-hit { background: #B45309; color: #fff; }
        .sticker-new { background: #2563A8; color: #fff; }
        .sticker-sale { background: #B3261E; color: #fff; }

        /* Product Detail Page */
        .product-detail { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
        
        /* Верхний блок: фото + инфо */
        .product-detail-top { display: grid; grid-template-columns: 400px 1fr; gap: 3rem; margin-bottom: 3rem; }
        .product-detail-image { width: 100%; max-height: 500px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2rem; }
        .product-gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
        .gallery-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
        .gallery-thumb.active, .gallery-thumb:hover { border-color: var(--uv-main); opacity: 1; }
        .variant-btn { padding: 0.5rem 1rem; border: 2px solid #ECE7F5; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.875rem; color: #1A1A1A; transition: all 0.15s; }
        .variant-btn:hover { border-color: var(--uv-main); transition-duration: 0.1s; }
        .variant-btn.active { border-color: var(--uv-main); background: var(--uv-main); color: #fff; }
        .product-detail-info h1 { font-size: 1.75rem; margin-bottom: 1rem; color: #1A1A1A; line-height: 1.3; }
        /* Шапка карточки: набор свойств задаётся флагами show_in_header из CRM */
        .product-head-facts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
        .product-head-facts li { font-size: 0.95rem; color: #1A1A1A; }
        .product-head-facts .head-fact-label { color: #6B7280; margin-right: 0.35rem; }
        .product-head-facts .head-fact-value { font-weight: 600; }
        .product-detail-price { font-size: 2rem; font-weight: 700; color: #1A1A1A; margin-bottom: 1.5rem; }
        
        /* HTML описание на всю ширину */
        .product-description-html { margin-bottom: 2rem; padding: 1.5rem 0; border-top: 1px solid #D8D2E4; }
        .product-description-html img { max-width: 100%; height: auto; }
        .product-description-html table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
        .product-description-html td, .product-description-html th { border: 1px solid #ddd; padding: 0.5rem; }
        
        /* Короткое описание */
        .product-detail-description { color: #4A4A52; line-height: 1.6; margin-bottom: 1.5rem; }
        .product-attributes { margin-bottom: 2rem; }
        .product-attributes h3 { font-size: 1.125rem; margin-bottom: 1rem; color: #1A1A1A; }
        .attribute-row { display: flex; padding: 0.75rem 0; border-bottom: 1px solid #D8D2E4; }
        .attribute-key { width: 200px; color: #6B7280; }
        .attribute-value { flex: 1; color: #1A1A1A; font-weight: 500; }
        .btn-primary { background: var(--uv-main); color: white; padding: 1rem 2rem; border: none; border-radius: 8px; font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 2px 16px rgba(var(--uv-shadow),0.3); transition-duration: 0.1s; }
        .btn-secondary { background: #F8F7FB; color: #1A1A1A; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; margin-left: 1rem; transition: all 0.2s; }
        .btn-secondary:hover { background: #D8D2E4; transition-duration: 0.1s; }

        /* Related Products */
        .related-products { margin-top: 3rem; }
        .related-products h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: #1A1A1A; }

        /* Loading */
        .loading { text-align: center; padding: 3rem; color: #6B7280; }
        .spinner { border: 3px solid #D8D2E4; border-top: 3px solid var(--uv-main); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* Filter Button */
        .filter-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: white; border: 2px solid #ECE7F5; border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: #1A1A1A; transition: all 0.2s; }
        .filter-btn:hover { background: var(--uv-bg); transition-duration: 0.1s; }
        .filter-btn.active { background: var(--uv-main); color: white; border-color: var(--uv-main); }
        .filter-btn svg { width: 18px; height: 18px; }
        .filter-count { background: var(--uv-main); color: white; border-radius: 10px; padding: 0.1rem 0.5rem; font-size: 0.75rem; }
        .filter-btn.active .filter-count { background: white; color: var(--uv-main); }

        /* Filter Panel Overlay */
        .filter-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; opacity: 0; transition: opacity 0.3s; }
        .filter-overlay.active { display: block; opacity: 1; }

        /* Filter Panel */
        .filter-panel { position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; background: white; z-index: 201; box-shadow: -4px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease; display: flex; flex-direction: column; }
        .filter-panel.active { right: 0; }
        .filter-panel-header { padding: 1.5rem; border-bottom: 1px solid #D8D2E4; display: flex; justify-content: space-between; align-items: center; }
        .filter-panel-header h3 { font-size: 1.25rem; color: #1A1A1A; }
        .filter-close { width: 32px; height: 32px; border: none; background: #F8F7FB; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
        .filter-close:hover { background: #D8D2E4; transition-duration: 0.1s; }
        .filter-panel-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
        .filter-panel-footer { padding: 1rem 1.5rem; border-top: 1px solid #D8D2E4; display: flex; gap: 0.75rem; }
        .filter-apply-btn { flex: 1; padding: 0.75rem; background: var(--uv-main); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
        .filter-apply-btn:hover { background: var(--uv-hover); transition-duration: 0.1s; }
        .filter-reset-btn { flex: 1; padding: 0.75rem; background: #F8F7FB; color: #1A1A1A; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
        .filter-reset-btn:hover { background: #D8D2E4; }

        /* Filter Group */
        .filter-group { margin-bottom: 1.5rem; }
        .filter-group-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 0.5rem 0; }
        .filter-group-header h4 { font-size: 1rem; color: #1A1A1A; }
        .filter-group-toggle { font-size: 0.8rem; color: #6B7280; }
        .filter-group-body { padding-left: 0.75rem; }

        /* Filter Input Fields */
        .filter-property { margin-bottom: 1rem; }
        .filter-property label { display: block; font-size: 0.85rem; font-weight: 500; color: #4A4A52; margin-bottom: 0.35rem; }
        .filter-property input[type="number"],
        .filter-property input[type="text"],
        .filter-property select {
            width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ECE7F5; border-radius: 6px;
            font-size: 0.9rem; color: #1A1A1A; background: white; transition: border-color 0.2s;
        }
        .filter-property input:focus,
        .filter-property select:focus { outline: none; border-color: var(--uv-main); box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
        .filter-range-row { display: flex; gap: 0.5rem; align-items: center; }
        .filter-range-row .filter-range-separator { color: #6B7280; font-size: 0.85rem; }
        /* Единица измерения: видна у заполненного поля, скрыта во время ввода (контракт §8.3) */
        .filter-range-row .facet-unit { display: none; color: #6B7280; font-size: 0.8rem; white-space: nowrap; }
        .filter-range-row input:not(:placeholder-shown) + .facet-unit { display: inline; }
        .filter-range-row input:focus + .facet-unit { display: none; }
        .filter-unit { display: inline-block; font-size: 0.75rem; color: #6B7280; margin-top: 0.25rem; }
        .filter-no-options { font-size: 0.8rem; color: #6B7280; font-style: italic; }
        .filter-select-multi label { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; cursor: pointer; font-size: 0.85rem; }
        .filter-select-multi input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--uv-main); }
        .filter-range-row input { flex: 1; }
        .filter-select-multi { border: 1px solid #ECE7F5; border-radius: 6px; padding: 0.25rem; }
        .filter-select-multi label { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem; border-radius: 4px; cursor: pointer; font-weight: 400; font-size: 0.85rem; }
        .filter-select-multi label:hover { background: #F8F7FB; }
        .filter-select-multi input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--uv-main); }
        .active-filter-tag { display: flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; background: #F5F2FA; border-radius: 6px; font-size: 0.8rem; color: var(--uv-hover); }
        .active-filter-tag .remove { cursor: pointer; font-weight: bold; margin-left: 0.25rem; }

        /* Cart Icon in Header */
        .cart-icon { cursor: pointer; position: relative; padding: 0.5rem; display: flex; align-items: center; gap: 0.5rem; color: #4A4A52; transition: all 0.2s; border-radius: 6px; }
        .cart-icon:hover { color: var(--uv-main); background: var(--uv-bg); transition-duration: 0.1s; }
        .cart-icon svg { width: 28px; height: 28px; }
        .cart-badge { position: absolute; top: 0; right: 0; background: #B3261E; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
        .cart-badge.empty { display: none; }

        /* Cart Modal */
        .cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 300; display: none; opacity: 0; transition: opacity 0.3s; }
        .cart-overlay.active { display: block; opacity: 1; }
        .cart-modal { position: fixed; top: 0; right: -640px; width: 620px; max-width: 100vw; height: 100vh; background: white; z-index: 301; box-shadow: -4px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease; display: flex; flex-direction: column; }
        .cart-modal.active { right: 0; }
        .cart-header { padding: 1.5rem; border-bottom: 1px solid #D8D2E4; display: flex; justify-content: space-between; align-items: center; }
        .cart-header h3 { font-size: 1.25rem; color: #1A1A1A; }
        .cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
        .cart-footer { padding: 1.5rem; border-top: 1px solid #D8D2E4; background: #F8F7FB; }
        .cart-empty { text-align: center; padding: 3rem 1rem; color: #6B7280; }
        .cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
        .cart-item { display: flex; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid #F8F7FB; align-items: flex-start; }
        .cart-item-img-wrap { flex-shrink: 0; cursor: pointer; }
        .cart-item-img-wrap:hover .cart-item-img { outline: 2px solid #F5F2FA; }
        .cart-item-img { width: 70px; height: 70px; object-fit: contain; border-radius: 6px; background: #fff; transition: outline 0.2s; }
        .cart-item-name-wrap { flex: 1; min-width: 0; cursor: pointer; }
        .cart-item-name-wrap:hover .cart-item-name { color: var(--uv-main); }
        .cart-item-name { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.25rem; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; transition: color 0.2s; line-height: 1.4; }
        .cart-item-right { flex-shrink: 0; width: 150px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
        .cart-item-price { font-size: 0.85rem; color: #6B7280; white-space: nowrap; }
        .cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
        .cart-item-qty button { width: 28px; height: 28px; border: 1px solid #ECE7F5; border-radius: 4px; background: white; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
        .cart-item-qty button:hover { background: #F8F7FB; }
        .cart-item-qty span { min-width: 24px; text-align: center; font-weight: 600; }
        .cart-item-remove { color: #B3261E; cursor: pointer; font-size: 0.85rem; margin-top: 0.5rem; }
        .cart-item-remove:hover { text-decoration: underline; }
        .cart-summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; }
        .cart-summary-row.total { font-size: 1.1rem; font-weight: 700; color: #1A1A1A; border-top: 2px solid #D8D2E4; margin-top: 0.5rem; padding-top: 0.75rem; }
        .cart-summary-row .label { color: #6B7280; }
        .cart-action-btn { width: 100%; padding: 0.875rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 0.75rem; transition: all 0.2s; }
        .cart-action-btn:disabled { opacity: 0.6; cursor: default; }
        .cart-action-btn.invoice { background: var(--uv-main); color: white; }
        .cart-action-btn.invoice:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
        .cart-action-btn.quote { background: #F8F7FB; color: #1A1A1A; }
        .cart-action-btn.quote:hover { background: #D8D2E4; }
        .cart-close { width: 32px; height: 32px; border: none; background: #F8F7FB; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
        .cart-close:hover { background: #D8D2E4; }

        /* Cart button area - absolutely positioned at bottom-right of card */
        .card-cart-area { position: absolute; bottom: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 0.5rem; }
        /* Кнопка корзины — «тихая» до добавления (ТЗ 4.7b) */
        .btn-add-cart-icon { width: 44px; height: 44px; border: 1px solid #ECE7F5; background: #F5F2FA; color: #9E8FC0; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: none; flex-shrink: 0; }
        .btn-add-cart-icon:hover { transform: translateY(-2px); background: var(--uv-chip); color: var(--uv-main); border-color: var(--uv-border); transition-duration: 0.1s; }
        /* При наведении на карточку — корзина и цена становятся акцентными */
        .product-card:hover .btn-add-cart-icon:not(.card-added) { background: var(--uv-main); color: #fff; border-color: var(--uv-main); box-shadow: 0 2px 12px rgba(var(--uv-shadow),0.35); }
        .product-card:hover .product-price { color: var(--uv-main); }
        /* Добавлен в корзину — яркая УФ-заливка со свечением */
        .btn-add-cart-icon.card-added { border: none; background: var(--uv-main); color: #fff; box-shadow: 0 2px 12px rgba(var(--uv-shadow),0.35); }
        .btn-add-cart-icon.card-added:hover { background: var(--uv-hover); }
        .btn-add-cart-icon svg { width: 22px; height: 22px; margin-left: -3px; }

        /* Card quantity counter (shown after adding to cart) */
        .card-qty-counter { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: #F8F7FB; border-radius: 8px; }
        .card-qty-btn { width: 32px; height: 32px; border: 2px solid #ECE7F5; border-radius: 6px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
        .card-qty-btn:hover { background: #F5F2FA; }
        .card-qty-btn:hover svg { stroke: white; }
        .card-qty-btn svg { width: 16px; height: 16px; stroke: #1A1A1A; stroke-width: 3; fill: none; }
        .card-qty-value { font-size: 1.1rem; font-weight: 700; min-width: 32px; text-align: center; color: #1A1A1A; }
        .card-cart-icon-btn { margin-left: auto; width: 36px; height: 36px; border: none; background: var(--uv-main); color: white; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
        .card-cart-icon-btn:hover { background: var(--uv-hover); }
        .card-cart-icon-btn svg { width: 18px; height: 18px; }

        /* Breadcrumb back arrow */
        .breadcrumb-back { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 4px; border-radius: 6px; transition: background 0.2s; }
        .breadcrumb-back:hover { background: #F8F7FB; }
        .breadcrumb-back svg { width: 20px; height: 20px; }

        /* Quantity Counter */
        .qty-counter { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
        .qty-btn { width: 40px; height: 40px; border: 2px solid #ECE7F5; border-radius: 8px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .qty-btn:hover { background: #F5F2FA; }
        .qty-btn:hover svg { stroke: white; }
        .qty-btn svg { width: 20px; height: 20px; stroke: #1A1A1A; stroke-width: 3; fill: none; }
        .qty-value { font-size: 1.25rem; font-weight: 700; min-width: 40px; text-align: center; color: #1A1A1A; }
        .btn-add-cart-inline { margin-left: auto; padding: 0.75rem 1.5rem; background: var(--uv-main); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; transition: background 0.2s; }
        .btn-add-cart-inline:hover { background: var(--uv-hover); }
        .btn-add-cart-inline svg { width: 20px; height: 20px; }

        /* Properties Table in Product Detail */
        .properties-table-section { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid #D8D2E4; }
        .properties-table-section h3 { font-size: 1.25rem; color: #1A1A1A; margin-bottom: 1.5rem; }
        .properties-group { margin-bottom: 1.5rem; }
        .properties-group h4 { font-size: 1rem; color: #1A1A1A; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #D8D2E4; }
        .properties-group h4 .group-icon { margin-right: 0.5rem; }
        .properties-group.dimensions-product h4 { color: #6B7280; }  /* зелёный — габариты изделия */
        .properties-group.dimensions-package h4 { color: #6B7280; }  /* оранжевый — габариты упаковки */
        .properties-table { width: 100%; border-collapse: collapse; }
        .properties-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #F8F7FB; }
        .properties-table tr:last-child td { border-bottom: none; }
        .properties-table td:first-child { color: #6B7280; width: 45%; }
        .properties-table td:last-child { color: #1A1A1A; font-weight: 500; }
        
        /* Discovered properties indicator */
        .properties-table tr.discovered-row { background: #FDF0DC; }
        .properties-table tr.discovered-row td:last-child { position: relative; }
        .discovered-badge { display: inline-block; font-size: 0.65rem; background: #B45309; color: white; padding: 1px 6px; border-radius: 4px; margin-left: 0.5rem; vertical-align: middle; font-weight: 600; letter-spacing: 0.02em; }

        /* Responsive */
        @media (max-width: 1024px) {
            .container { flex-direction: column; }
            .sidebar { width: 100%; }
            .product-detail-grid { grid-template-columns: 1fr; }
            .filter-panel { width: 100%; right: -100%; }
        }

        @media (max-width: 768px) {
            /* Header: stack logo and search */
            .header { padding: 0.75rem 1rem; }
            .header-content { flex-direction: column; gap: 0.75rem; }
            .logo-img { height: 40px; }
            .search-box { max-width: 100%; width: 100%; }
            .search-box input { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
            .search-box button { padding: 0.6rem 1rem; }
            .header-stats { font-size: 0.75rem; text-align: center; }

            /* Container: single column, less padding */
            .container { padding: 1rem; gap: 1rem; }

            /* Category tree: collapsible accordion style */
            .category-tree { position: static; max-height: none; }
            .category-tree #treeContent { display: none; }
            .category-tree.expanded #treeContent { display: block; }
            .category-tree h3 { cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; }
            .category-tree h3::after { content: '▼'; font-size: 0.8rem; transition: transform 0.2s; }
            .category-tree.expanded h3::after { transform: rotate(180deg); }

            /* Product grid: 2 columns on mobile */
            .products-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
            .product-image { height: 180px; padding: 0.5rem; }
            .product-info { padding: 0.75rem; }
            .product-name { font-size: 0.85rem; -webkit-line-clamp: 3; }
            .product-price { font-size: 1rem; }
            .product-old-price { font-size: 0.75rem; }

            /* Product detail: single column */
            .product-detail { padding: 1rem; }
            .product-detail-top { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
            .product-detail-image { max-height: 300px; padding: 1rem; }
            .product-detail-info h1 { font-size: 1.25rem; }
            .product-detail-price { font-size: 1.5rem; }

            /* Attributes: flexible key width */
            .attribute-key { width: auto; flex: 0 0 120px; font-size: 0.85rem; }
            .attribute-value { font-size: 0.85rem; }

            /* Buttons: full width on mobile */
            .btn-primary, .btn-secondary { display: block; width: 100%; margin: 0.5rem 0; text-align: center; }
            .btn-secondary { margin-left: 0; }

            /* Breadcrumbs: smaller */
            .breadcrumbs { font-size: 0.8rem; }

            /* Products header */
            .products-header h2 { font-size: 1.15rem; }

            /* Filter panel: full screen on mobile */
            .filter-panel { width: 100%; right: -100%; }
            .filter-panel-body { padding: 1rem; }

            /* Properties table: simpler on mobile */
            .properties-table td { display: block; width: 100%; padding: 0.3rem 0; }
            .properties-table td:first-child { font-size: 0.75rem; color: #6B7280; text-transform: uppercase; }
            .properties-table td:last-child { font-size: 0.95rem; }

            /* Search results */
            .search-results { max-height: 250px; }
            .search-item img { width: 32px; height: 32px; }
        }

        @media (max-width: 480px) {
            /* Ultra compact: 1 column grid for very small screens */
            .products-grid, .product-grid { grid-template-columns: 1fr; }
            .product-image { height: 200px; }
            .product-name { font-size: 0.95rem; }
            .product-price { font-size: 1.15rem; }

            /* Header even more compact */
            .header { padding: 0.5rem 0.75rem; }
            .logo-img { height: 35px; }
        }
