.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: 'Montserrat', Arial;
    margin-bottom: 50px;
  }
  
  .checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    column-gap: 12px;
  
    align-items: start;
  }
  
  @media (max-width: 1000px) {
    .main {
      max-width: 500px;
    }
  
    .checkout-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .cart-item-container,
  .payment-summary {
    border: 1px solid rgb(43, 43, 43);
    border-radius: 4px;
    padding: 18px;
    background-color: rgb(0, 0, 0);
    border-top: 2px solid #BD0000;
    align-content: center;
  }
  
  .cart-item-container {
    margin-bottom: 12px;
    height: 160px;
  }
  
  .payment-summary {
    padding-bottom: 18px;
    height: 160px;
    font-family: 'Montserrat', Arial;
  }
  
  @media (max-width: 1000px) {
    .payment-summary {
      grid-row: 1;
      margin-bottom: 12px;
    }
  }
  
  .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: 50%;
  }

  .product-image img {
    object-fit: cover;
}
  
  .product-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 12px;
    line-height: 1.4;
  }
  
  .product-price {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .product-quantity .link-primary {
    margin-left: 3px;
  }
  
  .product-quantity span {
    font-size: 14px;
  }
  
  .payment-summary-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .payment-summary-row {
    display: grid;
    grid-template-columns: 1fr auto;
  
    font-size: 15px;
    margin-top: 15px;
  }
  
  .payment-summary-money {
    text-align: right;
  }
  
  .subtotal-row .payment-summary-money {
    border-top: 1px solid rgb(99, 99, 99);
  }
  
  .total-row {
    color:  #d6ad60;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    border-top: 1px solid rgb(99, 99, 99);
    padding-top: 18px;
  }
  
  .update-quantity {
    width: 30px;
    height: 20px;
    border: 1px solid rgba(97, 97, 97, 0.514);
    border-radius: 6px;
    background-color: rgba(44, 44, 44, 0.63);
    color: white;
    font-size: 13px;
    text-align: center;
  }
  
  .remove-from-cart {
    display: block;
    position: relative;
    background-image: url("../images/icons/x.svg") !important;
    background-color: transparent;
    width: 1.5rem;
    border: 0;
    aspect-ratio: 1;
    bottom: 5.8rem;
    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: 13px;
    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: 1000px) {
    .remove-from-cart {
      width: 1rem;
      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;
    }
}

@media (max-width: 390px) {
    .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;
    }
}

  .place-order {
    width: 100%;
    border-radius: 5px;
    padding: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .delivery-option {
    padding: 12px;
    margin-bottom: 22px;
    width: 100%;
    font-family: "Quicksand", Arial;
  }

  .product-link {
    text-decoration: none;
    color: white;
}

