* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: #f5f8f6;
    color: #213128;
    font-family: Arial, Helvetica, sans-serif;
}


.cart-header-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}


.cart-header-navigation a {
    color: #006633;
    font-weight: 700;
}


.cart-logout-button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #a32424;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


.cart-page {
    padding: 55px 0;
}


.cart-page-heading {
    margin-bottom: 28px;
}


.cart-page-heading p {
    margin: 0 0 7px;
    color: #006633;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}


.cart-page-heading h1 {
    margin: 0;
    color: #173b25;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}


.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 25px;
}


.cart-products-section,
.cart-summary {
    border: 1px solid #dce5df;
    border-radius: 15px;
    background: #ffffff;
}


.cart-supplier-heading {
    display: flex;
    justify-content: space-between;
    padding: 19px 22px;
    border-bottom: 1px solid #e0e7e2;
}


.cart-supplier-heading span {
    color: #67736b;
}


.cart-item {
    display: grid;
    padding: 20px;
    border-bottom: 1px solid #e0e7e2;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}


.cart-item-image {
    display: grid;
    width: 110px;
    height: 100px;
    overflow: hidden;
    place-items: center;
    border-radius: 10px;
    background: #edf3ef;
    font-size: 2.5rem;
}


.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.cart-item-information h2 {
    margin: 0 0 7px;
    color: #173b25;
    font-size: 1.1rem;
}


.cart-item-information p {
    color: #657269;
}


.quantity-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}


.quantity-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid #b9c8bd;
    border-radius: 7px;
    background: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
}


.cart-item-total {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 15px;
}


.cart-item-total strong {
    color: #006633;
    font-size: 1.15rem;
}


.cart-item-total button {
    border: 0;
    background: transparent;
    color: #a32626;
    font-weight: 700;
    cursor: pointer;
}


.cart-summary {
    position: sticky;
    top: 95px;
    padding: 25px;
}


.cart-summary h2 {
    margin-top: 0;
    color: #173b25;
}


.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e1e8e3;
}


.summary-total {
    font-size: 1.2rem;
}


.summary-total strong {
    color: #006633;
}


.delivery-choice {
    padding: 18px 0;
}


.delivery-choice h3 {
    margin-top: 0;
    font-size: 1rem;
}


.delivery-choice label {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    padding: 13px;
    border: 1px solid #dce5df;
    border-radius: 9px;
    cursor: pointer;
}


.delivery-choice input {
    accent-color: #006633;
}


.delivery-choice strong,
.delivery-choice small {
    display: block;
}


.delivery-choice small {
    margin-top: 4px;
    color: #68746c;
}


.checkout-button,
.clear-cart-button {
    width: 100%;
    min-height: 48px;
    margin-top: 15px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


.checkout-button {
    border: 0;
    background: #006633;
    color: #ffffff;
}


.checkout-button:disabled {
    background: #87958c;
    cursor: not-allowed;
}


.clear-cart-button {
    border: 1px solid #bdc9c0;
    background: #ffffff;
    color: #5a675f;
}


.cart-empty-message {
    padding: 55px 20px;
    text-align: center;
}


.cart-empty-message span {
    font-size: 4rem;
}


.cart-empty-message a {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 18px;
    border-radius: 8px;
    background: #006633;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}


.cart-message {
    display: none;
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 8px;
}


.cart-message.success {
    display: block;
    background: #e9f8ed;
    color: #155f2b;
}


.cart-message.error {
    display: block;
    background: #fff0f0;
    color: #a02020;
}


@media (max-width: 850px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }


    .cart-summary {
        position: static;
    }

}


@media (max-width: 600px) {

    .cart-item {
        grid-template-columns: 80px 1fr;
    }


    .cart-item-image {
        width: 80px;
        height: 80px;
    }


    .cart-item-total {
        grid-column: 1 / -1;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

}