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

/* 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
   ============================================ */

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

/* Header internal elements - allow overflow for 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 {
    overflow: visible !important;
}

/* Nav menu dropdown - must be highest in header stack */
.elementor-nav-menu--dropdown,
.elementor-location-header .elementor-nav-menu--dropdown {
    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 should maintain high z-index */
.elementor-location-header.elementor-sticky--active,
.elementor-sticky__wrapper {
    z-index: 99990 !important;
}

/* ============================================
   3b) EMBEDDED NAV MENU TEMPLATE FIX
   For nav menus embedded in page content via template widget
   (e.g., on single-fabrication pages)
   ============================================ */

/* The template widget containing the nav menu needs high z-index */
.elementor-widget-template:has(.elementor-nav-menu),
.elementor-widget-template:has(.elementor-location-header) {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* Fallback for browsers without :has() support - target by element ID */
.elementor-element-4de82946,
[data-id="4de82946"] {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* The template content itself */
.elementor-widget-template .elementor-template {
    overflow: visible !important;
}

/* Embedded header templates inside page content */
.elementor-widget-template .elementor-location-header {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* All containers in the template chain need overflow visible */
.elementor-widget-template .elementor-widget-container,
.elementor-widget-template .e-con,
.elementor-widget-template .e-con-inner {
    overflow: visible !important;
}

/* The nav menu dropdown in embedded templates */
.elementor-widget-template .elementor-nav-menu--dropdown,
.elementor-widget-template .sub-menu {
    z-index: 99999 !important;
    position: absolute !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) UNIVERSAL MOBILE TOGGLE FIX (< 767px)
   --------------------------------------------------------- */
@media (max-width: 767px) {
    /* Base Toggle Settings */
    .elementor-element-c3c89ab .elementor-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        justify-content: center;
        align-items: center;
        border-radius: 50% !important;
        z-index: 999999 !important;
        transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    }

    /* 1. AT-TOP STATE: Transparent Background + White Bars */
    .elementor-element-c3c89ab:not(.elementor-sticky--active) .elementor-menu-toggle {
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .elementor-element-c3c89ab:not(.elementor-sticky--active) .elementor-menu-toggle svg {
        fill: #ffffff !important;
        transition: fill 0.3s ease;
    }

    /* 2. SCROLLED STATE: White Background + Green Bars */
    .elementor-element-c3c89ab.elementor-sticky--active .elementor-menu-toggle {
        background-color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }

    .elementor-element-c3c89ab.elementor-sticky--active .elementor-menu-toggle svg {
        fill: #008345 !important;
    }

    /* Keep it consistent when the menu is actually open */
    .elementor-menu-toggle.elementor-active {
        background-color: #ffffff !important;
    }
    .elementor-menu-toggle.elementor-active svg {
        fill: #008345 !important;
    }

    /* Kill the sticky spacer to prevent page jump */
/*    .elementor-sticky__spacer { display: none !important; height: 0 !important; } */
}

/* 5) Desktop/Tablet Colors */
@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
   Prevent content overlap when menu wraps to 2 lines
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* If using sticky header, ensure spacer works */
/*
    .elementor-sticky__spacer {
        display: block !important;
        height: auto !important;
        min-height: 60px !important;
    }
*/    
    /* Force the search parent container to clear the sticky header/nav */
    #search-parent {
        padding-top: 60px !important;
        clear: both !important;
    }
    
    /* Also add margin to the search widget div itself */
    #search-widget-div {
        margin-top: 10px !important;
    }
    
    /* Ensure the page content starts below header */
    body:not(.elementor-editor-active) .elementor-location-header {
        margin-bottom: 10px !important;
    }
    
    /* Navigation menu container - allow natural height */
    .elementor-nav-menu,
    .elementor-nav-menu--main {
        flex-wrap: wrap !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Nav menu items can wrap */
    .elementor-nav-menu--main .elementor-nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        row-gap: 5px !important;
    }
    
    /* When sticky nav is active, add more space below it */
    .elementor-widget-template.elementor-sticky--active ~ *,
    .elementor-sticky--active ~ .e-con,
    .elementor-sticky--active ~ .elementor-section {
        margin-top: 50px !important;
    }
}

/* Narrower tablet where wrapping is more likely */
@media (min-width: 768px) and (max-width: 900px) {
    #search-parent {
        padding-top: 70px !important;
    }
    
    body:not(.elementor-editor-active) .elementor-location-header {
        margin-bottom: 15px !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
   Prevent content from overlapping header on mobile
   ============================================ */

/* Mobile: Add spacing below header for all pages */
@media (max-width: 767px) {
    /* General fix for content after header */
    .elementor-location-header + .elementor-section,
    .elementor-location-header + .e-con,
    .elementor-location-header ~ .elementor-section:first-of-type,
    .elementor-location-header ~ .e-con:first-of-type {
        margin-top: 10px !important;
    }
    
    /* 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;
    }
    
    /* Fix for pages with sticky nav - add clearance */
    .elementor-sticky--active ~ .e-con,
    .elementor-sticky--active ~ .elementor-section {
        padding-top: 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 (<1019px): Search above, 1-column below
   ============================================ */
@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;
    }

    /* Grid - switch to flex-column for single column */
    .elementor-196785 .elementor-element.elementor-element-49cf22c .elementor-loop-container,
    .elementor-loop-container.elementor-grid,
    .e-loop-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        grid-template-columns: unset !important; /* Disable multi-column grid */
    }
}

/* Stacked: 1 column, 550px wide (768px - 1018px) */
@media (min-width: 768px) and (max-width: 1224x) {
    /* 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 ≥1255px with 2 columns 1255-1719px, 3 columns ≥1720px (uniform card height 420px, image 250px with scroll if needed)
   - Stacked <1255px 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 (≥1255px): Search left, grid right - uniform card height
   ============================================ */
@media (min-width: 1255px) {
    /* 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: 75px !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;
    }
}

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

/* 3-column grid (≥1720px) - no 4-column for fabrications */
@media (min-width: 1720px) {
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container.elementor-grid,
    .e-loop-container {
        grid-template-columns: repeat(3, 1fr) !important;
        --grid-columns: 3 !important;
    }
}

/* ============================================
   STACKED LAYOUT (<1255px): Search above, 1-column below - auto card height
   ============================================ */
@media (max-width: 1254px) {
    /* 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 */
    .elementor-195657 .elementor-element.elementor-element-aed1f7c .elementor-loop-container,
    .elementor-loop-container.elementor-grid,
    .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 - 1254px) */
@media (min-width: 768px) and (max-width: 1254px) {
    /* 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 <=1254px, 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: 1254px) {
  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 <=1254px (fixes the 1224–1254 “side-by-side” band) ---------- */
@media (max-width: 1254px) {
  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: 1254px){
  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;
}
/* Prevent width/margin jumps when sticky kicks in */
.elementor-location-header,
.elementor-sticky__header,
.elementor-sticky--effects,
.elementor-sticky--active {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}

/* Force nav menu container to stay truly centered */
.elementor-nav-menu__container,
.elementor-nav-menu--main {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* If your menu is inside a flex container */
.elementor-nav-menu {
    justify-content: center !important;
    -webkit-justify-content: center !important;
}

/* Kill any rightward offset or transform ghost */
.elementor-sticky--effects .elementor-nav-menu,
.elementor-sticky__header .elementor-nav-menu {
    transform: none !important;
    transition: none !important;   /* ← removes slide/animation glitches */
}

/* Prevent font-weight change in sticky mode */
.elementor-location-header .elementor-nav-menu--main .elementor-item,
.elementor-sticky--effects .elementor-nav-menu--main .elementor-item,
.elementor-sticky--active .elementor-nav-menu--main .elementor-item {
    font-weight: var(--your-normal-font-weight, 400 or 500) !important;
}

/* If it's getting bold specifically */
.elementor-sticky--effects .elementor-nav-menu--main .elementor-item {
    font-weight: 400 !important;   /* adjust to your non-sticky value */
}

/* Prevent font-weight change in sticky mode */
.elementor-location-header .elementor-nav-menu--main .elementor-item,
.elementor-sticky--effects .elementor-nav-menu--main .elementor-item,
.elementor-sticky--active .elementor-nav-menu--main .elementor-item {
    font-weight: var(--your-normal-font-weight, 400 or 500) !important;
}

/* If it's getting bold specifically */
.elementor-sticky--effects .elementor-nav-menu--main .elementor-item {
    font-weight: 400 !important;   /* adjust to your non-sticky value */
}

/* Lock font-weight to 600 in ALL header states – normal + sticky */
.elementor-location-header .elementor-nav-menu--main .elementor-item,
.elementor-location-header .elementor-nav-menu--main .elementor-item:visited,
.elementor-sticky__header .elementor-nav-menu--main .elementor-item,
.elementor-sticky--effects .elementor-nav-menu--main .elementor-item,
.elementor-sticky--active .elementor-nav-menu--main .elementor-item,
.elementor-sticky--effects .elementor-nav-menu--main .elementor-item:visited,
.elementor-sticky--active .elementor-nav-menu--main .elementor-item:visited {
    font-weight: 600 !important;
}

/* Also target dropdown/submenu items if they exist */
.elementor-nav-menu--dropdown .elementor-item,
.elementor-sticky--effects .elementor-nav-menu--dropdown .elementor-item {
    font-weight: 600 !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;
}
elementor-element elementor-element-5713ed8 e-con-full elementor-hidden-mobile e-flex e-con e-parent e-lazyloaded {
    margin-top: 50px !important;
}

/* 13) STICKY HEADER MASKING FIX 
   Ensures content disappears 40px before hitting the menu 
========================================================= */
/* =========================================================
   REVISED STICKY MASKING FIX
   Targeting the specific section ID: #desktop-header
   ========================================================= */

/* 1. Target the specific section when it becomes sticky */
#desktop-header.elementor-sticky--active {
    /* Force the background to be solid green (no transparency) */
    background-color: #008345 !important; 
    
    /* Create the 40px "white space" buffer below the menu */
    /* This acts as a physical barrier that masks the scrolling content */
    border-bottom: 40px solid #ffffff !important;
    
    /* Ensure it stays above everything else on the page */
    z-index: 99999 !important;
    
    /* Add a shadow so the white buffer is visible against the page content */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. Ensure the sticky wrapper doesn't conflict with positioning */
.elementor-sticky__wrapper {
    z-index: 99999 !important;
}

/* 3. Optional: If you find the text "jumps" when sticking, 
   ensure the inner container stays centered */
#desktop-header.elementor-sticky--active .elementor-container {
    max-width: 1200px; /* Adjust to match your site's content width */
    margin: 0 auto;
}

/* Ensure the sticky wrapper doesn't have any transparency */
.elementor-sticky__wrapper {
    background-color: transparent !important;
}

/* Sticky header: keep Elementor spacer and add 40px breathing room */
.elementor-sticky__spacer{
  display: block !important;
  height: auto !important;
  margin-bottom: 10px !important; /* <-- the white space you want */
}

/* =========================================================
   STICKY MENU + 40px WHITE BUFFER (targets the REAL sticky section)
   ========================================================= */

/* The sticky SECTION shown in your markup: data-id="2b73173f" */
section[data-id="2b73173f"].elementor-sticky--active {
  background: #ffffff !important;     /* solid header background */
  z-index: 999999 !important;
  overflow: visible !important;       /* allow the buffer to render */
}

/* Create the 40px white space BELOW the sticky menu (visual + masking) */
section[data-id="2b73173f"].elementor-sticky--active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -40px !important;
  height: 40px !important;
  background: #ffffff !important;
  pointer-events: none !important;
}

/* Also ensure the TEMPLATE widget wrapper doesn’t end up transparent */
[data-id="4de82946"].elementor-sticky--active {
  background: #ffffff !important;
  z-index: 999999 !important;
}

/* Keep dropdowns above everything */
section[data-id="2b73173f"] .elementor-nav-menu--dropdown,
section[data-id="2b73173f"] .sub-menu {
  z-index: 1000000 !important;
}
