<?php
// thank_you.php - Order confirmation
session_start();
include 'header.php';

if (!isset($_GET['order_id'])) {
    header("Location: index.php");
    exit();
}
$order_id = (int)$_GET['order_id'];
?>

<h2>Thank You!</h2>
<p>Your order ID is <?php echo $order_id; ?>. We will process it soon.</p>
<a href="index.php" class="btn btn-primary">Continue Shopping</a>

<?php include 'footer.php'; ?>