/**
 * Temiz Wear Theme Stylesheet
 *
 * Global styles, CSS variables, resets, base typography, accessibility utilities,
 * and utility classes. Component-specific styles in dedicated files.
 *
 * @package TemizWear
 * @since   1.0.0
 */

/*
Theme Name: Temiz Wear
Theme URI: https://temizwear.com
Author: Temiz Wear Development Team
Author URI: https://temizwear.com
Description: Custom premium fashion eCommerce theme for Temiz Wear, built for WooCommerce and Gutenberg.
Version: 1.0.0
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: temiz-wear
Tags: e-commerce, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, accessibility-ready
*/

/* ===================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =================================== */

:root {
	/* Brand Colors */
	--tw-color-primary: #2E1A24;
	--tw-color-accent: #A8823D;
	--tw-color-base: #F5EFE3;
	--tw-color-text: #1C1C1A;
	--tw-color-micro-accent: #8B5E52;

	/* Supporting Colors */
	--tw-color-white: #FFFFFF;
	--tw-color-border: #E8E2D8;
	--tw-color-text-muted: #6B6B6B;
	--tw-color-error: #DC2626;
	--tw-color-success: #16A34A;

	/* Typography */
	--tw-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
	--tw-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
	--tw-font-size-base: 16px;
	--tw-font-size-small: 14px;
	--tw-font-size-large: 20px;
	--tw-line-height-tight: 1.2;
	--tw-line-height-normal: 1.5;
	--tw-line-height-relaxed: 1.8;

	/* Spacing Scale */
	--tw-spacing-xs: 4px;
	--tw-spacing-sm: 8px;
	--tw-spacing-md: 16px;
	--tw-spacing-lg: 24px;
	--tw-spacing-xl: 32px;
	--tw-spacing-2xl: 48px;

	/* Layout */
	--tw-container-small: 840px;
	--tw-container-large: 1320px;
	--tw-gutter-mobile: 1rem;
	--tw-gutter-tablet: 1.5rem;
	--tw-gutter-desktop: 2rem;

	/* Border */
	--tw-radius-none: 0;
	--tw-radius-sm: 2px;
	--tw-radius-md: 4px;
	--tw-radius-lg: 8px;
	--tw-border-width: 1px;

	/* Motion */
	--tw-transition-fast: 150ms;
	--tw-transition-base: 200ms;
	--tw-transition-slow: 300ms;
	--tw-easing-ease: ease;
	--tw-easing-ease-out: ease-out;
	--tw-easing-ease-in-out: ease-in-out;

	/* Layering */
	--tw-z-dropdown: 10;
	--tw-z-sticky: 20;
	--tw-z-fixed: 30;
	--tw-z-overlay: 1000;
	--tw-z-modal: 1001;

	/* Shadow (minimal) */
	--tw-shadow-none: none;
	--tw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--tw-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===================================
   CSS RESET & NORMALIZATION
   =================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	min-width: 320px;
	background-color: var(--tw-color-base);
	color: var(--tw-color-text);
	font-family: var(--tw-font-body);
	font-size: var(--tw-font-size-base);
	line-height: var(--tw-line-height-relaxed);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHY FOUNDATION
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--tw-spacing-md) 0;
	font-family: var(--tw-font-heading);
	font-weight: 600;
	line-height: var(--tw-line-height-tight);
	color: var(--tw-color-primary);
}

h1 {
	font-size: 2.25rem;
	font-weight: 700;
}

h2 {
	font-size: 1.75rem;
	font-weight: 600;
}

h3 {
	font-size: 1.25rem;
	font-weight: 600;
}

h4 {
	font-size: 1.125rem;
	font-weight: 600;
}

h5 {
	font-size: 1rem;
	font-weight: 600;
}

h6 {
	font-size: 0.875rem;
	font-weight: 600;
}

p {
	margin: 0 0 var(--tw-spacing-md) 0;
	line-height: var(--tw-line-height-relaxed);
}

p:last-child {
	margin-bottom: 0;
}

/* ===================================
   LINKS
   =================================== */

a {
	color: var(--tw-color-accent);
	text-decoration: none;
	transition: color var(--tw-transition-base) var(--tw-easing-ease-out);
}

a:hover {
	color: var(--tw-color-primary);
	text-decoration: underline;
}

a:active {
	opacity: 0.8;
}

/* ===================================
   LISTS
   =================================== */

ul,
ol {
	margin: 0 0 var(--tw-spacing-md) var(--tw-spacing-lg);
	padding: 0;
	list-style-position: outside;
}

li {
	margin-bottom: var(--tw-spacing-sm);
	line-height: var(--tw-line-height-relaxed);
}

dl {
	margin: 0 0 var(--tw-spacing-md) 0;
}

dt {
	font-weight: 600;
}

dd {
	margin: 0 0 var(--tw-spacing-sm) var(--tw-spacing-lg);
}

/* ===================================
   MEDIA ELEMENTS
   =================================== */

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-style: none;
}

figure {
	margin: 0 0 var(--tw-spacing-lg) 0;
}

figcaption {
	font-size: var(--tw-font-size-small);
	color: var(--tw-color-text-muted);
	margin-top: var(--tw-spacing-sm);
}

svg {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ===================================
   FORMS RESET
   =================================== */

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: pointer;
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
}

input,
select,
textarea {
	border: 1px solid var(--tw-color-border);
	padding: var(--tw-spacing-sm) var(--tw-spacing-md);
	border-radius: var(--tw-radius-md);
	background-color: var(--tw-color-white);
	transition: border-color var(--tw-transition-base) var(--tw-easing-ease-out);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--tw-color-accent);
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* ===================================
   TABLES
   =================================== */

table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0 0 var(--tw-spacing-lg) 0;
}

th,
td {
	padding: var(--tw-spacing-md);
	text-align: left;
	border-bottom: 1px solid var(--tw-color-border);
}

th {
	font-weight: 600;
	background-color: var(--tw-color-base);
	color: var(--tw-color-text);
}

/* ===================================
   CODE & PREFORMATTED TEXT
   =================================== */

code,
kbd,
pre,
samp {
	font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 0.875em;
}

code,
kbd,
samp {
	background-color: var(--tw-color-base);
	border-radius: var(--tw-radius-md);
	padding: 0.25em 0.5em;
}

pre {
	background-color: var(--tw-color-primary);
	color: var(--tw-color-white);
	padding: var(--tw-spacing-md);
	border-radius: var(--tw-radius-md);
	overflow-x: auto;
	margin: 0 0 var(--tw-spacing-lg) 0;
}

pre code {
	background: none;
	border-radius: 0;
	padding: 0;
	color: inherit;
}

/* ===================================
   BLOCKQUOTE
   =================================== */

blockquote {
	margin: 0 0 var(--tw-spacing-lg) 0;
	padding-left: var(--tw-spacing-lg);
	border-left: 4px solid var(--tw-color-accent);
	color: var(--tw-color-text-muted);
	font-style: italic;
}

/* ===================================
   HORIZONTAL RULE
   =================================== */

hr {
	margin: var(--tw-spacing-lg) 0;
	border: none;
	border-top: 1px solid var(--tw-color-border);
}

/* ===================================
   ACCESSIBILITY - FOCUS STATES
   =================================== */

:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--tw-color-accent);
	outline-offset: 2px;
}

/* ===================================
   ACCESSIBILITY - SCREEN READER TEXT
   =================================== */

.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
	padding: var(--tw-spacing-sm);
	background-color: var(--tw-color-primary);
	color: var(--tw-color-white);
	z-index: var(--tw-z-modal);
}

/* ===================================
   ACCESSIBILITY - SKIP LINK
   =================================== */

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background-color: var(--tw-color-primary);
	color: var(--tw-color-white);
	padding: var(--tw-spacing-md);
	text-decoration: none;
	z-index: var(--tw-z-modal);
	font-size: var(--tw-font-size-small);
	font-weight: 500;
}

.skip-link:focus {
	top: 0;
}

/* ===================================
   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;
	}
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Display Utilities */
.hidden {
	display: none !important;
}

.visible {
	visibility: visible !important;
}

/* Text Utilities */
.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-uppercase {
	text-transform: uppercase;
}

.text-lowercase {
	text-transform: lowercase;
}

.text-capitalize {
	text-transform: capitalize;
}

.truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.line-clamp-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.font-normal {
	font-weight: 400;
}

.font-medium {
	font-weight: 500;
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: 700;
}

.italic {
	font-style: italic;
}

.not-italic {
	font-style: normal;
}

/* Clearfix */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* Container */
.container {
	width: 100%;
	max-width: var(--tw-container-large);
	margin: 0 auto;
	padding: 0 var(--tw-gutter-mobile);
}

@media (min-width: 48rem) {
	.container {
		padding: 0 var(--tw-gutter-tablet);
	}
}

@media (min-width: 64rem) {
	.container {
		padding: 0 var(--tw-gutter-desktop);
	}
}

/* Margin Utilities */
.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

/* Flex Utilities */
.flex {
	display: flex;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Grid Utilities */
.grid {
	display: grid;
}

/* Aspect Ratio */
.aspect-square {
	aspect-ratio: 1 / 1;
}

.aspect-video {
	aspect-ratio: 16 / 9;
}

.aspect-3-2 {
	aspect-ratio: 3 / 2;
}

.aspect-4-3 {
	aspect-ratio: 4 / 3;
}