/* Vendor Listings Upgraded Styles */

/* Заголовок "Listings by name" */
.vendor-upgraded.hp-roww {
    width: 100%;
    margin-bottom: 50px;
}

.vendor-upgraded.hp-roww h1.hp-page__title {
    font-style: normal;
    font-size: 23px;
    line-height: 100%;
    letter-spacing: 0.02em;
    margin: 0;
    color: #000000ad;
}

.vendor-upgraded.hp-roww h1.hp-page__title span {
    color: black;
}

/* Класс .vendor-upgraded добавляется к <article class="hp-listing hp-listing--view-block vendor-upgraded"> */

.vendor-upgraded .hp-listing__categories a {
    padding: 0!important;
    background: transparent!important;
    border-radius: 0!important;
    margin: 0!important;
    line-height: 1!important;
    display: flex;
    align-items: center;
    text-transform: none!important;
    font-size: 0.6875rem!important;
    letter-spacing: normal!important;
}

.vendor-upgraded .hp-listing__categories a:hover {
    color: black!important;
}

.vendor-upgraded .hp-listing__categories.hp-listing__category {
    gap: 5px!important;
    margin-bottom: 40px!important;
}

.vendor-upgraded .hp-listing__title {
    margin-bottom: 15px !important;
    font-size: 15px!important;
}

.vendor-upgraded .hp-listing__image img {
    max-height: 180px!important;
    object-fit: cover!important;
}

.vendor-upgraded .hp-listing__content {
    padding: 15px!important;
}

.vendor-upgraded time.hp-listing__created-date.hp-listing__date.hp-meta {
    text-transform: none!important;
    letter-spacing: normal!important;
}
.vendor-upgraded.hp-roww h1.hp-page__title {
    display: block!important;
}

/* Vendor Listings Search Form (как в account-listings) */
.vendor-upgraded.hp-vendor-listings-search {
    margin-bottom: 30px;
}

.vendor-upgraded .hp-vendor-search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.vendor-upgraded .hp-vendor-sort-label {
    text-transform: lowercase;
}

.vendor-upgraded .search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.vendor-upgraded .search-input-wrapper::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    width: 16px;
    height: 16px;
    background-image: url('../../images/search.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.vendor-upgraded .hp-vendor-search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

.vendor-upgraded .hp-vendor-search-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: none;
}

.vendor-upgraded .hp-vendor-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
}

.vendor-upgraded .hp-vendor-search-clear:hover {
    color: #000;
}

.vendor-upgraded .hp-vendor-sort-wrapper {
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vendor-upgraded .hp-vendor-sort-label {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    white-space: nowrap;
}

.vendor-upgraded .hp-vendor-sort-select-wrapper {
    position: relative;
    min-width: 200px;
}

.vendor-upgraded .hp-vendor-sort-select {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #fff;
    cursor: pointer;
    color: #333;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    height: 46px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.vendor-upgraded .hp-vendor-sort-select:focus {
    border-color: #000;
    box-shadow: none;
}

.vendor-upgraded .hp-vendor-sort-select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 12px;
    background-image: url('../../images/vendorchev.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}



@media (max-width: 768px) {
    .vendor-upgraded {
        display: flex!important;
    }

    .vendor-upgraded .hp-listing__image {
        height: 100%!important;
    }

    .vendor-upgraded .hp-listing__image a {
        height: 100%;
        display: block;
    }

    .vendor-upgraded .hp-listing__image img {
        height: 100%;
        display: block;
    }
    .vendor-upgraded.hp-roww {
        display: block!important;
        margin: 0!important;
        order: 2;
        margin-bottom: 30px!important;
        margin-top: 30px!important;
    }
    .vendor-upgraded.hp-roww h1.hp-page__title {
        display: block!important;
        margin: 0!important;
    }
    aside.hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.hp-vendor.hp-vendor--view-page.site-sidebar {
        order: 1;
    }
    .hp-page__content.hp-col-sm-8.hp-col-xs-12 {
        order: 3;
    }
    .vendor-upgraded .hp-listing__footer {
        flex-direction: column;
        width: 25%;
        flex-shrink: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .hp-widget.hp-widget--vendor-listing-filter.categories-widget, .vendor-upgraded .hp-vendor-sort-wrapper {
        display: none!important;
    }
    .vendor-upgraded .search-input-wrapper {
        max-width: 100%;
    }
}
