/* JFCL overrides — the legacy app toggled these via JS; static clone un-hides them. */
@media (min-width: 992px) {
  body #MainHeader #nav-global-location-slot {
    display: block !important;
    flex: 0 0 auto !important;
    max-width: 140px !important;
    margin-right: 10px !important;
  }
  body.hve006-r4-1-home #MainHeader #nav-global-location-slot {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* mirrors live hve006 rule: applies only in the 992–1199.98px band */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body #MainHeader .home-main-search-wrap {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 180px !important;
    max-width: none !important;
    margin: 0 10px !important;
  }
}
body #MainHeader .navbar-collapse {
  align-items: center !important;
}
/* floated mains collapse the wrapper — footer must clear them */
footer.site-footer { clear: both !important; }
/* keep the search submit control inline in the header form */
#MainHeader .input-field-card { align-items: stretch; }

    /* Products listing numbered pagination */
    .nd-products-pagination {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid #e4e6eb;
        flex: 0 0 100%;
        width: 100%;
        clear: both;
    }
    .nd-products-pagination[hidden] {
        display: none;
    }
    .nd-products-pagination--top {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-bottom: 18px;
        padding-bottom: 14px;
        border-bottom: 1px solid #e4e6eb;
    }
    .nd-products-pagination__meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px 16px;
    }
    .nd-products-pagination__total {
        margin: 0;
        color: #1d3557;
        font-size: 15px;
        font-weight: 800;
    }
    .nd-products-pagination__per-page {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #33415c;
        font-size: 13px;
        font-weight: 700;
    }
    .nd-products-pagination__per-page-select {
        min-height: 40px;
        border: 1px solid #d7dae0;
        border-radius: 10px;
        padding: 0 10px;
        background: #fff;
        color: #1d3557;
        font-weight: 700;
    }
    .nd-products-pagination__nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .nd-products-pagination__btn {
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid #d7dae0;
        border-radius: 999px;
        background: #fff;
        color: #1d3557;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }
    .nd-products-pagination__btn:hover:not(:disabled) {
        background: #eef1f6;
    }
    .nd-products-pagination__btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }
    .nd-products-pagination__pages {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .nd-products-pagination__page {
        min-width: 40px;
        min-height: 40px;
        padding: 0 10px;
        border: 1px solid #d7dae0;
        border-radius: 10px;
        background: #fff;
        color: #1d3557;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }
    .nd-products-pagination__page.is-active {
        background: #1d3557;
        border-color: #1d3557;
        color: #fff;
    }
    .nd-products-pagination__ellipsis {
        color: #6c757d;
        font-weight: 800;
        padding: 0 4px;
    }
    @media (max-width: 650px) {
        .nd-products-pagination__nav {
            flex-direction: column;
            align-items: stretch;
        }
        .nd-products-pagination__btn {
            width: 100%;
        }
        .nd-products-pagination__pages {
            order: -1;
        }
    }

    /* Floating scroll-to-top / scroll-to-bottom buttons */
    .nd-scroll-top,
    .nd-scroll-bottom {
        position: fixed;
        right: 18px;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 999px;
        background: #f5b81e;
        color: #1d3557;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(7, 29, 58, 0.28);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1040;
    }
    .nd-scroll-top {
        bottom: 18px;
        transform: translateY(8px);
    }
    .nd-scroll-bottom {
        top: 18px;
        transform: translateY(-8px);
    }
    .nd-scroll-top.is-visible,
    .nd-scroll-bottom.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

/* fixed-top header offset — live sets .bodywrapper padding-top = header height */
.bodywrapper { padding-top: 0; }

/* live runs mCustomScrollbar on .text-bread, which wraps content and reserves
   ~20px for the (hidden) horizontal scrollbar rail — replicate the space */
.text-bread { padding-bottom: 20px; }
