.Cart_cart__mAUmL {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Main Item Layout (Flexbox Column) --- */
/* The entire item is a flex column, stacking the top and bottom rows */
.Cart_item__88yfc {
    border-radius: 8px;
    box-shadow: var(--shadow-s);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* This creates the space between the top and bottom rows */
}

/* --- Top Row (Flex Row) --- */
.Cart_topRow__jstn7 {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 1rem;
}

.Cart_image__fxqdl {
    /* Original Style Preserved */
    width: 64px;
    height: 64px;
    background-color: #fff;
    border-radius: 8px;
    flex-shrink: 0; /* Prevents the image from shrinking */
}
.Cart_image__fxqdl img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.Cart_name__WKmi_ {
    /* Original Style Preserved */
    font-weight: bold;
    /* Flexbox Magic */
    flex-grow: 1; /* This is the key: it makes the name take all available space */
    min-width: 0; /* Allows the element to shrink and truncate its content */
    /* Multi-line Truncation */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

.Cart_remove__CdAui {
    /* Original Style Preserved */
    color: var(--primary-text-color);
    cursor: pointer;
    border: none;
    background-color: transparent;
    flex-shrink: 0; /* Prevents the button from shrinking */
}
.Cart_remove__CdAui :hover {
    color: var(--clr-warn);
}

/* --- Bottom Row (Flex Row) --- */
.Cart_bottomRow__5W3hq {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This pushes children to opposite ends */
    flex-wrap: wrap; /* Allows wrapping only as a last resort on very small screens */
    gap: 1rem;
}

.Cart_priceAndUom__abfLW {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Original Styles Preserved */
.Cart_price__LfaNC {
    color: var(--primary-text-color);
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.75rem;
    background-color: var(--background-alt);
}
.Cart_uom__NWB5e {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--background-alt);
    border-radius: 8px;
    font-size: 0.75rem;
}

/* --- Total Section --- */
.Cart_total__AdDyl {
    /* Original Style Preserved */
    font-weight: 400;
    width: -moz-fit-content;
    width: fit-content;
    font-size: 1rem;
    padding: 1rem;
    gap: 0.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--clr-acc);
}
@media (max-width: 480px) {
    .Cart_image__fxqdl {
        width: 48px;
        height: 48px;
    }
    .Cart_name__WKmi_ {
        font-size: 0.875rem;
    }
}

