@media (max-width: 992px) {
  body a {
    color: #000;
    text-decoration: none;
  }

  #header .container a img {
    width: 58%;
  }

  #header .container .navbar-brand {
    width: 40%;
  }

  #header .collapse a {
    font-size: 18px;
  }

  #header .collapse button {
    font-size: 16px;
    padding: 6px 16px;
  }

  #header button span i {
    font-size: 25px;
  }

  #categories .col-lg-1,
  .col-md-2,
  .col-sm-3,
  .col-4 {
    width: 22%;
    margin-right: 2%;
    margin-bottom: 20px;
  }

  #category-list li {
    width: calc(50% - 10px);
    /* Adjust width as needed for smaller screens */
  }

  .product-cont {
    padding: 24px 10px;
    margin-right: 0;
  }

  .col-md-3 {
    width: 50%;
    padding: 0 10px;
  }

  .view-all-btn {
    width: 100%;
  }

  #footer .logo {
    padding: 0;
    width: 75%;
  }

  #footer .row .link {
    padding: 0;
    margin-top: 20px;
    width: 75%;
  }

  #footer .contact {
    width: 75%;
    padding: 0;
    margin-top: 20px;
  }

  #footer .col-md-3 {
    padding: 0;
    margin-top: 20px;
  }

  /* Updated categories styles for tablets */
  #categories {
    margin-top: 30px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .categories-wrapper {
    gap: 8px;
    margin-top: 20px;
  }

  .category-item {
    width: 110px;
  }

  .category-icon {
    width: 75px;
    height: 75px;
  }

  .category-name {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  #header .container a img {
    width: auto;
    height: 35px;
  }

  #header .collapse a {
    font-size: 16px;
  }

  #header .collapse button {
    font-size: 14px;
    padding: 6px 14px;
  }

  #header button span i {
    font-size: 20px;
  }

  #categories .col-lg-1,
  .col-md-2,
  .col-sm-3,
  .col-4 {
    width: 30%;
    margin-right: 3%;
    margin-bottom: 20px;
  }

  footer {
    width: 100%;
    padding: 50px 22px;
  }

  /* ************ Quick View ************* */
  .prod-info-qk-vw {
    margin-top: 35px !important;
  }

  #quickViewModal .quick-vw-pname {
    font-size: 24px;
    margin-bottom: 5px;
  }

  #quickViewModal .qk-vw-catg {
    font-size: 15px;
    margin-bottom: 10px;
  }

  #quickViewModal .product-price .del {
    font-size: 19px;
  }

  #quickViewModal .product-price .ins {
    font-size: 21px;
  }

  .product-price {
    margin-bottom: 10px !important;
  }

  #quickViewModal .qk-vw-header {
    height: 35px;
    justify-content: end;
    padding: 1px 15px 0;
  }

  #quickViewModal .product-description-qk-vw {
    font-size: 15px !important;
  }

  #quickViewModal .quick-vw-modal-content {
    padding: 20px 20px 40px !important;
  }

  /* ****************** Mobile Off-canvas ********************** */
  .menublock {
    display: inline-block;
    margin: 0;
    /* padding: 10px 20px; */
    width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .menublock::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
  }

  .profile-img {
    object-fit: cover;
    height: 35px;
    width: 35px;
  }

  .offcanvas-end {
    width: 100%;
  }

  .menublock li {
    list-style-type: none;
    display: inline-block;
    margin: 0 5px;
    text-align: center;
    border: 1px solid #ddecf2;
    border-radius: 36px;
    padding: 0 15px;
  }

  .menublock li span {
    text-decoration: none;
    color: #111;
    font-weight: 400;
    line-height: 34px;
    height: 34px;
    display: block;
  }

  .font13 {
    font-size: 13px;
  }

  .navlist {
    background: #fff;
    box-sizing: border-box;
    padding: 0 20px;
  }

  .animated {
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  li,
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li,
  ol,
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
  }

  .navlist li {
    display: table;
    width: 100%;
    table-layout: fixed;
    color: #111;
    padding: 12px 0;
    box-sizing: border-box;
    font-weight: 400;
  }

  .font14 {
    font-size: 14px;
  }

  .languageicon {
    background-image: url(https://akam.cdn.jdmagicbox.com/images/icontent/newwap/newprot_w/Languageicn.svg);
  }

  .jdsidemenu {
    width: 36px;
    height: 36px;
    display: table-cell;
    vertical-align: middle;
    background-position: 50%;
    background-repeat: no-repeat;
  }

  .navlist li span + span {
    padding-left: 15px;
    font-weight: 500;
  }

  .tdspan {
    display: table-cell;
    vertical-align: middle;
  }

  .tdspan.lastspace {
    width: 38%;
    text-align: right;
    color: #717171;
  }

  .tdspan:last-child {
    width: 15px;
    padding-right: 0;
  }

  .user-name-hd {
    font-size: 18px;
    font-weight: 600;
  }

  .sub-heading {
    margin-top: 5px;
    font-weight: 400;
    font-size: 14px;
  }

  .jdlogout {
    background-image: url(../../img/SVGs/logout-mob.svg);
  }

  .jdmytransactions {
    background-image: url(../../img/SVGs/my-orders-mob.svg);
  }

  .jdeditprofile {
    background-image: url(../../img/SVGs/edit-profile-mob.svg);
  }

  .rewards {
    background-image: url(../../img/SVGs/rewards-mob.svg);
  }

  .jdlistyourbusiness img {
    width: 100%;
  }

  /* *********** Products ********* */
  .product-card .card-content {
    padding: 25px !important;
    padding-bottom: 15px !important;
  }

  /* Updated categories styles for mobile */
  #categories {
    margin-top: 25px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title h2:after {
    width: 40px;
    height: 2px;
  }

  .categories-wrapper {
    gap: 5px;
    margin-top: 15px;
    justify-content: space-between;
  }

  .category-item {
    width: 90px;
    margin-bottom: 15px;
  }

  .category-icon {
    width: 65px;
    height: 65px;
  }

  .category-name {
    font-size: 12px;
    margin-top: 5px;
  }

  /* Off-canvas styles for categories */
  .popup-offcanvas {
    width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .desktop-view {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .mobile-view {
    display: none;
  }
}

@media (max-width: 576px) {
  #header .container {
    margin: 0px 5px;
  }

  #header .container a img {
    width: auto;
    height: 35px;
  }

  #header .collapse a {
    font-size: 14px;
    text-align: center;
  }

  #header .collapse button {
    font-size: 12px;
    padding: 4px 10px;
  }

  #header button span i {
    font-size: 18px;
  }

  #categories .col-lg-1,
  .col-md-2,
  .col-sm-3,
  .col-4 {
    margin-bottom: 20px;
  }

  #category-list li {
    width: 50%;
    /* Full width for smallest screens */
  }

  #product {
    margin-top: 10px;
  }

  .categ-mt5 {
    margin-top: 0 !important;
  }

  /* Updated categories styles for small mobile */
  #categories {
    margin-top: 15px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .categories-wrapper {
    margin-top: 10px;
    gap: 3px;
  }

  .category-item {
    width: 28%;
    margin-bottom: 12px;
  }

  .category-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 5px;
  }

  .category-name {
    font-size: 11px;
    margin-top: 3px;
  }

  /* Full width off-canvas for smallest screens */
  .popup-offcanvas {
    width: 100%;
  }
}

@media (max-width: 400px) {
  /* Extra small mobile adjustments */
  .category-item {
    width: 30%;
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-name {
    font-size: 10px;
  }

  #quickViewModal .img-quick-view {
    height: auto;
  }
}
