/* WooCommerce, Cart/Checkout Blocks and account views. */

.bpro-theme .woocommerce ul.products,
.bpro-theme ul.products.bpro-product-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
}

.bpro-theme .woocommerce ul.products::before,
.bpro-theme .woocommerce ul.products::after,
.bpro-theme ul.products.bpro-product-grid::before,
.bpro-theme ul.products.bpro-product-grid::after {
	display: none;
}

.bpro-theme .woocommerce ul.products li.product,
.bpro-theme ul.products.bpro-product-grid li.product {
	background: var(--bpro-white);
	border: 1px solid var(--bpro-grey-300);
	display: flex;
	flex-direction: column;
	float: none;
	margin: 0;
	min-width: 0;
	padding: 0 0 22px;
	position: relative;
	width: auto;
}

.bpro-theme .woocommerce ul.products li.product a.woocommerce-loop-product__link {
	color: var(--bpro-black);
	display: block;
	text-decoration: none;
}

.bpro-theme .woocommerce ul.products li.product img {
	aspect-ratio: 1;
	background: var(--bpro-off-white);
	margin: 0;
	object-fit: contain;
	width: 100%;
}

.bpro-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--bpro-font-display);
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.06;
	margin: 0;
	padding: 22px 20px 10px;
}

.bpro-theme .woocommerce ul.products li.product .price {
	color: var(--bpro-black);
	font-size: 18px;
	font-weight: 850;
	margin: auto 20px 14px;
}

.bpro-theme .woocommerce ul.products li.product .stock {
	font-size: 12px;
	margin-inline: 20px;
}

.bpro-theme .woocommerce ul.products li.product .button,
.bpro-theme ul.products.bpro-product-grid li.product .button {
	align-self: flex-start;
	margin: 0 20px;
}

.bpro-data-badge {
	font-size: 9px;
	font-weight: 900;
	left: 12px;
	letter-spacing: 0.08em;
	padding: 7px 9px;
	position: absolute;
	top: 12px;
	text-transform: uppercase;
	z-index: 2;
}

.bpro-data-badge--verified {
	background: var(--bpro-yellow);
	color: var(--bpro-black);
}

.bpro-data-badge--review {
	background: var(--bpro-graphite);
	color: var(--bpro-white);
}

.bpro-card-specs {
	display: grid;
	gap: 0;
	margin: 0 20px 18px;
}

.bpro-card-specs > div {
	border-top: 1px solid var(--bpro-grey-100);
	display: grid;
	font-size: 11px;
	gap: 8px;
	grid-template-columns: 0.9fr 1.1fr;
	padding: 7px 0;
}

.bpro-card-specs dt {
	color: var(--bpro-grey-600);
}

.bpro-card-specs dd {
	color: var(--bpro-black);
	font-weight: 720;
	margin: 0;
	text-align: right;
}

/* Single product. */
.bpro-theme.single-product .content-area,
.bpro-theme.woocommerce-page .content-area {
	max-width: 1280px;
	padding-inline: clamp(18px, 4vw, 56px);
}

.bpro-theme.single-product div.product {
	display: flow-root;
}

.bpro-theme.single-product div.product div.images,
.bpro-theme.single-product div.product div.summary {
	margin-bottom: 70px;
}

.bpro-theme.single-product div.product div.images {
	width: 52%;
}

.bpro-theme.single-product div.product div.summary {
	width: 43%;
}

.bpro-theme.single-product .product_title {
	color: var(--bpro-black);
	font-family: var(--bpro-font-display);
	font-size: clamp(40px, 4.5vw, 66px);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 0.97;
}

.bpro-theme.single-product .summary .price {
	color: var(--bpro-black);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 900;
}

.bpro-product-identity {
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 8px 20px;
	letter-spacing: 0.035em;
	margin: 12px 0 20px;
}

.bpro-product-identity span {
	background: var(--bpro-grey-100);
	padding: 6px 9px;
}

.bpro-key-specs {
	border-bottom: 1px solid var(--bpro-grey-300);
	border-top: 1px solid var(--bpro-grey-300);
	display: grid;
	margin: 26px 0;
}

.bpro-key-specs > div {
	border-bottom: 1px solid var(--bpro-grey-100);
	display: grid;
	font-size: 13px;
	gap: 16px;
	grid-template-columns: minmax(120px, 0.8fr) 1.2fr;
	padding: 10px 0;
}

.bpro-key-specs > div:last-child {
	border-bottom: 0;
}

.bpro-key-specs dt {
	color: var(--bpro-grey-600);
}

.bpro-key-specs dd {
	font-weight: 750;
	margin: 0;
}

.bpro-verification-warning {
	background: #fff4c5;
	border-left: 4px solid var(--bpro-yellow-dark);
	font-size: 12px;
	padding: 12px 14px;
}

.bpro-theme.single-product form.cart {
	align-items: stretch;
	display: flex;
	gap: 10px;
}

.bpro-theme .quantity .qty {
	border: 1px solid var(--bpro-grey-300);
	border-radius: 0;
	min-height: 52px;
	min-width: 74px;
	width: 74px;
}

.bpro-product-specification,
.bpro-product-guidance {
	clear: both;
	margin-inline: calc(50% - 50vw);
	width: 100vw;
}

.bpro-product-specification {
	background: var(--bpro-grey-100);
}

.bpro-spec-table {
	background: var(--bpro-white);
}

.bpro-spec-table th {
	width: 42%;
}

.bpro-product-guidance {
	background: var(--bpro-white);
}

.bpro-guidance-grid {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: var(--bpro-grey-300);
	border: 1px solid var(--bpro-grey-300);
	margin-top: 40px;
}

.bpro-guidance-grid article {
	background: var(--bpro-off-white);
	padding: 28px;
}

.bpro-guidance-grid h3 {
	font-size: 20px;
	margin: 0 0 12px;
}

.bpro-guidance-grid p:last-child {
	margin-bottom: 0;
}

.bpro-product-media {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.bpro-theme .woocommerce-tabs,
.bpro-theme .related.products,
.bpro-theme .up-sells.products {
	clear: both;
}

.bpro-theme .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--bpro-grey-300);
	padding: 0;
}

.bpro-theme .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0 24px 0 0;
	padding: 0;
}

.bpro-theme .woocommerce-tabs ul.tabs li a {
	padding: 14px 0;
}

/* Classic cart and checkout. */
.bpro-theme .woocommerce table.shop_table {
	border: 1px solid var(--bpro-grey-300);
	border-collapse: collapse;
	border-radius: 0;
}

.bpro-theme .woocommerce table.shop_table th,
.bpro-theme .woocommerce table.shop_table td {
	border-bottom: 1px solid var(--bpro-grey-300);
	padding: 16px;
}

.bpro-theme .woocommerce-cart-form,
.bpro-theme .cart-collaterals,
.bpro-theme .woocommerce-checkout-review-order,
.bpro-theme .woocommerce-billing-fields,
.bpro-theme .woocommerce-shipping-fields,
.bpro-theme .woocommerce-additional-fields {
	min-width: 0;
}

.bpro-theme .cart-collaterals .cart_totals {
	background: var(--bpro-white);
	padding: 28px;
}

.bpro-theme .woocommerce form .form-row input.input-text,
.bpro-theme .woocommerce form .form-row textarea,
.bpro-theme .woocommerce form .form-row select,
.bpro-theme .select2-container .select2-selection--single {
	border: 1px solid var(--bpro-grey-300);
	border-radius: 0;
	min-height: 50px;
	padding: 10px 12px;
	width: 100%;
}

.bpro-theme .bpro-company-field--hidden {
	display: none !important;
}

.bpro-theme #billing_customer_type_field .description {
	color: var(--bpro-grey-600);
	display: block;
	font-size: 13px;
	line-height: 1.45;
	margin-top: 8px;
}

.bpro-theme .bpro-order-company-data {
	border-top: 1px solid var(--bpro-grey-300);
	margin-top: 24px;
	padding-top: 20px;
}

.bpro-theme .bpro-order-company-data h2 {
	font-size: 24px;
	margin: 0 0 10px;
}

.bpro-theme #order_review_heading,
.bpro-theme .woocommerce-checkout-review-order {
	background: var(--bpro-white);
}

.bpro-theme .woocommerce-checkout-review-order {
	padding: clamp(18px, 3vw, 30px);
}

.bpro-theme #payment {
	background: var(--bpro-grey-100);
	border-radius: 0;
}

/* Cart and Checkout Blocks. */
.bpro-theme .wc-block-cart,
.bpro-theme .wc-block-checkout {
	--wp--preset--color--contrast: var(--bpro-black);
	max-width: 1280px;
}

.bpro-theme .wc-block-components-sidebar-layout {
	gap: clamp(22px, 4vw, 50px);
}

.bpro-theme .wc-block-components-sidebar,
.bpro-theme .wc-block-components-main {
	min-width: 0;
}

.bpro-theme .wc-block-components-sidebar {
	background: var(--bpro-white);
	padding: 24px;
}

.bpro-theme .wc-block-components-product-name,
.bpro-theme .wc-block-components-totals-item__description,
.bpro-theme .wc-block-components-address-card__address-section {
	overflow-wrap: anywhere;
}

.bpro-theme .wc-block-components-totals-item__value,
.bpro-theme .wc-block-formatted-money-amount,
.bpro-theme .wc-block-components-product-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bpro-theme .wc-block-components-quantity-selector {
	border-radius: 0;
	min-height: 42px;
}

.bpro-theme .wc-block-components-button:not(.is-link) {
	background: var(--bpro-yellow);
	border-radius: 0;
	color: var(--bpro-black);
	font-weight: 850;
	min-height: 54px;
}

/* Account. */
.bpro-theme .woocommerce-MyAccount-navigation ul {
	border: 1px solid var(--bpro-grey-300);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpro-theme .woocommerce-MyAccount-navigation a {
	border-bottom: 1px solid var(--bpro-grey-300);
	color: var(--bpro-black);
	display: block;
	font-weight: 700;
	padding: 12px 16px;
	text-decoration: none;
}

.bpro-order-identifiers {
	font-size: 12px;
	margin: 8px 0 0;
}

.bpro-order-identifiers > div {
	display: flex;
	gap: 6px;
}

.bpro-order-identifiers dd {
	margin: 0;
}

@media (max-width: 1024px) {
	.bpro-theme .woocommerce ul.products,
	.bpro-theme ul.products.bpro-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bpro-theme.single-product div.product div.images,
	.bpro-theme.single-product div.product div.summary {
		width: 48%;
	}
}

@media (max-width: 800px) {
	.bpro-theme .woocommerce ul.products,
	.bpro-theme ul.products.bpro-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bpro-theme.single-product div.product div.images,
	.bpro-theme.single-product div.product div.summary {
		float: none;
		width: 100%;
	}

	.bpro-guidance-grid {
		grid-template-columns: 1fr;
	}

	.bpro-theme .wc-block-components-sidebar-layout {
		display: block;
	}

	.bpro-theme .wc-block-components-sidebar {
		margin-top: 24px;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.bpro-theme .woocommerce ul.products,
	.bpro-theme ul.products.bpro-product-grid {
		grid-template-columns: 1fr;
	}

	.bpro-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 27px;
	}

	.bpro-theme.single-product form.cart {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.bpro-theme.single-product form.cart .single_add_to_cart_button {
		flex: 1;
		min-width: 190px;
	}

	.bpro-theme .woocommerce table.shop_table_responsive tr,
	.bpro-theme .woocommerce-page table.shop_table_responsive tr {
		display: block;
		padding: 10px;
	}

	.bpro-theme .woocommerce table.shop_table_responsive tr td,
	.bpro-theme .woocommerce-page table.shop_table_responsive tr td {
		align-items: center;
		display: flex;
		gap: 14px;
		justify-content: space-between;
		min-width: 0;
		text-align: right !important;
	}

	.bpro-theme .woocommerce table.shop_table_responsive tr td::before,
	.bpro-theme .woocommerce-page table.shop_table_responsive tr td::before {
		flex: 0 0 auto;
		text-align: left;
	}

	.bpro-theme .woocommerce table.cart td.product-name {
		overflow-wrap: anywhere;
	}

	.bpro-theme .cart-collaterals .cart_totals,
	.bpro-theme .woocommerce-checkout-review-order,
	.bpro-theme .wc-block-components-sidebar {
		padding: 18px;
		width: 100%;
	}

	.bpro-theme .wc-block-cart-items__row {
		column-gap: 10px;
		grid-template-columns: 70px minmax(0, 1fr) !important;
	}

	.bpro-theme .wc-block-cart-item__image {
		width: 70px !important;
	}

	.bpro-theme .wc-block-cart-item__total {
		grid-column: 2;
	}

	.bpro-theme .wc-block-components-order-summary-item {
		grid-template-columns: 54px minmax(0, 1fr);
	}

	.bpro-theme .wc-block-components-totals-item {
		gap: 14px;
	}

	.bpro-spec-table th,
	.bpro-spec-table td {
		padding: 13px 10px;
	}
}
