/* =========================================================================
   Multivendor Marketplace — public vendor storefront.
   Scoped under .mvmp-app like the rest of the vendor area, so it inherits the
   same palette and the same container width. The product grid is ours: the
   page used to hand the loop to WooCommerce's template part, which renders as
   a plain bulleted list unless WooCommerce's own stylesheet happens to be on
   the page — and on this hand-built page it is not.
   ========================================================================= */

.mvmp-store { padding-block: 20px 44px; }

.mvmp-store__hero {
	position: relative;
	background: var(--mvmp-primary);
	background-size: cover;
	background-position: center;
	border-radius: var(--mvmp-radius);
	overflow: hidden;
	margin-block-end: 22px;
	min-height: 170px;
	display: flex;
	align-items: flex-end;
}
.mvmp-store__hero.has-banner::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .18));
}
.mvmp-store__hero-inner {
	position: relative; z-index: 1;
	display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
	padding: 22px; width: 100%; color: #fff;
}
.mvmp-store__logo {
	width: 84px; height: 84px; flex: none;
	border-radius: 14px; object-fit: cover;
	border: 3px solid #fff; background: #fff; display: block;
}
.mvmp-store__logo--mark {
	display: flex; align-items: center; justify-content: center;
	font-size: 34px; font-weight: 800; color: var(--mvmp-primary);
}
.mvmp-store__id { min-width: 0; }
.mvmp-store__name { margin: 0; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.25; }
.mvmp-store__desc { margin: 6px 0 0; max-width: 60ch; color: rgba(255, 255, 255, .92); font-size: 14px; }
.mvmp-store__meta {
	display: flex; flex-wrap: wrap; gap: 14px;
	margin-block-start: 8px; font-size: 13px; color: rgba(255, 255, 255, .85);
}

@media (max-width: 640px) {
	.mvmp-store__hero { min-height: 0; }
	.mvmp-store__hero-inner { padding: 16px; gap: 12px; }
	.mvmp-store__logo { width: 62px; height: 62px; border-radius: 12px; }
	.mvmp-store__logo--mark { font-size: 26px; }
	.mvmp-store__name { font-size: 20px; }
	.mvmp-store__desc { font-size: 13px; }
}

/* Grid ------------------------------------------------------------------- */
.mvmp-store__grid {
	display: grid; gap: 14px; list-style: none; margin: 0; padding: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .mvmp-store__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .mvmp-store__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 380px) { .mvmp-store__grid { grid-template-columns: minmax(0, 1fr); } }

.mvmp-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--mvmp-card);
	border: 1px solid var(--mvmp-line);
	border-radius: var(--mvmp-radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mvmp-card:hover { border-color: var(--mvmp-primary); box-shadow: var(--mvmp-shadow); }
.mvmp-card__media {
	position: relative; display: block; aspect-ratio: 1 / 1;
	background: var(--mvmp-canvas); overflow: hidden;
}
.mvmp-card__media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
}
.mvmp-card__badge {
	position: absolute; inset-inline-start: 8px; inset-block-start: 8px;
	background: var(--mvmp-accent); color: #fff;
	font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.mvmp-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.mvmp-card__title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.mvmp-card__title a { color: var(--mvmp-ink); }
.mvmp-card__title a:hover { color: var(--mvmp-primary); }
.mvmp-card__price { font-size: 15px; font-weight: 800; color: var(--mvmp-primary-dark); }
.mvmp-card__price del { font-weight: 500; font-size: 13px; color: var(--mvmp-muted); margin-inline-end: 6px; }
.mvmp-card__price ins { text-decoration: none; }
.mvmp-card__cta { margin-block-start: auto; width: 100%; }

/* Pagination ------------------------------------------------------------- */
.mvmp-store__pagination {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
	margin-block-start: 24px;
}
.mvmp-store__pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px;
	border: 1px solid var(--mvmp-line); border-radius: var(--mvmp-radius-sm);
	background: #fff; color: var(--mvmp-ink); font-weight: 600; text-decoration: none;
}
.mvmp-store__pagination .page-numbers.current,
.mvmp-store__pagination .page-numbers:hover {
	background: var(--mvmp-primary); border-color: var(--mvmp-primary); color: #fff;
}

/* "Sold by" line on the single product page ------------------------------ */
.mvmp-sold-by { font-size: 14px; color: #6B7280; }
.mvmp-sold-by a { color: #16181D; font-weight: 600; text-decoration: none; }
