/*
 * Site header: a slim strip (phone, currency, account) above the main bar (logo, menu, search, Custom Quote).
 * Larger screens: 993px and up. The strip scrolls away and the main bar stays.
 */
.myheader { position: sticky; top: 0; z-index: 99999; background: #fff; }
.myheader .container ul { margin: 0; padding: 0; }
.myheader .container ul li { list-style: none; margin: 0; }
.myheader button { font-family: inherit; }

.sh-currency { height: 28px; border: 0; border-radius: 4px; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; }
.sh-phone .right_top_div { margin: 0; text-align: left; }
.sh-phone a { display: inline-block; margin: 0; padding: 0; font-size: 13px; line-height: inherit; text-decoration: none; white-space: nowrap; }
.sh-phone a i { margin-right: 5px; }

.sh-bar { position: relative; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sh-logo { display: block; flex-shrink: 0; }
.sh-logo img { display: block; height: 52px; width: auto; max-width: 180px; }
.sh-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sh-icon { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #242424; font-size: 19px; line-height: 42px; text-align: center; padding: 0; }
.sh-icon:hover, .sh-icon:focus { background: #eef4ff; color: #0B5ED7; text-decoration: none; }
.sh-quote { display: inline-block; background: #0B5ED7; color: #fff; font-weight: 700; font-size: 14px; border-radius: 22px; padding: 10px 20px; white-space: nowrap; }
.sh-quote:hover, .sh-quote:focus { background: #090687; color: #fff; text-decoration: none; }

/* Menu items */
.sh-menu .sh-top, .sh-menu .pm > a { background: none; border: 0; color: #242424; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sh-menu .sh-top i, .sh-menu .pm > a i { font-size: 13px; margin-left: 3px; }
.sh-menu .sub_menu:not(.pm-panel) a { display: block; color: #242424; font-size: 15px; text-decoration: none; }
.sh-menu .sub_menu:not(.pm-panel) a:hover, .sh-menu .sub_menu:not(.pm-panel) a:focus { color: #0B5ED7; background: #eef4ff; }

/* Search panel under the bar */
.sh-search { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 12px 24px rgba(0, 0, 0, .14); padding: 16px 0; }
.sh-search[hidden] { display: none; }

@media (min-width: 993px) {
    /* Negative offset equals the strip height, so only the main bar stays on screen */
    .myheader { top: -34px; }
    .sh-strip { background: #0B5ED7; color: #fff; }
    .sh-strip > .container { display: flex; justify-content: flex-end; align-items: center; gap: 24px; height: 34px; }
    .sh-strip > .container::before, .sh-strip > .container::after { display: none; }
    .sh-strip .sh-phone a, .sh-strip .sh-strip-link { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
    .sh-strip .sh-currency { color: #fff; text-align: right; text-align-last: right; }
    .sh-strip .sh-currency option { color: #242424; background: #fff; }
    .sh-strip a:hover, .sh-strip a:focus { text-decoration: underline; }
    .sh-account .dropdown-menu { z-index: 100001; }
    .myheader .sh-account .dropdown-menu li a { display: block; padding: 7px 16px; color: #242424; font-size: 14px; }

    .sh-bar-inner { display: flex; align-items: center; position: relative; height: 68px; }
    .sh-bar-inner::before, .sh-bar-inner::after { display: none; }
    .sh-nav { align-self: stretch; margin-left: 28px; }
    .sh-menu, .sh-menu > ul { height: 100%; }
    .sh-menu > ul { display: flex; }
    .sh-menu > ul > li { display: flex; align-items: center; position: relative; }
    .sh-menu .sh-top, .sh-menu .pm > a { display: flex; align-items: center; height: 100%; padding: 0 16px; }
    .sh-menu > ul > li:hover > .sh-top, .sh-menu > ul > li:hover > a, .sh-menu > ul > li:focus-within > .sh-top { color: #0B5ED7; }

    .sh-menu .sub_menu:not(.pm-panel) { position: absolute; top: 100%; left: 0; width: 220px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); visibility: hidden; opacity: 0; transition: opacity .2s; z-index: 100; }
    .sh-menu > ul > li:hover > .sub_menu:not(.pm-panel), .sh-menu > ul > li:focus-within > .sub_menu:not(.pm-panel) { visibility: visible; opacity: 1; }
    .sh-menu .sub_menu:not(.pm-panel) li { position: relative; }
    .sh-menu .sub_menu:not(.pm-panel) a { padding: 10px 16px; }
    .sh-menu .sub_menu .sub_menu { top: 0; left: 100%; }
    .sh-menu li.has_children:hover > .sub_menu, .sh-menu li.has_children:focus-within > .sub_menu { visibility: visible !important; opacity: 1 !important; }
    .sh-menu .sub_menu:not(.pm-panel) a i { float: right; margin-top: 3px; }

    .sh-menu-extra, .sh-only-small, .sh-account-icon, .sh-menu-toggle { display: none !important; }
    .sh-hero-search-visible:not(.sh-search-open) .sh-search-toggle { visibility: hidden; }

    /* Sticky elements further down the page sit below the 68px bar */
    .section_stick1 { top: 88px; }
    .section_stick1b { top: 68px; }
}

@media (max-width: 992px) {
    .sh-strip, .sh-quote-button { display: none; }
    .sh-bar-inner { display: flex; align-items: center; height: 64px; }
    .sh-bar-inner::before, .sh-bar-inner::after { display: none; }
    .sh-logo img { height: 46px; max-width: 150px; }

    .sh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px); overflow-y: auto; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 12px 24px rgba(0, 0, 0, .14); padding: 0 16px 20px; }
    .sh-menu-open .sh-nav { display: block; }
    .sh-menu > ul > li { display: block; border-bottom: 1px solid #e5e7eb; }
    .sh-menu .sh-top, .sh-menu .pm > a { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 0; }
    .sh-menu .sub_menu:not(.pm-panel) { display: none; padding: 0 0 10px; }
    .sh-menu > ul > li.open > .sub_menu:not(.pm-panel) { display: block; }
    .sh-menu .sub_menu:not(.pm-panel) a { padding: 9px 12px; }
    .sh-menu .sub_menu .sub_menu { display: block !important; padding: 0 0 0 14px !important; }
    .sh-menu .sub_menu:not(.pm-panel) a i { display: none; }

    .sh-menu-extra .sh-quote { display: block; text-align: center; margin: 16px 0; padding: 13px; }
    .sh-menu-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-weight: 600; }
    .sh-menu-row .sh-currency { height: 36px; border: 1px solid #d1d5db; padding: 0 8px; color: #242424; }
    .myheader .sh-menu-account li a { display: block; padding: 11px 0; color: #242424; font-weight: 600; }
    .sh-menu-extra .sh-phone { border-top: 1px solid #e5e7eb; padding-top: 12px; }
    .sh-menu-extra .sh-phone a { font-size: 16px; font-weight: 600; color: #0B5ED7; line-height: 1.5; }
}

@media (max-width: 360px) {
    .sh-logo img { max-width: 125px; }
    .sh-actions { gap: 2px; }
}

/* Hero areas that carry the search box (home and listing pages) */
.hero { position: relative; }
.hero--listing::after, .hero--home .carousel-inner::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .25); pointer-events: none; z-index: 1; }
.hero .hero-search, .slider_wrap.hero .slider_form { position: absolute; top: 50%; right: 0; bottom: auto; left: 0; width: 100%; padding: 0; transform: translateY(-50%); z-index: 20; }

@media (max-width: 767px) {
    .slider_wrap.hero { display: block; }
    .hero--home .carousel-inner .item img, .hero--home .carousel-video, .hero--listing .catalog-banner { width: 100%; height: 220px; max-width: none; object-fit: cover; }
}

@media print {
    .sh-strip, .sh-nav, .sh-actions, .sh-search { display: none !important; }
}
