/* Ahan123 V14. Scoped exclusively to Vue category/price content. */
.ahan-catalog-v8 .catalog-action-button__icon--custom {
  display:grid!important;
  place-items:center;
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  border-radius:12px;
  position:relative;
  overflow:hidden;
}
.ahan-catalog-v8 .catalog-action-button__icon--custom svg {
  display:block;
  width:25px!important;
  height:25px!important;
  overflow:visible;
}
.ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:49px!important;
  min-height:49px;
  padding:0 14px!important;
  border-radius:15px;
  white-space:nowrap;
  font-size:12px;
  font-weight:850;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button--excel{
  color:#116a55!important;
  border:1px solid #a8dfc5!important;
  background:linear-gradient(145deg,#fff,#ecfbf3)!important;
  box-shadow:0 6px 17px rgba(18,132,92,.09);
}
.ahan-catalog-v8 .catalog-action-button--excel .catalog-action-button__icon--custom {
  color:#07855f;
  background:linear-gradient(150deg,#e6fbef,#c7efda);
  box-shadow:inset 0 1px rgba(255,255,255,.9);
}
.ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button--print{
  color:#155a72!important;
  border:1px solid #badfec!important;
  background:linear-gradient(145deg,#fff,#ecf8fd)!important;
  box-shadow:0 6px 17px rgba(23,105,151,.08);
}
.ahan-catalog-v8 .catalog-action-button--print .catalog-action-button__icon--custom{
  color:#147a9c;
  background:linear-gradient(150deg,#eafaff,#d4f0fc);
  box-shadow:inset 0 1px rgba(255,255,255,.9);
}
.ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(14,79,88,.15);
}
.ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button:active{transform:translateY(0)}
.ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button:focus-visible{
  outline:3px solid #f6c343;outline-offset:3px;
}
.ahan-catalog-v8 .mobile-price-sticky-tools{display:none}
@media(max-width:900px){
  /* After making WordPress's primary header sticky, local category navigation
     must not overlap it or the price tools. The row remains swipeable. */
  .ahan-catalog-v8 .category-nav,
  .ahan-catalog-v8 .category-nav--v3{
    position:relative!important;
    top:auto!important;
    z-index:auto!important;
    display:flex;
    width:100%;
    max-width:100vw;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .ahan-catalog-v8 .category-nav>a,
  .ahan-catalog-v8 .category-nav>button{
    flex:0 0 auto;
    scroll-snap-align:start;
  }
  /* Premium, single sticky mobile action region beneath the WordPress header. */
  .ahan-catalog-v8 .mobile-price-sticky-tools{
    display:flex;
    flex-direction:column;
    direction:rtl;
    position:sticky!important;
    top:var(--ahan-sticky-header-height,89px)!important;
    z-index:9000;
    gap:8px;
    margin:0 8px 11px;
    padding:8px;
    background:rgba(255,255,255,.96);
    border:1px solid #e2eaf0;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(18,53,75,.13),inset 0 1px rgba(255,255,255,.8);
    -webkit-backdrop-filter:blur(17px);
    backdrop-filter:blur(17px);
    isolation:isolate;
    max-width:calc(100vw - 16px);
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__primary{
    display:grid;
    grid-template-columns:minmax(0,1fr) 101px;
    gap:8px;
    align-items:stretch;
  }
  .ahan-catalog-v8 .mobile-price-call{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    min-height:54px;
    padding:6px 9px;
    direction:rtl;
    border-radius:14px;
    background:linear-gradient(125deg,#123c59,#05283e);
    border:1px solid #26536a;
    color:#fff!important;
    text-decoration:none!important;
    box-shadow:0 7px 16px rgba(6,42,65,.2),inset 0 1px rgba(255,255,255,.12);
  }
  .ahan-catalog-v8 .mobile-price-call__icon{
    display:grid;place-items:center;
    width:38px;height:38px;flex:0 0 38px;
    border-radius:12px;
    background:linear-gradient(140deg,#ffedb9,#ffc62d);
    border:1px solid #f4b916;
    color:#163850;
    box-shadow:inset 0 1px #fff8e2,0 4px 9px rgba(5,37,56,.18);
  }
  .ahan-catalog-v8 .mobile-price-call__icon svg{width:21px;height:21px;stroke-width:2.2}
  .ahan-catalog-v8 .mobile-price-call__copy{
    display:flex;flex-direction:column;gap:0;
    min-width:0;align-items:flex-start;
    line-height:1.6;
  }
  .ahan-catalog-v8 .mobile-price-call__copy span{
    font-size:9.5px;
    font-weight:800;
    color:#c7e5f3;
    white-space:nowrap;
  }
  .ahan-catalog-v8 .mobile-price-call__copy strong{
    font-size:12.5px;
    line-height:1.5;
    font-weight:950;
    letter-spacing:.25px;
    color:#fff;
    white-space:nowrap;
    unicode-bidi:isolate;
  }
  .ahan-catalog-v8 .mobile-price-filter{
    display:flex;flex-direction:column;
    align-items:center;justify-content:center;
    position:relative;
    min-width:0;min-height:54px;
    gap:3px;
    border-radius:14px;
    border:1px solid #f1c95e;
    background:linear-gradient(150deg,#fff7dc,#ffda68);
    box-shadow:0 5px 13px rgba(216,163,35,.14),inset 0 1px rgba(255,255,255,.87);
    color:#6b5018;
    font-size:11px;
    font-weight:850;
    cursor:pointer;
  }
  .ahan-catalog-v8 .mobile-price-filter span svg{display:block;width:18px;height:18px}
  .ahan-catalog-v8 .mobile-price-filter>em{
    position:absolute;
    top:3px;
    left:6px;
    min-width:15px;height:15px;
    border-radius:99px;
    font:900 9px/15px Vazirmatn,Tahoma,sans-serif;
    background:#063752;color:#fff;
    font-style:normal;
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__quick{
    display:flex;align-items:center;
    min-width:0;
    gap:7px;
    padding:2px 1px 1px;
    border-top:1px solid #e9eef3;
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__quick-title{
    flex:0 0 auto;
    display:flex;align-items:center;gap:4px;
    font-size:10px;
    font-weight:850;
    color:#20445b;
    white-space:nowrap;
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__quick-title svg{
    width:15px;height:15px;
    color:#e0a624;
    stroke-width:2.3;
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__chips{
    display:flex;
    flex:1 1 auto;
    min-width:0;
    align-items:center;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    touch-action:pan-x;
    -webkit-overflow-scrolling:touch;
    padding:3px 1px 5px;
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__chips::-webkit-scrollbar{display:none}
  .ahan-catalog-v8 .mobile-price-sticky-tools__chips>button{
    display:inline-flex;align-items:center;justify-content:center;
    gap:5px;
    flex:0 0 auto;
    scroll-snap-align:start;
    height:32px;
    min-width:48px;
    padding:0 10px;
    border-radius:11px;
    border:1px solid #dfe7ed;
    background:#fff;
    box-shadow:0 3px 8px rgba(19,63,85,.055);
    color:#31586d;
    font-size:10.5px;
    font-weight:900;
    white-space:nowrap;
    cursor:pointer;
  }
  .ahan-catalog-v8 .mobile-price-sticky-tools__chips>button.active,
  .ahan-catalog-v8 .mobile-price-sticky-tools__chips>button[aria-pressed=true]{
    background:linear-gradient(145deg,#ffe7a1,#ffca34);
    border-color:#eab428;
    color:#364450;
  }
  .ahan-catalog-v8 .mobile-price-filter:focus-visible,
  .ahan-catalog-v8 .mobile-price-call:focus-visible,
  .ahan-catalog-v8 .mobile-price-sticky-tools__chips>button:focus-visible{
    outline:3px solid #f2bd36;outline-offset:2px;
  }
  /* Existing filter and quick-facet controls keep their handlers but don't
     need duplicates after the sticky mobile affordance was added. */
  .ahan-catalog-v8 .search-bar .filter-mobile-button{display:none!important}
  .ahan-catalog-v8 .quick-sizes{display:none!important}
  .ahan-catalog-v8 .search-bar{margin-top:0}
  .ahan-catalog-v8 .mobile-sort{
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    gap:7px;
    padding:4px 6px 7px;
  }
  .ahan-catalog-v8 .mobile-sort>button{
    scroll-snap-align:start;
    flex:0 0 auto!important;
    white-space:nowrap;
    min-height:38px;
  }
  .ahan-catalog-v8 .results-toolbar{
    display:flex!important;
    flex-direction:column;
    gap:10px;
    align-items:stretch!important;
    min-width:0;
  }
  .ahan-catalog-v8 .results-toolbar__heading{
    width:100%;
    min-width:0;
    flex:0 1 auto;
  }
  .ahan-catalog-v8 .results-toolbar__actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%!important;
    align-items:stretch;
    gap:8px;
    min-width:0;
  }
  .ahan-catalog-v8 .results-toolbar__actions>.sort-select{display:none!important}
  .ahan-catalog-v8 .results-toolbar__actions>button.catalog-action-button{
    min-width:0!important;
    width:100%!important;
    height:46px!important;
    min-height:46px;
    padding:0 8px!important;
    gap:7px;
    border-radius:14px;
    font-size:11px;
  }
  .ahan-catalog-v8 .catalog-action-button__icon--custom{
    flex:0 0 30px!important;
    width:30px!important;
    height:30px!important;
    border-radius:10px;
  }
  .ahan-catalog-v8 .catalog-action-button__icon--custom svg{
    width:21px!important;height:21px!important;
  }
  .ahan-catalog-v8 .catalog-action-button__label{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  /* The replaced top contact works on all scroll positions; remove
     the old floating mobile extension completely. */
  .ahan-catalog-v8 .call-extension--mobile{display:none!important}
}
@media(max-width:360px){
  .ahan-catalog-v8 .mobile-price-sticky-tools{margin-left:5px;margin-right:5px;padding:6px;gap:6px}
  .ahan-catalog-v8 .mobile-price-sticky-tools__primary{grid-template-columns:minmax(0,1fr) 88px;gap:6px}
  .ahan-catalog-v8 .mobile-price-call__icon{width:33px;height:33px;flex-basis:33px}
  .ahan-catalog-v8 .mobile-price-call__copy strong{font-size:11.3px}
  .ahan-catalog-v8 .mobile-price-filter{font-size:10px}
  .ahan-catalog-v8 .mobile-price-sticky-tools__quick-title{font-size:9px}
}
@media print {
  .ahan-catalog-v8 .mobile-price-sticky-tools{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .ahan-catalog-v8 .catalog-action-button{transition:none!important}
}
