/*
 * Dokan Vendor Storefront by ONVORE — front-end stylesheet
 *
 * All rules scoped under .onvore-vs-storefront on <body> so we never leak
 * outside the public store page. Per-layout differences live under
 * .onvore-vs-layout-<key> modifiers.
 */

/* ---------- Shell --------------------------------------------------- */

.onvore-vs-shell {
	box-sizing: border-box;
	color: #1d2327;
	line-height: 1.55;
}

.onvore-vs-shell *,
.onvore-vs-shell *::before,
.onvore-vs-shell *::after {
	box-sizing: border-box;
}

.onvore-vs-shell__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 64px;
}

.onvore-vs-shell__inner--narrow {
	max-width: 1040px;
}

.onvore-vs-shell__columns {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	margin-top: 32px;
}

.onvore-vs-shell__columns--compact {
	grid-template-columns: 240px 1fr;
	gap: 24px;
	margin-top: 16px;
}

@media (max-width: 860px) {
	.onvore-vs-shell__columns,
	.onvore-vs-shell__columns--compact {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.onvore-vs-shell__sidebar > * + * {
	margin-top: 20px;
}

/* ---------- Store header (marketplace) ------------------------------ */

.onvore-vs-header {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
}

.onvore-vs-header__banner {
	height: 240px;
	background-position: center;
	background-size: cover;
	background-color: #e2e8f0;
}

.onvore-vs-header__banner--empty {
	background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.onvore-vs-header__inner {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	padding: 20px 24px 24px;
	margin-top: -56px;
	position: relative;
}

.onvore-vs-header__avatar {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	background: #fff;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.onvore-vs-header__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.onvore-vs-header__identity {
	flex: 1 1 auto;
	padding-bottom: 6px;
}

.onvore-vs-header__name {
	margin: 0 0 4px;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.onvore-vs-header__rating {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-size: 14px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.onvore-vs-header__rating-stars {
	letter-spacing: 1px;
	color: #fbbf24;
}

/* ---------- Store info card ---------------------------------------- */

.onvore-vs-info {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}

.onvore-vs-info__title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
}

.onvore-vs-info__list {
	margin: 0;
}

.onvore-vs-info__row {
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}

.onvore-vs-info__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.onvore-vs-info__row dt {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 4px;
}

.onvore-vs-info__row dd {
	margin: 0;
	font-size: 14px;
	color: #1d2327;
}

.onvore-vs-info__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.onvore-vs-info__social li a {
	display: inline-block;
	padding: 4px 10px;
	background: #f1f5f9;
	border-radius: 999px;
	font-size: 13px;
	color: #1d2327;
	text-decoration: none;
}

.onvore-vs-info__social li a:hover {
	background: #e2e8f0;
}

/* ---------- Filter sidebar placeholder ----------------------------- */

.onvore-vs-filters {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	min-height: 32px;
}

.onvore-vs-filters:empty {
	display: none;
}

/* ---------- Product grid ------------------------------------------- */

.onvore-vs-products .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.onvore-vs-products .products li.product,
.onvore-vs-products .products li.product-category {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

.onvore-vs-products__empty {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	color: #64748b;
}

.onvore-vs-products__pagination {
	margin-top: 32px;
}

/* ---------- Standalone layout -------------------------------------- */

.onvore-vs-shell--standalone {
	background: #f8fafc;
	min-height: 100vh;
}

.onvore-vs-standalone__bar {
	background: #0f172a;
	color: #fff;
	padding: 12px 24px;
	display: flex;
	align-items: center;
}

.onvore-vs-standalone__back {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	transition: background 0.15s ease;
}

.onvore-vs-standalone__back:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.onvore-vs-standalone__hero {
	min-height: 360px;
	background-color: #475569;
	background-position: center;
	background-size: cover;
	position: relative;
	color: #fff;
	display: flex;
	align-items: flex-end;
}

.onvore-vs-standalone__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.onvore-vs-standalone__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 32px 24px;
	display: flex;
	align-items: flex-end;
	gap: 20px;
}

.onvore-vs-standalone__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	background: #fff;
}

.onvore-vs-standalone__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.onvore-vs-standalone__name {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}

.onvore-vs-standalone__body {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
}

.onvore-vs-standalone__body .onvore-vs-info {
	grid-column: 1;
	grid-row: 1;
}

.onvore-vs-standalone__body .onvore-vs-filters {
	grid-column: 1;
	grid-row: 2;
}

.onvore-vs-standalone__body .onvore-vs-products {
	grid-column: 2;
	grid-row: 1 / span 2;
}

@media (max-width: 860px) {
	.onvore-vs-standalone__body {
		grid-template-columns: 1fr;
	}

	.onvore-vs-standalone__body .onvore-vs-products {
		grid-column: 1;
		grid-row: auto;
	}

	.onvore-vs-standalone__name {
		font-size: 28px;
	}
}

/* ---------- Editorial layout --------------------------------------- */

.onvore-vs-editorial__hero {
	min-height: 320px;
	background-color: #475569;
	background-position: center;
	background-size: cover;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.onvore-vs-editorial__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.onvore-vs-editorial__overlay {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 720px;
	padding: 32px 24px;
}

.onvore-vs-editorial__title {
	margin: 0 0 12px;
	font-size: 44px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.onvore-vs-editorial__meta {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
}

.onvore-vs-shell--editorial .onvore-vs-shell__inner {
	display: grid;
	gap: 32px;
}

.onvore-vs-shell--editorial .onvore-vs-filters,
.onvore-vs-shell--editorial .onvore-vs-info {
	background: #fff;
}

@media (max-width: 720px) {
	.onvore-vs-editorial__title {
		font-size: 30px;
	}
}

/* ---------- Compact layout ----------------------------------------- */

.onvore-vs-compact__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 20px;
}

.onvore-vs-compact__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

.onvore-vs-compact__name {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.onvore-vs-compact__meta {
	margin: 2px 0 0;
	font-size: 13px;
	color: #64748b;
}

.onvore-vs-shell--compact .onvore-vs-products .products {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

/* ---------- Standalone-mode body overrides ------------------------- */
/* When the .onvore-vs-standalone body class is present, hide any stray
 * theme chrome that managed to render anyway (admin bar is suppressed
 * server-side; this is the belt-and-braces fallback). */

body.onvore-vs-standalone #wpadminbar,
body.onvore-vs-standalone .skip-link {
	display: none !important;
}

body.onvore-vs-standalone {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
