/* ===================================================================
 * SEARCH OVERLAY
 * =================================================================== */
/* Search overlay — styles przeniesione do assets/css/components/search-overlay.css
   per user mandate 2026-05-28 ("header globalny, wbij do globalnego pliku"). */

/* ===================================================================
 * MOBILE DRAWER
 * =================================================================== */
.gk-drawer {
	position: fixed;
	inset: 0;
	z-index: 60;
	visibility: hidden;
	opacity: 0;
	transition: opacity var(--gk-dur-base) ease;
}
.gk-drawer.is-open {
	visibility: visible;
	opacity: 1;
}
.gk-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 61, 20, 0.55);
	backdrop-filter: blur(4px);
}
.gk-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 85vw;
	max-width: 400px;
	background: #fff;
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
	transform: translateX(-100%);
	transition: transform var(--gk-dur-base) var(--gk-ease-out);
	display: flex;
	flex-direction: column;
}
.gk-drawer.is-open .gk-drawer__panel {
	transform: translateX(0);
}
.gk-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--gk-color-border);
}
.gk-drawer__head img { height: 32px; width: auto; }
.gk-drawer__close {
	background: transparent;
	border: 0;
	padding: 8px;
	margin: -8px -8px -8px 0;
	color: var(--gk-color-dark);
}
.gk-drawer__body {
	flex: 1;
	overflow-y: auto;
}
.gk-drawer__search {
	padding: 20px;
	border-bottom: 1px solid var(--gk-color-border);
}
.gk-drawer__search-box {
	display: flex;
	align-items: center;
	background: var(--gk-color-surface-low);
	border-radius: 9999px;
	padding: 12px 18px;
	gap: 8px;
}
.gk-drawer__search-box input {
	background: transparent;
	border: 0;
	flex: 1;
	font-size: 14px;
	outline: none;
}
.gk-drawer__nav {
	padding: 20px;
	list-style: none;
	margin: 0;
}
.gk-drawer__nav > li {
	border-bottom: 1px solid rgba(192, 202, 181, 0.2);
}
.gk-drawer__nav > li:last-child { border-bottom: 0; }
.gk-drawer__nav a, .gk-mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--gk-color-dark);
	background: transparent;
	border: 0;
	text-align: left;
}
.gk-drawer__nav a:hover, .gk-mobile-toggle:hover { color: var(--gk-color-primary); }
.gk-drawer__nav .sub-menu {
	padding: 0 0 12px 16px;
	margin: 8px 0 12px;
	border-left: 2px solid rgba(93, 169, 53, 0.3);
	list-style: none;
	display: none;
}
.gk-drawer__nav .sub-menu.is-open { display: block; }
.gk-drawer__nav .sub-menu a {
	padding: 8px 0;
	font-size: 14px;
	font-weight: 400;
	color: var(--gk-color-text-muted);
}
.gk-drawer__nav-extras {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--gk-color-border);
}
.gk-drawer__nav-extras a {
	gap: 12px;
}
.gk-drawer__nav-extras .material-symbols-outlined {
	color: var(--gk-color-text-muted);
}
.gk-drawer__nav-cart-badge {
	margin-left: auto;
	background: var(--gk-color-primary);
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 9999px;
}
.gk-drawer__contact {
	padding: 20px;
	border-top: 1px solid var(--gk-color-border);
	background: var(--gk-color-surface-low);
	font-size: 13px;
	color: var(--gk-color-text-muted);
}
.gk-drawer__contact a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	color: var(--gk-color-text-muted);
}
.gk-drawer__contact .material-symbols-outlined { font-size: 18px; }

/* ===================================================================
 * FLOATING CART (mobile)
 * =================================================================== */
/* ===================================================================
 * STICKY MOBILE CTA — bottom bar po scroll >40% (Baymard 2024 +37% mobile CR)
 * Tylko mobile (<768px), na desktop floating cart wystarcza.
 * =================================================================== */
.gk-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 39;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 14px 20px;
	background: var(--gk-color-dark);
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	box-shadow: 0 -8px 28px rgba(31, 61, 20, 0.30);
	transform: translateY(100%);
	transition: transform .35s var(--gk-ease-out), background .2s ease;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 767px) {
	.gk-sticky-cta { display: inline-flex; }
}
.gk-sticky-cta.is-visible {
	transform: translateY(0);
}
.gk-sticky-cta:hover,
.gk-sticky-cta:active {
	background: var(--gk-color-primary);
	color: #fff;
}
.gk-sticky-cta__icon {
	font-size: 22px;
	flex-shrink: 0;
}
.gk-sticky-cta__label {
	flex: 1;
	max-width: 260px;
	text-align: left;
}
@media (prefers-reduced-motion: reduce) {
	.gk-sticky-cta { transition: none !important; }
}

/* Floating cart FAB — styles przeniesione do assets/css/components/floating-cart.css
   per user mandate 2026-05-28 (wydzielony plik immutable). */

/* Floating WISHLIST FAB — bottom-right, NAD cart FAB.
   Offset: cart 24 + 60 + 24 gap = 108 (więcej oddechu). White bg + red heart. */
.gk-floating-wishlist {
	position: fixed;
	bottom: 108px;
	right: 24px;
	z-index: 40;
	width: 60px;
	height: 60px;
	background: #fff;
	color: #DC2626;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Layered shadow zgodny z cart FAB + red tint */
	box-shadow:
		0 4px 8px rgba(0, 0, 0, 0.12),
		0 8px 16px rgba(0, 0, 0, 0.08),
		0 16px 40px rgba(220, 38, 38, 0.24);
	transition: transform var(--gk-dur-base) var(--gk-ease-out),
	            box-shadow var(--gk-dur-fast) ease,
	            background var(--gk-dur-fast) ease;
	animation: gk-fab-enter .45s var(--gk-ease-out);
}
.gk-floating-wishlist:hover {
	background: #FEE2E2;
	transform: translateY(-2px) scale(1.04);
}
.gk-floating-wishlist:active { transform: scale(0.96); }
.gk-floating-wishlist .material-symbols-outlined {
	font-size: 26px;
	color: #DC2626;
	font-variation-settings: 'FILL' 1;
}
.gk-floating-wishlist__badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: #DC2626;
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	font-weight: 800;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.40), 0 0 0 2px #fff;
	line-height: 1;
}
@keyframes gk-fab-badge-bump {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.5); }
	70%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

