/* Extra small devices (phones) */
@media (max-width: 575.98px) {
    nav .searchBox {
        width: 369px;
    }
    .account-page-wrapper {
        padding: 15px 0;
    }

    .profile-header-section {
        padding: 20px;
    }

    .profile-avatar .avatar-img {
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 20px;
    }

    .skill-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .orders-stats .row {
        margin: 0 -5px;
    }

    .orders-stats .col-md-3 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    .profile-info h2 {
        font-size: 1.3rem;
    }

    .profile-title,
    .profile-location {
        font-size: 0.9rem;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .orders-stats .stat-number {
        font-size: 1.5rem;
    }

    .orders-stats .stat-label {
        font-size: 0.8rem;
    }

    .order-header h6 {
        font-size: 0.9rem;
    }

    .order-item h6 {
        font-size: 0.9rem;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 767.98px) {
    .items {
        padding: 15px;
    }
    .items .imgBox {
        height: 180px;
    }
    .items .product-title {
        font-size: 13px;
    }
    .items .price {
        font-size: 14px;
    }
    .items .row {
        flex-direction: column;
        text-align: center;
    }
    .items .reting {
        margin-bottom: 8px;
    }
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-skills {
        justify-content: center;
    }

    .nav-tabs {
        flex-direction: column;
        padding: 0;
    }

    .nav-tabs .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #e0e0e0;
        border-left: 4px solid transparent;
    }

    .nav-tabs .nav-link.active {
        border-left-color: var(--primary-color);
        border-bottom-color: #e0e0e0;
    }

    .tab-content {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
    }

    .account-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .order-footer .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        min-height: 36px;
    }
}

/* Medium devices (tablets) */
@media (max-width: 991.98px) {
    nav .searchBox {
        right: 0%;
        top: 62px;
        width: 100%;
    }
    nav .main-menu li {
        margin: 0 -2px;
    }
    #banner {
        margin-top: 0;
    }
    #breadcrumb {
        margin-top: 74px;
    }
    .cartPopup {
        width:350px;
        height: 93vh;
    }
    .slick-prev,
    .slick-next {
        width: 40px;
        height: 40px;
    }
    .filters {
        padding: 0px;
    }

    #product-details .details h1 {
        font-size: 23px;
        margin-top: 30px;
    }
    #product-details .details .request-inquiry {
        margin-left: 0px;
    }
    footer {
        margin-bottom: 70px;
    }

    .user_dashboard {
        margin-top: 80px !important;
    }

    .account-page-wrapper {
        padding: 15px 0;
    }
    /*! Mobile Tabs Navigation*****/
    .mobile-tabs-navigation {
        position: sticky;
        top: 60px;
        z-index: 1020;
        background: white;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .mobile-tabs-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-tabs-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-tabs {
        display: flex;
        flex-wrap: nowrap;
        min-width: max-content;
        padding: 0 15px;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-tabs .nav-item {
        flex-shrink: 0;
    }

    .mobile-tabs .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 10px;
        font-size: 0.75rem;
        border-radius: 20px;
        min-width: 70px;
        color: #666;
        border: 1px solid #e0e0e0;
        background: white;
        transition: all 0.3s ease;
    }

    .mobile-tabs .nav-link.active {
        background: var(--primary-color);
        color: rgb(0, 0, 0);
        border-color: var(--primary-color);
    }

    .mobile-tabs .nav-link iconify-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }

    /*!  Hide desktop sidebar on mobile*****/
    .account-sidebar {
        display: none;
    }

    /*! Profile header mobile optimization*****/
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .profile-avatar .avatar-img {
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .profile-skills {
        justify-content: center;
    }

    .profile-actions .btn {
        width: 100%;
        margin-top: 15px;
    }

    /*! Tab content mobile optimization*****/
    .tab-content {
        padding: 15px;
    }

    /*! Dashboard stats grid mobile *****/
    .dashboard-content .row {
        margin: 0 -5px;
    }

    .dashboard-content .col-md-3 {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .dashboard-content .card {
        margin-bottom: 10px;
    }

    .dashboard-content .card-title {
        font-size: 1.2rem;
    }

    /*!  Orders page mobile optimization*****/
    .orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .orders-filter .form-select {
        width: 100% !important;
    }

    .orders-stats {
        padding: 15px;
    }

    .orders-stats .row {
        margin: 0 -5px;
    }

    .orders-stats .col-md-3 {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .orders-list {
        padding: 0 15px;
    }

    .order-card {
        margin-bottom: 15px;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px 0;
    }

    .order-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .order-footer .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }

    .order-footer .btn {
        margin: 5px;
        width: calc(50% - 10px);
    }

    /*!  Form mobile optimization*****/
    .edit-profile-form .row {
        margin: 0 -5px;
    }

    .edit-profile-form .col-md-6,
    .edit-profile-form .col-md-4 {
        padding: 0 5px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

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

    /*!   About info grid mobile*****/
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 10px 0;
    }

    /*!  Connected accounts mobile *****/
    .account-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .account-info {
        flex-direction: column;
        gap: 10px;
    }
    .mobile-menu-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        z-index: 1030;
        padding: 10px 0;
    }

    .main-content-area {
        margin-bottom: 70px;
    }
}

/* Large devices (desktops) */
@media (max-width: 1199.98px) {
    nav .main-menu li {
        margin: 0 -2px;
    }
}

/* Extra large devices (large desktops) */
@media (max-width: 1399.98px) {
    /* Big screens */
}
