@media(max-width:991px) {

    .b2b-hero-card {
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        padding: 30px;
    }

    .hero-image-carousel {
        width: 100%;
        height: 300px;
        max-height: 300px;
        border-radius: 0 0 8px 8px;
    }

    .hero-carousel-slide {
        height: 300px;
    }

    .right-trust-panel {
        margin-top: 20px;
        min-height: auto;
    }

    /* Categories Section */

    .category-item {
        width: 18%;
    }

    /* NEW ARRIVAL */

    .arrivals-panel {
        padding: 20px;
    }

    /* dashboard page */
    /* dashboard sidebar */

    .dashboard-profile {
        padding: 12px;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 22px;
    }
}


@media (max-width:767px) {

    /* header */

    .topbsp {
        display: none;
    }

    .header-main-row {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        gap: 15px;
        padding: 15px 0 !important;
    }

    /* Logo */
    .header-logo-col {
        width: 100%;
        text-align: center !important;
        align-items: center !important;
    }

    .header-logo-col img {
        margin: auto;
        max-height: 40px !important;
    }

    .header-logo-col span {
        text-align: center;
    }

    /* Search */
    .header-search-col {
        width: 100%;
    }

    .search-bar-group {
        flex-wrap: wrap;
        border-radius: 8px !important;
    }

    .search-bar-group input {
        width: 100%;
        border-bottom: 1px solid #eee !important;
    }

    .search-bar-group select {
        width: 100%;
        border-left: none !important;
        border-top: 1px solid #eee;
    }

    .search-bar-group button {
        width: 100%;
        border-radius: 0;
    }

    /* Right Links */
    .header-links-col {
        width: 100%;
        justify-content: center !important;
        gap: 15px !important;
        text-align: center;
    }

    .header-link-item {
        justify-content: center;
    }

    /* Navigation */
    .navigation-blue-bar .row {
        display: block !important;
    }

    .navigation-blue-bar .col-md-9 {
        width: 100%;
        display: block !important;
    }

    /* All Categories button */
    .all-categories-menu {
        display: block;
        width: 100%;
    }

    .all-categories-menu>a {
        width: 100%;
        justify-content: center;
    }

    /* Horizontal Scroll Categories */
    .header-categories-inline {
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        padding: 10px 0;
        margin: 0;
        scrollbar-width: none;
    }

    .header-categories-inline::-webkit-scrollbar {
        display: none;
    }

    .header-categories-inline li {
        flex: 0 0 auto;
    }

    .header-categories-inline li a {
        display: block;
        padding: 6px 0;
        font-size: 13px;
    }

    /* Categories Section */

    .category-section {
        padding: 20px 15px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-header h2 {
        font-size: 17px;
    }

    .category-list {
        justify-content: center;
    }

    .category-item {
        width: 25%;
        min-width: auto;
    }

    .cat-circle-img {
        width: 65px;
        height: 65px;
    }

    .category-name {
        font-size: 11px;
    }

    /* deals section */

    .deals-panel {
        padding: 15px;
    }

    .deals-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-img-wrapper {
        height: 220px;
    }

    .inquiry-box,
    .trust-box {
        margin-top: 20px;
    }

    /* NEW ARRIVALS */
    .arrivals-panel {
        padding: 15px;
    }

    .arrivals-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* dashboard page */
    /* dashboard sidebar */

    .dashboard-container {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .dashboard-sidebar {
        margin-bottom: 20px;
    }

    .dashboard-menu .list-group-item {
        font-size: 14px;
    }

    /* profile setting */

    .profile-body {
        padding: 15px;
    }

    .password-title {
        font-size: 16px;
        line-height: 1.5;
    }

    .profile-submit {
        text-align: center;
    }

    .profile-submit .btn {
        width: 100%;
    }

    /* buyer inquiry */

    .inquiry-body {
        padding: 15px;
    }

    .inquiry-heading {
        padding: 12px 15px;
    }

    .inquiry-table {
        font-size: 12px;
    }

    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }

    /* supplier product listing */

    .supplier-body {
        padding: 15px;
    }

    .supplier-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-product-btn {
        width: 100%;
    }

    .supplier-table {
        font-size: 12px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    /* login page */

    .login-page {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .login-box {
        padding: 20px;
    }

    .login-box h1 {
        font-size: 21px;
    }

    .login-btn {
        width: 100%;
    }

    .login-row {
        display: block;
    }
}

@media(max-width:400px) {

    /* category section */

    .category-item {
        width: 33.33%;
    }

    .cat-circle-img {
        width: 60px;
        height: 60px;
    }

    /* deals section */
    .product-img-wrapper {
        height: 180px;
    }
}