@media only screen and (max-width: 1200px) {
  .carousel-item div {
    width: 40% !important;
    /* border: 1px solid red; */
    margin-top: 30px;
  }

  .carousel-item h1 {
    font-size: 2.3rem;
  }

  .carousel-item p {
    font-size: 0.9rem;
  }

  .footer_info,
  .pages,
  .imp_links,
  .contact_info {
    width: 24.5%;
  }

  .payment_info {
    width: 30%;
  }
}

@media only screen and (max-width: 1140px) {
  header nav ul li a {
    display: none;
  }

  #bar {
    display: block;
  }

  .nav_icons_links li a {
    display: block;
  }

  .G-4 {
    display: none;
  }

  .cart_item {
    width: 31%;
  }

  .cart_item form button {
    display: block;
  }

  .cart_item:hover {
    background-color: #6c717400;
  }

  .banner-2 div {
    max-width: 90%;
  }

  footer {
    width: 100%;
    height: 850px;
  }

  footer .links-div {
    height: 80%;
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .footer_info,
  .pages,
  .imp_links,
  .contact_info {
    width: 100%;
    height: fit-content;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
  }

  .links-div .pages ul,
  .links-div .imp_links ul,
  .links-div .contact_info ul,
  .links-div .pages h3,
  .links-div .imp_links h3,
  .links-div .contact_info h3 {
    padding-left: 0px;
  }

  .all_products_section .main_products_div .products {
    grid-auto-rows: 480px;
  }

  .all_products_section .main_products_div .products div h4 {
    font-size: 15px;
  }

  .all_products_section .main_products_div .products div p {
    font-size: 13px;
  }

  .all_products_section .main_products_div .products div span {
    font-size: 15px;
  }

  .all_products_section .main_products_div .products div form button {
    height: 55px;
  }

  .checkout_section {
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .shop_cart {
    width: 100%;
    height: 100%;
  }

  .payment_info {
    margin-top: 50px;
    width: 45%;
  }
}

@media only screen and (max-width: 950px) {
  .all_products_section .main_products_div .products div form button {
    opacity: 1;
  }

  .all_products_section .main_products_div .products {
    grid-template-columns: repeat(2, 45%);
    grid-auto-rows: 470px;
    justify-content: space-between;
  }

  .btn_filters {
    width: 70%;
  }
}

@media only screen and (max-width: 900px) {
  .carousel-item div {
    width: 43%;
    margin-top: 40px;
  }

  .carousel-item h1 {
    font-size: 1.9rem;
    line-height: 35px;
  }

  .carousel-item p {
    font-size: 0.82rem;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .carousel-item button {
    padding: 10px 70px 10px 70px;
  }

  .carousel-inner {
    height: 480px;
  }

  .banner-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45rem;
  }

  .banner-3 div {
    width: 80%;
    height: 45%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .banner-3 div h2,
  .banner-3 div p {
    padding: 0px 0px 0px 0px;
  }

  .banner-3 div a button {
    margin-left: 0;
  }

  .products_banner {
    width: 84%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-top: 30px;
  }

  .products_banner > div {
    width: 100%;
  }

  .products_banner .product_item_img {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
  }

  .may_like_section {
    margin-top: 60px;
  }

  .payment_info {
    width: 55%;
  }
}

@media only screen and (max-width: 768px) {
  .carousel-item div {
    width: 50%;
    margin-top: 45px;
  }

  .carousel-item h1 {
    font-size: 1.7rem;
  }

  .carousel-item p {
    font-size: 0.78rem;
  }

  .carousel-item button {
    padding: 10px 60px 10px 60px;
  }

  .row div img {
    width: 60px;
    height: 60px;
  }

  .row div p {
    font-size: 13px;
  }

  .G-3 {
    display: none;
  }

  .cart_item {
    width: 45%;
  }

  .btn_filters {
    width: 80%;
  }

  .shop_cart .cart_items table thead tr th {
    font-size: 14px;
  }

  .shop_cart .cart_items table tbody tr td {
    font-size: 12px;
  }

  .shop_cart .cart_total_checkout h5 {
    font-size: 0.85rem;
  }

  .header_price,
  .header_quan,
  .header_total {
    width: 100px;
  }

  .header_cancel {
    width: 50px;
    text-align: center;
  }
}

@media only screen and (max-width: 670px) {
  .carousel-inner {
    height: fit-content;
  }

  .banner-2 div h2 {
    font-size: 20px;
  }

  .banner-2 div p {
    font-size: 14px;
  }

  .banner-2 div a button {
    padding: 8px 90px 8px 90px;
  }

  .all_products_section .main_products_div .products {
    grid-template-columns: repeat(2, 49%);
  }

  .products_banner .product_item_img {
    width: 100%;
  }

  .may_like_section > div {
    grid-template-columns: repeat(3, 30%);
  }

  .payment_info {
    width: 62%;
  }
}

@media only screen and (max-width: 630px) {
  #carousel-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60% !important;
  }

  .carousel-item h1 {
    font-size: 1.4rem;
  }

  .carousel-item p {
    font-size: 0.7rem;
  }

  .carousel-item button {
    padding: 8px 50px 8px 50px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    opacity: 0;
  }

  .features {
    height: 190px;
  }

  .cart_item {
    width: 48%;
  }

  .cart_section h2 {
    width: 95%;
  }

  .cart_items {
    width: 95%;
  }

  footer .copyright-div {
    height: 12%;
    width: 100%;
    margin-top: 30px;
    font-size: 12px;
  }

  .btn_filters {
    width: 90%;
  }

  .header_price,
  .header_quan,
  .header_total {
    width: 70px;
  }

  .header_cancel {
    width: 40px;
  }
  .shop_cart .cart_items table thead tr th {
    font-size: 13px;
    font-weight: 500;
  }
  .contact-form-section form {
    width: 400px;
    height: 460px;
  }
}

@media only screen and (max-width: 600px) {
  .all_products_section .main_products_div .products {
    grid-template-columns: repeat(1, 85%);
    justify-content: center;
  }

  .payment_info {
    width: 80%;
  }
}

@media only screen and (max-width: 500px) {
  #carousel-text {
    width: 70% !important;
  }

  .carousel-item h1 {
    font-size: 1.2rem;
  }

  /* .carousel-item p {
      font-size: 12px;
   } */

  .carousel-item button {
    padding: 6px 40px 6px 40px;
  }

  .row div img {
    width: 45px;
    height: 45px;
  }

  .row div p {
    font-size: 12px;
  }

  .features {
    height: 180px;
  }

  .cart_item {
    width: 49%;
  }

  .cart_section h2 {
    width: 97%;
  }

  .cart_items {
    width: 97%;
  }

  .btn_filters {
    width: 100%;
  }
}

@media only screen and (max-width: 450px) {
  .row div img {
    width: 35px;
    height: 35px;
  }

  .row div p {
    font-size: 11px;
  }

  .features {
    height: 160px;
  }

  .btn_filters button {
    padding: 5px 10px 5px 10px;
  }

  .all_products_section h3 {
    font-size: 1.2rem;
  }

  .btn_filters {
    display: grid;
    grid-template-columns: repeat(2, 40%);
    justify-content: space-around;
    row-gap: 15px;
    width: 100%;
  }

  .payment_info {
    width: 90%;
  }
  .header_price,
  .header_quan,
  .header_total {
    width: 60px;
  }

  .header_cancel {
    width: 30px;
  }
  .shop_cart .cart_items table thead tr th {
    font-size: 12px;
    font-weight: 400;
  }
  .contact-form-section form {
    width: 350px;
    height: 450px;
  }
}

@media only screen and (min-width: 1600px) {
  #carousel-text {
    top: 30%;
    left: 33%;
  }

  .cart_section {
    width: 1600px;
  }

  .all_products_section .main_products_div .products {
    display: grid;
    grid-template-columns: repeat(4, 24.2%);
    grid-auto-rows: 470px;
    /* border: 1px solid green; */
  }
}

@media only screen and (min-width: 1800px) {
  #carousel-text {
    top: 25%;
    left: 33%;
  }
}
