.fertilizer-filter-widget {
    padding: 20px;
    text-align: center;
}

.filter-row {

    gap: 5px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-left: 20%;
    padding-right: 20%;
    /* flex-wrap: wrap; */
/* 
        flex-wrap: nowrap;
    min-width: max-content;
    white-space: nowrap; */
}

.filter-tab{
    /* margin-left: 10px;
    margin-right: 10px; */
    flex: 0 0 auto;
    padding: 8px 8px;
    border: 2px solid #00583B;
    border-radius: 8px;
    background: #fafffe;
    color: #00583B;
    /* cursor: pointer; */
    overflow: auto;
    transition: all 0.3s ease;
    font-weight: 600;
        text-align: center;
    white-space: nowrap;
    /* width: auto; */
}

.filter-tab.selected{
    background: #00583B;
    color: white;
}

.filter-tab:hover:not(.selected) {
    background: #f0f0f0;
}

.horizontal-scroll-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
    width: 100%;
}

.items-container {
    display: flex;
    flex-wrap: nowrap; /* تغییر از wrap به nowrap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    gap: 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* اسکرول نرم در موبایل */
}

.items-container::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول بار */
}

.filter-item {
    flex: 0 0 auto;
    text-align: center;
    width: 120px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-radius: 16px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-item:hover {
    transform: translateY(-5px);
    background: #FFFCE7;
    box-shadow: 0 5px 13px rgba(0,0,0,0.08);
}

.filter-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.filter-item h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #00583B;
}

.filter-title {
    color: #00583B;
    margin-bottom: 20px;
}

.product-price {
    color: #d33;
    font-weight: bold;
    margin: 5px 0 0 0;
}

.no-products {
    color: #666;
    font-style: italic;
}

.scroll-btn {
    cursor: pointer;
    border: none;
    /* background: #ddd; */
    font-size: 20px;
    padding: 10px;
    border-radius: 5px;
    user-select: none;
    flex-shrink: 0;
}

/* استایل برای دکمه‌های اسکرول در حالت hover */
.scroll-btn:hover {
    background: #F0AF14;
    color: white;
}
.filter-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.filter-container {
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        border-radius: 10px;
}
.filter-item-vertical {
    display: flex;
    flex-direction: row;
    gap: 8;
    color: black;
    font-size: 10px;
}