:root {
    --tg-theme-header-bg-color: #000000;
    --tg-theme-text-color: #000000;
    --tg-theme-button-color: #000000;
    --tg-theme-link-color: #000000;
    --tg-theme-bg-color: #000000;
    --tg-theme-hint-color: #000000;
    --tg-theme-section-separator-color: #000000;
    --tg-theme-bottom-bar-bg-color: #000000;
    --tg-theme-section-header-text-color: #000000;
    --tg-theme-accent-text-color: #000000;
}

body {
    background: var(--tg-theme-bg-color);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.blur {
    filter: blur(50px);
    pointer-events: none;
}

.searchBar {
    background: var(--tg-theme-header-bg-color);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.itemLink {
    border: none;
    text-decoration: none;
}

.customImage {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
    max-height: 250px;
}

.customCard {
    border-radius: 15px;
    background: var(--tg-theme-header-bg-color);
    height: 300px;
    overflow: hidden;
    border: none;
}

.cardTitle {

}

.customItemCardBody {
    background: var(--tg-theme-header-bg-color);
    color: var(--tg-theme-text-color);
}

.customCategoryCardBody {
    background: var(--tg-theme-header-bg-color);
    color: var(--tg-theme-text-color);
    height: 100px;
}

.customCardBody {
    background: var(--tg-theme-header-bg-color);
    color: var(--tg-theme-text-color);
    height: 200px;
}

.customCardTitle {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#pageContent {
    transition: filter 0.3s ease; /* Плавный переход фильтра */
}

#searchContainer {
    width: 100%;
    position: relative;
    z-index: 20; /* чтобы поле поиска было выше */
}

#searchInput {
    padding: 8px;
    padding-left: 40px;
    font-size: 16px;
}

#clearButton {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border: none;
    background: transparent;
    padding-right: 5px;
}

#glassButton {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border: none;
    background: transparent;
    padding-left: 10px;
}

#itemsList {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: auto; /* Даем свободу ширине */
    margin: 0 16px; /* Отступы слева и справа */
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    list-style: none;
    padding: 0;
    border-radius: 15px;
}

#itemsList li {
    color: var(--tg-theme-text-color);
    padding: 12px 20px;
    border-bottom: 1px solid var(--tg-theme-section-separator-color);
    cursor: pointer;
}

#itemsList a {
    color: var(--tg-theme-text-color);
    text-decoration: none;
}

.swiper {
    width: 100%;
    height: 70%; /* фиксированная высота — остальное под текст */
    border-radius: 15px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 160px;
}

.swiper-slide-product {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.swiper-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.swiper-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fire-icon {
    top: 8px;
    right: 8px;
    font-size: 1.5rem;
    color: orange;
    z-index: 10;
}

.tabbar {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

.tabbar-link {
    width: 20%;
    color: var(--tg-theme-section-header-text-color);
    transition: transform 0.15s ease, color 0.3s ease;
    text-decoration: none;
}

.tabbar-caption {
    font-size: 0.8rem;
    font-weight: 510;
}

.tabbar-icon {
    color: var(--tg-theme-section-header-text-color);
    font-size: 1.5rem;
}

.tabbar-link-active {
    width: 20%;
    color: var(--tg-theme-accent-text-color);
    transition: transform 0.15s ease, color 0.3s ease;
    text-decoration: none;
    background: rgba(120, 120, 120, 0.3);
    border-radius: 25px;
}

.tabbar-icon-active {
    color: var(--tg-theme-accent-text-color);
    font-size: 1.5rem;
}

/*nav .nav-link:hover {*/
/*    background-color: transparent !important;*/
/*    color: inherit !important;*/
/*    text-decoration: none !important;*/
/*    cursor: default;*/
/*}*/

.u-AhunterSuggestions
{
  border: 1px solid #AAAAAA;
  background: white;
  overflow: auto;
  border-radius: 2px;
}

.u-AhunterSuggestion
{
  padding: 5px;
  white-space: nowrap;
  overflow: hidden;
}

.u-AhunterEmptySuggestion
{
  padding: 5px;
  font-style: italic;
  color: #b8661f;
}

.u-AhunterSelectedSuggestion
{
  background: #E7E7E7;
}

.u-AhunterSuggestions strong
{
  font-weight: bold;
  color: #1B7BB1;
}

.status-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.step.completed .step-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step.active .step-icon {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

.progress-bar {
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #e9ecef;
    z-index: 1;
}

.progress {
    height: 100%;
    background: green;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--tg-theme-text-color);
}

@media (max-width: 768px) {
    .swiper-image {
        height: 100%;
    }
}