/* Pic2Pat shared bar. Loaded by the generator and the shop. */
:root { --p2p-header-height: 70px; --p2p-magenta: #DA1C5C; --p2p-charcoal: #2e343c; }
body { padding-top: var(--p2p-header-height); }
.p2p-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	height: var(--p2p-header-height);
	background: #ffffff; border-bottom: 1px solid #e5e5e5;
	font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 18px; line-height: 1.2; color: var(--p2p-charcoal);
	text-align: left;
}
.p2p-header-inner {
	display: flex; align-items: center; gap: 28px;
	height: 100%; max-width: 1500px; margin: 0 auto; padding: 0 24px;
	box-sizing: border-box;
}
.p2p-header a { color: inherit; text-decoration: none; }
.p2p-header ul { list-style: none; margin: 0; padding: 0; }
.p2p-header img { display: block; margin: 0; max-width: none; border-radius: 0; }
.p2p-header-brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.p2p-header-mark { height: 44px; width: auto; }
.p2p-header-wordmark { height: 34px; width: auto; }
.p2p-header-thread { height: 38px; width: auto; }
.p2p-header-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; margin: 0 -6px 0 -10px;
	background: none; border: 0; color: inherit; cursor: pointer;
}
.p2p-header-nav { flex: 1 1 auto; padding-left: 28px; border-left: 1px solid #d9d9d9; }
.p2p-header-nav-langs { display: none; }
.p2p-header-nav-items { display: flex; gap: 32px; }
.p2p-header-nav-items a { display: block; padding: 12px 0 8px; border-bottom: 2px solid transparent; white-space: nowrap; }
.p2p-header-nav-items a:hover,
.p2p-header-nav-items a:focus-visible { border-bottom-color: var(--p2p-magenta); }
.p2p-header-nav-items .p2p-current a { color: var(--p2p-magenta); border-bottom-color: var(--p2p-magenta); font-weight: 600; }
.p2p-header-cart { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: 0 0 auto; }
.p2p-header-cart-symbol { position: relative; display: block; padding-right: 18px; }
.p2p-header-cart-icon { display: block; }
.p2p-header-cart-count {
	position: absolute; top: -8px; left: 14px;
	min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
	border-radius: 9px; background: var(--p2p-magenta); color: #ffffff;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.p2p-header-cart-total { min-width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p2p-header-lang { position: relative; flex: 0 0 auto; padding-left: 24px; border-left: 1px solid #d9d9d9; }
.p2p-header-lang summary {
	display: flex; align-items: center; gap: 8px; min-height: 44px;
	cursor: pointer; list-style: none;
}
.p2p-header-lang summary::-webkit-details-marker { display: none; }
.p2p-header-lang ul {
	position: absolute; right: 0; top: 100%; z-index: 1001; min-width: 210px;
	max-height: 70vh; overflow-y: auto; padding: 6px 0;
	background: #ffffff; border: 1px solid #e5e5e5; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.p2p-header-lang li a,
.p2p-header-nav-langs li a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; }
.p2p-header-lang li a:hover,
.p2p-header-lang li.p2p-current a,
.p2p-header-nav-langs li.p2p-current a { color: var(--p2p-magenta); }
.p2p-header .p2p-flag { width: 20px; height: 15px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.p2p-header :focus-visible { outline: 2px solid var(--p2p-magenta); outline-offset: 2px; }

@media (max-width: 1100px) {
	.p2p-header-inner { gap: 18px; padding: 0 16px; }
	.p2p-header-nav { padding-left: 18px; }
	.p2p-header-nav-items { gap: 20px; }
	.p2p-header-lang { padding-left: 16px; }
}
@media (max-width: 900px) {
	:root { --p2p-header-height: 56px; }
	.p2p-header-inner { gap: 10px; padding: 0 12px; }
	.p2p-header-toggle { display: flex; }
	.p2p-header-brand { gap: 6px; margin-right: auto; }
	.p2p-header-mark { height: 30px; }
	.p2p-header-wordmark { height: 24px; }
	.p2p-header-thread { height: 26px; }
	.p2p-header-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100vh - var(--p2p-header-height)); overflow-y: auto;
		padding: 8px 0; border-left: 0; border-bottom: 1px solid #e5e5e5;
		background: #ffffff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	}
	.p2p-header-nav.p2p-open { display: block; }
	.p2p-header-nav-items { display: block; }
	.p2p-header-nav-items a { padding: 14px 20px; border-bottom: 0; }
	.p2p-header-nav-items .p2p-current a { box-shadow: inset 3px 0 0 var(--p2p-magenta); }
	.p2p-header-cart { gap: 8px; }
	.p2p-header-cart-total { min-width: 0; }
	.p2p-header-lang { padding-left: 10px; }
}
@media (max-width: 480px) {
	.p2p-header-lang { display: none; }
	.p2p-header-nav-langs { display: flex; flex-wrap: wrap; padding: 4px 8px 8px; border-bottom: 1px solid #e5e5e5; }
	.p2p-header-nav-langs li a { padding: 9px 12px; }
}
@media (max-width: 400px) {
	.p2p-header-mark { height: 26px; }
	.p2p-header-wordmark { height: 20px; }
	.p2p-header-thread { height: 22px; }
}
@media (max-width: 340px) {
	.p2p-header-cart-total { display: none; }
}

