@media (min-width: 991.98px) {
    .client_advertisement_page,
    .client_profile_page {
        max-width: 900px;
    }
}

@media (max-width: 1199.98px) {
    .layout-navbar.navbar-detached {
        width: 100% !important;
    }
    .client_faq_page .accordion{
        width: 75%;
    }
}

@media (max-width: 991.98px) {
    .user-profile-dropdown ul{
        position: absolute ! important;
    }

    .client_home_page .hero-slide .hero-badge{
        font-size: 32px;
    }
    .client_home_page .hero-slide .banner-desc {
        font-size: 18px;
        line-height: 24px;
    }
    .client_home_page #heroSlider .carousel-control-prev,
    .client_home_page #heroSlider .carousel-control-next{
        width: 35px;
        height: 35px;
    }
    .client_home_page #heroSlider .carousel-indicators button{
        width: 10px;
        height: 10px;
    }
    .client_home_page #heroSlider .carousel-indicators .active{
        width: 40px;
        height: 12px;
    }

    /* Sidebar hidden off-screen by default on mobile */
    .client_profile_page #layout-menu {
        border-radius: 0 !important;
    }
    .client_profile_page #sidebarWrapper {
        position: fixed;
        left: -260px; /* or right for RTL */
        right: auto;
        transition: left 0.3s ease;
        z-index: 1000;
        height: 100%;
        top: 0;
    }
    .client_profile_page #sidebarWrapper.open {
        left: 0; /* slide in */
    }
    [dir=rtl] .client_profile_page #sidebarWrapper {
        left: auto;
        right: -260px; /* or left for LTR */
        transition: right 0.3s ease;
    }
    [dir=rtl] .client_profile_page #sidebarWrapper.open {
        right: 0; /* slide in */
    }
    /* Overlay */
    .client_profile_page #sidebarOverlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .client_profile_page #sidebarOverlay.show {
        display: block;
    }

    .client_faq_page .accordion{
        width: 100%;
    }

    .client_auctions_page #filterSidebar {
        display: none;
    }

    .admin_login_page .banner{
        min-height: 500px;
        padding-top: 70px;
    }
    .admin_login_page h2{
        font-size: 25px;
    }
    .admin_login_page p{
        font-size: 16px !important;
    }
}


@media (max-width: 767.98px) {
    .breadcrumb{
        font-size: 12px;
        width: auto !important;
    }

    .client_home_page .hero-slide {
        /* background-size: cover; */
        /* background-position: right center; الشخص يفضل على اليمين */
        /* min-height: 50vh; */
        min-height: 30vh;
    }

    .hero-content {
        width: 50% !important;
        padding: 12px !important;
    }

    .auction-status{
        font-size: 12px !important;
    }

    .client_home_page .hero-slide .hero-badge {
        font-size: 20px;
    }

    .client_home_page .hero-slide .banner-desc {
        font-size: 12px;
        line-height: 18px;
    }

    .client_home_page .hero-slide .add-announcement {
        padding: 8px 12px;
        font-size: 13px;
    }

    .auction_card_section .timer {
        font-size: 14px;
    }

    .collection-card .profile{
        width: 100px;
        height: 100px;
    }
    .collection-card .details h3{
        font-size: 20px;
    }
    .collection-card .details h5{
        font-size: 16px;
    }

    .collection-card .timer {
        width: 50px;
        height: 30px;
        font-size: 12px;
    }

    .auction_details_page h2{
        font-size: 20px;
    }

    .client_auctions_page .add_to_fav_btn,
    .client_auctions_page .share_btn{
        font-size: 14px;
        height: auto;
        padding: 8px;
    }

    .auction_details_page .nav-align-top > div > .nav{
        flex-wrap: wrap !important;
    }
    .auction_details_page .nav-align-top > div > .nav li{
        /* width: auto !important; */
        width: 45% !important;
        font-size: 14px;
    }

    .auction_details_page .details-box .details {
        font-size: 14px;
        line-height: 24px;
    }

    .auction_details_page .nav-align-top > div > .nav li{
        font-size: 12px;
    }
    .auction_details_page .details-items div{
        font-size: 12px !important;
    }
    .auction_details_page .details-items img{
        width: 24px;
    }

    .auction_details_page .owner-info-card .profile img{
        width: 100px;
        height: 100px;
    }
    .auction_details_page .owner-info-card h5,
    .auction_details_page .owner-info-card .show-all-announcements{
        font-size: 16px !important;
    }

    .client_live_page .carousel-inner{
        height: 400px;
    }

    .client_live_page .header_actions a {
        width: 38px;
        height: 38px;
    }
    .client_live_page .header_actions a i {
        font-size: 18px !important;
    }
    .client_live_page .details-btn{
        padding: 10px;
    }
    .client_live_page h5{
        font-size: 14px;
    }
    .client_live_page .current-bids-count,
    .client_live_page .direct-sale {
        height: auto;
        padding: 8px;
        font-size: 12px;
    }
    .client_live_page .current-bids-count i,
    .client_live_page .direct-sale i{
        font-size: 14px ! important;
    }
    .client_live_page .bidding-box{
        height: 490px;
    }
    .client_live_page .bidding-box.no-balance{
        height: 420px;
    }
    .client_live_page .bidding-box .price-section{
        font-size: 12px;
    }
    .client_live_page .bidding-box .price-section .price{
        font-size: 16px !important;
    }
    .client_live_page .bidding-box .price-section img{
        width: 15px;
    }
    .client_live_page .bidding-box .created_at{
        font-size: 12px;
    }

    .client_notification_page .avatar-fallback {
        width: 50px;
        height: 50px;
        font-size: 27px;
    }

    .client_advertisers_page .header-section .img{
        max-height: 300px;
    }
    .client_advertisers_page .header-info .profile{
        width: 60px;
        height: 50px;
    }
    .client_advertisers_page .header-info .title{
        font-size: 16px;
    }

    :is(.client_privacy_page, .client_support_page, .client_faq_page, .client_inquiry_page)
    .header-sec .desc{
        font-size: 14px;
        line-height: 22px;
    }
}


@media (max-width: 575.98px) {
    .navbar-nav{
        display: block !important;
    }

    .user-profile-dropdown ul{
        position: static ! important;
        margin-bottom: 16px;
    }

    footer .footer-desc{
        font-size: 12px;
    }
    footer .title {
        font-size: 14px;
    }
    footer li a{
        font-size: 12px;
    }
    footer .copyright{
        justify-content: center !important;
    }
    footer .copyright-text{
        font-size: 14px;
        text-align: center;
        margin-bottom: 20px;
    }

    .navbar .dropdown-language a{
        background: transparent;
        border: 0;
    }

    .table-responsive #custom-table_wrapper #custom-table_info{
        margin: 14px 0 0;
    }
    .table-responsive #custom-table_wrapper .col-sm-7.d-flex{
        flex-wrap: wrap;
        justify-content: start !important;
    }

    .auctions_slider .tab-content{
        padding: 0;
    }
    .auctions_slider .nav-pills{
        display: flex;
        font-size: 12px !important;
        width: 100%;
    }
    .auctions_slider .nav-pills .nav-link{
        padding-left: 8px;
        padding-right: 8px;
    }
    .auction_card_section .start_from_price,
    .auction_card_section .highest_price{
        font-size: 14px !important;
    }
    .auction_card_section .start_from_price img,
    .auction_card_section .highest_price img{
        width: 16px;
    }
    .small-btn {
        padding: 10px 12px !important;
    }

    .auctions_slider .tab-pane .header-section h2{
        font-size: 16px;
    }
    .view-all-btn {
        padding: 10px 12px !important;
    }

    .collection-card .profile {
        width: 80px;
        height: 80px;
    }

    .auction_details_page .card-img-col:nth-child(2){
        display: flex !important;
        flex-wrap: nowrap;
        flex-direction: row !important;
        gap: 14px;
        margin-top: 15px;
    }

    .auction_details_page .owner-info-card .show-all-announcements {
        font-size: 14px !important;
    }

    .client_live_page .carousel-inner{
        height: 350px;
    }

    .client_live_page .avatar-fallback,
    .client_live_page .bidding-box .bidder-img{
        font-size: 28px;
        width: 55px;
        height: 50px;
    }
    .client_live_page .winner-name .bidder-img,
    .client_live_page .winner-name .avatar-fallback {
        width: 40px;
        height: 40px;
    }

    .client_advertisement_page h5{font-size: 14px;}

    .client_wallet_page .pay-method-item{padding:14px 8px;min-height:70px}
    .client_wallet_page .pay-method-item--refund i{font-size:1.3rem}

    .client_home_page #live-auction-link {
        min-width: 100%;
    }
    .client_home_page #live-auction-link img.position-absolute{
        width: 140px
    }
    .client_home_page #live-auction-link a{
        width: 50%;
    }
    .client_home_page #live-auction-link .live-indicator,
    .client_home_page .live-auction-tab.live-tab:not(.active) .live-indicator {
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .hero-content {
        width: 50% !important;
    }
    .client_live_page .carousel-inner{
        height: 250px;
    }
    .client_live_page .avatar-fallback,
    .client_live_page .bidding-box .bidder-img{
        width: 60px;
        height: 50px;
    }
    .client_live_page .winner-name .bidder-img,
    .client_live_page .winner-name .avatar-fallback {
        width: 40px;
        height: 40px;
    }

    .client_home_page .countdown-timer-box{
        padding: 40px 20px;
    }
    .client_home_page .countdown-timer-box .timer {
        min-width: auto;
    }
    .client_home_page .countdown-timer-box h4 {
        font-size: 14px;
    }
    .client_home_page .countdown-timer-box .countdown-timer .number {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .client_home_page .countdown-timer-box{
        padding: 40px 15px;
    }
    .client_home_page .countdown-timer-box .timer {
        padding: 1rem .7rem;
    }
    .client_home_page .countdown-timer-box .number,
    .client_home_page .countdown-timer-box .countdown-timer .number {
        font-size: 16px;
    }

    .client_home_page #live-auction-link a{
        width: auto;
    }
}


/* ========================================
    REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn,
    /* .toast, */
    /* .toast__close, */
    .fav-animate {
        animation: none !important;
        transition: none !important;
    }

    .whatsapp-btn::before {
        animation: none !important;
    }

    .whatsapp-btn:hover {
        transform: none;
    }
}

/* ========================================
    TOUCH DEVICE OPTIMIZATIONS
    ======================================== */
@media (hover: none) and (pointer: coarse) {
    .whatsapp-btn:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-btn:active {
        transform: scale(0.95);
    }

    /* .toast__close:hover {
        background: transparent;
    }

    .toast__close:active {
        background: var(--bg-light);
    } */
}
