:root {
            --primary: #0284c7;
            --primary-dark: #0369a1;
            --success: #10b981;
            --danger: #ef4444;
            --border: #cbd5e1;
            --text-main: #0f172a;
        }

        .cat-page-wrap {
            max-width: 1320px;
            margin: 1.2rem auto;
            padding: 0 1rem;
            box-sizing: border-box;
        }

        .breadcrumbs-nav {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.88rem;
            color: #64748b;
            margin-bottom: 1.2rem;
            background: #ffffff;
            padding: 10px 14px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            flex-wrap: wrap;
        }
        .breadcrumbs-nav a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        .breadcrumbs-nav a:hover { text-decoration: underline; }
        .breadcrumbs-nav .current-crumb {
            color: var(--text-main);
            font-weight: 800;
        }

        .catalog-main-layout {
            display: grid;
            grid-template-columns: 1fr 290px;
            gap: 20px;
            align-items: flex-start;
        }

        @media (max-width: 900px) {
            .catalog-main-layout { grid-template-columns: 1fr; }
            .mobile-filter-toggle { display: block !important; }
            .filter-sidebar-box { display: none; }
            .filter-sidebar-box.open-mobile { display: block !important; margin-bottom: 1.5rem; }
        }

        .filter-sidebar-box {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.2rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
            position: sticky;
            top: 75px;
        }
        .filter-row {
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 12px;
            margin-bottom: 12px;
        }
        .filter-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
        .filter-caption {
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--primary-dark);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-bottom: 6px;
        }
        .filter-input-ctrl {
            width: 100%;
            padding: 0.65rem 0.8rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.88rem;
            background: #f8fafc;
            box-sizing: border-box;
            color: var(--text-main);
        }
        .filter-input-ctrl:focus {
            background: #ffffff;
            border-color: var(--primary);
            outline: none;
        }

        .subcat-choice-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 14px;
            margin-bottom: 2rem;
        }
        .subcat-choice-card {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.2rem;
            text-decoration: none;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }
        .subcat-choice-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            background: #f0f9ff;
            box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
        }
        .subcat-choice-card b {
            color: var(--primary-dark);
            font-size: 0.98rem;
        }

        .goods-grid-view {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
            gap: 16px;
        }
        .goods-grid-view.list-layout { grid-template-columns: 1fr; }
        
        .good-item-card {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.1rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
        }
        .good-item-card:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
        }
        .img-thumb-holder {
            width: 100%;
            height: 180px;
            background: #f8fafc;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            cursor: zoom-in;
            margin-bottom: 10px;
        }
        .img-thumb-holder img {
            max-width: 95%;
            max-height: 95%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        .img-thumb-holder:hover img { transform: scale(1.06); }
        .zoom-tip {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(15, 23, 42, 0.65);
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            pointer-events: none;
        }

        .rating-stars-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.8rem;
            font-weight: 800;
            color: #d97706;
            margin: 2px 0 4px 0;
        }

        .btn-mini-act {
            border: 1px solid var(--border);
            background: #f8fafc;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.9rem;
            transition: 0.2s;
        }
        .btn-mini-act:hover { background: #e2e8f0; }
        
        .btn-add-basket {
            background: var(--primary);
            color: white;
            border: none;
            padding: 7px 14px;
            border-radius: 6px;
            font-weight: bold;
            cursor: pointer;
            font-size: 0.85rem;
            transition: 0.2s;
        }
        .btn-add-basket:hover { background: var(--primary-dark); }
        
        .btn-one-click-lead {
            background: #f0fdf4;
            color: #166534;
            border: 1px solid #bbf7d0;
            padding: 7px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.82rem;
            cursor: pointer;
            width: 100%;
            margin-top: 6px;
            text-align: center;
            transition: 0.2s;
        }
        .btn-one-click-lead:hover { background: #dcfce7; }

        /* ИДЕАЛЬНОЕ МОДАЛЬНОЕ ОКНО ДЛЯ 1 КЛИКА И ЗУМА */
        .modal-shade-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(4px);
            z-index: 999999;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            box-sizing: border-box;
        }
        .modal-pure-white-card {
            background: #ffffff !important;
            border: 1px solid #cbd5e1;
            border-radius: 14px;
            padding: 1.6rem;
            max-width: 440px;
            width: 100%;
            position: relative;
            box-shadow: 0 20px 40px rgba(0,0,0,0.25);
            color: #0f172a !important;
            box-sizing: border-box;
            animation: modalFadeIn 0.2s ease-out;
        }
        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        .modal-close-cross {
            position: absolute;
            top: 14px;
            right: 16px;
            font-size: 1.4rem;
            font-weight: bold;
            color: #64748b;
            cursor: pointer;
            line-height: 1;
            transition: 0.2s;
        }
        .modal-close-cross:hover { color: #ef4444; }
