/* Mobile Category Improvements
 * This file contains enhancements for the motorcycle category section on the home page
 */

/* General improvements for the motorcycle category section */
@media (max-width: 768px) {
    /* Improve the search-select section */
    .search-select {
        margin: 0 0 20px 0 !important;
        padding: 0;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        background: #fff;
    }

    .search-select > div {
        padding: 0 10px 15px 10px;
    }

    .search-select .title-header {
        padding: 12px 0;
        margin-bottom: 10px;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .search-select .title-header i {
        color: #c00;
        margin-right: 5px;
    }

    /* Enhance the type list */
    .type-list {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -5px;
    }

    .type-list li {
        width: 50%;
        padding: 5px;
        margin-bottom: 10px;
    }

    .type-list li a {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 4px;
        background: #fff;
        border: 1px solid #eee;
        transition: all 0.2s ease;
        height: 60px;
        position: relative;
        overflow: hidden;
    }

    .type-list li a:hover,
    .type-list li a:active {
        background: #f9f9f9;
        border-color: #ddd;
    }

    .type-list li img {
        width: 45px;
        height: 45px;
        object-fit: contain;
        margin-right: 10px;
        transition: all 0.2s ease;
    }

    .type-list li span {
        font-size: 13px;
        font-weight: 400;
        color: #333;
        line-height: 1.3;
        flex: 1;
    }

    .type-list li i.badge {
        position: absolute;
        top: 5px;
        right: 5px;
        background: #c00;
        color: white;
        border-radius: 3px;
        padding: 2px 5px;
        font-size: 11px;
        font-style: normal;
        min-width: 25px;
        text-align: center;
    }

    /* Enhance the brand list */
    .brand-list {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -5px;
    }

    .brand-list li {
        width: 33.333%;
        padding: 5px;
        margin-bottom: 10px;
    }

    .brand-list li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 5px;
        border-radius: 4px;
        background: #fff;
        border: 1px solid #eee;
        transition: all 0.2s ease;
        height: 85px;
        text-align: center;
    }

    .brand-list li a:hover,
    .brand-list li a:active {
        background: #f9f9f9;
        border-color: #ddd;
    }

    .brand-list li img {
        width: 35px;
        height: 35px;
        object-fit: contain;
        margin-bottom: 5px;
        transition: all 0.2s ease;
    }

    .brand-list li span {
        font-size: 11px;
        font-weight: 400;
        color: #333;
        line-height: 1.3;
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .type-list li {
        width: 100%;
    }

    .type-list li a {
        height: 55px;
    }

    .type-list li img {
        width: 38px;
        height: 38px;
    }

    .brand-list li {
        width: 50%;
    }

    .brand-list li a {
        height: 80px;
    }
}

/* Very small devices */
@media (max-width: 320px) {
    .brand-list li {
        width: 100%;
    }

    .brand-list li a {
        height: 60px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .brand-list li img {
        margin-bottom: 0;
        margin-right: 10px;
    }
}
