.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;

    font-size: 17px;
}

.cart-drawer > * {
    padding: 22px;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.cart-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid darkgray 1px;
}

.cart-close-btn {
    border: none;
    background: none;
    cursor: pointer;
}

.cart-close-btn i{
    font-size: 22px;
    color: black;
}

.cart-drawer-header h2 {
    font-size: 17px;
}

.cart-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid darkgray;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item img {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 4px;

    grid-column: 1;
    grid-row: 1 / span 2;
}

.cart-item-title {
    color: #af922a;

    grid-column: 2;
    grid-row: 1;
}

.cart-item-meta,
.cart-item-qty {
    color: #666;
}

.cart-item-meta {
    grid-column: 2;
    grid-row: 2;
}

.cart-item-remove {
    background: none;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cart-item-remove i {
    font-size: 17px;
}

.cart-item form {
    text-align: end;
}

.cart-total-row, .cart-delivery-row {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 22px;

    border-bottom: solid darkgray 1px;
    border-top: solid darkgray 1px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.cart-checkout-btn {
    align-self: center;
    text-align: center;
    padding: 20px 0;
    background: black;
    color: white;
    text-decoration: none;

    margin-bottom: 23px;
    width: 90%;
}

.cart-drawer > p {
    margin-top: 30px;
}