/*
 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 Now Button Styling for Product Archives
   ============================================ */

/* Buy Now button on product loop/archive pages */
.products .product .wd-buy-now-btn,
.wd-buy-now-loop {
    display: block !important;
    width: 100%;
    margin-top: 10px;
    background-color: #4AB097 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

.products .product .wd-buy-now-btn:hover,
.wd-buy-now-loop:hover {
    background-color: #3A9A82 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 176, 151, 0.3);
    text-decoration: none;
}

.products .product .wd-buy-now-btn:focus,
.wd-buy-now-loop:focus {
    background-color: #3A9A82 !important;
    color: #ffffff !important;
    outline: none;
}

/* Ensure button container has proper spacing */
.products .product .product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Make sure Add to Cart button stays on top */
.products .product .add_to_cart_button {
    order: 1;
}

/* Buy Now button comes after */
.products .product .wd-buy-now-btn,
.products .product .wd-buy-now-loop {
    order: 2;
}

/* ============================================
   Page Title Spacing Override
   ============================================ */

/* Remove --wd-title-sp spacing for title-size-default on desktop */
@media (min-width: 1025px) {
    .title-size-default.wd-page-title {
        --wd-title-sp: 0px !important;
        padding-block: 0px !important;
    }

    /* Also target if title-size-default is on a parent element */
    .title-size-default .wd-page-title {
        --wd-title-sp: 0px !important;
        padding-block: 0px !important;
    }
}
