/* qarya-product-share 1.4.2 — site-wide product cards inside WooCommerce / Elementor loops + new shop/archive layout. RTL. */
.qh-li .qh-tc,.qh-arch{--qh-p:#6052B5;--qh-ink:#2E2570;--qh-muted:#7D78A3;font-family:'Baloo Bhaijaan 2','Noto Kufi Arabic',sans-serif}
.qh-li .qh-tc *{box-sizing:border-box}
.qh-li .qh-tc img{display:block;max-width:100%}

/* card as a WooCommerce loop item: neutralise theme/Elementor li.product styling */
.woocommerce ul.products li.product.qh-li,.woocommerce-page ul.products li.product.qh-li,ul.products li.qh-li{list-style:none;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:right!important;width:auto!important;max-width:none!important;float:none!important;display:flex!important;flex-direction:column;min-width:0}
ul.products li.qh-li::before,ul.products li.qh-li::after{display:none!important}
ul.products li.qh-li .qh-tc{flex:1}
ul.products li.qh-li .qh-tc__nm{padding:0!important;font-size:14px!important;font-family:inherit!important;color:var(--qh-ink)!important}
ul.products li.qh-li .qh-tc__cart{margin:0!important;font-size:0}
ul.products li.qh-li .qh-tc__cart .qh-tc__lbl{font-size:13.5px}
ul.products li.qh-li .qh-tc__price{margin:0!important;font-size:16px;color:var(--qh-p)!important}
ul.products li.qh-li .qh-tc__price.is-sale ins{color:#F54E3F!important}
ul.products li.qh-li .qh-tc__img img{margin:0!important;height:100%!important;width:100%!important}
/* Elementor «Products» widget grid: keep its column count, give the cards breathing room */
.elementor-widget-woocommerce-products ul.products:has(> li.qh-li){gap:20px!important;align-items:stretch}
@media (max-width:767px){
  ul.products li.qh-li .qh-tc__nm{font-size:12px!important}
  ul.products li.qh-li .qh-tc__price{font-size:14px}
  .elementor-widget-woocommerce-products ul.products:has(> li.qh-li){gap:10px!important}
}

/* ---------------------------------------------------------------- archive layout */
.qh-arch{background:#FAF8FE;color:var(--qh-ink);direction:rtl;padding-bottom:36px}
.qh-arch *{box-sizing:border-box}
.qh-arch a{text-decoration:none}
.qh-arch__wrap{max-width:1320px;margin:0 auto;padding:0 20px}
.qh-arch__crumbs{padding:14px 0 0;font-size:13px;font-weight:500;color:var(--qh-muted)}
.qh-arch__crumbs a{color:var(--qh-muted)}
.qh-arch__crumbs > :last-child,.qh-arch__crumbs{font-weight:700}
.qh-arch__head{margin-top:10px;position:relative;background:linear-gradient(120deg,#FCE8F3 0%,#F1ECFF 48%,#E7F3FC 100%);border-radius:24px;padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;overflow:hidden}
.qh-arch__head h1{margin:0;font-family:inherit;font-size:30px;font-weight:800;color:var(--qh-p);line-height:1.3}
.qh-arch__head p{margin:2px 0 0;font-size:14.5px;font-weight:500;color:var(--qh-muted);line-height:1.6}
.qh-arch__cnt{font-size:14px;font-weight:700;color:var(--qh-p);background:#fff;border-radius:999px;padding:3px 16px;box-shadow:0 4px 12px rgba(96,82,181,.08);white-space:nowrap}
.qh-arch__layout{display:flex;gap:24px;align-items:flex-start;margin-top:22px}
.qh-arch__side{width:252px;flex:none;position:sticky;top:20px}
.qh-arch__main{flex:1;min-width:0}
.qh-arch__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.qh-arch__tabs{display:flex;gap:8px;flex-wrap:wrap}
.qh-arch__tabs .qh-chip{font-size:14px;padding:5px 16px}
.qh-arch__mctl{display:none}
.qh-arch__prev{margin:0 0 14px;font-size:13.5px;font-weight:700}
.qh-arch__prev a{color:var(--qh-p)}
.qh-arch__grid{list-style:none;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.qh-arch__grid::before,.qh-arch__grid::after{display:none!important}
.qh-arch__empty{text-align:center;padding:40px 0;font-weight:600;color:var(--qh-muted)}

/* chips */
.qh-arch .qh-chips{display:flex;flex-wrap:wrap;gap:8px}
.qh-arch .qh-chip{position:relative;display:inline-flex;align-items:center;gap:6px;border:1.5px solid rgba(46,37,112,.12);background:#fff;color:var(--qh-ink);font-size:13px;font-weight:700;border-radius:999px;padding:3px 12px 3px 10px;white-space:nowrap;line-height:1.5;cursor:pointer}
.qh-arch a.qh-chip:hover{border-color:var(--qh-p)}
.qh-arch .qh-chip.is-on{background:var(--qh-p);border-color:var(--qh-p);color:#fff}
.qh-arch .qh-chip i{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}
.qh-arch .qh-chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.qh-arch .qh-chip:has(input:checked){border-color:var(--c,var(--qh-p));background:color-mix(in srgb,var(--c,#6052B5) 16%,white)}
.qh-arch .qh-chip:has(input:focus-visible),.qh-arch .qh-chip:focus-visible{outline:2px solid var(--qh-p);outline-offset:2px}
.qh-arch .qh-chip--all{grid-column:1 / -1;justify-content:center}

/* filter panel */
.qh-flt{background:#fff;border:1px solid rgba(46,37,112,.08);border-radius:24px;box-shadow:0 6px 18px rgba(46,37,112,.07);padding:18px 18px 20px;margin:0}
.qh-flt__hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.qh-flt__t{font-size:17px;font-weight:800;color:var(--qh-ink)}
.qh-flt__clr{font-size:12.5px;font-weight:700;color:var(--qh-p)}
.qh-flt__x{display:none}
.qh-flt__s{border:0;margin:10px 0 0;padding:14px 0 6px;border-top:1px solid rgba(46,37,112,.08);min-width:0}
.qh-flt__s legend{padding:0;float:right;width:100%}
.qh-flt__s h4{margin:0 0 10px;font-family:inherit;font-size:14px;font-weight:800;color:var(--qh-ink)}
.qh-flt__s--cats{display:none}
.qh-flt__body > .qh-flt__s:nth-child(2){border-top:0;margin-top:0}
.qh-arch__side .qh-chips--age{display:grid;grid-template-columns:1fr 1fr;gap:8px;clear:both}
.qh-arch__side .qh-chips--age .qh-chip{justify-content:flex-start}
.qh-flt__ft{display:none}
/* price range (two overlaid range inputs) */
.qh-range{position:relative;height:30px;margin:4px 6px 6px;clear:both}
.qh-range__track{position:absolute;left:0;right:0;top:12px;height:6px;border-radius:6px;background:#E8E3FA}
.qh-range__fill{position:absolute;top:0;bottom:0;border-radius:6px;background:var(--qh-p);right:var(--a,0%);left:var(--b,0%)}
.qh-range input[type=range]{position:absolute;inset:0;width:100%;height:30px;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none;direction:rtl}
.qh-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--qh-p);box-shadow:0 2px 6px rgba(96,82,181,.3);cursor:pointer}
.qh-range input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--qh-p);cursor:pointer}
.qh-range input[type=range]::-webkit-slider-runnable-track{background:none}
.qh-range input[type=range]::-moz-range-track{background:none}
.qh-pv{display:flex;justify-content:space-between;gap:10px;margin-top:10px}
.qh-pv label{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;font-size:13px;font-weight:700;color:var(--qh-ink);border:1.5px solid rgba(46,37,112,.12);border-radius:12px;padding:3px 6px;background:#fff}
.qh-pv small{font-size:11px;color:var(--qh-muted);font-weight:600;margin-left:2px}
.qh-pv input{width:3.4em;border:0!important;padding:0!important;margin:0;background:none!important;font:inherit;color:inherit;text-align:center;-moz-appearance:textfield;box-shadow:none!important;min-height:0!important}
.qh-pv input::-webkit-outer-spin-button,.qh-pv input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qh-pv__plus{display:none}
.qh-arch .qh-price.is-cap .qh-pv__plus{display:inline}
/* switch */
.qh-sw{position:relative;display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:13.5px;font-weight:700;color:var(--qh-ink);cursor:pointer}
.qh-sw input{position:absolute;opacity:0;width:1px;height:1px}
.qh-sw i{width:42px;height:24px;border-radius:999px;background:#DCD6F2;position:relative;flex:none;transition:background-color .2s}
.qh-sw i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:left .2s}
.qh-sw input:checked + i{background:var(--qh-p)}
.qh-sw input:checked + i::after{left:21px}
.qh-sw input:focus-visible + i{outline:2px solid var(--qh-p);outline-offset:2px}

/* sort */
.qh-sort{margin:0}
.qh-sort label{position:relative;display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid rgba(46,37,112,.12);border-radius:999px;padding:5px 14px;font-size:13.5px;font-weight:700;color:var(--qh-ink);white-space:nowrap;margin:0}
.qh-sort em{font-style:normal;color:var(--qh-muted);font-weight:600}
.qh-sort select{border:0!important;background:transparent!important;font:inherit;font-weight:700;color:var(--qh-ink);padding:0 0 0 18px!important;margin:0;-webkit-appearance:none;appearance:none;cursor:pointer;box-shadow:none!important;height:auto!important;min-height:0!important}
.qh-sort svg{position:absolute;left:12px;color:var(--qh-p);pointer-events:none}

/* load more */
.qh-more{margin:34px auto 6px;text-align:center}
.qh-more__txt{margin:0;font-size:13.5px;font-weight:600;color:var(--qh-muted)}
.qh-more__bar{width:240px;height:6px;border-radius:6px;background:#E8E3FA;margin:8px auto 16px;position:relative;overflow:hidden}
.qh-more__bar i{position:absolute;right:0;top:0;bottom:0;background:var(--qh-p);border-radius:6px;transition:width .3s}
.qh-lm{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:var(--qh-p)!important;border:2px solid var(--qh-p);border-radius:999px;padding:0 34px;height:48px;font-size:16px;font-weight:800;cursor:pointer;transition:background-color .2s,color .2s}
.qh-lm:hover,.qh-lm:focus-visible{background:var(--qh-p);color:#fff!important}
.qh-lm.is-loading{opacity:.6;pointer-events:none}

/* tablet */
@media (max-width:1024px){
  .qh-arch__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .qh-arch__side{width:220px}
}
/* mobile: filter = bottom sheet */
@media (max-width:767px){
  .qh-arch__wrap{padding:0 16px}
  .qh-arch__crumbs{padding-top:10px;font-size:11.5px}
  .qh-arch__head{display:block;margin-top:8px;border-radius:18px;padding:14px 16px}
  .qh-arch__head h1{font-size:21px}
  .qh-arch__head p{font-size:12.5px}
  .qh-arch__cnt{display:none}
  .qh-arch__mctl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
  .qh-arch__fbtn{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:999px;background:var(--qh-p);border:0;color:#fff;font-family:inherit;font-size:14px;font-weight:800;box-shadow:0 6px 16px rgba(96,82,181,.25);cursor:pointer;padding:0 10px}
  .qh-arch__mctl .qh-sort label{display:flex;justify-content:center;height:44px;width:100%;font-size:13px;padding:0 10px}
  .qh-arch__mctl .qh-sort select{max-width:100%}
  .qh-arch__bar .qh-sort{display:none}
  .qh-arch__bar{margin:12px 0 10px}
  .qh-arch__tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .qh-arch__tabs::-webkit-scrollbar{display:none}
  .qh-arch__tabs .qh-chip{font-size:13px;padding:3px 14px}
  .qh-arch__layout{display:block;margin-top:0}
  .qh-arch__side{position:static;width:auto}
  .qh-arch__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .qh-more{margin-top:22px}
  .qh-more__txt{font-size:12px}
  .qh-lm{height:44px;font-size:15px;width:100%}
  /* sheet (only when JS is there; without JS the panel simply sits above the products) */
  /* 1.4.2: the desktop rule gives .qh-arch__side top:20px (sticky). With top AND bottom set the sheet was pinned to top:20px, so its
     «translateY(105%)» parking spot left ~44px of the sheet (handle + «تصفية») peeking at the bottom of the screen — more or less depending on
     the sheet's height / the phone's toolbar state. Now: top:auto, parked fully below the screen, and visibility:hidden until opened. */
  .qh-js .qh-arch__side{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:100000;transform:translateY(110%);visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility 0s linear .25s;max-height:88vh;max-height:88dvh;display:flex}
  .qh-js .qh-arch__side .qh-flt{border-radius:28px 28px 0 0;border:0;box-shadow:none;display:flex;flex-direction:column;width:100%;max-height:88vh;max-height:88dvh;padding:0}
  .qh-js.qh-sheet-open .qh-arch__side{transform:none;visibility:visible;pointer-events:auto;transition:transform .25s ease,visibility 0s}
  .qh-js.qh-sheet-open .qh-arch__side .qh-flt{box-shadow:0 -10px 30px rgba(46,37,112,.2)}
  .qh-js .qh-flt__hd{padding:16px 20px 10px;margin:0;position:relative}
  .qh-js .qh-flt__hd::before{content:"";position:absolute;top:8px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:5px;background:#DCD6F2}
  .qh-js .qh-flt__t{font-size:20px;color:var(--qh-p)}
  .qh-js .qh-flt__clr{display:none}
  .qh-js .qh-flt__x{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#F1ECFF;color:var(--qh-p);border:0;padding:0;cursor:pointer}
  .qh-js .qh-flt__body{padding:0 20px;overflow-y:auto;flex:1}
  .qh-js .qh-flt__s--cats{display:block;border-top:0;margin-top:0}
  .qh-js .qh-flt__body > .qh-flt__s:nth-child(2){border-top:1px solid rgba(46,37,112,.08);margin-top:6px}
  .qh-js .qh-arch__side .qh-chips--age{display:grid;grid-template-columns:repeat(3,1fr)}
  .qh-js .qh-flt__ft{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 20px 18px;border-top:1px solid rgba(46,37,112,.08)}
  .qh-flt__go{width:100%;height:48px;border-radius:999px;background:var(--qh-p);color:#fff;border:0;font-family:inherit;font-weight:800;font-size:16px;box-shadow:0 6px 16px rgba(96,82,181,.28);cursor:pointer}
  .qh-flt__rs{font-size:13px;font-weight:700;color:var(--qh-p)}
  .qh-arch__sheet-dim{position:fixed;inset:0;background:rgba(46,37,112,.5);z-index:99999}
  .qh-arch__sheet-dim[hidden]{display:none}
  .qh-sheet-open{overflow:hidden}
}
@media (min-width:768px){ .qh-arch__sheet-dim{display:none!important} }
@media (prefers-reduced-motion:reduce){.qh-js .qh-arch__side,.qh-js.qh-sheet-open .qh-arch__side,.qh-lm,.qh-more__bar i{transition:none}}
