/*
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;
}

/* Sticky Icons - Black */
.whb-header.whb-sticked .whb-main-header a,
.whb-header.whb-sticked .whb-main-header i,
.whb-header.whb-sticked .whb-main-header svg {
    color: #000;
}


/* Product gallery thumbnails */
.woocommerce-product-gallery .wd-thumbs .wd-carousel-item img {
    border: 1px solid #f2f2f2;
    box-sizing: border-box;
}

/* Active thumbnail */
.woocommerce-product-gallery .wd-thumbs .wd-carousel-item.wd-thumb-active img {
    border: 1px solid #e5e5e5;
}


.size-scroll {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* Product Gallery Arrows - Always Visible on Desktop */
@media (min-width: 1025px) {
    .woocommerce-product-gallery .wd-btn-arrow {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }
}


/* ADD TO CART · OLD PRICE SALE PRICE */
.single-product .single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Separator */
.single-product .single_add_to_cart_button .xshop-cart-separator {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    font-weight: 400;
}

/* Price group */
.single-product .single_add_to_cart_button .xshop-cart-price {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;

    position: static !important;
    transform: none !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

/* Remove inherited paragraph spacing */
.single-product .single_add_to_cart_button .xshop-cart-price .wcd-price-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
}

/* Original price */
.single-product .single_add_to_cart_button .xshop-cart-price del,
.single-product .single_add_to_cart_button .xshop-cart-price del * {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* Sale price */
.single-product .single_add_to_cart_button .xshop-cart-price ins,
.single-product .single_add_to_cart_button .xshop-cart-price ins * {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}
/* Sale price */
.single-product .single_add_to_cart_button .xshop-cart-price ins,
.single-product .single_add_to_cart_button .xshop-cart-price ins .amount {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

/* Product Description - Center All Content */
.xshop-product-description,
.xshop-product-description p,
.xshop-product-description ul,
.xshop-product-description ol,
.xshop-product-description li {
    text-align: center !important;
}

/* Navigation Label → Menu Item Icon */
.wd-nav > li > a {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

.wd-nav > li > a .nav-link-text {
    order: 1;
}

.wd-nav > li > a .wd-nav-img,
.wd-nav > li > a > img {
    order: 2;
    margin-left: 7px !important;
    margin-right: 0 !important;
}

/* Selected size on desktop */
@media (min-width: 1025px) {

    table.variations th.label > .wd-attr-selected {
        display: inline-block !important;
        margin-left: 6px;
        vertical-align: middle;
    }

}