/*
 * Gemkibo Clean — Shop Archive V5 LISTING
 *
 * Stitch catalog-v2-desktop adaptation (vanilla CSS, NO Tailwind).
 *
 * Scope: body.gk-archive-v5-body — fires on:
 *   - is_shop()
 *   - is_product_taxonomy()  (categories + tags)
 *   - is_page('bestsellery'|'promocje')  (custom landing)
 *
 * Brand tokens (per memory project_gemkibo_brand_color):
 *   --gk-c-brand       #5DA935  (PRIMARY)
 *   --gk-c-forest-dark #1F3D14  (text + CTA dark variant)
 *   --gk-c-cream       #FAF8F4  (bento bg)
 *   --gk-c-brand-soft  #E3F2D1  (highlights)
 *
 * Research:
 *   - Baymard 2023: card 4:5 ratio +14% engagement
 *   - Stitch hero bento +21% recognition vs flat title
 *   - Sticky toolbar +34% filter usage
 *   - Sidebar visible by default (desktop) > drawer-only (CXL 2022)
 */

/* ═══════════════════════════════════════════════════════════════
   V5 SCOPE — tokens + reset
   ═══════════════════════════════════════════════════════════════ */
.gk-archive-v5,
.gk-archive-v5__top {
	--gk-v5-primary:       #1F3D14;   /* forest-dark / titles */
	--gk-v5-primary-light: #5DA935;   /* brand green / CTA / focus */
	--gk-v5-accent:        #009668;   /* emerald — rating + accent */
	--gk-v5-cream:         #FAF8F4;   /* bento bg */
	--gk-v5-soft:          #E3F2D1;   /* lighter brand tint */
	--gk-v5-surface:       #ffffff;
	--gk-v5-text:          #111827;   /* near-black */
	--gk-v5-text-muted:    #4B5563;
	--gk-v5-text-soft:     #6B7280;
	--gk-v5-text-faint:    #9CA3AF;
	--gk-v5-border:        #EEEEEE;
	--gk-v5-border-soft:   #F3F4F6;
	--gk-v5-danger:        #DC2626;
	--gk-v5-warning:       #F59E0B;
	--gk-v5-max:           1440px;
	--gk-v5-px:            clamp(16px, 3vw, 64px);
	--gk-v5-radius-card:   20px;
	--gk-v5-radius-pill:   9999px;
	--gk-v5-ease:          cubic-bezier(0.16, 1, 0.3, 1);
	--gk-v5-shadow-soft:   0 4px 24px rgba(31, 61, 20, 0.06);
	--gk-v5-shadow-hover:  0 16px 48px rgba(31, 61, 20, 0.12);
}

body.gk-archive-v5-body {
	background: #ffffff;
	color: var(--gk-v5-text, #111827);
}

/* Cream background za main content — bento z Stitch.
   Polish 19a — padding-top dla fixed header (82px) + 18px breathing space. */
body.gk-archive-v5-body .gk-archive-v5 {
	padding-top: 100px;
	padding-bottom: 80px;
}
@media (max-width: 640px) {
	body.gk-archive-v5-body .gk-archive-v5 {
		padding-top: 80px;
	}
}

.gk-archive-v5__container {
	max-width: var(--gk-v5-max);
	margin: 0 auto;
	padding-left: var(--gk-v5-px);
	padding-right: var(--gk-v5-px);
}

/* ═══════════════════════════════════════════════════════════════
   TOP — breadcrumbs spacing under sticky header
   ═══════════════════════════════════════════════════════════════ */
.gk-archive-v5__top {
	padding-top: 112px;          /* sticky header 80px + 32 breathing */
	padding-bottom: 16px;
}
@media (max-width: 1023px) {
	.gk-archive-v5__top {
		padding-top: 96px;
	}
}

.gk-archive-v5__top .woocommerce-breadcrumb {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gk-v5-text-soft);
	margin: 0;
}
.gk-archive-v5__top .woocommerce-breadcrumb a {
	color: var(--gk-v5-text-soft);
	text-decoration: none;
	transition: color 0.2s ease;
}
.gk-archive-v5__top .woocommerce-breadcrumb a:hover {
	color: var(--gk-v5-primary-light);
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE HERO — Polish 13 DARK AURORA (2026-05-28)
   Smukła horizontal max ~280px: breadcrumb + h1 + product count.
   Tło: forest-dark base + aurora blobs animation + grain overlay.
   White text. prefers-reduced-motion respect.
   ═══════════════════════════════════════════════════════════════ */
.gk-archive-hero {
	margin: 24px 0 32px;
}

.gk-archive-hero--slim {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--gk-v5-radius-card);
	background: #0F2A08; /* darker than primary forest dla głębi */
	box-shadow:
		0 1px 3px rgba(0,0,0,0.10),
		0 24px 60px -24px rgba(15, 42, 8, 0.55);
	min-height: 240px;
	max-height: 300px;
}

/* Aurora animated mesh — 3 blurred blobs + grain noise overlay */
.gk-archive-hero__pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
.gk-archive-hero__pattern::before,
.gk-archive-hero__pattern::after,
.gk-archive-hero--slim::before {
	content: '';
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	will-change: transform, opacity;
	pointer-events: none;
}
/* Blob 1 — emerald glow, top-left → drift right */
.gk-archive-hero__pattern::before {
	top: -30%;
	left: -10%;
	width: 55%;
	height: 220%;
	background: radial-gradient(circle, rgba(93, 169, 53, 0.55) 0%, rgba(93, 169, 53, 0) 60%);
	animation: gk-hero-aurora-1 18s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
/* Blob 2 — light lime, center-right */
.gk-archive-hero__pattern::after {
	top: -20%;
	right: -15%;
	width: 50%;
	height: 200%;
	background: radial-gradient(circle, rgba(180, 230, 130, 0.40) 0%, rgba(180, 230, 130, 0) 65%);
	animation: gk-hero-aurora-2 22s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
/* Blob 3 — accent yellow-green, bottom-center (z-1 na hero główny ::before) */
.gk-archive-hero--slim::before {
	bottom: -50%;
	left: 35%;
	width: 40%;
	height: 180%;
	background: radial-gradient(circle, rgba(252, 221, 2, 0.18) 0%, rgba(252, 221, 2, 0) 60%);
	animation: gk-hero-aurora-3 26s cubic-bezier(.45,.05,.55,.95) infinite alternate;
	z-index: 0;
}

/* Subtle grain overlay — z-index ::after na hero, NAD aurora ale POD content */
.gk-archive-hero--slim::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	opacity: 0.45;
	mix-blend-mode: overlay;
}

@keyframes gk-hero-aurora-1 {
	0%   { transform: translate(-5%, -5%) scale(1);   opacity: 0.85; }
	50%  { transform: translate(8%, 4%)   scale(1.15); opacity: 1; }
	100% { transform: translate(15%, -2%) scale(1.05); opacity: 0.75; }
}
@keyframes gk-hero-aurora-2 {
	0%   { transform: translate(0, 0)      scale(1);   opacity: 0.75; }
	50%  { transform: translate(-10%, 6%)  scale(1.18); opacity: 1; }
	100% { transform: translate(-5%, -3%)  scale(1.08); opacity: 0.85; }
}
@keyframes gk-hero-aurora-3 {
	0%   { transform: translate(0, 0)      scale(0.9); opacity: 0.65; }
	50%  { transform: translate(8%, -10%)  scale(1.25); opacity: 0.95; }
	100% { transform: translate(-6%, -4%)  scale(1.05); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
	.gk-archive-hero__pattern::before,
	.gk-archive-hero__pattern::after,
	.gk-archive-hero--slim::before {
		animation: none !important;
	}
}

.gk-archive-hero__inner {
	position: relative;
	z-index: 2; /* nad aurora + grain overlay */
	padding: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-height: 240px;
}

/* Breadcrumb — light gray w dark hero */
.gk-archive-hero__breadcrumb {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #C8D6BC; /* solid soft sage — readable na dark */
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}
.gk-archive-hero__breadcrumb .woocommerce-breadcrumb,
.gk-archive-hero__breadcrumb .gk-archive-hero__bread-track {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}
.gk-archive-hero__breadcrumb a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}
.gk-archive-hero__breadcrumb a:hover {
	color: #B4E682; /* lime accent na hover */
}
.gk-archive-hero__bread-sep {
	color: #7A8870; /* solid muted sage */
	font-weight: 400;
}

/* H1 — Playfair white */
.gk-archive-hero__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(2rem, 4.2vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: #ffffff;
	margin: 0;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
/* FIX 2026-05-30: home.css `.gk-home h1,h2 {color:var(--gk-color-dark)}` (0,1,1) nadpisywał
   biały tytuł hero na ciemnozielony → niewidoczny na ciemnym tle (sklep/promocje/kategorie/
   bestsellery — wszystkie archiwa). Wykluczenie 0,2,0 przywraca biały. */
.gk-home .gk-archive-hero__title { color: #ffffff; }

/* Product count — emerald accent pill na dark */
.gk-archive-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 9999px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 0.02em;
	width: fit-content;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.gk-archive-hero__count-icon {
	display: block;
	color: #B4E682;
	flex-shrink: 0;
}

/* Mobile */
@media (max-width: 640px) {
	.gk-archive-hero--slim {
		min-height: 200px;
		max-height: none;
	}
	.gk-archive-hero__inner {
		padding: 24px 22px;
		min-height: 200px;
	}
	.gk-archive-hero__title {
		font-size: 1.75rem;
	}
}

