/* =============================================
   EBK Shop Grid — Sklep & Archiwum Kategorii
   ============================================= */

/* ── LAYOUT ── */
.ebk-shop {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ebk-text, #1e1e2f);
	-webkit-font-smoothing: antialiased;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 16px;
}

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

/* ── HEADER ── */
.ebk-shop__header {
	padding: 24px 0 16px;
}

.ebk-shop__title {
	font-size: 26px;
	font-weight: 700;
	color: var(--ebk-text, #1e1e2f);
	margin: 0 0 4px;
	line-height: 1.2;
}

.ebk-shop__description {
	color: var(--ebk-text-secondary, #64648a);
	font-size: 14px;
	margin: 0 0 8px;
	max-width: 600px;
}

.ebk-shop__count-badge {
	display: inline-block;
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	color: var(--ebk-accent, #c800c8);
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	border: 1px solid var(--ebk-accent-border, rgba(200, 0, 200, .15));
}

/* ── TOOLBAR ── */
.ebk-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ebk-border, #e8e8ef);
	flex-wrap: wrap;
}

.ebk-shop__toolbar-left,
.ebk-shop__toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ebk-shop__filter-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--ebk-bar-bg, #f9f9f9);
	border: 1px solid var(--ebk-border, #e8e8ef);
	border-radius: var(--ebk-radius-sm, 6px);
	font-size: 13px;
	font-weight: 600;
	color: var(--ebk-text, #1e1e2f);
	cursor: pointer;
	transition: all var(--ebk-transition, .2s ease);
}

.ebk-shop__filter-toggle:hover {
	border-color: var(--ebk-accent, #c800c8);
	color: var(--ebk-accent, #c800c8);
}

.ebk-shop__filter-toggle[aria-expanded="true"] {
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	border-color: var(--ebk-accent-border, rgba(200, 0, 200, .15));
	color: var(--ebk-accent, #c800c8);
}

/* Search */
.ebk-shop__search {
	position: relative;
	flex: 1;
	max-width: 300px;
}

.ebk-shop__search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ebk-text-secondary, #64648a);
	pointer-events: none;
}

.ebk-shop__search-input {
	width: 100%;
	padding: 8px 12px 8px 34px;
	border: 1px solid var(--ebk-border, #e8e8ef);
	border-radius: var(--ebk-radius-sm, 6px);
	font-size: 13px;
	color: var(--ebk-text, #1e1e2f);
	background: #fff;
	outline: none;
	transition: border-color var(--ebk-transition, .2s ease);
}

.ebk-shop__search-input:focus {
	border-color: var(--ebk-accent, #c800c8);
	box-shadow: 0 0 0 3px var(--ebk-accent-light, rgba(200, 0, 200, .06));
}

.ebk-shop__search-input::placeholder {
	color: var(--ebk-text-secondary, #64648a);
}

/* Results info */
.ebk-shop__results-info {
	font-size: 13px;
	color: var(--ebk-text-secondary, #64648a);
	white-space: nowrap;
}

/* Sort */
.ebk-shop__sort {
	padding: 8px 32px 8px 12px;
	border: 1px solid var(--ebk-border, #e8e8ef);
	border-radius: var(--ebk-radius-sm, 6px);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%2364648a'%3E%3Cpath d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") no-repeat right 10px center;
	font-size: 13px;
	color: var(--ebk-text, #1e1e2f);
	cursor: pointer;
	appearance: none;
	outline: none;
}

.ebk-shop__sort:focus {
	border-color: var(--ebk-accent, #c800c8);
}

/* View toggle */
.ebk-shop__view-toggle {
	display: flex;
	border: 1px solid var(--ebk-border, #e8e8ef);
	border-radius: var(--ebk-radius-sm, 6px);
	overflow: hidden;
}

.ebk-shop__view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: #fff;
	color: var(--ebk-text-secondary, #64648a);
	cursor: pointer;
	transition: all var(--ebk-transition, .2s ease);
}

.ebk-shop__view-btn+.ebk-shop__view-btn {
	border-left: 1px solid var(--ebk-border, #e8e8ef);
}

.ebk-shop__view-btn:hover {
	color: var(--ebk-accent, #c800c8);
}

.ebk-shop__view-btn--active {
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	color: var(--ebk-accent, #c800c8);
}

/* ── BODY LAYOUT ── */
.ebk-shop__body {
	display: flex;
	gap: 24px;
	padding: 20px 0 40px;
	align-items: flex-start;
}

/* ── SIDEBAR ── */
.ebk-shop__sidebar {
	width: 260px;
	min-width: 260px;
	flex-shrink: 0;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	transition: width var(--ebk-transition, .2s ease), min-width var(--ebk-transition, .2s ease), opacity var(--ebk-transition, .2s ease);
}

.ebk-shop__sidebar--hidden {
	width: 0;
	min-width: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Active Filters — full-width bar above grid */
.ebk-shop__active-filters {
	margin-bottom: 0;
	padding: 10px 14px;
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	border: 1px solid var(--ebk-accent-border, rgba(200, 0, 200, .15));
	border-radius: var(--ebk-radius, 10px);
}

.ebk-shop__active-filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.ebk-shop__active-filters-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--ebk-accent, #c800c8);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.ebk-shop__clear-all {
	font-size: 12px;
	color: var(--ebk-accent, #c800c8);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.ebk-shop__active-filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ebk-shop__active-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	background: #fff;
	border: 1px solid var(--ebk-accent-border, rgba(200, 0, 200, .15));
	border-radius: 20px;
	font-size: 12px;
	color: var(--ebk-text, #1e1e2f);
}

.ebk-shop__active-tag button {
	display: flex;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--ebk-text-secondary, #64648a);
	padding: 0;
	line-height: 1;
}

.ebk-shop__active-tag button:hover {
	color: #e53e3e;
}

/* Filter groups */
.ebk-shop__filter-group {
	border: 1px solid var(--ebk-border, #e8e8ef);
	border-radius: var(--ebk-radius, 10px);
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}

.ebk-shop__filter-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 14px;
	background: var(--ebk-bar-bg, #f9f9f9);
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--ebk-text, #1e1e2f);
	transition: background var(--ebk-transition, .2s ease);
}

.ebk-shop__filter-heading:hover {
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
}

.ebk-shop__filter-chevron {
	transition: transform var(--ebk-transition, .2s ease);
}

.ebk-shop__filter-heading[aria-expanded="false"] .ebk-shop__filter-chevron {
	transform: rotate(-90deg);
}

.ebk-shop__filter-body {
	padding: 10px 14px 14px;
	transition: max-height .3s ease, opacity .2s ease, padding .2s ease;
	overflow: hidden;
}

.ebk-shop__filter-heading[aria-expanded="false"]+.ebk-shop__filter-body {
	max-height: 0 !important;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* Category back link */
.ebk-shop__cat-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--ebk-accent, #c800c8);
	font-weight: 600;
	margin-bottom: 8px;
	text-decoration: none;
}

.ebk-shop__cat-back:hover {
	text-decoration: underline;
}

/* Category tree */
.ebk-shop__cat-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebk-shop__cat-children {
	list-style: none;
	margin: 0;
	padding: 0 0 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}

.ebk-shop__cat-node--expanded>.ebk-shop__cat-children {
	max-height: 1000px;
}

.ebk-shop__cat-row {
	display: flex;
	align-items: center;
	gap: 2px;
}

.ebk-shop__cat-expand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--ebk-text-secondary, #64648a);
	border-radius: 4px;
	transition: all var(--ebk-transition, .2s ease);
	flex-shrink: 0;
}

.ebk-shop__cat-expand:hover {
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	color: var(--ebk-accent, #c800c8);
}

.ebk-shop__cat-expand svg {
	transition: transform var(--ebk-transition, .2s ease);
}

.ebk-shop__cat-node--expanded>.ebk-shop__cat-row .ebk-shop__cat-expand svg {
	transform: rotate(90deg);
}

.ebk-shop__cat-expand-placeholder {
	width: 22px;
	flex-shrink: 0;
}

.ebk-shop__cat-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	min-width: 0;
	padding: 5px 8px;
	border-radius: var(--ebk-radius-sm, 6px);
	text-decoration: none;
	color: var(--ebk-text, #1e1e2f);
	font-size: 13px;
	transition: all var(--ebk-transition, .2s ease);
	gap: 8px;
	overflow: hidden;
}

.ebk-shop__cat-link:hover {
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	color: var(--ebk-accent, #c800c8);
}

.ebk-shop__cat-node--active>.ebk-shop__cat-row>.ebk-shop__cat-link {
	background: var(--ebk-accent-light, rgba(200, 0, 200, .06));
	color: var(--ebk-accent, #c800c8);
	font-weight: 600;
}

.ebk-shop__cat-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ebk-shop__cat-count {
	font-size: 11px;
	color: var(--ebk-text-secondary, #64648a);
	flex-shrink: 0;
	background: var(--ebk-bar-bg, #f9f9f9);
	padding: 1px 6px;
	border-radius: 10px;
}

/* ── PRICE FILTER ── */
.ebk-shop__price-filter {
	padding: 4px 0;
}

.ebk-shop__price-slider {
	position: relative;
	height: 30px;
	margin: 8px 0;
}

.ebk-shop__price-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--ebk-border, #e8e8ef);
	border-radius: 2px;
	transform: translateY(-50%);
}

.ebk-shop__price-range {
	position: absolute;
	height: 100%;
	background: var(--ebk-accent, #c800c8);
	border-radius: 2px;
}

.ebk-shop__price-input {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 30px;
	background: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
}

.ebk-shop__price-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	background: #fff;
	border: 2px solid var(--ebk-accent, #c800c8);
	border-radius: 50%;
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	transition: transform .15s ease, box-shadow .15s ease;
}

.ebk-shop__price-input::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 2px 8px rgba(200, 0, 200, .25);
}

.ebk-shop__price-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: #fff;
	border: 2px solid var(--ebk-accent, #c800c8);
	border-radius: 50%;
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.ebk-shop__price-input::-moz-range-track {
	background: transparent;
	border: none;
}

.ebk-shop__price-values {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
	color: var(--ebk-text, #1e1e2f);
}

/* ── MAIN / GRID ── */
.ebk-shop__main {
	flex: 1;
	min-width: 0;
}

.ebk-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.ebk-shop[data-columns="3"] .ebk-shop__grid {
	grid-template-columns: repeat(3, 1fr);
}

.ebk-shop[data-columns="5"] .ebk-shop__grid {
	grid-template-columns: repeat(5, 1fr);
}

/* Adjust columns when sidebar is hidden */
.ebk-shop__sidebar--hidden~.ebk-shop__main .ebk-shop__grid {
	grid-template-columns: repeat(5, 1fr);
}

/* ── PRODUCT CARD ── */
.ebk-shop__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ebk-border, #e8e8ef);
	border-radius: var(--ebk-radius, 10px);
	overflow: hidden;
	transition: transform var(--ebk-transition, .2s ease), box-shadow var(--ebk-transition, .2s ease), border-color var(--ebk-transition, .2s ease);
	text-decoration: none;
	color: inherit;
}

.ebk-shop__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ebk-shadow, 0 8px 30px rgba(0, 0, 0, .10));
	border-color: var(--ebk-accent-border, rgba(200, 0, 200, .15));
}

.ebk-shop__card-img-wrap {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--ebk-bar-bg, #f9f9f9);
}

.ebk-shop__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .3s ease;
}

/* Gallery carousel in card */
.ebk-shop__card-gallery {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ebk-shop__card-gallery img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.ebk-shop__card-gallery img.ebk-shop__gallery-active {
	opacity: 1;
}

/* Gallery arrows */
.ebk-shop__gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	border: 1px solid var(--ebk-border, #e8e8ef);
	color: var(--ebk-text, #1e1e2f);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all .15s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .10);
}

.ebk-shop__gallery-arrow:hover {
	background: #fff;
	color: var(--ebk-accent, #c800c8);
	border-color: var(--ebk-accent, #c800c8);
}

.ebk-shop__gallery-arrow--prev {
	left: 6px;
}

.ebk-shop__gallery-arrow--next {
	right: 6px;
}

.ebk-shop__card-img-wrap:hover .ebk-shop__gallery-arrow {
	display: flex;
}

/* Gallery dots indicator */
.ebk-shop__gallery-dots {
	position: absolute;
	bottom: 6px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: none;
	gap: 4px;
	align-items: center;
}

.ebk-shop__card-img-wrap:hover .ebk-shop__gallery-dots {
	display: flex;
}

.ebk-shop__gallery-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	border: 1px solid rgba(0, 0, 0, .15);
	transition: all .15s ease;
}

.ebk-shop__gallery-dot--active {
	background: var(--ebk-accent, #c800c8);
	border-color: var(--ebk-accent, #c800c8);
}

/* Badges */
.ebk-shop__badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 1;
}

.ebk-shop__badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-radius: 4px;
	line-height: 1.5;
}

.ebk-shop__badge--bestseller {
	background: #f6ad55;
	color: #fff;
}

.ebk-shop__badge--new {
	background: var(--ebk-accent, #c800c8);
	color: #fff;
}

.ebk-shop__badge--fast {
	background: #48bb78;
	color: #fff;
}

.ebk-shop__badge--sale {
	background: #e53e3e;
	color: #fff;
}

/* Card body */
.ebk-shop__card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 12px 14px 14px;
	gap: 4px;
}

.ebk-shop__card-cat {
	font-size: 11px;
	color: var(--ebk-text-secondary, #64648a);
	text-transform: uppercase;
	letter-spacing: .03em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ebk-shop__card-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--ebk-text, #1e1e2f);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
	min-height: 2.8em;
}

.ebk-shop__card-sku {
	font-size: 11px;
	color: var(--ebk-text-secondary, #64648a);
}

.ebk-shop__card-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--ebk-accent, #c800c8);
	margin-top: auto;
	padding-top: 6px;
}

.ebk-shop__card-price del {
	color: var(--ebk-text-secondary, #64648a);
	font-size: 12px;
	font-weight: 400;
}

.ebk-shop__card-price ins {
	text-decoration: none;
}

.ebk-shop__price-prefix {
	font-size: 11px;
	font-weight: 400;
	color: var(--ebk-text-secondary, #64648a);
	text-transform: lowercase;
}

/* ── QUICK FILTERS (toggle switches) ── */
.ebk-shop__quick-filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ebk-shop__toggle-item {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
	line-height: 1.3;
}

.ebk-shop__toggle-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ebk-shop__toggle-switch {
	position: relative;
	flex-shrink: 0;
	width: 36px;
	height: 20px;
	border-radius: 10px;
	background: var(--ebk-border, #e2e2ea);
	transition: background .2s;
}

.ebk-shop__toggle-switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
	transition: transform .2s;
}

.ebk-shop__toggle-input:checked+.ebk-shop__toggle-switch {
	background: var(--ebk-accent, #c800c8);
}

.ebk-shop__toggle-input:checked+.ebk-shop__toggle-switch::after {
	transform: translateX(16px);
}

.ebk-shop__toggle-label {
	color: var(--ebk-text-primary, #1e1e2f);
}

/* ── CHECKBOX FILTER LISTS ── */
.ebk-shop__check-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ebk-shop__check-list--colors {
	display: flex;
	flex-direction: column;
}

.ebk-shop__check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
	line-height: 1.3;
}

.ebk-shop__check-item--hidden {
	display: none;
}

.ebk-shop__check-item input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1.5px solid var(--ebk-border, #d0d0d8);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	position: relative;
}

.ebk-shop__check-item input[type="checkbox"]:checked {
	background: var(--ebk-accent, #c800c8);
	border-color: var(--ebk-accent, #c800c8);
}

.ebk-shop__check-item input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ebk-shop__check-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ebk-text-primary, #1e1e2f);
}

.ebk-shop__check-count {
	flex-shrink: 0;
	font-size: 11px;
	color: var(--ebk-text-secondary, #64648a);
	background: var(--ebk-bg-secondary, #f4f4f8);
	padding: 1px 6px;
	border-radius: 8px;
}

/* ── COLOR DOTS ── */
.ebk-shop__color-dot {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: inline-block;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

/* ── SHOW MORE BUTTON ── */
.ebk-shop__show-more {
	display: inline-block;
	background: none;
	border: none;
	padding: 6px 0 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--ebk-accent, #c800c8);
	cursor: pointer;
	text-align: left;
}

.ebk-shop__show-more:hover {
	text-decoration: underline;
}

/* ── DYNAMIC FILTERS CONTAINER ── */
#ebk-filters-dynamic {
	display: flex;
	flex-direction: column;
	gap: 0;
}

#ebk-filters-dynamic .ebk-shop__filter-group {
	border-top: none;
}

/* ── LIST VIEW ── */
.ebk-shop--list .ebk-shop__grid {
	grid-template-columns: 1fr;
	gap: 12px;
}

.ebk-shop--list .ebk-shop__card {
	flex-direction: row;
	align-items: stretch;
}

.ebk-shop--list .ebk-shop__card-img-wrap {
	width: 160px;
	min-width: 160px;
	aspect-ratio: 1;
}

.ebk-shop--list .ebk-shop__card-body {
	padding: 14px 20px;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	justify-content: center;
}

.ebk-shop--list .ebk-shop__card-name {
	-webkit-line-clamp: 2;
	line-clamp: 2;
	min-height: auto;
	font-size: 15px;
}

.ebk-shop--list .ebk-shop__card-cat {
	order: -1;
}

.ebk-shop--list .ebk-shop__card-excerpt {
	display: block;
}

.ebk-shop--list .ebk-shop__card-price {
	margin-top: auto;
	padding-top: 6px;
	font-size: 16px;
}

/* Excerpt — hidden in grid, shown in list */
.ebk-shop__card-excerpt {
	display: none;
	font-size: 12px;
	color: var(--ebk-text-secondary, #64648a);
	line-height: 1.5;
	overflow: hidden;
}

.ebk-shop--list .ebk-shop__card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ── EMPTY STATE ── */
.ebk-shop__empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--ebk-text-secondary, #64648a);
}

.ebk-shop__empty svg {
	margin-bottom: 16px;
	opacity: .5;
}

.ebk-shop__empty-text {
	font-size: 15px;
	margin: 0 0 16px;
}

.ebk-shop__empty-reset {
	padding: 10px 20px;
	background: var(--ebk-accent, #c800c8);
	color: #fff;
	border: none;
	border-radius: var(--ebk-radius-sm, 6px);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--ebk-transition, .2s ease);
}

.ebk-shop__empty-reset:hover {
	background: var(--ebk-accent-hover, #a300a3);
}

/* ── LOADER ── */
.ebk-shop__loader {
	display: flex;
	justify-content: center;
	padding: 40px 0;
}

.ebk-shop__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--ebk-border, #e8e8ef);
	border-top-color: var(--ebk-accent, #c800c8);
	border-radius: 50%;
	animation: ebk-spin .8s linear infinite;
}

@keyframes ebk-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── LOAD MORE ── */
.ebk-shop__load-more-wrap {
	text-align: center;
	padding: 24px 0;
}

.ebk-shop__load-more {
	padding: 12px 32px;
	background: #fff;
	color: var(--ebk-accent, #c800c8);
	border: 2px solid var(--ebk-accent, #c800c8);
	border-radius: var(--ebk-radius, 10px);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--ebk-transition, .2s ease);
}

.ebk-shop__load-more:hover {
	background: var(--ebk-accent, #c800c8);
	color: #fff;
}

.ebk-shop__load-more--loading {
	opacity: .6;
	pointer-events: none;
}

/* ── SKELETON LOADING ── */
.ebk-shop__skeleton {
	background: var(--ebk-bar-bg, #f9f9f9);
	border-radius: var(--ebk-radius, 10px);
	overflow: hidden;
	border: 1px solid var(--ebk-border, #e8e8ef);
}

.ebk-shop__skeleton-img {
	aspect-ratio: 1;
	background: linear-gradient(90deg, var(--ebk-border, #e8e8ef) 25%, #f5f5f5 50%, var(--ebk-border, #e8e8ef) 75%);
	background-size: 200% 100%;
	animation: ebk-shimmer 1.5s infinite;
}

.ebk-shop__skeleton-body {
	padding: 14px;
}

.ebk-shop__skeleton-line {
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--ebk-border, #e8e8ef) 25%, #f5f5f5 50%, var(--ebk-border, #e8e8ef) 75%);
	background-size: 200% 100%;
	animation: ebk-shimmer 1.5s infinite;
	margin-bottom: 8px;
}

.ebk-shop__skeleton-line:last-child {
	width: 50%;
	margin-bottom: 0;
}

@keyframes ebk-shimmer {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

/* ── MOBILE SIDEBAR OVERLAY ── */
.ebk-shop__sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	z-index: 9998;
	opacity: 0;
	transition: opacity .3s ease;
}

.ebk-shop__sidebar-overlay--visible {
	opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
	.ebk-shop__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.ebk-shop__sidebar--hidden~.ebk-shop__main .ebk-shop__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 900px) {
	.ebk-shop__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ebk-shop__sidebar--hidden~.ebk-shop__main .ebk-shop__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.ebk-shop__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.ebk-shop__toolbar-left,
	.ebk-shop__toolbar-right {
		flex-wrap: wrap;
	}

	.ebk-shop__search {
		max-width: 100%;
		flex: 1;
	}

	.ebk-shop__results-info {
		display: none;
	}
}

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

	.ebk-shop__sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 300px !important;
		min-width: 300px !important;
		max-height: 100vh;
		background: #fff;
		z-index: 9999;
		padding: 20px 16px;
		transform: translateX(-100%);
		transition: transform .3s ease;
		box-shadow: var(--ebk-shadow, 0 8px 30px rgba(0, 0, 0, .10));
		overflow-y: auto;
	}

	.ebk-shop__sidebar--mobile-open {
		transform: translateX(0);
	}

	.ebk-shop__sidebar--hidden {
		width: 300px !important;
		min-width: 300px !important;
		opacity: 1;
	}

	.ebk-shop__sidebar-overlay {
		display: block;
	}

	.ebk-shop__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.ebk-shop__sidebar--hidden~.ebk-shop__main .ebk-shop__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ebk-shop__title {
		font-size: 22px;
	}

	.ebk-shop__card-body {
		padding: 10px 12px 12px;
	}

	.ebk-shop__card-name {
		font-size: 12px;
	}

	.ebk-shop__card-price {
		font-size: 14px;
	}

	/* List view on mobile */
	.ebk-shop--list .ebk-shop__card-img-wrap {
		width: 100px;
		min-width: 100px;
	}

	.ebk-shop--list .ebk-shop__card-body {
		padding: 10px 12px;
	}

	.ebk-shop--list .ebk-shop__card-excerpt {
		-webkit-line-clamp: 1;
		line-clamp: 1;
	}

	.ebk-shop__view-toggle {
		display: none;
	}
}

@media (max-width: 480px) {
	.ebk-shop {
		padding: 0 10px;
	}

	.ebk-shop__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.ebk-shop__card-img {
		padding: 8px;
	}

	.ebk-shop__badge {
		font-size: 9px;
		padding: 1px 6px;
	}
}