/* ==========================================================================
   Sokrates Mega Menu
   Motyw: drukarnia — znaczniki pasowania (registration marks) jako sygnatura
   zamiast zdjęć. Paleta: atrament / śliwka / złoto / kremowy papier.
   ========================================================================== */

.smm {
	--smm-ink: #201d2b;
	--smm-plum: #4a2f7d;
	--smm-plum-dark: #35235c;
	--smm-gold: #c2932a;
	--smm-gold-light: #e7c974;
	--smm-paper: #faf7f1;
	--smm-paper-2: #f2ede2;
	--smm-line: #e6e0d2;
	--smm-muted: #736f7d;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--smm-ink);
	background: #fff;
	border-bottom: 1px solid var(--smm-line);
	position: relative;
	z-index: 40;
}

.smm *, .smm *::before, .smm *::after { box-sizing: border-box; }

/* ---------- Contact top bar: email + phone ---------- */

.smm__topbar {
	background: var(--smm-ink);
	color: var(--smm-gold-light);
}

.smm__topbar-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 7px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
}

.smm__contact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--smm-gold-light);
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s ease;
}
.smm__contact svg {
	width: 14px; height: 14px;
	fill: none;
	stroke: var(--smm-gold);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
.smm__contact:hover { color: #fff; }
.smm__contact:hover svg { stroke: #fff; }

/* ---------- Top bar: logo | nav | actions ---------- */

.smm__bar-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	position: relative;
}

.smm__brand {
	flex: none;
	display: flex;
	align-items: center;
	min-height: 64px;
}
.smm__brand img { max-height: 46px; width: auto; display: block; }
.smm__brand-text {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--smm-ink);
	text-decoration: none;
	white-space: nowrap;
}

.smm__nav-wrap { flex: 1; min-width: 0; }

.smm__nav {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.smm__actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: 4px;
}

.smm__action {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--smm-ink);
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.smm__action svg {
	width: 20px; height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.smm__action:hover { background: var(--smm-paper-2); color: var(--smm-plum); }

.smm__action--cart { color: var(--smm-plum); }
.smm__cart-count {
	position: absolute;
	top: -2px; right: -2px;
	min-width: 17px; height: 17px;
	padding: 0 3px;
	border-radius: 999px;
	background: var(--smm-plum);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}

/* Search: hidden by default, drops down under the icon when opened */
.smm__search {
	position: absolute;
	top: 100%;
	right: 24px;
	margin-top: 6px;
	display: none;
	align-items: center;
	background: #fff;
	border: 1px solid var(--smm-line);
	box-shadow: 0 16px 32px -18px rgba(32, 29, 43, .3);
	border-radius: 10px;
	padding: 6px;
	z-index: 60;
}
.smm__search.is-open { display: flex; }
.smm__search input[type="search"] {
	border: none;
	outline: none;
	font: inherit;
	font-size: 14px;
	padding: 8px 10px;
	width: 220px;
	background: none;
}
.smm__search button {
	border: none;
	background: var(--smm-plum);
	color: #fff;
	width: 34px; height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
}
.smm__search button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.smm__item { position: relative; }

.smm__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font: inherit;
	color: var(--smm-ink);
	padding: 16px 14px;
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: .01em;
	position: relative;
}

.smm__trigger-icon svg {
	width: 20px; height: 20px;
	fill: none;
	stroke: var(--smm-gold);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .18s ease;
}

.smm__caret {
	width: 12px; height: 12px;
	fill: none;
	stroke: var(--smm-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}

.smm__trigger::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 8px;
	height: 2px;
	background: var(--smm-plum);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

.smm__item:hover .smm__trigger,
.smm__trigger[aria-expanded="true"] { color: var(--smm-plum); }
.smm__item:hover .smm__trigger::after,
.smm__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.smm__item:hover .smm__trigger-icon svg,
.smm__trigger[aria-expanded="true"] .smm__trigger-icon svg { stroke: var(--smm-plum); }
.smm__trigger[aria-expanded="true"] .smm__caret { transform: rotate(180deg); stroke: var(--smm-plum); }

/* ---------- Dropdown panel ---------- */

.smm__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 300px;
	background: var(--smm-paper);
	border: 1px solid var(--smm-line);
	border-top: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--smm-gold), var(--smm-gold-light), var(--smm-gold)) 1;
	box-shadow: 0 24px 48px -20px rgba(32, 29, 43, .28);
	padding: 26px 26px 22px;
	z-index: 50;
	animation: smm-fade .16s ease;
}

@keyframes smm-fade {
	from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.smm__item.is-open .smm__panel { display: block; }

.smm__panel-inner { position: relative; }

/* signature: printer's registration mark, top-right corner of every panel */
.smm__reg {
	position: absolute;
	top: -8px; right: -8px;
	width: 22px; height: 22px;
	opacity: .55;
}
.smm__reg svg {
	width: 100%; height: 100%;
	fill: none;
	stroke: var(--smm-gold);
	stroke-width: 1.3;
}

.smm__col-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--smm-line);
}

.smm__medal {
	width: 44px; height: 44px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--smm-paper-2);
	border: 1.5px solid var(--smm-gold-light);
	flex: none;
}
.smm__medal svg {
	width: 22px; height: 22px;
	fill: none;
	stroke: var(--smm-plum);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.smm__col-title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .01em;
}

.smm__list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	min-width: 240px;
}

.smm__list li + li { margin-top: 2px; }

.smm__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 4px;
	text-decoration: none;
	color: var(--smm-ink);
	font-size: 14.5px;
	border-radius: 4px;
	transition: color .15s ease, background .15s ease, padding-left .15s ease;
}

.smm__dash {
	width: 10px; height: 1.5px;
	background: var(--smm-gold);
	flex: none;
	transition: width .15s ease, background .15s ease;
}

.smm__list a:hover {
	color: var(--smm-plum);
	background: rgba(74, 47, 125, .05);
	padding-left: 8px;
}
.smm__list a:hover .smm__dash { width: 16px; background: var(--smm-plum); }

.smm__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--smm-plum);
	text-decoration: none;
	border: 1.5px solid var(--smm-plum);
	border-radius: 999px;
	padding: 8px 16px;
	transition: background .15s ease, color .15s ease;
}
.smm__all svg {
	width: 14px; height: 14px;
	fill: none; stroke: currentColor; stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
	transition: transform .15s ease;
}
.smm__all:hover { background: var(--smm-plum); color: #fff; }
.smm__all:hover svg { transform: translateX(3px); }

/* ---------- Quick links bar ---------- */

.smm__quickbar {
	background: var(--smm-paper-2);
	border-top: 1px solid var(--smm-line);
}

.smm__quickbar-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.smm__quicklinks {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
}
.smm__quicklinks::-webkit-scrollbar { display: none; }

.smm__quicklinks a {
	display: block;
	font-size: 13px;
	color: var(--smm-muted);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.smm__quicklinks a:hover {
	color: var(--smm-plum);
	border-color: var(--smm-line);
	background: #fff;
}

.smm__cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: var(--smm-plum);
	text-decoration: none;
	padding: 9px 16px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background .15s ease;
}
.smm__cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.smm__cta:hover { background: var(--smm-plum-dark); }

.smm__cta--catalog {
	color: var(--smm-plum);
	background: transparent;
	border: 1px solid var(--smm-plum);
}
.smm__cta--catalog:hover { background: var(--smm-plum); color: #fff; }

/* ---------- Responsive: stack into an accordion on small screens ---------- */

@media (max-width: 900px) {
	.smm__bar-inner { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
	.smm__brand { min-height: auto; }
	.smm__nav-wrap { order: 3; flex-basis: 100%; }
	.smm__actions { margin-left: auto; }
	.smm__search { right: 16px; left: 16px; }
	.smm__search input[type="search"] { width: auto; flex: 1; }
	.smm__nav { flex-direction: column; }
	.smm__trigger { width: 100%; padding: 14px 4px; justify-content: space-between; }
	.smm__trigger::after { display: none; }
	.smm__panel {
		position: static;
		transform: none;
		width: 100%;
		border-top: 1px solid var(--smm-line);
		box-shadow: none;
		animation: none;
		padding: 18px 4px;
	}
	.smm__reg { display: none; }
	.smm__list { min-width: 0; }
	.smm__quickbar-inner { flex-direction: column; align-items: stretch; }
	.smm__cta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.smm__panel { animation: none; }
	.smm__trigger::after,
	.smm__caret,
	.smm__all svg,
	.smm__dash { transition: none; }
}
