/* Shared public header, category flyouts, and page banners. */
.site-header {
  --header-green: #8ec63f;
  --header-navy: #101f2b;
  --header-panel: #172d3b;
}

.site-header .header-actions .cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding: 0 !important;
}
.site-header .header-actions .cart-link .header-cart-entry {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 38px;
  gap: 6px;
}
.site-header .header-actions .cart-link .header-cart-entry b {
  position: absolute;
  inset: -1px auto auto 10px;
  margin: 0;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  border-radius: 10px;
  background: var(--header-green) !important;
  color: var(--header-navy) !important;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.site-header .header-actions .cart-link .header-cart-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--header-green);
  border-radius: 8px;
  padding: 4px 8px;
}
.site-header .header-actions .cart-link .header-cart-summary i { font-size: 1.15rem; }
.site-header .header-actions .cart-link .header-cart-summary small,
.site-header .header-actions .cart-link .header-cart-summary strong { display: block; line-height: 1.15; }
.site-header .header-actions .cart-link .header-cart-summary small { color: #edf5f6; font-size: .64rem; }
.site-header .header-actions .cart-link .header-cart-summary strong { color: #b3e678; font-size: .83rem; }

.wpro-cart-feedback {
  position: fixed;
  z-index: 1090;
  inset: auto 18px 18px auto;
  max-width: min(390px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 6px;
  background: #172d3b;
  color: #fff;
  box-shadow: 0 4px 18px #101f2b45;
}
.wpro-cart-feedback:empty { padding: 0; }

.wpro-menu-root-icon,
.wpro-menu-root-count,
.wpro-menu-illustration { display: none; }
.wpro-menu-count {
  border-radius: 20px;
  background: #294c17;
  color: #fff;
  min-width: 28px;
  padding: 2px 5px;
  text-align: center;
  line-height: 1.15;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wpro-menu-children a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--header-navy);
}
.wpro-menu-children li:not(:has(>details)) > a { padding-right: 8px; }

@media (min-width:992px) {
  #marketCategories>.wpro-menu-group:has(>button[aria-expanded=true]) { background: var(--header-green); border-radius: 5px 5px 0 0; }
  #marketCategories>.wpro-menu-group:has(>button[aria-expanded=true])>:is(a,button) { color: var(--header-navy); }
  #marketCategories .wpro-menu-panel {
    width: min(475px, calc(100vw - 24px));
    background: linear-gradient(125deg,#c5ee7a,#9ad84f 62%,#8ec63f);
    border: 1px solid #78ac35;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 16px 34px #101f2b58;
    padding: 10px 14px 14px;
  }
  #marketCategories .wpro-menu-panel-reels { width: min(635px, calc(100vw - 24px)); }
  .wpro-menu-panel .wpro-menu-overview {
    color: var(--header-navy);
    border-color: #101f2b30;
    font-weight: 800;
  }
  .wpro-menu-panel .wpro-menu-overview:hover { background: #ffffff45; }
  .wpro-menu-panel .wpro-menu-children { gap: 2px 14px; }
  .wpro-menu-panel .wpro-menu-children a { font-weight: 650; }
  .wpro-menu-panel .wpro-menu-children a:hover,
  .wpro-menu-panel .wpro-menu-children summary:hover { background: #ffffff55; color: var(--header-navy); }
  .wpro-menu-panel .wpro-menu-children details ul { border-color: #101f2b30; }
  .wpro-menu-panel-reels > :is(.wpro-menu-overview,.wpro-menu-children) { margin-right: clamp(100px, 15vw, 186px); }
  .wpro-menu-panel-reels .wpro-menu-illustration {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(100px, 15vw, 186px);
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  #marketCategories .wpro-menu-panel :focus-visible { outline-color: var(--header-navy); }
}
@media (max-width:991.98px) {
  .site-header .header-actions .cart-link .header-cart-summary,
  .site-header .header-actions .cart-link .header-cart-entry > span { display: none !important; }
  .site-header .header-actions .cart-link .header-cart-entry { min-height: 44px; min-width: 32px; justify-content: center; }
  .site-header .header-actions .cart-link .header-cart-entry b { inset: 1px 1px auto auto; }

  #marketCategories > .nav-all { background: #2e531d !important; color: #fff !important; }
  #marketCategories .wpro-menu-group {
    margin-block: 2px;
    border: 1px solid #dbe5d3;
    background: #f6f8f6;
    border-radius: 6px;
  }
  #marketCategories .wpro-menu-group:has(>button[aria-expanded=true]) > :is(.nav-category-link,button) { background: #d5ebbd; color: var(--header-navy); }
  #marketCategories .wpro-menu-group > .nav-category-link { gap: 8px; }
  .wpro-menu-root-icon { display: inline-block; width: 1.1em; color: #365d24; }
  .wpro-menu-root-count { display: inline-block; margin-left: auto; background: #dce8d6; color: #1c3619; }
  .wpro-menu-panel .wpro-menu-count { background: #dce8d6; color: #1c3619; }
}

body .wpro-page-banner {
  --page-shade: linear-gradient(90deg,#101f2bf0 0%,#101f2bc4 30%,#101f2b2b 75%);
  isolation: isolate;
  color: #fff;
  background: var(--page-shade), var(--page-art) center / cover no-repeat, #101f2b !important;
  padding-block: clamp(46px,7vw,100px);
}
body .wpro-page-banner::before,
body .wpro-page-banner::after { content: none; }
body .wpro-page-banner h1 { color: #fff !important; }
body .wpro-page-banner p { max-width: 64ch; color: #edf4f6 !important; }
.wpro-page-banner-bundles { --page-art: url("../img/headers/page-hero-bundles-2026.webp"); }
.wpro-page-banner-seller { --page-art: url("../img/headers/page-hero-seller-2026.webp"); }
.wpro-page-banner-tpay { --page-art: url("../img/headers/page-hero-tpay-2026.webp"); }
.wpro-page-banner-blog {
  --page-art: url("../img/headers/page-hero-blog-2026.webp");
  --page-shade: linear-gradient(270deg,#101f2bf3,#101f2ba6 44%,#101f2b05 78%) !important;
}
@media (min-width:992px) {
  .wpro-page-banner-blog > .container { padding-left: min(46vw, 595px); }
  .wpro-page-banner-seller > .container > div { max-width: min(62%, 690px); }
  .wpro-page-banner-tpay h1, .wpro-page-banner-tpay p { max-width: min(59%, 690px) !important; }
}
@media (max-width:991.98px) {
  body .wpro-page-banner { --page-shade: linear-gradient(90deg,#101f2be8,#101f2b99) !important; }
}
