/* Elite Showcase — front-end layout styles */

.elsc {
	--elsc-accent: #c8892b;
	--elsc-radius: 14px;
	--elsc-ink: #14171c;
	--elsc-muted: #6b7280;
	--elsc-line: rgba(20, 23, 28, 0.1);
	--elsc-surface: #ffffff;
	--elsc-cols: 3;
	font-family: inherit;
	color: var(--elsc-ink);
	margin: 2.5rem 0;
}

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

.elsc-heading {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
}

.elsc-empty {
	padding: 2rem;
	border: 1px dashed var(--elsc-line, #ddd);
	border-radius: 14px;
	text-align: center;
	color: #6b7280;
}

.elsc-track {
	display: grid;
	grid-template-columns: repeat(var(--elsc-cols), minmax(0, 1fr));
	gap: 1.5rem;
}

.elsc-card {
	position: relative;
	background: var(--elsc-surface);
	border-radius: var(--elsc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.elsc-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f0;
}

.elsc-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.elsc-card:hover .elsc-media img { transform: scale(1.06); }

.elsc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--elsc-accent);
	color: #fff;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
}

.elsc-body {
	padding: 1.1rem 1.2rem 1.3rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	flex: 1;
}

.elsc-title {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.elsc-title a { color: inherit; text-decoration: none; }
.elsc-title a:hover { color: var(--elsc-accent); }

.elsc-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.elsc-meta li {
	display: inline-flex;
	gap: 4px;
	align-items: baseline;
	font-size: 0.72rem;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(20, 23, 28, 0.05);
}

.elsc-meta span { color: var(--elsc-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.elsc-meta strong { font-weight: 600; }

.elsc-excerpt {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--elsc-muted);
}

.elsc-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.elsc-price { font-size: 1.05rem; font-weight: 700; }
.elsc-price del { opacity: 0.45; font-weight: 400; margin-right: 6px; }
.elsc-price .elsc-note { font-weight: 400; color: var(--elsc-muted); font-size: 0.75rem; }

.elsc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.05rem;
	border-radius: calc(var(--elsc-radius) - 6px);
	background: var(--elsc-ink);
	color: #fff !important;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background 0.25s ease, transform 0.25s ease;
	white-space: nowrap;
}

.elsc-btn:hover { background: var(--elsc-accent); transform: translateY(-1px); }

@media (max-width: 1024px) { .elsc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .elsc-track { grid-template-columns: 1fr; } }

/* 01 Classic Grid */
.elsc--classic-grid .elsc-card { border: 1px solid var(--elsc-line); }
.elsc--classic-grid .elsc-card:hover { border-color: var(--elsc-accent); }

/* 02 Elevated Cards */
.elsc--elevated-cards .elsc-card { box-shadow: 0 6px 22px -14px rgba(0, 0, 0, 0.45); }
.elsc--elevated-cards .elsc-card:hover { transform: translateY(-8px); box-shadow: 0 26px 48px -22px rgba(0, 0, 0, 0.4); }

/* 03 Minimal List */
.elsc--minimal-list .elsc-track { grid-template-columns: 1fr; gap: 0; }
.elsc--minimal-list .elsc-card { flex-direction: row; align-items: center; gap: 1.4rem; border-radius: 0; border-bottom: 1px solid var(--elsc-line); padding: 1.2rem 0; }
.elsc--minimal-list .elsc-media { width: 150px; flex: none; aspect-ratio: 1; border-radius: 10px; }
.elsc--minimal-list .elsc-body { padding: 0; }

/* 04 Masonry */
.elsc--masonry .elsc-track { display: block; column-count: var(--elsc-cols); column-gap: 1.5rem; }
.elsc--masonry .elsc-card { break-inside: avoid; margin-bottom: 1.5rem; border: 1px solid var(--elsc-line); }
.elsc--masonry .elsc-media { aspect-ratio: auto; }
.elsc--masonry .elsc-card:nth-child(3n) .elsc-media img { aspect-ratio: 3 / 4; }
.elsc--masonry .elsc-card:nth-child(3n + 1) .elsc-media img { aspect-ratio: 1; }
.elsc--masonry .elsc-card:nth-child(3n + 2) .elsc-media img { aspect-ratio: 4 / 3; }
@media (max-width: 1024px) { .elsc--masonry .elsc-track { column-count: 2; } }
@media (max-width: 640px)  { .elsc--masonry .elsc-track { column-count: 1; } }

/* 05 Image Overlay */
.elsc--overlay .elsc-card { border-radius: var(--elsc-radius); }
.elsc--overlay .elsc-media { aspect-ratio: 3 / 4; }
.elsc--overlay .elsc-body {
	position: absolute;
	inset: auto 0 0 0;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.15) 65%, transparent);
	padding: 3.5rem 1.2rem 1.2rem;
}
.elsc--overlay .elsc-excerpt,
.elsc--overlay .elsc-meta span { color: rgba(255, 255, 255, 0.75); }
.elsc--overlay .elsc-meta li { background: rgba(255, 255, 255, 0.16); }
.elsc--overlay .elsc-btn { background: #fff; color: var(--elsc-ink) !important; }
.elsc--overlay .elsc-btn:hover { background: var(--elsc-accent); color: #fff !important; }

/* 06 Carousel */
.elsc--carousel { position: relative; }
.elsc--carousel .elsc-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 1rem;
	scrollbar-width: thin;
}
.elsc--carousel .elsc-card { flex: 0 0 clamp(240px, calc(100% / var(--elsc-cols) - 1.2rem), 420px); scroll-snap-align: start; border: 1px solid var(--elsc-line); }
.elsc-nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.4rem; }
.elsc-nav button {
	width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--elsc-line); background: #fff; font-size: 1rem;
	transition: background 0.2s ease, color 0.2s ease;
}
.elsc-nav button:hover { background: var(--elsc-accent); color: #fff; border-color: transparent; }

/* 07 Magazine Feature */
.elsc--magazine .elsc-track { grid-template-columns: repeat(6, 1fr); }
.elsc--magazine .elsc-card { grid-column: span 2; border-bottom: 3px solid var(--elsc-ink); border-radius: 0; }
.elsc--magazine .elsc-card:first-child { grid-column: span 6; flex-direction: row; align-items: stretch; }
.elsc--magazine .elsc-card:first-child .elsc-media { width: 58%; aspect-ratio: auto; }
.elsc--magazine .elsc-card:first-child .elsc-title { font-size: 1.9rem; }
.elsc--magazine .elsc-card:first-child .elsc-body { justify-content: center; padding: 2rem; }
@media (max-width: 900px) {
	.elsc--magazine .elsc-track { grid-template-columns: 1fr; }
	.elsc--magazine .elsc-card, .elsc--magazine .elsc-card:first-child { grid-column: span 1; flex-direction: column; }
	.elsc--magazine .elsc-card:first-child .elsc-media { width: 100%; }
}

/* 08 Compact Rows */
.elsc--compact-rows .elsc-track { grid-template-columns: 1fr; gap: 0.7rem; }
.elsc--compact-rows .elsc-card { flex-direction: row; align-items: center; background: rgba(20, 23, 28, 0.03); padding: 0.7rem; gap: 1rem; }
.elsc--compact-rows .elsc-media { width: 84px; height: 84px; flex: none; aspect-ratio: 1; border-radius: 10px; }
.elsc--compact-rows .elsc-body { padding: 0; gap: 0.35rem; }
.elsc--compact-rows .elsc-excerpt { display: none; }

/* 09 Polaroid */
.elsc--polaroid .elsc-card { background: #fff; padding: 12px 12px 0; box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.6); border-radius: 4px; }
.elsc--polaroid .elsc-card:nth-child(odd)  { transform: rotate(-1.2deg); }
.elsc--polaroid .elsc-card:nth-child(even) { transform: rotate(1.2deg); }
.elsc--polaroid .elsc-card:hover { transform: rotate(0) translateY(-6px); }
.elsc--polaroid .elsc-media { aspect-ratio: 1; border-radius: 2px; }
.elsc--polaroid .elsc-body { text-align: center; padding: 1rem 0.4rem 1.4rem; }
.elsc--polaroid .elsc-foot { justify-content: center; }

/* 10 Glassmorphism */
.elsc--glass { background: linear-gradient(135deg, #1c2230, #2f3b52); padding: 2.5rem; border-radius: 24px; }
.elsc--glass .elsc-heading { color: #fff; }
.elsc--glass .elsc-card { background: rgba(255, 255, 255, 0.09); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }
.elsc--glass .elsc-excerpt, .elsc--glass .elsc-meta span { color: rgba(255, 255, 255, 0.68); }
.elsc--glass .elsc-meta li { background: rgba(255, 255, 255, 0.12); }
.elsc--glass .elsc-btn { background: var(--elsc-accent); }

/* 11 Outlined Editorial */
.elsc--bordered .elsc-card { border: 2px solid var(--elsc-ink); border-radius: 0; }
.elsc--bordered .elsc-media { border-bottom: 2px solid var(--elsc-ink); }
.elsc--bordered .elsc-title { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.98rem; }
.elsc--bordered .elsc-btn { border-radius: 0; background: transparent; color: var(--elsc-ink) !important; border: 2px solid var(--elsc-ink); }
.elsc--bordered .elsc-btn:hover { background: var(--elsc-ink); color: #fff !important; }

/* 12 Split Showcase */
.elsc--showcase-split .elsc-track { grid-template-columns: 1fr; gap: 1.2rem; }
.elsc--showcase-split .elsc-card { flex-direction: row; border: 1px solid var(--elsc-line); min-height: 260px; }
.elsc--showcase-split .elsc-card:nth-child(even) { flex-direction: row-reverse; }
.elsc--showcase-split .elsc-media { width: 50%; aspect-ratio: auto; }
.elsc--showcase-split .elsc-body { width: 50%; justify-content: center; padding: 2rem; }
.elsc--showcase-split .elsc-title { font-size: 1.5rem; }
@media (max-width: 768px) {
	.elsc--showcase-split .elsc-card,
	.elsc--showcase-split .elsc-card:nth-child(even) { flex-direction: column; }
	.elsc--showcase-split .elsc-media, .elsc--showcase-split .elsc-body { width: 100%; }
}

/* 13 Hover Reveal */
.elsc--hover-reveal .elsc-card { border-radius: var(--elsc-radius); }
.elsc--hover-reveal .elsc-media { aspect-ratio: 1; }
.elsc--hover-reveal .elsc-body {
	position: absolute; inset: 0; color: #fff; justify-content: flex-end;
	background: rgba(12, 14, 18, 0.82);
	opacity: 0; transition: opacity 0.4s ease;
}
.elsc--hover-reveal .elsc-card:hover .elsc-body { opacity: 1; }
.elsc--hover-reveal .elsc-excerpt, .elsc--hover-reveal .elsc-meta span { color: rgba(255, 255, 255, 0.72); }
.elsc--hover-reveal .elsc-meta li { background: rgba(255, 255, 255, 0.14); }
.elsc--hover-reveal .elsc-btn { background: var(--elsc-accent); }

/* 14 Bento Grid */
.elsc--bento .elsc-track { grid-auto-rows: 240px; grid-template-columns: repeat(4, 1fr); }
.elsc--bento .elsc-card { border: 1px solid var(--elsc-line); }
.elsc--bento .elsc-card:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.elsc--bento .elsc-card:nth-child(6n + 4) { grid-column: span 2; }
.elsc--bento .elsc-media { flex: 1; aspect-ratio: auto; }
.elsc--bento .elsc-body { padding: 0.9rem 1rem 1.1rem; }
.elsc--bento .elsc-excerpt { display: none; }
@media (max-width: 900px) { .elsc--bento .elsc-track { grid-template-columns: repeat(2, 1fr); } }

/* 15 Catalog Table */
.elsc-table-wrap { overflow-x: auto; border: 1px solid var(--elsc-line); border-radius: var(--elsc-radius); }
.elsc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.elsc-table th {
	text-align: left; padding: 0.9rem 1rem; background: rgba(20, 23, 28, 0.04);
	font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--elsc-muted);
}
.elsc-table td { padding: 0.9rem 1rem; border-top: 1px solid var(--elsc-line); vertical-align: middle; }
.elsc-cell-main { display: flex; align-items: center; gap: 0.9rem; }
.elsc-cell-main img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.elsc-cell-main a { color: inherit; text-decoration: none; font-weight: 600; }
.elsc-chip { display: inline-block; font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; background: rgba(20, 23, 28, 0.05); margin: 2px 4px 2px 0; }

/* 16 Dark Spotlight */
.elsc--spotlight { background: #0d0f13; padding: 2.5rem; border-radius: 22px; }
.elsc--spotlight .elsc-heading { color: #fff; }
.elsc--spotlight .elsc-card { background: #14171d; color: #f4f4f5; border: 1px solid rgba(255, 255, 255, 0.08); }
.elsc--spotlight .elsc-card:hover { border-color: var(--elsc-accent); box-shadow: 0 0 0 1px var(--elsc-accent), 0 24px 60px -30px var(--elsc-accent); }
.elsc--spotlight .elsc-excerpt, .elsc--spotlight .elsc-meta span { color: rgba(255, 255, 255, 0.6); }
.elsc--spotlight .elsc-meta li { background: rgba(255, 255, 255, 0.08); }
.elsc--spotlight .elsc-price { color: var(--elsc-accent); }
.elsc--spotlight .elsc-btn { background: var(--elsc-accent); }

/* 17 Ticket Stub */
.elsc--ticket .elsc-card {
	border: 1px dashed rgba(20, 23, 28, 0.35);
	background: #fffdf7;
	position: relative;
}
.elsc--ticket .elsc-card::before,
.elsc--ticket .elsc-card::after {
	content: ""; position: absolute; width: 22px; height: 22px; border-radius: 999px;
	background: var(--elsc-page-bg, #fff); border: 1px dashed rgba(20, 23, 28, 0.35);
	top: calc(60% - 11px);
}
.elsc--ticket .elsc-card::before { left: -12px; }
.elsc--ticket .elsc-card::after { right: -12px; }
.elsc--ticket .elsc-foot { border-top: 1px dashed rgba(20, 23, 28, 0.3); padding-top: 0.9rem; }
.elsc--ticket .elsc-price { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---- Per-item style overrides (chosen on a single product or service) ---- */
.elsc-card.elsc-item { border-radius: var(--elsc-radius); }
.elsc-card.elsc--classic-grid { border: 1px solid var(--elsc-line); }
.elsc-card.elsc--elevated-cards { box-shadow: 0 6px 22px -14px rgba(0, 0, 0, 0.45); border: 0; }
.elsc-card.elsc--elevated-cards:hover { transform: translateY(-8px); box-shadow: 0 26px 48px -22px rgba(0, 0, 0, 0.4); }
.elsc-card.elsc--overlay .elsc-body,
.elsc-card.elsc--hover-reveal .elsc-body {
	position: absolute; inset: auto 0 0 0; color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.15) 65%, transparent);
	padding: 3.5rem 1.2rem 1.2rem;
}
.elsc-card.elsc--overlay .elsc-excerpt,
.elsc-card.elsc--hover-reveal .elsc-excerpt { color: rgba(255, 255, 255, 0.75); }
.elsc-card.elsc--overlay .elsc-meta li,
.elsc-card.elsc--hover-reveal .elsc-meta li { background: rgba(255, 255, 255, 0.16); }
.elsc-card.elsc--hover-reveal .elsc-body { background: rgba(12, 14, 18, 0.82); opacity: 0; transition: opacity .4s ease; }
.elsc-card.elsc--hover-reveal:hover .elsc-body { opacity: 1; }
.elsc-card.elsc--glass { background: rgba(20, 23, 28, 0.06); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.35); }
.elsc-card.elsc--bordered { border: 2px solid var(--elsc-ink); border-radius: 0; }
.elsc-card.elsc--bordered .elsc-media { border-bottom: 2px solid var(--elsc-ink); }
.elsc-card.elsc--polaroid { padding: 12px 12px 0; box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.6); border-radius: 4px; }
.elsc-card.elsc--polaroid .elsc-body { text-align: center; }
.elsc-card.elsc--spotlight { background: #14171d; color: #f4f4f5; border: 1px solid rgba(255, 255, 255, 0.08); }
.elsc-card.elsc--spotlight .elsc-excerpt { color: rgba(255, 255, 255, 0.6); }
.elsc-card.elsc--spotlight .elsc-meta li { background: rgba(255, 255, 255, 0.08); }
.elsc-card.elsc--spotlight .elsc-price { color: var(--elsc-accent); }
.elsc-card.elsc--ticket { border: 1px dashed rgba(20, 23, 28, 0.35); background: #fffdf7; }
.elsc-card.elsc--ticket .elsc-foot { border-top: 1px dashed rgba(20, 23, 28, 0.3); padding-top: 0.9rem; }

/* Server-side filtering: loading state + pagination */
.elsc.is-loading .elsc-results { opacity: .45; pointer-events: none; transition: opacity .2s ease; }
.elsc-filter-apply {
	padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--elsc-accent, #c8892b); color: #fff; font-weight: 600;
}
.elsc-filter-apply:hover { filter: brightness(1.07); }
.elsc-filter-reset { text-decoration: none; }
.elsc-filter-spinner { width: 16px; height: 16px; display: none; border-radius: 50%;
	border: 2px solid currentColor; border-top-color: transparent; animation: elsc-spin .7s linear infinite; }
.elsc.is-loading .elsc-filter-spinner { display: inline-block; }
@keyframes elsc-spin { to { transform: rotate(360deg); } }
.elsc-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.elsc-pagination .elsc-page {
	min-width: 40px; padding: 8px 12px; text-align: center; text-decoration: none;
	border-radius: 10px; border: 1px solid rgba(128,128,128,.28); color: inherit; font-weight: 600;
}
.elsc-pagination .elsc-page:hover { border-color: var(--elsc-accent, #c8892b); }
.elsc-pagination .elsc-page.is-active { background: var(--elsc-accent, #c8892b); color: #fff; border-color: transparent; }
.elsc-page-gap { padding: 8px 4px; opacity: .6; }

/* Sort control */
.elsc-filter--sort { margin-left: auto; }
.elsc-filter--sort select { min-width: 190px; }
@media (max-width: 780px) {
	.elsc-filter--sort { margin-left: 0; width: 100%; }
	.elsc-filter--sort select { width: 100%; }
}
