/* Shop by category — sidebar, badges, formats, how-to */

.snc-page,
.snc-page * { box-sizing: border-box; }

.snc-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.snc-side {
	position: sticky;
	top: 24px;
	background: #fff;
	/* Explicit colour: themes that paint button/heading text white made this panel unreadable. */
	color: #111;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 8px 20px 20px;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.snc-side strong,
.snc-side label,
.snc-side p,
.snc-side span:not(.snc-acc__plus) {
	color: #111 !important;
}

.snc-side input[type="radio"],
.snc-side input[type="checkbox"] {
	accent-color: #8A4381 !important;
}

.snc-acc__item {
	border-bottom: 1px solid #ececec;
}
.snc-side button.snc-acc__btn,
.snc-acc__btn,
.snc-acc__btn:hover,
.snc-acc__btn:focus,
.snc-acc__btn:active,
.snc-acc__btn[aria-expanded="true"],
.snc-acc__item.is-open .snc-acc__btn {
	display: flex !important;
	width: 100% !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 14px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #111 !important;
	cursor: pointer;
	font-family: inherit !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	outline: none !important;
}
.snc-acc__btn span {
	background: transparent !important;
	box-shadow: none !important;
}
.snc-acc__btn:hover .snc-acc__plus,
.snc-acc__item.is-open .snc-acc__plus {
	color: #8A4381 !important;
}
.snc-acc__plus {
	font-weight: 400;
	font-size: 20px;
	color: #111;
	line-height: 1;
}
.snc-acc__panel {
	display: none;
	padding: 0 0 12px;
}
.snc-acc__item.is-open .snc-acc__panel { display: block; }
.snc-acc__item.is-open .snc-acc__plus { transform: rotate(45deg); display: inline-block; }
.snc-acc__opt {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	padding: 5px 0;
	cursor: pointer;
}

.snc-filters__go {
	width: 100%;
	height: 44px;
	margin-top: 16px;
	border: 1px solid #8A4381 !important;
	border-radius: 8px;
	background: #8A4381 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, border-color 0.2s ease;
}

/* buttons.css loads after this file and forces the label to #111 on hover,
   so the hover fill has to stay light or the text disappears. */
.snc-filters__go:hover,
.snc-filters__go:focus-visible {
	background: #fff !important;
	border-color: #111 !important;
}

.snc-filters__clear {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #8A4381 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.snc-filters__clear:hover {
	color: #111 !important;
}

.snc-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 16px;
}
.snc-bar .woocommerce-ordering { margin: 0; }
.snc-bar .woocommerce-ordering select {
	border: 0;
	background: transparent;
	font-weight: 700;
	font-size: 14px;
	color: #111;
}
.snc-bar__filter {
	display: none;
	border: 1px solid #8A4381 !important;
	border-radius: 8px;
	background: #8A4381 !important;
	/* Was inheriting the theme's white button text on a white background. */
	color: #fff !important;
	height: 36px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.snc-bar__filter:hover,
.snc-bar__filter:focus-visible {
	background: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
}

.snc-banner {
	background: #3B5998;
	color: #fff;
	text-align: center;
	padding: 14px 16px;
	border-radius: 8px;
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 600;
}
.snc-banner a {
	color: #fff;
	font-weight: 800;
}

.snc-formats { margin: 48px 0 0; }
.snc-formats h2,
.snc-picks h2 {
	margin: 0 0 18px;
	text-align: center;
	font-size: 22px;
	color: #111;
}
.snc-formats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.snc-fmt {
	display: block;
	padding: 18px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #ececec;
	text-decoration: none;
	color: #111;
	box-shadow: 0 6px 16px rgba(17,17,17,.05);
}
.snc-fmt__dot {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--fmt, #3B5998);
	margin-bottom: 10px;
}
.snc-fmt strong { display: block; font-size: 16px; margin-bottom: 6px; }
.snc-fmt p { margin: 0; font-size: 13px; color: #666; line-height: 1.4; }

.snc-picks { margin: 48px 0 0; }
.snc-picks__list { list-style: none; margin: 0; padding: 0; }
.snc-picks__row {
	display: grid;
	grid-template-columns: 28px 52px minmax(0, 1fr) auto 44px;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}
.snc-picks__n { font-weight: 800; color: #111; }
.snc-picks__img {
	position: relative;
	display: block;
	width: 52px;
	height: 52px;
	overflow: visible;
}
.snc-picks__img-host {
	position: relative;
	display: block;
	width: 48px;
	height: 48px;
}
.snc-picks__img-host .snusly-wc-badges {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: visible;
}
.snc-picks__img-host .snusly-wc-badges:empty {
	display: none;
}
.snc-picks__img-host .onsale,
.snc-picks__img-host .yith-wcbm-badge,
.snc-picks__img-host .wapl-label,
.snc-picks__img-host .wapl-flash {
	transform: scale(0.62);
	transform-origin: top left;
}
.snc-picks__img img,
.snc-picks__thumb {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 50%;
}
.snc-picks__info a { color: #111; text-decoration: none; }
.snc-picks__info span { display: block; font-size: 12px; color: #888; }
.snc-picks__price { font-weight: 800; color: #111; }
.snc-picks__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	background: #3B5998;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
}
.snc-picks__cart.is-muted { background: #c5cddb; }

.snc-how {
	margin: 48px 0 0;
	background: #3B5998;
	color: #fff;
	border-radius: 16px;
	padding: 36px 28px 28px;
}
.snc-how h2 {
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 22px;
	color: #fff;
}
.snc-how__sub {
	text-align: center;
	opacity: 0.9;
	margin: 8px 0 28px;
}
.snc-how__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.snc-how__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255,255,255,.5);
	border-radius: 50%;
	margin-bottom: 10px;
	font-weight: 800;
}
.snc-how__steps strong { display: block; margin-bottom: 6px; }
.snc-how__steps p { margin: 0; font-size: 13px; opacity: 0.92; line-height: 1.4; }
.snc-how__ok {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	list-style: none;
	margin: 28px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(255,255,255,.25);
	font-size: 13px;
}
.snc-how__ok li::before {
	content: "✓ ";
	font-weight: 800;
}

.snc-page.snc-no-side .snc-layout { grid-template-columns: 1fr; }
.snc-page.snc-no-side .snc-side { display: none; }
.snc-hide-from .sna-card__from,
.snc-hide-offer .sna-card__offer,
.snc-hide-mg .sna-card__mg,
.snc-hide-stars .sna-card__stars,
.snc-hide-brand .sna-card__brand { display: none !important; }

.sna-card__brand,
.sna-card__brand *,
.woocommerce .sna-card__brand,
.woocommerce .sna-card__brand a {
	color: #6b6b6b !important;
	background: none !important;
	text-decoration: none !important;
}

.sna-card a:hover {
	background: none !important;
}

.snc-page {
	overflow-x: hidden;
	max-width: 100%;
}
.snc-side__head {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0 12px;
	border-bottom: 1px solid #eee;
	margin-bottom: 8px;
}
.snc-side__head strong {
	font-size: 16px;
	font-weight: 800;
	color: #111 !important;
}
.snc-side__close {
	width: 36px;
	height: 36px;
	border: 0 !important;
	background: transparent !important;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #111 !important;
}
.snc-side__close:hover {
	color: #8A4381 !important;
}

@media (max-width: 1024px) {
	.snc-layout {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	.snc-page.is-filters::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(17, 17, 17, 0.4);
		z-index: 9998;
	}
	.snc-side {
		display: none;
		position: fixed !important;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: min(88vw, 360px);
		max-width: 100%;
		z-index: 9999;
		margin: 0;
		border-radius: 0;
		overflow-y: auto;
		padding: 16px 18px 32px;
		box-shadow: -8px 0 32px rgba(0,0,0,.15);
	}
	.snc-page.is-filters .snc-side { display: block; }
	.snc-side__head { display: flex; }
	.snc-bar {
		flex-wrap: wrap;
		gap: 10px;
	}
	.snc-bar__filter {
		display: inline-flex !important;
		align-items: center;
		border-radius: 8px;
	}
	.snc-banner {
		font-size: 13px;
		padding: 12px;
		line-height: 1.4;
	}
	.snc-formats__grid,
	.snc-how__steps {
		grid-template-columns: 1fr 1fr !important;
	}
	.snc-picks__row {
		grid-template-columns: 22px 44px minmax(0, 1fr) 40px;
		gap: 8px;
	}
	.snc-picks__price { display: none; }
	.snc-picks__info strong {
		font-size: 13px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

@media (max-width: 767px) {
	.snc-how {
		padding: 22px 14px;
		border-radius: 12px;
		margin-top: 32px;
	}
	.snc-how h2 { font-size: 16px; }
	.snc-how__steps {
		grid-template-columns: 1fr !important;
		gap: 18px;
	}
	.snc-how__ok {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.snc-formats {
		margin-top: 32px;
	}
	.snc-formats h2,
	.snc-picks h2 { font-size: 18px; }
	.snc-formats__grid {
		grid-template-columns: 1fr !important;
	}
	.snc-picks { margin-top: 32px; }
}

@media (max-width: 480px) {
	.snc-bar .woocommerce-ordering select {
		max-width: 160px;
		font-size: 13px;
	}
}
