/* Marketplace page styles */

.mb-route-page {
	min-height: 60vh;
}

.filters-panel {
	position: sticky;
	top: 100px;
}

.products-page .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0 2px;
	border-radius: 50%;
	text-decoration: none;
	color: var(--text-dark, #1a1a2e);
}

.products-page .pagination .current {
	background: var(--primary, #0047ff);
	color: #fff;
}

.sell-page .form-label {
	font-size: 0.875rem;
}

.my-listings-page .table > :not(caption) > * > * {
	padding: 1rem;
}

.mb-auth-layout .site-content {
	padding: 0;
}

.mb-no-site-chrome .site-container {
	min-height: 100vh;
}

.payment-disclaimer {
	margin-top: 2rem;
}

.filter-accordion .accordion-body {
	padding-bottom: 0.5rem;
}

.products-page .product-card {
	min-width: 220px;
}

#mbProductsResultsWrap {
	min-height: 280px;
}

.mb-products-loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.75);
	border-radius: 1rem;
}

#mbProductsResults.mb-products-loading {
	opacity: 0.45;
	pointer-events: none;
}

.products-page .pagination .page-link {
	border-radius: 50%;
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Product detail page (Figma) */
.product-detail-page {
	background: #fff;
}

.product-detail-page .product-gallery-main {
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-detail-page .product-main-img {
	max-height: 420px;
	object-fit: contain;
}

.product-info-panel {
	background: #fff;
}

.product-price-current {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-dark, #1a1a2e);
}

.product-price-old {
	color: #dc3545;
	text-decoration: line-through;
	font-size: 1rem;
}

.badge-condition {
	background: #7c3aed;
	color: #fff;
}

.badge-unverified {
	background: #fee2e2;
	color: #dc2626;
	font-weight: 500;
}

.badge-save {
	background: var(--primary, #0047ff);
	color: #fff;
	font-weight: 600;
}

.product-sidebar-accordion .accordion-button,
.product-panel-accordion .accordion-button,
.product-spec-accordion .accordion-button,
.product-faq-accordion .accordion-button {
	background: transparent;
	box-shadow: none;
}

.product-sidebar-accordion .accordion-button:not(.collapsed),
.product-panel-accordion .accordion-button:not(.collapsed),
.product-spec-accordion .accordion-button:not(.collapsed),
.product-faq-accordion .accordion-button:not(.collapsed) {
	background: transparent;
	color: var(--text-dark, #1a1a2e);
}

.product-cta-btn {
	padding: 0.875rem 1.25rem;
	font-weight: 600;
}

.product-alert-warning {
	background: #fff8e6;
	color: #92400e;
}

.product-alert-danger {
	background: #fef2f2;
	color: #b91c1c;
}

.condition-cards-row {
	gap: 0.5rem;
}

.condition-card-item {
	border: 1px solid var(--border-color, #e5e7eb);
	border-radius: 12px;
	padding: 0.75rem 0.5rem;
	text-align: center;
	min-width: 90px;
	background: #fff;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.condition-card-item.is-active {
	border-color: #7c3aed;
	background: rgba(124, 58, 237, 0.08);
	color: #7c3aed;
}

.product-spec-table th {
	width: 50%;
}

.product-slide-card {
	position: relative;
	border-radius: 16px !important;
}

.product-slide-card .product-card-img img {
	max-height: 160px;
	object-fit: contain;
}

.product-slide-arrow {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px !important;
}

.mb-slide-card-col {
	min-width: 220px;
	max-width: 260px;
}

.mb-wishlist-btn.active i {
	color: #dc3545;
}

.mb-wishlist-btn.active i::before {
	content: "\f415";
}

.mb-form-error-line + .mb-form-error-line {
	margin-top: 0.35rem;
}

.mb-account-subnav {
	padding: 0.5rem 0.75rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	margin-bottom: 1.5rem;
}

.mb-account-subnav .btn-sm {
	padding: 0.35rem 0.85rem;
	font-size: 0.8125rem;
}

@media (min-width: 768px) {
	.mb-account-subnav {
		flex-wrap: nowrap !important;
	}
}

.mb-account-page .text-center.mb-4 {
	margin-bottom: 1.5rem !important;
}

.mb-account-page .text-center.mb-4 .h2 {
	font-size: 1.5rem;
}

@media (max-width: 991.98px) {
	.product-detail-page .product-gallery-main {
		min-height: 280px;
	}

	.product-price-current {
		font-size: 1.5rem;
	}
}

@media (max-width: 991.98px) {
	.filters-panel {
		position: static;
	}
}
