/* Header responsive styles */

@media (max-width: 1560px) {
  #header .header-h #logo {
    max-width: 270px;
  }

  #header .header-h #nav {
    margin-inline: 0;
  }
}

@media (max-width: 1400px) {
  #header .header-h {
    padding-inline: 15px;
  }

  #header .header-h #nav > li > a {
    padding: 0;
    margin: 0;
  }

  #header .header-h #nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    row-gap: 15px;
  }
}

@media (max-width: 1300px) {
    #header .header-h #logo {
        max-width: 200px;
    }
}

@media (max-width: 1100px) {
  #header .header-h {
    flex-wrap: wrap;
    row-gap: 20px;
    padding: 20px;
    padding-bottom: 10px;
    margin: 0;
  }

  .search-a {
    flex: 1 !important;
  }

  body {
    padding-top: 183px;
  }

  .dgwt-wcas-search-wrapp {
    width: 100% !important; 
    max-width: 100% !important;
  }

  .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    padding-inline: 0;
  }
}

@media (max-width: 768px) {
  #header .header-h #nav {
    display: none;
  }

  #header .header-h .search-a {
    order: 10 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .dgwt-wcas-search-wrapp {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    padding-inline: 0 !important;
  }

  #header .header-h .header-cart-contents {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: 30px !important;
  }

  #header .header-h .header-cart-contents .cart-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
  }

  #header .header-h .header-cart-contents .cart-icon svg {
    width: 30px !important;
    height: 30px !important;
  }

  #header .header-h .header-cart-contents .cart-count {
    position: absolute !important;
    top: -3px !important;
    right: -5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #141414 !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  #header .header-h .hamburger-menu {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 6px !important;
    margin: 0 !important;
    margin-right: 10px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  #header .header-h .hamburger-menu span {
    position: relative !important;
    display: block !important;
    width: 30px !important;
    height: 3px !important;
    background: #141414 !important;
    transition: all 0.25s ease !important;
  }

  #header .header-h .hamburger-menu span::before,
  #header .header-h .hamburger-menu span::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    display: block !important;
    width: 30px !important;
    height: 3px !important;
    background: #141414 !important;
    transition: all 0.25s ease !important;
  }

  #header .header-h .hamburger-menu span::before {
    top: -8px !important;
  }

  #header .header-h .hamburger-menu span::after {
    top: 8px !important;
  }

  #mobile {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100dvh !important;
    padding: 18px 18px 14px !important;
    background: #fff !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: none;
  }

  #mobile.open {
    display: flex !important;
    flex-direction: column !important;
  }

  .hamburger-menu::before {
    content: none;
  }

  #mobile .closemob {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #000 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease !important;
  }

  #mobile .closemob:active {
    transform: scale(0.92) !important;
  }

  #mobile .closemob::before,
  #mobile .closemob::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 14px !important;
    height: 1.5px !important;
    background: #fff !important;
  }

  #mobile .closemob::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #mobile .closemob::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  #mobile > .nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #mobile > .nav > li {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  #mobile > .nav > li:first-child {
    border-top: 1px solid #e5e5e5 !important;
  }

  #mobile > .nav > li > a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    transition:
      opacity 0.2s ease,
      padding-left 0.2s ease !important;
  }

  #mobile > .nav > li > a:active {
    opacity: 0.65 !important;
  }

  #mobile > .nav > li.menu-item-has-children > a {
    padding-right: 42px !important;
  }

  #mobile .nav li.menu-item-has-children > a:before {
    opacity: 1 !important;
    transition: opacity 0.25s ease !important;
  }

  #mobile ul li.menu-item-has-children.submenu-open > a:before {
    opacity: 0 !important;
  }

  #mobile ul li.menu-item-has-children > .custom-submenu-wrapper {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      transform 0.3s ease,
      visibility 0s linear 0.4s !important;
  }

  #mobile ul li.menu-item-has-children.submenu-open > .custom-submenu-wrapper {
    display: block !important;
    max-height: 1200px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      transform 0.3s ease,
      visibility 0s linear 0s !important;
  }

  #mobile .custom-sub {
    padding: 2px 0 12px 14px !important;
    margin: 0 0 4px 4px !important;
    border-left: 1px solid #e5e5e5 !important;
    transform: translateX(-4px) !important;
    transition: transform 0.35s ease !important;
  }

  #mobile
    ul
    li.menu-item-has-children.submenu-open
    > .custom-submenu-wrapper
    .custom-sub {
    transform: translateX(0) !important;
  }

  #mobile .custom-sub .sub-menu {
    margin: 0 !important;
    padding: 0 0 4px 0 !important;
    border: 0 !important;
    list-style: none !important;
  }

  #mobile .custom-sub .sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #mobile .custom-sub .sub-menu li a {
    display: block !important;
    padding: 8px 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition:
      padding-left 0.2s ease,
      opacity 0.2s ease !important;
  }

  #mobile .custom-sub .sub-menu li a:hover {
    padding-left: 4px !important;
  }

  #mobile .custom-sub .sub-menu li a:active {
    opacity: 0.6 !important;
  }

  #mobile > .sale {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 14px 0 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    background: #141414 !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease !important;
  }

  #mobile > .sale:active {
    transform: scale(0.985) !important;
    opacity: 0.9 !important;
  }

  #mobile > .sale svg {
    width: 17px !important;
    height: 17px !important;
    margin-right: 7px !important;
    flex-shrink: 0 !important;
  }

  #mobile > .bottom {
    display: flex !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid #e5e5e5 !important;
    flex-shrink: 0 !important;
  }

  #mobile > .bottom > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease !important;
  }

  #mobile > .bottom > a:active {
    opacity: 0.55 !important;
  }

  #mobile > .bottom > a + a {
    border-left: 1px solid #e5e5e5 !important;
  }
}

@media (max-width: 480px) {
  #header .header-h #logo {
    max-width: 240px;
  }
}

@media (max-width: 400px) {
  #header .header-h #logo {
    max-width: 200px;
  }
}

body {
  padding-top: var(--mobile-header-height, 183px);
}
