.main {
    max-width: 1100px;
    padding-left: 30px;
    padding-right: 30px;
  
    margin-top: 140px;
    margin-bottom: 100px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-title {
    font-weight: 600;
    font-size: 22px;
    font-family: 'Quicksand', Arial;
    margin-bottom: 50px;
    color: #494949;
  }
  
  .checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    column-gap: 12px;
  
    align-items: start;
  }
  
  @media (max-width: 1000px) {
    .main {
      max-width: 800px;
    }
  
    .checkout-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .cart-item-container,
  .payment-summary {
    border: 1px solid rgb(218, 218, 218);
    box-shadow: 0 1px 5px 0 rgba(170, 170, 170, 0.623);
    border-radius: 10px;
    padding: 16px;
    background-color: rgb(250, 250, 250);
    align-content: center;
  }
  
  .cart-item-container {
    margin-bottom: 12px;
    height: 180px;
    border-left: 3px solid rgb(23, 199, 146);
  }
  
  .payment-summary {
    padding-bottom: 12px;
    height: 180px;
    width: 240px;
    font-family: 'Quicksand', Arial;
    color: #494949;
  }

    @media (max-width: 1000px) {
    .payment-summary {
      grid-row: 1;
      width: inherit;
      margin-bottom: 12px;
    }
    .order-summary {
      width: 100%;
  }
  
  }

  .payment-summary-empty {
    border: 1px solid rgb(218, 218, 218);
    box-shadow: 0 1px 5px 0 rgba(170, 170, 170, 0.623);
    border-radius: 10px;
    padding: 16px;
    background-color: rgb(250, 250, 250);
    align-content: space-evenly;

    padding-bottom: 12px;
    height: 180px;
    width: 300px;
    font-family: 'Quicksand', Arial;
    color: #494949;
}
  @media (max-width: 400px) {
    .payment-summary-empty {
      height: 160px;
      width: 220px;
    }
}

  
  .cart-item-details-grid {
    display: grid;
    grid-template-columns: 120px 1fr 100px;
    column-gap: 25px;
    height: 160px;
    align-items: center;
  }
  
  @media (max-width: 1000px) {
    .cart-item-details-grid {
      grid-template-columns: 100px 1fr;
      row-gap: 30px;
    }
  }

@media (max-width: 390px) {
    .cart-item-details-grid {
        grid-template-columns: 80px 1fr;
        row-gap: 30px;
    }
}
  
  .cart-item-details {
    padding: 10px;
  }

  .product-image {
    height: 120px;
    width: 120px;
    border-radius: 5px;
  }

  .product-image img {
    object-fit: cover;
}
  
  .product-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 12px;
    line-height: 1.4;
    color: #494949;
  }
  
  .product-price {
    color: #494949;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .product-quantity span {
    font-size: 13px;
    color: #757575;
  }
  
  .payment-summary-title {
    font-weight: 600;
    font-size: 16px;
  }
  
  .payment-summary-row {
    display: grid;
    grid-template-columns: 1fr auto;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgb(231, 231, 231); 
  }

  .payment-summary-row div{
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  .payment-summary-money {
    text-align: right;
    font-weight: 500;
  }
  
  .subtotal-row .payment-summary-money {
    border-top: 1px solid rgb(99, 99, 99);
  }
  
  .total-row {
    color:  rgb(109, 153, 138);
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid rgb(109, 153, 138);
    padding-top: 5px;
  }
  
  .update-quantity {
    width: 25px;
    height: 22px;
    border: 1px solid rgba(177, 177, 177, 0.514);
    border-radius: 6px;
    background-color: transparent;
    color: #494949;
    font-size: 13px;
    text-align: center;
  }

  .place-order {
    width: 100%;
    border-radius: 8px;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  
  .delivery-option {
    padding: 12px;
    margin-bottom: 22px;
    width: 100%;
    font-family: "Quicksand", Arial;
  }

  .product-link {
    text-decoration: none;
    color: white;
}

  .material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
  }

  
  .remove-from-cart {
    display: block;
    position: relative;
    background-image: url("../images/icons/delete.svg") !important;
    background-color: transparent;
    width: 1.5rem;
    border: 0;
    aspect-ratio: 1;
    bottom: 1.5rem;
    left: 135%;
    background-size: contain; /* Ensures the image fits */
    background-repeat: no-repeat;
    background-position: center;
  }

.remove-from-cart::before {
    content: 'Remove';
    position: absolute;
    font-size: 12px;
    background-color: #494949;
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 8px;
    transform: translateY(-55px) translateX(-30px);
    opacity: 0;
  }

  .remove-from-cart::after {
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #494949;
    transform: translateY(-30px) translateX(-10px);
    opacity: 0;
  }

.remove-from-cart:hover::before {
    transform: translateY(-55px) translateX(-30px) rotate(0);
    opacity: 1;
}

.remove-from-cart:hover::after {
    transform: translateY(-30px) translateX(-10px) rotate(0);
    opacity: 1;
}


  @media (max-width: 1600px) {
    .remove-from-cart {
      width: 1.2rem;
      bottom: 1.5rem;
      left: 120%;

    }
  }    

  
  @media (max-width: 1000px) {
    .remove-from-cart {
      width: 1.2rem;
      bottom: 1.5rem;
      left: 80%;

    }
  }    

@media (max-width: 700px) {
  .remove-from-cart {
    width: 1rem;
    bottom: 1.5rem;
    left: 80%;
    }
  }

@media (max-width: 500px) {

    .remove-from-cart {
        width: 1rem;
        bottom: 1.5rem;
        left: 80%;
    }
    .product-image {
        height: 100px;
        width: 100px;
    }
    .product-name {
        font-size: 14px;
    }

  .main {
      margin-top: 80px;
  }

}

@media (max-width: 400px) {
  .cart-item-details-grid {
    grid-template-columns: 80px 1fr;
    column-gap: 5px;
  }
  
    .remove-from-cart {
        width: 1rem;
        bottom: 1.5rem;
        left: 80%;
    }
    .product-image {
        height: 80px;
        width: 80px;
    }
    .product-name {
        font-size: 12px;
    }
    .product-price {
        font-weight: 500;
        font-size: 12px;
        margin-bottom: 15px;
    }

}

@media (max-width: 350px) {
  .cart-item-details-grid {
    grid-template-columns: 60px 1fr;
    column-gap: 5px;
  }
  
    .remove-from-cart {
        width: 1rem;
        bottom: 1.5rem;
        left: 80%;
    }
    .product-image {
        height: 60px;
        width: 60px;
    }
    .product-name {
        font-size: 12px;
    }
    .product-price {
        font-weight: 500;
        font-size: 12px;
        margin-bottom: 15px;
    }

}



