/* Erma Shoes v4.2.7 — brand scale, sticky navigation and product-card media */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body.admin-bar .site-header {
  top: 32px;
}

.erma-nav-wrap {
  padding: 10px 0;
}

.nav {
  height: 74px;
}

.brand {
  min-width: 220px;
  height: 74px;
  padding: 5px 12px;
}

.brand img {
  width: 205px !important;
  max-width: 100%;
  max-height: 66px !important;
  object-fit: contain;
}

.erma-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  line-height: 1;
  background: transparent;
}

.erma-lockup-symbol {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}

.erma-lockup-symbol img,
.brand .erma-lockup-symbol img,
.footer-logo-panel .erma-lockup-symbol img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none !important;
  max-height: none !important;
  object-fit: initial !important;
  filter: none;
}

.erma-lockup-copy {
  display: grid;
  justify-items: center;
  white-space: nowrap;
}

.erma-lockup-copy strong {
  display: flex;
  align-items: center;
  font-family: Inter, Arial, sans-serif;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.065em;
}

.erma-lockup-copy strong i {
  font-style: inherit;
}

.erma-letter--navy { color: #263746; }
.erma-letter--red { color: #ca303d; }

.erma-lockup-copy small {
  margin-top: 4px;
  color: #ca303d;
  font-family: Inter, Arial, sans-serif;
  font-weight: 850;
  letter-spacing: .18em;
}

.erma-lockup--header {
  width: 100%;
  gap: 8px;
}

.erma-lockup--header .erma-lockup-symbol {
  width: 78px;
  height: 58px;
}

.erma-lockup--header .erma-lockup-symbol img {
  width: 194px !important;
  height: 58px !important;
}

.erma-lockup--header .erma-lockup-copy strong {
  font-size: 1.45rem;
}

.erma-lockup--header .erma-lockup-copy small {
  font-size: .36rem;
}

.erma-lockup--showcase .erma-lockup-symbol {
  width: 45px;
  height: 38px;
}

.erma-lockup--showcase .erma-lockup-symbol img {
  width: 127px !important;
  height: 38px !important;
}

.erma-lockup--showcase .erma-lockup-copy strong {
  font-size: 1.08rem;
}

.erma-lockup--showcase .erma-lockup-copy small {
  font-size: .31rem;
}

.nav-links,
.nav-links > a,
.nav-store,
.nav-shop,
.nav-tools,
.nav-tool,
.nav-tools .lang-switch,
.nav-tools .lang-switch a {
  height: 74px !important;
}

.nav-links > a {
  padding-inline: 12px;
}

.nav-store {
  background: #d36831 !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.nav-store:hover {
  background: #b94f20 !important;
}

.erma-brand-logo {
  padding: 4px 7px;
}

.erma-brand-logo:nth-child(1) img {
  transform: scale(1.16);
}

.erma-brand-logo:nth-child(2) img {
  transform: scale(1.08);
}

.erma-brand-logo:nth-child(4) img {
  transform: scale(1.42);
}

.erma-brand-logo--erma,
.erma-brand-logo--natura {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 8px;
}

.erma-brand-symbol {
  position: relative;
  flex: 0 0 47px;
  width: 47px;
  height: 42px;
  overflow: hidden;
}

.erma-brand-logo .erma-brand-symbol img {
  position: absolute;
  max-width: none !important;
  max-height: none !important;
  object-fit: initial !important;
  transform: none;
}

.erma-brand-logo--erma .erma-brand-symbol img {
  top: 0;
  left: 0;
  width: 140px !important;
  height: 42px !important;
}

.erma-brand-logo--natura .erma-brand-symbol img {
  top: -15px;
  left: -47px;
  width: 220px !important;
  height: 66px !important;
}

.erma-brand-wordmark {
  min-width: 0;
  display: grid;
  justify-items: center;
  line-height: 1;
  white-space: nowrap;
}

.erma-brand-wordmark strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: #c9323c;
}

.erma-brand-wordmark small {
  margin-top: 4px;
  font-size: .38rem;
  font-weight: 800;
  letter-spacing: .19em;
  color: #35404a;
}

.erma-brand-logo--natura .erma-brand-wordmark strong {
  font-size: .75rem;
  letter-spacing: -.035em;
  color: #589b1d;
}

.erma-brand-logo--natura .erma-brand-symbol {
  flex-basis: 34px;
  width: 34px;
}

.erma-brand-logo--natura .erma-brand-wordmark small {
  color: #589b1d;
}

.footer-logo-panel {
  width: 285px;
  min-height: 86px;
  margin-bottom: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.erma-lockup--footer {
  width: 285px;
  justify-content: flex-start;
  gap: 12px;
}

.erma-lockup--footer .erma-lockup-symbol {
  width: 92px;
  height: 70px;
}

.erma-lockup--footer .erma-lockup-symbol img {
  width: 233px !important;
  height: 70px !important;
}

.erma-lockup--footer .erma-lockup-copy strong {
  font-size: 1.8rem;
}

.erma-lockup--footer .erma-lockup-copy small {
  color: #e6e8ea;
  font-size: .44rem;
}

.erma-product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.woocommerce ul.products li.product .erma-product-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: opacity .32s ease, transform .45s ease;
}

.erma-card-image--primary {
  z-index: 2;
  opacity: 1;
}

.erma-card-image--hover {
  z-index: 1;
  opacity: 0;
}

.woocommerce ul.products li.product:hover .erma-card-image--primary,
.woocommerce ul.products li.product a:focus-visible .erma-card-image--primary {
  opacity: 0;
}

.woocommerce ul.products li.product:hover .erma-card-image--hover,
.woocommerce ul.products li.product a:focus-visible .erma-card-image--hover {
  opacity: 1;
  transform: scale(1.025);
}

.woocommerce-page:not(.home) {
  padding-top: 124px;
}

@media (max-width: 900px) {
  .brand {
    min-width: 0;
    height: 64px;
    padding: 3px 8px;
  }

  .brand img {
    width: 178px !important;
    max-height: 58px !important;
  }

  .erma-lockup--header {
    transform: scale(.88);
  }

  .nav,
  .nav-links,
  .nav-tools,
  .nav-tool,
  .nav-tools .lang-switch,
  .nav-tools .lang-switch a,
  .menu-toggle {
    height: 64px !important;
  }

  .nav-links > a,
  .nav-store,
  .nav-shop {
    height: 52px !important;
  }

  .woocommerce-page:not(.home) {
    padding-top: 114px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 155px !important;
    max-height: 54px !important;
  }

  .erma-brand-logo:nth-child(1) img {
    transform: scale(1.12);
  }

  .erma-brand-logo:nth-child(4) img {
    transform: scale(1.3);
  }

  .erma-brand-logo--erma,
  .erma-brand-logo--natura {
    gap: 4px;
    padding-inline: 5px;
  }

  .erma-lockup--showcase {
    transform: scale(.88);
  }

  .erma-brand-symbol {
    flex-basis: 38px;
    width: 38px;
    transform: scale(.88);
  }

  .erma-brand-wordmark strong {
    font-size: .82rem;
  }

  .erma-brand-logo--natura .erma-brand-wordmark strong {
    font-size: .68rem;
  }

  .erma-brand-wordmark small {
    font-size: .3rem;
  }

  .woocommerce-page:not(.home) {
    padding-top: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product .erma-product-card-media img {
    transition: none;
  }
}

/* v4.2.12 — direct product grid and naturally scrolling category tree */
.woocommerce-shop .erma-category-sidebar,
.tax-product_cat .erma-category-sidebar {
  position: static !important;
  top: auto !important;
  align-self: start;
}

.woocommerce-shop .erma-shop,
.tax-product_cat .erma-shop {
  padding-top: 42px;
}
