/* ==========================================================================
   GLOBAL UTILITIES & LAYOUT (WoodMart Overrides)
   ========================================================================== */

/* Typography & Base Variables */
:root {
	--bb-text-main: #111111;
	--bb-text-muted: #666666;
	--bb-bg-light: #f9f9fb;
	--bb-border-color: #eaeaea;
	--bb-primary: #000000;
	--bb-accent: #0070f3; /* subtle blue */
	--bb-success: #00a650;
	--bb-radius-sm: 8px;
	--bb-radius-md: 12px;
	--bb-radius-lg: 16px;
	--bb-shadow-sm: 0 4px 14px 0 rgba(0,0,0,0.03);
	--bb-shadow-md: 0 8px 30px rgba(0,0,0,0.08);
	--bb-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1350px Container override for desktop */
@media (min-width: 1025px) {
    .single-product .container {
        max-width: 1350px !important;
    }
}

/* Hide Native WooCommerce Tabs to avoid redundant rendering */
.single-product .woocommerce-tabs {
	display: none !important;
}

/* Section Spacing */
.bb-section {
	padding: 60px 0;
	border-bottom: 1px solid var(--bb-border-color);
	background-color: #ffffff;
}

.bb-section:last-of-type {
	border-bottom: none;
}

@media (max-width: 768px) {
	.bb-section {
		padding: 40px 0;
	}
}

.bb-section-inner {
	width: 100%;
}

.bb-section-title {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--bb-text-main);
	margin-bottom: 30px;
	text-align: left;
}

@media (max-width: 768px) {
	.bb-section-title {
		font-size: 24px;
		margin-bottom: 24px;
	}
}

/* ==========================================================================
   MODULE 1: PRODUCT HERO ENHANCEMENTS
   ========================================================================== */

/* Highlights List */
.bb-product-highlights {
	margin-bottom: 24px;
}

.bb-highlights-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.bb-highlight-item {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--bb-text-main);
	background: var(--bb-bg-light);
	padding: 12px;
	border-radius: var(--bb-radius-sm);
	border: 1px solid var(--bb-border-color);
	transition: var(--bb-transition);
}

.bb-highlight-item:hover {
	border-color: #ccc;
	background: #fff;
}

.bb-highlight-icon {
	margin-right: 8px;
	display: flex;
	align-items: center;
	color: var(--bb-text-main);
}
.bb-highlight-icon svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 1024px) {
	.bb-highlights-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mode Info (Delivery / Quote Steps) */
.bb-product-mode-info {
	margin-bottom: 30px;
}

/* Delivery Info Card */
.bb-product-delivery-info {
	padding: 20px;
	background: #fbfbfb;
	border: 1px solid var(--bb-border-color);
	border-radius: var(--bb-radius-md);
	display: flex;
	align-items: flex-start;
}

.bb-delivery-icon-wrap {
	margin-right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #ffffff;
	border: 1px solid var(--bb-border-color);
	border-radius: 50%;
	color: var(--bb-text-main);
	box-shadow: var(--bb-shadow-sm);
}

.bb-delivery-text-wrap {
	display: flex;
	flex-direction: column;
}

.bb-delivery-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--bb-text-muted);
	margin-bottom: 4px;
	font-weight: 700;
}

.bb-delivery-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--bb-text-main);
}

.bb-delivery-support {
	font-size: 13px;
	color: var(--bb-success);
	margin-top: 4px;
	font-weight: 500;
}

/* Quote Process Steps */
.bb-product-quote-steps {
	padding: 20px;
	background: var(--bb-bg-light);
	border-radius: var(--bb-radius-md);
	border: 1px solid var(--bb-border-color);
}

.bb-steps-title {
	font-weight: 600;
	margin: 0 0 15px 0;
	font-size: 14px;
	color: var(--bb-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bb-steps-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-steps-list li {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--bb-text-main);
}

.bb-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: var(--bb-text-main);
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	margin-right: 8px;
}

.bb-step-sep {
	color: #ccc;
	margin: 0 6px;
}

/* Description Native */
.bb-product-description .bb-description-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--bb-text-muted);
	max-width: 900px;
}
.bb-product-description .bb-description-content h3 {
	font-size: 20px;
	color: var(--bb-text-main);
	margin-top: 30px;
	margin-bottom: 15px;
}

/* ==========================================================================
   MODULE 2: VERTICAL STACK
   ========================================================================== */

/* Specifications */
.bb-specs-table-wrapper {
	max-width: 900px;
	border: 1px solid var(--bb-border-color);
	border-radius: var(--bb-radius-md);
	overflow: hidden;
}

.bb-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.bb-specs-table th,
.bb-specs-table td {
	padding: 16px 24px;
	text-align: left;
	border-bottom: 1px solid var(--bb-border-color);
	font-size: 15px;
}

.bb-specs-table tr:last-child th,
.bb-specs-table tr:last-child td {
	border-bottom: none;
}

.bb-specs-table th {
	background: var(--bb-bg-light);
	font-weight: 600;
	color: var(--bb-text-muted);
	width: 30%;
	border-right: 1px solid var(--bb-border-color);
}

.bb-specs-table td {
	color: var(--bb-text-main);
	font-weight: 500;
}

@media (max-width: 768px) {
	.bb-specs-table th,
	.bb-specs-table td {
		display: block;
		width: 100%;
		border-right: none;
		padding: 12px 20px;
	}
	.bb-specs-table th {
		border-bottom: none;
		background: #fdfdfd;
		padding-bottom: 4px;
	}
	.bb-specs-table td {
		padding-top: 0;
		font-weight: 600;
	}
}

/* Features */
.bb-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bb-feature-card {
	display: flex;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--bb-border-color);
	padding: 24px;
	border-radius: var(--bb-radius-md);
	box-shadow: var(--bb-shadow-sm);
	transition: var(--bb-transition);
}

.bb-feature-card:hover {
	box-shadow: var(--bb-shadow-md);
	transform: translateY(-2px);
}

.bb-feature-icon {
	color: var(--bb-text-main);
	margin-right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--bb-bg-light);
	border-radius: 50%;
	flex-shrink: 0;
}
.bb-feature-icon svg {
	width: 20px;
	height: 20px;
}

.bb-feature-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--bb-text-main);
	margin: 0 0 6px 0;
}

.bb-feature-desc {
	font-size: 14px;
	color: var(--bb-text-muted);
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 1024px) {
	.bb-features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bb-features-grid {
		grid-template-columns: 1fr;
	}
}

/* Applications */
.bb-applications-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 30px;
}

.bb-application-card {
	border-radius: var(--bb-radius-md);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--bb-border-color);
	transition: var(--bb-transition);
}

.bb-application-card:hover {
	box-shadow: var(--bb-shadow-md);
}

.bb-application-img {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.bb-application-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--bb-transition);
}

.bb-application-card:hover .bb-application-img img {
	transform: scale(1.05);
}

.bb-application-content {
	padding: 20px;
	text-align: center;
}

.bb-application-text {
	font-size: 16px;
	font-weight: 600;
	color: var(--bb-text-main);
	margin: 0;
}

.bb-btn-outline {
	background: transparent;
	border: 1px solid var(--bb-text-main);
	color: var(--bb-text-main);
	padding: 12px 24px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--bb-transition);
}

.bb-btn-outline:hover {
	background: var(--bb-text-main);
	color: #fff;
}

@media (max-width: 1024px) {
	.bb-applications-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bb-applications-grid {
		grid-template-columns: 1fr;
	}
	.bb-application-img {
		height: 160px;
	}
}

/* ==========================================================================
   MODULE 3: DOWNLOADS, CTA, FAQ
   ========================================================================== */

/* Downloads */
.bb-downloads-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.bb-download-card {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--bb-border-color);
	padding: 20px;
	border-radius: var(--bb-radius-md);
	transition: var(--bb-transition);
}

.bb-download-card:hover {
	border-color: #ccc;
	box-shadow: var(--bb-shadow-sm);
}

.bb-download-icon {
	color: var(--bb-text-main);
	margin-right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--bb-bg-light);
	border-radius: var(--bb-radius-sm);
}
.bb-download-icon svg {
	width: 24px;
	height: 24px;
}

.bb-download-info {
	flex: 1;
}

.bb-download-title {
	font-weight: 600;
	font-size: 15px;
	color: var(--bb-text-main);
	margin: 0 0 4px 0;
}

.bb-download-meta {
	font-size: 12px;
	color: var(--bb-text-muted);
	font-weight: 600;
	display: inline-block;
	background: #f0f0f0;
	padding: 2px 6px;
	border-radius: 4px;
}

.bb-download-button {
	background: var(--bb-bg-light);
	color: var(--bb-text-main);
	padding: 10px 20px;
	border-radius: 100px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: var(--bb-transition);
	border: 1px solid var(--bb-border-color);
}

.bb-download-button:hover {
	background: var(--bb-text-main);
	color: #fff;
	border-color: var(--bb-text-main);
}

@media (max-width: 480px) {
	.bb-downloads-grid {
		grid-template-columns: 1fr;
	}
	.bb-download-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.bb-download-icon {
		margin-right: 0;
	}
}

/* Quote CTA */
.bb-cta-wrapper {
	background: #111111;
	color: #ffffff;
	border-radius: var(--bb-radius-lg);
	padding: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 40px;
	position: relative;
	overflow: hidden;
}

.bb-cta-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #0070f3, #00a650, #f5a623);
}

.bb-cta-content {
	flex: 1;
	min-width: 300px;
}

.bb-cta-title {
	color: #ffffff;
	margin: 0 0 16px 0;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.bb-cta-desc {
	margin: 0 0 30px 0;
	font-size: 16px;
	color: #a1a1aa;
	line-height: 1.6;
	max-width: 500px;
}

.bb-cta-trust-badges {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.bb-trust-badge {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: #e4e4e7;
}

.bb-trust-badge svg {
	width: 16px;
	height: 16px;
	margin-right: 6px;
	color: #fff;
	opacity: 0.7;
}

.bb-cta-actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 250px;
}

.bb-btn-primary {
	background: #ffffff;
	color: #111111;
	border: none;
	padding: 16px 32px;
	border-radius: 100px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--bb-transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bb-btn-primary svg {
	margin-right: 8px;
}

.bb-btn-primary:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 20px rgba(255,255,255,0.1);
}

.bb-btn-secondary {
	background: transparent;
	color: #ffffff;
	border: 1px solid rgba(255,255,255,0.2);
	padding: 16px 32px;
	border-radius: 100px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--bb-transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bb-btn-secondary:hover {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.4);
}

@media (max-width: 991px) {
	.bb-cta-wrapper {
		padding: 40px;
		flex-direction: column;
		text-align: center;
	}
	.bb-cta-desc {
		margin-left: auto;
		margin-right: auto;
	}
	.bb-cta-trust-badges {
		justify-content: center;
	}
	.bb-cta-actions {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.bb-cta-title {
		font-size: 26px;
	}
}

/* FAQ */
.bb-faq-accordion {
	max-width: 900px;
}

.bb-faq-item {
	border-bottom: 1px solid var(--bb-border-color);
}

.bb-faq-item:first-child {
	border-top: 1px solid var(--bb-border-color);
}

.bb-faq-item[open] .bb-faq-question {
	color: var(--bb-text-main);
	padding-bottom: 10px;
}

.bb-faq-item[open] .bb-faq-question::after {
	transform: translateY(-50%) rotate(180deg);
}

.bb-faq-question {
	list-style: none; /* Hide default arrow */
	cursor: pointer;
	padding: 24px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--bb-text-main);
	position: relative;
	transition: var(--bb-transition);
	padding-right: 40px;
}

.bb-faq-question:hover {
	color: #000;
}

.bb-faq-question::-webkit-details-marker {
	display: none;
}

.bb-faq-question::after {
	content: "\25BC"; /* Down arrow */
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	color: var(--bb-text-muted);
	transition: transform 0.3s ease;
}

.bb-faq-answer {
	padding-bottom: 24px;
	color: var(--bb-text-muted);
	line-height: 1.8;
	font-size: 16px;
}

@media (max-width: 768px) {
	.bb-faq-question {
		font-size: 16px;
		padding: 20px 0;
	}
	.bb-faq-answer {
		font-size: 15px;
	}
}

/* ==========================================================================
   PRODUCT GRID PLACEHOLDER FIX
   ========================================================================== */
.wd-product-thumb img.woocommerce-placeholder,
.wd-product-thumb img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
