/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
  .hero__button--next {
    left: 90%;
  }

  .hero__button--prev {
    right: 90%;
  }

  .cover-images .cover-image p {
    font-size: 1.4rem;
  }

  .cover-images .cover-image a img {
    width: 36rem;
    height: 34rem;
  }
  .product-grid .products .product-inner img {
    width: 28rem;
    height: 28rem;
  }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }
  .cover-images .cover-image p {
    font-size: 1.3rem;
  }
  .cover-images .cover-image a img {
    width: 32rem;
    height: 30rem;
  }
  .product-grid .products .product-inner img {
    width: 24rem;
    height: 24rem;
  }

  .orders-history .order-history img {
    width: 24rem;
    height: 24rem;
  }

  footer .foot-links {
    width: 90%;
  }
  .login {
    width: 50%;
  }

  .add-address form {
    grid-template-columns: repeat(3, 1fr);
  }
  .shipping-info form {
    grid-template-columns: repeat(3, 1fr);
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }

  .toast-container {
    bottom: 10rem;
  }

  .mobile-bottom-navbar {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 0.1rem solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 0.8rem;
    box-shadow: 0px -0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  }

  .mobile-bottom-navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
  }

  .mobile-bottom-navbar li {
    margin: 0 1rem;
  }

  .mobile-bottom-navbar li.icons {
    font-size: 2.4rem;
  }

  .mobile-bottom-navbar li.icons.cart-icon a {
    position: relative;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1rem);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  .nav-right-icons {
    display: none;
  }

  .navbar .nav-center ul {
    flex-direction: column;
  }

  .nav-open .navbar {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .hero__photo.initial,
  .hero__photo.hero-active {
    z-index: 1;
  }

  .cover-images .cover-image p {
    font-size: 1.2rem;
  }

  .cover-images .cover-image a img {
    width: 32rem;
    height: 30rem;
  }

  .product-grid .products .product-inner img {
    width: 24rem;
    height: 24rem;
  }

  .orders-history {
    grid-template-columns: repeat(3, 1fr);
  }

  .orders-history .order-history img {
    width: 24rem;
    height: 24rem;
  }

  footer .foot-links .categories .categories-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .login {
    width: 70%;
  }
  /* PRODUCT.CSS */
  .p-wrapper .p-container .product-top {
    flex-direction: column;
  }
  .product-bottom-right.active-content {
    flex-direction: column-reverse;
  }

  .review-form {
    width: 100%;
  }
  /* WISHLIST.CSS */
  .wishlist-products {
    /* width: 100%; */
    padding: 0;
  }

  .about-us {
    flex-direction: column;
  }

  .exisiting-address .addresses {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-info {
    width: 100%;
  }

  .checkout {
    flex-direction: column;
  }

  .hover-icons {
    opacity: 1;
    bottom: 10%;
    left: 80%;
    flex-direction: column;
  }

  .product-inner::before {
    width: 0%;
    height: 0%;
  }

  .product-inner:hover::before {
    display: none;
    opacity: 0;
  }
  .product-inner:hover .hover-icons {
    bottom: 10%;
  }
}

/**************************/
/* BELOW 720px (Smaller tablets) */
/**************************/

@media (max-width: 45em) {
  .container {
    width: 75%;
  }
  .cover-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-images .cover-image p {
    font-size: 1rem;
  }

  .cover-images .cover-image a img {
    width: 28rem;
    height: 26rem;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.4rem;
  }

  .product-grid .products .product-inner img {
    width: 20rem;
    height: 20rem;
  }

  .orders-history {
    grid-template-columns: repeat(2, 1fr);
  }

  .orders-history .order-history img {
    width: 20rem;
    height: 20rem;
  }

  .add-address form {
    grid-template-columns: repeat(2, 1fr);
  }

  .shipping-info form {
    grid-template-columns: repeat(2, 1fr);
  }

  footer .foot-links .categories .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .service {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    justify-items: start;
  }

  .table-container {
    overflow-x: auto;
  }

  .cart-table {
    width: 100%;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 34em) {
  .container {
    width: 90%;
  }

  .hero__button--next,
  .hero__button--prev {
    font-size: 1.6rem;
    padding: 0.8rem 1.6rem;
  }

  .cover-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-images .cover-image p {
    top: 80%;
  }

  .cover-images .cover-image a img {
    width: 24rem;
    height: 22rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.4rem;
  }

  .product-grid .products .product-inner img {
    width: 20rem;
    height: 20rem;
  }

  .orders-history .order-history img {
    width: 20rem;
    height: 20rem;
  }

  .exisiting-address .addresses {
    grid-template-columns: repeat(1, 1fr);
  }

  .add-address.active {
    min-height: 162rem;
  }

  .add-address form {
    grid-template-columns: repeat(1, 1fr);
  }

  .shipping-info form {
    grid-template-columns: repeat(1, 1fr);
  }

  footer .foot-links {
    row-gap: 2.8rem;
  }

  footer .foot-links .categories {
    grid-column: span 3;
  }
  footer .foot-links .categories .categories-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/**************************/
/* BELOW 420px (Phones) */
/**************************/

@media (max-width: 26em) {
  html {
    font-size: 43.75%;
  }
  .container {
    width: 90%;
  }

  .cover-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* column-gap: 2.4rem; */
  }

  .product-grid .products {
    grid-template-rows: 3fr 1fr;
    align-items: center;
  }
}

/**************************/
/* BELOW 400px (Phones) */
/**************************/

@media (max-width: 20em) {
  html {
    font-size: 37.5%;
  }
  .cover-images .cover-image a img {
    width: 22rem;
    height: 20rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* PRODUCT.CSS */
  .p-wrapper .p-container .left-product-img .left-img {
    width: 30rem;
    height: 30rem;
  }
}
