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

/* 1. Hide category cluster on product pages */
.wd-category-cluster {
    display: none !important;
}

/* 2. Limit height of category/layered navigation widgets with scrollbar */
.widget_product_categories ul,
.widget_layered_nav ul,
.woodmart-widget-layered-nav ul {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 3. Hide reset variations link on product pages */
.woocommerce .reset_variations {
    display: none !important;
}

/* 4. Custom styling for WooCommerce ordering dropdown */
.woocommerce-ordering-list ul li a::before {
    content: "\f107" !important;
    font-family: "woodmart-font" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 1.4em !important;
    height: 1.4em !important;
    margin-right: 10px !important;
    border: 2px solid var(--brcolor-gray-300, #d1d1d1) !important;
    border-radius: 4px !important;
    vertical-align: middle !important;
    font-size: 10px !important;
    transition: all .2s ease !important;
    color: rgba(0,0,0,0) !important;
    background: #fff !important;
}

/* 5. Active/Current state for ordering dropdown */
.woocommerce-ordering-list ul li a.active::before,
.woocommerce-ordering-list ul li.current a::before {
    color: #fff !important;
    background-color: var(--wd-primary-color, #d4af37) !important;
    border-color: var(--wd-primary-color, #d4af37) !important;
}

/* 6. Hide quantity on single product */
.single-product .quantity {
    display: none !important;
}

/* Elementor Nested Tabs - Always white */
.e-n-tabs-heading .e-n-tab-title,
.e-n-tabs-heading .e-n-tab-title:hover,
.e-n-tabs-heading .e-n-tab-title[aria-selected="true"] {
    background-color: #fff !important;
    background-image: none !important;
}

/* Nested Tabs - default */
.e-n-tabs-heading .e-n-tab-title {
    border: 0 !important;
    border-bottom: 1px solid transparent !important;
    background: #fff !important;
}

/* Active */
.e-n-tabs-heading .e-n-tab-title[aria-selected="true"] {
    border-bottom: 1px solid #222 !important;
    background: #fff !important;
}

[class*=wd-swatches].wd-text-style-1 .wd-swatch.wd-text .wd-swatch-text {
    font-size: 16px;
    font-weight: 400;
}

[class*=wd-swatches].wd-text-style-1 {
    gap: 20px !important;
}

/* Product loop - Color only */
.wd-loop-colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    text-align: center;
}

.wd-loop-color {
    display: inline-block;
    padding: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #999;
}

/* WoodMart - selected attribute value on desktop */
@media (min-width: 1025px) {

    .single-product table.variations th.label .wd-attr-selected,
    .single-product .variation-swatch-selected table.variations .wd-attr-selected {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin-left: 6px !important;
    }

}