/*
Theme Name: Solid Theme
Author: Sitemendr
Author URI: https://themes.sitemendr.com
Description: A fast, modern WooCommerce theme built for direct-to-customer shops — live product search, a real-time cart, and WhatsApp-first ordering, all wrapped in a clean, mobile-first design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
WC requires at least: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solid-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* Global variables */
:root {
	--color-text: #1c1c1c;
	--color-text-muted: #6b6b6b;
	--color-bg: #ffffff;
	--color-bg-alt: #f7f7f7;
	--color-accent: #d9752e;
	--color-accent-dark: #b85f22;
	--color-border: #ececec;
	--color-success: #2e7d32;
	--color-error: #c0392b;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;

	--container-max: 1240px;
	--header-height: 76px;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;

	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

	--transition-fast: 0.15s ease;
	--transition-base: 0.25s ease;
}

/* Reset / normalize */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
	width: 100%;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	max-width: 100%;
	position: relative;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

img, picture, video, svg, iframe, embed, object {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* Long text cannot force overflow. */
* {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Base typography */
body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
	margin-bottom: 1rem;
	color: var(--color-text);
}

a {
	transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
	color: var(--color-accent);
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Layout utilities */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 24px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-accent);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
	border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
	top: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 0.95rem;
	transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
	background: var(--color-accent);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--color-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.btn-secondary {
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Feedback states */
.text-muted {
	color: var(--color-text-muted);
}

.text-success {
	color: var(--color-success);
}

.text-error {
	color: var(--color-error);
}
