/*ROOT*/
:root {
    --bs-nav-link-font-size: .875rem;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*AY*/
.ay-logo {
    margin-right: 2rem;
}
.ay-menu .dropdown-toggle {
    font-size: 0.8rem!important;
}
.ay-input-search {
    border-right: 0!important;
}
.ay-btn-search {
    border-color: var(--bs-border-color)!important;
    border-left: 0!important;
}
.bg-contains {
    color: #fff;
}
.bg-contains .bg-contain {
    width: 100%;
    height: 386px;
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    border-radius: 15px;
}
.bg-contains .bg-contain-s {
    background-image: url("/ay/assets/img/fish/bg-container-s.png");
}
.bg-contains .bg-contain-c {
    background-image: url("/ay/assets/img/fish/bg-container-c.png");
}
.bg-contains .bg-contain-e {
    background-image: url("/ay/assets/img/fish/bg-container-e.png");
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*COMMONS*/
.btn-orange {
    color: #fff;
    background-color: rgba(255, 107, 0, 1);
    border-color: rgba(255, 107, 0, 1);
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*BREADCRUMBS*/
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 15px 0;
    font-size: 0.875rem;
}
.breadcrumb .breadcrumb-item {
    color: #000;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.breadcrumb .breadcrumb-item:hover {
    background-color: #e9ecef;
    color: #6c757d;
}
.breadcrumb .breadcrumb-item.current {
    color: #6c757d;
    font-weight: 500;
}
.breadcrumb .separator {
    color: #6c757d;
    margin: 0 5px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*OVERLAY BACKGROUND*/
/* Затемнение фона */
.search-overlay {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Выпадающее меню поиска */
.search-dropdown {
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 400px;
    overflow: hidden; /* Убираем overflow с родителя */
}
.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Контент с красивым скроллом */
.search-dropdown-content {
    padding: 20px;
    max-height: 360px; /* Учитываем padding родителя */
    overflow-y: auto;

    /* Кастомный скроллбар для Webkit браузеров */
    scrollbar-width: thin;
    scrollbar-color: #515151 #f1f1f1;
}
/* Стилизация скроллбара для Webkit браузеров (Chrome, Safari, Edge) */
.search-dropdown-content::-webkit-scrollbar {
    width: 8px;
}
.search-dropdown-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
    margin: 5px 0;
}
.search-dropdown-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #515151 0%, #000000 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.search-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #515151 0%, #000000 100%);
    transform: scale(1.1);
}
.search-dropdown-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #515151 0%, #000000 100%);
}
/* Дополнительные эффекты для скроллбара */
.search-dropdown-content::-webkit-scrollbar-corner {
    background: #f8f9fa;
}
/* Анимация появления скроллбара */
.search-dropdown-content:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #515151 0%, #000000 100%);
    box-shadow: 0 2px 4px rgba(34, 34, 34, 0.3);
}
/* Плавный скролл */
.search-dropdown-content {
    scroll-behavior: smooth;
}
/* Стили для Firefox */
@supports (scrollbar-width: thin) {
    .search-dropdown-content {
        scrollbar-width: thin;
        scrollbar-color: #000 #f1f1f1;
    }
}
.search-section-title {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Список предложений */
.search-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.search-suggestion-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.search-suggestion-item:hover {
    background-color: #f8f9fa;
    border-left-color: #6c757d;
    color: #6c757d;
    transform: translateX(5px);
}
/* Список категорий */
.search-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-category-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.search-category-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}
.category-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}
/* Адаптивность */
@media (max-width: 768px) {
    .search-dropdown {
        left: 15px;
        right: 15px;
        border-radius: 10px;
    }
    .search-dropdown-content {
        padding: 15px;
        max-height: 340px; /* Учитываем уменьшенный padding */
    }
}
/* Плавная анимация появления элементов */
.search-suggestion-item,
.search-category-item {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}
.search-suggestion-item:nth-child(1) { animation-delay: 0.1s; }
.search-suggestion-item:nth-child(2) { animation-delay: 0.15s; }
.search-suggestion-item:nth-child(3) { animation-delay: 0.2s; }
.search-suggestion-item:nth-child(4) { animation-delay: 0.25s; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*SWIPER CATS*/
.ay-carousel {
    width: 100%;
}
.ay-categories-lots {}
.ay-categories-lots .ay-carousel {
    height: 180px;
}
.ay-categories-lots .ay-container {
    height: 180px;
}
.ay-categories-lots .swiper-slide {
    text-decoration: none;
    color: #000;
    border-radius: 10px;
    width: 335px;
    height: 180px;
    background-color: #F8F8F8;
    background-size: 50%;
    background-position: bottom right;
    background-repeat: no-repeat;
}
.ay-categories-lots .swiper-slide .h6 {
    margin: 1.5rem;
}
.ay-categories-lots .swiper-button-next .swiper-navigation-icon,
.ay-categories-lots .swiper-button-prev .swiper-navigation-icon {
    display: none !important;
}
.ay-categories-lots .ay-container .swiper-button-next {
    right: -35px;
}
.ay-categories-lots .ay-container .swiper-button-prev {
    left: -35px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*FAQ*/
.ay-faq {
}
.ay-faq .nav-pills .nav-link {
    color: #000;
    padding: 5px 15px;
}
.ay-faq .nav-pills .nav-link.active {
    color: #fff;
    background-color: #000;
}
.ay-faq .ay-accordions {
}
.ay-faq .ay-accordions .ay-accordion {
    padding: 24px 32px;
    border-radius: 10px;
    border: solid 1px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}
.ay-faq .ay-accordions .ay-accordion button {
    color: #000;
    border: 0;
    background: none;
    font-size: .95rem;
}
.ay-faq .ay-accordion button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ay-faq .accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.ay-faq .ay-accordion button:not(.collapsed) .accordion-icon {
    transform: rotate(45deg);
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*SWIPER LOTS*/
.ay-added-lots {
}
.ay-added-lots .ay-carousel {
}
.ay-added-lots .ay-container {
}
.ay-added-lots .swiper-slide {
    text-decoration: none;
    color: #000;
    border-radius: 10px;
    background-color: #fff;
    background-size: 80%;
    background-position: top right;
    background-repeat: no-repeat;
}
.ay-added-lots .swiper-button-next .swiper-navigation-icon,
.ay-added-lots .swiper-button-prev .swiper-navigation-icon {
    display: none !important;
}
.ay-added-lots .ay-container .swiper-button-next {
    right: -35px;
}
.ay-added-lots .ay-container .swiper-button-prev {
    left: -35px;
}
.ay-added-lots .swiper-slide .ay-img {
    max-width: 100%;
    height: 335px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.ay-added-lots .swiper-slide .ay-img img {
    height: 100%;
}
.ay-added-lots .swiper-slide .ay-lot {
    background-color: #F8F8F8;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    min-height: 200px;
}
.ay-added-lots .swiper-slide .ay-lot .ay-datetime {
    margin: 10px 0px;
    background-color: #fff;
    border-radius: 10px;
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.7rem;
}
.ay-added-lots .swiper-slide .ay-lot .ay-datetime .ay-datetime-deadline {
    color: #C81D25;
    font-size: 1.1rem;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*PRODUCTS*/
.ay-pp-lots {
}
.ay-pp-lots .ay-lot {
    text-decoration: none;
    color: #000;
    border-radius: 10px;
    background-color: #fff;
    background-size: 80%;
    background-position: top right;
    background-repeat: no-repeat;
}
.ay-pp-lots .ay-lot .ay-img {
    max-width: 100%;
    height: 335px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.ay-pp-lots .ay-lot .ay-img img {
    height: 100%;
}
.ay-pp-lots .ay-lot .ay-lot {
    background-color: #F8F8F8;
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
}
.ay-pp-lots .ay-lot .ay-lot .ay-datetime {
    margin: 10px 0px;
    background-color: #fff;
    border-radius: 10px;
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.7rem;
}
.ay-pp-lots .ay-lot .ay-lot .ay-datetime .ay-datetime-deadline {
    color: #C81D25;
    font-size: 1.1rem;
}

.ay-pp-lots .ay-lot-row {
    border-radius: 10px;
    display: flex;
    overflow: hidden;
}
.ay-pp-lots .ay-lot-row .ay-img {
}
.ay-pp-lots .ay-lot-row .ay-img img {
    height: 100%;
}
.ay-pp-lots .ay-lot-row .ay-lot {
    width: 100%;
    background-color: #F8F8F8;
    padding: 20px;
}
.ay-pp-lots .ay-lot-row .ay-lot .ay-datetime {
    background-color: #fff;
    border-radius: 10px;
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.7rem;
}
.ay-pp-lots .ay-lot-row .ay-lot .ay-datetime .ay-datetime-deadline {
    color: #C81D25;
    font-size: 1.1rem;
}

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*POSTS*/
.ay-posts {
}
.ay-posts .ay-post {
    background-color: #f8F8F8;
    border-radius: 10px;
    color: #000;
    display: block;
    text-decoration: none;
}
.ay-posts .ay-post img {
    width: 100%;
    height: 230px;
    border-radius: 10px 10px 0 0;
}
.ay-posts .ay-post .h6 {
    padding: 20px 20px 10px 20px !important;
}
.ay-posts .ay-post .ay-post-date {
    padding: 10px 20px 20px 20px !important;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*CATALOGUE*/
.ay-categories {}
.ay-categories .ay-category {
    text-decoration: none;
    color: #000;
    border-radius: 10px;
    width: 100%;
    height: 180px;
    background-color: #F8F8F8;
    background-size: 50%;
    background-position: bottom right;
    background-repeat: no-repeat;
    display: flex;
}
.ay-categories .ay-category .h6 {
    margin: 1.5rem;
}
.ay-categories .col-3:hover .ay-category {
    display: none;
}
.ay-categories .col-3:hover .ay-subcategories {
    display: block;
}
.ay-categories .ay-subcategories {
    padding: 1.5rem;
    text-decoration: none;
    color: #000;
    border-radius: 10px;
    width: 100%;
    height: 180px;
    background-color: #F8F8F8;
    background-size: 80%;
    background-position: top right;
    background-repeat: no-repeat;
    display: none;
}
.ay-categories .ay-subcategories .ay-subcategories-scroll {
    width: 100%;
    height: 100px;
    overflow-y: auto;
}
.ay-categories .ay-subcategories .ay-subcategories-scroll::-webkit-scrollbar {
    width: 5px;
}
.ay-categories .ay-subcategories .ay-subcategories-scroll::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.ay-categories .ay-subcategories .ay-subcategories-scroll::-webkit-scrollbar-thumb:hover {
    background: #000;
    transform: scale(1.1);
}
.ay-categories .ay-subcategories .h6 {
    display: flex;
    width: 100%;
}
.ay-categories .ay-subcategories a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    width: 100%;
}
.ay-categories .ay-subcategories a:hover {
    text-decoration: underline;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*SUBCATALOGUE*/
.ay-subcategories {}
.ay-subcategories .ay-subcategory {
    text-decoration: none;
    color: #000;
    border-radius: 10px;
    width: 100%;
    height: 80px;
    background-color: #F8F8F8;
    background-size: 80%;
    background-position: top right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.ay-subcategories .ay-subcategory img {
    height: 50px;
    margin-right: 10px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*PAGING*/
.ay-paging {}
.ay-paging a { margin: 0 5px; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*MENU*/
.ay-menu {
    padding: 0;
    list-style: none;
}
.ay-menu a {
    color: #000;
    font-size: 14px;
    text-decoration: none;
}
.ay-menu ul {
    list-style: none;
    padding: 0 0 0 21px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*FILTER/RANGE*/
.ay-filter {
}
.ay-filter a {
    color: #000;
    font-size: 14px;
    text-decoration: none;
}
.ay-filter .ay-filter-container {}
.ay-filter .ay-filter-container .form-check {
    font-size: 14px;
}
.ay-filter .ay-filter-container .form-check-input {
    width: 1.5em;
    height: 1.5em;
}
.ay-filter .ay-filter-container .form-check-input:checked {
    background-color: #000;
    border-color: #000;
}
.ay-filter .ay-filter-container .form-check-input:focus {
    border-color: #b8b8b8;
    box-shadow: 0 0 0 .25rem rgb(165 165 165 / 25%);
}
.ay-filter .ay-filter-container .form-check-label {
    padding: 5px 0 0 5px;
}
.ay-filter .ay-filter-container .catalog-range-slider {
    height: 5px;
}
.ay-filter .ay-filter-container .catalog-range-slider .noUi-connect {
    background: #000;
}
.ay-filter-container .catalog-range-slider .noUi-handle {
    width: 18px;
    height: 18px;
    right: -11px;
    top: -8px;
}
.ay-filter-container .catalog-range-slider .noUi-handle {
    border: 4px solid #000;
    border-radius: 30px;
    cursor: default;
    box-shadow: unset;
}
.ay-filter-container .catalog-range-slider .noUi-handle:before, .catalog-range-slider .noUi-handle:after {
    display: none;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*PRODUCT*/
.lot-product .swiper-button-next .swiper-navigation-icon,
.lot-product .swiper-button-prev .swiper-navigation-icon {
    display: none !important;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*FOOTER*/
footer {
    margin: 4rem 0;
    font-size: 0.8rem;
}
footer .ay-links {
}
footer a {
    color: #000;
}
.ay-lable {
    background-color: rgba(244, 244, 244, 1);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    color: #000;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
}
.ay-socials {
    display: flex;
}
.ay-socials a {
    margin: 0px 0px 5px 0px;
}
.ay-socials a img {
    width: 24px;
    height: 24px;
}
.ay-developer {
    text-align: right;
    text-decoration: none;
    width: 150px;
    display: block;
}
.ay-developer img {
    margin-top: 10px;
    width: 151px;
    height: 25.3px;
}

.ay-params {
}
.ay-params ul {
    list-style: none;
    padding: 0;
}


/* панель сортировки/видов */
.ay-pp-toolbar {
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .ay-pp-toolbar {
        justify-content: flex-start !important;
    }

    .ay-pp-toolbar .form-select {
        min-width: 150px;
    }
}

/* строка лота: колонкой на мобиле, строкой на десктопе */
.ay-lot-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ay-lot-row .ay-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .ay-lot-row {
        flex-direction: row;
        align-items: stretch;
    }

    .ay-lot-row .ay-img {
        flex: 0 0 160px;
        max-width: 160px;
    }

    .ay-lot-row .ay-lot {
    }
}

/* кнопка "Удалить вкладку" чуть ниже текста на мобиле */
@media (max-width: 767.98px) {
    .ay-lot-row .ay-lot > div:last-child {
        margin-top: 0.75rem;
    }
}

/* GRID: выглядеть как "адаптив" (мобильная колонка) на любом экране */
.ay-pp-lots.ay-view-grid .ay-lot-row {
    flex-direction: column !important;
}

/* в grid-режиме картинка на всю ширину */
.ay-pp-lots.ay-view-grid .ay-img {
    flex: 0 0 auto !important;
    max-width: 100% !important;
}

/* LIST: оставить как сейчас (можно явно продублировать) */
@media (min-width: 768px) {
    .ay-pp-lots.ay-view-list .ay-lot-row {
        flex-direction: row;
        align-items: stretch;
    }

    .ay-pp-lots .ay-lot .ay-img img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* GRID: карточки как "колонкой" + по 3 в ряд на десктопе (аналог col-md-4) */
.ay-pp-lots.ay-view-grid > div {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .ay-pp-lots.ay-view-grid > div {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* в grid-режиме сама карточка — колонкой, как на мобиле */
.ay-pp-lots.ay-view-grid .ay-lot-row {
    flex-direction: column !important;
}

.ay-pp-lots.ay-view-grid .ay-img {
    flex: 0 0 auto !important;
    max-width: 100% !important;
}

/* общий флекс для внутренних колонок лота */
.ay-pp-lots .ay-lot .row {
    display: flex;
    flex-wrap: wrap;
}

/* по умолчанию обе части занимают 100% (мобильный вид) */
.ay-pp-lots .ay-lot-main,
.ay-pp-lots .ay-lot-side {
    flex: 0 0 100%;
    max-width: 100%;
}

/* LIST: как было 8/4 на десктопе */
@media (min-width: 768px) {
    .ay-pp-lots.ay-view-list .ay-lot-main {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }

    .ay-pp-lots.ay-view-list .ay-lot-side {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* GRID: внутри всегда по 100% — текст под кнопкой */
.ay-pp-lots.ay-view-grid .ay-lot-main,
.ay-pp-lots.ay-view-grid .ay-lot-side {
    flex: 0 0 100%;
    max-width: 100%;
}

/* GRID: карточки по 3 в ряд (аналог col-md-4) */
.ay-pp-lots.ay-view-grid > div {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .ay-pp-lots.ay-view-grid > div {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* GRID: сама карточка колонкой, как на мобиле */
.ay-pp-lots.ay-view-grid .ay-lot-row {
    flex-direction: column !important;
}

.ay-pp-lots.ay-view-grid .ay-img {
    flex: 0 0 auto !important;
    max-width: 100% !important;
}

/* чтобы скрытый collapse на больших экранах не ломал высоту */
@media (min-width: 992px) {
    #catalogFilters.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible;
    }
}

.circular-timer {
    display: inline-block;
    position: relative;
    margin: 20px;
}
.timer-expired .circular-timer-progress {
    stroke: #dc3545 !important;
}
.timer-expired .circular-timer-text {
    fill: #dc3545 !important;
}
.timer-container {
    text-align: center;
}

.lot-sell {
    font-size: 12px;
}
.lot-sell .lot-timer .lot-time {
    text-align: center;
}
.lot-sell .lot-timer .lot-separate {
    margin-bottom: 18px;
}
.lot-sell .lot-timer .lot-time .lot-timing {
    background-color: rgba(249, 249, 249, 1);
    border-radius: 10px;
    padding: 10px;
    color: rgba(255, 107, 0, 1);
    font-size: 20px;
    text-align: center;
    width: 100%;
}
.lot-sell .lot-timer .lot-time .lot-timing-name {
    color: rgba(0, 0, 0, 1);
}
.lot-sell .btn-buy-now {
    background-color: rgba(255, 107, 0, 1);
    border-color: rgba(255, 107, 0, 1);
    font-size: 14px;
}
.lot-fire {
    color: rgba(255, 107, 0, 1);
}
.btn-make-bid {
    background-color: rgba(200, 29, 37, 1);
    border-color: rgba(200, 29, 37, 1);
    font-size: 14px;
}
