/*
Theme Name: Souq
Theme URI: https://elm3raj.com/souq
Author: Al Miraj Education
Author URI: https://elm3raj.com
Description: Premium Algerian WooCommerce COD theme. RTL-first, mobile-first, built for cash-on-delivery e-commerce in Algeria.
Version: 1.0.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
WC requires at least: 10.8
WC tested up to: 11.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: souq
Tags: e-commerce, woocommerce, rtl, arabic, algeria, cod, one-column, custom-colors, custom-logo, custom-menu, translation-ready

Souq is a registered theme identity. Do not redistribute under a different name.
*/

/* =====================================================================
   SOUQ DESIGN TOKENS
   Single source of truth for color, radius and shadow across the theme.
   Store owners can override the accent tokens from Souq → Theme Settings
   → Colors (Phase 5); those settings print an inline override of this
   block. Never hardcode hex values in template CSS — reference tokens.
   ===================================================================== */
:root{
	/* Brand: Deep Emerald + Warm Gold (Souq Emerald preset — default demo identity) */
	--souq-primary:#0E7A5F;
	--souq-primary-dark:#0B5F4C;
	--souq-primary-deep:#084C3E;
	--souq-primary-light:#EAF7F2;
	--souq-primary-soft:#F2FAF7;

	--souq-accent:#D6A84B;
	--souq-accent-dark:#B88932;
	--souq-accent-light:#FAF3E2;

	--souq-text:#172321;
	--souq-text-secondary:#66746F;
	--souq-text-muted:#8A9692;

	--souq-background:#F7F8F5;
	--souq-surface:#FFFFFF;
	--souq-surface-secondary:#F2F5F3;

	--souq-border:#E4E9E6;
	--souq-border-strong:#D4DDD8;

	--souq-success:#16855F;
	--souq-success-light:#E8F7F1;

	--souq-warning:#C88A22;
	--souq-warning-light:#FCF5E7;

	--souq-danger:#D94A4A;
	--souq-danger-light:#FDECEC;

	--souq-footer:#10221D;
	--souq-footer-secondary:#183029;
	--souq-footer-text:#B9C7C1;
	--souq-footer-link-hover:#7BC9AA;

	/* Radius */
	--souq-radius-sm:8px;
	--souq-radius-md:12px;
	--souq-radius-lg:16px;
	--souq-radius-xl:22px;

	/* Shadows (neutral, never colored) */
	--souq-shadow-sm:0 2px 8px rgba(16,34,29,.05);
	--souq-shadow-md:0 8px 24px rgba(16,34,29,.08);
	--souq-shadow-lg:0 18px 50px rgba(16,34,29,.12);

	/* Typography */
	--souq-font-arabic:"Cairo","Tajawal","IBM Plex Sans Arabic",system-ui,sans-serif;
	--souq-font-latin:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

	/* Motion */
	--souq-motion-fast:150ms ease;
	--souq-motion-base:250ms ease;
}

/* Alternate presets (selectable from Souq → Theme Settings → Colors, Phase 5).
   Kept here so the palettes ship with the theme; applied via a body class. */
body.souq-preset-navy{
	--souq-primary:#173A5E; --souq-primary-dark:#102944; --souq-primary-deep:#0B1D30;
	--souq-primary-light:#EAF0F7; --souq-primary-soft:#F3F7FB;
	--souq-accent:#D5A847; --souq-accent-dark:#B88932; --souq-accent-light:#FAF3E2;
}
body.souq-preset-burgundy{
	--souq-primary:#783D4F; --souq-primary-dark:#5C2E3D; --souq-primary-deep:#45222F;
	--souq-primary-light:#F6EAED; --souq-primary-soft:#FAF3F5;
	--souq-accent:#CDA45E; --souq-accent-dark:#AD8747; --souq-accent-light:#FAF3E2;
}
body.souq-preset-midnight{
	--souq-primary:#263238; --souq-primary-dark:#1B252A; --souq-primary-deep:#141C20;
	--souq-primary-light:#EAEDEE; --souq-primary-soft:#F4F6F6;
	--souq-accent:#C49B52; --souq-accent-dark:#A98240; --souq-accent-light:#FAF3E2;
}

/* Base reset kept minimal on purpose — component styles live in
   assets/css/*.css and are conditionally enqueued (see inc/enqueue.php). */
*,*::before,*::after{ box-sizing:border-box; }
body{
	margin:0;
	background:var(--souq-background);
	color:var(--souq-text);
	font-family:var(--souq-font-arabic);
	-webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
	*,*::before,*::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
