<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Order Cancelled</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; padding: 0; background: #f5f5f5; color: #333; }
.wrapper { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; padding: 32px 40px; text-align: center; }
.header h1 { margin: 0; font-size: 26px; font-weight: 700; }
.body { padding: 32px 40px; }
.reason-box { background: #fef2f2; border-left: 4px solid #dc2626; padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px; color: #991b1b; }
.btn { display: inline-block; background: #111; color: #fff; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.footer { background: #f9fafb; padding: 20px 40px; text-align: center; font-size: 12px; color: #9ca3af; border-top: 1px solid #f0f0f0; }
</style>
</head>
<body>
<div class="wrapper">
<div class="header">
<div style="font-size:36px;margin-bottom:8px;">❌</div>
<h1>Order Cancelled</h1>
<p>Order #{{ $order->order_number }}</p>
</div>
<div class="body">
<p>Hi {{ $order->user?->name ?? $order->guest_email ?? 'Valued Customer' }},</p>
<p>We're sorry to inform you that your order has been cancelled.</p>
@if($order->cancellation_reason)
<div class="reason-box">
<strong>Reason:</strong> {{ $order->cancellation_reason }}
</div>
@endif
<p style="font-size:14px;color:#6b7280;">
If payment was collected, a refund will be processed within 3–5 business days.
</p>
<div style="text-align:center;margin:24px 0;">
<a href="{{ route('catalog.index') }}" class="btn">Continue Shopping</a>
</div>
<p style="font-size:13px;color:#888;">
If you believe this is an error, please contact our support team.
</p>
</div>
<div class="footer">
<p>© {{ date('Y') }} {{ config('app.name') }}. All rights reserved.</p>
</div>
</div>
</body>
</html>