/**
 * GPBid vendor store — Community-parity layout.
 */

.gpbid-store {
	--gs-bg: #111;
	--gs-card: #1e1e1e;
	--gs-line: #333;
	--gs-text: #fff;
	--gs-muted: #aaa;
	--gs-accent: #f5c518;
	color: var(--gs-text);
	background: var(--gs-bg);
	padding-bottom: 24px;
}

.gpbid-store__wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 12px 16px 0;
}

.gpbid-store__cover {
	border-radius: 12px;
	overflow: hidden;
	background: #2a2a2a;
	aspect-ratio: 16 / 9;
	margin-bottom: 14px;
	position: relative;
}

.gpbid-store__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gpbid-store__cover-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.gpbid-store__identity {
	margin-bottom: 8px;
}

.gpbid-store__id-row {
	display: flex;
	gap: 12px;
	align-items: center;
}

.gpbid-store__av {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #333;
	flex-shrink: 0;
}

.gpbid-store__av--ph {
	display: inline-block;
}

.gpbid-store__h1 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

.gpbid-store__meta {
	margin: 0;
	color: var(--gs-muted);
	font-size: 13px;
	line-height: 1.35;
}

.gpbid-store__desc {
	margin: 12px 0 0;
	color: #ccc;
	font-size: 14px;
	line-height: 1.45;
}

.gpbid-store__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	align-items: center;
}

.gpbid-store__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	border: none;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	line-height: 1;
}

.gpbid-store__btn--primary {
	background: linear-gradient(90deg, #f5c518, #ff9800);
	color: #111 !important;
}

.gpbid-store__btn--ghost {
	background: transparent;
	color: #fff !important;
	border: 1px solid #555;
}

/* Restyle WCFM Follow into a pill */
.gpbid-store__follow {
	display: inline-flex;
	align-items: center;
}

.gpbid-store__follow .bd_icon_box,
.gpbid-store__follow .lft {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
}

.gpbid-store__follow a.follow,
.gpbid-store__follow #wcfm_follow_now,
.gpbid-store__follow #wcfm_follow_delete {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 16px !important;
	border-radius: 999px !important;
	border: 1px solid #555 !important;
	background: transparent !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.gpbid-store__follow a.follow i,
.gpbid-store__follow a.follow .wcfmfa {
	display: none !important;
}

.gpbid-store__tabs {
	position: sticky;
	top: 56px;
	z-index: 20;
	display: flex;
	background: #1a1a1a;
	border-top: 1px solid var(--gs-line);
	border-bottom: 1px solid var(--gs-line);
	max-width: 640px;
	margin: 12px auto 0;
}

.gpbid-store__tab {
	flex: 1;
	text-align: center;
	padding: 12px 4px;
	font-size: 13px;
	font-weight: 700;
	color: #888;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.gpbid-store__tab.is-active {
	color: #fff;
	border-bottom-color: var(--gs-accent);
}

.gpbid-store__body {
	padding-top: 12px;
	padding-bottom: 32px;
}

/* Discover: search + category chips */
.gpbid-store-discover {
	margin: 0 0 14px;
}

.gpbid-store-discover__search {
	position: relative;
	display: flex;
	align-items: center;
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 12px;
	padding: 0 12px 0 40px;
	min-height: 44px;
}

.gpbid-store-discover__icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	display: flex;
}

.gpbid-store-discover__search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 15px;
	padding: 10px 0 !important;
	box-shadow: none !important;
	outline: none;
	-webkit-appearance: none;
}

.gpbid-store-discover__search input[type="search"]::placeholder {
	color: #777;
}

.gpbid-store-discover__clear {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #aaa !important;
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
	margin-left: 4px;
}

.gpbid-store-discover__clear:hover {
	background: #2a2a2a;
	color: #fff !important;
}

.gpbid-store-discover__chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0;
	margin: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	flex: 1;
	min-width: 0;
}

.gpbid-store-discover__chips::-webkit-scrollbar {
	display: none;
}

.gpbid-store-discover__row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.gpbid-store-discover__tools {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.gpbid-store-tool {
	appearance: none;
	background: transparent;
	border: 1px solid #555;
	color: #eee;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 12px;
	border-radius: 999px;
	cursor: pointer;
	position: relative;
}

.gpbid-store-tool.has-dot::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f5c518;
}

.gpbid-store-discover__reset {
	margin-left: 8px;
	color: #f5c518 !important;
	font-weight: 700;
	text-decoration: none;
}

/* Bottom sheets */
body.gpbid-store-sheet-open {
	overflow: hidden;
}

.gpbid-store-sheet {
	position: fixed;
	inset: 0;
	z-index: 10050;
}

.gpbid-store-sheet[hidden] {
	display: none !important;
}

.gpbid-store-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.gpbid-store-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 640px;
	margin: 0 auto;
	max-height: 85vh;
	overflow: auto;
	background: #1e1e1e;
	border-radius: 16px 16px 0 0;
	border-top: 1px solid #333;
	padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
}

.gpbid-store-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #333;
	color: #fff;
	position: sticky;
	top: 0;
	background: #1e1e1e;
	z-index: 1;
}

.gpbid-store-sheet__x {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
}

.gpbid-store-sheet__body {
	padding: 8px 16px 16px;
}

.gpbid-store-sheet__group {
	margin: 12px 0 16px;
}

.gpbid-store-sheet__label {
	font-size: 12px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.gpbid-store-sheet__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #2a2a2a;
	color: #eee;
	font-size: 15px;
	cursor: pointer;
}

.gpbid-store-sheet__opt input {
	accent-color: #f5c518;
}

.gpbid-store-sheet__price {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gpbid-store-sheet__price input {
	flex: 1;
	min-width: 0;
	padding: 11px 12px;
	border-radius: 10px;
	border: 1px solid #444;
	background: #2a2a2a;
	color: #fff;
	font-size: 15px;
}

.gpbid-store-sheet__price span {
	color: #888;
}

.gpbid-store-sheet__apply {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 14px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(90deg, #f5c518, #ff9800);
	color: #111;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}

.gpbid-store-chip {
	flex-shrink: 0;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid #444;
	background: #2a2a2a;
	color: #ccc !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

.gpbid-store-chip.is-active {
	background: #f5c518;
	border-color: #f5c518;
	color: #111 !important;
}

.gpbid-store-discover__meta {
	margin: 8px 0 0;
	color: #888;
	font-size: 12px;
}

/* Kill Martfury junk toolbar leftovers on store shell */
body.gpbid-app-shell--store #mf-catalog-toolbar,
body.gpbid-app-shell--store .shop-toolbar,
body.gpbid-app-shell--store .products-found,
body.gpbid-app-shell--store .catalog-toolbar-space,
body.gpbid-app-shell--store .mf-shop-filter,
body.gpbid-app-shell--store .shop-view,
body.gpbid-app-shell--store .woocommerce-result-count,
body.gpbid-app-shell--store .woocommerce-ordering,
body.gpbid-app-shell--shop #mf-catalog-toolbar,
body.gpbid-app-shell--shop .shop-toolbar,
body.gpbid-app-shell--shop .products-found,
body.gpbid-app-shell--shop .catalog-toolbar-space,
body.gpbid-app-shell--shop .mf-shop-filter,
body.gpbid-app-shell--shop .shop-view,
body.gpbid-app-shell--shop .woocommerce-result-count,
body.gpbid-app-shell--shop .woocommerce-ordering {
	display: none !important;
}

/* Shop page discover bar (same components as store) */
body.gpbid-app-shell--shop .gpbid-store-discover {
	margin: 0 0 14px;
	padding: 0 12px;
}

body.gpbid-app-shell--shop .gpbid-shell-main {
	padding-top: 8px;
}

@media (min-width: 960px) {
	body.gpbid-app-shell--shop .gpbid-store-discover {
		padding: 0 24px;
		max-width: 960px;
		margin-left: auto;
		margin-right: auto;
	}
}

.gpbid-store__grid {
	display: none; /* legacy simple cards removed */
}

/* Restore Woo product loop cards (BIN / Bid hooks intact). Always 2 cols on store. */
body.gpbid-app-shell--store .gpbid-store__pane--products ul.products,
body.gpbid-app-shell--store .gpbid-store__pane--products ul.products.columns-2,
body.gpbid-app-shell--store .gpbid-store__pane--products ul.products.columns-3,
body.gpbid-app-shell--store .gpbid-store__pane--products ul.products.columns-4,
body.gpbid-app-shell--store .gpbid-store__pane--products ul.products.columns-5,
body.gpbid-app-shell--store .gpbid-store__pane--products ul.products.columns-6,
body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-3:not(.slick-slider),
body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-4:not(.slick-slider),
body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-5:not(.slick-slider),
body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-6:not(.slick-slider) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
}

@media (min-width: 992px) {
	body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-3:not(.slick-slider),
	body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-4:not(.slick-slider),
	body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-5:not(.slick-slider),
	body.gpbid-app-shell--store.gpbid-ui-v1 .gpbid-store__pane--products ul.products.columns-6:not(.slick-slider) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

.gpbid-store__pane--products ul.products::before,
.gpbid-store__pane--products ul.products::after {
	display: none !important;
	content: none !important;
}

.gpbid-store__pane--products ul.products li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	background: var(--gs-card) !important;
	border: 1px solid var(--gs-line) !important;
	border-radius: 12px !important;
	overflow: hidden;
	padding: 0 !important;
}

.gpbid-store__pane--products ul.products li.product .woocommerce-loop-product__title,
.gpbid-store__pane--products ul.products li.product .mf-product-content,
.gpbid-store__pane--products ul.products li.product .mf-product-details,
.gpbid-store__pane--products ul.products li.product .price,
.gpbid-store__pane--products ul.products li.product a {
	color: #eee !important;
}

.gpbid-store__pane--products ul.products li.product .price,
.gpbid-store__pane--products ul.products li.product .price .amount {
	color: var(--gs-accent) !important;
}

/* Keep functional loop buttons readable, do not restyle away their classes */
.gpbid-store__pane--products .gpbid-loop-bid-btn,
.gpbid-store__pane--products .gpbid-loop-bin-btn,
.gpbid-store__pane--products .gpbid-loop-giveaway-btn,
.gpbid-store__pane--products .gpbid-loop-replay-btn,
.gpbid-store__pane--products .gpbid-loop-video-only-btn,
.gpbid-store__pane--products .gpbid-loop-show-ended-btn,
.gpbid-store__pane--products a.button.add_to_cart_button,
.gpbid-store__pane--products a.button.product_type_simple {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: auto !important;
	min-height: 36px;
	padding: 8px 12px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	text-decoration: none !important;
}

.gpbid-store__pane--products .gpbid-loop-bid-btn,
.gpbid-store__pane--products .gpbid-loop-bin-btn {
	background: var(--gs-accent) !important;
	color: #111 !important;
	border: none !important;
}

.gpbid-store__pane--products .woocommerce-ordering,
.gpbid-store__pane--products .woocommerce-result-count {
	color: var(--gs-muted);
}

.gpbid-store__pane--products .woocommerce-ordering select {
	background: #2a2a2a;
	color: #fff;
	border: 1px solid #444;
	border-radius: 8px;
}

/* Live strip: keep card markup/behavior; only dark frame */
.gpbid-store__pane--live .gpbid-shows-wrap,
.gpbid-store__pane--live .gpbid-live-strip,
.gpbid-store .gpbid-shows-wrap,
.gpbid-store .gpbid-live-strip {
	background: transparent !important;
}

.gpbid-store__pane--live .gpbid-live-strip__title,
.gpbid-store .gpbid-live-strip__title {
	color: #fff !important;
}

/*
 * Show cards keep a white body (inline styles in gpbid-show-cards.php).
 * Store shell color: #fff inherits into that body → invisible text. Reset.
 */
body.gpbid-app-shell--store .gpbid-show-card,
.gpbid-store .gpbid-show-card {
	color: #111 !important;
	background: #fff !important;
}

body.gpbid-app-shell--store .gpbid-show-card .gpbid-show-body,
.gpbid-store .gpbid-show-card .gpbid-show-body {
	background: #fff !important;
	color: #111 !important;
}

body.gpbid-app-shell--store .gpbid-show-card h3,
body.gpbid-app-shell--store .gpbid-show-card h3 a,
.gpbid-store .gpbid-show-card h3,
.gpbid-store .gpbid-show-card h3 a {
	color: #111 !important;
}

body.gpbid-app-shell--store .gpbid-show-card .gpbid-show-vendor-name,
body.gpbid-app-shell--store .gpbid-show-card .gpbid-show-vendor-name a,
body.gpbid-app-shell--store .gpbid-show-card .gpbid-show-countdown-row,
body.gpbid-app-shell--store .gpbid-show-card .gpbid-show-countdown-row span,
.gpbid-store .gpbid-show-card .gpbid-show-vendor-name,
.gpbid-store .gpbid-show-card .gpbid-show-vendor-name a,
.gpbid-store .gpbid-show-card .gpbid-show-countdown-row,
.gpbid-store .gpbid-show-card .gpbid-show-countdown-row span {
	color: #555 !important;
}

.gpbid-store__panel {
	background: var(--gs-card);
	border: 1px solid var(--gs-line);
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 12px;
}

.gpbid-store__panel-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.gpbid-store__panel-body {
	color: #ccc;
	font-size: 14px;
	line-height: 1.45;
}

.gpbid-store__panel-body p {
	margin: 0 0 8px;
	color: inherit;
}

.gpbid-store-empty {
	text-align: center;
	color: var(--gs-muted);
	padding: 32px 12px;
	font-size: 14px;
}

.gpbid-store__pager {
	margin-top: 16px;
}

.gpbid-store__pager ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gpbid-store__pager a,
.gpbid-store__pager span {
	display: inline-flex;
	min-width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #1e1e1e;
	border: 1px solid #333;
	color: #eee !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.gpbid-store__pager .current {
	background: var(--gs-accent);
	border-color: var(--gs-accent);
	color: #111 !important;
}

/* Reviews — WCFM markup kept; styles were #wcfmmp-store scoped and broke here */
.gpbid-store__reviews {
	color: #ddd;
}

.gpbid-store__reviews .reviews_heading {
	text-transform: capitalize;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}

.gpbid-store__reviews .spacer {
	display: none !important;
}

.gpbid-store__reviews .lft,
.gpbid-store__reviews .rgt {
	float: none;
}

/* WCFM pads 3 placeholder avatars even when empty — hide them */
.gpbid-store__reviews.is-empty .famous_reviewers_pictures,
.gpbid-store__reviews.is-empty .bd_rating_sec {
	display: none !important;
}

.gpbid-store__reviews.is-empty .famous_reviewers {
	margin: 0 0 8px;
}

.gpbid-store__reviews.is-empty .reviews_count {
	margin: 0;
	font-size: 14px;
	color: var(--gs-muted);
	line-height: 1.45;
}

.gpbid-store__reviews.is-empty .reviews_count a {
	color: inherit;
	pointer-events: none;
	text-decoration: none;
}

/* Real reviewer stack (when reviews exist) */
.gpbid-store__reviews .famous_reviewers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
}

.gpbid-store__reviews .famous_reviewers_pictures {
	display: flex;
	align-items: center;
}

.gpbid-store__reviews .famous_reviewers_picture {
	width: 36px;
	height: 36px;
	border: 1.5px solid #111;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #2a2a2a;
}

.gpbid-store__reviews .famous_reviewers_picture + .famous_reviewers_picture {
	margin-left: -12px;
}

.gpbid-store__reviews .famous_reviewers_picture img.avatar,
.gpbid-store__reviews .famous_reviewers_picture img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
}

.gpbid-store__reviews .reviews_count {
	font-size: 14px;
	color: var(--gs-muted);
}

.gpbid-store__reviews .reviews_count a {
	color: var(--gs-accent);
}

.gpbid-store__reviews .review_photo img,
.gpbid-store__reviews .user_photo img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.gpbid-store__reviews .review_section {
	border-top: 1px solid var(--gs-line);
	padding-top: 16px;
	margin-top: 16px;
}

.gpbid-store__reviews .user_name {
	color: #fff;
	font-weight: 600;
}

.gpbid-store__reviews input,
.gpbid-store__reviews textarea,
.gpbid-store__reviews select {
	background: #2a2a2a !important;
	border: 1px solid #444 !important;
	color: #fff !important;
}

.gpbid-store__reviews .add_review button,
.gpbid-store__reviews #wcfmmp_store_review_submit {
	background: var(--gs-accent) !important;
	color: #111 !important;
	border: none !important;
	border-radius: 8px;
	font-weight: 700;
}

body.gpbid-app-shell--store .gpbid-shell-main {
	padding: 0 !important;
	max-width: none !important;
}

@media (min-width: 720px) {
	.gpbid-store__tabs {
		border-radius: 0;
	}
}
