/* =========================================================
   Mulhern Belting - COMPLETE CUSTOM STYLES
   Final Mobile Toggle Fix: Floating Action Button Style
   ========================================================= */

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Base header background ─────────────────────────────── */
.elementor-location-header {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Mobile: green header bar */
@media (max-width: 767px) {
  .elementor-location-header {
    background: #008345 !important;
  }
}

/* 1) ASP filters: 2-column layout */
.fabrication-type_filter_box.asp_sett_scroll,
.fabrication_color_filter_box.asp_sett_scroll {
  max-height: none !important;
  overflow: visible !important;
}
.fabrication-type_filter_box,
.fabrication_color_filter_box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.fabrication-type_filter_box .asp_option,
.fabrication_color_filter_box .asp_option {
  display: flex; align-items: center;
}

/* Legend/Accordion Styling */
.asp_filter_tax legend, .asp_custom_f legend {
  font-size: 18px; font-weight: bold !important; color: #008345;
  padding: 8px 12px; margin-bottom: 15px; border-bottom: 2px solid #0073aa;
  text-transform: uppercase;
}
fieldset legend {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 15px; background-color: #f7f7f7; border: 1px solid #ddd;
  border-radius: 5px; font-weight: bold; margin-bottom: 5px;
}
fieldset legend::after { content: "▼"; font-size: 14px; margin-left: 10px; transition: transform 0.3s ease; }
fieldset.open legend::after { transform: rotate(180deg); }
fieldset .fabrication-type_filter_box, fieldset .nominal_oag_filter_box, fieldset .fabrication_color_filter_box {
  display: none; padding: 10px; border: 1px solid #ddd; border-top: none; border-radius: 0 0 5px 5px; background-color: #fff;
}

/* ============================================
   2) Quick Search / Custom Dropdown - Centered & Responsive
   ============================================ */

/* Container for the dropdown - centered */
#custom-dropdown {
    position: relative;
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
    z-index: 300000 !important;
    overflow: visible !important;
}

/* Text input - full width of container */
#typeahead-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    z-index: 300001 !important;
}

/* Dropdown options list */
#dropdown-options {
    display: none;
    flex-direction: column;
    position: absolute !important;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff !important;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 330000 !important;
}

/* Tablet: 360px width */
@media (min-width: 768px) and (max-width: 1024px) {
    #custom-dropdown {
        width: 360px;
    }
}

/* Mobile: 220px width */
@media (max-width: 767px) {
    #custom-dropdown {
        width: 220px;
    }
    
    #typeahead-input {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ============================================
   3) Header Stacking & Global Stability
   CRITICAL: Header must be above ALL page content.
   One clean set of z-index rules.
   ============================================ */

/* Header container */
.elementor-location-header {
    position: relative !important;
    z-index: 99990 !important;
    overflow: visible !important;
}

/* Header internals - allow overflow for nav dropdowns */
.elementor-location-header .elementor-section,
.elementor-location-header .e-con,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container,
.elementor-location-header .elementor-template {
    overflow: visible !important;
}

/* Nav menu dropdown - highest in header stack */
.elementor-nav-menu--dropdown,
.elementor-location-header .elementor-nav-menu--dropdown,
.elementor-widget-template .elementor-nav-menu--dropdown,
.elementor-widget-template .sub-menu {
    z-index: 99999 !important;
}

/* Nav menu container */
.elementor-location-header .elementor-nav-menu__container,
.elementor-location-header .elementor-nav-menu {
    position: relative;
    z-index: 99995 !important;
}

/* Sticky header wrapper */
.elementor-location-header.elementor-sticky--active,
.elementor-sticky__wrapper {
    z-index: 99990 !important;
}

/* ============================================
   3b) EMBEDDED NAV MENU TEMPLATE FIX
   For the Desk Menu template widget (4de82946)
   embedded inside the sticky section (2b73173f)
   ============================================ */

/* Template widget containing nav - high z-index, visible overflow */
.elementor-widget-template:has(.elementor-nav-menu),
.elementor-widget-template:has(.elementor-location-header),
.elementor-element-4de82946,
[data-id="4de82946"] {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* Kill the 20px bottom margin Elementor adds to the template widget container.
   This is the primary cause of extra space below the nav bar. */
.elementor-198462 .elementor-element.elementor-element-4de82946 > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Kill the 30px bottom margin on the Desk Menu nav container (64996fb).
   This compounds the spacing issue when sticky. */
.elementor-197728 .elementor-element.elementor-element-64996fb {
    --margin-bottom: 0px !important;
    --margin-top: 0px !important;
}

/* Also override on tablet where Elementor re-asserts --margin-bottom:30px */
@media (max-width: 1024px) {
    .elementor-197728 .elementor-element.elementor-element-64996fb {
        --margin-bottom: 0px !important;
    }
}

/* Nav widget padding - keep just enough for visual spacing */
.elementor-197728 .elementor-element.elementor-element-5670036 > .elementor-widget-container {
    padding: 0 0 4px 0 !important;
}

/* Ensure the nav widget itself allows overflow */
.elementor-widget-template .elementor-widget-nav-menu,
.elementor-widget-template .elementor-widget-nav-menu .elementor-widget-container {
    overflow: visible !important;
}

/* =========================================================
   4) MOBILE HEADER & HAMBURGER FIX (≤767px)
   
   Strategy: The green bar (89d8823) is a flex row containing:
     - c37e93a (search icon, 1%)
     - 4968653 (logo + contact, 60%, flex-grow:1)
     - 90b8492 (hamburger container, 15%)
   
   We CANNOT make 89d8823 fixed without fixing the logo too.
   Instead: c37e93a and 90b8492 become individually position:fixed,
   floating at top corners. 89d8823 stays in normal flow so the
   logo/contact scroll with the page.
   
   Icons float as small green circular buttons over page content.
   No full-width green strip — just the individual buttons.
   ========================================================= */
@media (max-width: 767px) {

    /* ── Green bar: stays in normal document flow ─────────── */
    .elementor-198462 .elementor-element.elementor-element-89d8823 {
        position: relative !important;
        background: #008345 !important;
        height: auto !important;
        min-height: 60px;
        align-items: center !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        overflow: visible !important;
    }

    /* No ::before green strip — icons float independently */

    /* ── Logo container (4968653) — push down to clear fixed status pill ── */
    .elementor-198462 .elementor-element.elementor-element-4968653 {
        margin-top: 30px !important;
    }

    /* ── Search icon container (c37e93a) — FIXED top-left ── */
    .elementor-198462 .elementor-element.elementor-element-c37e93a {
        position: fixed !important;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px) !important;
        left: 10px !important;
        z-index: 99999 !important;
        width: auto !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
        padding-top: 0 !important;
        background: transparent !important;
    }

    /* ── Replace magnifying glass with sliders icon ──────── */
    #mb-advanced-search-link svg {
        display: none !important;
    }
    #mb-advanced-search-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        position: relative !important;
        background: #008345 !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
    #mb-advanced-search-link::before {
        content: '' !important;
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center !important;
    }

    /* ── Hamburger container (90b8492) — FIXED top-right ─── */
    .elementor-198462 .elementor-element.elementor-element-90b8492 {
        position: fixed !important;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px) !important;
        right: 10px !important;
        left: auto !important;
        z-index: 99999 !important;
        --width: auto !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        padding-top: 0 !important;
        background: transparent !important;
    }

    /* ── Hamburger widget (195bf08) ─────────────────────── */
    .elementor-198462 .elementor-element.elementor-element-195bf08 {
        width: auto !important;
        max-width: none !important;
        --container-widget-width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10001 !important;
    }

    /* Widget container - prevent collapse */
    .elementor-198462 .elementor-element.elementor-element-195bf08 > .elementor-widget-container {
        display: block !important;
        visibility: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ── The toggle button itself — green circle ───────────── */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 44px !important;
        height: 44px !important;
        justify-content: center;
        align-items: center;
        border-radius: 50% !important;
        background-color: #008345 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        margin-left: auto !important;
    }

    /* Toggle icon always white */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-menu-toggle svg {
        fill: #ffffff !important;
    }

    /* When menu is open — slightly lighter green */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-menu-toggle.elementor-active {
        background-color: #006d38 !important;
    }
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-menu-toggle.elementor-active svg {
        fill: #ffffff !important;
    }

    /* ── Hamburger dropdown — FIXED below floating icons ── */
    /* position:fixed breaks free of ALL ancestor overflow clipping.
       Positioned just below the floating icon buttons (44px + 8px top + 8px gap = 60px). */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        position: fixed !important;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 60px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 60px - var(--wp-admin--admin-bar--height, 0px)) !important;
        overflow-y: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        z-index: 99998 !important;
        background: #ffffff !important;
    }

    /* ── Sub-menu accordion ────────────────────────────────── */
    /* Sub-menus hidden by default, toggled via JS .mb-submenu-open class */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu .sub-menu {
        display: none !important;
    }
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu .menu-item-has-children.mb-submenu-open > .sub-menu {
        display: block !important;
    }

    /* Dropdown arrow indicator for expandable items */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu .menu-item-has-children > a::after {
        content: '▸' !important;
        display: inline-block !important;
        margin-left: 6px !important;
        transition: transform 0.2s ease !important;
        font-size: 14px !important;
    }
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu .menu-item-has-children.mb-submenu-open > a::after {
        transform: rotate(90deg) !important;
    }

    /* Hide Elementor's default sub-menu caret SVG icons */
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu .sub-menu-toggle,
    .elementor-198462 .elementor-element.elementor-element-195bf08 .elementor-nav-menu .e-font-icon-svg.e-fas-caret-down {
        display: none !important;
    }

    /* ── CSS class for JS to hide/show dropdown reliably ── */
    /* jQuery .css('display','none') can't beat CSS !important rules.
       JS toggles this class instead. */
    .elementor-nav-menu--dropdown.mb-nav-hidden {
        display: none !important;
        visibility: hidden !important;
    }

    /* ── Kill Elementor sticky on hamburger widget ──────── */
    /* Elementor wraps 195bf08 in a sticky wrapper with inline
       position:fixed. We kill it since 90b8492 is already fixed. */
    .elementor-198462 .elementor-element.elementor-element-195bf08.elementor-sticky--active {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: none !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Kill ALL sticky wrappers inside the mobile header.
       width:100% not auto — auto collapses %-width children. */
    .elementor-198462 .elementor-element.elementor-element-89d8823 .elementor-sticky__wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        margin: 0 !important;
    }

    /* Kill any sticky spacer on mobile */
    .elementor-198462 .elementor-sticky__spacer {
        display: none !important;
        height: 0 !important;
    }
}

/* =========================================================
   5) Desktop/Tablet: Consolidated Sticky Nav Bar
   ONLY section 2b73173f should be sticky.

   CRITICAL: Inner elements 4de82946 (template widget) and
   64996fb (nav container) have their OWN sticky:top settings
   in Elementor. They activate INDEPENDENTLY at different
   scroll positions, causing chaotic layout shifts.

   Elementor's sticky JS wraps elements in a
   <div class="elementor-sticky__wrapper" style="position:fixed">
   and adds .elementor-sticky--active to the element inside.
   CSS !important overrides inline styles, so we CAN kill this.

   Key insight: the wrapper for 2b73173f is OUTSIDE it (its parent),
   while wrappers for inner elements are INSIDE 2b73173f.
   So ".elementor-element-2b73173f .elementor-sticky__wrapper"
   catches ONLY inner wrappers, not the outer one.
   ========================================================= */
@media (min-width: 768px) {

    /* ── UNCONDITIONAL: Kill ALL sticky wrappers INSIDE 2b73173f ──
       These are wrappers Elementor creates around 4de82946 and 64996fb.
       The outer wrapper (around 2b73173f itself) is NOT matched. */
    .elementor-element-2b73173f .elementor-sticky__wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* ── UNCONDITIONAL: Kill inner element sticky classes ───── */
    .elementor-element-4de82946.elementor-sticky--active,
    .elementor-element-64996fb.elementor-sticky--active,
    [data-id="4de82946"].elementor-sticky--active,
    [data-id="64996fb"].elementor-sticky--active {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* ── Kill sticky spacers for inner elements ──────────────
       These spacers are siblings of the inner sticky wrappers,
       which live inside 2b73173f's container. */
    .elementor-element-2b73173f .elementor-sticky__spacer {
        display: none !important;
        height: 0 !important;
    }

    /* ── Strip visual chrome from inner elements ───────────── */
    .elementor-element-4de82946,
    .elementor-element-64996fb,
    .elementor-element-82c6506 {
        background: transparent !important;
        box-shadow: none !important;
        border-style: none !important;
    }

    /* ── The OUTER sticky section (2b73173f) — sole authority ── */
    .elementor-element-2b73173f.elementor-sticky--active {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;

        /* Solid white background to mask scrolling content */
        background: rgba(255,255,255,0.98) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
        z-index: 99990 !important;

        /* Respect admin bar */
        top: var(--wp-admin--admin-bar--height, 0px) !important;
    }

    /* Center the direct container child */
    .elementor-element-2b73173f.elementor-sticky--active > .elementor-container {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ── Desktop/Tablet: menu toggle colors (if visible) ──── */
@media (min-width: 768px) {
    .elementor-menu-toggle svg { fill: #008345 !important; }
}

/* 6) Site Global Fixes */
.e-con.e-child { margin-top: 0 !important; }

/* ============================================
   7) FOOTER SOCIAL ICONS - Keep Together & Maintain Shape
   ============================================ */

/* Force social icons to stay inline and centered */
.elementor-widget-social-icons .elementor-widget-container {
    display: flex !important;
    justify-content: center !important;
}

.elementor-widget-social-icons .elementor-social-icons-wrapper {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
}

.elementor-widget-social-icons .elementor-social-icon {
    flex: 0 0 auto !important;
    width: auto !important;
    aspect-ratio: 1 / 1 !important;
}

/* Ensure the icon link/container stays circular */
.elementor-widget-social-icons .elementor-icon {
    aspect-ratio: 1 / 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Prevent SVG stretching */
.elementor-widget-social-icons .elementor-social-icon svg,
.elementor-widget-social-icons .elementor-social-icon i {
    width: 1em !important;
    height: 1em !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-widget-social-icons .elementor-social-icons-wrapper {
        justify-content: center !important;
        gap: 15px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .elementor-widget-social-icons .elementor-social-icons-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
}

/* ============================================
   8) TABLET NAV MENU WRAP FIX (768px-1024px)
   When nav wraps to 2 lines, the sticky bar adapts
   naturally because we set height:auto on sticky--active.
   We just need to let items wrap and center them.
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Navigation menu container - allow natural height for wrapping */
    .elementor-nav-menu,
    .elementor-nav-menu--main {
        flex-wrap: wrap !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Nav menu items can wrap and center */
    .elementor-nav-menu--main .elementor-nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        row-gap: 0 !important;
    }

    /* Slightly reduce nav item padding when wrapping to save space */
    .elementor-197728 .elementor-element.elementor-element-5670036 .elementor-nav-menu--main .elementor-item {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Ensure page content clears the sticky header/nav */
    body:not(.elementor-editor-active) .elementor-location-header {
        margin-bottom: 5px !important;
    }
}

/* Narrower tablet where wrapping is more likely */
@media (min-width: 768px) and (max-width: 900px) {
    body:not(.elementor-editor-active) .elementor-location-header {
        margin-bottom: 8px !important;
    }
}

/* ============================================
   9) VIEW SPECIFICATION BUTTON - Fix Hover Shape
   ============================================ */

/* Disable the grow animation that changes button shape */
.elementor-button.elementor-animation-grow:hover {
    transform: none !important;
}

/* Alternative: Add a subtle color/shadow effect instead */
.elementor-element-27270951 .elementor-button {
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.elementor-element-27270951 .elementor-button:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 131, 69, 0.4) !important;
}

/* ============================================
   10) SEARCH INFO MODAL - Z-Index & Positioning Fix
   Ensure modal appears above nav menu and positions
   relative to search widget container
   ============================================ */

/* CSS variable for dynamic top positioning (set by JavaScript) */
#search-info-modal {
    --search-modal-top: 120px; /* fallback value */
}

/* Override the overlay z-index to be above nav menu */
#search-info-modal.search-modal-overlay,
.search-modal-overlay#search-info-modal {
    z-index: 500000 !important; /* Above nav menu and dropdown */
}

/* Position the modal content using the CSS variable */
#search-info-modal .search-modal-content,
#search-info-modal.search-modal-overlay .search-modal-content {
    position: fixed !important;
    top: var(--search-modal-top, 120px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 500001 !important;
    max-width: 600px;
    width: 90%;
    max-height: calc(100vh - var(--search-modal-top, 120px) - 40px);
    overflow-y: auto;
}

/* Also fix the no-results modal */
#no-results-modal.no-results-modal-overlay,
.no-results-modal-overlay#no-results-modal {
    z-index: 500000 !important;
}

#no-results-modal .no-results-modal-content,
#no-results-modal.no-results-modal-overlay .no-results-modal-content {
    position: fixed !important;
    top: var(--search-modal-top, 120px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 500001 !important;
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    #search-info-modal .search-modal-content,
    #no-results-modal .no-results-modal-content {
        width: 85%;
        max-width: 550px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    #search-info-modal .search-modal-content,
    #no-results-modal .no-results-modal-content {
        width: 90%;
        max-width: 100%;
        margin: 0 10px;
    }
}

/* ============================================
   11) Additional Dropdown Styling
   ============================================ */

fieldset .fabrication-type_filter_box,
#custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 430px;
    font-family: Nunito Sans;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #f0f0f0;
}

.part-number {
    background-color: #e0e0e0;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 10px;
    white-space: nowrap;
}

.description {
    background-color: transparent;
}

/* ============================================
   12) MOBILE CONTENT SPACING FIX
   Handle edge cases for specific page templates
   on mobile viewports.
   ============================================ */

@media (max-width: 767px) {
    /* Fabrication/Belt single pages - title banner spacing */
    body.single-fabrication .elementor-element-33584628,
    body.single-belt .elementor-element-33584628,
    [data-id="33584628"] {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    /* Content container after the banner */
    body.single-fabrication .elementor-element-36bfbbf7,
    body.single-belt .elementor-element-36bfbbf7,
    [data-id="36bfbbf7"] {
        margin-top: 10px !important;
    }

    /* Ensure the embedded nav template doesn't overlap content */
    .elementor-widget-template:has(.elementor-nav-menu) {
        margin-bottom: 10px !important;
    }
}

/* Very small mobile - extra spacing */
@media (max-width: 480px) {
    body.single-fabrication .elementor-element-33584628,
    body.single-belt .elementor-element-33584628,
    [data-id="33584628"] {
        padding-top: 15px !important;
    }
}

/* ============================================
   13) MEDIA GALLERY - Ensure below nav menu
   Override inline styles that create stacking issues
   ============================================ */

/* Remove overflow:hidden that clips dropdowns above */
.mb-media-gallery__container {
    overflow: visible !important;
}

/* Keep the viewer clipped but allow gallery container to show dropdowns above it */
.mb-media-gallery__viewer {
    overflow: hidden !important;
}

/* The gallery itself should be in normal document flow */
.mb-media-gallery {
    position: relative !important;
    z-index: 1 !important;
}

/* But the gallery modal needs to be above everything */
.mb-media-gallery-modal {
    z-index: 999999 !important;
}

/* ============================================
   14) RESPONSIVE LAYOUT - Search Widget & Results Grid
   
   LAYOUT RULES:
   - Side-by-side ONLY when grid can fit 2+ columns (≥1020px)
   - Stacked with single column when only 1 column would fit (<1020px)
   
   Breakpoints:
   ≥1600px: search left + 4 columns right
   1280-1599px: search left + 3 columns right
   1020-1279px: search left + 2 columns right
   <1020px: search above + 1 column below
   ============================================ */

/* 14a. GLOBAL: Center the outer container on wide screens */
.elementor-196785 .elementor-element.elementor-element-7940c64 {
    --margin-left: auto !important;
    --margin-right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 2300px !important;
}

/* 14b. SIDE-BY-SIDE LAYOUT (≥1020px): Search left, 2-4 column grid right */
@media (min-width: 1020px) {
    /* Parent container - horizontal flex, centered */
    .elementor-196785 .elementor-element.elementor-element-f5b2f50,
    .elementor-element-f5b2f50,
    [data-id="f5b2f50"],
    #search-parent,
    #search-parent.e-con {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 40px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Search widget container - fixed width */
    /* CRITICAL: Override Elementor's --width:0% that causes truncation */
    .elementor-196785 .elementor-element.elementor-element-a3b1c51,
    .elementor-element-a3b1c51,
    [data-id="a3b1c51"],
    #search-widget-div,
    #search-widget-div.e-con {
        --width: 420px !important;
        width: 420px !important;
        min-width: 420px !important;
        max-width: 450px !important;
        flex: 0 0 420px !important;
        flex-shrink: 0 !important;
        --margin-right: 0px !important;
        --margin-left: 0px !important;
        margin-right: 0 !important;
    }
    
    /* Results container - flexible, takes remaining space */
    /* CRITICAL: Override Elementor's --width:0% that causes truncation */
    .elementor-196785 .elementor-element.elementor-element-a8ef7a9,
    .elementor-element-a8ef7a9,
    [data-id="a8ef7a9"],
    #search-data-div,
    #search-data-div.e-con {
        --width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        --margin-right: 0px !important;
        --margin-left: 0px !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }
    
    /* Grid - must display as grid with columns */
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        display: grid !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    /* Grid items - let grid control sizing */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    /* Ensure the loop grid widget doesn't clip content */
    .elementor-196785 .elementor-element.elementor-element-49cf22c,
    .elementor-196785 .elementor-widget-loop-grid {
        overflow: visible !important;
        width: 100% !important;
    }
    
    /* Ensure widget container doesn't clip */
    .elementor-196785 .elementor-element.elementor-element-49cf22c > .elementor-widget-container {
        overflow: visible !important;
    }
}

/* 2-column grid (1020px - 1279px) */
@media (min-width: 1020px) and (max-width: 1279px) {
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 3-column grid (1280px - 1599px) */
@media (min-width: 1280px) and (max-width: 1599px) {
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 4-column grid (≥1600px) */
@media (min-width: 1600px) {
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 14c. STACKED LAYOUT (<1020px): Search on top, single column grid below */
@media (max-width: 1019px) {
    /* Reset Elementor's asymmetric margins */
    .elementor-196785 .elementor-element.elementor-element-7940c64 {
        --margin-left: 0px !important;
        --margin-right: 0px !important;
    }
    
    /* Parent container - vertical stack */
    .elementor-196785 .elementor-element.elementor-element-f5b2f50,
    .elementor-element-f5b2f50,
    [data-id="f5b2f50"],
    #search-parent,
    #search-parent.e-con {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Search data div - reset margins and width */
    .elementor-196785 .elementor-element.elementor-element-a8ef7a9,
    .elementor-element-a8ef7a9,
    [data-id="a8ef7a9"],
    #search-data-div {
        --width: 100% !important;
        --margin-left: 0px !important;
        --margin-right: 0px !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Search widget div - reset margins and width */
    .elementor-196785 .elementor-element.elementor-element-a3b1c51,
    .elementor-element-a3b1c51,
    [data-id="a3b1c51"],
    #search-widget-div {
        --width: 100% !important;
        --margin-left: 0px !important;
        --margin-right: 0px !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Both containers full width, centered content */
    #search-widget-div,
    #search-data-div {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Search widget itself - wider when stacked (570px = 420 + 150) */
    #belts-search-widget,
    #fabrications-search-widget {
        width: 570px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    /* Center the search controls */
    .search-controls {
        justify-content: center !important;
    }
    
    /* Compare section - centered */
    #compare-container,
    .compare-container {
        width: auto !important;
        max-width: calc(100% - 40px) !important;
    }
    
    /* SINGLE COLUMN GRID - flexbox column layout */
    .elementor-loop-container.elementor-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
        grid-template-columns: unset !important;
    }
    
    /* Grid items - constrained width, centered */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 500px !important;
        max-width: calc(100% - 40px) !important;
        min-width: unset !important;
        margin: 0 auto !important;
    }
}

/* 14d. TABLET STACKED (768px - 1019px): Larger items */
@media (min-width: 768px) and (max-width: 1019px) {
    /* Wider search widget on tablet */
    #belts-search-widget,
    #fabrications-search-widget {
        width: 600px !important;
    }
    
    /* Wider loop items on tablet */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 550px !important;
    }
}

/* 14e. MOBILE (<768px): Full width */
@media (max-width: 767px) {
    /* Full-width search widget */
    #belts-search-widget,
    #fabrications-search-widget {
        width: 100% !important;
        max-width: calc(100% - 30px) !important;
    }
    
    /* Full-width loop items */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 100% !important;
        max-width: calc(100% - 30px) !important;
    }
    
    /* Tighter gap on mobile */
    .elementor-loop-container.elementor-grid {
        gap: 20px !important;
    }
}

/* ============================================
   15) HEADER WIDTH CONSTRAINTS
   ============================================ */

:root {
    --mb-header-content-width: 2000px;
}

/* Keep header full-width, but constrain its inner content consistently */
.elementor-location-header .elementor-container,
.elementor-location-header .e-con {
    max-width: var(--mb-header-content-width);
    margin-left: auto;
    margin-right: auto;
}

#desktop-header {
    max-width: 100%;
}

.elementor-location-header {
    max-width: 100%;
}

/* ============================================
   UPDATED RESPONSIVE LAYOUT FOR /BELTS PAGE
   - Side-by-side ≥1019px with varying grid columns
   - Stacked <1019px with 1 column (550px or full-width)
   - Fixes truncation and card gaps
   ============================================ */

/* Global: Ensure no truncation in key containers */
#search-parent,
#search-parent.e-con,
#search-parent .e-con-inner,
.elementor-196785 .elementor-element.elementor-element-f5b2f50,
.elementor-196785 .elementor-element.elementor-element-a8ef7a9, /* Results container */
#search-data-div,
#search-data-div.e-con,
.elementor-196785 .elementor-element.elementor-element-49cf22c, /* Loop grid widget */
.elementor-loop-container.elementor-grid,
.e-loop-container {
    overflow: visible !important;
    max-width: 100% !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Enforce grid gaps to prevent cards running together */
.elementor-loop-container.elementor-grid,
.e-loop-container {
    gap: 25px !important; /* Balanced between your 20px/30px - adjust if needed */
    --grid-row-gap: 25px !important;
    --grid-column-gap: 25px !important;
}

/* ============================================
   SIDE-BY-SIDE LAYOUT (≥1019px): Search left, grid right
   ============================================ */
@media (min-width: 1224px) {
    /* Parent container - horizontal flex, centered */
    #search-parent,
    #search-parent.e-con,
    #search-parent .e-con-inner,
    .elementor-196785 .elementor-element.elementor-element-f5b2f50 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 70px !important; /* Space between search and results */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Search widget container - fixed width (overrides Elementor's --width:0%) */
    .elementor-196785 .elementor-element.elementor-element-a3b1c51,
    #search-widget-div,
    #search-widget-div.e-con {
        --width: 420px !important; /* Matches your current min-width */
        width: 420px !important;
        min-width: 420px !important;
        flex: 0 0 420px !important;
        margin: 0 !important;
    }

    /* Results container - flexible remaining space (overrides --width:0%) */
    .elementor-196785 .elementor-element.elementor-element-a8ef7a9,
    #search-data-div,
    #search-data-div.e-con {
        --width: auto !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Grid setup - always grid in side-by-side */
    .elementor-196785 .elementor-element.elementor-element-49cf22c .elementor-loop-container,
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        display: grid !important;
        width: 100% !important;
    }

    /* Grid items - auto-sized by grid */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* 2-column grid (1019px - 1719px) */
@media (min-width: 1224px) and (max-width: 1719px) {
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 3-column grid (1720px - 1936px) */
@media (min-width: 1720px) and (max-width: 1936px) {
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 4-column grid (≥1937px) */
@media (min-width: 1937px) {
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ============================================
   STACKED LAYOUT (<1225px): Search above results (no sidebar)
   But grid can STILL be multi-column at 1020px+
   ============================================ */
@media (max-width: 1224px) {
    /* Parent container - vertical stack, centered */
    #search-parent,
    #search-parent.e-con,
    #search-parent .e-con-inner,
    .elementor-196785 .elementor-element.elementor-element-f5b2f50 {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 25px !important; /* Space between search and results */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Both search and results containers - full width */
    .elementor-196785 .elementor-element.elementor-element-a3b1c51,
    #search-widget-div,
    #search-widget-div.e-con,
    .elementor-196785 .elementor-element.elementor-element-a8ef7a9,
    #search-data-div,
    #search-data-div.e-con {
        --width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* NOTE: Grid column rules are NOT set here.
       At 1020-1224px the grid should be 2-column (handled below).
       At <1020px the grid becomes 1-column (handled in §14c). */
}

/* 2-column grid when stacked layout (1020px - 1224px) */
@media (min-width: 1020px) and (max-width: 1224px) {
    .elementor-196785 .elementor-element.elementor-element-49cf22c .elementor-loop-container,
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* Stacked: 1 column, 550px wide items (768px - 1019px) */
@media (min-width: 768px) and (max-width: 1019px) {
    /* Search widget - wider for tablet */
    #belts-search-widget {
        width: 600px !important; /* Slightly wider than min for comfort */
        max-width: 100% !important;
    }

    /* Grid items - centered, fixed 550px width */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 550px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Stacked: 1 column, full width (<768px) */
@media (max-width: 767px) {
    /* Search widget - full width */
    #belts-search-widget {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Grid items - full width */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}
/* ============================================
   UPDATED RESPONSIVE LAYOUT FOR /FABRICATIONS PAGE
   - Similar to belts but limited to max 3 columns
   - Side-by-side ≥1020px with 2–8 columns scaling (matching belts breakpoints)
   - Stacked <1020px with 1 column (auto card height, image auto height no scroll)
   - Improved centering: cap outer width in stacked/side-by-side to 2000px, force auto margins on body/section/outer, remove left bias
   - Fix for card layout: flex column, height auto in stacked/push button to bottom
   - Max widths: cards 575px, search widget 700px
   - Remove search widget scrolling: no max-height/overflow
   - Allow cards to grow tall in stacked: auto/min-height auto, overflow visible
   - Override fixed heights from loop-147906.css for cards and images in stacked
   ============================================ */

/* Global: Ensure no truncation in key containers, force centering on main elements */
body.elementor-page-195657,
.elementor-section,
#search-parent,
#search-parent.e-con,
#search-parent .e-con-inner,
.elementor-195657 .elementor-element.elementor-element-d1ae019, /* Outer container */
.elementor-195657 .elementor-element.elementor-element-0d35e13,
.elementor-195657 .elementor-element.elementor-element-64ddf45, /* Results container */
#search-data-div,
#search-data-div.e-con,
.elementor-195657 .elementor-element.elementor-element-aed1f7c, /* Loop grid widget */
.elementor-loop-container.elementor-grid,
.e-loop-container {
    overflow: visible !important;
    max-width: var(--mb-header-content-width) !important; /* Match header: 2000px */
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important; /* Fallback centering */
}

/* Enforce grid gaps to prevent cards running together */
.elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid,
.e-loop-container {
    gap: 25px !important;
    --grid-row-gap: 25px !important;
    --grid-column-gap: 25px !important;
}

/* Remove search widget scrolling - allow full height */
#fabrications-search-widget,
.fabrications-search-widget {
    max-height: none !important;
    overflow-y: visible !important;
    height: auto !important;
}

/* Fix fabrication card internal layout (base) */
.elementor-198626 .elementor-element.elementor-element-6fb6f43 {
    --display: flex !important;
    --flex-direction: column !important;
    --justify-content: flex-start !important; /* Content top, button bottom */
    --align-items: flex-start !important;
    --gap: 8px 8px !important;
    --row-gap: 8px !important;
    --column-gap: 8px !important;
    --border-radius: 15px 15px 15px 15px !important;
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.2) inset !important;
    --padding-top: 10px !important;
    --padding-bottom: 10px !important;
    --padding-left: 10px !important;
    --padding-right: 10px !important;
    overflow: visible !important; /* Ensure no internal scrolling */
}

/* Override fixed card heights from loop-147906.css */
.fabrication-card-item {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* Push the View Specification button to the bottom */
.elementor-198626 .mb-view-spec-button {
    margin-top: auto !important;
}

/* ============================================
   SIDE-BY-SIDE LAYOUT (≥1020px): Search left, grid right - uniform card height
   (Matches belts side-by-side breakpoint)
   ============================================ */
@media (min-width: 1020px) {
    /* Outer container - center with auto margins, balance padding, no right margin bias */
    .elementor-195657 .elementor-element.elementor-element-d1ae019 {
        --margin-top: 30px !important;
        --margin-bottom: 0px !important;
        --margin-left: auto !important;
        --margin-right: auto !important; /* Auto for centering */
        --padding-top: 25px !important;
        --padding-bottom: 75px !important;
        --padding-left: 75px !important; /* Balance left/right padding */
        --padding-right: 75px !important;
        --content-width: none !important; /* Remove width limit for full responsiveness */
        --border-radius: 10px 10px 10px 10px !important;
    }

    /* Parent row container - horizontal flex, centered */
    .elementor-195657 .elementor-element.elementor-element-0d35e13 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 70px !important; /* Space between search and results */
        --margin-top: 75px !important;
        --margin-bottom: 0px !important;
        --margin-left: auto !important; /* Center the row */
        --margin-right: auto !important;
        --padding-top: 25px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important; /* Remove inner padding to avoid double-padding */
    }

    /* Search widget container - fixed width */
    .elementor-195657 .elementor-element.elementor-element-805d3f2,
    #search-widget-div,
    #search-widget-div.e-con,
    .fabrications-search-widget {
        --width: 420px !important;
        width: 420px !important;
        min-width: 420px !important;
        max-width: 700px !important; /* Max for consistency */
        flex: 0 0 420px !important;
        --margin-top: 0px !important;
        --margin-bottom: 0px !important;
        --margin-left: 0px !important; /* Override left margin */
        --margin-right: 0px !important;
        --padding-top: 0px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important;
    }

    /* Results container - flexible remaining space */
    .elementor-195657 .elementor-element.elementor-element-64ddf45,
    #search-data-div,
    #search-data-div.e-con {
        --width: auto !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        --margin-top: 0px !important;
        --margin-bottom: 0px !important;
        --margin-left: 0px !important;
        --margin-right: 0px !important; /* Override right margin */
        --padding-top: 0px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important;
    }

    /* Grid setup - always grid in side-by-side */
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container,
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        display: grid !important;
        width: 100% !important;
    }

    /* Grid items - auto-sized by grid, with min-width to prevent too-narrow cards */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: auto !important;
        max-width: 575px !important; /* Max width for cards */
        min-width: 300px !important; /* Prevent wonky narrow cards */
        margin: 0 !important;
    }

    /* Uniform height for cards in multi-column */
    .elementor-198626 .elementor-element.elementor-element-6fb6f43 {
        --min-height: 420px !important;
        height: 420px !important; /* Fixed height for uniformity */
        overflow-y: auto !important; /* Scroll if content exceeds */
    }

    /* Fixed image height in multi-column with scroll if needed */
    .fabrication-card-item__img {
        height: 250px !important;
        overflow-y: auto !important; /* Scroll if image taller */
    }

    .fabrication-card-item__img img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Fabrications: responsive columns matching belts (2–8 cols, same breakpoints) */
@media (min-width: 1020px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
}
@media (min-width: 1225px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1500px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1800px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 2100px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 2400px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 2700px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }
}

/* ============================================
   STACKED LAYOUT (<1020px): Search above, 1-column below - auto card height
   (Matches belts stacked breakpoint)
   ============================================ */
@media (max-width: 1019px) {
    /* Outer container - ensure centering, force auto margins, cap width */
    .elementor-195657 .elementor-element.elementor-element-d1ae019 {
        --margin-top: 30px !important;
        --margin-bottom: 0px !important;
        --margin-left: auto !important;
        --margin-right: auto !important; /* Auto for centering */
        --padding-top: 75px !important;
        --padding-bottom: 75px !important;
        --padding-left: 20px !important; /* Balanced padding in stacked */
        --padding-right: 20px !important;
        max-width: 700px !important; /* Cap outer for centering */
        --content-width: none !important;
        --border-radius: 10px 10px 10px 10px !important;
    }

    /* Parent container - vertical stack, centered, cap width */
    .elementor-195657 .elementor-element.elementor-element-0d35e13 {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 25px !important; /* Space between search and results */
        max-width: 700px !important; /* Cap the entire stack */
        --margin-top: 75px !important;
        --margin-bottom: 0px !important;
        --margin-left: auto !important; /* Center the stack */
        --margin-right: auto !important;
        --padding-top: 25px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important;
    }

    /* Both search and results containers - full width, but with max for centering */
    .elementor-195657 .elementor-element.elementor-element-805d3f2,
    #search-widget-div,
    #search-widget-div.e-con,
    .elementor-195657 .elementor-element.elementor-element-64ddf45,
    #search-data-div,
    #search-data-div.e-con {
        --width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important; /* Center within parent */
    }

    /* Grid - switch to flex-column for single column (FABRICATIONS ONLY) */
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container,
    .elementor-195657 .elementor-loop-container.elementor-grid,
    .elementor-195657 .e-loop-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        grid-template-columns: unset !important; /* Disable multi-column grid */
    }

    /* Auto height for cards in stacked */
    .elementor-198626 .elementor-element.elementor-element-6fb6f43 {
        --min-height: auto !important;
        height: auto !important;
        overflow: visible !important; /* No scroll in stacked */
    }

    /* Auto image height in stacked, no scroll */
    .fabrication-card-item__img {
        height: auto !important;
        overflow: visible !important;
    }
}

/* Stacked: 1 column, max 575px wide (768px - 1019px) */
@media (min-width: 768px) and (max-width: 1019px) {
    /* Search widget - wider for tablet, max 700px */
    #fabrications-search-widget,
    .fabrications-search-widget {
        width: 600px !important;
        max-width: 700px !important;
        margin: 0 auto !important; /* Center */
    }

    /* Grid items - centered, max 575px width */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 550px !important;
        max-width: 575px !important;
        margin: 0 auto !important;
    }
}

/* Stacked: 1 column, full width (<768px) */
@media (max-width: 767px) {
    /* Search widget - full width, max 700px */
    #fabrications-search-widget,
    .fabrications-search-widget {
        width: 100% !important;
        max-width: 700px !important;
        margin: 0 auto !important; /* Center on mobile if possible */
    }

    /* Grid items - full width, max 575px */
    .elementor-loop-container .elementor-grid-item,
    .e-loop-container .e-loop-item {
        width: 100% !important;
        max-width: 575px !important;
        margin: 0 auto !important;
    }
}
/* ============================================================
   FABRICATIONS ONLY (page 195657)
   Always padded, stacks <=1019px, card button pinned bottom/center
   ============================================================ */

/* ---------- A) Always give the page side padding ---------- */
body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019 {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;

  /* Always padded (desktop included) */
  padding-left: 30px !important;
  padding-right: 30px !important;
}

/* Optional: slightly reduce padding on medium/small screens */
@media (max-width: 1019px) {
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 768px) {
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ---------- B) Remove the right-only bias from the page CSS ---------- */
body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-0d35e13,
body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-64ddf45,
body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-aed1f7c > .elementor-widget-container {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* Kill the loop grid widget’s right padding that shifts columns */
body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-aed1f7c > .elementor-widget-container {
  padding: 0 !important;
}

/* ---------- C) Force stacking <=1019px (fixes the 1224–1019 “side-by-side” band) ---------- */
@media (max-width: 1019px) {
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-0d35e13 {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
  }

  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-805d3f2,
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-64ddf45 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Ensure the search widget doesn't clip internal content */
  body.page-id-195657 #search-widget-div,
  body.page-id-195657 #search-widget-div * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ---------- D) Loop cards: real footer behavior (button always bottom & centered) ---------- */
/* Card container as a vertical flex card */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-240c9b96 {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 420px !important;
}

/* Make the “content” section take remaining space so the footer can drop */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-6bd31573,
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-79b7ee2b,
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-63cd44df {
  flex: 1 1 auto !important;
}

/* Button wrapper pinned to bottom + centered */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-27270951 {
  margin-top: auto !important;
  width: 100% !important;
  align-self: stretch !important;
  text-align: center !important;
}

/* Center the actual button even if Elementor wraps it oddly */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-27270951 .elementor-button-wrapper {
  display: flex !important;
  justify-content: center !important;
}
/* ============================================================
   FABRICATIONS ONLY (page 195657)
   Final polish: padding through mobile + button pinned bottom center
   ============================================================ */

/* ---------- 1) Side padding on ALL viewports (down to mobile) ---------- */
body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019{
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* medium */
@media (max-width: 1019px){
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019{
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* tablet */
@media (max-width: 768px){
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019{
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* phone */
@media (max-width: 480px){
  body.page-id-195657 .elementor-195657 .elementor-element.elementor-element-d1ae019{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}


/* ---------- 2) Button ALWAYS centered at bottom of card (single column too) ---------- */
/* Make the card a positioning context and reserve space for the pinned button */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-240c9b96{
  position: relative !important;
  padding-bottom: 74px !important; /* reserve space so description never collides */
}

/* Pin the button widget to bottom center of the card */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-27270951{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 18px !important;
  margin-top: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Ensure Elementor's internal wrapper can't "shrink" the button */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-27270951 .elementor-button-wrapper{
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

/* Optional: keep button from wrapping weirdly on very narrow cards */
body.page-id-195657 .elementor-196795 .elementor-element.elementor-element-27270951 .elementor-button{
  white-space: nowrap !important;
}
 /* Style the custom sticky bar created by your JS */
#mb-sticky-bottom-nav-bar {
    position: fixed;
    width: 100%;
    background-color: #ffffff; /* Matches your green brand color */
    z-index: 9999 !important;  /* Ensure it sits on top of everything */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Adds depth so content looks like it goes under */
    display: none; /* Controlled by your JS */
    left: 0;
}

/* Ensure the inner wrapper keeps the menu centered */
.mb-sticky-bottom-nav-inner {
    max-width: 1200px; /* Adjust to match your site's content width */
    margin: 0 auto;
    padding: 10px 0;
}

/* Force the nav menu items to stay visible/white when sticky */
#mb-sticky-bottom-nav-bar .elementor-nav-menu .elementor-item {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Loop Grid: enforce responsive columns (1020px+ = 2 cols minimum, max 8) */
@media (min-width: 1020px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

/* 3+ columns — start at 1225px so 1020-1224px stays 2-column */
@media (min-width: 1225px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1500px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1800px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2100px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2400px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2700px) {
  .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important; /* max 8 */
  }
}
/* (Sticky header rules consolidated into §5 above — removed from here) */

/* =========================================================
   Loop Grid columns for belts/fabrications listing pages
   - Never fewer than 2 columns on desktop/tablet
   - Scale up to 8 columns on very large screens
   ========================================================= */
@media (min-width: 768px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    display: grid !important;
    gap: 24px !important;

    /* default desktop/tablet: 2 columns minimum */
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 3 columns */
@media (min-width: 1300px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* 4 columns */
@media (min-width: 1600px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* 5–8 columns */
@media (min-width: 1900px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2200px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2500px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2800px) {
  .mb-search-page .elementor-widget-loop-grid .elementor-loop-container {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}
/*
.elementor-element-8137a98 {
    padding-left:20px !important;
}
*/