/* =========================================================
   Storefront MOBILE — clean compact header (no theme absolute junk)
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
#wrapper, .main-container, #content { max-width: 100%; overflow-x: hidden; }

/* Header logo — larger, all breakpoints */
header#header.typeheader-2 .logo a {
  display: inline-block;
  line-height: 0;
}
header#header.typeheader-2 .logo img {
  max-height: 78px !important;
  width: auto !important;
  max-width: 280px !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 991px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* ===== HEADER MIDDLE: Logo + Cart | Search ===== */
  header#header.typeheader-2 .header-middle {
    padding: 10px 0 8px !important;
    background: #fff !important;
  }
  header#header.typeheader-2 .header-middle .container > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 0 !important;
  }
  header#header.typeheader-2 .navbar-logo {
    order: 1 !important;
    width: 60% !important;
    max-width: 60% !important;
    float: none !important;
    padding: 0 4px !important;
    margin: 0 !important;
  }
  header#header.typeheader-2 .logo { text-align: left !important; margin: 0 !important; }
  header#header.typeheader-2 .logo a { display: inline-block; }
  header#header.typeheader-2 .logo img {
    max-height: 64px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
  }

  header#header.typeheader-2 .middle3 {
    order: 2 !important;
    width: 40% !important;
    max-width: 40% !important;
    float: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 4px !important;
    margin: 0 !important;
    text-align: right !important;
  }
  header#header.typeheader-2 .wishlist-comp { display: none !important; }
  header#header.typeheader-2 .shopping_cart {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    background: transparent !important;
  }
  header#header.typeheader-2 .shopping_cart .btn-shopping-cart,
  header#header.typeheader-2 .shopping_cart .top_cart {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  header#header.typeheader-2 .shopping_cart .shopcart-inner { display: none !important; }
  header#header.typeheader-2 .shopping_cart .icon-c {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
    background: #f4a137 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  header#header.typeheader-2 .shopping_cart .icon-c i {
    color: #fff !important;
    font-size: 16px !important;
  }
  header#header.typeheader-2 .shopping_cart .items_cart {
    top: -4px !important;
    left: auto !important;
    right: -4px !important;
  }

  /* Search always full width under logo row — never a floating icon */
  header#header.typeheader-2 .middle2 {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 8px 4px 0 !important;
    margin: 0 !important;
  }
  header#header.typeheader-2 .search-header-w {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
  }
  header#header.typeheader-2 .search-header-w .icon-search {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
    header#header.typeheader-2 #sosearchpro,
    header#header.typeheader-2 .sosearchpro-wrapper {
      width: 100% !important;
      margin: 0 !important;
      position: relative !important;
      overflow: visible !important;
    }
    header#header.typeheader-2 #sosearchpro form {
      position: relative !important;
      overflow: visible !important;
    }
  /* Search box = one unit: input + highlighted Search button */
  header#header.typeheader-2 #sosearchpro .search,
  header#header.typeheader-2 .search-header-w #sosearchpro .search,
  header#header.typeheader-2 #search0.search {
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #f4a137 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(244, 161, 55, .18) !important;
    height: 48px !important;
  }
  header#header.typeheader-2 #sosearchpro .search .select_category {
    display: none !important;
  }
  header#header.typeheader-2 #sosearchpro .search input,
  header#header.typeheader-2 #sosearchpro .search .autosearch-input,
  header#header.typeheader-2 #sosearchpro .search .form-control {
    display: block !important;
    float: none !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    height: 44px !important;
    line-height: 44px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  header#header.typeheader-2 #sosearchpro .search .input-group-btn {
    position: relative !important;
    width: auto !important;
    flex: 0 0 auto !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
  }
  header#header.typeheader-2 #sosearchpro .search button,
  header#header.typeheader-2 #sosearchpro .search .button-search {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2 !important;
    width: auto !important;
    min-width: 108px !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f4a137 !important;
    color: #fff !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06) !important;
    cursor: pointer !important;
  }
  header#header.typeheader-2 #sosearchpro .search button:hover,
  header#header.typeheader-2 #sosearchpro .search .button-search:hover {
    background: #e0912e !important;
    color: #fff !important;
  }
  header#header.typeheader-2 #sosearchpro .search button i,
  header#header.typeheader-2 #sosearchpro .search .button-search i {
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  header#header.typeheader-2 #sosearchpro .search .em-search-btn-label {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }
  @media (max-width: 575px) {
    header#header.typeheader-2 #sosearchpro .search button,
    header#header.typeheader-2 #sosearchpro .search .button-search {
      min-width: 48px !important;
      padding: 0 12px !important;
    }
    header#header.typeheader-2 #sosearchpro .search .em-search-btn-label {
      display: none !important;
    }
  }

  /* ===== HEADER BOTTOM: compact white bar, two clear buttons ===== */
  header#header.typeheader-2 .header-bottom {
    padding: 8px 0 !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
  }
  header#header.typeheader-2 .header-bottom .container > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    gap: 8px;
  }
  header#header.typeheader-2 .bottom1,
  header#header.typeheader-2 .main-menu {
    width: auto !important;
    float: none !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  header#header.typeheader-2 .main-menu {
    margin-left: auto !important;
  }
  header#header.typeheader-2 .bottom2 { display: none !important; }
  header#header.typeheader-2 #menuHeading { display: none !important; }

  header#header.typeheader-2 .megamenu-style-dev,
  header#header.typeheader-2 .navbar-default,
  header#header.typeheader-2 .container-megamenu {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
    top: auto !important;
  }

  /* Theme hides .navbar-header by default — force visible on mobile */
  header#header.typeheader-2 .so-megamenu .navbar-header,
  header#header.typeheader-2 .navbar-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  header#header.typeheader-2 #show-verticalmenu,
  header#header.typeheader-2 .navbar-toggle#show-verticalmenu {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center !important;
    gap: 6px;
    background: #232f3e !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    line-height: 1.2 !important;
    white-space: nowrap;
    float: none !important;
    width: auto !important;
    height: auto !important;
  }
  header#header.typeheader-2 #show-verticalmenu i { color: #fff !important; }
  header#header.typeheader-2 #show-verticalmenu span { color: #fff !important; }

  header#header.typeheader-2 #show-megamenu,
  header#header.typeheader-2 .navbar-toggle#show-megamenu {
    display: inline-flex !important;
    visibility: visible !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 38px !important;
    background: #f4a137 !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    float: none !important;
  }
  header#header.typeheader-2 #show-megamenu .icon-bar {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    margin: 2px auto !important;
    background: #fff !important;
    border-radius: 1px;
  }

  /* Open slide menus */
  header#header.typeheader-2 .horizontal .megamenu-wrapper {
    display: block !important; /* keep in DOM; theme uses visibility/transform */
  }
  header#header.typeheader-2 .vertical-wrapper {
    display: block !important;
  }

  .em-product-grid > .em-col { width: 33.333% !important; }
  .related-grid .col-md-3 { width: 33.333% !important; }

  /* Reviews tab — less intrusive on tablet/phone */
  .sf-reviews-tab {
    top: auto !important;
    bottom: 80px !important;
    right: 0 !important;
    transform: none !important;
    scale: .9;
    transform-origin: right center;
  }

  /* so_megamenu used to hide ALL .fa-angle-right below 991px — keep slider next arrows visible */
  .em-cat-nav .fa-angle-right,
  .em-deals-nav .fa-angle-right,
  .em-lt-nav .fa-angle-right,
  .em-brand-nav .fa-angle-right,
  .em-banner-nav .fa-angle-right {
    display: inline-block !important;
  }
}

@media (max-width: 767px) {
  header#header.typeheader-2 .logo img {
    max-height: 58px !important;
    max-width: 200px !important;
  }
  header#header.typeheader-2 #show-verticalmenu span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .em-product-grid > .em-col { width: 50% !important; padding: 6px !important; }
  .related-grid .col-6,
  .related-grid .col-md-3 {
    width: 50% !important;
    float: left !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .product-layout .product-image-container img { height: 140px !important; }
  /* Listing tabs: equal card images (override fixed 140px) */
  .em-lt-item .product-image-container {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    overflow: hidden !important;
  }
  .em-lt-item .product-image-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
  .em-lt-viewall {
    white-space: nowrap !important;
    display: none;
  }
  .em-lt-viewall.is-active {
    display: inline-flex !important;
    align-items: center !important;
  }
  .product-layout .caption h4 { font-size: 12px; min-height: 30px; }
  .product-layout .sf-badge {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 10px !important;
    top: 6px !important;
    right: 6px !important;
  }
  .product-layout .button-group {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 6px !important;
  }
  .product-layout .button-group .btn-button,
  .product-layout .button-group button.btn-button,
  .product-layout .button-group a.btn-button {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
  }

  .em-home-banner {
    margin-bottom: 10px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .em-banner-item { display: none !important; }
  .em-banner-item.is-active { display: block !important; width: 100% !important; }
  .em-banner-img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  .em-banner-overlay {
    justify-content: flex-start !important;
    align-items: flex-end !important;
  }
  .em-banner-overlay > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .em-banner-copy {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .em-banner-nav,
  .em-promo-nav {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 40 !important;
    pointer-events: auto !important;
    background: rgba(0,0,0,.65) !important;
    color: #fff !important;
  }
  .em-banner-dots,
  .em-promo-dots {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 40 !important;
  }
  .em-banner-copy h2 { font-size: 1.2rem !important; }
  .em-banner-copy p { font-size: .85rem !important; }
  .em-promo-img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  .em-promo-overlay {
    justify-content: flex-start !important;
    align-items: flex-end !important;
  }
  .em-promo-overlay > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .em-promo-copy {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .em-promo-cta { justify-content: flex-start !important; }
  .em-promo-title { font-size: 1.4rem !important; }
  .layout-2 .banners1,
  .layout-2 .em-promo-image-banner,
  .em-promo-image-banner {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
  }
  .em-promo-image-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }
  .block-policy2 {
    display: block !important;
    padding: 10px 6px !important;
    margin: 12px 0 !important;
  }
  .block-policy2 ul { display: flex !important; flex-wrap: wrap !important; }
  .block-policy2 ul li {
    width: 50% !important;
    float: none !important;
    margin: 0 0 10px !important;
    padding: 0 6px !important;
    box-sizing: border-box;
  }
  .em-gift-special { flex-direction: column !important; text-align: center !important; }
  .em-gift-left, .em-gift-mid, .em-gift-right {
    width: 100% !important;
    justify-content: center !important;
  }
  .em-deals-week .row > [class*="col-"],
  .em-best-seller .row > [class*="col-"],
  .em-mid-slider-row > [class*="col-"] {
    width: 100% !important;
    float: none !important;
  }
  .em-bs-col { width: 50% !important; }
  .em-lt-item {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    display: flex !important;
  }
  .em-cat-slider { overflow: hidden !important; }
  .em-cat-track {
    display: flex !important;
    gap: 12px !important;
  }
  .em-cat-item {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .em-cat-nav {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .em-blog-card { width: 100% !important; }

  .sf-product-page .row > [class*="col-"],
  .row.g-4 > [class*="col-"],
  .row.g-3 > [class*="col-"],
  .row.g-5 > [class*="col-"],
  aside[class*="col-"] {
    width: 100% !important;
    float: none !important;
  }
  .sf-product-page .py-5 { padding-top: 16px !important; padding-bottom: 24px !important; }
  .sf-account-nav { margin-bottom: 14px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-container:not(.em-site-footer) { text-align: center; }
  .footer-container [class*="col-"] {
    width: 100% !important;
    float: none !important;
    margin-bottom: 14px;
  }
  footer.em-site-footer .em-footer-grid > [class*="col-"] {
    margin-bottom: 28px;
  }
  footer.em-site-footer .em-footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .sf-reviews-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 480px) {
  .block-policy2 ul li { width: 100% !important; }
  .em-banner-img {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
  .em-promo-img,
  .em-promo-image-banner-img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
  header#header.typeheader-2 #show-verticalmenu span { max-width: 72px; }
}

/* Login/Register — visible on desktop bottom bar, not covered by megamenu */
@media (min-width: 992px) {
  header#header.typeheader-2 .header-bottom {
    position: relative;
    overflow: visible !important;
  }
  header#header.typeheader-2 .header-bottom .container,
  header#header.typeheader-2 .header-bottom .container > .row {
    position: relative;
    overflow: visible !important;
  }
  header#header.typeheader-2 .bottom2 {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(-50%);
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 15px !important;
    z-index: 100 !important;
  }
  header#header.typeheader-2 .signin-w {
    display: block !important;
    visibility: visible !important;
    float: right !important;
    padding-left: 0 !important;
    position: relative;
    z-index: 101;
  }
  header#header.typeheader-2 .signin-w ul {
    margin: 0;
    padding: 0;
  }
  header#header.typeheader-2 .signin-w ul li {
    color: #666;
    font-size: 13px;
    line-height: 40px;
    white-space: nowrap;
  }
  header#header.typeheader-2 .signin-w a {
    color: #232f3e !important;
    font-weight: 600;
    position: relative;
    z-index: 102;
    pointer-events: auto !important;
  }
  header#header.typeheader-2 .signin-w a:hover:not(.em-auth-btn-solid) {
    color: #f4a137 !important;
  }
  header#header.typeheader-2 .signin-w .em-auth-btns {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    line-height: 1 !important;
  }
  header#header.typeheader-2 .signin-w .em-auth-btns .fa {
    display: none;
  }
  .em-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
  }
  .em-auth-btn-outline {
    background: #fff;
    color: #232f3e !important;
    border-color: #d1d5db;
  }
  .em-auth-btn-outline:hover {
    border-color: #f4a137;
    color: #f4a137 !important;
    background: #fffaf3;
  }
  .em-auth-btn-solid {
    background: #f4a137;
    color: #fff !important;
    border-color: #f4a137;
  }
  .em-auth-btn-solid:hover,
  header#header.typeheader-2 .signin-w a.em-auth-btn-solid:hover,
  .megamenu a.em-auth-btn-solid:hover {
    background: #e0912e;
    border-color: #e0912e;
    color: #fff !important;
  }
  header#header.typeheader-2 .signin-w .em-auth-btn {
    position: relative;
    z-index: 102;
    pointer-events: auto !important;
    cursor: pointer;
    font-family: inherit;
  }
  header#header.typeheader-2 .signin-w button.em-auth-btn {
    appearance: none;
    -webkit-appearance: none;
  }
  /* Mobile megamenu auth buttons */
  .megamenu .em-mobile-auth-btns {
    padding: 6px 12px !important;
  }
  .megamenu .em-mobile-auth-btns .em-auth-btn {
    width: 100%;
    box-sizing: border-box;
  }
  /* Leave room so menu items don't sit under Login */
  header#header.typeheader-2 .main-menu {
    padding-right: 170px !important;
    box-sizing: border-box !important;
  }
  header#header.typeheader-2 .telephone {
    display: none !important; /* keep bar clean; Track is elsewhere */
  }
  /* Hide megamenu Login/Logout on desktop — shown in signin bar */
  header#header.typeheader-2 .sf-mobile-auth-only {
    display: none !important;
  }
}

/* Fly-to-cart animation */
#sfCartIcon.cart-bump { animation: sfCartBump .45s ease; }
@keyframes sfCartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.cart-fly-item {
  position: fixed !important;
  z-index: 99999 !important;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .35);
  border: 3px solid #fff;
  background: #f4a137;
}
.cart-fly-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-fly-item .cart-fly-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #f4a137, #e0912f);
}

/* Cart page product thumb + review link */
.sf-cart-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.sf-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-cart-review-link {
  display: inline-block;
  margin-top: 4px;
  color: #f4a137 !important;
  font-weight: 600;
  text-decoration: none;
}
.sf-cart-review-link:hover { text-decoration: underline; }
.sf-cart-review-link .fa { margin-right: 3px; }

/* All Categories vertical menu — category icons */
.container-megamenu.vertical ul.megamenu > li.item-vertical > a {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.container-megamenu.vertical ul.megamenu > li.item-vertical > a .em-cat-menu-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 22px;
  margin-right: 0 !important;
  vertical-align: middle;
}
.container-megamenu.vertical ul.megamenu > li.item-vertical > a .em-cat-menu-icon.is-default {
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.container-megamenu.vertical ul.megamenu > li.item-vertical > a > span {
  flex: 1 1 auto;
  min-width: 0;
}

/* Bootstrap 5 utility used by live-search.js (theme is BS3) */
.d-none { display: none !important; }

/* Header + page live search suggestions */
#sosearchpro.so-search,
.sosearchpro-wrapper.so-search,
.sf-live-search {
  position: relative !important;
}
.sf-live-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  overflow: hidden;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}
header#header #sosearchpro .sf-live-panel {
  top: calc(100% + 4px);
}
.sf-live-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  text-decoration: none !important;
  color: #222 !important;
  border-bottom: 1px solid #f0f0f0;
}
.sf-live-item:hover,
.sf-live-item:focus {
  background: #fafafa;
  color: #222 !important;
}
.sf-live-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
}
.sf-live-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}
.sf-live-sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.sf-live-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  color: #f4a137 !important;
  background: #fafafa;
}
.sf-live-all:hover { background: #f5f5f5; }
.sf-live-empty {
  padding: 14px;
  color: #777;
  font-size: 13px;
  text-align: center;
}

/* ===== Distinct site footer ===== */
footer.em-site-footer,
.footer-container.em-site-footer {
  margin-top: 40px !important;
  background: #4b5563 !important;
  color: #f3f4f6 !important;
  border-top: 0 !important;
  position: relative;
  clear: both;
}
footer.em-site-footer .em-footer-accent {
  height: 4px;
  background: linear-gradient(90deg, #f4a137 0%, #f59e0b 45%, #ea580c 100%);
}
footer.em-site-footer .em-footer-main {
  padding: 42px 0 28px !important;
  background: transparent !important;
}
footer.em-site-footer .em-footer-grid {
  margin-bottom: 8px;
}
footer.em-site-footer .col-style {
  margin-bottom: 28px;
}
footer.em-site-footer .em-footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 14px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
footer.em-site-footer .em-footer-logo img {
  max-height: 56px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
footer.em-site-footer .em-footer-shopname {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: .02em;
}
footer.em-site-footer .em-footer-about {
  font-size: 13px;
  line-height: 1.55;
  color: #d1d5db;
  margin: 0 0 14px;
}
footer.em-site-footer .em-footer-socials {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
footer.em-site-footer .em-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #374151;
  color: #fff !important;
  border: 1px solid #9ca3af;
  font-size: 16px;
  line-height: 1;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
footer.em-site-footer .em-footer-socials a:hover {
  background: #f4a137;
  color: #111827 !important;
  border-color: #f4a137;
}
footer.em-site-footer .em-footer-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em;
  color: #fff !important;
  margin: 0 0 16px !important;
  padding: 0 0 10px !important;
  border-bottom: 2px solid #f4a137 !important;
  display: inline-block;
  min-width: 110px;
  background: none !important;
}
footer.em-site-footer .em-footer-title:after {
  display: none !important;
}
footer.em-site-footer .em-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer.em-site-footer .em-footer-list li {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #e5e7eb;
}
footer.em-site-footer .em-footer-list a {
  color: #e5e7eb !important;
  text-decoration: none !important;
}
footer.em-site-footer .em-footer-list a:hover {
  color: #f4a137 !important;
}
footer.em-site-footer .em-footer-list li:before,
footer.em-site-footer .em-footer-list a:before {
  display: none !important;
  content: none !important;
}
footer.em-site-footer .em-footer-why li {
  position: relative;
  padding-left: 14px;
}
footer.em-site-footer .em-footer-why li:before {
  content: '' !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a137;
}
footer.em-site-footer .em-footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
footer.em-site-footer .em-footer-contact i {
  color: #f4a137;
  width: 14px;
  margin-top: 2px;
  flex: 0 0 14px;
}
footer.em-site-footer .em-footer-newsletter {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #6b7280;
  border: 1px solid #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
}
footer.em-site-footer .em-footer-newsletter-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
footer.em-site-footer .em-footer-newsletter-text {
  font-size: 12px;
  color: #e5e7eb;
}
footer.em-site-footer .em-footer-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 280px;
  max-width: 420px;
  justify-content: flex-end;
}
footer.em-site-footer .em-footer-newsletter-input {
  flex: 1 1 180px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #1f2937;
}
footer.em-site-footer .em-footer-newsletter-input::placeholder {
  color: #9ca3af;
}
footer.em-site-footer .em-footer-newsletter-btn {
  height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #f4a137;
  color: #1f2937;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
footer.em-site-footer .em-footer-newsletter-btn:hover {
  background: #e0912a;
}
footer.em-site-footer .em-footer-bottom {
  background: #374151 !important;
  border-top: 1px solid #6b7280 !important;
  padding: 16px 0 !important;
}
footer.em-site-footer .em-footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
footer.em-site-footer .em-footer-copy {
  color: #d1d5db;
  font-size: 12px;
}
footer.em-site-footer .em-footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
footer.em-site-footer .em-footer-pay img {
  max-height: 28px;
  width: auto;
  opacity: .95;
}
footer.em-site-footer .back-to-top {
  background: #f4a137 !important;
  color: #1f2937 !important;
}

@media (max-width: 767px) {
  footer.em-site-footer .em-footer-main { padding: 32px 0 20px !important; text-align: left !important; }
  footer.em-site-footer .em-footer-newsletter-form { max-width: 100%; justify-content: stretch; }
  footer.em-site-footer .em-footer-newsletter-btn { width: 100%; }
}

@media (max-width: 991px) {
  .sf-cart-thumb { width: 60px; height: 60px; }
}

/* —— Header category dropdowns: compact + aligned under parent —— */
@media (min-width: 992px) {
  header#header .container-megamenu.horizontal ul.megamenu > li.with-sub-menu {
    position: relative;
  }

  header#header .container-megamenu.horizontal ul.megamenu > li > .sub-menu.sf-nav-dropdown {
    left: 0 !important;
    right: auto !important;
    top: 100%;
    width: auto !important;
    min-width: 160px;
    max-width: 220px;
    margin-top: 0;
    padding-top: 0;
    z-index: 1000;
  }

  header#header .container-megamenu.horizontal ul.megamenu > li > .sub-menu.sf-nav-dropdown .content {
    display: block;
    padding: 8px 0;
    border: 1px solid #ececec;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    background: #fff;
  }

  header#header .container-megamenu.horizontal ul.megamenu li .sub-menu.sf-nav-dropdown .sf-nav-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  header#header .container-megamenu.horizontal ul.megamenu li .sub-menu.sf-nav-dropdown .sf-nav-dropdown-list > li {
    margin: 0;
    padding: 0;
  }

  header#header .container-megamenu.horizontal ul.megamenu li .sub-menu.sf-nav-dropdown .sf-nav-dropdown-list > li > a {
    display: block;
    padding: 8px 14px;
    line-height: 1.35;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
  }

  header#header .container-megamenu.horizontal ul.megamenu li .sub-menu.sf-nav-dropdown .sf-nav-dropdown-list > li > a:hover {
    color: #f4a137;
    background: #fff8ef;
  }

  header#header .container-megamenu.horizontal ul.megamenu li .sub-menu.sf-nav-dropdown .sf-nav-dropdown-nested {
    margin: 0;
    padding: 0 0 4px;
  }

  header#header .container-megamenu.horizontal ul.megamenu li .sub-menu.sf-nav-dropdown .sf-nav-dropdown-nested > li > a {
    padding: 5px 14px 5px 22px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
  }

  /* All Categories — compact subcategory flyout (not full mega panel) */
  header#header .container-megamenu.vertical ul.megamenu > li.item-vertical {
    position: relative;
  }

  header#header .container-megamenu.vertical ul.megamenu > li > .sub-menu.sf-vert-dropdown {
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    width: auto !important;
    min-width: 180px;
    max-width: 240px;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1100;
  }

  header#header .container-megamenu.vertical ul.megamenu > li > .sub-menu.sf-vert-dropdown .content {
    display: block !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border: 1px solid #ececec;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    background: #fff;
  }

  header#header .container-megamenu.vertical ul.megamenu > li > .sub-menu.sf-vert-dropdown .content > .row {
    margin: 0;
    padding: 0;
  }

  header#header .container-megamenu.vertical ul.megamenu li .sub-menu.sf-vert-dropdown .sf-nav-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  header#header .container-megamenu.vertical ul.megamenu li .sub-menu.sf-vert-dropdown .sf-nav-dropdown-list > li {
    margin: 0;
    padding: 0;
  }

  header#header .container-megamenu.vertical ul.megamenu li .sub-menu.sf-vert-dropdown .sf-nav-dropdown-list > li > a {
    display: block;
    padding: 9px 16px;
    line-height: 1.35;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
  }

  header#header .container-megamenu.vertical ul.megamenu li .sub-menu.sf-vert-dropdown .sf-nav-dropdown-list > li > a:hover {
    color: #f4a137;
    background: #fff8ef;
  }
}
