.dw-demo-showcase {
	--dw-showcase-gap: 24px;
	--dw-showcase-radius: 6px;
	--dw-showcase-text: #202127;
	--dw-showcase-muted: #69707d;
	--dw-showcase-accent: #673de6;
	width: 100%;
	background: transparent;
	color: var(--dw-showcase-text);
}

.dw-demo-showcase *,
.dw-demo-showcase *::before,
.dw-demo-showcase *::after { box-sizing: border-box; }

.dw-demo-showcase__inner {
	width: min(100%, 1360px);
	margin: 0 auto;
	background: transparent;
}

.dw-demo-showcase__head {
	max-width: 1120px;
	margin: 0 auto 34px;
	text-align: center;
}

.dw-demo-showcase__title {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: clamp(32px, 3.25vw, 54px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.045em;
	color: var(--dw-showcase-text);
}

.dw-demo-showcase__title-normal,
.dw-demo-showcase__title-accent { display: inline; }

.dw-demo-showcase__title-normal + .dw-demo-showcase__title-accent::before { content: " "; }

.dw-demo-showcase__title-accent {
	color: var(--dw-showcase-accent);
	background: linear-gradient(90deg, var(--dw-showcase-accent), #9a7dff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.dw-demo-showcase__description {
	max-width: 1080px;
	margin: 20px auto 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--dw-showcase-muted);
}

.dw-showcase-tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px 14px;
	margin: 0 0 30px;
}

.dw-showcase-tabs--member {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dw-showcase-tab {
	appearance: none;
	min-height: 46px;
	padding: 10px 16px;
	border: 1px solid #e1e4eb;
	border-radius: 5px;
	background: #fff;
	box-shadow: none;
	color: #25262b;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dw-showcase-tab:hover,
.dw-showcase-tab:focus-visible {
	border-color: #b8a9f3;
	color: var(--dw-showcase-accent);
	outline: none;
	transform: translateY(-1px);
}

.dw-showcase-tab.is-active,
.dw-showcase-tab[aria-selected="true"] {
	border-color: var(--dw-showcase-accent);
	color: var(--dw-showcase-accent);
	box-shadow: inset 0 0 0 1px rgba(103, 61, 230, .08);
}

.dw-showcase-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 26px;
}

.dw-showcase-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(18, 24, 35, .08);
	transition: transform .18s ease, box-shadow .18s ease;
}

.dw-showcase-product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(18, 24, 35, .12);
}

.dw-showcase-product-card[hidden] { display: none !important; }

.dw-showcase-product-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1.72 / 1;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid #edf0f5;
}

.dw-showcase-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	background: #fff;
	transition: transform .28s ease;
}

.dw-showcase-product-card:hover .dw-showcase-product-card__media img { transform: scale(1.01); }

.dw-showcase-product-card__media.is-placeholder {
	background: linear-gradient(135deg, #fcfcff 0%, #f0f2fa 100%);
}

.dw-showcase-product-card__placeholder {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	width: 100%;
	height: 100%;
	padding: 16px 18px 18px;
	background:
		radial-gradient(circle at top right, rgba(103, 61, 230, .16), transparent 34%),
		linear-gradient(135deg, #1a1730 0%, #2e2458 42%, #673de6 100%);
	color: #fff;
}

.dw-showcase-product-card__placeholder-window {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.14);
	backdrop-filter: blur(4px);
}

.dw-showcase-product-card__placeholder-window i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,.72);
	font-style: normal;
}

.dw-showcase-product-card__placeholder-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 25px;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.18);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.dw-showcase-product-card__placeholder strong {
	display: block;
	font-size: 22px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.03em;
}

.dw-showcase-product-card__placeholder em {
	display: block;
	font-style: normal;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255,255,255,.84);
}

.dw-showcase-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 18px 16px;
}

.dw-showcase-product-card__badges {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.dw-showcase-product-card__badges span,
.dw-showcase-product-card__badges small {
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.dw-showcase-product-card__badges span {
	background: #f1edff;
	color: var(--dw-showcase-accent);
}

.dw-showcase-product-card__badges small {
	background: #f3f4f6;
	color: #6b7280;
}

.dw-showcase-product-card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.38;
	font-weight: 700;
	letter-spacing: -.01em;
}

.dw-showcase-product-card h3 a {
	color: #2c2d31;
	text-decoration: none;
}

.dw-showcase-product-card h3 a:hover { color: var(--dw-showcase-accent); }

.dw-showcase-product-card__byline {
	margin: 0 0 8px;
	color: #8a9099;
	font-size: 12px;
	line-height: 1.45;
	font-style: italic;
}

.dw-showcase-product-card__byline strong { color: #5d626a; font-style: normal; }

.dw-showcase-product-card__summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	margin: 0 0 14px;
	color: #70757f;
	font-size: 12px;
	line-height: 1.48;
}

.dw-showcase-product-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
}

.dw-showcase-product-card__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.dw-showcase-product-card__price del {
	color: #a0a5ad;
	font-size: 11px;
	line-height: 1;
}

.dw-showcase-product-card__price strong {
	color: #2a2c31;
	font-size: 18px;
	line-height: 1.1;
	font-weight: 800;
	white-space: nowrap;
}

.dw-showcase-product-card__price span {
	color: #9a9fa7;
	font-size: 11px;
}

.dw-showcase-product-card__actions {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
}

.dw-showcase-cart-button,
.dw-showcase-preview-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	transition: all .18s ease;
}

.dw-showcase-cart-button {
	width: 40px;
	padding: 0;
	border: 1px solid #d9dce3;
	background: #fff;
	color: #60656e;
}

.dw-showcase-cart-button:hover {
	border-color: var(--dw-showcase-accent);
	color: var(--dw-showcase-accent);
}

.dw-showcase-preview-button {
	padding: 0 18px;
	border: 1px solid var(--dw-showcase-accent);
	background: #fff;
	color: var(--dw-showcase-accent);
	min-width: 124px;
}

.dw-showcase-preview-button:hover {
	background: var(--dw-showcase-accent);
	color: #fff;
}

.dw-showcase-empty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 36px 24px;
	border: 1px dashed #c9cdd8;
	border-radius: 6px;
	background: #fff;
	text-align: center;
	color: var(--dw-showcase-muted);
	font-size: 14px;
}

.dw-showcase-empty strong { color: var(--dw-showcase-text); }
.dw-showcase-empty[hidden] { display: none !important; }
.dw-showcase-empty--filtered { margin-top: 20px; }

/* Manual gallery fallback retained for backwards compatibility. */
.dw-showcase-panel[hidden] { display: none !important; }
.dw-showcase-slider { position: relative; }
.dw-showcase-viewport { overflow: hidden; width: 100%; }
.dw-showcase-track {
	display: flex;
	gap: var(--dw-showcase-gap);
	transform: translate3d(0,0,0);
	transition: transform .38s cubic-bezier(.2,.75,.3,1);
	will-change: transform;
}
.dw-showcase-card {
	flex: 0 0 calc((100% - (var(--dw-showcase-gap) * 2)) / 3);
	min-width: 0;
	margin: 0;
	border-radius: var(--dw-showcase-radius);
	overflow: hidden;
	background: #fff;
}
.dw-showcase-card__image { display: block; width: 100%; height: auto; aspect-ratio: 1.42 / 1; object-fit: cover; }
.dw-showcase-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.96);
	box-shadow: 0 4px 18px rgba(20,25,40,.16);
	color: #222;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}
.dw-showcase-arrow--prev { left: 12px; }
.dw-showcase-arrow--next { right: 12px; }
.dw-showcase-arrow:disabled, .dw-showcase-arrow.is-hidden { opacity: 0; pointer-events: none; }

@media (max-width: 1120px) {
	.dw-showcase-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.dw-showcase-tabs,
	.dw-showcase-tabs--member { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dw-showcase-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dw-showcase-card { flex-basis: calc((100% - var(--dw-showcase-gap)) / 2); }
}

@media (max-width: 767px) {
	.dw-demo-showcase { --dw-showcase-gap: 16px; }
	.dw-demo-showcase__head { margin-bottom: 26px; }
	.dw-demo-showcase__title { font-size: clamp(28px, 9vw, 38px); }
	.dw-demo-showcase__description { margin-top: 14px; font-size: 14px; }
	.dw-showcase-tabs,
	.dw-showcase-tabs--member {
		display: flex;
		gap: 9px;
		overflow-x: auto;
		overflow-y: visible;
		margin: 0 -2px 22px;
		padding: 2px 2px 6px;
		scrollbar-width: thin;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 2px;
		-webkit-overflow-scrolling: touch;
	}
	.dw-showcase-tab { flex: 0 0 auto; min-width: 132px; scroll-snap-align: start; }
	.dw-showcase-product-grid { grid-template-columns: 1fr; gap: 18px; }
	.dw-showcase-product-card__media { aspect-ratio: 1.68 / 1; }
	.dw-showcase-product-card__placeholder strong { font-size: 20px; }
	.dw-showcase-card { flex-basis: 100%; }
	.dw-showcase-arrow { width: 38px; height: 38px; font-size: 30px; }
	.dw-showcase-arrow--prev { left: 8px; }
	.dw-showcase-arrow--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.dw-showcase-track,
	.dw-showcase-tab,
	.dw-showcase-product-card,
	.dw-showcase-product-card__media img { transition: none; }
}


/* v1.0.32.33: desktop marketplace-card alignment. Keep the established mobile layout unchanged. */
.dw-showcase-cart-button img {
	display: block;
	width: 19px;
	height: 19px;
	object-fit: contain;
}

@media (min-width: 901px) {
	.dw-showcase-product-card__body {
		min-height: 216px;
	}

	.dw-showcase-product-card__footer {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-end;
		gap: 10px;
		width: 100%;
		margin-top: auto;
		padding-top: 12px;
	}

	.dw-showcase-product-card__price {
		width: 100%;
		min-width: 0;
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
	}

	.dw-showcase-product-card__price del {
		display: none;
	}

	.dw-showcase-product-card__price strong {
		min-width: 0;
		font-size: 18px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.dw-showcase-product-card__price span {
		flex: 0 0 auto;
		font-size: 11px;
		white-space: nowrap;
		text-align: right;
	}

	.dw-showcase-product-card__actions {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		align-items: stretch;
		gap: 8px;
		width: 100%;
	}

	.dw-showcase-cart-button,
	.dw-showcase-preview-button {
		height: 40px;
		min-height: 40px;
	}

	.dw-showcase-preview-button {
		width: 100%;
		min-width: 0;
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* v1.0.32.38: compact ThemeForest-like card proportions + full cover without letterboxing. */
.dw-showcase-product-grid {
	align-items: start;
}

.dw-showcase-product-card {
	align-self: start;
	height: auto;
}

/* Let the real cover define its own height so it fills the card width without
 * the white top/bottom space created by a fixed aspect-ratio + object-fit:contain.
 * This also keeps the full image visible (no forced crop). */
.dw-showcase-product-card__media {
	aspect-ratio: auto;
	height: auto;
	min-height: 0;
	background: transparent;
}

.dw-showcase-product-card__media img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: initial;
	object-position: initial;
	background: transparent;
}

/* Placeholder cards still need a predictable cover area. */
.dw-showcase-product-card__media.is-placeholder {
	aspect-ratio: 16 / 9;
	background: #fff;
}

@media (min-width: 901px) {
	.dw-showcase-product-card__body {
		min-height: 0;
		padding: 15px 18px 16px;
	}

	.dw-showcase-product-card__badges {
		margin-bottom: 8px;
	}

	.dw-showcase-product-card h3 {
		margin-bottom: 5px;
		line-height: 1.28;
	}

	.dw-showcase-product-card__byline {
		margin-bottom: 6px;
		line-height: 1.35;
	}

	.dw-showcase-product-card__footer {
		gap: 8px;
		padding-top: 8px;
	}

	.dw-showcase-product-card__price {
		gap: 8px;
	}
}

@media (max-width: 900px) {
	/* Keep the mobile layout compact too, while preserving the complete cover. */
	.dw-showcase-product-card__media {
		aspect-ratio: auto;
	}

	.dw-showcase-product-card__media.is-placeholder {
		aspect-ratio: 16 / 9;
	}
}
