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

/* ================================================================
   Buy block below product gallery  (DH custom)
   ================================================================ */

/* --- Outer wrapper --- */
.dh-buy-block {
    margin-top: 20px;
    padding: 20px 0 12px;
    border-top: 2px solid #f0f0f0;
}

/* --- Cart row: quantity + button --- */
.dh-buy-block .cart {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 0 16px 0 !important;
}

/* Qty stepper */
.dh-buy-block .quantity {
    flex-shrink: 0;
}

/* "Add to cart" button stretches to fill remaining space */
.dh-buy-block .cart .single_add_to_cart_button,
.dh-buy-block .cart button[type="submit"] {
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 4px !important;
}

/* --- Compare + Wishlist action buttons --- */
.dh-buy-block .wd-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666 !important;
    text-decoration: none !important;
    margin-right: 20px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: color .2s !important;
    line-height: 1.4 !important;
}

.dh-buy-block .wd-action-btn:hover {
    color: #83b735 !important;
}

.dh-buy-block .wd-action-btn svg,
.dh-buy-block .wd-action-btn i {
    width: 16px !important;
    height: 16px !important;
    font-size: 15px !important;
    opacity: .7;
}

/* Row holding compare + wishlist */
.dh-buy-block > .wd-compare-btn,
.dh-buy-block > .wd-wishlist-btn,
.dh-buy-block > [class*="yith-wcwl"],
.dh-buy-block > button.wd-action-btn,
.dh-buy-block > a.wd-action-btn {
    display: inline-flex !important;
}

/* Spacing between compare/wishlist row and meta */
.dh-buy-block .product_meta {
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f0f0f0 !important;
}

.dh-buy-block .product_meta span {
    display: block;
    font-size: 13px;
    color: #555;
    line-height: 2;
}

.dh-buy-block .product_meta .sku_wrapper { display: none; }

/* "Поділитися" row — make icons inline */
.dh-buy-block .woodmart-social-icons,
.dh-buy-block .woocommerce-social-sharing,
.dh-buy-block .product_meta + .woodmart-social-icons {
    margin-top: 4px !important;
}
