.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(88, 74, 64, 0.4); /* Коричневое затемнение */
    display: none;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.side-cart {
    position: fixed;
    right: -450px;
    top: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.side-cart.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 20px;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    color: #584a40;
}

.close-btn {
    background: none;
    border: none;
    color: #584a40;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #d98282;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.item-price {
    font-weight: bold;
    color: #584a40;
    margin-top: 5px;
    display: block;
}

.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #584a40;
}

.checkout-btn {
    width: 100%;
    background: #d98282;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 16px;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #c76e6e;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    background: #fff;
    width: fit-content;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.qty-btn {
    background: none;
    border: none;
    color: #584a40;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

.qty-btn:hover {
    background-color: #f9f9f9;
}

.qty-num {
    color: #584a40;
    font-size: 14px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 5px 0;
}

.item-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    color: #999;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: color 0.2s;
}

.item-remove-btn:hover {
    color: #d98282;
}

.empty-msg {
    text-align: center;
    color: #888;
    margin-top: 40px;
}

@media (max-width: 480px) {
    .side-cart {
        width: 100%;
        right: -100%;
    }
}