/**
 * GPBid app shell — buyer chrome without Martfury header/footer.
 */

body.gpbid-app-shell {
	margin: 0;
	background: #111;
	color: #eee;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	min-height: 100vh;
}

/* Top bar */
.gpbid-shell-top {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(17, 17, 17, 0.96);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid #2a2a2a;
}

.gpbid-shell-top__row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	min-height: 48px;
}

.gpbid-shell-top__lead {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	min-width: 72px;
	z-index: 1;
}

.gpbid-shell-top__brand {
	flex-shrink: 0;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.02em;
	color: #f5c518;
	text-decoration: none;
}

.gpbid-shell-top__title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: min(56vw, 360px);
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.gpbid-shell-top__actions {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	min-width: 72px;
	justify-content: flex-end;
	z-index: 1;
}

.gpbid-shell-top__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: #eee;
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
}

.gpbid-shell-top__icon:hover {
	background: #222;
	color: #f5c518;
}

.gpbid-shell-top__badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #f5c518;
	color: #111;
	font-size: 10px;
	font-weight: 800;
	font-style: normal;
	line-height: 16px;
	text-align: center;
}

.gpbid-shell-subnav {
	display: flex;
	gap: 0;
	padding: 0 8px 8px;
	justify-content: center;
}

.gpbid-shell-subnav__link {
	flex: 1;
	max-width: 120px;
	text-align: center;
	padding: 8px 6px;
	font-size: 13px;
	font-weight: 700;
	color: #888;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.gpbid-shell-subnav__link.is-active {
	color: #f5c518;
	border-bottom-color: #f5c518;
}

.gpbid-shell-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 12px 24px;
	min-height: 50vh;
}

body.gpbid-app-shell--home .gpbid-shell-main,
body.gpbid-app-shell--store .gpbid-shell-main {
	padding-left: 0;
	padding-right: 0;
	max-width: none;
}

body.gpbid-app-shell--store .gpbid-shell-store {
	padding: 0 0 16px;
}

body.gpbid-app-shell--home .gpbid-shell-top__title,
body.gpbid-app-shell--store .gpbid-shell-top__title {
	/* Cover / brand pages already show identity below — keep h1 for a11y only */
	visibility: hidden;
}

/* Content width for Woo blocks inside shell */
body.gpbid-app-shell .woocommerce,
body.gpbid-app-shell .site-content,
body.gpbid-app-shell .gpbid-shell-page {
	max-width: 100%;
}

body.gpbid-app-shell .page-header,
body.gpbid-app-shell .entry-header,
body.gpbid-app-shell .woocommerce-products-header h1.page-title {
	color: #fff;
}

/* Shell top bar already shows page title — reduce duplicate H1 noise */
body.gpbid-app-shell--cart .entry-header,
body.gpbid-app-shell--checkout .entry-header,
body.gpbid-app-shell--account .entry-title,
body.gpbid-app-shell--auth .entry-header,
body.gpbid-app-shell--wishlist .entry-header,
body.gpbid-app-shell--live .entry-header,
body.gpbid-app-shell--cart .page-title,
body.gpbid-app-shell--checkout .page-title,
body.gpbid-app-shell--account h1.entry-title,
body.gpbid-app-shell--live h1.entry-title {
	display: none !important;
}

/* Hide leftover Martfury / theme chrome if any widget leaks in */
body.gpbid-app-shell .site-header,
body.gpbid-app-shell #site-header,
body.gpbid-app-shell .mf-navigation-mobile,
body.gpbid-app-shell .site-footer,
body.gpbid-app-shell #colophon,
body.gpbid-app-shell .footer-layout,
body.gpbid-app-shell .d-department {
	display: none !important;
}

@media (min-width: 960px) {
	.gpbid-shell-top__row {
		padding: 12px 24px;
	}

	.gpbid-shell-main {
		padding: 20px 24px 40px;
	}
}
