/*
 * UNIMERCE v1.5 Patch 015
 * Mobile homepage header / slideshow separation and strict 3:4 mobile hero ratio.
 * Scope intentionally targets the homepage hero only so inner page headers remain unchanged.
 */

@media (max-width: 991.98px) {
  body.unimerce-storefront-v2 {
    padding-top: 0 !important;
  }

  body.unimerce-storefront-v2 .um-header-v2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 1050 !important;
    clear: both !important;
    background: #fff !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.unimerce-storefront-v2 .um-topbar {
    display: none !important;
  }

  body.unimerce-storefront-v2 .um-mainbar {
    position: relative !important;
    z-index: 2 !important;
    background: #fff !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    box-shadow: 0 1px 0 rgba(222, 210, 195, .92) !important;
  }

  body.unimerce-storefront-v2 .um-mainbar .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.unimerce-storefront-v2 .um-mobile-brand-row {
    width: 100%;
  }

  body.unimerce-storefront-v2 .um-catbar {
    display: none !important;
  }

  body.unimerce-storefront-v2 main {
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child {
    display: block !important;
    position: relative !important;
    clear: both !important;
    width: 100% !important;
    aspect-ratio: auto !important;
    height: calc(100vw * 4 / 3) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .container-fluid,
  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-grid {
    height: 100% !important;
    min-height: 0 !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: end !important;
    align-items: end !important;
    gap: 12px !important;
    padding: 22px 0 !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-copy {
    align-self: end !important;
    max-width: 100% !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-kicker {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-copy h1 {
    font-size: clamp(26px, 7.2vw, 38px) !important;
    line-height: 1.06 !important;
    margin: 0 0 10px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-copy p {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-btn {
    min-height: 42px !important;
    width: 100% !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .um-hero-size-guide {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  body.unimerce-storefront-v2 .um-search {
    margin-top: 10px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child {
    height: calc(100vw * 4 / 3) !important;
  }

  body.unimerce-storefront-v2 main > .um-home-hero:first-child .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
