
        .city-selector {
            position: relative;
            display: inline-block;
            margin: 10px;
        }
        .city-trigger {
            background: var(--GRADIENT);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            transition: background 0.3s;
            white-space: nowrap;
            box-shadow: var(--GRADIENT_SHADOW);
        }
        .city-trigger:hover {
            background: var(--BRAND_BLUE_DARK);
        }
        .city-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--BLOCK_COLOR);
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: var(--BLOCK_SHADOW);
            min-width: 250px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            margin-top: 5px;
        }
        .city-dropdown.show {
            display: block;
        }
        .city-search {
            padding: 10px;
            border-bottom: 1px solid #f0f0f0;
        }
        .city-search input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 20px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }
        .city-search input:focus {
            border-color: var(--BRAND_BLUE);
        }
        .city-options {
            max-height: 300px;
            overflow-y: auto;
        }
        .city-option {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.2s;
            color: var(--TEXT_COLOR);
        }
        .city-option:hover {
            background: #f8f9fa;
        }
        .city-option.active {
            background: var(--GRADIENT);
            color: white;
        }
        .city-option:last-child {
            border-bottom: none;
        }
        .no-results {
            padding: 10px 15px;
            color: #777;
            font-style: italic;
            text-align: center;
        }
        
.loading-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center; /* Указываем точку трансформации */
}

.loading-circle svg {
    width: 200px; /* меняйте на любой размер */
    height: 200px;
    display: block; /* важно! */
}

        .section-divider {
            width: 100%;
            padding: 15px 10px;
            background: var(--BLOCK_COLOR);
            margin: 20px 0 10px 0;
            border-radius: var(--BR_BASE);
            box-shadow: var(--BLOCK_SHADOW);
            font-family: var(--FF_TITLE);
            font-size: 18px;
            color: var(--TITLE_COLOR);
            text-align: center;
            border-left: 4px solid var(--BRAND_BLUE);
        }

        .advertisement {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin: 10px 0;
            padding: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        .advertisement img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 5px;
        }
        .advertisement .PC-Title {
            font-size: 18px;
            font-weight: bold;
            margin: 10px 0;
        }
        .advertisement .PC-Description {
            font-size: 14px;
            color: #555;
            margin: 10px 0;
        }
        .advertisement .PC-City {
            font-size: 12px;
            color: #777;
        }
        .ad-label {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: rgba(255, 59, 48, 0.9);
            color: white;
            padding: 5px 10px;
            font-size: 12px;
            font-weight: bold;
            border-radius: 3px;
            z-index: 2;
        }
        .PC-Image {
            position: relative;
            background-size: cover;
            background-position: center;
            width: 100%;
            height: 200px;
            border-radius: 5px;
            overflow: hidden;
        }
        .ImageCount {
            position: absolute;
            bottom: 5px;
            left: 5px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 5px;
            font-size: 14px;
            border-radius: 3px;
            display: flex;
            align-items: center;
        }
        .ImageCount i {
            margin-right: 5px;
        }
        .empty-product {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            grid-column: 1 / -1;
            height: calc(100vh - 640px);
            min-height: 180px;
            text-align: center;
            color: #555;
        }
        .empty-product i {
            font-size: 67px;
            color: var(--BRAND_BLUE);
            margin-bottom: 22px;
        }
        .empty-product p:first-of-type {
            font-size: 25px;
            font-weight: bold;
            margin: 0;
        }
        .empty-product p:last-of-type {
            font-size: 18.5px;
            color: #777;
            margin-top: 10px;
        }
        .categories-container {
            margin: 80px 0 20px 0;
            padding: 0 10px;
            position: relative;
        }
        .categories-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
            text-align: left;
            padding-left: 10px;
        }
        .categories-scroll {
            display: flex;
            align-items: center;
            position: relative;
            max-width: 100%;
            overflow: hidden;
        }
        .categories-wrapper {
            display: flex;
            gap: 20px;
            padding: 10px 0;
            overflow-x: auto;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            flex: 1;
            margin: 0 40px;
        }
        .categories-wrapper::-webkit-scrollbar {
            display: none;
        }
        .category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s;
            text-decoration: none;
            color: inherit;
            flex-shrink: 0;
            min-width: 80px;
        }
        .category-item:hover {
            transform: scale(1.05);
        }
        .category-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #f8f9fa;
            border: 2px solid var(--BRAND_BLUE);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 8px;
        }
        .category-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .category-name {
            font-size: 12px;
            text-align: center;
            color: #333;
            font-weight: 500;
            max-width: 80px;
            word-wrap: break-word;
        }
        .scroll-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: white;
            border: 2px solid var(--BRAND_BLUE);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            opacity: 0;
            pointer-events: none;
        }
        .scroll-button.visible {
            opacity: 1;
            pointer-events: all;
        }
        .scroll-button:hover {
            background: var(--BRAND_BLUE);
            color: white;
        }
        .scroll-button.left {
            left: 0;
        }
        .scroll-button.right {
            right: 0;
        }
        .scroll-button i {
            font-size: 18px;
        }

/* Главная: плитки категорий в верхней части страницы */
body.home-page {
    background: #fff;
}

body.home-page .Content {
    width: 100%;
    max-width: 1200px;
}

body.home-page .categories-container {
    margin: 94px 0 24px;
    padding: 0 28px;
}

body.home-page .categories-track {
    position: relative;
    width: min(100%, 1086px);
    margin-inline: auto;
}

body.home-page .categories-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body.home-page .categories-scroll::-webkit-scrollbar { display: none; }

body.home-page .categories-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 210px);
    grid-template-rows: repeat(2, 105px);
    gap: 9px;
    width: 1086px;
    margin: 0;
    padding: 4px 0 10px;
}

body.home-page .category-tile {
    --tile-bg: #f4f5f6;
    position: relative;
    display: block;
    min-width: 0;
    height: 105px;
    overflow: hidden;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 19px;
    background: var(--tile-bg);
    color: #17191b;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    transition: background .18s ease;
}

body.home-page .category-tile * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

body.home-page .category-tile:hover {
    --tile-bg: #eceef0;
    background: #eceef0;
}

body.home-page .category-tile.active {
    --tile-bg: var(--BRAND_BLUE_TINT);
    border-color: var(--BRAND_BLUE);
    background: var(--tile-bg);
}

body.home-page .category-tile-title {
    position: relative;
    z-index: 1;
    display: block;
    width: 110px;
    max-width: 110px;
    color: inherit;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.15;
    white-space: normal;
    background: var(--tile-bg);
    transition: background .18s ease;
}

body.home-page .category-artwork {
    position: absolute;
    right: 6px;
    bottom: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: multiply;
    pointer-events: none;
    user-select: none;
}

body.home-page .scroll-button {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--BRAND_BLUE);
    border-radius: 50%;
    background: #fff;
    color: var(--BRAND_BLUE);
    box-shadow: 0 2px 8px rgb(35 28 49 / 12%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, background .18s ease, color .18s ease;
}

body.home-page .scroll-button.visible {
    opacity: 1;
    pointer-events: auto;
}

body.home-page .scroll-button:hover {
    background: var(--BRAND_BLUE);
    color: #fff;
}

body.home-page .scroll-button.left { left: -18.5px; }
body.home-page .scroll-button.right { right: -18.5px; }

/* Карточки объявлений выровнены по той же ширине, что и сетка категорий. */
body.home-page .C-Products {
    display: grid;
    width: min(calc(100% - 56px), 1086px);
    max-width: 1086px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin: 0 auto 24px;
}

body.home-page .empty-product.has-recommendations {
    height: auto;
    min-height: 0;
    padding: 26px 12px 18px;
}

body.home-page .empty-product.has-recommendations > i {
    margin-bottom: 9px;
    font-size: 42px;
}

body.home-page .empty-product.has-recommendations p:first-of-type {
    font-size: 22px;
}

body.home-page .empty-product.has-recommendations p:last-of-type {
    margin-top: 6px;
    font-size: 16px;
}

body.home-page .fallback-listing-heading {
    grid-column: 1 / -1;
    padding: 4px 2px 2px;
}

body.home-page .fallback-listing-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

body.home-page .fallback-load-sentinel {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
    pointer-events: none;
}

body.home-page .ProductContainer {
    min-width: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #17191b;
}

body.home-page .listing-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 13px;
    background: #f1f2f3;
}

body.home-page .listing-card-photo {
    display: block;
    width: 100%;
    height: 100%;
}

body.home-page .listing-card-image .product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .listing-card-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #76777b;
    font-size: 14px;
}

body.home-page .listing-card-no-image i {
    font-size: 30px;
}

body.home-page .listing-card-content {
    padding: 6px 0 0;
}

body.home-page .listing-card-title-row,
body.home-page .listing-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

body.home-page .listing-card-title-row {
    align-items: flex-start;
    min-height: 30px;
}

body.home-page .listing-card-title {
    min-width: 0;
    color: #17191b;
    font-size: 14.5px;
    line-height: 1.25;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.home-page .listing-card-title:hover {
    color: var(--BRAND_BLUE_DARK);
}

body.home-page .listing-favorite-form {
    flex: 0 0 auto;
    margin: -4px -5px 0 0;
}

body.home-page .listing-favorite-button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #17191b;
    font-size: 20px;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

body.home-page .listing-favorite-button:hover,
body.home-page .listing-favorite-button.is-favorite {
    color: var(--BRAND_BLUE);
}

body.home-page .listing-favorite-button:hover {
    background: var(--BRAND_BLUE_TINT);
}

body.home-page .listing-card-price-row {
    min-height: 26px;
    margin-top: 1px;
}

body.home-page .PC-Title {
    margin: 0;
    color: #111;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.2;
}

body.home-page .listing-more {
    position: relative;
    flex: 0 0 auto;
}

body.home-page .listing-more summary {
    display: inline-flex;
    width: 30px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #17191b;
    font-size: 16px;
    list-style: none;
    cursor: pointer;
}

body.home-page .listing-more summary::-webkit-details-marker {
    display: none;
}

body.home-page .listing-more summary:hover {
    background: #f1f1f1;
}

body.home-page .listing-more-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    min-width: 176px;
    padding: 5px;
    border: 1px solid #ececef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(24 28 35 / 14%);
}

body.home-page .listing-more-menu a,
body.home-page .listing-more-menu button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #27282b;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

body.home-page .listing-more-menu a:hover,
body.home-page .listing-more-menu button:hover {
    background: #f5f5f6;
}

body.home-page .PC-City {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
    color: #252629;
    font-size: 13.5px;
    line-height: 1.25;
}

body.home-page .PC-City i {
    font-size: 12px;
}

@media (max-width: 760px) {
    body.home-page .categories-container {
        margin-top: 144px;
        padding: 0 16px;
    }

    body.home-page .categories-track { width: 100%; }

    body.home-page .categories-scroll { width: 100%; }

    body.home-page .C-Products { width: calc(100% - 32px); }

    body.home-page .category-tile { 
        height: 105px;
        padding: 11px;
        border-radius: 17px;
    }

    body.home-page .category-tile-title { width: 110px; max-width: 110px; font-size: 14.5px; }
    body.home-page .scroll-button { display: none; }
}

@media (max-width: 600px) {
    body.home-page .C-Products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
        @media (max-width: 768px) {
            .categories-wrapper {
                margin: 0;
                gap: 15px;
                padding: 10px 5px;
            }
            .category-item {
                min-width: 70px;
            }
            .category-icon {
                width: 70px;
                height: 70px;
            }
            .categories-title {
                font-size: 20px;
                padding-left: 5px;
            }
            .scroll-button {
                display: none;
            }
        }
    
