.cart-sidebar-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

/* Cart Sidebar */
.cart-sidebar {
    position: absolute;
    top: 0;
    right: -550px;
    width: 100%;
    max-width: 550px;
    height: 100%;
    background: var(--color-bg);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px var(--box-shadow-color);
    pointer-events: auto;
}

/* Overlay */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-pri);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none;
}

/* Active States */
.cart-sidebar-container.active .cart-sidebar {
    right: 0;
}

.cart-sidebar-container.active .cart-sidebar-overlay {
    opacity: 0.8;
    visibility: visible;
    pointer-events: auto;
}

/* Body Scroll Lock */
body.cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.cart-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center; 
    border-bottom: 3px solid;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    color: var(--color-font);
}

.close-cart:hover {
    color: var(--color-font-active);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: var(--border);
}

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

.cart .product-title a:hover {
    color: var(--zu-color-primary);
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: var(--border);
}

.cart .cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart .cart-item .cart-title a {
    font-size: 14px;
    color: var(--color-overlay);
    font-weight: 400;
    float: left;
    width: 100%;
}

.cart .cart-item .cart-qty {
    margin-top: 5px;
    float: left;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart .cart-item .cart-price,
.cart .cart-item .price-off {
    text-align: right;
}

.cart .cart-item .cart-price a {
    color: var(--color-font) !important;
}

.cart .cart-item .cart-price a:hover {
    color: var(--color-font-active) !important;
}

.cart .cart-item .cart-image {
    float: left;
    text-align: center;
}

.cart .cart-item .cart-price {
    float: right;
    width: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart .cart-item .cart-title {
    width: calc(100% - 133px);
    float: left;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.cart .qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background-color: var(--color-transparent);
    color: var(--color-pri);
    float: left;
    padding: 0;
}

.cart .qty-input-container{
    border: 1px solid;
    width: fit-content;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.cart .qty-input {
    border: 0px;
    width: 24px;
    height: 24px;
    float: left;
    color: var(--color-pri);
    background-color: transparent !important;
    padding: 5px;
    margin-left: 8px;
    margin-right: 8px;
    text-align: center;
}

.cart .cart-item .price {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart .cart-item .price-off {
    height: 20px;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: end;
}

.cart .price-regular {
    font-size: 12px;
    color: var(--color-font);
    text-decoration: line-through;
}

.cart .cart-item .cart-value {
    font-size: 14px;
    color: var(--color-font-active);
    font-weight: 700;
}

.cart .percentage-discount {
    text-align: center;
    background-color: var(--color-sec);
    font-size: 12px;
    color: var(--color-white);
    width: 44px;
    height: 22px;
    padding-top: 2px;
    padding-bottom: 4px;
    padding-left: 7px;
    padding-right: 7px;
    border-radius: 9px;
}

.cart .cart-price-item {
    font-size: 10px;
    color: var(--color-font);
    margin-right: 10px;
}

.cart .cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: var(--color-font-active);
    margin-bottom: 8px;
    font-weight: 700;
}



/* Responsive adjustments */
@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }

    .cart-item {
        flex-direction: row;
    }

    .product-image {
        width: 100%;
        margin-bottom: 10px;
    }

    .product-details {
        padding-right: 0;
    }
    .cart .cart-items img {
        height: 60px !important;
        width: 60px !important;
    }
}

.cart .cart-stock-status {
    font-size: 11px;
    width: 100px;
    float: left;
    text-align: center;
}

.cart .cart-stock-status.green {
    color: #fff;
    background-color: green;
    padding: 3px;
    padding-right: 7px;
    padding-left: 7px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.cart .cart-stock-status.yellow {
    background-color: transparent;
    padding: 3px;
    padding-right: 7px;
    padding-left: 7px;
    border: 1px solid var(--color-font);
    border-radius: 5px;
}

.cart .cart-stock-status.red {
    background-color: red;
    padding: 3px;
    padding-right: 7px;
    padding-left: 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--color-white);
}

.cart .cart-items.checkout .cart-qty button {
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.cart .cart-items.checkout .cart-qty button,*/
/*.cart .cart-items.checkout .cart-trash,*/
.cart .cart-items.checkout .price-off,
.cart .cart-items.checkout .cart-price-item {
    display: none;
}

.cart .cart-items.checkout .cart-trash {
    font-size: 10px;
}

.cart .cart-items.checkout .cart-title a {
    font-size: 12px;
    height: 30px;
}

.cart .cart-items.checkout .cart-value {
    margin-top: 2px;
    font-size: 12px;
}

.cart-price .cart-trash {
    margin-right: 10px;
}
.cart .cart-items.checkout .cart-image {
    width: 40px;
}

.cart .cart-items.checkout .cart-price {
    width: 40px;
}

.cart .cart-items.checkout .cart-title {
    width: calc(100% - 80px);
}

.cart .cart-items.checkout {
    padding-right: 10px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-bg-active) transparent;
    max-height: 200px;
    margin-bottom: 10px;
    background-color: var(--color-beige-medium);
    border: 1px solid var(--color-beige-medium);
    border-radius: 8px;
}

.cart .cart-items img {
    height: 90px;
    width: 90px;
    object-fit: contain;
}

.cart .cart-items.checkout img {
    height: 30px;
    max-width: 30px;
}

.payment .checkout-sidebar-price-table .cart-trash,
.payment .checkout-sidebar-price-table .cart-qty,
.payment .checkout-sidebar-price-table .cart-stock-status {
    display: none;
}

.payment .checkout-sidebar-price-table .cart-title,
.payment .checkout-sidebar-price-table .cart-price{
    padding-top: 5px;
}