.tabs-container {
    margin: 12px auto;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* تب‌های سطح 1 */
.level-1-tabs {
	display: flex;
	background-color: var(--reyhoon-main);
	padding: 10px 10px 0;
	overflow-x: scroll;
	gap: 8px;
}

.level-1-tab {
	padding: 15px 15px;
	color: white;
	cursor: pointer;
	border-radius: 10px 10px 0 0;
	/* margin-left: 5px; */
	background-color: rgba(255, 255, 255, 0.1);
	position: relative;
	text-align: center;
	min-width: 138px;
}

.level-1-tab.active {
    background-color: #fff;
    color: #006d77;
    font-weight: bold;
}

.level-1-tab .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-1-tab .icon img {
    width: 30px;
    height: 30px;
}

/* تب‌های سطح 2 */
.level-2-container {
    display: none;
    background-color: #edf6f9;
}

.level-2-container.active {
    display: block;
}

.level-2-tabs {
    display: flex;
    padding: 10px 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.level-2-tab {
    padding: 10px 20px;
    background-color: rgba(0, 109, 119, 0.1);
    color: var(--reyhoon-main);
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    margin-left: 5px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level-2-tab.active {
    background-color: #fff;
    font-weight: bold;
}

.level-2-tab .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.level-2-tab .icon img {
    width: 25px;
    height: 25px;
}

/* تب‌های سطح 3 */
.level-3-container {
    display: none;
    background-color: #f8f9fa;
}

.level-3-container.active {
    display: block;
}

.level-3-tabs {
    display: flex;
    padding: 5px 10px 0;
    overflow-x: auto;
}

.level-3-tab {
    padding: 8px 15px;
    background-color: rgba(0, 109, 119, 0.05);
    color: var(--reyhoon-main);
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    margin-left: 5px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.level-3-tab.active {
    background-color: #fff;
    font-weight: bold;
}

.level-3-tab .icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.level-3-tab .icon img {
    width: 20px;
    height: 20px;
}

/* بخش محتوا */
.content-section {
	padding: 12px;
	background-color: #fff;
	min-height: 100dvh;
}
.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 109, 119, 0.1);
    border-radius: 50%;
    border-top-color: var(--reyhoon-main);
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* پیغام خطا */
.error-message {
    color: #d62828;
    text-align: center;
    padding: 20px;
    background-color: #ffeeee;
    border-radius: 5px;
    margin-top: 20px;
}

/* نمایش آیکون فعال */
.level-1-tab.active .icon {
    background-color: var(--reyhoon-main);
}

.level-1-tab.active .icon img {
    filter: brightness(0) invert(1);
}
.reyhoon-products-list__item.ajax-tab img {
    width: 100px;
    float: left;
}

.reyhoon-products-list__item.ajax-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.reyhoon-products-list__item.ajax-tab .reyhoon-product {
    width: 48%;
}
/* حالت موبایل */
@media (max-width: 768px) {
    .level-1-tabs, .level-2-tabs, .level-3-tabs {
        overflow-x: auto;
    }

    .level-1-tab, .level-2-tab, .level-3-tab {
        min-width: 100px;
    }

    .content-section {
        padding: 15px;
    }
    .reyhoon-products-list__item.ajax-tab .reyhoon-product{
        width: 100%;
    }
}

.placeholder-image {
    width: 200px;
    height: 200px;
    background-color: #edf6f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}
