﻿/* Header fixes: mobile search bar and mobile product dropdown. */
@media screen and (max-width: 1024px) {
  header {
    min-height: 60px;
    background: rgba(0, 0, 0, .36);
  }

  header.ny {
    min-height: 60px;
  }

  header .am-container {
    position: relative;
    height: 60px;
  }

  header .menu nav {
    top: 0;
  }

  .nav-warp {
    background: transparent;
    pointer-events: none;
    z-index: 100000;
  }

  .nav-warp .am-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 36px;
    text-align: center;
    opacity: 1;
    text-shadow: none;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  }

  header .menu nav .ulnav {
    width: 100%;
    padding-bottom: 70px;
    box-sizing: border-box;
  }

  header .menu nav .ulnav > li {
    text-align: center;
  }

  header .menu nav .ulnav > li > .subnav.show {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    text-align: center;
  }

  header .menu nav .ulnav > li > .subnav.show > .second-li {
    padding: 0;
    text-align: center;
  }

  header .menu nav .ulnav > li > .subnav.show > .second-li > a {
    padding: 12px 14px;
    text-align: center;
    color: #666;
    background: #fff;
  }

  .searbtn {
    display: block;
    position: absolute;
    right: 47px;
    top: 7px;
    z-index: 100001;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .searbtn a {
    display: block;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }

  .searbtn img {
    display: none;
  }

  .searbtn a:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 11px;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
  }

  .searbtn a:after {
    content: "";
    position: absolute;
    left: 26px;
    top: 26px;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
  }

  header .am-container > .searchb {
    display: none !important;
    position: absolute;
    top: 14px;
    right: 50px;
    left: auto;
    width: 128px;
    height: auto;
    margin: 0;
    z-index: 100002;
  }

  header .am-container > .searchb.is-open {
    display: block !important;
  }

  header:has(nav.active) .searbtn,
  header:has(nav.active) .am-container > .searchb {
    display: none !important;
  }

  header .am-container > .searchb .seac {
    max-width: none;
    margin: 0;
    position: relative;
  }

  header .am-container > .searchb .seac input {
    display: block;
    width: 100%;
    height: 30px;
    padding: 0 32px 0 10px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    color: #222;
    font-size: 12px;
    outline: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  }

  header .am-container > .searchb .seac input::placeholder {
    color: #8b8b8b;
  }

  header .am-container > .searchb .seac .serbtn {
    position: absolute;
    right: 2px;
    top: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 0;
  }

  header .am-container > .searchb .seac .serbtn:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 12px;
    height: 12px;
    border: 2px solid #222;
    border-radius: 50%;
    box-sizing: border-box;
  }

  header .am-container > .searchb .seac .serbtn:after {
    content: "";
    position: absolute;
    left: 17px;
    top: 16px;
    width: 7px;
    height: 2px;
    background: #222;
    transform: rotate(45deg);
    transform-origin: left center;
  }

  .warpbg {
    display: none !important;
  }

  header .menu nav .ulnav > li.product-center-menu .subnav.show .fl_left {
    position: static;
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    padding: 0 14px 8px;
    background: #68737f;
    box-sizing: border-box;
    text-align: center;
  }

  header .menu nav .ulnav > li.product-center-menu .subnav.show .fl_left ol {
    padding: 0;
  }

  header .menu nav .ulnav > li.product-center-menu .subnav.show .fl_left ol dd {
    float: none;
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    text-align: center;
  }

  header .menu nav .ulnav > li.product-center-menu .subnav.show .fl_left ol dd a {
    padding: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    text-align: center;
  }


  header .menu nav .ulnav > li.product-center-menu .subnav.show .second-li > .am-icon-angle-right {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  header .logo img {
    max-width: 210px;
  }
}
