: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: 25px;
    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-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;
}

.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;
}

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