/* ==========================================================================
   DTP Category Showcase — fully scoped under .dtp-cat-showcase
   ========================================================================== */

.dtp-cat-showcase {
	width: 100%;
	font-family: inherit;
}

.dtp-cat-showcase *,
.dtp-cat-showcase *::before,
.dtp-cat-showcase *::after {
	box-sizing: border-box;
}

.dtp-cs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.dtp-cs-heading {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

.dtp-cs-viewall {
	flex: 0 0 auto;
	padding: 9px 18px;
	border-radius: 20px;
	background: #f0eefd;
	color: #5b4fe0;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.dtp-cs-viewall:hover {
	opacity: 0.85;
}

.dtp-cs-grid {
	--dtp-cs-columns: 8;
	--dtp-cs-gap: 16px;

	display: grid;
	grid-template-columns: repeat(var(--dtp-cs-columns), 1fr);
	gap: var(--dtp-cs-gap);
	overflow: hidden;
}

.dtp-cs-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	min-width: 0;
	max-width: 100%;
}

.dtp-cs-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f5f5f7;
	border-radius: 16px;
	overflow: hidden;
	padding: 16px;
	margin-bottom: 10px;
	transition: transform 0.15s ease;
}

.dtp-cs-item:hover .dtp-cs-tile {
	transform: translateY(-3px);
}

.dtp-cs-tile img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.dtp-cs-name {
	font-size: 14px;
	font-weight: 600;
	color: #222222;
	text-align: center;
	overflow-wrap: break-word;
	max-width: 100%;
}

.dtp-cs-empty {
	font-size: 14px;
	color: #666;
}

/* Hardcoded responsive fallback — guarantees correct mobile/tablet layout
   even if Elementor's own per-instance responsive override doesn't apply.
   Scoped to .dtp-cat-showcase specifically so it doesn't affect the
   Category Browser widget, which shares the .dtp-cs-grid class. */
@media (max-width: 1024px) {
	.dtp-cat-showcase .dtp-cs-grid {
		--dtp-cs-columns: 4 !important;
	}
}

@media (max-width: 767px) {
	.dtp-cat-showcase .dtp-cs-grid {
		--dtp-cs-columns: 4 !important;
	}
}

/* ==========================================================================
   DTP Category Browser — scoped under .dtp-cat-browser
   ========================================================================== */

.dtp-cat-browser {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	width: 100%;
	font-family: inherit;
}

.dtp-cat-browser *,
.dtp-cat-browser *::before,
.dtp-cat-browser *::after {
	box-sizing: border-box;
}

.dtp-cb-sidebar {
	flex: 0 0 300px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
}

.dtp-cb-sidebar-title {
	margin: 0;
	padding: 22px 24px 16px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

.dtp-cb-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dtp-cb-sidebar-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 24px;
	background: transparent;
	border: none;
	border-top: 1px solid #f0f0f0;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.15s ease;
}

.dtp-cb-sidebar-item:hover {
	background-color: #faf9fd;
}

.dtp-cb-sidebar-item.is-active {
	background-color: #f4effc;
}

.dtp-cb-sidebar-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f0f0;
}

.dtp-cb-sidebar-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dtp-cb-sidebar-name {
	font-size: 15px;
	font-weight: 600;
	color: #333333;
}

.dtp-cb-content {
	flex: 1 1 auto;
	min-width: 0;
}

.dtp-cb-panel {
	display: none;
}

.dtp-cb-panel.is-active {
	display: block;
}

.dtp-cb-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 14px;
}

.dtp-cb-breadcrumb a {
	color: #888;
	text-decoration: none;
}

.dtp-cb-breadcrumb a:hover {
	color: var(--dtp-pas-accent, #5b4fe0);
}

.dtp-cb-breadcrumb-sep {
	margin: 0 6px;
}

.dtp-cb-heading {
	margin: 0 0 24px;
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
}

.dtp-cb-grid {
	--dtp-cs-columns: 5;
}

@media (max-width: 900px) {
	.dtp-cat-browser {
		flex-direction: column;
	}

	.dtp-cb-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}
}
