/* Home rebrand modules */
.salin-home-rebrand,
.salin-home-section {
  width: 100%;
  max-width: 1240px;
  margin: 18px auto;
}

.salin-home-rebrand {
  border: 1px solid #e8edf5;
  background: linear-gradient(135deg, #ffffff 0%, #fff6ef 45%, #f6fbff 100%);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.salin-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--salin-primary-strong);
}

.salin-home-rebrand h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.salin-home-rebrand p {
  margin: 0;
  max-width: 66ch;
}

.salin-home-rebrand__cta {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--salin-primary), var(--salin-primary-strong));
}

.salin-home-rebrand__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.salin-home-rebrand__badges span {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  color: #12574f;
  background: #d9f4ef;
}

.salin-home-section {
  padding: 4px 2px;
}

.salin-home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.salin-home-section__head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.salin-home-section__head a {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.salin-home-section .woocommerce ul.products li.product {
  border-radius: 14px;
}

.salin-home-section--categories .product-category {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
}

/* Unify top-home alignment (search + hero banner + rebrand blocks). */
.home .elementor-top-section > .elementor-container,
.home .elementor-section-boxed > .elementor-container,
.home .e-con-boxed > .e-con-inner {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.home .dgwt-wcas-search-wrapp,
.home .dgwt-wcas-search-form {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.home .elementor-widget-image img {
  max-width: 100%;
  height: auto;
}

/* Hide legacy partner/external sections at CSS layer (works even with delayed JS). */
.home .elementor-top-section:has(a[href*="s.shopee.com.br"]),
.home .elementor-top-section:has(a[href*="/parceiros/?out="]),
.home .elementor-section:has(a[href*="s.shopee.com.br"]),
.home .elementor-section:has(a[href*="/parceiros/?out="]),
.home .elementor-element.e-con:has(a[href*="s.shopee.com.br"]),
.home .elementor-element.e-con:has(a[href*="/parceiros/?out="]),
.home .elementor-widget-image-box:has(a[href*="s.shopee.com.br"]),
.home .elementor-widget-image-box:has(a[href*="/parceiros/?out="]) {
  display: none !important;
}

/* Header realignment: menu | search | account */
#masthead .elementor-element-5437666 {
  display: none !important;
}

#masthead .elementor-element-0f3feda > .e-con-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

#masthead .elementor-widget-navigation-menu {
  flex: 1 1 0;
  min-width: 0;
}

#masthead .elementor-element-1886830 {
  flex: 0 1 clamp(240px, 24vw, 360px);
  max-width: 360px;
  width: 100%;
  min-width: 220px;
}

#masthead .elementor-element-1886830 .dgwt-wcas-search-wrapp,
#masthead .elementor-element-1886830 .dgwt-wcas-search-form {
  width: 100% !important;
  max-width: 100% !important;
}

/* Desktop search bar: slight height refinement. */
#masthead .elementor-element-1886830 .dgwt-wcas-sf-wrapp {
  min-height: 50px;
}

#masthead .elementor-element-1886830 .dgwt-wcas-search-input {
  height: 50px;
  line-height: 50px;
  padding-top: 0;
  padding-bottom: 0;
}

#masthead .elementor-element-1886830 .dgwt-wcas-search-submit {
  min-width: 58px;
  height: 50px;
  background: #fd6c1d !important;
  border-left: 0 !important;
}

#masthead .elementor-element-1886830 .dgwt-wcas-search-submit::before {
  display: none !important;
}

#masthead .elementor-element-1886830 .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier,
#masthead .elementor-element-1886830 .dgwt-wcas-search-submit svg path {
  fill: #ffffff !important;
}

#masthead .elementor-element-9af4d59 {
  flex: 0 0 auto;
}

#masthead .hfe-nav-menu .menu-item a {
  white-space: nowrap;
}

#masthead .salin-mobile-search-trigger {
  display: none;
  width: 46px;
  height: 46px;
  min-width: 46px !important;
  min-height: 46px !important;
  border: 1px solid #e6eaf0;
  border-radius: 50% !important;
  background: #fff;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  line-height: 1 !important;
}

#masthead .salin-mobile-search-trigger svg {
  width: 22px;
  height: 22px;
  fill: #fd6c1d;
}

.salin-mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.45);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.salin-mobile-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.salin-mobile-search-dialog {
  width: min(94vw, 420px);
  margin: 72px auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.22);
  padding: 16px 12px 14px;
  position: relative;
}

.salin-mobile-search-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.salin-mobile-search-body .elementor-element-1886830 {
  width: 100% !important;
  max-width: 100% !important;
}

.salin-mobile-search-body .dgwt-wcas-search-input {
  height: 48px;
  border-radius: 999px;
  border: 1px solid #dde4ee;
}

.salin-mobile-search-body .dgwt-wcas-search-submit {
  height: 48px;
  background: #fd6c1d !important;
  border-left: 0 !important;
}

.salin-mobile-search-body .dgwt-wcas-search-submit::before {
  display: none !important;
}

.salin-mobile-search-body .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier,
.salin-mobile-search-body .dgwt-wcas-search-submit svg path {
  fill: #fff !important;
}

body.salin-search-overlay-open {
  overflow: hidden;
}

/* Hero best-practice proportion (less height, stronger scanability). */
.home .elementor-element-ff82e37 .swiper-slide-inner {
  display: block;
  aspect-ratio: 1240 / 360;
  overflow: hidden;
  border-radius: 16px;
}

.home .elementor-element-ff82e37 .swiper-slide-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* New category cards rendered by PHP helper. */
.salin-cats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.salin-cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e9edf3;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.salin-cat-card:hover {
  transform: translateY(-2px);
  border-color: #ffd9c3;
  box-shadow: 0 12px 22px rgba(16, 24, 40, 0.1);
}

.salin-cat-card__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.salin-cat-card__title {
  color: #1b1f24;
  font-size: 0.95rem;
  line-height: 1.3;
}

.salin-cat-card__count {
  margin-top: auto;
  font-size: 0.78rem;
  color: #667085;
}

@media (max-width: 991px) {
  .salin-home-rebrand,
  .salin-home-section {
    width: calc(100% - 20px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .salin-cats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #masthead .elementor-element-0f3feda > .e-con-inner {
    gap: 8px;
  }

  #masthead .hfe-nav-menu > ul {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 767px) {
  .salin-home-rebrand {
    padding: 14px;
    border-radius: 14px;
  }

  .home .elementor-top-section > .elementor-container,
  .home .elementor-section-boxed > .elementor-container,
  .home .e-con-boxed > .e-con-inner {
    padding-left: 8px;
    padding-right: 8px;
  }

  .salin-home-rebrand h2 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .salin-home-rebrand p {
    font-size: 0.95rem;
  }

  .salin-home-rebrand__cta {
    width: 100%;
    justify-content: center;
  }

  .salin-cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .salin-cat-card {
    min-height: 110px;
    padding: 12px;
  }

  .home .elementor-element-ff82e37 .swiper-slide-inner {
    aspect-ratio: 1140 / 433;
    border-radius: 12px;
  }

  .home .elementor-element-ff82e37 .swiper-slide-image {
    height: auto !important;
    object-fit: contain;
  }

  #masthead .elementor-element-1886830 {
    display: none !important;
  }

  #masthead .elementor-widget-navigation-menu {
    flex: 0 0 auto;
  }

  #masthead .elementor-element-0f3feda > .e-con-inner {
    position: relative;
    gap: 10px;
    padding-left: 10px;
    padding-right: 12px;
  }

  #masthead .elementor-element-9af4d59 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: 10px !important;
    padding-right: 0 !important;
    justify-content: flex-end;
  }

  #masthead .elementor-element-9af4d59 .elementor-icon-list-items {
    display: flex;
    gap: 8px;
    margin: 0;
    justify-content: flex-end;
  }

  #masthead .elementor-element-9af4d59 .elementor-icon-list-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
  }

  #masthead .elementor-element-9af4d59 .salin-hide-on-mobile {
    display: none !important;
  }

  #masthead .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
    padding: 6px 0;
    z-index: 120;
  }

  #masthead .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    display: block !important;
    width: 100% !important;
  }

  #masthead .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li {
    display: block;
    width: 100%;
  }

  #masthead .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal .hfe-menu-item,
  #masthead .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal .hfe-sub-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px !important;
    line-height: 1.3;
  }

  #masthead .hfe-nav-menu__breakpoint-tablet .salin-account-menu-item .hfe-menu-item {
    font-weight: 700;
    border-top: 1px solid #eef1f5;
    margin-top: 6px;
  }

  #masthead .salin-mobile-search-trigger.is-visible {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  #masthead .elementor-element-0f3feda > .e-con-inner {
    justify-content: space-between;
  }
}

@media (min-width: 1025px) {
  #masthead .hfe-nav-menu,
  #masthead .hfe-nav-menu > ul {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
  }

  #masthead .hfe-nav-menu > ul > li > a.hfe-menu-item {
    font-size: 16px;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  #masthead .elementor-element-1886830 {
    flex-basis: clamp(220px, 22vw, 320px);
    max-width: 320px;
    min-width: 200px;
  }

  #masthead .hfe-nav-menu > ul > li > a.hfe-menu-item {
    font-size: 15px;
  }

  #masthead .elementor-element-0f3feda > .e-con-inner {
    gap: 10px;
  }
}
