/* JTS v5.10.2 — storefront consistency and UX polish */
@media (min-width:981px){
  /* A more compact retail header without changing the stable mega-menu mechanics. */
  #jts-header .jts-header__inner{min-height:72px!important;gap:26px!important;}
  #jts-header .jts-brand__logo{width:min(var(--jts-header-logo-width,180px),180px)!important;max-height:142px!important;object-fit:contain!important;}
  #jts-nav>a,#jts-nav a{padding-top:24px;padding-bottom:22px;}
  #jts-nav>a::after,#jts-nav a::after{bottom:17px;}

  /* Every desktop parent item gets the same clear dropdown cue. */
  #jts-nav > ul > li.menu-item-has-children > a{display:flex!important;align-items:center!important;gap:7px!important;}
  #jts-nav > ul > li.menu-item-has-children > a::before{
    content:"";width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;
    transform:rotate(45deg) translateY(-2px);order:-1;opacity:.8;transition:transform .18s ease;
  }
  #jts-nav > ul > li.menu-item-has-children:hover > a::before,
  #jts-nav > ul > li.jts-mega-open > a::before{transform:rotate(225deg) translate(-1px,-1px);}

  /* Standard account dropdown uses the same visual language as the Shop panel. */
  #jts-nav > ul > li.menu-item-has-children:not(.jts-mega-menu) > ul.sub-menu{
    top:calc(100% + 4px)!important;min-width:240px!important;padding:10px!important;border-radius:18px!important;
    border:1px solid rgba(31,61,46,.13)!important;box-shadow:0 22px 55px rgba(20,45,33,.16)!important;
  }
  #jts-nav > ul > li.menu-item-has-children:not(.jts-mega-menu) > ul.sub-menu > li > a{
    min-height:48px!important;display:flex!important;align-items:center!important;padding:11px 14px!important;border-radius:12px!important;
  }
}

/* Search: the live-results viewport is the only scrolling element. */
#jts-search-panel .jts-search-panel__inner,
#jts-search-panel .jts-search,
#jts-live-search .jts-live-search__results{overflow:visible!important;max-height:none!important;}
#jts-live-search{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;}
#jts-live-search .jts-live-search__results{border:0!important;border-radius:0!important;box-shadow:none!important;}

/* Product-card controls share a consistent anchor and hit area. */
#jts-main .jts-product-card__media-actions{top:14px!important;right:14px!important;left:auto!important;bottom:auto!important;display:flex!important;flex-direction:column!important;gap:8px!important;align-items:center!important;}
#jts-main .jts-product-card__media-actions > *,
#jts-main button.jts-product-card__quick,
#jts-main [data-jts-wishlist]{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;}
.woocommerce .woocommerce-ordering select{min-height:48px!important;padding:0 44px 0 18px!important;line-height:48px!important;}

/* Keep archive rhythm balanced around category shortcuts, result count and sorting. */
.jts-archive-main .jts-category-links,.jts-category-children,.jts-subcategory-grid{margin-bottom:22px!important;}
.woocommerce .woocommerce-result-count{margin-top:8px!important;margin-bottom:18px!important;}

/* One continuous footer colour behind the contained footer content. */
#jts-footer{background-color:var(--jts-forest)!important;}
#jts-footer .jts-footer__content,#jts-footer .jts-wrap{background:transparent!important;}

/* Contextually unavailable filter choices are visibly unavailable, not misleading. */
.jts-filter-option.jts-filter-option--unavailable{opacity:.42;cursor:not-allowed;}
.jts-filter-option.jts-filter-option--unavailable input{cursor:not-allowed;}
