/* ── Cart Component Styles ─────────────────────────────────── */

.cart-drawer {
    width: 500px;
    max-width: 100vw;
    height: 100%;
    background-color: #fff;
    position: fixed;
    right: 0;
    top: 0;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

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

.cart-drawer-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.product-info-wrapper {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cart-drawer-body {
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    overflow-y: auto;
    margin-top: 2rem;
    padding-bottom: 1rem;
    gap: 0.75rem;
}

.seller-name {
    text-decoration: underline;
    color: #000;
    font-weight: 600;
}

.seller-profile-picture {
    border-radius: 50%;
}

.cart-drawer-body .cart-item {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
}

.cart-item-remove {
    border: none;
    background: none;
    padding: 4px;
    cursor: pointer;
    line-height: 1;
}

.cart-item-remove i {
    background: none;
}

.cart-product-info .cart-item-price {
    font-weight: 600;
    background-color: transparent;
    color: #000;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-product-info p {
    font-size: var(--font-base);
}

.cart-drawer-footer {
    background-color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    padding:1px 1rem;
    gap: 0.75rem;

}

.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-subtotal span {
    font-weight: 600;
}

.checkout-btn {
    text-align: center;
    text-decoration: none;
    background-color: #D13023;
    padding: 1rem;
    color: white;
    font-weight: 600;
    display: block;
    cursor: pointer;
    border: none;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease;

}

.checkout-btn:hover {
    background-color: #b82a1e;
}

/* modal close button */

.modal-close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.modal-close:hover i {
    color: #7a7a7a;
    transform: scale(1.2);
}

.modal-close i {
    font-size: var(--font-xl);
    color:#000;
    transition: 0.3s ease;
    display: block;
}