.ad-list-banner {
    padding: 48px 0 42px;
    background: var(--chalk);
    border-bottom: 1px solid var(--border);
}

.ad-list-banner .single-content {
    text-align: left;
}

.ad-list-banner h1 {
    margin: 4px 0 12px;
    font-size: 32px;
    line-height: 1.2;
}

.ad-list-eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ad-list-banner .breadcrumb {
    justify-content: flex-start;
}

.ad-list-part {
    padding: 42px 0 64px;
}

.ad-list-sidebar {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    max-width: 25%;
    flex: 0 0 25%;
    visibility: visible;
    opacity: 1;
    background: transparent;
}

.ad-list-sidebar .filter-container {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transition: none;
}

.ad-list-sidebar .filter-header {
    display: none;
}

.ad-list-sidebar .filter-content {
    height: auto;
    overflow: visible;
}

.ad-list-sidebar .product-widget-title {
    font-size: 14px;
}

.ad-list-search {
    grid-template-columns: 1fr;
}

.ad-list-search input,
.ad-list-price-field input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
}

.ad-list-price-field {
    display: grid;
    gap: 5px;
    color: var(--gray);
    font-size: 12px;
}

.ad-list-check-label {
    gap: 12px;
}

.ad-list-check-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ad-list-check-name input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--primary);
}

.ad-list-check-name .product-widget-star {
    color: var(--text);
}

.ad-list-check-name .product-widget-star i {
    color: var(--yellow);
}

.ad-list-filter-empty {
    padding: 8px 0;
    color: var(--gray);
    font-size: 13px;
}

.ad-list-clear {
    display: block;
    margin-top: 12px;
    color: var(--gray);
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
}

.ad-list-heading {
    margin-bottom: 22px;
    text-align: left;
}

.ad-list-heading h2 {
    margin-bottom: 4px;
    color: var(--heading);
    font-size: 26px;
    line-height: 1.25;
    text-transform: none;
}

.ad-list-heading p,
.ad-list-result-count {
    color: var(--gray);
    font-size: 14px;
}

.ad-list-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-list-sort-form label {
    color: var(--gray);
    font-size: 12px;
    white-space: nowrap;
}

.ad-list-sort-form .filter-select {
    width: auto;
    min-width: 76px;
    padding: 0 28px 0 10px;
}

.ad-list-sort-form #ad-sort {
    min-width: 150px;
}

.ad-list-sort-submit {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 4px;
    color: var(--white);
    background: var(--primary);
}

.ad-list-sort-submit:hover {
    background: var(--primary-hover);
}

.ad-list-active-filters {
    align-items: center;
    margin: 0 0 24px;
    padding: 12px 0;
}

.ad-list-active-filters .selected-filter-list {
    gap: 7px;
}

.ad-list-active-filters .selected-filter-item {
    padding: 7px 10px;
    border-radius: 4px;
    color: var(--heading);
    font-size: 12px;
}

.ad-list-active-filters .selected-filter-clear {
    border-radius: 4px;
}

.ad-list-grid {
    row-gap: 4px;
}

.ad-list-card {
    display: flex;
    height: calc(100% - 30px);
    flex-direction: column;
    margin-bottom: 26px;
}

.ad-list-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: #e9eef1;
}

.ad-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-list-card .product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.ad-list-card .product-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 17px;
    line-height: 24px;
}

.ad-list-description {
    min-height: 40px;
    margin-bottom: 9px;
    color: var(--gray);
    font-size: 13px;
    line-height: 20px;
}

.ad-list-card .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: auto;
}

.ad-list-card .product-meta span {
    margin: 0;
    white-space: normal;
}

.ad-list-card .product-info {
    gap: 8px;
    min-height: 56px;
}

.ad-list-card .product-price {
    font-family: inherit;
    font-size: 15px;
}

.ad-list-card .product-price span {
    display: block;
    margin: 1px 0 0;
}

.ad-list-card .product-btn .ad-favorite-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--heading);
    background: var(--white);
}

.ad-list-card .product-btn .ad-favorite-button:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.ad-list-card .product-action {
    visibility: visible;
    opacity: 1;
}

.ad-list-card .product-media::before {
    visibility: visible;
    opacity: 1;
    background: linear-gradient(transparent 62%, rgba(0, 0, 0, 0.72));
}

.ad-list-empty {
    padding: 64px 20px;
    border: 1px solid var(--border);
    background: var(--chalk);
    text-align: center;
}

.ad-list-empty-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--white);
    font-size: 23px;
}

.ad-list-empty h3 {
    margin-bottom: 7px;
    font-size: 20px;
}

.ad-list-empty p {
    margin-bottom: 18px;
    color: var(--gray);
}

.ad-list-pagination {
    gap: 16px;
    flex-wrap: wrap;
}

.ad-list-pagination .page-info {
    margin: 0;
}

.ad-list-pagination nav > .d-none .small.text-muted {
    display: none !important;
}

.ad-list-pagination nav .pagination {
    margin-bottom: 0;
}

.ad-list-pagination nav .d-sm-none .page-link {
    width: auto;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 20px;
}

@media (max-width: 1199px) {
    .ad-list-sidebar {
        position: fixed;
        inset: 0;
        z-index: 20;
        width: 100%;
        max-width: none;
        height: 100dvh;
        flex: none;
        visibility: hidden;
        opacity: 0;
        background: rgba(13, 6, 51, 0.62);
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .ad-list-sidebar.active {
        visibility: visible;
        opacity: 1;
    }

    .ad-list-sidebar .filter-container {
        position: absolute;
        inset: 0 auto 0 0;
        width: min(360px, 92vw);
        height: 100dvh;
        background: #fbfbfb;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .ad-list-sidebar.active .filter-container {
        transform: translateX(0);
    }

    .ad-list-sidebar .filter-header {
        display: flex;
    }

    .ad-list-sidebar .filter-content {
        height: calc(100dvh - 62px);
        overflow-y: auto;
        padding: 0 14px 22px;
    }
}

@media (max-width: 767px) {
    .ad-list-part {
        padding: 28px 0 46px;
    }

    .ad-list-card {
        width: 100%;
    }

    .ad-list-banner {
        padding: 34px 0 28px;
    }

    .ad-list-banner h1 {
        font-size: 27px;
    }

    .ad-list-heading h2 {
        font-size: 22px;
    }

    .ad-list-sort-form {
        gap: 5px;
    }

    .ad-list-sort-form label {
        display: none;
    }

    .ad-list-sort-form #ad-sort {
        min-width: 132px;
    }

    .ad-list-sort-form .filter-select {
        height: 38px;
    }

    .ad-list-sort-submit {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .ad-list-result-count {
        display: none;
    }
}
