.product-container {
    max-width: 1000px; /* ограничение по ширине */
    margin: 0 auto;    /* центрирование */
    padding: 0 20px;   /* отступы слева и справа */
    box-sizing: border-box;
    user-select: none;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


.product-tile {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.product-tile.sold {
    opacity: 0.5;
    filter: grayscale(100%);
}
.product-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-info {
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}

.product-price {
    color: #28a745;
    font-weight: 600;
}

.product-shop {
    font-size: 12px;
    color: #667;
}

.tags {
    margin: 10px 0;
}

#tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.tags-title {
    display: inline-block;
    margin: 0 !important;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    font-size: 15px;
}

.tag-item {
    display: inline-block;
    padding: 5px 10px;
    background: #f2f2f2;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.tag-item:hover {
    background: #d9d9d9;
}

.show-more {
    background: #e0e0e0;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.show-more:hover {
    background: #ccc;
}

.favorite-btn {
    top: 10px;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s, transform 0.3s ease;
}


.favorite-btn.favorited {
    color: red !important;
}


.board-slide {
    display: block;
    flex: 0 0 100%;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
}

.board-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.banner-slider-track {
    display: flex;
    width: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.slider-btn.left { left: 10px; }
.slider-btn.right { right: 10px; }

.slide-img-link {
    display: block;
    height: 100%;
    flex: 0 0 100%;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sold-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #d9534f;
    color: white;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}
.slider-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%; /* ширина зоны */
    z-index: 5;
    cursor: pointer;
}

.left-zone {
    left: 0;
}

.right-zone {
    right: 0;
}
.nav-search-form {
    flex: 1;
    display: flex;
    margin: 0;
}



.filter-tags-bar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0px 0 20px;

    flex-wrap: wrap; /* адаптив */
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

.filter-item label i {
    font-size: 18px;
    color: #919191;
}

.filter-item select {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}


.filter-item select option {
    padding: 6px 10px;
    font-size: 15px;
}

/* Убираем синюю подсветку и тень при фокусе на селектах внутри filter-tags-bar */
.filter-tags-bar select:focus {
    outline: none;      /* убираем стандартный контур */
    box-shadow: none;   /* убираем тень (если браузер добавляет) */
}

/* Если хочешь убрать и при активном клике (optional) */
.filter-tags-bar select:active {
    outline: none;
    box-shadow: none;
}

.filter-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1000;
}

.filter-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.filter-modal__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    max-height: 70vh;
    overflow-y: auto;
}

.filter-modal.open .filter-modal__content {
    transform: translateY(0);
}

.filter-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-option {
    display: block;
    padding: 12px;
    border-radius: 10px;
    color: #000;
    text-decoration: none;
}

.filter-option:hover {
    background: #f2f2f2;
}

.custom-select {
    position: relative;
    width: auto;
}
.filter-form {
    border-radius: 8px;
}
.custom-select__btn {
    width: 100%;
    padding: 8px 12px;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    overflow: hidden;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
    z-index: 100;
}

.custom-select.open .custom-select__dropdown {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.select-icon {
    font-size: 16px;
    color: #919191;
}

.select-text {
    flex: 1;
    white-space: nowrap;
}

.custom-select__dropdown a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
}

.custom-select__dropdown a:hover {
    background: #f5f5f5;
}

.select-arrow {
    font-size: 12px;
    color: #919191;
    transition: transform .25s ease;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-option {
    all: unset;
    display: block;
    width: 100%;
    padding: 10px 12px;
    cursor: pointer;
    color: #333;
}

.select-option:hover {
    background: #f5f5f5;
}

.infinite-loader {
  text-align: center;
  padding: 16px 0;
  color: #667;
  font-size: 14px;
}

.hidden { display: none; }

#scrollSentinel {
  height: 1px;
}

.product-image-wrap{
  position: relative;
  width: 100%;
  height: 250px;          /* подстрой под свою карточку */
  overflow: hidden;
}

.product-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity .2s ease;
}

.product-image.is-loaded{
  opacity: 1;
}

.img-loader{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.6); /* можно убрать/изменить */
  z-index: 2;
}

.product-image-wrap.is-loaded .img-loader{
  display: none;
}

/* простой спиннер */
.spinner{
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.6);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.product-tile { position: relative; }

.badge-new{
  position: absolute;
  top: -8px;
  right: 0px;
  z-index: 10;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #00b894;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.not-find {
    margin: 10px;
    min-width: 100vw;
}

.searchbar__form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.searchbar__input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.searchbar__input {
  width: 100%;
  padding-right: 38px; /* место под крестик */
}

.searchbar__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.searchbar__clear.is-visible {
  display: flex;
}

.searchbar__clear:hover {
  color: #111;
}

.searchbar__input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.searchbar__input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.searchbar__input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.searchbar__input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.product-tile {
    position: relative;
}

.product-menu-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
}

.product-menu-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background .2s ease, transform .2s ease;
}

.product-menu-btn:hover {
    background: #fff;
    transform: scale(1.04);
}

.product-menu-btn i {
    font-size: 16px;
}

.product-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 170px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.16);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.product-menu-wrap.open .product-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.product-menu__item {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    color: #222;
    font-size: 14px;
}

.product-menu__item:hover {
    background: #f5f5f5;
}

.product-menu__item--danger {
    color: #d9534f;
}

@media screen and (max-width: 768px) {
    .slider-zone {
        width: 0%;
    }
    .nav-left-products {
        max-width: 1160px;
        position: sticky;
        top: 0px; /* высота твоей верхней навигации */
        z-index: 1000;
        padding: 10px 10px;
    }

    .filter-item select {
        font-size: 12px;

    }

    .filter-item {
        display: flex;
        align-items: center;
        gap: 8px;

    }

    .filter-item label i {
        font-size: 15px;
        color: #919191;
    }


    .filter-item select {
        border: none;
        background: transparent;
        outline: none;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
    }

    .filter-item select option {
        padding: 6px 10px;
        font-size: 12px;
    }


    .addProductBtn {
        padding: 4px 11px;
        font-size: 28px;
        border-radius: 6px;
        border: 1px solid #ccc;
        cursor: pointer;
        min-width: 42px;
   }
    .product-container {
        padding: 0 0px;
    }

    .banner-slider-wrapper {
        border-radius: 10px;
    }

    .board-slide {
        height: 200px;
        border-radius: 10px;
    }



    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 200px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }

    .tags a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .favorite-btn {
        font-size: 26px;
    }
    .tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .tags strong {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .tags a {
        font-size: 13px;
        padding: 5px 10px;
    }

    .u-modal__content {
        width: 95%;
        padding: 15px;
    }

    #reportForm label {
        font-size: 13px;
    }

    #reportForm button[type="submit"] {
        font-size: 15px;
    }

    .product-image-wrap{
        height: 200px;
    }
    .badge-new{
        font-size: 9px;
    }
    .slider-btn {
        font-size: 20px !important;
    }
}


.product-grid--empty {
    display: block;
}

.empty-products {
    width: 100%;
    margin-top: 10px;
    padding: 34px 22px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
    border: 1px solid rgba(255, 140, 66, 0.14);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 2px 10px rgba(255, 140, 66, 0.06);
    text-align: center;
    box-sizing: border-box;
}

.empty-products__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8c42 0%, #ffb067 100%);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(255, 140, 66, 0.28);
}

.empty-products__title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #1f2937;
}

.empty-products__text {
    max-width: 560px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #667085;
}

.empty-products__actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-products__btn {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.empty-products__btn:hover {
    transform: translateY(-1px);
}

.empty-products__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #ff7a00 0%, #ff9838 100%);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.22);
}

.empty-products__btn--primary:hover {
    box-shadow: 0 14px 26px rgba(255, 122, 0, 0.28);
}

.empty-products__btn--ghost {
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.empty-products__btn--ghost:hover {
    background: #f9fafb;
}

.not-find {
    margin: 0;
    min-width: unset;
}

@media screen and (max-width: 768px) {
    .empty-products {
        padding: 26px 16px;
        border-radius: 18px;
    }

    .empty-products__icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
        margin-bottom: 14px;
    }

    .empty-products__title {
        font-size: 20px;
    }

    .empty-products__text {
        font-size: 14px;
    }

    .empty-products__actions {
        gap: 10px;
    }

    .empty-products__btn {
        width: 100%;
    }
}