/* Bach Cargo - front-end styles loaded on every page by the custom plugin. */

/* ---------------------------------------------------------------------------
   Shop, product category and product pages: same dark look as the Elementor pages
   (black background, Roboto, green buttons). Several rules need !important to
   win over the "Logo størrelse ..." Code Snippet and inline block styles.
   --------------------------------------------------------------------------- */
body.post-type-archive-product,
body.tax-product_cat,
body.single-product {
	--bach-bg: #0A0A0A;
	--bach-card: #1A1A1A;
	--bach-green: #00D26A;
	--bach-green-hover: #00B85C;
	--bach-lime: #7DC242;
	--bach-muted: #A8A8A8;
	background-color: var(--bach-bg);
	color: #FFFFFF;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 400;
	letter-spacing: 0;
}

body.post-type-archive-product main,
body.tax-product_cat main {
	padding-bottom: 96px !important;
}

/* Hero: shorter banner that fades into the page, with the heading on top of it. */
body.post-type-archive-product main > .wp-block-cover,
body.tax-product_cat main > .wp-block-cover {
	min-height: clamp(320px, 46vw, 600px) !important;
}

body.post-type-archive-product main > .wp-block-cover::after,
body.tax-product_cat main > .wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.55) 55%, #0A0A0A 100%);
	pointer-events: none;
}

body.post-type-archive-product main > h1.wp-block-heading,
body.tax-product_cat main > h1.wp-block-heading {
	position: relative;
	z-index: 1;
	max-width: 900px !important;
	margin: clamp(-200px, -15vw, -90px) auto 0 !important;
	padding: 0 20px !important;
	color: #FFFFFF;
	font-family: inherit;
	font-size: clamp(1.9rem, 4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

body.post-type-archive-product main > h1.wp-block-heading::before,
body.tax-product_cat main > h1.wp-block-heading::before {
	content: "BACH CARGO";
	display: block;
	margin-bottom: 14px;
	color: var(--bach-lime);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
}

body.post-type-archive-product main > .wp-block-preformatted,
body.tax-product_cat main > .wp-block-preformatted {
	position: relative;
	z-index: 1;
	margin: 18px auto 0 !important;
	padding: 0 20px !important;
	background: none;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 1.125rem;
	text-align: center;
	white-space: normal;
}

body.post-type-archive-product main > .wp-block-preformatted strong,
body.tax-product_cat main > .wp-block-preformatted strong {
	font-weight: 500;
}

body.post-type-archive-product main > .wp-block-list,
body.tax-product_cat main > .wp-block-list {
	max-width: 640px !important;
	margin: 14px auto 0 !important;
	padding: 0 20px !important;
	list-style: none;
	color: var(--bach-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	text-align: center;
}

body.post-type-archive-product main > .wp-block-list strong,
body.tax-product_cat main > .wp-block-list strong {
	font-weight: 400;
}

/* Product cards */
body.post-type-archive-product .wp-block-woocommerce-product-collection,
body.tax-product_cat .wp-block-woocommerce-product-collection {
	margin-top: 56px !important;
	overflow: visible !important;
}

body.post-type-archive-product .wc-block-product-template,
body.tax-product_cat .wc-block-product-template {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	margin: 0 auto;
	padding: 0;
	max-width: 1180px;
}

body.post-type-archive-product .wc-block-product-template > li.wc-block-product,
body.tax-product_cat .wc-block-product-template > li.wc-block-product {
	flex: 0 1 370px;
	margin: 0;
	padding: 28px 28px 32px;
	background-color: var(--bach-card);
	border: 1px solid #262626;
	border-radius: 4px;
	text-align: center;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

body.post-type-archive-product .wc-block-product-template > li.wc-block-product:hover,
body.tax-product_cat .wc-block-product-template > li.wc-block-product:hover {
	transform: translateY(-4px);
	border-color: var(--bach-lime);
}

body.post-type-archive-product .wc-block-product .wc-block-components-product-image,
body.tax-product_cat .wc-block-product .wc-block-components-product-image {
	height: 250px !important;
	margin-bottom: 20px;
}

body.post-type-archive-product .wc-block-product .wp-block-post-title,
body.tax-product_cat .wc-block-product .wp-block-post-title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 1.25rem !important;
	font-weight: 700;
}

body.post-type-archive-product .wc-block-product .wp-block-post-title a,
body.tax-product_cat .wc-block-product .wp-block-post-title a {
	color: #FFFFFF;
	text-decoration: none;
}

body.post-type-archive-product .wc-block-product .wc-block-components-product-price,
body.tax-product_cat .wc-block-product .wc-block-components-product-price {
	color: var(--bach-muted);
	font-size: 1rem !important;
}

body.post-type-archive-product .wc-block-product .wp-block-button__link,
body.tax-product_cat .wc-block-product .wp-block-button__link {
	padding: 13px 28px;
	background-color: var(--bach-green);
	border-radius: 2px;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 0.9375rem !important;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

body.post-type-archive-product .wc-block-product .wp-block-button__link:hover,
body.tax-product_cat .wc-block-product .wp-block-button__link:hover {
	background-color: var(--bach-green-hover);
	color: #FFFFFF;
}

/* ---------------------------------------------------------------------------
   Single product page
   --------------------------------------------------------------------------- */

/* The Bach Cargo header is already on the page; drop the theme's own header. */
body.single-product .wp-site-blocks > header.wp-block-template-part {
	display: none;
}

body.single-product main {
	padding: 48px 20px 96px !important;
}

body.single-product main > * {
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.single-product .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb a {
	color: #888888;
	font-size: 0.8125rem;
	text-decoration: none;
}

body.single-product .woocommerce-breadcrumb a:hover {
	color: var(--bach-lime);
}

/* Image + buy box */
body.single-product main > .wp-block-columns {
	gap: 48px;
	align-items: center;
	margin-top: 28px !important;
}

body.single-product .wp-block-woocommerce-product-image-gallery {
	padding: 40px;
	background-color: var(--bach-card);
	border: 1px solid #262626;
	border-radius: 4px;
}

body.single-product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

/* Hover zoom: keep the card colour behind the enlarged image instead of white. */
body.single-product .woocommerce-product-gallery .zoomImg {
	background-color: var(--bach-card) !important;
}

body.single-product h1.wp-block-post-title {
	margin: 0 0 12px;
	color: #FFFFFF;
	font-family: inherit;
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

body.single-product h1.wp-block-post-title::before {
	content: "ELEKTRISK ERHVERVSKØRETØJ";
	display: block;
	margin-bottom: 12px;
	color: var(--bach-lime);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
}

body.single-product .wp-block-woocommerce-product-price .wc-block-components-product-price,
body.single-product .woocommerce-variation-price .price {
	color: #FFFFFF;
	font-size: 1.5rem !important;
	font-weight: 500;
}

body.single-product .woocommerce-price-suffix {
	color: var(--bach-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

body.single-product form.cart {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid #262626;
}

body.single-product table.variations {
	margin-bottom: 0;
}

body.single-product table.variations th.label {
	padding: 0 16px 0 0;
	color: var(--bach-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 50px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	vertical-align: middle !important;
}

body.single-product table.variations select,
body.single-product form.cart .quantity input.qty {
	height: 50px !important;
	padding: 0 14px !important;
	line-height: 1.4 !important;
	background-color: var(--bach-card);
	border: 1px solid #3A3A3A;
	border-radius: 2px;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 1rem;
}

body.single-product table.variations select {
	min-width: 220px;
	padding-right: 40px !important;
}

/* The opened list is drawn by the browser; without this it is white text on white. */
body.single-product table.variations select {
	color-scheme: dark;
}

body.single-product table.variations select option {
	background-color: var(--bach-card);
	color: #FFFFFF;
}

body.single-product table.variations select:focus,
body.single-product form.cart .quantity input.qty:focus {
	border-color: var(--bach-green);
	outline: none;
}

body.single-product .reset_variations {
	margin-left: 12px;
	color: var(--bach-muted);
	font-size: 0.8125rem;
}

body.single-product .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin-top: 20px;
}

body.single-product form.cart .quantity {
	margin: 0 !important;
}

body.single-product form.cart .quantity input.qty {
	width: 72px;
	text-align: center;
}

body.single-product .single_add_to_cart_button {
	height: 50px;
	padding: 0 36px !important;
	background-color: var(--bach-lime) !important;
	border-radius: 2px !important;
	color: #0A0A0A !important;
	font-family: inherit;
	font-size: 0.9375rem !important;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

body.single-product .single_add_to_cart_button:hover {
	background-color: #6CAE36 !important;
}

/* Greyed out until a range is chosen. */
body.single-product .single_add_to_cart_button.disabled {
	background-color: #2E2E2E !important;
	color: #8A8A8A !important;
	opacity: 1 !important;
}

body.single-product .wp-block-woocommerce-product-meta {
	margin-top: 24px;
	color: #888888;
	font-size: 0.8125rem;
}

body.single-product .wp-block-woocommerce-product-meta a {
	color: var(--bach-muted);
}

/* Tabs: description, specifications, reviews */
body.single-product .wp-block-woocommerce-product-details {
	margin-top: 72px !important;
}

body.single-product .woocommerce-tabs ul.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: 0 0 32px;
	padding: 0;
	border-bottom: 1px solid #262626;
	list-style: none;
}

body.single-product .woocommerce-tabs ul.wc-tabs li {
	margin: 0 0 -1px !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0;
}

body.single-product .woocommerce-tabs ul.wc-tabs li::before,
body.single-product .woocommerce-tabs ul.wc-tabs li::after {
	display: none;
}

body.single-product .woocommerce-tabs ul.wc-tabs li a {
	display: block;
	padding: 0 0 14px !important;
	border: 0 !important;
	color: #888888;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

body.single-product .woocommerce-tabs ul.wc-tabs li.active {
	border-bottom-color: var(--bach-green) !important;
}

body.single-product .woocommerce-tabs ul.wc-tabs li.active a,
body.single-product .woocommerce-tabs ul.wc-tabs li a:hover {
	color: #FFFFFF;
}

/* Long text sits on a lighter panel with softer contrast than white on black. */
body.single-product .woocommerce-Tabs-panel {
	max-width: 860px;
	padding: 40px 44px !important;
	background-color: #1C1C1C;
	border: 1px solid #2A2A2A;
	border-radius: 4px;
	color: #CFCFCF;
	font-size: 1.0625rem;
	line-height: 1.8;
}

body.single-product .woocommerce-Tabs-panel > :last-child {
	margin-bottom: 0;
}

/* The tab already says what the panel is; hide the repeated heading. */
body.single-product .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel .comment-reply-title {
	margin: 0 0 20px;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.45;
}

body.single-product .woocommerce-Tabs-panel h3 {
	margin: 40px 0 14px;
	color: var(--bach-lime);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.single-product .woocommerce-Tabs-panel p {
	margin: 0 0 14px;
}

body.single-product .woocommerce-Tabs-panel strong {
	color: #FFFFFF;
	font-weight: 600;
}

body.single-product table.shop_attributes {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid #262626;
	background: none;
	font-style: normal;
	text-align: left;
}

body.single-product table.shop_attributes th {
	width: 200px;
	color: var(--bach-muted);
	font-weight: 500;
}

body.single-product table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

body.single-product #reviews textarea,
body.single-product #reviews select {
	background-color: var(--bach-card);
	border: 1px solid #3A3A3A;
	border-radius: 2px;
	color: #FFFFFF;
	font-family: inherit;
}

body.single-product #reviews .submit {
	background-color: var(--bach-green);
	border-radius: 2px;
	color: #FFFFFF;
	font-weight: 600;
	text-transform: uppercase;
}

@media (max-width: 781px) {
	body.single-product main {
		padding-top: 28px !important;
	}
	body.single-product .wp-block-woocommerce-product-image-gallery {
		padding: 20px;
	}
	body.single-product .woocommerce-Tabs-panel {
		padding: 24px 20px !important;
	}
	body.single-product .single_add_to_cart_button {
		flex: 1;
	}
}

/* Notice box shown by frontend.js, e.g. when no range is chosen. */
.bach-notice {
	position: fixed;
	top: 96px;
	left: 50%;
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 14px;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 16px 18px;
	background-color: #1A1A1A;
	border: 1px solid #2E2E2E;
	border-left: 4px solid #7DC242;
	border-radius: 4px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	color: #FFFFFF;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.bach-notice.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.bach-notice__icon {
	flex: 0 0 28px;
	height: 28px;
	background-color: #7DC242;
	border-radius: 50%;
	color: #0A0A0A;
	font-size: 1rem;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}

.bach-notice__text {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.45;
}

.bach-notice__close {
	flex: 0 0 auto;
	padding: 0 4px;
	background: none;
	border: 0;
	color: #A8A8A8;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.bach-notice__close:hover {
	color: #FFFFFF;
}

body.single-product table.variations select.bach-needs-choice {
	border-color: var(--bach-lime);
	box-shadow: 0 0 0 3px rgba(125, 194, 66, 0.25);
}
