.slide-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.slide-cart-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.slide-cart {
    color: var(--black);
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.15);
}

.slide-cart.is-active {
    transform: translateX(0);
}

.slide-cart__header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-cart__header h2 {
    font-weight: 500;
}

.slide-cart__close {
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.slide-cart__content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.sc-cart__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-item {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
}

.sc-cart__item:last-child .sc-item {
    border-bottom: none;
    margin-bottom: 0;
}

.sc-item__media {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.sc-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-item__body {
    flex: 1;
    min-width: 0;
}

.sc-item__title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.sc-item__title a {
    color: #000;
    text-decoration: none;
}

.sc-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 60%;
}

.sc-qty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f2f2f2;
    border-radius: 10px;
    padding: 6px 12px;
}

.sc-qty__btn {
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

.sc-qty__btn:last-child {
    text-align: end;
}

.sc-qty__input {
    width: 28px;
    border: none;
    background: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.sc-qty__input:focus {
    outline: none;
}

.sc-item__price {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.sc-item__multiplier {
    margin-right: 4px;
    color: grey;
}

.sc-item__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #cfcfcf;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-item__remove:hover {
    background: black;
}

.sc-cart__empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.slide-cart__footer {
    border-top: 1px solid #e6e6e6;
    padding: 20px;
}

.sc-totals__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sc-totals__value {
    font-weight: 600;
}

.slide-cart__checkout {
    display: block;
    margin-top: 16px;
    padding: 16px;
    background: var(--green);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

.slide-cart__checkout:hover {
    background: var(--green-hover);
}

.slide-cart__loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 50;
}

.slide-cart.is-loading .slide-cart__loader {
    opacity: 1;
    pointer-events: all;
}

.slide-cart__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

    .slide-cart,
    .slide-cart-overlay {
        display: none !important;
    }
}