@media (min-width: 1580px) {
  .comman-container,
  .container-fluid {
    max-width: 1580px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Extra Small (XS) - Phones (Portrait) */
@media (max-width: 575px) {
  .track-your-order {
    margin-left: -6%;
  }
  /* Styles for very small screens */
  .container-fluid {
    padding: 0 1.5rem !important;
  }

  .middle-header {
    height: auto;
  }

  .search-dropdown .dropdown-menu.show {
    width: 300px !important;
    position: absolute !important;
    top: 35px !important;
  }

  .notification-dropdown .dropdown-menu {
    width: 288px !important;
    height: calc(100vh - 180px);
    overflow-y: auto;
    /* transform: translate3d(-8.5px, 29.5px, 0px) !important; */
  }
  .search-dropdown .tab-content {
    height: calc(100vh - 312px) !important;
    overflow-y: auto;
  }

  .search-dropdown .dropdown-menu {
    height: auto !important;
    overflow: hidden;
  }
  .search-dropdown .nav-link {
    padding: 5px 10px;
    font-size: 12px;
  }

  .top-header .fs-14 {
    font-size: 10px !important;
    line-height: 14px !important;
  }

  .banner-heading {
    font-size: 32px;
    line-height: 42px;
  }

  /* .banner-height {
    height: calc(100vh - 533px);
  } */

  .banner-side-image {
    height: 15vh;
    width: 100%;
  }

  .banner-side-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .comman-heading-2 {
    font-size: 20px;
    line-height: 27px;
  }

  .banner-text {
    font-size: 12px;
  }

  /* font size */
  .fs-20 {
    font-size: 16px !important;
    line-height: 30px !important;
  }

  .fs-18 {
    font-size: 15px !important;
    line-height: 20px !important;
  }

  /* font size */
  .user-avatar {
    width: 90%;
    height: 171px;
  }

  .seller-d-t .col-lg-2.col-md-3.col-6 .card {
    height: 100%;
  }

  .table tbody tr td {
    white-space: nowrap;
  }

  .comman-tabs .nav-item .nav-link {
    font-size: 12px !important;
    padding: 0.5rem 0.2rem !important;
  }

  .tab-content {
    padding: 0 !important;
  }

  .icon-auth {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon-auth img {
    width: 14px;
    height: 14px;
  }

  .chats-design .body-sidebar .user-chats {
    width: 100%;
  }

  .select-profile-box {
    width: 90%;
    height: auto;
  }

  .debit-card-design {
    height: 203px;
  }

  .btn.btn-primary,
  .btn-border,
  .btn {
    height: 44px !important;
    padding: 0 1rem !important;
    line-height: 44px !important;
    font-size: 12px !important;
  }

  .fs-36 {
    font-size: 26px;
    line-height: 36px;
  }

  .form-control {
    height: 44px;
  }

  .comman-small-text-2 {
    font-size: 10px !important;
  }

  .select-profile-box .select-box {
    width: 90%;
    height: auto;
    padding: 1rem;
    margin: 0 auto;
  }

  .select-profile-box .select-box img {
    width: 100%;
    height: 100%;
  }

  .forgot-password-select .icon {
    width: 42px;
    height: 42px;
    line-height: 42px;
  }

  .comman-heading {
    font-size: 24px;
  }

  .product-details-main-img {
    height: 276px;
  }

  .file-name {
    width: 100px !important;
  }

  .search-dropdown .dropdown-menu {
    height: calc(100vh - 300px) !important;
    overflow-y: auto;
    width: 92vw !important;
    left: -112%;
  }

  .slick-prev {
    left: 0 !important;
    z-index: 50;
  }

  .slick-next {
    right: 0 !important;
  }
  .comman-padding {
    padding: 10px 0;
  }
  .tender-banner {
    height: auto;
  }
  .search-icon {
    width: 35px;
    height: 35px;
    line-height: 27px;
  }

  .search-box {
    height: 40px !important;
    font-size: 12px;
  }

  .download-btn {
    width: 110px;
    /* height: 50px; */
    object-fit: contain;
  }

  .mobile-banner {
    height: 350px;
  }

  .mobile-banner img {
    height: 100%;
    object-fit: contain;
  }

  /* .main-header .middle-header .row {
    justify-content: space-between;
  } */
  [dir="rtl"] .dropdown .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 10px;
  }

  [dir="rtl"] .main-header .middle-header .search-dropdown {
    margin-right: 25px;
  }

  [dir="rtl"] .offcanvas-header .btn-close {
    margin-right: auto;
    margin-left: 0;
  }

  .search-dropdown .dropdown-menu {
    height: calc(100vh - 300px) !important;
    overflow-y: auto;
    width: 90vw !important;
    left: -575%;
  }

  [dir="rtl"] .search-dropdown .dropdown-menu {
    height: calc(100vh - 300px) !important;
    overflow-y: auto;
    width: 90vw !important;
    left: 0%;
    /* width: 76%; */
  }

  .circle-btn {
    width: 30px !important;
    height: 30px !important;
    position: relative;
    /* line-height: 30px !important; */
  }

  .circle-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
  }

  .chats-design .chats-header .user-image {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  /* [dir="rtl"] .user-chats {
    margin-right: 15px;
  } */
  [dir="rtl"] .user-chats div.col-auto {
    padding-left: 0;
  }
}

/* Small (SM) - Phones (Landscape) & Small Tablets */
@media (min-width: 576px) and (max-width: 767px) {
  /* Styles for small devices */
  .product-details-main-img {
    height: 276px;
  }

  .banner-height {
    height: calc(100vh - 501px);
  }

  .banner-side-image {
    height: 23vh;
    width: 100%;
  }

  .banner-side-image img {
    object-fit: contain;
  }

  .download-btn {
    width: 130px;
    object-fit: contain;
  }

  /* .main-header .middle-header .row {
    justify-content: space-between;
  } */
  .search-dropdown .dropdown-menu {
    height: calc(100vh - 300px) !important;
    overflow-y: auto;
    width: 90vw !important;
    left: -575%;
  }

  [dir="rtl"] .search-dropdown .dropdown-menu {
    height: calc(100vh - 300px) !important;
    overflow-y: auto;
    width: 90vw !important;
    left: 0%;
    /* width: 76%; */
  }
}

/* Medium (MD) - Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  /* Styles for tablets */
  .container-fluid {
    padding: 0 1.75rem !important;
  }

  .notification-dropdown .dropdown-menu {
    width: 532px;
    /* transform: translate3d(-90.5px, 29.5px, 0px) !important; */
  }

  .search-dropdown .dropdown-menu.show {
    width: 100% !important;
    position: fixed !important;
    top: 30px !important;
  }

  .banner-side-image {
    width: 100%;
    height: fit-content;
  }

  .banner-side-image img {
    width: 100%;
    height: 100%;
  }

  .banner-height {
    height: calc(100vh - 760px);
  }

  .banner-heading {
    font-size: 32px;
    line-height: 46px;
  }

  .brand-card {
    margin-bottom: 0.75rem;
  }

  .brand-card .card-body {
    height: 105px;
  }

  .comman-heading-2 {
    font-size: 22px;
    line-height: 32px;
  }

  .fs-24 {
    font-size: 18px;
    line-height: 25px;
  }

  .fs-16 {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  .tender-h-card .card-body .short-text {
    height: 135px;
    overflow: hidden;
  }

  .products-card .card-header {
    height: 130px;
    position: relative;
  }

  .products-card .fs-18 {
    font-size: 16px !important;
    line-height: 22px !important;
  }

  .all-product-img {
    height: 595px;
  }

  .form-control {
    height: 44px;
  }

  .btn.btn-primary,
  .btn-border,
  .btn {
    height: 44px !important;
    padding: 0 1rem !important;
    line-height: 44px !important;
    font-size: 12px !important;
  }

  .about-us-wrapper .fs-18,
  .terms-and-conditions .fs-18,
  .privacy-policy .fs-18 {
    font-size: 15px !important;
    line-height: 20px !important;
  }

  .product-details-main-img {
    height: 649px;
  }

  .download-btn {
    width: 120px;
    /* height: 50px; */
    object-fit: contain;
  }

  [dir="rtl"] .search-dropdown-wrapper-tab .search-dropdown {
    text-align: end;
    margin-right: 0px !important;
  }

  .icon-header {
    margin-top: -10px;
  }
  .products-card .card-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: auto;
    font-size: 12px !important;
  }
  .products-card .card-body .d-flex span.fs-16 {
    font-size: 14px !important;
  }
  .products-card .card-body .d-flex span {
    font-size: 10px !important;
  }
}

/* Large (LG) - Laptops & Small Desktops */
@media (max-width: 1050px) {
  .card.brand-card {
    width: 100% !important;
  }
}

/* Extra Large (XL) - Large Desktops */
@media (min-width: 1200px) and (max-width: 1399px) {
  /* Styles for large screens */
  .form-design .form-control {
    height: 48px;
    line-height: 48px;
  }

  .form-design .form-label {
    font-size: 14px;
  }

  .btn {
    height: 48px !important;
    /* line-height: 48px !important; */
  }

  .comman-heading {
    font-size: 24px !important;
  }

  .comman-container .comman-gradient .fs-36.text-white.fw-semibold {
    font-size: 26px;
    line-height: 36px;
  }

  .download-btn {
    width: 150px;
    height: 50px;
    object-fit: contain;
  }

  .react-tel-input {
    height: 44px !important;
  }

  .react-tel-input .flag-dropdown {
    height: 65px !important;
  }

  .react-tel-input .form-control {
    height: 44px !important;
  }
}

/* Extra Extra Large (XXL) - 4K Screens */
@media (min-width: 1400px) {
  /* Styles for extra large screens */
}

@media (max-width: 767px) {
  .debit-card-design {
    width: 100%;
  }
  .banner .bg-main-light {
    height: calc(90vh - 353px);
  }
  .banner-height {
    height: calc(100vh - 610px);
  }
  .text-custom-notification {
    overflow: hidden;
    width: 180px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* =========================================================
   MOBILE FIXES (added during AWS deployment)
   ========================================================= */

/* Stop anything from making the page wider than the screen
   (this pushed the "AI Assistant" button off the right edge) */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 767px) {
  /* Hero banner: let it grow with its text instead of a fixed height,
     so the heading is no longer hidden behind "Top Buyers" */
  .banner .bg-main-light {
    height: auto !important;
    min-height: 240px;
    overflow: hidden;
  }
  .banner .bg-main-light .row.py-5 {
    padding-top: 28px !important;
    padding-bottom: 36px !important;
  }
  .banner-height {
    height: auto !important;
    min-height: 0;
  }
  .banner-side-image {
    height: auto !important;
    width: 100%;
  }

  /* Dark overlay so the white text is readable on any banner image/video */
  .banner .bg-main-light::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 40, 90, 0.35) 0%, rgba(10, 40, 90, 0.7) 100%);
    z-index: 3;
    pointer-events: none;
  }
  .banner-heading-wrapper {
    position: relative;
    z-index: 4;
    padding: 0 4px;
  }
  .banner-text {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  .banner-heading {
    font-size: 24px !important;
    line-height: 32px !important;
    word-break: break-word;
  }

  /* Space below the banner so the next section never overlaps it */
  .banner {
    margin-bottom: 8px;
  }

  /* AI Assistant button: smaller and fully on screen */
  .chatbot-icon {
    right: 12px;
    bottom: 12px;
    height: auto;
  }
  .chatbot-icon img {
    height: 60px;
    width: auto;
  }
}
