/* Breakpoint Club Shop Catalog & Multi-Filter Styles */

:root {
	--bp-primary: #8b74a1;
	--bp-primary-dark: #705586;
	--bp-primary-light: #f7f3fa;
	--bp-primary-border: #dcd0e7;
	--bp-accent-green: #67b022;
	--bp-orange: #f59e0b;
	--bp-text: #1f2937;
	--bp-text-muted: #6b7280;
	--bp-card-bg: #ffffff;
	--bp-border: #e5e7eb;
	--bp-border-input: #cbd5e1;
	--bp-bg-page: #fdfdfd;
	--bp-bg-light: #f8fafc;
	--bp-bg-slate: #f1f5f9;
	--bp-danger: #ef4444;
	--bp-danger-bg: #fee2e2;
	--bp-danger-border: #fca5a5;
	--bp-danger-text: #b91c1c;
	--bp-success-bg: #ecfdf5;
	--bp-success-text: #065f46;
	--bp-radius: 12px;
	--bp-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	--bp-shadow-hover: 0 10px 25px rgba(139, 116, 161, 0.16);
}

.bp-catalog {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--bp-text);
	background: var(--bp-bg-page);
	padding-bottom: 60px;
}

/* ---------- Hero Banner ---------- */
.bp-catalog__hero {
	background: linear-gradient(135deg, var(--bp-primary) 0%, var(--bp-primary-dark) 100%);
	color: #ffffff;
	padding: 48px 24px;
	text-align: center;
	margin-bottom: 32px;
	position: relative;
	overflow: hidden;
}

.bp-catalog__hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.bp-catalog__hero-inner {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.bp-catalog__hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.bp-catalog__hero-title {
	font-size: 34px;
	font-weight: 800;
	color: #ffffff !important;
	margin: 0 0 10px;
	line-height: 1.2;
}

.bp-catalog__hero-sub {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	line-height: 1.5;
}

/* ---------- Main Container ---------- */
.bp-catalog__container {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* ---------- Sidebar Layout ---------- */
.bp-catalog__sidebar {
	width: 300px;
	flex-shrink: 0;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.bp-sidebar__sticky {
	position: sticky;
	top: 90px;
}

.bp-sidebar__mobile-header {
	display: none;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bp-border);
	margin-bottom: 16px;
}

.bp-sidebar__mobile-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--bp-text);
}

.bp-sidebar__mobile-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--bp-text-muted);
}

/* ---------- Filter Groups & Accordions ---------- */
.bp-filter-group {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--bp-border);
}

.bp-filter-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.bp-filter-group__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bp-text-muted);
	margin: 0 0 14px;
}

.bp-filter-group__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: none;
	border: none;
	padding: 8px 0;
	text-align: left;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	color: var(--bp-text);
}

.bp-filter-group__arrow {
	transition: transform 0.25s ease;
	font-size: 12px;
	color: var(--bp-text-muted);
}

.bp-filter-group--accordion.is-open .bp-filter-group__arrow {
	transform: rotate(180deg);
}

.bp-filter-group__body {
	display: none;
	padding-top: 10px;
}

.bp-filter-group--accordion.is-open .bp-filter-group__body {
	display: block;
}

/* ---------- Category List ---------- */
.bp-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-cat-item {
	margin-bottom: 6px;
}

.bp-cat-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 9px 12px;
	background: none;
	border: 1px solid transparent;
	border-radius: 8px;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--bp-text);
	transition: all 0.2s ease;
}

.bp-cat-btn:hover {
	background: var(--bp-primary-light);
	color: var(--bp-primary-dark);
}

.bp-cat-item.is-active .bp-cat-btn {
	background: var(--bp-primary-light);
	color: var(--bp-primary-dark);
	font-weight: 700;
	border-color: var(--bp-primary-border);
}

.bp-cat-name {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bp-cat-icon {
	font-size: 14px;
}

.bp-cat-count {
	font-size: 12px;
	color: var(--bp-text-muted);
	background: rgba(0, 0, 0, 0.05);
	padding: 2px 7px;
	border-radius: 12px;
}

/* ---------- Multi-Filter Checkboxes ---------- */
.bp-filter-options {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
	padding-right: 4px;
}

.bp-filter-options::-webkit-scrollbar {
	width: 4px;
}

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

.bp-filter-option {
	margin-bottom: 8px;
}

.bp-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: var(--bp-text);
	user-select: none;
	padding: 3px 0;
	transition: color 0.15s ease;
}

.bp-checkbox-label:hover {
	color: var(--bp-primary-dark);
}

.bp-checkbox-input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	width: 0;
	height: 0;
}

.bp-checkbox-custom {
	width: 18px;
	height: 18px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.2s ease;
	background: #fff;
}

.bp-checkbox-input:checked ~ .bp-checkbox-custom {
	background: var(--bp-primary);
	border-color: var(--bp-primary);
}

.bp-checkbox-custom::after {
	content: '';
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	display: none;
	margin-top: -2px;
}

.bp-checkbox-input:checked ~ .bp-checkbox-custom::after {
	display: block;
}

.bp-dot-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bp-orange);
	display: inline-block;
	flex-shrink: 0;
}

.bp-checkbox-text {
	flex-grow: 1;
	line-height: 1.3;
}

.bp-checkbox-count {
	font-size: 11px;
	color: var(--bp-text-muted);
}

/* Clear Button */
.bp-sidebar__actions {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--bp-border);
}

.bp-btn--clear {
	width: 100%;
	padding: 10px;
	background: var(--bp-bg-light);
	border: 1px solid var(--bp-border-input);
	border-radius: 8px;
	color: var(--bp-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bp-btn--clear:hover {
	background: var(--bp-danger-bg);
	border-color: var(--bp-danger-border);
	color: var(--bp-danger-text);
}

/* ---------- Main Products / Classes Column ---------- */
.bp-catalog__main {
	flex-grow: 1;
	min-width: 0;
}

/* Mobile Open Filters */
.bp-mobile-filter-bar {
	display: none;
	margin-bottom: 16px;
}

.bp-btn--mobile-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--bp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bp-filter-badge-count {
	background: #ffffff;
	color: var(--bp-primary);
	border-radius: 12px;
	padding: 2px 7px;
	font-size: 12px;
	font-weight: 700;
}

/* Topbar */
.bp-catalog__topbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 18px 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.bp-catalog__heading-wrap {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.bp-catalog__view-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	color: var(--bp-text);
}

.bp-catalog__count {
	font-size: 14px;
	color: var(--bp-text-muted);
	font-weight: 500;
}

/* Active Chips */
.bp-active-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.bp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bp-primary-light);
	border: 1px solid var(--bp-primary-border);
	color: var(--bp-primary-dark);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 16px;
}

.bp-chip__remove {
	background: none;
	border: none;
	color: var(--bp-primary-dark);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0;
	opacity: 0.7;
}

.bp-chip__remove:hover {
	opacity: 1;
}

.bp-chip--clear-all {
	background: none;
	border: none;
	color: var(--bp-danger);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	padding: 4px 6px;
}

/* ---------- Cards Grid ---------- */
.bp-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* Card Common */
.bp-card {
	background: var(--bp-card-bg);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.bp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bp-shadow-hover);
	border-color: var(--bp-primary-border);
}

.bp-card__image-wrap {
	position: relative;
	width: 100%;
	padding-top: 66%; /* 3:2 aspect ratio */
	background: #f1f5f9;
	overflow: hidden;
}

.bp-card__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.bp-card:hover .bp-card__image {
	transform: scale(1.04);
}

.bp-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(30, 41, 59, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 6px;
	z-index: 2;
}

.bp-card__content {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bp-card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
	color: var(--bp-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bp-card__desc {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 14px;
	line-height: 1.4;
}

.bp-is-hidden {
	display: none !important;
}

.bp-card__meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.bp-meta-tag {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	background: var(--bp-bg-slate);
	color: var(--bp-text-muted);
	padding: 3px 8px;
	border-radius: 4px;
}

.bp-meta-tag--coach {
	background: var(--bp-primary-light);
	color: var(--bp-primary-dark);
}

.bp-meta-tag--players {
	background: var(--bp-success-bg);
	color: var(--bp-success-text);
}

.bp-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--bp-border);
}

.bp-card__price {
	font-size: 17px;
	font-weight: 800;
	color: var(--bp-text);
}

.bp-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bp-primary);
	color: #ffffff !important;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.15s ease;
}

.bp-card__btn:hover {
	background: var(--bp-primary-dark);
	transform: translateX(2px);
}

/* Empty State */
.bp-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border: 1px dashed var(--bp-border);
	border-radius: var(--bp-radius);
	margin-top: 20px;
}

.bp-empty-state__icon {
	font-size: 44px;
	margin-bottom: 12px;
}

.bp-empty-state__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--bp-text);
	margin: 0 0 8px;
}

.bp-empty-state__text {
	font-size: 14px;
	color: var(--bp-text-muted);
	max-width: 420px;
	margin: 0 auto 20px;
}

.bp-btn--primary {
	background: var(--bp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 600;
	cursor: pointer;
}

.bp-btn--primary:hover {
	background: var(--bp-primary-dark);
}

/* ---------- Responsive Layout ---------- */
@media (max-width: 991px) {
	.bp-catalog__container {
		flex-direction: column;
	}

	.bp-catalog__sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 320px;
		max-width: 85vw;
		height: 100vh;
		z-index: 99999;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		border-radius: 0;
		box-shadow: 10px 0 30px rgba(0,0,0,0.2);
	}

	.bp-catalog__sidebar.is-active {
		transform: translateX(0);
	}

	.bp-sidebar__sticky {
		position: static;
	}

	.bp-sidebar__mobile-header {
		display: flex;
	}

	.bp-mobile-filter-bar {
		display: block;
	}
}

@media (max-width: 640px) {
	.bp-catalog__hero {
		padding: 32px 16px;
	}

	.bp-catalog__hero-title {
		font-size: 26px;
	}

	.bp-cards-grid {
		grid-template-columns: 1fr;
	}
}
