/*
Theme Name: ShopNova
Theme URI: https://example.com/shopnova
Author: ShopNova
Author URI: https://example.com
Description: ShopNova is a lightweight, mobile-first WordPress theme built for WooCommerce marketplaces. It ships with an original visual identity, a responsive grid system, accessible components, and a foundation designed to grow into a multi-vendor experience in later phases.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shopnova
Tags: e-commerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles

ShopNova is distributed under the terms of the GNU GPL v2 (or later).
This stylesheet contains the theme's required header, root design tokens
and a lightweight base reset. Component and layout styles live in
assets/css/ and are enqueued separately (see inc/enqueue.php).
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
	/* Brand colors -- an original terracotta + deep indigo palette */
	--sn-color-primary: #e0592b;
	--sn-color-primary-dark: #b8461f;
	--sn-color-primary-light: #f9e3d8;
	--sn-color-secondary: #142a2e;
	--sn-color-secondary-light: #1f3d42;
	--sn-color-accent: #f2b705;

	/* Feedback colors */
	--sn-color-success: #1f9254;
	--sn-color-danger: #d6334c;
	--sn-color-warning: #b8860b;

	/* Neutrals */
	--sn-color-white: #ffffff;
	--sn-color-black: #12100e;
	--sn-color-gray-50: #faf9f7;
	--sn-color-gray-100: #f3f1ee;
	--sn-color-gray-200: #e6e2dc;
	--sn-color-gray-300: #d3cdc4;
	--sn-color-gray-400: #a89f92;
	--sn-color-gray-500: #7d7469;
	--sn-color-gray-600: #5c554c;
	--sn-color-gray-700: #423d36;
	--sn-color-gray-800: #2b2823;
	--sn-color-gray-900: #1a1815;

	/* Surfaces & text */
	--sn-color-body-bg: var(--sn-color-gray-50);
	--sn-color-surface: var(--sn-color-white);
	--sn-color-text: var(--sn-color-gray-900);
	--sn-color-text-muted: var(--sn-color-gray-600);
	--sn-color-border: var(--sn-color-gray-200);
	--sn-color-link: var(--sn-color-primary-dark);

	/* Typography */
	--sn-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--sn-font-heading: var(--sn-font-body);
	--sn-font-size-base: 16px;
	--sn-line-height-base: 1.55;

	/* Spacing scale */
	--sn-space-2xs: 0.25rem;
	--sn-space-xs: 0.5rem;
	--sn-space-sm: 0.75rem;
	--sn-space-md: 1rem;
	--sn-space-lg: 1.5rem;
	--sn-space-xl: 2.5rem;
	--sn-space-2xl: 4rem;

	/* Radii & shadows */
	--sn-radius-sm: 6px;
	--sn-radius-md: 10px;
	--sn-radius-lg: 16px;
	--sn-radius-pill: 999px;
	--sn-shadow-sm: 0 1px 2px rgba(20, 42, 46, 0.08);
	--sn-shadow-md: 0 6px 20px rgba(20, 42, 46, 0.10);
	--sn-shadow-lg: 0 16px 40px rgba(20, 42, 46, 0.16);

	/* Layout */
	--sn-container-width: 1280px;
	--sn-header-height: 64px;
	--sn-transition: 160ms ease;
	--sn-z-header: 100;
	--sn-z-overlay: 200;
	--sn-z-modal: 300;
}

/* =========================================================
   2. RESET & BASE ELEMENTS
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--sn-color-body-bg);
	color: var(--sn-color-text);
	font-family: var(--sn-font-body);
	font-size: var(--sn-font-size-base);
	line-height: var(--sn-line-height-base);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sn-font-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 var(--sn-space-sm);
	color: var(--sn-color-secondary);
}

p {
	margin: 0 0 var(--sn-space-md);
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

img, svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--sn-color-link);
	text-decoration: none;
	transition: color var(--sn-transition);
}

a:hover {
	color: var(--sn-color-primary);
}

button {
	font-family: inherit;
}

/* Accessible, visible focus state for keyboard users across the theme */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--sn-color-accent);
	outline-offset: 2px;
}

/* Skip link */
.sn-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--sn-z-modal);
	background: var(--sn-color-secondary);
	color: var(--sn-color-white);
	padding: var(--sn-space-sm) var(--sn-space-md);
	border-radius: 0 0 var(--sn-radius-sm) 0;
}

.sn-skip-link:focus {
	left: 0;
}

/* Screen-reader only utility (mirrors WordPress core .screen-reader-text) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--sn-color-surface);
	border-radius: var(--sn-radius-sm);
	box-shadow: var(--sn-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--sn-color-text);
	display: block;
	height: auto;
	left: var(--sn-space-md);
	line-height: normal;
	padding: var(--sn-space-sm) var(--sn-space-md);
	text-decoration: none;
	top: var(--sn-space-md);
	width: auto;
	z-index: var(--sn-z-modal);
}

/* Alignment helpers used by core blocks/gutenberg content */
.alignwide {
	max-width: 1100px;
}

.alignfull {
	width: 100%;
	max-width: none;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}
