<?php
/**
 * Application Constants
 */

// Site Configuration
define('SITE_NAME', 'Cartzilla Shop');
define('SITE_URL', 'http://localhost');
define('SITE_EMAIL', 'noreply@cartzilla-shop.com');

// Paths
define('ROOT_PATH', dirname(__DIR__));
define('UPLOADS_PATH', ROOT_PATH . '/uploads');
define('UPLOADS_URL', SITE_URL . '/uploads');

// Session Configuration
define('SESSION_LIFETIME', 3600 * 24 * 30); // 30 days

// Cart Configuration
define('CART_ABANDONED_HOURS', 24); // Hours before cart is considered abandoned
define('MAX_ABANDONED_CART_EMAILS', 3); // Maximum emails to send for abandoned cart
define('FREE_SHIPPING_THRESHOLD', 200.00); // Free shipping threshold in RON
define('SHIPPING_COST', 15.00); // Standard shipping cost in RON

// Loyalty Points
define('LOYALTY_POINTS_PER_RON', 1); // 1 point per 1 RON spent

// File Upload
define('MAX_UPLOAD_SIZE', 5 * 1024 * 1024); // 5MB
define('ALLOWED_IMAGE_TYPES', ['image/jpeg', 'image/png', 'image/gif', 'image/webp']);

// Pagination
define('PRODUCTS_PER_PAGE', 12);
define('ORDERS_PER_PAGE', 20);

// Order Types
define('ORDER_TYPE_PHYSICAL', 'physical');
define('ORDER_TYPE_LEGAL', 'legal');
?>

