/* Aakram Search 0.9.2 — viewport-safe full-width faceted results screen */
.aakramsearch-theme-search-hidden{display:none!important;visibility:hidden!important}
.aakramsearch-ownbox{position:relative;display:flex!important;align-items:stretch;box-sizing:border-box;max-width:100%;height:56px;margin:0;padding:0;background:#fff;border:1px solid #dedede;z-index:5}
.aakramsearch-ownbox *{box-sizing:border-box}
.aakramsearch-own-input{display:block!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;height:54px!important;margin:0!important;padding:0 62px 0 18px!important;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;color:#111!important;font-family:inherit!important;font-size:14px!important;line-height:54px!important;border-radius:0!important;-webkit-appearance:none!important;appearance:none!important}
.aakramsearch-own-input::-webkit-search-cancel-button{display:none}
.aakramsearch-own-submit{position:absolute!important;right:0!important;top:0!important;width:58px!important;height:54px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;cursor:pointer!important;box-shadow:none!important}
.aakramsearch-own-submit span{position:absolute;left:17px;top:14px;width:20px;height:20px;border:1.5px solid #111;border-radius:50%}
.aakramsearch-own-submit span:after{content:"";position:absolute;width:10px;height:1.5px;background:#111;right:-7px;bottom:-4px;transform:rotate(48deg);transform-origin:left center}

.aakramsearch-panel.aakramsearch-v092{display:none;z-index:2147483000;background:#efefef;border:1px solid #d8d8d8;border-radius:0;box-shadow:0 4px 16px rgba(0,0,0,.20);overflow:hidden;color:#222;font-family:inherit;box-sizing:border-box}
.aakramsearch-panel.aakramsearch-v092.is-open{display:flex;flex-direction:column}
.aakramsearch-v092 *{box-sizing:border-box}
.aakramsearch-v092 .aakramsearch-head{height:46px;min-height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e1e1e1;background:#fff;color:#666}
.aakramsearch-v092 .aakramsearch-head-title{font-size:14px;font-weight:400;letter-spacing:.01em}
.aakramsearch-v092 .aakramsearch-close{appearance:none;border:0;background:transparent;color:#777;font-size:30px;line-height:1;padding:0 1px;cursor:pointer;font-family:Arial,sans-serif;font-weight:300}
.aakramsearch-v092 .aakramsearch-body{flex:1 1 auto;min-height:0;overflow-y:auto;background:#fff;padding:16px 18px 12px}
.aakramsearch-v092 .aakramsearch-body.is-results{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-content:flex-start;align-items:start;justify-content:stretch}
.aakramsearch-v092 .aakramsearch-item{display:flex;width:100%;max-width:none;flex:0 0 auto;flex-direction:column;align-items:stretch;min-width:0;padding:0 0 7px;border:1px solid #e5e5e5;text-decoration:none!important;color:inherit!important;background:#fff;transition:border-color .12s ease,box-shadow .12s ease}
 .aakramsearch-v092 .aakramsearch-item:hover, .aakramsearch-v092 .aakramsearch-item.is-selected{border-color:#c9c9c9;box-shadow:0 2px 7px rgba(0,0,0,.10);background:#fff}
 .aakramsearch-v092 .aakramsearch-image{display:block;width:100%;aspect-ratio:1/1;height:auto;overflow:hidden;background:#fff;margin:0;border-bottom:1px solid #f0f0f0}
 .aakramsearch-v092 .aakramsearch-image img{width:100%;height:100%;object-fit:contain;display:block}
 .aakramsearch-v092 .aakramsearch-info{display:flex;flex-direction:column;min-width:0;flex:0 0 auto;padding:6px 7px 0}
 .aakramsearch-v092 .aakramsearch-name{font-size:14px;line-height:18px;font-weight:600;color:#222;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:0}
 .aakramsearch-v092 .aakramsearch-reference{font-size:11px;line-height:15px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
 .aakramsearch-v092 .aakramsearch-price{font-size:16px;line-height:20px;font-weight:700;color:#0089a9;margin-top:4px;white-space:nowrap}
 .aakramsearch-v092 .aakramsearch-highlight{background:#ffea00!important;color:inherit!important;padding:0 1px!important;font:inherit!important;border-radius:0}
 .aakramsearch-v092 .aakramsearch-foot{flex:0 0 auto;padding:10px 18px 14px;background:#fff;border-top:1px solid #eee}
 .aakramsearch-v092 .aakramsearch-all{display:block;background:#222!important;color:#fff!important;text-align:center;text-decoration:none!important;padding:14px 12px;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.14em;border-radius:2px}
 .aakramsearch-v092 .aakramsearch-all:hover{background:#111!important;color:#fff!important}
 .aakramsearch-v092 .aakramsearch-message{height:100%;min-height:150px;padding:25px 16px;display:flex;align-items:center;justify-content:center;gap:10px;color:#666;background:#fff}
 .aakramsearch-v092 .aakramsearch-spinner{width:18px;height:18px;border:2px solid #ddd;border-top-color:#555;border-radius:50%;animation:aakramsearch-v092-spin .7s linear infinite}
@keyframes aakramsearch-v092-spin{to{transform:rotate(360deg)}}

/* Full-results page with self-hosted dynamic facets.
   JS aligns this block to the viewport because Electron's content wrapper is not centered. */
.aakramsearch-results-page{
  width:100%;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding:8px 0 32px;
  position:relative;
  box-sizing:border-box;
}
.aakramsearch-results-topbar{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.aakramsearch-results-summary{font-size:15px;color:#666;margin:0}
.aakramsearch-results-base{color:#999;font-size:13px}
.aakramsearch-filter-toggle{display:none;border:1px solid #222;background:#222;color:#fff;padding:10px 18px;font-size:13px;font-weight:700;letter-spacing:.04em;cursor:pointer}
.aakramsearch-results-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;align-items:start}
.aakramsearch-filter-sidebar{min-width:0;border:1px solid #e2e2e2;background:#fff;position:sticky;top:15px;max-height:calc(100vh - 30px);overflow:auto}
.aakramsearch-filter-mobile-head{display:none}
.aakramsearch-filter-form{display:block}
.aakramsearch-facet{border-bottom:1px solid #e9e9e9;background:#fff}
.aakramsearch-facet summary{position:relative;list-style:none;cursor:pointer;padding:14px 36px 14px 14px;font-size:14px;font-weight:700;color:#222;user-select:none}
.aakramsearch-facet summary::-webkit-details-marker{display:none}
.aakramsearch-facet summary:after{content:'+';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:400;color:#777}
.aakramsearch-facet[open] summary:after{content:'−'}
.aakramsearch-facet-values{padding:0 10px 12px;max-height:310px;overflow:auto}
.aakramsearch-filter-option{display:flex;align-items:flex-start;gap:8px;width:100%;padding:5px 3px;margin:0;cursor:pointer;font-size:12px;line-height:17px;color:#333;font-weight:400}
.aakramsearch-filter-option input{flex:0 0 auto;margin:2px 0 0;width:14px;height:14px}
.aakramsearch-filter-label{flex:1 1 auto;min-width:0}
.aakramsearch-filter-count{flex:0 0 auto;color:#999;font-size:11px}
.aakramsearch-price-filter{padding:0 12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.aakramsearch-price-filter div{min-width:0}
.aakramsearch-price-filter label{display:block;font-size:11px;color:#777;margin-bottom:3px}
.aakramsearch-price-filter input{width:100%;height:36px;border:1px solid #ddd;padding:0 8px;background:#fff;color:#222}
.aakramsearch-price-apply{grid-column:1/-1;height:36px;border:0;background:#222;color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.aakramsearch-clear-filters{display:block;margin:12px;padding:11px;border:1px solid #ccc;text-align:center;color:#222!important;text-decoration:none!important;font-size:12px;font-weight:700;background:#fff}
.aakramsearch-results-main{min-width:0}
.aakramsearch-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.aakramsearch-result-card{display:block;border:1px solid #e5e5e5;background:#fff;text-decoration:none!important;color:#222!important;padding:8px;min-width:0}
.aakramsearch-result-card:hover{border-color:#c8c8c8;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.aakramsearch-result-image{display:flex;aspect-ratio:1/1;height:auto;align-items:center;justify-content:center;margin-bottom:8px;overflow:hidden}
.aakramsearch-result-image img{display:block;width:100%;height:100%;object-fit:contain}
.aakramsearch-result-name{display:block;font-size:14px;line-height:19px;font-weight:600;min-height:38px}
.aakramsearch-result-ref{display:block;font-size:12px;color:#888;margin-top:4px}
.aakramsearch-result-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}
.aakramsearch-result-price{font-size:17px;font-weight:700;color:#0089a9}
.aakramsearch-pagination{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap;margin:24px 0 0}
.aakramsearch-pagination a,.aakramsearch-pagination span{display:inline-flex;min-width:36px;height:36px;align-items:center;justify-content:center;padding:0 10px;border:1px solid #ddd;background:#fff;color:#222;text-decoration:none!important}
.aakramsearch-pagination .is-current{background:#222;color:#fff;border-color:#222}
.aakramsearch-no-results{padding:30px 0;color:#666}
.aakramsearch-filter-backdrop{display:none}

@media(min-width:1500px){
  .aakramsearch-v092 .aakramsearch-body.is-results{grid-template-columns:repeat(6,minmax(0,1fr))}
  .aakramsearch-results-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:1499px) and (min-width:1200px){
  .aakramsearch-v092 .aakramsearch-body.is-results{grid-template-columns:repeat(6,minmax(0,1fr))}
  .aakramsearch-results-layout{grid-template-columns:260px minmax(0,1fr);gap:18px}
  .aakramsearch-results-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:1199px) and (min-width:992px){
  .aakramsearch-v092 .aakramsearch-body.is-results{grid-template-columns:repeat(4,minmax(0,1fr))}
  .aakramsearch-results-layout{grid-template-columns:235px minmax(0,1fr);gap:16px}
  .aakramsearch-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:991px) and (min-width:768px){
  .aakramsearch-v092 .aakramsearch-body.is-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .aakramsearch-filter-toggle{display:inline-block}
  .aakramsearch-results-layout{display:block}
  .aakramsearch-filter-sidebar{position:fixed;z-index:2147483300;left:0;top:0;bottom:0;width:min(360px,84vw);max-height:none;transform:translateX(-105%);transition:transform .18s ease;box-shadow:4px 0 18px rgba(0,0,0,.2)}
  body.aakramsearch-filters-open .aakramsearch-filter-sidebar{transform:translateX(0)}
  body.aakramsearch-filters-open .aakramsearch-filter-backdrop{display:block;position:fixed;z-index:2147483200;inset:0;background:rgba(0,0,0,.35)}
  .aakramsearch-filter-mobile-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid #e5e5e5}
  .aakramsearch-filter-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#555}
  .aakramsearch-results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
}
@media(max-width:767px){
  .aakramsearch-ownbox{height:48px;width:100%!important}
  .aakramsearch-own-input{height:46px!important;line-height:46px!important;padding-left:12px!important;padding-right:50px!important}
  .aakramsearch-own-submit{width:48px!important;height:46px!important}
  .aakramsearch-own-submit span{left:13px;top:11px}
  .aakramsearch-v092 .aakramsearch-head{height:42px;min-height:42px;padding:0 10px}
  .aakramsearch-v092 .aakramsearch-body{padding:8px}
  .aakramsearch-v092 .aakramsearch-body.is-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;justify-content:stretch}
  .aakramsearch-v092 .aakramsearch-item{width:100%;max-width:none;padding:0 0 6px}
  .aakramsearch-v092 .aakramsearch-image{width:100%;height:auto;aspect-ratio:1/1;margin:0}
  .aakramsearch-v092 .aakramsearch-info{padding:5px 6px 0}
  .aakramsearch-v092 .aakramsearch-name{font-size:12px;line-height:16px;min-height:0}
  .aakramsearch-v092 .aakramsearch-price{font-size:14px}
  .aakramsearch-v092 .aakramsearch-foot{padding:8px}
  .aakramsearch-v092 .aakramsearch-all{padding:13px 10px}
  .aakramsearch-filter-toggle{display:inline-block;padding:9px 14px}
  .aakramsearch-results-topbar{margin-bottom:12px}
  .aakramsearch-results-layout{display:block}
  .aakramsearch-filter-sidebar{position:fixed;z-index:2147483300;left:0;top:0;bottom:0;width:min(340px,88vw);max-height:none;transform:translateX(-105%);transition:transform .18s ease;box-shadow:4px 0 18px rgba(0,0,0,.2)}
  body.aakramsearch-filters-open .aakramsearch-filter-sidebar{transform:translateX(0)}
  body.aakramsearch-filters-open .aakramsearch-filter-backdrop{display:block;position:fixed;z-index:2147483200;inset:0;background:rgba(0,0,0,.35)}
  .aakramsearch-filter-mobile-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid #e5e5e5}
  .aakramsearch-filter-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#555}
  .aakramsearch-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .aakramsearch-result-name{font-size:13px;line-height:17px;min-height:34px}
}


/* v0.9.2 viewport fitting safety */
body.aakramsearch-results-viewport-fit{overflow-x:hidden;}
