/*
Theme Name: TechNest
Theme URI: https://technest.store
Author: TechNest Store
Author URI: https://technest.store
Description: Custom WordPress theme for TechNest Store — a premium technology retailer. Built to work with WooCommerce and the companion TechNest Toolkit plugin. Technology, thoughtfully chosen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: technest
Tags: e-commerce, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   Design tokens
   ---------------------------------------------------------------------- */
:root {
	/* Palette */
	--color-soft-white: #F7F7F4;
	--color-graphite: #171717;
	--color-warm-gray: #E8E7E2;
	--color-stone: #C8C5BD;
	--color-charcoal: #252525;
	--color-mist: #ECEFF1;
	--color-accent: #4263EB;
	--color-accent-dark: #2f4bc7;
	--color-white: #FFFFFF;
	--color-danger: #C4442F;
	--color-success: #2F7A4D;

	--color-bg: var(--color-soft-white);
	--color-surface: var(--color-white);
	--color-text: var(--color-graphite);
	--color-text-muted: #6b6a66;
	--color-border: var(--color-warm-gray);

	/* Typography */
	--font-display: 'Sora', 'Manrope', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.375rem;
	--fs-xl: 1.75rem;
	--fs-2xl: 2.25rem;
	--fs-3xl: 3rem;
	--fs-4xl: 3.75rem;

	/* Spacing scale */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;
	--space-10: 128px;

	/* Layout */
	--container-width: 1280px;
	--container-padding: clamp(20px, 4vw, 48px);
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	/* Motion */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--duration-fast: 180ms;
	--duration-base: 320ms;
	--duration-slow: 600ms;

	--shadow-sm: 0 1px 2px rgba(23,23,23,0.06);
	--shadow-md: 0 8px 24px rgba(23,23,23,0.08);
	--shadow-lg: 0 24px 64px rgba(23,23,23,0.14);

	--header-height: 84px;
}

@media (prefers-color-scheme: dark) {
	:root { color-scheme: light; }
}

/* -------------------------------------------------------------------------
   Reset
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	width: auto; height: auto;
	padding: 12px 20px;
	background: var(--color-graphite);
	color: #fff;
	z-index: 100000;
	border-radius: var(--radius-sm);
	clip: auto;
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

::selection { background: var(--color-accent); color: #fff; }

/* -------------------------------------------------------------------------
   Base utility classes
   ---------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.text-center { text-align: center; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent);
}
