.test-cart-modal {
    position: fixed;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    overflow-y: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background-color: #E4E4E4;
    background-color: rgba(0, 0, 0, 0.7);

    display: flex;
    justify-content: center; /* центрируем по горизонтали */
    align-items: flex-start; /* прижимаем к верху */
    display: none;
}

.test-cart {
    border: 1px solid gray;
    min-width: 600px;
    max-width: 600px;
    background: white;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border-radius: 8px;
    min-height: 100%;
}

.test-cart-header {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.36px;
    line-height: 21px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.test-cart-close {
    cursor: pointer;
}

.test-cart-products {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.test-cart-product {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    display: none;
    padding-bottom: 6px;
    border-bottom: 1px solid #9A9A9A;
}

.test-cart-product:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.test-cart-product-image {
    display: flex;
}

.test-cart-product-image img {
    width: 64px;
}

.test-cart-product-details {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
}

.test-cart-product-name {
    font-size: 14px;
    font-weight: bold;
}


.test-cart-product-details {
    font-size: 12px;
    font-weight: normal;
    width: 40%;
    flex-shrink: 0;
}

.test-cart-product-controls {
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: flex-start;
}

.test-cart-product-remove {
    color: #0071E3;
    font-size: 13px;
    align-self: flex-start;
    padding: 0 12px;
}

.test-cart-product-remove:hover {
    color: #0054A8;
    cursor: pointer;
    text-decoration: underline;
}

.test-cart-product-price {
    margin-left: auto;
    margin-right: 16px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.test-cart-summary {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.36px;
    line-height: normal;
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    margin-top: 16px;
    border-top: 1px solid #9A9A9A;
    padding-top: 16px;
}

.test-cart-total-value {
    margin-left: 12px;
}

.test-cart-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 16px;
    border-top: 1px solid #9A9A9A;
    padding-top: 16px;
    gap: 20px;
    position: sticky;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding-bottom: 16px;
}

.test-cart-continue-shopping {
    background: #D0D0D0;
    border-radius: 12px;
    width: 100%;
    padding: 12px 8px;
    text-align: center;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.test-cart-continue-shopping:hover {
    background: #dadada;
    text-decoration: underline;
}

.test-cart-checkout {
    background: #0071E3;
    border-radius: 12px;
    width: 100%;
    padding: 12px 8px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.test-cart-checkout:hover {
    background: #0054A8;
    text-decoration: underline;
}

.test-cart-icon {
    position: fixed;
    right: 32px;
    top: 32px;
    z-index: 9999;
    background: #fff;
    border-radius: 8px;
    display: none;
}

.test-cart-icon-count {
    position: absolute;
    bottom: 8px;
    right: -8px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    text-align: center;
}

@media screen and (max-width: 800px) {
    .test-cart {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}