.dealer-tree-wrapper {
    position: relative;
    font-family: inherit;
}

.dealer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.dealer-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.dealer-back {
    cursor: pointer;
    font-size: 20px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.dealer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dealer-categories,
.dealer-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dealer-category-item,
.dealer-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.dealer-category-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.dealer-cat-title {
    flex: 1;
}

.dealer-product-item{
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .dealer-product-item {
        justify-content: space-between;
        display: flex;
        flex-direction: row;
    }
}

.dealer-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dealer-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #eee;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.dealer-price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Desktop + Tablet */
@media (min-width: 768px) {
    .dealer-product-item {
        align-items: center;
    }

    .dealer-price-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .dealer-price-box {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
}