/*
Theme Name: Stroble
Theme URI: https://stroble.pl
Author: SGM
Author URI: https://sigmadruk.pl
Description: Czysty motyw dla Stroble — producenta obuwia barefoot. Bez page builderów, bez Jet*. Pixel-perfect kopia stroble.pl na własnym kodzie.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: stroble
Tags: woocommerce, custom-menu, custom-logo, featured-images, translation-ready
*/

/* =============================================================
   STROBLE — globalny CSS
   Tu trzymamy TYLKO: reset, zmienne, typografię, buttony, utility.
   Style sekcji/templatów ładowane są warunkowo z assets/css/.
   ============================================================= */

/* -------- CSS Variables (po audycie wizualnym stroble.pl 2026-04-07) ------- */
:root {
	/* === Kolory marki (z computed styles stroble.pl) === */
	--stroble-color-brown-dark: #875849;    /* H2 slider, secondary heading */
	--stroble-color-brown: #B38271;         /* Linki, primary brand, hover */
	--stroble-color-brown-light: #C49885;   /* hover light */

	--stroble-color-black: #151515;         /* H2 sekcji main */
	--stroble-color-text: #393D46;          /* body text, tytuły produktów, P */
	--stroble-color-text-mid: #5E6573;      /* menu, footer titles */
	--stroble-color-text-light: #878D9D;    /* secondary, slider pretitle */
	--stroble-color-text-near: #31343C;     /* button text, cena */

	--stroble-color-bg: #FFFFFF;
	--stroble-color-bg-topbar: rgba(246, 246, 248, 0.54);
	--stroble-color-bg-alt: #F6F6F8;
	--stroble-color-border: #F6F6F8;

	/* Aliasy kompatybilne ze starym kodem */
	--stroble-color-primary: var(--stroble-color-brown);
	--stroble-color-primary-dark: var(--stroble-color-brown-dark);
	--stroble-color-text-muted: var(--stroble-color-text-mid);

	/* === Typografia === */
	--stroble-font-display: 'Poppins', system-ui, -apple-system, sans-serif;
	--stroble-font-body: 'Poppins', system-ui, -apple-system, sans-serif;

	/* === Rozmiary fontów (real values) === */
	--stroble-fs-base: 16px;
	--stroble-fs-body: 16px;
	--stroble-lh-base: 1.5;          /* 24/16 */
	--stroble-fw-light: 300;          /* body */
	--stroble-fw-regular: 400;
	--stroble-fw-medium: 500;
	--stroble-fw-semibold: 600;

	/* H rozmiary z stroble.pl */
	--stroble-fs-h1: 60px;            /* slider H2 (mapowane na H1 w hero) */
	--stroble-fs-h2: 50px;            /* sekcje "Najnowsze produkty" */
	--stroble-fs-h3: 16px;            /* footer titles */
	--stroble-fs-h4: 15px;            /* product titles */

	/* === Spacing === */
	--stroble-space-xs: 0.25rem;      /* 4px */
	--stroble-space-sm: 0.5rem;       /* 8px */
	--stroble-space-md: 1rem;         /* 16px */
	--stroble-space-lg: 2rem;         /* 32px */
	--stroble-space-xl: 4rem;         /* 64px */
	--stroble-space-2xl: 6rem;        /* 96px */

	/* === Layout === */
	--stroble-container-max: 1425px;
	--stroble-container-padding: 20px;
	--stroble-content-narrow: 800px;

	/* === Header heights === */
	--stroble-topbar-height: 40px;
	--stroble-header-height: 71px;

	/* === Radius === */
	--stroble-radius-none: 0;          /* większość elementów stroble jest kanciasta */
	--stroble-radius-sm: 4px;
	--stroble-radius-md: 8px;
	--stroble-radius-lg: 16px;         /* glassmorphism PGPO container */

	/* === Shadows === */
	--stroble-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--stroble-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--stroble-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
	--stroble-shadow-glass: 0 4px 20px rgba(0, 0, 0, 0.08);

	/* === Transitions === */
	--stroble-transition-fast: 150ms ease;
	--stroble-transition-base: 250ms ease;
	--stroble-transition-slow: 400ms ease;
}

/* Font Poppins ładowany przez wp_enqueue_style w inc/enqueue.php */

/* -------- Reset --------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--stroble-font-body);
	font-size: var(--stroble-fs-base);
	font-weight: var(--stroble-fw-light);
	line-height: var(--stroble-lh-base);
	color: #000;
	background: var(--stroble-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--stroble-font-display);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 var(--stroble-space-md);
}

h1 { font-size: var(--stroble-fs-h1); }
h2 { font-size: var(--stroble-fs-h2); }
h3 { font-size: var(--stroble-fs-h3); }

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

a {
	color: var(--stroble-color-primary);
	text-decoration: none;
	transition: color var(--stroble-transition-fast);
}

a:hover,
a:focus {
	color: var(--stroble-color-primary-dark);
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* -------- Layout helpers --------- */
.stroble-container {
	width: 100%;
	max-width: var(--stroble-container-max);
	margin: 0 auto;
	padding: 0 var(--stroble-container-padding);
}

.stroble-content-narrow {
	max-width: var(--stroble-content-narrow);
	margin: 0 auto;
	padding: 0 var(--stroble-container-padding);
}

/* -------- Buttons --------- */
.stroble-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--stroble-radius-sm);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: all var(--stroble-transition-base);
	text-decoration: none;
	white-space: nowrap;
}

.stroble-btn--primary {
	background: var(--stroble-color-primary);
	color: #fff;
	border-color: var(--stroble-color-primary);
}

.stroble-btn--primary:hover,
.stroble-btn--primary:focus {
	background: var(--stroble-color-primary-dark);
	border-color: var(--stroble-color-primary-dark);
	color: #fff;
}

.stroble-btn--ghost {
	background: transparent;
	color: var(--stroble-color-text);
	border-color: var(--stroble-color-border);
}

.stroble-btn--ghost:hover,
.stroble-btn--ghost:focus {
	background: var(--stroble-color-bg-alt);
}

/* -------- Screen reader only --------- */
.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;
	width: 1px;
	word-wrap: normal !important;
}

/* -------- Skip link (a11y) --------- */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
	padding: 1rem 1.5rem;
	background: var(--stroble-color-text);
	color: #fff;
	text-decoration: none;
}

.skip-link:focus {
	left: var(--stroble-space-md);
	top: var(--stroble-space-md);
}

/* -------- WordPress alignment --------- */
.alignleft  { float: left;  margin-right: var(--stroble-space-md); }
.alignright { float: right; margin-left: var(--stroble-space-md); }
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* -------- Responsive base ----------- */
@media (max-width: 1024px) {
	:root {
		--stroble-container-padding: 20px;
	}
}

@media (max-width: 768px) {
	:root {
		--stroble-container-padding: 16px;
		--stroble-space-2xl: 4rem;
	}
}

@media (max-width: 480px) {
	:root {
		--stroble-container-padding: 14px;
	}
}

@media (max-width: 359px) {
	:root {
		--stroble-container-padding: 12px;
		--stroble-fs-base: 15px;
	}
}
