@media (min-width: 769px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (min-width: 992px) {
     .mainlayout .card-thumb {
        height: 235px;
    }
    .mainlayout .filter-btn {
        display: none;
    }

    .mainlayout .view-controls-mobile {
        display: none;
    }

    .mainlayout {
        grid-template-columns: 360px 1fr;
    }

    .mainlayout .sidebar-breadcrumb {
        display: none;
    }

    .filter-sticky {
        position: sticky;
        top: 1rem;
    }

    body {
        font-size: 18px;
        line-height: 1.6;
    }

    .nav-flyout {
        position: fixed;
        top: auto;
        left: auto;
    }
     .slide-btn.prod-right-btn,
   .slide-btn.prod-left-btn,
    .slide-btn.new-right-btn,
   .slide-btn.new-left-btn {
    font-size: xx-large;
}

.slide-btn.prod-right-btn,
   .slide-btn.prod-left-btn,
.new-right-btn{
    font-size: 70px;
}
.d-search{
    display:block;
}

}

@media (min-width: 1350px) {
    body {
        font-size: 20px;
        line-height: 1.8;
    }

    .mainlayout .card-thumb {
        height: 260px;
    }
}

@media (min-width: 1500px) {
    .header-container {
        gap: 25px;
    }

    .nav-menu {
        gap: 25px;
    }

    .search-input {
        width: 70%;
    }

    .categories .slider-wrapper {
        padding: 20px;
    }

    .cat-card {
        min-width: 150px;
    }

  

    .categories .left-btn,
    .categories .right-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .advertise-box {
        padding: 50px;
    }

    .adv-image img {
        width: 300px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }

    /* PRODUCT CARD */
    .prod-card,
    .new-prod-card {
        /* width: 100%;
        min-width: 180px;
        margin: auto; */
         width: 100%;
        min-width: 310px;
        margin: auto;
        height: 350px;
    }

    /* PRODUCT IMAGE */
    .prod-card img,
    .new-prod-card img {
        /* width: 160px;
    height: 160px; */
        margin: 0 auto;
        display: block;
    }

    .mainlayout .card-thumb {
        height: 270px;
    }
}

@media (min-width: 1800px) {

    .new-prod-card { 
        min-height: 360px;
    }

    .mainlayout .card-thumb {
        height: 370px;
    }

    .header-container {
        gap: 30px;
    }

    .nav-menu {
        gap: 30px;
    }

    .search-input {
        width: 60%;
    }

    .categories .slider-wrapper {
        padding: 22px;
    }

    .cat-card {
        min-width: 160px;
    }

   

    .categories .left-btn,
    .categories .right-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .advertise-box {
        padding: 60px;
    }

    .adv-image img {
        width: 350px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 26px;
    }

    /* PRODUCT CARD */
    .prod-card,
    .new-prod-card {
        /* width: 100%;
    min-width: 220px; */
        margin: auto;
         width: 100%;
        min-width: 310px;
        margin: auto;
        height: 350px;
    }

    /* PRODUCT IMAGE */
    .prod-card img,
    .new-prod-card img {
        width: 170px;
        height: 170px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 1200px) {
    .header-container {
        gap: 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .search-input {
        width: 80%;
    }

    .categories .slider-wrapper {
        padding: 18px;
    }

    .cat-card {
        min-width: 140px;
    }

    

    .categories .left-btn,
    .categories .right-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .advertise-box {
        padding: 40px;
    }

    .adv-image img {
        width: 250px;
    }

    .img-fluid {
        width: 100%;
        height: auto;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* PRODUCT CARD SIZE */
    .prod-card,
    .new-prod-card {
        width: 100%;
        min-width: 310px;
        margin: auto;
        min-height: 350px;
        height: 100%;
    }

    /* PRODUCT IMAGES */
    .prod-card img,
    .new-prod-card img {
        /* width: 150px;
    height: 150px; */
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .nav-item.dropdown .dropdown-menu {
        left: auto !important;
        transform: none !important;

    }

    .mainlayout .filter-btn {
        display: inline-block;
    }

    .mainlayout .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 72%;
        height: 100vh;
        background: #f3f5f7;
        padding: 20px;
        z-index: 200;
        overflow-y: auto;
        transition: left .35s ease;
        box-shadow: 2px 0 12px rgba(0, 0, 0, .25);
    }

    .mainlayout .sidebar.active {
        left: 0;
    }

    .mainlayout {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }

    .mainlayout .card {
        width: 100%;
    }

    .mainlayout .card-thumb {
        height: 270px;
    }

    .mainlayout .advertise-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .mainlayout .content-header {
        display: none;
    }

    .mainlayout .results {
        display: none !important;
    }

    .mainlayout .content-header {
        justify-content: end !important;
    }

    .blog-container {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }

    .sidebar-sticky {
        position: static;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 15px;
    }

    .search-input {
        width: 100%;
    }

    .categories .slider-wrapper {
        padding: 16px;
    }

    .cat-card {
        min-width: 120px;
    }

    .cat-card img {
        width: 60px;
        height: 60px;
    }

    /* Buttons MUST be styled separately */
    .categories .left-btn {
        left: 0px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .categories .right-btn {
        right: 0px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .advertise-box {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 30px;
    }

    .adv-content {
        max-width: 100%;
    }

    .adv-image img {
        width: 200px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* PRODUCT CARD SIZE */
    .prod-card,
    .new-prod-card {
        width: 100%;
        min-width: 180px;
        margin: auto;
    }

    /* PRODUCT IMAGES */
    .prod-card img,
    .new-prod-card img {
        /* width: 140px;
    height: 140px; */
        margin: 0 auto;
        display: block;
    }

    .product-detail-page .gallery {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .product-detail-page .thumbs {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-bottom: 8px;
    }

    img.mainImage.img-fluid {
        height: 500px;
        width: 500px;
    }

    .product-detail-page .details-col {
        margin-top: 18px;
    }

    .filter-sticky {
        position: sticky;
        top: 1rem;
    }

    .unclaimed-cargo-promo .promo-wrapper {
        flex-direction: column;
    }

    .unclaimed-cargo-promo .promo-card {
        flex: 1;
        background: #e9edff;
        cursor: default;
    }

    .unclaimed-cargo-promo .promo-card,
    .unclaimed-cargo-promo .promo-card.active {
        transform: none;
    }

    .unclaimed-cargo-promo .promo-description {
        display: block;
    }

    .unclaimed-cargo-promo .promo-card.active .promo-img {
        display: none;
    }

    .stepper-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-flyout {
        position: fixed;
        top: 95px;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 16px 16px 24px;
        overflow-y: auto;
        width: 100%;
    }

    .nav-flyout__back {
        display: inline-flex;
        align-items: center;
    }

    .navbar-expand-lg .navbar-collapse {
        padding: 25px 0 0;
    }

    .categories-stepper {
        position: absolute;
        top: 84px;
        left: 0;
        transform: none;
        width: 100%;
        height: calc(60vh - 56px);
        max-height: none;
        border-radius: 0 0 16px 16px;
        box-shadow: none;
        padding: 16px 16px 24px;
        overflow-y: auto;
    }

    .categories-stepper.is-open {
        transform: none;
    }

    .stepper-backdrop {
        top: 84px;
    }

    .wizard-shell {
        padding: 24px 20px 26px;
    }

    .wizard-steps {
        padding: 0 0;
    }

    .wizard-steps::before {
        left: 40px;
        right: 40px;
    }

    .about-hero .container,
    .vision-wrapper,
    .network-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .sourcing-title {
        font-size: 2rem;
    }

    .sourcing-section {
        padding: 50px 0;
    }

    .mockup-wrapper {
        margin-top: 40px;
    }

    .product-sectors {
        padding: 50px 0;
    }

    .product-sectors h2 {
        font-size: 2rem;
    }

    .hero-b2b {
        border-radius: 0;
    }

    .hero-b2b h1 {
        font-size: 2rem;
    }

    .hero-lower {
        text-align: center;
    }

    .hero-cta-card {
        justify-content: center;
    }

    .platform-section {
        padding: 50px 0;
    }

    .feature-tabs-wrapper {
        border-radius: 24px;
    }

    .feature-tabs .nav-link {
        justify-content: flex-start;
    }

    .join-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .latest-article-card {
        flex-direction: column;
        text-align: center;
    }

    .latest-article-card img {
        width: 100%;
    }

    .form-card {
        padding: 15px;
    }

    .hero {
        height: 180px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    /* PRODUCT CARDS */
    .prod-card,
    .new-prod-card {
        width: 100%;
        min-width: 150px;
        margin: 0 auto;
    }

    /* PRODUCT IMAGES */
    .prod-card img,
    .new-prod-card img {
        /* width: 120px;
    height: 120px; */
        margin: 0 auto;
        display: block;
    }

    /* PRODUCT GRID — 2 PER ROW */
    .product-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 230px;
        background: #0d265b;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1040;
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 1030;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-content {
        padding: 16px 16px 24px;
    }

    .categry-page .quick-logistics-section {
        padding: 30px 0;
    }

    .categry-page .quick-logistics-content {
        padding: 0 0 20px 0;
        margin-left: 0;
        margin-bottom: 0;
    }

    .categry-page .quick-logistics-images-wrapper {
        height: 380px;
        margin-bottom: 0;
    }

    .categry-page .quick-logistics-main-image {
        height: 280px;
    }

    .categry-page .quick-logistics-overlay-card {
        height: 190px;
        width: 70%;
    }

    .contact-box {
        padding: 30px;
    }

    body {
        font-size: 14px;
        line-height: 1.4;
    }

    .order-card {
        padding: 18px 16px 8px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .invoice-btn {
        width: 100%;
        text-align: center;
    }

    .order-item {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .item-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .item-name {
        max-width: 100%;
        white-space: normal;
    }

    .item-right {
        margin-left: auto;
    }

    .cart-page .product-row {
        justify-content: space-between;
    }

    .mainlayout .card-thumb {
        height: 250px;
    }
    *,
body,
html {
    overflow-x:hidden ;
}

}

@media (max-width: 576px) {

    .order-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 20px 0;
        gap: 10px;
    }

    .item-left {
        flex: 1 1 100%;
        display: flex;
        gap: 12px;
    }

    .item-middle {
        order: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .item-qty-control {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    .item-right {
        order: 3;
        margin-left: auto;
        font-size: 15px;
    }

    .invoice-btn {
        width: 100%;
        text-align: center;
    }

    .main-search,
    .search-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
    }

    .main-search {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
    }

    .center-search {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mainlayout .card-thumb {
        height: 360px;
        border-radius: 8px;
    }

    .mainlayout .adv-image img {
        max-width: 160px;
    }

    .mainlayout .card.list-mode {
        grid-template-columns: 1fr;
    }

    .supplier-card {
        padding: 14px 15px;
    }

    .blog-title {
        font-size: 22px;
    }

    .blog-page {
        padding: 24px 12px;
    }

    .sidebar-box {
        padding: 14px 15px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* .admin-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        height: auto;
    }

    .sidebar-menu {
        flex-direction: row;
    }

    .sidebar-footer {
        display: none;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    } */

    .categry-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        min-height: 300px;
    }


    .categry-page .sourcing-banner-container {
        padding: 20px;
    }

    .categry-page .sourcing-banner-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .categry-page .sourcing-banner-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .categry-page .sourcing-banner-title {
        font-size: 15px;
    }

    .categry-page .sourcing-banner-btn-wrapper {
        text-align: center;
        width: 100%;
    }

    .categry-page .sourcing-banner-btn {
        width: 100%;
        font-size: 15px;
        padding: 12px 24px;
    }

    .categry-page .b2b-market-info-section {
        padding: 30px 0;
    }

    .categry-page .quick-logistics-section {
        padding: 25px 0;
    }

    .categry-page .quick-logistics-content {
        padding: 0 0 20px 0;
        margin-left: 0;
        margin-bottom: 0;
    }

    .categry-page .quick-logistics-images-wrapper {
        height: 320px;
        margin-bottom: 0;
    }

    .categry-page .quick-logistics-main-image {
        height: 230px;
    }

    .categry-page .quick-logistics-overlay-card {
        height: 160px;
        width: 68%;
    }

    .wizard-shell {
        padding: 20px 16px 22px;
    }

    .wizard-steps {
        padding: 0 12px 8px;
    }

    .wizard-line-base {
        left: 24px;
        right: 24px;
    }

    .step-title {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 30px;
    }

    .blue-strip p {
        font-size: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-top {
        margin-bottom: 50px;
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .product-detail-page .thumbs img {
        width: 60px;
        height: 60px;
    }

    .product-detail-page .thumbs {
        flex-direction: row;

    }

    .product-detail-page .gallery {
        flex-direction: column-reverse;
    }
}

@media (max-width: 525px) {
    .cart-page .qty-input {
        width: 22px;
        font-size: 12px;
    }

    .cart-page .product-img {
        width: 50px;
        height: 50px;
    }

    .cart-page .product-title {
        font-weight: 600;
        font-size: 12px;
    }

    .cart-page .product-meta {
        font-size: 13px;
        color: #6b6b6b;
    }
}

@media (max-width: 425px) {

    .logo {
        font-size: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero {
        height: 150px;
    }

    .categories .slider-wrapper {
        padding: 12px;
    }

    .cat-card {
        min-width: 100px;
    }

    .cat-card img {
        width: 50px;
        height: 50px;
    }

    .categories h2 {
        font-size: 18px;
    }

    .categories .left-btn {
        left: 0;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .categories .right-btn {
        right: 0;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .product-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .prod-card,
    .new-prod-card {
        width: 100%;
        min-width: unset;
        margin: 0 auto;
           width: 100%;
        min-width: 200px;      
        height: 400px;
    }

    .prod-card img,
    .new-prod-card img,
    .product-card img {
        display: block;
        object-fit: contain;
        gap: 15px;
    }

    .popular-products h2,
    .new-products h2 {
        font-size: 18px;
    }

    .prod-left-btn,
    .prod-right-btn,
    .new-left-btn,
    .new-right-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .prod-left-btn,
.prod-right-btn,
.new-right-btn{
    font-size: 36px;
}

    .advertise-box {
        padding: 20px;
    }

    .adv-image img {
        width: 160px;
    }

    .product-section h2 {
        font-size: 18px;
    }

    .categry-page .sourcing-process-section {
        padding: 24px 0;
    }

    .categry-page .sourcing-carousel-dots {
        display: flex;
        margin-top: 16px;
    }

    .categry-page .sourcing-text-item {
        padding: 12px;
        gap: 12px;
        border-radius: 6px;
        display: none;
    }

    .categry-page .sourcing-text-item-active {
        display: flex;
        background: transparent;
        border: none;
    }

    .categry-page .sourcing-items-list {
        gap: 12px;
    }

    .categry-page .sourcing-item-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .categry-page .sourcing-item-title {
        font-size: 15px;
    }

    .categry-page .sourcing-image-container {
        height: 260px;
        margin-top: 14px;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .categry-page .sourcing-image {
        position: relative;
        opacity: 1;
        min-width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .categry-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        min-height: 300px;
    }    
}

@media (max-width: 375px) {

    .categry-page .sourcing-container {
        padding: 12px;
    }

    .categry-page .sourcing-items-list {
        gap: 10px;
    }

    .categry-page .sourcing-text-item {
        padding: 10px;
        gap: 10px;
    }

    .categry-page .sourcing-item-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .categry-page .sourcing-item-title {
        font-size: 15px;
    }

    .categry-page .sourcing-image-container {
        height: 200px;
        margin-top: 10px;
    }
}

@media (max-width: 2500px) {
    .related-product-slider .swiper-button-prev {
        left: 12%;
    }
    .related-product-slider .swiper-button-next {
        right: 12%;
    }
  }
 
 
@media (max-width: 2000px) {
    .related-product-slider .swiper-button-prev {
        left: 12%;
    }
    .related-product-slider .swiper-button-next {
        right: 12%;
    }
  }
 
@media (max-width: 1600px) {
    .related-product-slider .swiper-button-prev {
        left: 1%;
    }
    .related-product-slider .swiper-button-next {
        right: 1%;
    }
 
    .related-product-slider .swiper-button-prev,
.related-product-slider .swiper-button-next {
    width: 40px;
    height: 40px;
}
}
 
 
@media (max-width: 1300px) {
    .related-product-slider .swiper-button-prev {
        left: 2%;
    }
    .related-product-slider .swiper-button-next {
        right: 2%;
    }
 
    .related-product-slider .swiper-button-prev,
.related-product-slider .swiper-button-next {
    width: 30px;
    height: 30px;
}
}
 
@media (max-width: 992px) {
    .related-product-slider .swiper-button-prev,
    .related-product-slider .swiper-button-next {
      display: none;
    }
    .contact{
  width:100%;
}
 
}