body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #F6F6F6;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cart {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 30px;
    box-sizing: border-box;
}

.cart-items-container {
    width: 100%;
    overflow: visible;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid #DABE98;
    border-radius: 14px;
    background-color: #F6F6F6;
    margin-bottom: 16px;
}

.flower-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    box-shadow: 2px 2px 2px 0px rgb(211, 203, 211);
    border-radius: 10px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.item-name {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    color: #222;
    text-transform: uppercase;
}

.item-price {
    margin: 0;
    font-size: 14px;
    color: #88847c;
}

.item-price-tot {
    margin: 0;
    font-size: 18px;
    color: #8C7D5A;
    font-weight: 600;
}

.actionOptions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.delete-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #000;
    margin: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #000000;
    border-radius: 15px;
    padding: 2px 4px;
    background: #fff;
}

.quantity-btn {
    border-radius: 15px;
    border: none;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    background-color: transparent;
}

.quantity {
    margin: 0 10px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    font-size: 22px;
    padding: 20px 0;
    margin-top: 10px;
    color: #8C7D5A;
    border-top: 1px solid #DABE98;
}

.subtotal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    color: #000;
    padding-left: 0;
    flex: 1;
}

.subtotal-price {
    color: #8C7D5A;
    font-size: 24px;
}

.checkout-button {
    background-color: #083628;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    width: min(420px, calc(100% - 40px));
    margin: 10px auto 25px;
    display: block;
}

.header {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 12px 20px;
    box-sizing: border-box;
}

.title {
    text-align: center;
    font-size: 24px;
    margin: 10px 0 20px;
    font-weight: 500;
}

.toast-message {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #083628;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-message.error {
    background: #A11B36;
}

.toast-message.success {
    background: #083628;
}

@media (max-width: 820px) {
    .cart-item {
        grid-template-columns: 90px 1fr;
        gap: 14px;
    }

    .actionOptions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 6px;
    }

    .flower-image {
        width: 90px;
        height: 90px;
    }

    .summary {
        flex-direction: column;
        font-size: 18px;
    }

    .subtotal-price {
        font-size: 22px;
    }
}