/* General Styles */
.custom-cart-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.custom-cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.custom-cart-item:last-child {
    border-bottom: none;
}

.custom-cart-image {
    flex: 0 0 15%;
    max-width: 15%;
    margin-right: 20px;
}

.custom-cart-image img {
    width: 100%;
    border-radius: 5px;
}

.custom-cart-details {
    flex: 1 1 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.custom-cart-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.custom-cart-details p {
    margin: 5px 0;
}

.custom-cart-sizes {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.custom-size-button {
  padding: 10px 15px;
  border: 2px solid black;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.custom-size-button.selected {
  background-color: black;
  color: white;
}

.custom-size-button.unavailable {
  background-color: #ddd;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
}

.custom-wishlist-button {
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.custom-wishlist-button i.fa-heart {
  color: red;
}

.custom-wishlist-button i.fa-heart-o {
  color: gray;
}

.custom-cart-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.custom-quantity-input {
    text-align: center;
    border: none;
    padding: 5px;
    width: 50px;
    margin: 0 10px;
}

.custom-quantity-button {
    background-color: white;
    color: black;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0;
    transition: background-color 0.3s, color 0.3s;
}

.custom-quantity-button:hover {
    background-color: #333;
    color: white;
}

.custom-cart-wishlist {
    text-align: center;
    margin-top: 10px;
}

.custom-wishlist-button {
    background: none;
    border: 1px solid black;
    color: black;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.custom-wishlist-button:hover {
    background-color: black;
    color: white;
}

.custom-wishlist-button i {
    margin-right: 5px;
    font-size: 18px;
}

.custom-delete-button {
    background: none;
    border: 1px solid black;
    color: black;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
}

.custom-delete-button:hover {
    background-color: black;
    color: white;
}

.custom-cart-total {
    text-align: right;
    padding: 20px 0;
    font-size: 18px;
    font-weight: bold;
    border-top: 1px solid #ddd;
}

.custom-cart-total p {
    margin-bottom: 5px;
}

.custom-checkout-button {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    width: 100%;
    margin-top: 20px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .custom-cart-item {
        flex-wrap: wrap;
    }

    .custom-cart-image,
    .custom-cart-details,
    .custom-cart-quantity,
    .custom-cart-wishlist {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .custom-cart-image img {
        max-width: 100px;
        margin-bottom: 10px;
    }

    .custom-cart-details h3 {
        font-size: 16px;
    }

    .custom-cart-quantity {
        justify-content: flex-start;
    }

    .custom-cart-total,
    .custom-checkout-button {
        text-align: center;
    }
}

.discount-section {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Apply Discount Button Styling */
#apply-discount-button {
    background-color: black;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

#apply-discount-button:hover {
    background-color: darkgrey;
}

.custom-size-button {
    margin: 0 5px;
    padding: 10px 20px;
    margin-top: 5px;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.custom-size-button.selected {
    background-color: black;
    color: white;
}

.custom-size-button.unavailable {
    background-color: #ddd;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.delete-button {
  color: red;
}

.delete-button:hover {
    color: darkred;
    transition: 0.3s;
}
