.afs-app {
	display: flex;
	gap: 25px;
	position: relative;
	font-family: inherit;
	margin: 20px 0;
	align-items: flex-start;
}

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

.afs-main-area {
	flex-grow: 1;
	min-width: 0;
}

.afs-app-no-sidebar .afs-main-area {
	width: 100%;
}

.afs-sidebar {
	width: 260px;
	flex-shrink: 0;
	background: #f8fafc;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	position: relative;
}

.afs-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.afs-sidebar-header h3 {
	margin: 0;
	font-size: 1.1rem;
	color: #1e293b;
}

.afs-close-sidebar {
	display: none;
	background: none;
	border: 0;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	color: #333;
	padding: 0;
}

.afs-filter-group {
	margin-bottom: 20px;
}

.afs-filter-group h4 {
	margin: 0 0 10px;
	font-size: .95rem;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 5px;
	color: #475569;
}

.afs-scrollable-filter {
	max-height: 220px;
	overflow-y: auto;
	padding-right: 8px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f1f5f9;
}

.afs-scrollable-filter::-webkit-scrollbar {
	width: 5px;
}

.afs-scrollable-filter::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 4px;
}

.afs-scrollable-filter::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.afs-filter-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	cursor: pointer;
	font-size: .9rem;
	color: #334155;
}

.afs-filter-label input {
	margin: 0;
}

.afs-highlighted-filter {
	font-weight: 600;
	color: #0f172a;
	background: #e0f2fe;
	padding: 6px 8px;
	border-radius: 4px;
	border: 1px solid #bae6fd;
	margin-bottom: 8px;
}

.afs-filter-divider {
	height: 1px;
	background-color: #e2e8f0;
	margin: 10px 0;
}

.afs-mobile-apply-wrap {
	display: none;
}

.afs-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
	padding: 10px 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #e2e8f0;
	font-size: .9rem;
}

.afs-sort-wrap label {
	margin-right: 8px;
	font-weight: 600;
	color: #475569;
}

.afs-sort-wrap select {
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #cbd5e1;
	font-family: inherit;
	font-size: .9rem;
	color: #1e293b;
	background: #fff;
}

.afs-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 15px;
	align-content: flex-start;
}

.afs-card {
	position: relative;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 15px;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.afs-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
	border-color: #cbd5e1;
}

.afs-card[hidden],
.afs-no-results[hidden],
.afs-load-more-wrap[hidden],
.afs-overlay[hidden] {
	display: none !important;
}

.afs-card-featured {
	border: 2px solid #0ea5e9;
	background: #f0f9ff;
}

.afs-badge {
	position: absolute;
	top: -10px;
	right: 10px;
	background: #0ea5e9;
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: .5px;
	box-shadow: 0 2px 4px rgba(14, 165, 233, .3);
}

.afs-logo-wrapper {
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.afs-logo {
	max-width: 130px;
	max-height: 50px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.afs-logo-fallback {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cbd5e1;
}

.afs-logo-fallback span {
	font-size: .95rem;
	font-weight: 700;
	color: #334155;
	padding: 0 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.afs-shop-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.afs-tags-wrap {
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
}

.afs-tag {
	background: #f1f5f9;
	color: #475569;
	font-size: .65rem;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
	font-weight: 500;
}

.afs-desc {
	font-size: .8rem;
	color: #64748b;
	margin: 0 0 15px;
	line-height: 1.4;
	flex-grow: 1;
	max-height: 60px;
	overflow-y: auto;
	padding-right: 5px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.afs-desc::-webkit-scrollbar {
	width: 4px;
}

.afs-desc::-webkit-scrollbar-track {
	background: transparent;
}

.afs-desc::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.afs-desc::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.afs-btn-wrap {
	margin-top: auto;
}

.afs-button {
	display: block !important;
	width: 100% !important;
	background: #16a34a !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 8px 0 !important;
	border-radius: 4px !important;
	font-size: .85rem !important;
	font-weight: 600 !important;
	border: 0 !important;
	cursor: pointer !important;
	text-align: center !important;
	transition: background .2s !important;
	box-sizing: border-box;
	line-height: 1.5 !important;
}

.afs-button:hover,
.afs-button:focus {
	background: #15803d !important;
	color: #fff !important;
}

.afs-ad-label {
	display: block;
	margin-top: 4px;
	font-size: .65rem;
	line-height: 1.2;
	color: #94a3b8;
	text-align: center;
}

.afs-load-more-wrap {
	text-align: center;
	margin-top: 25px;
	width: 100%;
	clear: both;
}

.afs-load-more {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border: 1px solid #cbd5e1 !important;
	padding: 12px 30px !important;
	font-size: 1rem !important;
	display: inline-block !important;
	width: auto !important;
}

.afs-load-more:hover,
.afs-load-more:focus {
	background: #e2e8f0 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
}

.afs-mobile-toggle {
	display: none !important;
	width: 100% !important;
	margin-bottom: 20px !important;
	position: relative !important;
	background: #0ea5e9 !important;
	padding: 10px !important;
	font-size: 1rem !important;
}

.afs-count-badge {
	background: #ef4444;
	color: #fff;
	border-radius: 999px;
	padding: 2px 7px;
	font-size: .75rem;
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
}

.afs-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .6);
	z-index: 9998;
	backdrop-filter: blur(2px);
}

.afs-no-results,
.afs-empty {
	padding: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

body.afs-filter-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.afs-shop-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}

@media (max-width: 768px) {
	.afs-app {
		flex-direction: column;
	}

	.afs-main-area {
		width: 100%;
	}

	.afs-toolbar {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.afs-app:not(.afs-app-no-sidebar) .afs-mobile-toggle {
		display: block !important;
	}

	.afs-close-sidebar {
		display: block;
	}

	.afs-sidebar {
		position: fixed;
		top: 0;
		left: -320px;
		width: 300px;
		height: 100vh;
		max-height: 100vh;
		overflow-y: auto;
		z-index: 9999;
		border-radius: 0;
		transition: left .3s ease-in-out;
		box-shadow: 2px 0 15px rgba(0, 0, 0, .2);
		padding-bottom: 80px;
	}

	.afs-sidebar.is-active {
		left: 0;
	}

	.afs-shop-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.afs-mobile-apply-wrap {
		display: block;
		position: fixed;
		bottom: 0;
		left: -320px;
		width: 300px;
		background: #f8fafc;
		padding: 15px 20px;
		border-top: 1px solid #e2e8f0;
		box-shadow: 0 -4px 10px rgba(0, 0, 0, .05);
		z-index: 10000;
		transition: left .3s ease-in-out;
	}

	.afs-mobile-apply-wrap.is-active {
		left: 0;
	}

	.afs-mobile-apply {
		width: 100% !important;
		background: #0ea5e9 !important;
		color: #fff !important;
		padding: 12px 0 !important;
		font-size: 1.1rem !important;
	}
}

@media (max-width: 480px) {
	.afs-shop-grid {
		grid-template-columns: 1fr;
	}
}
