/*
Theme Name: Debaco Child Theme
Theme URI: http://demo.roadthemes.com/debaco/
Author: Plaza-Themes
Author URI: http://plazathemes.com/
Description:  Debaco Child Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, post-formats, sticky-post, threaded-comments
Text Domain: debaco
Template: debaco

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Mobile category filters use the existing shop sidebar, moved by JS. */
.kv-mobile-filters-trigger,
.kv-mobile-filters-overlay {
    display: none !important;
}

@media (min-width: 992px) {
    body.tax-product_cat #archive-product .kv-mobile-filters-trigger,
    body.post-type-archive-product #archive-product .kv-mobile-filters-trigger,
    body.tax-product_cat .kv-mobile-filters-overlay {
        display: none !important;
    }

    body.post-type-archive-product .kv-mobile-filters-overlay {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.tax-product_cat #archive-product .toolbar .view-mode {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    body.post-type-archive-product #archive-product .toolbar .view-mode {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    body.tax-product_cat #archive-product .toolbar .view-mode label {
        display: none !important;
    }

    body.post-type-archive-product #archive-product .toolbar .view-mode label {
        display: none !important;
    }

    body.tax-product_cat #archive-product .toolbar .view-mode .kv-mobile-filters-trigger {
        align-items: center !important;
        appearance: none;
        background: #1769ff !important;
        border: 1px solid #1769ff !important;
        border-radius: 4px !important;
        color: #fff !important;
        cursor: pointer;
        display: inline-flex !important;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        gap: 7px;
        justify-content: center;
        line-height: 1.2;
        margin: 0 0 0 12px !important;
        min-height: 38px !important;
        padding: 0 13px !important;
        width: auto !important;
    }

    body.post-type-archive-product #archive-product .toolbar .view-mode .kv-mobile-filters-trigger {
        align-items: center !important;
        appearance: none;
        background: #1769ff !important;
        border: 1px solid #1769ff !important;
        border-radius: 4px !important;
        color: #fff !important;
        cursor: pointer;
        display: inline-flex !important;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        gap: 7px;
        justify-content: center;
        line-height: 1.2;
        margin: 0 0 0 12px !important;
        min-height: 38px !important;
        padding: 0 13px !important;
        width: auto !important;
    }

    body.tax-product_cat #archive-product .toolbar .view-mode .kv-mobile-filters-trigger:hover,
    body.tax-product_cat #archive-product .toolbar .view-mode .kv-mobile-filters-trigger:focus {
        background: #0f56d6 !important;
        color: #fff !important;
    }

    body.post-type-archive-product #archive-product .toolbar .view-mode .kv-mobile-filters-trigger:hover,
    body.post-type-archive-product #archive-product .toolbar .view-mode .kv-mobile-filters-trigger:focus {
        background: #0f56d6 !important;
        color: #fff !important;
    }

    .kv-mobile-filters-trigger:focus-visible,
    .kv-mobile-filters-close:focus-visible {
        outline: 3px solid rgba(23, 105, 255, .35);
        outline-offset: 2px;
    }

    .kv-mobile-filters-icon {
        flex: 0 0 19px;
        height: 19px;
        width: 19px;
    }

    body.tax-product_cat .kv-mobile-filters-overlay:not([hidden]) {
        align-items: stretch;
        background: rgba(0, 0, 0, .48);
        display: flex !important;
        inset: 0 !important;
        justify-content: flex-end;
        position: fixed !important;
        z-index: 2147483000 !important;
    }

    body.post-type-archive-product .kv-mobile-filters-overlay:not([hidden]) {
        align-items: stretch;
        background: rgba(0, 0, 0, .48);
        display: flex !important;
        inset: 0 !important;
        justify-content: flex-end;
        position: fixed !important;
        z-index: 2147483000 !important;
    }

    .kv-mobile-filters-panel {
        background: #fff;
        box-shadow: -8px 0 28px rgba(0, 0, 0, .18);
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-width: 440px;
        overflow: hidden;
        transform: translateX(100%);
        transition: transform .24s ease;
        width: min(92vw, 440px);
    }

    .kv-mobile-filters-panel.is-open {
        transform: translateX(0);
    }

    .kv-mobile-filters-header {
        align-items: center;
        border-bottom: 1px solid #e8e8e8;
        display: flex;
        flex: 0 0 auto;
        justify-content: space-between;
        padding: 16px 20px;
    }

    .kv-mobile-filters-header h2 {
        font-size: 20px;
        margin: 0;
    }

    .kv-mobile-filters-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: #222;
        cursor: pointer;
        display: inline-flex;
        font-size: 30px;
        height: 40px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        width: 40px;
    }

    .kv-mobile-filters-content {
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 18px 20px 32px;
        -webkit-overflow-scrolling: touch;
    }

    .kv-mobile-filters-content #secondary.sidebar-shop {
        flex: 0 0 100%;
        margin: 0;
        max-width: 100%;
        padding: 0;
        width: 100%;
    }

    body.kv-mobile-filters-open {
        overflow: hidden;
        touch-action: none;
    }

    .kv-mobile-filters-icon {
        flex: 0 0 17px;
        height: 17px;
        width: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kv-mobile-filters-panel {
        transition: none;
    }
}

/* Mobile navigation drawer wraps the existing WordPress mobile menu. */
.kv-mobile-menu-overlay {
    display: none !important;
}

@media (max-width: 991.98px) {
    body.kv-mobile-menu-open {
        overflow: hidden !important;
    }

    body .kv-mobile-menu-overlay:not([hidden]) {
        align-items: stretch;
        background: rgba(0, 0, 0, .48);
        display: flex !important;
        inset: 0 !important;
        justify-content: flex-start;
        position: fixed !important;
        z-index: 2147483600 !important;
    }

    .kv-mobile-menu-drawer {
        background: #fff;
        box-shadow: 8px 0 28px rgba(0, 0, 0, .18);
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-width: 380px;
        overflow: hidden;
        padding-bottom: env(safe-area-inset-bottom, 0);
        transform: translateX(-100%);
        transition: transform .24s ease;
        width: min(86vw, 380px);
    }

    .kv-mobile-menu-drawer.is-open {
        transform: translateX(0);
    }

    .kv-mobile-menu-header {
        align-items: center;
        border-bottom: 1px solid #e8edf4;
        display: flex;
        flex: 0 0 auto;
        gap: 12px;
        justify-content: space-between;
        min-height: 58px;
        padding: 9px 16px;
    }

    .kv-mobile-menu-brand {
        color: #1769ff;
        display: inline-flex;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        max-width: calc(100% - 48px);
        text-decoration: none;
    }

    .kv-mobile-menu-brand img {
        display: block;
        height: auto;
        max-height: 38px;
        max-width: 190px;
        object-fit: contain;
        width: auto;
    }

    .kv-mobile-menu-close {
        align-items: center;
        background: #f3f6fb;
        border: 0;
        border-radius: 50%;
        color: #526174;
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 36px;
        font-size: 25px;
        height: 36px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        width: 36px;
    }

    .kv-mobile-menu-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px 14px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .kv-mobile-menu-search {
        margin-bottom: 16px;
    }

    .kv-mobile-menu-search form {
        align-items: stretch;
        display: flex;
        margin: 0;
        width: 100%;
    }

    .kv-mobile-menu-search input[type="search"],
    .kv-mobile-menu-search input[type="text"] {
        background: #f8fafc;
        border: 1px solid #d9e1ec;
        border-radius: 8px;
        box-shadow: none;
        font-size: 14px;
        height: 42px;
        min-width: 0;
        padding: 0 12px;
        width: auto;
        flex: 1 1 auto;
    }

    .kv-mobile-menu-search button {
        align-items: center;
        background: #1769ff;
        border: 0;
        border-radius: 0 8px 8px 0;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 42px;
        height: 42px;
        justify-content: center;
        margin-left: -1px;
        padding: 0;
    }

    .kv-mobile-menu-search button svg {
        height: 18px;
        width: 18px;
    }

    .kv-mobile-menu-featured h2,
    .kv-mobile-menu-products h2 {
        color: #66758a;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        line-height: 1.3;
        margin: 0 0 9px;
        text-transform: uppercase;
    }

    .kv-mobile-menu-featured {
        margin-bottom: 18px;
    }

    .kv-mobile-menu-featured-links {
        display: grid;
        gap: 7px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kv-mobile-menu-featured-links a {
        align-items: center;
        background: #eef4ff;
        border-radius: 8px;
        color: #1c4a91;
        display: flex;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.25;
        min-height: 42px;
        padding: 8px 10px;
        text-decoration: none;
    }

    .kv-mobile-menu-featured-links a:hover,
    .kv-mobile-menu-featured-links a:focus-visible {
        background: #dce9ff;
        color: #123d80;
    }

    .kv-mobile-menu-list .mobile-menu-container {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: auto !important;
        margin: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
    }

    .kv-mobile-menu-list .mobile-menu-container ul.nav-menu,
    .kv-mobile-menu-list .mobile-menu-container ul.sub-menu {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .kv-mobile-menu-list .mobile-menu-container ul.nav-menu > li,
    .kv-mobile-menu-list .mobile-menu-container ul.sub-menu > li {
        border-bottom: 1px solid #e8edf4;
        float: none !important;
        list-style: none;
        margin: 0 !important;
        min-height: 44px;
        position: relative;
        width: 100% !important;
    }

    .kv-mobile-menu-list .mobile-menu-container ul.nav-menu > li > a,
    .kv-mobile-menu-list .mobile-menu-container ul.sub-menu > li > a {
        border: 0 !important;
        color: #172033 !important;
        display: block;
        float: none !important;
        font-size: 14px !important;
        font-weight: 600;
        height: auto !important;
        line-height: 1.35 !important;
        min-height: 44px;
        padding: 13px 38px 13px 3px !important;
        text-decoration: none;
        text-transform: none !important;
        width: 100% !important;
    }

    .kv-mobile-menu-list .mobile-menu-container ul.sub-menu {
        padding-left: 12px !important;
    }

    .kv-mobile-menu-list .mobile-menu-container ul.sub-menu > li > a {
        color: #526174 !important;
        font-size: 13px !important;
        font-weight: 500;
    }

    .kv-mobile-menu-list .mobile-menu-container li.menu-item-has-children > .fa {
        color: #8a9bb3;
        cursor: pointer;
        font-size: 14px;
        height: 44px;
        line-height: 44px;
        position: absolute;
        right: 0;
        text-align: center;
        top: 0;
        width: 38px;
        z-index: 3;
    }

    .kv-mobile-menu-actions {
        background: #fff;
        border-top: 1px solid #e8edf4;
        display: grid;
        flex: 0 0 auto;
        gap: 7px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 10px 12px;
    }

    .kv-mobile-menu-actions a {
        align-items: center;
        border-radius: 8px;
        color: #fff;
        display: flex;
        font-size: 12px;
        font-weight: 700;
        justify-content: center;
        min-height: 40px;
        padding: 5px 4px;
        text-decoration: none;
        white-space: nowrap;
    }

    .kv-mobile-menu-action-call {
        background: #1769ff;
    }

    .kv-mobile-menu-action-viber {
        background: #7360f2;
    }

    .kv-mobile-menu-action-whatsapp {
        background: #20c767;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kv-mobile-menu-drawer {
        transition: none;
    }
}
