.eawccb-wrapper {
	width: 100%;
	position: relative;
}

/* ================= GRID ================= */
.eawccb-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.eawccb-item a,
.eawccb-item > div {
	display: block;
	text-decoration: none;
	color: inherit;
}

.eawccb-item-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* ================= IMAGE (common) ================= */
.eawccb-image {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.eawccb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.eawccb-zoom:hover .eawccb-img {
	transform: scale(1.08);
}

/* ================= STYLE 1: CARD ================= */
.eawccb-item.style-card .eawccb-image {
	height: 220px;
	border-radius: 8px;
}

/* ================= STYLE 2: CIRCLE ================= */
.eawccb-item.style-circle .eawccb-item-inner {
	align-items: center;
}

.eawccb-item.style-circle .eawccb-image {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	margin: 0 auto;
	overflow: hidden;
}

.eawccb-item.style-circle .eawccb-img {
	border-radius: 50%;
}

.eawccb-title-overlay-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
	background: rgba(0, 0, 0, 0.38);
	border-radius: 50%;
	z-index: 2;
}

.eawccb-title-overlay-center .eawccb-cat-title,
.eawccb-title-overlay-center .eawccb-count-inline {
	color: #ffffff;
}

/* ================= STYLE 3: BADGE ================= */
.eawccb-item.style-badge .eawccb-image {
	height: 220px;
	border-radius: 8px;
}

.eawccb-badge {
	position: absolute;
	z-index: 3;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.eawccb-badge.pos-top-left { top: 12px; left: 12px; }
.eawccb-badge.pos-top-right { top: 12px; right: 12px; }
.eawccb-badge.pos-bottom-left { bottom: 12px; left: 12px; }
.eawccb-badge.pos-bottom-right { bottom: 12px; right: 12px; }

/* ================= STYLE 4: OVERLAY ================= */
.eawccb-item.style-overlay .eawccb-image {
	height: 260px;
	border-radius: 10px;
}

.eawccb-title-overlay-bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 30px 16px 14px;
	text-align: left;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%);
}

.eawccb-title-overlay-bottom .eawccb-cat-title,
.eawccb-title-overlay-bottom .eawccb-count-inline {
	color: #ffffff;
	display: block;
}

.eawccb-title-overlay-bottom .eawccb-count-inline {
	opacity: .85;
	margin-top: 2px;
}

/* ================= STYLE 5: MINIMAL LIST ================= */
.eawccb-item.style-minimal .eawccb-item-inner {
	flex-direction: row;
	align-items: center;
	text-align: left;
}

.eawccb-item.style-minimal .eawccb-image {
	width: 70px;
	height: 70px;
	flex: 0 0 70px;
	border-radius: 10px;
}

.eawccb-item.style-minimal .eawccb-title-wrap {
	margin-top: 0;
	margin-left: 14px;
	text-align: left;
	flex: 1;
}

/* ================= STYLE 6: ICON FRAME ================= */
.eawccb-item.style-frame .eawccb-item-inner {
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.eawccb-item.style-frame:hover .eawccb-item-inner {
	transform: translateY(-6px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.eawccb-item.style-frame .eawccb-image {
	height: 160px;
	border-radius: 12px;
}

/* ================= TITLE / COUNT (shared) ================= */
.eawccb-title-wrap {
	width: 100%;
	margin-top: 12px;
	text-align: center;
}

.eawccb-cat-title {
	display: block;
	font-weight: 600;
	color: #222222;
}

.eawccb-count-inline {
	display: block;
	font-size: 13px;
	margin-top: 4px;
	color: #888888;
}

/* ================= CAROUSEL ================= */
.eawccb-carousel {
	position: relative;
}

.eawccb-carousel-track {
	display: flex;
	gap: var(--eawccb-gap, 20px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	padding: 4px;
	margin: -4px;
}

.eawccb-carousel-track::-webkit-scrollbar {
	display: none;
}

.eawccb-carousel-track.eawccb-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.eawccb-carousel-track > .eawccb-item {
	flex: 0 0 calc((100% - (var(--eawccb-gap, 20px) * (var(--eawccb-slides, 4) - 1))) / var(--eawccb-slides, 4));
	max-width: calc((100% - (var(--eawccb-gap, 20px) * (var(--eawccb-slides, 4) - 1))) / var(--eawccb-slides, 4));
	scroll-snap-align: start;
}

.eawccb-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	z-index: 5;
	padding: 0;
	transition: transform .2s ease, box-shadow .2s ease;
}

.eawccb-arrow:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.eawccb-arrow:active {
	transform: translateY(-50%) scale(0.92);
}

.eawccb-arrow-prev { left: -18px; }
.eawccb-arrow-next { right: -18px; }

.eawccb-arrow svg {
	width: 45%;
	height: 45%;
	stroke: #273272;
}

.eawccb-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.eawccb-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d5d5d5;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.eawccb-dot.is-active {
	background: #273272;
	transform: scale(1.2);
}

/* ================= RESPONSIVE FALLBACK ================= */
@media (max-width: 1024px) {
	.eawccb-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

	.eawccb-arrow-prev { left: 4px; }
	.eawccb-arrow-next { right: 4px; }
}
