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


/* ==================================================
   DIYSourceHub - Bulk Style & Quantity Selector
   ================================================== */

.diysh-bulk-selector {
    margin-top: 18px;
    margin-bottom: 25px;
}

.diysh-bulk-selector h3 {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 600;
}


/* ==================================================
   Style Grid
   ================================================== */

.diysh-bulk-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.diysh-bulk-item {
    min-width: 0;
    box-sizing: border-box;

    padding: 7px 6px 5px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #fff;
    text-align: center;

    overflow: hidden;
}


/* ==================================================
   Style Image
   ================================================== */

.diysh-bulk-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    margin-bottom: 2px;
}

.diysh-bulk-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Hide Style 001 / Style 002 text */

.diysh-bulk-style {
    display: none !important;
}


/* ==================================================
   Quantity Control
   Clean Style - No Orange Outer Border
   ================================================== */

.diysh-bulk-qty {
    display: grid !important;
    grid-template-columns: 18px 22px 18px !important;

    align-items: center !important;
    justify-content: center !important;

    position: static !important;

    width: 58px !important;
    max-width: 100% !important;
    height: 27px !important;

    margin: 3px auto 1px !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    overflow: visible !important;
}


/* Minus / Plus */

.diysh-bulk-qty button {
    position: static !important;
    transform: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;

    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;

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

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #ff5a2f !important;

    font-family: Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1 !important;

    text-align: center !important;
    cursor: pointer !important;
}

.diysh-bulk-qty button:hover {
    color: #d93f18 !important;
}


/* Quantity Number */

.diysh-bulk-qty input[type="number"] {
    position: static !important;
    transform: none !important;

    display: block !important;

    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

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

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #333 !important;

    text-align: center !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 24px !important;

    appearance: textfield !important;
    -moz-appearance: textfield !important;
}


/* Remove browser number arrows */

.diysh-bulk-qty input[type="number"]::-webkit-inner-spin-button,
.diysh-bulk-qty input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}


/* ==================================================
   Hide Default WoodMart Variation Selector
   ================================================== */

.single-product form.variations_form .variations,
.single-product form.variations_form .single_variation_wrap {
    display: none !important;
}


/* ==================================================
   Bulk Summary Bar
   ================================================== */

.diysh-bulk-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 14px;
    padding: 14px 16px;

    border: 1px solid #eeeeee;
    border-radius: 10px;

    background: #fafafa;
}

.diysh-summary-left {
    font-size: 14px;
    color: #555;
}

.diysh-summary-left strong {
    color: #ef4056;
    font-size: 16px;
}

.diysh-summary-total {
    font-size: 14px;
    color: #333;
}

.diysh-summary-total strong {
    margin-left: 4px;

    color: #ef4056;
    font-size: 20px;
}


/* ==================================================
   Bulk Action Buttons
   ================================================== */

.diysh-bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 10px;
}

.diysh-bulk-actions button {
    width: 100%;
    min-height: 46px;

    padding: 0 18px;

    border-radius: 24px;

    font-size: 14px;
    font-weight: 600;

    transition: opacity .2s ease;
}


/* Add to Cart */

.diysh-add-selected.diysh-active {
    border: 1px solid #ef4056 !important;
    background: #ef4056 !important;
    color: #fff !important;
}


/* Checkout Now */

.diysh-checkout-now.diysh-active {
    border: 1px solid #f7cbd1 !important;
    background: #fbe1e5 !important;
    color: #ef4056 !important;
}


/* Disabled buttons */

.diysh-bulk-actions button:disabled {
    border: 1px solid #eeeeee !important;

    background: #f5f5f5 !important;
    color: #aaa !important;

    cursor: not-allowed !important;

    opacity: 1 !important;
}


/* ==================================================
   Add To Cart Success Message
   ================================================== */

.diysh-cart-success {
    margin-top: 10px;

    padding: 11px 14px;

    border: 1px solid #d9eadf;
    border-radius: 8px;

    background: #f3faf5;

    color: #287a46;

    font-size: 14px;
    font-weight: 600;

    text-align: center;
}


/* ==================================================
   Desktop - 6 Style Cards Per Row
   ================================================== */

@media (min-width: 768px) {

    .diysh-bulk-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .diysh-bulk-item {
        min-width: 0 !important;
        width: auto !important;

        padding: 7px 6px 5px !important;

        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}


/* ==================================================
   Mobile - Bulk Selector
   ================================================== */

@media (max-width: 767px) {

    /* Selector spacing */

    .diysh-bulk-selector {
        margin-top: 14px;
        margin-bottom: 20px;
    }

    .diysh-bulk-selector h3 {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.3;
    }


    /* 3 styles per row */

    .diysh-bulk-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .diysh-bulk-item {
        min-width: 0 !important;
        width: auto !important;

        padding: 6px 4px 5px !important;

        border-radius: 9px;

        box-sizing: border-box !important;
        overflow: hidden !important;
    }


    /* Product image */

    .diysh-bulk-image-wrap {
        width: 100%;
        aspect-ratio: 1 / 1;

        margin-bottom: 1px;
    }

    .diysh-bulk-image {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    /* Quantity controls */

    .diysh-bulk-qty {
        display: grid !important;
        grid-template-columns: 20px 24px 20px !important;

        align-items: center !important;
        justify-content: center !important;

        width: 64px !important;
        height: 28px !important;

        margin: 2px auto 0 !important;
    }

    .diysh-bulk-qty button {
        width: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;

        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;

        font-size: 18px !important;
    }

    .diysh-bulk-qty input[type="number"] {
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;

        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;

        font-size: 14px !important;
        line-height: 26px !important;
    }


    /* Summary */

    .diysh-bulk-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 5px !important;

        margin-top: 12px;
        padding: 12px 14px !important;

        text-align: left;
    }

    .diysh-summary-left {
        width: 100%;

        font-size: 13px;
        line-height: 1.5;
    }

    .diysh-summary-left strong {
        font-size: 15px;
    }

    .diysh-summary-total {
        width: 100%;

        font-size: 13px;
        line-height: 1.4;
    }

    .diysh-summary-total strong {
        margin-left: 4px;

        font-size: 18px;
    }


    /* Buttons - full width */

    .diysh-bulk-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 8px !important;

        margin-top: 9px;
    }

    .diysh-bulk-actions button {
        width: 100% !important;

        min-height: 46px !important;

        padding: 0 16px !important;

        border-radius: 23px;

        font-size: 14px !important;
        font-weight: 600;
    }
}


/* ==================================================
   Mobile Product Main Image
   ================================================== */

@media (max-width: 767px) {

    .single-product .woocommerce-product-gallery__image {
        height: 330px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
    }
}


/* ==================================================
   Homepage Category Cards
   ================================================== */

.elementor-widget-wd_product_categories .wd-cat-sub-menu {
    display: none !important;
}


/* ==================================================
   Single Product
   Hide Compare Only
   Keep Wishlist
   ================================================== */

.single-product .wd-compare-btn,
.single-product .compare {
    display: none !important;
}


/* ==================================================
   DIYSourceHub - Thank You WhatsApp Box
   ================================================== */

.diysh-thankyou-whatsapp {
    margin: 25px 0 30px;
    padding: 24px 26px;

    border: 1px solid #e7e7e7;
    border-radius: 12px;

    background: #fafafa;
}

.diysh-thankyou-whatsapp h3 {
    margin: 0 0 10px;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;

    color: #222;
}

.diysh-thankyou-whatsapp p {
    margin: 0 0 12px;

    font-size: 14px;
    line-height: 1.6;

    color: #555;
}

.diysh-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    margin: 5px 0 12px;
    padding: 0 22px;

    border-radius: 8px;

    background: #25D366;
    color: #fff !important;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;
}

.diysh-whatsapp-button:hover {
    opacity: 0.9;
    color: #fff !important;
}

.diysh-whatsapp-note {
    margin-bottom: 0 !important;

    font-size: 13px !important;
    color: #777 !important;
}


/* Mobile */

@media (max-width: 767px) {

    .diysh-thankyou-whatsapp {
        margin: 20px 0 25px;
        padding: 20px;
    }

    .diysh-thankyou-whatsapp h3 {
        font-size: 18px;
    }

    .diysh-whatsapp-button {
        width: 100%;
    }
}




/* Hide subcategories under homepage category cards */
.wd-cat-footer .wd-cat-sub-menu {
    display: none !important;
}



