<?php
// clear-cart.php
require_once __DIR__ . '/includes/config.php';
require_once __DIR__ . '/includes/functions.php';

header('Content-Type: application/json');

$_SESSION['cart'] = [];

echo json_encode([
    'success' => true,
    'message' => 'Cart cleared successfully'
]);
?>