.smm, .smm-panel, .smm-drawer {
	--smm-c1: #42255D;
	--smm-c2: #9B4F9B;
	--smm-link: #9B3D8F;
	--smm-ink: #26262A;
	--smm-hover: #F2F2F5;
}

/* ---------- Pasek ---------- */
.smm { position: relative; display: flex; align-items: center; justify-content: center; }
.smm-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.smm-item { margin: 0; padding: 0; list-style: none; }
.smm .smm-top {
	display: inline-flex;
	align-items: center;
	padding: 9px 30px;
	border-radius: 20px;
	color: var(--smm-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.smm .smm-item:hover .smm-top,
.smm .smm-item.is-open .smm-top { background: var(--smm-hover); color: var(--smm-ink); }
.smm .smm-item.is-current .smm-top,
.smm .smm-item.is-current:hover .smm-top,
.smm .smm-item.is-current.is-open .smm-top {
	background: linear-gradient(90deg, var(--smm-c1), var(--smm-c2));
	color: #fff;
}
.smm .smm-top:focus-visible { outline: 2px solid var(--smm-c1); outline-offset: 2px; }

/* ---------- Panel ---------- */
.smm-panel {
	position: fixed;
	z-index: 9999;
	display: grid;
	grid-template-columns: 205px minmax(0, 1fr);
	min-height: 380px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(38, 20, 55, .14), 0 2px 6px rgba(0, 0, 0, .05);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
	color: var(--smm-ink);
	font-size: 14px;
}
.smm-panel[hidden] { display: none; }
.smm-panel.is-open { opacity: 1; transform: none; }

.smm-cats {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	padding: 26px 14px;
	border-radius: 20px 0 0 20px;
	background: linear-gradient(180deg, var(--smm-c2) 0%, var(--smm-c1) 100%);
}
.smm-panel .smm-cat {
	position: relative;
	display: block;
	padding: 10px 12px;
	margin: 0 0 22px;
	border-radius: 12px;
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s;
}
.smm-panel .smm-cat::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -12px;
	width: 36px;
	height: 1px;
	margin-left: -18px;
	background: rgba(255, 255, 255, .7);
}
.smm-panel .smm-cat:last-child { margin-bottom: 0; }
.smm-panel .smm-cat:last-child::after { display: none; }
.smm-panel .smm-cat:hover,
.smm-panel .smm-cat.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.smm-panel .smm-cat.is-active { font-weight: 700; }
.smm-panel .smm-cat:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.smm-view {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding: 24px 32px 30px 24px;
	animation: smm-fade .18s ease;
}
.smm-view.has-poleca { grid-template-columns: minmax(0, 1fr) 300px; }
.smm-view[hidden] { display: none; }
@keyframes smm-fade { from { opacity: 0; } to { opacity: 1; } }

.smm-panel .smm-heading {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--smm-c1);
}
.smm-panel .smm-heading a { color: inherit; text-decoration: none; }
.smm-panel .smm-heading a:hover { color: var(--smm-link); }

.smm-groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 20px 32px;
	align-items: start;
}
.smm-panel .smm-group__title,
.smm-drawer .smm-group__title {
	position: relative;
	display: inline-block;
	margin: 0 0 8px;
	padding-bottom: 5px;
	font-size: 13px;
	font-weight: 400;
	color: var(--smm-ink);
}
.smm-panel .smm-group__title::after,
.smm-drawer .smm-group__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	min-width: 34px;
	height: 1px;
	background: var(--smm-c1);
}
.smm-panel .smm-group__title a,
.smm-drawer .smm-group__title a { color: inherit; text-decoration: none; }

.smm-panel .smm-group ul,
.smm-drawer .smm-acc__group ul { margin: 0; padding: 0; list-style: none; }
.smm-panel .smm-group li,
.smm-drawer .smm-acc__group li { margin: 0; padding: 0; list-style: none; line-height: 1.55; }
.smm-panel .smm-group li a,
.smm-panel .smm-group li span,
.smm-drawer .smm-acc__group li a {
	position: relative;
	display: inline-block;
	padding: 1px 0 1px 9px;
	font-size: 12.5px;
	color: var(--smm-link);
	text-decoration: none;
	transition: color .15s, transform .15s;
}
.smm-panel .smm-group li a::before,
.smm-panel .smm-group li span::before,
.smm-drawer .smm-acc__group li a::before { content: "•"; position: absolute; left: 0; }
.smm-panel .smm-group li a:hover { color: var(--smm-c1); transform: translateX(2px); }

/* ---------- Sprawdzono poleca ---------- */
.smm-poleca__head {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--smm-c1);
}
.smm-poleca__card {
	position: relative;
	display: block;
	padding: 12px 12px 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(38, 20, 55, .10);
	text-decoration: none;
	overflow: hidden;
}
.smm-poleca__img {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: var(--smm-hover);
}
.smm-poleca__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.smm-poleca__card:hover .smm-poleca__img img { transform: scale(1.04); }
.smm-poleca__title {
	display: block;
	padding: 18px 6px 44px;
	font-size: 18px;
	line-height: 1.4;
	color: var(--smm-c1);
}
.smm-poleca__go {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 32px;
	border-radius: 14px 0 18px 0;
	background: linear-gradient(90deg, var(--smm-c1), var(--smm-c2));
	color: #fff;
	box-shadow: 0 0 0 6px #fff;
	transition: width .2s ease;
}
.smm-poleca__card:hover .smm-poleca__go { width: 76px; }

/* ---------- Burger + szuflada ---------- */
.smm .smm-burger {
	display: none !important;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 5px;
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 11px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--smm-hover) !important;
	box-shadow: none !important;
	cursor: pointer;
}
.smm-burger.smm-burger--float {
	display: none !important;
	position: absolute !important;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	z-index: 20;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 11px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #F2F2F5 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.smm-burger--float span { display: block !important; width: 100%; height: 2px; border-radius: 2px; background: #42255D; }
.smm .smm-burger span { display: block !important; width: 100%; height: 2px; border-radius: 2px; background: var(--smm-c1); }

html.smm-lock, html.smm-lock body { overflow: hidden; }

.smm-drawer { position: fixed; inset: 0; z-index: 10000; }
.smm-drawer[hidden] { display: none; }
.smm-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 14, 44, .45);
	opacity: 0;
	transition: opacity .25s;
}
.smm-drawer__box {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(92vw, 400px);
	overflow-y: auto;
	background: #fff;
	border-radius: 20px 0 0 20px;
	transform: translateX(100%);
	transition: transform .25s ease;
	color: var(--smm-ink);
}
.smm-drawer.is-open .smm-drawer__overlay { opacity: 1; }
.smm-drawer.is-open .smm-drawer__box { transform: none; }

.smm-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: linear-gradient(90deg, var(--smm-c1), var(--smm-c2));
	color: #fff;
	font-weight: 700;
}
.smm-drawer .smm-drawer__close {
	display: inline-flex;
	padding: 6px !important;
	border: 0 !important;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
}

.smm-drawer ul.smm-acc,
.smm-drawer ul.smm-acc ul { margin: 0; padding: 0; list-style: none; }
.smm-drawer ul.smm-acc { padding: 12px 22px 36px !important; }
.smm-drawer .smm-acc ul.smm-acc__sub { padding: 4px 0 12px !important; }
.smm-acc li { list-style: none; }
.smm-acc__l1 { border-bottom: 1px solid #EEEAF2; }

.smm-drawer .smm-acc__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0 !important;
	padding: 15px 6px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--smm-ink) !important;
	font: inherit;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: left;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
}
.smm-drawer button.smm-acc__btn::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s;
}
.smm-drawer button.smm-acc__btn[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.smm-drawer .smm-acc__l1.is-current > .smm-acc__btn { color: var(--smm-link) !important; }

.smm-drawer .smm-acc__l2 .smm-acc__btn {
	padding: 12px 14px !important;
	margin-bottom: 6px !important;
	border-radius: 12px !important;
	background: var(--smm-hover) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}
.smm-drawer .smm-acc__l2 .smm-acc__btn[aria-expanded="true"] {
	background: linear-gradient(90deg, var(--smm-c1), var(--smm-c2)) !important;
	color: #fff !important;
}
.smm-acc__sub { padding: 0 0 12px; }
.smm-acc__l2 > .smm-acc__sub { padding: 12px 14px 18px; }
.smm-acc__l2 { margin-bottom: 6px; }
.smm-acc__sub > .smm-acc__all { padding-left: 4px; }
.smm-drawer li.smm-acc__all { margin: 0 0 10px; }
.smm-drawer a.smm-acc__all,
.smm-drawer li.smm-acc__all a {
	display: block;
	margin: 0 0 12px;
	padding: 4px 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--smm-link);
	text-decoration: none;
}
.smm-drawer .smm-acc__group { margin: 0 0 16px; }
.smm-drawer .smm-acc__group li a { font-size: 14px; padding: 4px 0 4px 10px; }

.smm-poleca--compact { margin-top: 6px; }
.smm-poleca--compact .smm-poleca__title { font-size: 15px; padding: 12px 6px 40px; }

@media (prefers-reduced-motion: reduce) {
	.smm-panel, .smm-drawer__box, .smm-drawer__overlay, .smm-view { transition: none; animation: none; }
}
