/* Styles for Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #0F0F0F; /* Match your theme */
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

/* State when the cart is open */
body.cart-open {
    overflow: hidden; /* Prevent scrolling the page behind the cart */
}

body.cart-open .cart-overlay {
    opacity: 1;
    visibility: visible;
}

body.cart-open .cart-drawer {
    transform: translateX(0);
}

/* Style for the close button */
#close-cart-btn {
    font-size: 2rem;
    line-height: 1;
}

/* Стили для кнопок управления товаром в корзине */
.cart-action-btn {
    background: #334155; /* slate-700 */
    color: white;
    border-radius: 9999px; /* fully rounded */
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s;
}

.cart-action-btn:hover {
    background: #475569; /* slate-600 */
}

/* Отдельный стиль для кнопки "Удалить", чтобы она осталась текстом */
.cart-action-btn[data-action="remove"] {
    background: none;
    width: auto;
    height: auto;
}