/* Cabeçalhos das páginas internas e arquivos da loja. */
.nova-page-header {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-top: 1px solid #ece9e5;
  border-bottom: 1px solid #ece9e5;
  background: linear-gradient(135deg, #faf9f7 0%, #f3f0ec 100%);
}

.nova-page-header::before,
.nova-page-header::after {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.nova-page-header::before {
  top: -105px;
  left: 7%;
}

.nova-page-header::after {
  right: 8%;
  bottom: -125px;
}

.nova-page-header .row {
  position: relative;
  z-index: 1;
  width: 100%;
}

.nova-page-header .nova-page-header__inner {
  padding: 52px 24px;
  text-align: center;
}

.nova-page-header .nova-page-header__inner .page-title {
  margin: 0;
  color: #171717;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.nova-page-header .breadcrumb,
.nova-page-header .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #777;
  font-size: 0.8125rem;
}

.nova-page-header .breadcrumb a,
.nova-page-header .woocommerce-breadcrumb a {
  color: #444;
}

.nova-page-header .breadcrumb a:hover,
.nova-page-header .woocommerce-breadcrumb a:hover {
  color: #000;
}

/* Versão compacta usada quando o cabeçalho aparece dentro do conteúdo. */
.page-header-content {
  margin-bottom: 34px;
  padding: 30px 24px;
  border: 1px solid #ece9e5;
  background: #faf9f7;
  text-align: center;
}

.page-header-content h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
}

.page-header-content .breadcrumb,
.page-header-content .woocommerce-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
}

@media (max-width: 767px) {
  .nova-page-header {
    min-height: 150px;
  }

  .nova-page-header::before,
  .nova-page-header::after {
    width: 120px;
    height: 120px;
  }

  .nova-page-header .nova-page-header__inner {
    padding: 34px 18px;
  }

  .nova-page-header .nova-page-header__inner .page-title {
    font-size: 2.15rem;
  }

  .page-header-content {
    margin-bottom: 24px;
    padding: 24px 18px;
  }
}
/* Keep the store navigation available while the page scrolls. */
#masthead,
.header-mobiles-wrapper {
  position: sticky;
  top: 0;
  z-index: 998;
}

@media (min-width: 1280px) {
  #masthead {
    background-color: #fff !important;
  }

  /* The same full menu is assigned to both desktop positions on the cart.
     Keep one copy so it does not wrap over the page heading. */
  body.woocommerce-cart #masthead .header-secondary-nav {
    display: none !important;
  }

  body.woocommerce-cart #masthead .header-primary-nav .nav-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

/* The product summary starts directly at the price/options. */
.single-product .product .entry-summary .woocommerce-product-details__short-description {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.admin-bar #masthead,
.admin-bar .header-mobiles-wrapper {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #masthead,
  .admin-bar .header-mobiles-wrapper {
    top: 46px;
  }
}

/* Make the desktop category cards more compact. */
@media (min-width: 768px) {
  body.home article [data-id="29b0413"] .elementor-slides-wrapper,
  body.home article [data-id="29b0413"] .elementor-slides,
  body.home article [data-id="29b0413"] .swiper-wrapper,
  body.home article [data-id="29b0413"] .swiper-slide,
  body.home article [data-id="29b0413"] .swiper-slide-inner {
    height: 380px !important;
    min-height: 380px !important;
  }
}


/* Categorias da loja no mobile: faixa de "pílulas" com rolagem horizontal
   (mesmo padrão da navegação Black, na paleta clara do tema). */
@media (max-width: 767px) {
  .elementor-widget-sidebar .widget:has(> .wc-block-product-categories.is-list) {
    margin: 0;
    padding: 0;
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list {
    margin: 0;
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list::before {
    display: block;
    margin-bottom: 12px;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    content: "Categorias";
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list > .wc-block-product-categories-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list > .wc-block-product-categories-list::-webkit-scrollbar {
    display: none;
  }

  /* Subcategorias entram na mesma faixa. */
  .elementor-widget-sidebar .wc-block-product-categories.is-list .wc-block-product-categories-list-item,
  .elementor-widget-sidebar .wc-block-product-categories.is-list .wc-block-product-categories-list .wc-block-product-categories-list {
    display: contents;
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list .wc-block-product-categories-list-item > a {
    display: block;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid #dcd7d0;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list .wc-block-product-categories-list-item > a:active {
    border-color: #171717;
    background: #171717;
    color: #fff;
  }

  .elementor-widget-sidebar .wc-block-product-categories.is-list .wc-block-product-categories-list-item-count,
  .elementor-widget-sidebar .wc-block-product-categories.is-list .wc-block-product-categories-list-item:has(> a[href*="/uncategorized/"]) {
    display: none;
  }
}
