/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://i.yummysushi.dk
Author: Bamboo Solution
Template: twentytwentyfour
Description: Child theme for i.yummysushi.dk (Yummy Sushi InShop)
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-child
*/

/* Hide the default Twenty Twenty-Four footer on i.yummysushi.dk. */
footer.wp-block-template-part {
    display: none !important;
}

/* ============================================================
   Sticky category nav bar (Flavour B — food-store plugin)
   ============================================================ */

/* Spacers (hidden by default) */
.xian-mobile-header-spacer,
.xian-mobile-filter-spacer,
.xian-desktop-filter-spacer {
    display: none;
    width: 100%;
}

/* Filter bar — all screen sizes */
#wfs-sticky-sidebar.xian-mobile-filter {
    z-index: 1200;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
    background: #efeada;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: none;
    transform: none !important;
    -webkit-transform: none !important;
}

#wfs-sticky-sidebar.xian-mobile-filter.is-fixed {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

#wfs-sticky-sidebar.xian-mobile-filter .theiaStickySidebar {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu.is-dragging {
    cursor: grabbing;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu::-webkit-scrollbar {
    display: none;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: max-content;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu li {
    flex: 0 0 auto;
    margin: 0;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #222;
    background: transparent;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu ul a:hover,
#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu ul a.active {
    background: rgba(0, 0, 0, 0.05);
    border-bottom-color: #1d4f48;
    font-weight: 700;
}

#wfs-sticky-sidebar.xian-mobile-filter .wfs-sidebar-menu ul a span.wfs-items-count {
    display: none;
}

/* Keep Food Store content full width after the sidebar becomes the top sticky bar. */
#foodstore > .fs-row {
    display: block;
    margin-right: 0;
    margin-left: 0;
}

#foodstore > .fs-row > .xian-mobile-filter-spacer,
#foodstore > .fs-row > #wfs-food-items {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100% !important;
}

#foodstore > .fs-row > #wfs-food-items {
    display: block;
    /* Keep the last products clear of the sticky bottom cart bar. */
    padding-bottom: 110px;
}

@media only screen and (max-width: 899px) {
    #foodstore > .fs-row > #wfs-food-items {
        padding-bottom: 135px;
    }
}

/* Sticky site header — all screen sizes */
.xian-sticky-mobile {
    z-index: 1300;
    margin: 0 !important;
    background: #efeada;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile-only: dark header + compact sizing */
@media only screen and (max-width: 899px) {
    .xian-sticky-mobile {
        background: #1d4f48;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
    }
}
