/*
Theme Name: Shopdevvn Child - Updecor
Theme URI: https://updecor.net/
Description: Child theme for Updecor.net; inherits Shopdevvn settings and preserves Updecor customizations.
Author: Updecor
Template: shopdevvn
Version: 1.4.0
Text Domain: shopdevvn-child
*/

/* Add future custom CSS below this line. */

/* Updecor: keep FiboSearch inside the existing header search position. */
@media (min-width: 1200px) {
    .search_header .dgwt-wcas-search-wrapp {
        width: 650px;
        max-width: 650px;
        margin: 0;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .search_header .dgwt-wcas-search-wrapp {
        width: 420px;
        max-width: 420px;
        margin: 0;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .search_header .dgwt-wcas-search-wrapp {
        width: 200px;
        max-width: 200px;
        margin: 0;
    }
}
@media (max-width: 767px) {
    .search_header .dgwt-wcas-search-wrapp {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* Updecor / FiboSearch Pro: Highlight prices in live search suggestions. */
.dgwt-wcas-suggestion-product .dgwt-wcas-sp,
.dgwt-wcas-suggestion-product .dgwt-wcas-sp ins,
.dgwt-wcas-suggestion-product .dgwt-wcas-sp .woocommerce-Price-amount,
.dgwt-wcas-suggestion-product .dgwt-wcas-sp .woocommerce-Price-amount bdi {
    color: #B91C1C !important;
    font-weight: 700 !important;
}

/* Keep crossed-out old prices subtle. */
.dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
.dgwt-wcas-suggestion-product .dgwt-wcas-sp del .woocommerce-Price-amount,
.dgwt-wcas-suggestion-product .dgwt-wcas-sp del .woocommerce-Price-amount bdi {
    color: #888888 !important;
    font-weight: 400 !important;
}

/* Mobile: keep the site visible while typing. The search results are
   a dropdown rather than a fullscreen search overlay. */
@media (max-width: 767px) {
    .dgwt-wcas-darkened-overlay {
        display: none !important;
    }
    .dgwt-wcas-suggestions-wrapp {
        max-height: 55vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
}

/* Updecor v1.4.0: make the native "View all products" item stand out.
   FiboSearch itself generates the link; no JavaScript or extra links needed. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
    font-weight: 700 !important;
    color: #333333 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more:hover .dgwt-wcas-st-more {
    color: #E03232 !important;
}

/* Match article featured-image thumbnails to product preview images. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-pt-post .dgwt-wcas-si {
    width: 50px;
    flex: 0 0 50px;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-pt-post .dgwt-wcas-si img {
    width: 46px;
    height: 46px;
    object-fit: cover;
}
