/**
 * Stores directory (A4). Routed at /stores/ by includes/stores-directory.php.
 * Depends on: tokens.css, components.css
 */

.ize-stores {
	max-width: var(--ize-container);
	margin: 0 auto;
	padding: var(--ize-4);
}

.ize-stores__head {
	padding: var(--ize-5) 0 var(--ize-3);
}
.ize-stores__title {
	font-size: var(--ize-fs-xl);
	margin: 0 0 var(--ize-1);
}
.ize-stores__sub {
	color: var(--ize-ink-2);
	font-size: var(--ize-fs-md);
	margin: 0;
}

.ize-stores__section {
	margin-bottom: var(--ize-6);
}
.ize-stores__empty {
	padding: var(--ize-6) 0;
}

/* ── Store grid ──────────────────────────────────────────────────────────── */
.ize-stores__grid {
	display: grid;
	/* Mobile: two cards per row. */
	grid-template-columns: repeat(2, 1fr);
	gap: var(--ize-3);
}
@media (min-width: 600px) {
	.ize-stores__grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: var(--ize-4);
	}
}

.ize-store-card {
	display: block;
	background: var(--ize-surface);
	border: 1px solid var(--ize-line);
	border-radius: var(--ize-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s var(--ize-ease), transform 0.15s var(--ize-ease);
}
.ize-store-card:hover {
	box-shadow: var(--ize-shadow);
	transform: translateY(-2px);
}
.ize-store-card:focus-visible {
	outline-offset: 2px;
}

.ize-store-card__banner {
	height: 72px;
	background-color: var(--ize-surface-3);
	background-image: var(--ize-banner-gradient);
	background-size: cover;
	background-position: center;
}

.ize-store-card__logo {
	width: 56px;
	height: 56px;
	margin: -28px 0 0 var(--ize-4);
	border: 3px solid var(--ize-surface);
	border-radius: 50%;
	background: var(--ize-surface-2);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ize-store-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ize-store-card__initial {
	font-size: var(--ize-fs-lg);
	font-weight: 700;
	color: var(--ize-ink-2);
}

.ize-store-card__body {
	padding: var(--ize-2) var(--ize-4) var(--ize-4);
}
.ize-store-card__name {
	font-size: var(--ize-fs-md);
	font-weight: 700;
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ize-store-card__tagline {
	margin: 0 0 var(--ize-2);
	color: var(--ize-ink-2);
	font-size: var(--ize-fs-sm);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ize-store-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ize-1) var(--ize-3);
	font-size: var(--ize-fs-xs);
	color: var(--ize-ink-3);
}

