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


/* Reset filters buttons on product archive */
.wd-clear-filters {
	display: none !important;
    border: solid 2px red !important;
    padding: 10px;
    border-radius: 5px;
    background-color: #ffecec;
}

/* Header search placeholder */
.widget.woocommerce.widget_layered_nav_filters .chosen {
    padding: 2px 10px;
    border-radius: 5px;
    background-color: #e3e3e3;
}
/* END - Reset filters buttons on product archive */

/* Change filters icon on mobile bottom navbar */
.wd-toolbar-sidebar.wd-filter-icon .wd-tools-icon:before {
    content: url(/wp-content/uploads/2025/05/filters-1.svg) !important;
    width: 20px;
}
/* END - Change filters icon on mobile bottom navbar */

/* Change Mareste Imaginea button position from left to right  (product page) */
.product-additional-galleries {
    right: 10px;
    left: auto !important;
}

/* END - Change Mareste Imaginea button position from left to right  (product page) */

.wd-search-full-screen .searchform input[type="text"]::placeholder {
    font-weight: 500;
    font-size: 0.7em;
    color: #c3c3c3;
	font-style: italic;
}

/* hide product with id 1422 from everywhere */
.wd-product[data-id="1422"] {
    display: none;
}
/* END - hide product with id 1422 from everywhere */

/* Display a black bar with attribute Garantie 1 an for pa_info-labels with tag_ID=906 */
.custom-attributes-row {
    display: flex;
    justify-content: stretch;
    gap: 6px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 768px) {
.custom-attributes-row {
    display: inline-block;
}
}

.flex-bar {
    flex: 1 1 0;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 5px;
    text-transform: capitalize;
    min-width: 0; /* Prevent overflow */
}

/* Individual bar colors */
.custom-attribute-bar-986 {
    background: transparent; /* Example: Pink, change as needed */
	border: solid 1px #FC0000;
    color: black;
}
.custom-attribute-bar-906 {
    background: transparent;
	border: solid 1px #FC0000;
    color: black;
}

/**** Hides attribute label fron product image */
.attribute-label.label-term-garantie-1-an.label-attribute-pa_info-labels , .attribute-label.label-term-avans-0.label-attribute-pa_info-labels {
    display: none !important;
}
/* END - Display a black bar with attribute Garantie 1 an for pa_info-labels with tag_ID=906 */

/* Product labels */
.product-labels {
    max-width: 80% !important;
}

.product-label {
    text-transform: unset !important;
}
/* END - Product labels */

/* Hide filter labels in product archive for "Anul fabricatiei" */
li.chosen.chosen-anul-fabricatiei {
    display: none;
}
/* END - Hide filter labels in product archive for "Anul fabricatiei" */

/* Hide attributes KM Parcursi si Motor in Product Archive */
tr.woocommerce-product-attributes-item.woocommerce-product-attributes-item--attribute_pa_km-parcursi {
    display: none;
}

tr.woocommerce-product-attributes-item.woocommerce-product-attributes-item--attribute_pa_motor {
    display: none;
}
/* END - Hide attributes KM Parcursi si Motor in Product Archive */

/* Hides Filters widget on search page */
body.search #desktop-auto-filters,
body.search #mobile-auto-filters {
	display: none;
}
/* END - Hides Filters widget on search page */
