/**
 * Fischer Bell WooCommerce Design System Stylesheet
 * Integrates Pantone Green (#84BD00) and Dark Black (#27251F)
 */

/* ==========================================================================
   1. Layout & Structural Wrappers
   ========================================================================== */
.fb-woocommerce-archive,
.fb-woocommerce-single {
	padding: var(--space-lg) 0 var(--space-xl) 0;
	max-width: 1400px;
	margin: 0 auto;
}

.fb-breadcrumbs {
	font-family: var(--font-body);
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	margin-bottom: var(--space-md);
}

.fb-breadcrumbs a {
	color: var(--color-text-muted);
	transition: color var(--transition-fast);
}

.fb-breadcrumbs a:hover {
	color: var(--color-primary);
}

.breadcrumb-separator {
	margin: 0 var(--space-xs);
	opacity: 0.6;
}

/* 2-Column Shop Layout */
.fb-shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	margin-top: var(--space-md);
}

@media (min-width: 1024px) {
	.fb-shop-layout {
		grid-template-columns: 280px 1fr;
	}
}

/* ==========================================================================
   2. Filter Sidebar (25%)
   ========================================================================== */
.fb-shop-sidebar {
	background-color: var(--color-surface-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	height: fit-content;
}

/* Mobile Sidebar Drawer styling */
@media (max-width: 1023px) {
	.fb-shop-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 320px;
		height: 100vh;
		z-index: 1000;
		background-color: var(--color-surface);
		box-shadow: var(--shadow-xl);
		transform: translateX(-100%);
		transition: transform var(--transition-normal);
		overflow-y: auto;
		border-radius: 0;
		padding: var(--space-lg) var(--space-md);
	}
	
	.fb-shop-sidebar.active {
		transform: translateX(0);
	}
}

.fb-sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}

.fb-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid var(--color-primary);
	padding-bottom: var(--space-sm);
}

.fb-sidebar-header h3 {
	font-size: var(--font-size-lg);
	margin: 0;
	color: var(--color-surface-dark);
}

.fb-sidebar-close-mobile {
	display: none;
	background: none;
	border: none;
	color: var(--color-text);
	cursor: pointer;
	padding: var(--space-xs);
}

@media (max-width: 1023px) {
	.fb-sidebar-close-mobile {
		display: block;
	}
}

/* Sidebar Widgets overrides */
.fb-shop-sidebar .widget {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-md);
}

.fb-shop-sidebar .widget:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.fb-shop-sidebar .widgettitle {
	font-family: var(--font-heading);
	font-size: var(--font-size-sm);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-surface-dark);
	margin-bottom: var(--space-sm);
	position: relative;
	padding-left: var(--space-xs);
}

/* Widget Lists (categories, custom attributes) */
.fb-shop-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.fb-shop-sidebar li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--font-size-sm);
}

.fb-shop-sidebar li a {
	color: var(--color-text);
	transition: color var(--transition-fast);
}

.fb-shop-sidebar li a:hover {
	color: var(--color-primary);
}

.fb-shop-sidebar li .count {
	font-size: var(--font-size-xs);
	background-color: var(--color-border);
	color: var(--color-text-muted);
	padding: 2px 6px;
	border-radius: var(--radius-full);
	min-width: 24px;
	text-align: center;
}

/* Range Filter */
.price_slider_wrapper .ui-widget-content {
	background: var(--color-border);
	height: 6px;
	border-radius: var(--radius-full);
	border: none;
	margin: var(--space-sm) 0;
}

.price_slider_wrapper .ui-slider-range {
	background: var(--color-primary);
}

.price_slider_wrapper .ui-slider-handle {
	background: var(--color-surface-dark);
	border: 2px solid var(--color-primary);
	width: 16px;
	height: 16px;
	border-radius: var(--radius-full);
	cursor: pointer;
	top: -5px;
	outline: none;
	transition: transform var(--transition-fast);
}

.price_slider_wrapper .ui-slider-handle:hover {
	transform: scale(1.2);
}

.price_slider_amount {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--font-size-xs);
	margin-top: var(--space-sm);
}

.price_slider_amount .button {
	background: var(--color-surface-dark) !important;
	color: white !important;
	border: none !important;
	padding: 6px 12px !important;
	font-size: var(--font-size-xs) !important;
	border-radius: var(--radius-sm) !important;
	cursor: pointer !important;
	transition: background var(--transition-fast) !important;
}

.price_slider_amount .button:hover {
	background: var(--color-primary) !important;
}

/* ==========================================================================
   3. Control Bar (Grid/List & Sort)
   ========================================================================== */
.fb-shop-control-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	background-color: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-sm) var(--space-md);
	margin-bottom: var(--space-md);
	gap: var(--space-sm);
}

.fb-control-bar-left {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex-wrap: wrap;
}

/* View Switcher */
.fb-view-switcher {
	display: flex;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.fb-view-btn {
	background: white;
	border: none;
	color: var(--color-text-muted);
	padding: 8px 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-fast);
}

.fb-view-btn.active,
.fb-view-btn:hover {
	background-color: var(--color-primary-subtle);
	color: var(--color-primary);
}

/* Mobile Filter Button */
.fb-mobile-filter-toggle {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 8px 16px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

@media (min-width: 1024px) {
	.fb-mobile-filter-toggle {
		display: none;
	}
}

/* Result count */
.woocommerce-result-count {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	margin: 0 !important;
}

/* Sort Ordering Select */
.woocommerce-ordering {
	margin: 0 !important;
}

.woocommerce-ordering select {
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	color: var(--color-text);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 8px 12px;
	background-color: white;
	outline: none;
	cursor: pointer;
	transition: border-color var(--transition-fast);
}

.woocommerce-ordering select:focus {
	border-color: var(--color-primary);
}

/* ==========================================================================
   4. Product Loop Grid & Card CSS
   ========================================================================== */
.fb-products-loop-wrapper ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-lg);
	padding: 0;
	margin: 0;
	list-style: none;
}

/* Loop Card Base */
.fb-product-card {
	background-color: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
	position: relative;
	list-style: none;
	width: 100%;
}

.fb-product-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-primary);
}

.fb-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* aspect ratio 1:1 image */
.fb-card-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-color: var(--color-surface);
	overflow: hidden;
}

.fb-card-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.fb-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.fb-product-card:hover .fb-card-image {
	transform: scale(1.06);
}

/* Stock status badges */
.fb-stock-badge {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	z-index: 10;
	box-shadow: var(--shadow-sm);
}

.stock-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.fb-stock-badge.fb-stock-in {
	background-color: var(--color-primary-subtle);
	color: var(--color-primary-darker);
}
.fb-stock-badge.fb-stock-in .stock-dot {
	background-color: var(--color-primary);
}

.fb-stock-badge.fb-stock-low {
	background-color: #FEF3C7;
	color: #92400E;
}
.fb-stock-badge.fb-stock-low .stock-dot {
	background-color: var(--color-warning);
}

.fb-stock-badge.fb-stock-out {
	background-color: #FEE2E2;
	color: #991B1B;
}
.fb-stock-badge.fb-stock-out .stock-dot {
	background-color: var(--color-danger);
}

/* Action Icons Overlay */
.fb-card-actions-overlay {
	position: absolute;
	right: var(--space-sm);
	top: var(--space-sm);
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	transform: translateX(50px);
	opacity: 0;
	transition: all var(--transition-normal);
	z-index: 15;
}

.fb-product-card:hover .fb-card-actions-overlay {
	transform: translateX(0);
	opacity: 1;
}

.fb-action-icon-btn {
	background-color: white;
	border: 1px solid var(--color-border);
	color: var(--color-text);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-fast);
}

.fb-action-icon-btn:hover {
	background-color: var(--color-primary);
	color: white;
	border-color: var(--color-primary);
	transform: scale(1.1);
}

/* Card Info body styling */
.fb-card-info {
	padding: var(--space-md);
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	border-top: 1px solid var(--color-border);
}

.fb-card-brand {
	font-family: var(--font-body);
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-muted);
	font-weight: 600;
	margin-bottom: 4px;
}

.fb-card-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-base);
	font-weight: 700;
	margin: 0 0 var(--space-sm) 0;
	line-height: 1.4;
}

.fb-card-title a {
	color: var(--color-surface-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.8em;
	transition: color var(--transition-fast);
}

.fb-card-title a:hover {
	color: var(--color-primary);
}

/* Tech Specs block inside loop */
.fb-card-specs {
	background-color: var(--color-surface-alt);
	border-radius: var(--radius-sm);
	padding: 8px 12px;
	margin-bottom: var(--space-md);
	font-family: var(--font-body);
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fb-spec-item {
	display: flex;
	justify-content: space-between;
}

/* Price row with green price */
.fb-card-price-row {
	display: flex;
	align-items: center;
	margin-top: auto;
	margin-bottom: var(--space-sm);
}

.fb-card-price .price,
.fb-card-price {
	font-family: var(--font-heading);
	font-size: var(--font-size-lg);
	font-weight: 800;
	color: var(--color-primary) !important;
}

.fb-card-price .price del {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	margin-right: var(--space-xs);
	font-weight: 500;
}

.fb-card-price .price ins {
	text-decoration: none;
	color: var(--color-primary);
}

/* Footer: green outline Add to Cart */
.fb-card-footer {
	margin-top: var(--space-sm);
}

.fb-outline-add-to-cart {
	width: 100%;
	display: block;
	text-align: center;
	background: transparent !important;
	color: var(--color-primary) !important;
	border: 2px solid var(--color-primary) !important;
	border-radius: var(--radius-sm) !important;
	padding: 10px 16px !important;
	font-family: var(--font-heading) !important;
	font-size: var(--font-size-sm) !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all var(--transition-fast) !important;
	text-transform: uppercase;
}

.fb-outline-add-to-cart:hover {
	background-color: var(--color-primary) !important;
	color: white !important;
	box-shadow: var(--shadow-sm);
}

.fb-outline-add-to-cart.loading {
	opacity: 0.7;
	position: relative;
}

/* ==========================================================================
   5. LIST VIEW Layout Overrides
   ========================================================================== */
.fb-products-loop-wrapper ul.products.list-view {
	grid-template-columns: 1fr;
}

.fb-products-loop-wrapper ul.products.list-view .fb-product-card {
	max-width: 100%;
}

.fb-products-loop-wrapper ul.products.list-view .fb-card-inner {
	flex-direction: row;
}

@media (max-width: 639px) {
	.fb-products-loop-wrapper ul.products.list-view .fb-card-inner {
		flex-direction: column;
	}
}

.fb-products-loop-wrapper ul.products.list-view .fb-card-image-wrapper {
	width: 260px;
	flex-shrink: 0;
	aspect-ratio: 1 / 1;
}

@media (max-width: 639px) {
	.fb-products-loop-wrapper ul.products.list-view .fb-card-image-wrapper {
		width: 100%;
	}
}

.fb-products-loop-wrapper ul.products.list-view .fb-card-info {
	border-top: none;
	border-left: 1px solid var(--color-border);
	padding: var(--space-lg);
}

@media (max-width: 639px) {
	.fb-products-loop-wrapper ul.products.list-view .fb-card-info {
		border-left: none;
		border-top: 1px solid var(--color-border);
		padding: var(--space-md);
	}
}

.fb-products-loop-wrapper ul.products.list-view .fb-card-title a {
	height: auto;
}

.fb-products-loop-wrapper ul.products.list-view .fb-card-specs {
	max-width: 450px;
}

.fb-products-loop-wrapper ul.products.list-view .fb-card-footer {
	max-width: 250px;
	margin-top: var(--space-md);
}

/* ==========================================================================
   6. Shop Pagination
   ========================================================================== */
.fb-products-pagination {
	margin-top: var(--space-xl);
}

.fb-products-pagination nav.woocommerce-pagination {
	text-align: center;
}

.fb-products-pagination ul.page-numbers {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.fb-products-pagination ul.page-numbers li {
	border-right: 1px solid var(--color-border);
}

.fb-products-pagination ul.page-numbers li:last-child {
	border-right: none;
}

.fb-products-pagination ul.page-numbers li a,
.fb-products-pagination ul.page-numbers li span {
	display: block;
	padding: 10px 16px;
	font-family: var(--font-heading);
	font-size: var(--font-size-sm);
	font-weight: 700;
	color: var(--color-text);
	background: white;
	transition: all var(--transition-fast);
}

.fb-products-pagination ul.page-numbers li span.current,
.fb-products-pagination ul.page-numbers li a:hover {
	background-color: var(--color-primary-subtle);
	color: var(--color-primary);
}

/* ==========================================================================
   7. Single Product Page
   ========================================================================== */
.fb-single-product-wrapper {
	margin-bottom: var(--space-xl);
}

.fb-single-product-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
}

@media (min-width: 768px) {
	.fb-single-product-columns {
		grid-template-columns: 1fr 1fr;
	}
}

/* Left: Gallery + Thumbnails Override */
.fb-single-gallery-column .woocommerce-product-gallery {
	position: relative;
}

.fb-single-gallery-column .woocommerce-product-gallery__wrapper {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: white;
}

.fb-single-gallery-column .woocommerce-product-gallery img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Thumbnails list below main image */
.fb-single-gallery-column .flex-control-nav {
	display: flex !important;
	list-style: none;
	padding: 0 !important;
	margin: var(--space-sm) 0 0 0 !important;
	gap: var(--space-sm);
	flex-wrap: wrap;
}

.fb-single-gallery-column .flex-control-nav li {
	width: 80px;
	aspect-ratio: 1/1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
	transition: border-color var(--transition-fast);
}

.fb-single-gallery-column .flex-control-nav li:hover,
.fb-single-gallery-column .flex-control-nav li img.flex-active {
	border-color: var(--color-primary);
}

/* Right: Detail Content & Selectors */
.fb-single-details-column {
	display: flex;
	flex-direction: column;
}

.fb-single-stock-row {
	margin-bottom: var(--space-sm);
}

.fb-single-stock-row .fb-stock-badge {
	position: static;
}

.fb-single-brand {
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-muted);
	font-weight: 700;
	margin-bottom: var(--space-xs);
}

.fb-single-title {
	font-size: var(--font-size-3xl);
	margin-bottom: var(--space-sm);
	color: var(--color-surface-dark);
}

/* Compliance Badges */
.fb-compliance-container {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-bottom: var(--space-md);
}

.fb-compliance-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.badge-bizsafe {
	background-color: var(--color-primary-subtle);
	color: var(--color-primary-darker);
	border: 1px solid var(--color-primary);
}

.badge-ce {
	background-color: #EFF6FF;
	color: #1E40AF;
	border: 1px solid #93C5FD;
}

.badge-en388 {
	background-color: #F3F4F6;
	color: #374151;
	border: 1px solid #D1D5DB;
}

/* Rating */
.fb-single-rating {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
}

.fb-single-rating .star-rating {
	float: none;
	margin: 0;
	color: var(--color-primary);
}

.fb-single-rating .star-rating::before {
	color: var(--color-border);
}

.fb-single-rating .star-rating span::before {
	color: var(--color-primary);
}

.fb-rating-count {
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
}

/* Price Container */
.fb-single-price-container {
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding: var(--space-sm) 0;
	margin-bottom: var(--space-lg);
}

.fb-single-price-container .price,
.fb-single-price {
	font-family: var(--font-heading);
	font-size: var(--font-size-2xl);
	font-weight: 800;
	color: var(--color-primary) !important;
}

.fb-single-price del {
	font-size: var(--font-size-lg);
	color: var(--color-text-muted);
	font-weight: 500;
	margin-right: var(--space-xs);
}

.fb-single-price ins {
	text-decoration: none;
}

/* B2B Promo Banner */
.fb-b2b-login-banner {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	background-color: var(--color-surface-dark);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	margin-bottom: var(--space-lg);
	color: white;
	box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
	.fb-b2b-login-banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.fb-b2b-banner-inner {
	display: flex;
	gap: var(--space-sm);
	align-items: flex-start;
}

.fb-b2b-banner-inner svg {
	color: var(--color-primary);
	flex-shrink: 0;
	margin-top: 2px;
}

.fb-b2b-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fb-b2b-banner-text strong {
	font-family: var(--font-heading);
	font-size: var(--font-size-sm);
	color: var(--color-primary);
}

.fb-b2b-banner-text span {
	font-size: var(--font-size-xs);
	color: var(--color-text-inverse);
	opacity: 0.8;
}

.btn-dark {
	background-color: var(--color-primary) !important;
	color: white !important;
	border: none !important;
	padding: 10px 18px !important;
	font-family: var(--font-heading) !important;
	font-weight: 700 !important;
	font-size: var(--font-size-xs) !important;
	text-transform: uppercase;
	border-radius: var(--radius-sm) !important;
	cursor: pointer !important;
	transition: background var(--transition-fast) !important;
	text-align: center;
	white-space: nowrap;
}

.btn-dark:hover {
	background-color: var(--color-primary-dark) !important;
}

/* Variant Selector Override */
.fb-single-add-to-cart-wrapper form.cart {
	margin-bottom: var(--space-md) !important;
}

.fb-single-add-to-cart-wrapper table.variations {
	width: 100%;
	margin-bottom: var(--space-md);
	border: none;
}

.fb-single-add-to-cart-wrapper table.variations td {
	padding: 8px 0;
	border: none;
	background: none;
}

.fb-single-add-to-cart-wrapper table.variations td.label {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--font-size-sm);
	color: var(--color-surface-dark);
	width: 100px;
}

.fb-single-add-to-cart-wrapper table.variations select {
	width: 100%;
	max-width: 300px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 10px 16px;
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	color: var(--color-text);
	background: white;
	outline: none;
	cursor: pointer;
	transition: border-color var(--transition-fast);
}

.fb-single-add-to-cart-wrapper table.variations select:focus {
	border-color: var(--color-primary);
}

/* Quantity Input & Add to Cart Container */
.fb-single-add-to-cart-wrapper form.cart .woocommerce-variation-add-to-cart,
.fb-single-add-to-cart-wrapper form.cart .fb-qty-add-to-cart-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	align-items: center;
	margin-top: var(--space-md);
}

/* Custom Qty Stepper */
.fb-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	height: 48px;
	background: white;
}

.fb-qty-stepper input.qty {
	width: 50px !important;
	height: 100% !important;
	border: none !important;
	text-align: center !important;
	font-family: var(--font-heading) !important;
	font-weight: 700 !important;
	font-size: var(--font-size-sm) !important;
	color: var(--color-text) !important;
	padding: 0 !important;
	background: transparent !important;
	-moz-appearance: textfield;
}

.fb-qty-stepper input.qty::-webkit-outer-spin-button,
.fb-qty-stepper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fb-qty-btn {
	background: transparent;
	border: none;
	width: 36px;
	height: 100%;
	cursor: pointer;
	font-size: var(--font-size-base);
	font-weight: 700;
	color: var(--color-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color var(--transition-fast), background var(--transition-fast);
}

.fb-qty-btn:hover {
	color: var(--color-primary);
	background-color: var(--color-surface-alt);
}

/* Add to Cart button standard style */
.fb-single-add-to-cart-wrapper button.single_add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: white !important;
	border: none !important;
	border-radius: var(--radius-sm) !important;
	padding: 0 var(--space-lg) !important;
	height: 48px !important;
	font-family: var(--font-heading) !important;
	font-size: var(--font-size-sm) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	cursor: pointer !important;
	transition: background var(--transition-fast) !important;
}

.fb-single-add-to-cart-wrapper button.single_add_to_cart_button:hover {
	background-color: var(--color-primary-dark) !important;
}

/* B2B Action: Request Quote Button */
.fb-single-b2b-actions {
	margin-top: var(--space-sm);
	margin-bottom: var(--space-md);
}

.fb-request-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	width: 100%;
	max-width: 380px;
	height: 48px;
	border: 2px solid var(--color-primary) !important;
	color: var(--color-primary) !important;
	background: transparent !important;
	font-family: var(--font-heading) !important;
	font-weight: 700 !important;
	font-size: var(--font-size-sm) !important;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	transition: all var(--transition-fast);
	cursor: pointer;
}

.fb-request-quote-btn:hover {
	background-color: var(--color-primary) !important;
	color: white !important;
}

/* Meta Actions Row (Wishlist, Compare, Share) */
.fb-single-meta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	border-top: 1px solid var(--color-border);
	padding: var(--space-md) 0;
	margin-bottom: var(--space-sm);
}

.fb-meta-action-btn {
	background: none;
	border: none;
	color: var(--color-text);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	font-weight: 600;
	padding: 0;
	transition: color var(--transition-fast);
}

.fb-meta-action-btn:hover {
	color: var(--color-primary);
}

.fb-meta-action-btn svg {
	color: var(--color-text-muted);
	transition: color var(--transition-fast);
}

.fb-meta-action-btn:hover svg {
	color: var(--color-primary);
}

/* Share Dropdown menu */
.fb-share-menu {
	position: relative;
}

.fb-share-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	width: 140px;
	padding: var(--space-xs) 0;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--transition-fast);
}

.fb-share-menu.active .fb-share-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(4px);
}

.fb-share-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--font-size-xs);
	transition: background var(--transition-fast);
}

.fb-share-dropdown a:hover {
	background-color: var(--color-surface-alt);
	color: var(--color-primary);
}

/* SKU / Metadata block */
.fb-single-meta-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--font-body);
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-md);
}

.fb-single-meta-details span {
	display: block;
}

.meta-label {
	font-weight: 700;
	color: var(--color-surface-dark);
}

.fb-single-meta-details a {
	color: var(--color-text-muted);
}

.fb-single-meta-details a:hover {
	color: var(--color-primary);
}

/* ==========================================================================
   8. Details Tabs Section
   ========================================================================== */
.fb-product-tabs-wrapper {
	margin-top: var(--space-xl);
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-xl);
}

.fb-tabs-nav {
	display: flex;
	border-bottom: 2px solid var(--color-border);
	margin-bottom: var(--space-lg);
	overflow-x: auto;
	white-space: nowrap;
}

.fb-tab-trigger {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px var(--space-md);
	font-family: var(--font-heading);
	font-size: var(--font-size-base);
	font-weight: 700;
	color: var(--color-text-muted);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.fb-tab-trigger.active {
	border-bottom-color: var(--color-primary);
	color: var(--color-primary);
}

.fb-tab-trigger:hover {
	color: var(--color-primary);
}

.fb-tab-panel {
	display: none;
	animation: fbFadeIn 300ms ease forwards;
}

.fb-tab-panel.active {
	display: block;
}

@keyframes fbFadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Tab contents specification table */
.fb-specifications-table-wrapper {
	background-color: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.fb-specifications-table {
	width: 100%;
	border-collapse: collapse;
}

.fb-specifications-table tr {
	border-bottom: 1px solid var(--color-border);
}

.fb-specifications-table tr:last-child {
	border-bottom: none;
}

.fb-specifications-table tr:nth-child(even) {
	background-color: var(--color-surface);
}

.fb-spec-label {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--font-size-sm);
	color: var(--color-surface-dark);
	padding: 12px 20px;
	width: 250px;
	border-right: 1px solid var(--color-border);
}

.fb-spec-value {
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	color: var(--color-text);
	padding: 12px 20px;
}

@media (max-width: 639px) {
	.fb-specifications-table tr {
		display: flex;
		flex-direction: column;
	}
	.fb-spec-label {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--color-border);
		padding: 10px 16px;
	}
	.fb-spec-value {
		padding: 10px 16px;
	}
}

/* Downloads list card layout */
.fb-downloads-wrapper {
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

.fb-downloads-list {
	list-style: none;
	padding: 0;
	margin: var(--space-md) 0 0 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.fb-download-item {
	display: flex;
	align-items: center;
	background-color: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 16px var(--space-md);
	gap: var(--space-md);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.fb-download-item:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-sm);
}

.fb-download-icon {
	flex-shrink: 0;
	background: var(--color-surface-alt);
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fb-download-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-grow: 1;
}

.fb-download-info strong {
	font-family: var(--font-heading);
	font-size: var(--font-size-sm);
	color: var(--color-surface-dark);
}

.fb-download-info span {
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
}

.fb-mock-download {
	flex-shrink: 0;
}

@media (max-width: 639px) {
	.fb-download-item {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.fb-download-icon {
		margin: 0 auto;
	}
	.fb-mock-download {
		width: 100%;
	}
}

/* Reviews List Overlay */
#fb-tab-reviews #reviews {
	padding: 0;
}

#fb-tab-reviews .commentlist {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-lg) 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

#fb-tab-reviews .commentlist li {
	background-color: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}

#fb-tab-reviews .commentlist li img.avatar {
	float: left;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-right: var(--space-md);
}

#fb-tab-reviews .comment-text {
	margin-left: 64px;
}

#fb-tab-reviews .comment-text .meta {
	font-family: var(--font-heading);
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	margin-bottom: var(--space-xs);
}

#fb-tab-reviews .comment-text .meta strong {
	color: var(--color-surface-dark);
}

#fb-tab-reviews .comment-text .description {
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	color: var(--color-text);
}

#fb-tab-reviews .star-rating {
	float: right;
}

#fb-tab-reviews .comment-respond {
	background-color: var(--color-surface-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
}

#fb-tab-reviews .comment-reply-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-md);
}

#fb-tab-reviews .comment-form p {
	margin-bottom: var(--space-md);
}

#fb-tab-reviews .comment-form label {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-xs);
}

#fb-tab-reviews .comment-form input[type="text"],
#fb-tab-reviews .comment-form input[type="email"],
#fb-tab-reviews .comment-form textarea {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 10px 16px;
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	outline: none;
	background: white;
}

#fb-tab-reviews .comment-form textarea {
	height: 120px;
}

#fb-tab-reviews .comment-form input[type="submit"] {
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	padding: 12px 24px;
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--transition-fast);
}

#fb-tab-reviews .comment-form input[type="submit"]:hover {
	background-color: var(--color-primary-dark);
}
