/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.3
 Text Domain:  woodmart
*/

/* brands */
.color-scheme-light .wd-brand-item a {
	color: #ffffff;
}
.color-scheme-light .wd-brand-item a:hover {
	color: #ffffff;
	opacity: 0.5;
}

/* social icons */
footer .wp-block-social-links.is-content-justification-right {
	display: flex;	
}

/* footer */
footer .menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* single post */

.single .wd-post-cat, .archive .wd-post-cat, .single .wd-post-meta, .archive .wd-post-meta, .archive .wd-post-excerpt {
	display: none !important;
}

.single .wd-single-post-header .title {
	align-self: flex-start;
	text-align: left;
	order: 2;
	margin-top: var(--wd-block-spacing);
}

.single .wd-post-image {
	order: 1;
}

.single-post #main-content > aside {
	position: sticky;
	top: 30px;
	align-self: flex-start;
}

/* term description */
.term-description {
	display: none !important;
}

/* single product */

button.single_add_to_cart_button.button.alt {
	flex: 1 0 auto;
}

button#wd-add-to-cart {
	flex: 1 0 auto;
}

.product p.product-condition {
	margin-bottom: .5rem;
}

/* product grey overlay */

.product-image-link, .wd-cat-image, .single-product .woocommerce-product-gallery__image {
	position: relative;
}

.product-image-link::after, .wd-cat-image::after, .single-product .woocommerce-product-gallery__image::after {
	content: "";
	background-color: rgba(0,0,0,0.03);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
}

/* product hover */

.wd-product.wd-hover-base .wd-bottom-actions .wd-add-btn > a.add_to_cart_button {
	display: none !important;
}
.wd-hover-base.wd-product .wd-add-btn .wc-gzd-additional-info {
	margin-top: 0 !important; /* only use this, when add to cart button is not visible */
}

/* cart */

.woocommerce-cart-form .product-quantity {
	display: none !important;
}

/* germanized additional infos */

.shipping-costs-info {
	display: block;
}

.cart_totals .wc-gzd-additional-wrapper, .woocommerce-checkout table.shop_table .wc-gzd-additional-wrapper {
	text-align: left;
}

.woocommerce-checkout .wc-gzd-product-differential-taxation-mark {
	display: inline-block;
	margin: 0 5px 0 0;
}

/* Shop filter */

/* Top brands */
.wd-sidebar .cat-item-489, .wd-sidebar .cat-item-1449 {
	position: relative !important;
	padding-bottom: 20px !important;
	margin-bottom: 20px !important;
}
.wd-sidebar .cat-item-489::after, .wd-sidebar .cat-item-1449::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: calc(100% + 22px);
	height: 1px;
	background-color: rgba(129,129,129,0.2);
}

/* Account */

td:is(.product-btn,.woocommerce-orders-table__cell-order-actions) a {
	background-color: initial !important;
	color: var(--wd-primary-color) !important;
	padding: 0;
	min-height: initial;
	border-bottom: 2px solid #E9E9E9;
	border-radius: 0;
	margin-bottom: 7px !important;
	margin-inline-end: 12px !important;
	box-shadow: none !important;
}
td:is(.product-btn,.woocommerce-orders-table__cell-order-actions) a:last-child {
	margin-inline-end: 0px !important;
}

/* fixes */

.wd-caption-mask figcaption {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.baxe-404 {
	align-items: center !important;
	margin-top: 40px !important;
	margin-bottom: 60px !important;
}
.baxe-404-buttons {
	justify-content: center !important;
}

li.cat-item-142, li.cat-item-147 {
	display: none !important; /* WPML bug -> Because products are not translated, empty categories do not show on translated shop page. We use WPML's fallback for not translated products, but there is a bug with it. */
}

@media screen and (max-device-width: 1024px) {
	.fix-ios-background-attachment {
		background-attachment: scroll !important;
	}
}
