/* Akram Search 1.1.0 — 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-v130{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-v130.is-open{display:flex;flex-direction:column}
.aakramsearch-v130 *{box-sizing:border-box}
.aakramsearch-v130 .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-v130 .aakramsearch-head-title{font-size:14px;font-weight:400;letter-spacing:.01em}
.aakramsearch-v130 .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-v130 .aakramsearch-body{flex:1 1 auto;min-height:0;overflow-y:auto;background:#fff;padding:16px 18px 12px}
.aakramsearch-v130 .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-v130 .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-v130 .aakramsearch-item:hover, .aakramsearch-v130 .aakramsearch-item.is-selected{border-color:#c9c9c9;box-shadow:0 2px 7px rgba(0,0,0,.10);background:#fff}
 .aakramsearch-v130 .aakramsearch-image{display:block;width:100%;aspect-ratio:1/1;height:auto;overflow:hidden;background:#fff;margin:0;border-bottom:1px solid #f0f0f0}
 .aakramsearch-v130 .aakramsearch-image img{width:100%;height:100%;object-fit:contain;display:block}
 .aakramsearch-v130 .aakramsearch-info{display:flex;flex-direction:column;min-width:0;flex:0 0 auto;padding:6px 7px 0}
 .aakramsearch-v130 .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-v130 .aakramsearch-reference{font-size:11px;line-height:15px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
 .aakramsearch-v130 .aakramsearch-price{font-size:16px;line-height:20px;font-weight:700;color:var(--akram-search-price,#d62828);margin-top:4px;white-space:nowrap}
 .aakramsearch-v130 .aakramsearch-highlight{background:var(--akram-search-highlight-bg,#0089a9)!important;color:var(--akram-search-highlight-text,#fff)!important;padding:0 1px!important;font:inherit!important;border-radius:0}
 .aakramsearch-v130 .aakramsearch-foot{flex:0 0 auto;padding:10px 18px 14px;background:#fff;border-top:1px solid #eee}
 .aakramsearch-v130 .aakramsearch-all{display:block;background:var(--akram-search-accent,#0089a9)!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-v130 .aakramsearch-all:hover{filter:brightness(.9);color:#fff!important}
 .aakramsearch-v130 .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-v130 .aakramsearch-spinner{width:18px;height:18px;border:2px solid #ddd;border-top-color:#555;border-radius:50%;animation:aakramsearch-v130-spin .7s linear infinite}
@keyframes aakramsearch-v130-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:var(--akram-search-accent,#0089a9);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:var(--akram-search-accent,#0089a9);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:var(--akram-search-price,#d62828)}
.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:var(--akram-search-accent,#0089a9);color:#fff;border-color:var(--akram-search-accent,#0089a9)}
.aakramsearch-no-results{padding:30px 0;color:#666}
.aakramsearch-filter-backdrop{display:none}

@media(min-width:1500px){
  .aakramsearch-v130 .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-v130 .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-v130 .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-v130 .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-v130 .aakramsearch-head{height:42px;min-height:42px;padding:0 10px}
  .aakramsearch-v130 .aakramsearch-body{padding:8px}
  .aakramsearch-v130 .aakramsearch-body.is-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;justify-content:stretch}
  .aakramsearch-v130 .aakramsearch-item{width:100%;max-width:none;padding:0 0 6px}
  .aakramsearch-v130 .aakramsearch-image{width:100%;height:auto;aspect-ratio:1/1;margin:0}
  .aakramsearch-v130 .aakramsearch-info{padding:5px 6px 0}
  .aakramsearch-v130 .aakramsearch-name{font-size:12px;line-height:16px;min-height:0}
  .aakramsearch-v130 .aakramsearch-price{font-size:14px}
  .aakramsearch-v130 .aakramsearch-foot{padding:8px}
  .aakramsearch-v130 .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}
}


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

/* v1.0 additions */
.aakramsearch-v130 .aakramsearch-banner-slot{display:none;flex:0 0 auto;background:#fff;text-align:center;overflow:hidden;border-bottom:1px solid #eee}
.aakramsearch-v130 .aakramsearch-banner-slot a{display:block;text-decoration:none}
.aakramsearch-v130 .aakramsearch-banner-slot img{display:block;max-width:100%;width:auto;max-height:115px;margin:0 auto;object-fit:contain}
.aakramsearch-image,.aakramsearch-result-image{position:relative}
.aakramsearch-secondary-image{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;opacity:0;transition:opacity .15s ease}
.aakramsearch-item.aakramsearch-alt-ready:hover .aakramsearch-secondary-image,
.aakramsearch-result-card.aakramsearch-alt-ready:hover .aakramsearch-secondary-image{opacity:1}
.aakramsearch-alternative{flex-wrap:wrap}.aakramsearch-alternative a,.aakramsearch-suggestion a{font-weight:700;color:var(--akram-search-price,#d62828)!important;text-decoration:underline!important}
.aakramsearch-results-topbar{justify-content:flex-start;flex-wrap:wrap}
.aakramsearch-per-page{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;color:#666;font-weight:400}
.aakramsearch-per-page select{height:36px;min-width:72px;border:1px solid #ddd;background:#fff;color:#222;padding:0 28px 0 9px}
.aakramsearch-suggestion{margin:-4px 0 14px;padding:10px 12px;background:#fff;border:1px solid #e6e6e6;font-size:13px;color:#555}
.aakramsearch-facet-search{display:block;width:100%;height:32px;margin:0 0 7px;border:1px solid #ddd;background:#fff;padding:0 8px;font-size:12px;color:#333}
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-layout{display:block}
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1499px) and (min-width:1200px){.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1199px) and (min-width:992px){.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:991px) and (min-width:768px){.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.aakramsearch-v130 .aakramsearch-banner-slot img{max-height:84px}.aakramsearch-per-page{margin-left:auto}.aakramsearch-per-page span{display:none}.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v1.1 configurable premium cards/actions */
.aakramsearch-v130 .aakramsearch-item,.aakramsearch-result-card{border-radius:var(--akram-search-card-radius,8px);overflow:hidden;position:relative}
.aakramsearch-v130 .aakramsearch-image,.aakramsearch-result-image{border-radius:var(--akram-search-image-radius,8px);overflow:hidden}
.aakramsearch-v130 .aakramsearch-price,.aakramsearch-result-price{color:var(--akram-search-price,#d62828)!important}
.aakramsearch-v130 .aakramsearch-highlight{background:var(--akram-search-highlight-bg,#0089a9)!important;color:var(--akram-search-highlight-text,#fff)!important;border-radius:2px;padding:0 2px!important}
.aakramsearch-v130 .aakramsearch-all,.aakramsearch-price-apply,.aakramsearch-filter-toggle,.aakramsearch-pagination .is-current{background:var(--akram-search-accent,#0089a9)!important;border-color:var(--akram-search-accent,#0089a9)!important;color:#fff!important}
.aakramsearch-alternative a,.aakramsearch-suggestion a,.aakramsearch-supplementary a{color:var(--akram-search-accent,#0089a9)!important}
.aakramsearch-card-main,.aakramsearch-result-main{display:block;text-decoration:none!important;color:inherit!important;min-width:0}
.aakramsearch-card-actions,.aakramsearch-result-actions{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:6px;z-index:8;opacity:.96}
.aakramsearch-action{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 1px 6px rgba(0,0,0,.18);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:7px;color:#222;transition:transform .12s ease,box-shadow .12s ease}
.aakramsearch-action:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.24)}
.aakramsearch-action svg{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aakramsearch-action.aakramsearch-cart{background:var(--akram-search-cart,#0089a9);color:#fff}
.aakramsearch-action.is-loading{pointer-events:none;opacity:.55}
.aakramsearch-supplementary{grid-column:1/-1;border-top:1px solid #eee;padding:10px 2px 0;margin-top:2px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.aakramsearch-supplementary-section{min-width:0}
.aakramsearch-supplementary-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#888;margin-bottom:5px}
.aakramsearch-supplementary-links{display:flex;flex-wrap:wrap;gap:6px 10px}
.aakramsearch-supplementary-links a{font-size:12px;text-decoration:none!important;font-weight:600}
.aakramsearch-toast{position:fixed;z-index:2147483646;right:18px;bottom:18px;background:#222;color:#fff;padding:11px 15px;border-radius:8px;box-shadow:0 4px 18px rgba(0,0,0,.22);font-size:13px;opacity:0;transform:translateY(8px);transition:.18s ease;pointer-events:none}
.aakramsearch-toast.is-visible{opacity:1;transform:translateY(0)}
.aakramsearch-quick-modal{position:fixed;z-index:2147483600;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.48)}
.aakramsearch-quick-modal.is-open{display:flex}
.aakramsearch-quick-dialog{width:min(900px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.28);position:relative;padding:22px}
.aakramsearch-quick-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:30px;line-height:1;color:#555;cursor:pointer;z-index:2}
.aakramsearch-quick-grid{display:grid;grid-template-columns:minmax(260px,46%) 1fr;gap:24px;align-items:start}
.aakramsearch-quick-main-image{aspect-ratio:1/1;background:#fafafa;border-radius:var(--akram-search-image-radius,8px);overflow:hidden;display:flex;align-items:center;justify-content:center}
.aakramsearch-quick-main-image img{width:100%;height:100%;object-fit:contain;display:block}
.aakramsearch-quick-thumbs{display:flex;gap:7px;overflow:auto;margin-top:8px}
.aakramsearch-quick-thumb{width:58px;height:58px;border:1px solid #ddd;background:#fff;border-radius:6px;padding:2px;cursor:pointer;flex:0 0 auto}
.aakramsearch-quick-thumb img{width:100%;height:100%;object-fit:contain}
.aakramsearch-quick-title{font-size:22px;line-height:1.25;font-weight:700;padding-right:30px;margin:2px 0 8px}
.aakramsearch-quick-ref{font-size:12px;color:#888;margin-bottom:8px}
.aakramsearch-quick-price{font-size:22px;font-weight:700;color:var(--akram-search-price,#d62828);margin:8px 0 14px}
.aakramsearch-quick-desc{font-size:13px;line-height:1.55;color:#555;margin-bottom:18px}
.aakramsearch-quick-buttons{display:flex;gap:10px;flex-wrap:wrap}
.aakramsearch-quick-buttons a,.aakramsearch-quick-buttons button{min-height:42px;padding:10px 16px;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center}
.aakramsearch-quick-viewproduct{background:#fff;border:1px solid var(--akram-search-accent,#0089a9);color:var(--akram-search-accent,#0089a9)!important}
.aakramsearch-quick-add{border:1px solid var(--akram-search-cart,#0089a9);background:var(--akram-search-cart,#0089a9);color:#fff}
@media(max-width:767px){.aakramsearch-card-actions,.aakramsearch-result-actions{right:5px;top:5px;gap:4px}.aakramsearch-action{width:30px;height:30px;padding:6px}.aakramsearch-supplementary{grid-template-columns:1fr}.aakramsearch-quick-modal{padding:8px}.aakramsearch-quick-dialog{padding:16px;border-radius:10px}.aakramsearch-quick-grid{grid-template-columns:1fr;gap:14px}.aakramsearch-quick-title{font-size:18px}.aakramsearch-quick-price{font-size:19px}}

/* Quick-view loading indicator lives outside the instant-results panel. */
.aakramsearch-quick-modal .aakramsearch-spinner{display:inline-block;width:22px;height:22px;border:2px solid #ddd;border-top-color:var(--akram-search-accent,#0089a9);border-radius:50%;animation:aakramsearch-v130-spin .7s linear infinite}


/* v1.1.1 finishing pass: compact cards, guaranteed content flow, clearer rounding. */
@media(min-width:768px){
  .aakramsearch-ownbox{
    width:calc(100% + var(--akram-search-box-side,8px) + var(--akram-search-box-side,8px))!important;
    max-width:none!important;
    margin-left:calc(0px - var(--akram-search-box-side,8px))!important;
    margin-right:calc(0px - var(--akram-search-box-side,8px))!important;
  }
}
.aakramsearch-v130 .aakramsearch-item{
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  border-radius:var(--akram-search-card-radius,12px)!important;
}
.aakramsearch-v130 .aakramsearch-card-main{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
.aakramsearch-v130 .aakramsearch-image{
  border-radius:var(--akram-search-image-radius,12px) var(--akram-search-image-radius,12px) 0 0!important;
  overflow:hidden!important;
}
.aakramsearch-v130 .aakramsearch-info{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  padding:5px 6px 7px!important;
}
.aakramsearch-v130 .aakramsearch-name{
  display:-webkit-box!important;
  font-size:var(--akram-search-name-size,10px)!important;
  line-height:calc(var(--akram-search-name-size,10px) + 3px)!important;
  font-weight:600!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  min-height:0!important;
  margin:0!important;
}
.aakramsearch-v130 .aakramsearch-reference{
  display:block!important;
  font-size:var(--akram-search-ref-size,9px)!important;
  line-height:calc(var(--akram-search-ref-size,9px) + 3px)!important;
  margin-top:2px!important;
}
.aakramsearch-v130 .aakramsearch-price{
  display:block!important;
  font-size:var(--akram-search-price-size,12px)!important;
  line-height:calc(var(--akram-search-price-size,12px) + 4px)!important;
  margin-top:3px!important;
  margin-bottom:0!important;
}
.aakramsearch-v130 .aakramsearch-card-actions{right:6px!important;top:6px!important;gap:5px!important}
.aakramsearch-v130 .aakramsearch-action{width:32px!important;height:32px!important;padding:6px!important}
.aakramsearch-result-card{border-radius:var(--akram-search-card-radius,12px)!important;overflow:hidden!important}
.aakramsearch-result-image{border-radius:var(--akram-search-image-radius,12px) var(--akram-search-image-radius,12px) 0 0!important}
@media(max-width:767px){
  .aakramsearch-v130 .aakramsearch-name{font-size:11px!important;line-height:14px!important}
  .aakramsearch-v130 .aakramsearch-reference{font-size:9px!important;line-height:12px!important}
  .aakramsearch-v130 .aakramsearch-price{font-size:12px!important;line-height:15px!important}
}


/* v1.2 final visual system: configurable five/six-column desktop, auto-height panel,
   aligned cards, bottom actions, full colour controls, second-image hover. */
.aakramsearch-floating-hidden{visibility:hidden!important;pointer-events:none!important}
.aakramsearch-panel.aakramsearch-v130{background:var(--akram-search-panel-bg,#fff)!important}
.aakramsearch-v130 .aakramsearch-head{color:var(--akram-search-header-text,#666)!important;background:var(--akram-search-panel-bg,#fff)!important}
.aakramsearch-v130 .aakramsearch-body,.aakramsearch-v130 .aakramsearch-foot{background:var(--akram-search-panel-bg,#fff)!important}
.aakramsearch-v130 .aakramsearch-body.is-results{grid-template-columns:repeat(var(--akram-search-columns,5),minmax(0,1fr))!important;align-items:stretch!important}
.aakramsearch-v130 .aakramsearch-item,.aakramsearch-result-card{background:var(--akram-search-card-bg,#fff)!important;border-color:var(--akram-search-card-border,#e5e5e5)!important;height:100%!important}
.aakramsearch-v130 .aakramsearch-card-main,.aakramsearch-result-main{display:flex!important;flex-direction:column!important;min-height:0!important;flex:1 1 auto!important}
.aakramsearch-v130 .aakramsearch-info{min-height:64px!important;justify-content:flex-start!important}
.aakramsearch-v130 .aakramsearch-name,.aakramsearch-result-name{color:var(--akram-search-name,#111)!important}
.aakramsearch-v130 .aakramsearch-reference,.aakramsearch-result-ref{color:var(--akram-search-ref,#888)!important}
.aakramsearch-v130 .aakramsearch-price,.aakramsearch-result-price{color:var(--akram-search-price,#d62828)!important}
.aakramsearch-v130 .aakramsearch-all{background:var(--akram-search-all-bg,#0089a9)!important;color:var(--akram-search-all-text,#fff)!important}
.aakramsearch-action.aakramsearch-quick{background:var(--akram-search-quick-bg,#fff)!important;color:var(--akram-search-quick-icon,#222)!important}
.aakramsearch-action.aakramsearch-cart{background:var(--akram-search-cart,#0089a9)!important;color:var(--akram-search-cart-icon,#fff)!important}
.aakramsearch-result-actions .aakramsearch-action.aakramsearch-result-quick{background:var(--akram-search-quick-bg,#fff)!important;color:var(--akram-search-quick-icon,#222)!important}
.aakramsearch-v130 .aakramsearch-primary-image,.aakramsearch-result-card .aakramsearch-primary-image{transition:opacity .18s ease,transform .18s ease}
.aakramsearch-v130 .aakramsearch-secondary-image,.aakramsearch-result-card .aakramsearch-secondary-image{background:var(--akram-search-card-bg,#fff)}
.aakramsearch-v130 .aakramsearch-item.aakramsearch-alt-ready:hover .aakramsearch-primary-image,
.aakramsearch-result-card.aakramsearch-alt-ready:hover .aakramsearch-primary-image{opacity:0}
.aakramsearch-v130 .aakramsearch-item.aakramsearch-alt-ready:hover .aakramsearch-secondary-image,
.aakramsearch-result-card.aakramsearch-alt-ready:hover .aakramsearch-secondary-image{opacity:1}

/* Actions: default is a clean bottom row; user may change it in module settings. */
body[data-akram-action-position="bottom-center"] .aakramsearch-card-actions,
body[data-akram-action-position="bottom-center"] .aakramsearch-result-actions{
  position:static!important;display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:8px!important;transform:none!important;margin:5px 7px 8px!important;order:3!important;
}
body[data-akram-action-position="bottom-corners"] .aakramsearch-card-actions,
body[data-akram-action-position="bottom-corners"] .aakramsearch-result-actions{
  position:static!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;transform:none!important;margin:5px 8px 8px!important;order:3!important;
}
body[data-akram-action-position="top-right"] .aakramsearch-card-actions,
body[data-akram-action-position="top-right"] .aakramsearch-result-actions{position:absolute!important;right:6px!important;top:6px!important;left:auto!important;bottom:auto!important;display:flex!important;flex-direction:column!important;gap:5px!important;margin:0!important;z-index:8!important}

/* Full results cards use the same visual language and keep text/price aligned. */
.aakramsearch-result-card{display:flex!important;flex-direction:column!important;padding:8px!important}
.aakramsearch-result-main{height:100%!important}
.aakramsearch-result-name{min-height:38px!important}
.aakramsearch-result-ref{min-height:16px!important}
.aakramsearch-result-bottom{margin-top:auto!important;padding-top:6px!important}

/* Responsive desktop / tablet / mobile. Desktop column count is configurable. */
@media(max-width:1199px) and (min-width:992px){.aakramsearch-v130 .aakramsearch-body.is-results{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:991px) and (min-width:768px){.aakramsearch-v130 .aakramsearch-body.is-results{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:767px){
 .aakramsearch-v130 .aakramsearch-body.is-results{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .aakramsearch-v130 .aakramsearch-info{min-height:59px!important}
 body[data-akram-action-position="bottom-center"] .aakramsearch-card-actions,body[data-akram-action-position="bottom-center"] .aakramsearch-result-actions{margin:4px 5px 6px!important;gap:6px!important}
 body[data-akram-action-position="bottom-corners"] .aakramsearch-card-actions,body[data-akram-action-position="bottom-corners"] .aakramsearch-result-actions{margin:4px 6px 6px!important}
}


/* v1.3 premium visual correction: no crop, fully rounded UI, image-overlay actions. */
.aakramsearch-ownbox{
  height:var(--akram-search-box-height,56px)!important;
  border-radius:var(--akram-search-box-radius,16px)!important;
  overflow:hidden!important;
  border:1px solid #dedede!important;
}
.aakramsearch-own-input{
  height:calc(var(--akram-search-box-height,56px) - 2px)!important;
  line-height:calc(var(--akram-search-box-height,56px) - 2px)!important;
  border-radius:var(--akram-search-box-radius,16px)!important;
}
.aakramsearch-own-submit{height:calc(var(--akram-search-box-height,56px) - 2px)!important;width:calc(var(--akram-search-icon-size,22px) + 36px)!important}
.aakramsearch-own-submit span{
  width:var(--akram-search-icon-size,22px)!important;
  height:var(--akram-search-icon-size,22px)!important;
  left:50%!important;top:50%!important;transform:translate(-55%,-55%)!important;
  border-color:var(--akram-search-icon-color,#0089a9)!important;
}
.aakramsearch-own-submit span:after{background:var(--akram-search-icon-color,#0089a9)!important}

.aakramsearch-panel.aakramsearch-v130{
  border-radius:var(--akram-search-panel-radius,16px)!important;
  z-index:2147483644!important;
  overflow:hidden!important;
}
.aakramsearch-v130 .aakramsearch-head{border-radius:var(--akram-search-panel-radius,16px) var(--akram-search-panel-radius,16px) 0 0!important}
.aakramsearch-v130 .aakramsearch-foot{padding:10px 18px 14px!important}
.aakramsearch-v130 .aakramsearch-all{border-radius:var(--akram-search-all-radius,12px)!important}
.aakramsearch-v130 .aakramsearch-body{scrollbar-gutter:stable}

.aakramsearch-v130 .aakramsearch-item,
.aakramsearch-result-card{padding:0!important;border-radius:var(--akram-search-card-radius,15px)!important;overflow:hidden!important;position:relative!important}
.aakramsearch-card-media,.aakramsearch-result-media{position:relative!important;width:100%!important;min-width:0!important;background:var(--akram-search-card-bg,#fff)!important}
.aakramsearch-image-link,.aakramsearch-result-image{display:block!important;width:100%!important;text-decoration:none!important}
.aakramsearch-v130 .aakramsearch-image,.aakramsearch-result-image{
  width:100%!important;aspect-ratio:1/1!important;height:auto!important;margin:0!important;
  overflow:hidden!important;background:#fff!important;border-radius:var(--akram-search-image-radius,15px)!important;
}
.aakramsearch-v130 .aakramsearch-image img,
.aakramsearch-result-image img,
.aakramsearch-primary-image,.aakramsearch-secondary-image{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;display:block!important;
}
.aakramsearch-secondary-image{position:absolute!important;inset:0!important}
.aakramsearch-info-link,.aakramsearch-result-info{display:block!important;text-decoration:none!important;color:inherit!important;min-width:0!important}
.aakramsearch-v130 .aakramsearch-info{padding:7px 8px 9px!important;min-height:67px!important}
.aakramsearch-result-info{padding:8px 10px 10px!important;display:flex!important;flex-direction:column!important;min-height:82px!important}

/* Buttons float on the image instead of consuming card height. */
.aakramsearch-card-actions,.aakramsearch-result-actions{
  position:absolute!important;z-index:12!important;margin:0!important;display:flex!important;gap:7px!important;
  pointer-events:auto!important;
}
body[data-akram-action-position="bottom-center"] .aakramsearch-card-actions,
body[data-akram-action-position="bottom-center"] .aakramsearch-result-actions{
  left:50%!important;right:auto!important;top:auto!important;bottom:10px!important;transform:translateX(-50%)!important;
  flex-direction:row!important;justify-content:center!important;
}
body[data-akram-action-position="bottom-corners"] .aakramsearch-card-actions,
body[data-akram-action-position="bottom-corners"] .aakramsearch-result-actions{
  left:10px!important;right:10px!important;top:auto!important;bottom:10px!important;transform:none!important;
  flex-direction:row!important;justify-content:space-between!important;
}
body[data-akram-action-position="top-right"] .aakramsearch-card-actions,
body[data-akram-action-position="top-right"] .aakramsearch-result-actions{
  left:auto!important;right:9px!important;top:9px!important;bottom:auto!important;transform:none!important;flex-direction:column!important;
}
.aakramsearch-action{
  width:34px!important;height:34px!important;border-radius:999px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.18)!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.aakramsearch-action.aakramsearch-quick,.aakramsearch-result-actions .aakramsearch-result-quick{background:rgba(255,255,255,.92)!important}

/* Full results page now uses the same premium visual language as instant search. */
.aakramsearch-results-grid{grid-template-columns:repeat(var(--akram-search-results-columns,4),minmax(0,1fr))!important;gap:18px!important}
.aakramsearch-result-card{display:flex!important;flex-direction:column!important;background:var(--akram-search-card-bg,#fff)!important;border:1px solid var(--akram-search-card-border,#e5e5e5)!important}
.aakramsearch-result-name{color:var(--akram-search-name,#111)!important;font-weight:600!important}
.aakramsearch-result-ref{color:var(--akram-search-ref,#888)!important}
.aakramsearch-result-bottom{margin-top:auto!important}

/* Round every visible control in Akram Search; no sharp-edge visual language. */
.aakramsearch-filter-sidebar,.aakramsearch-facet,.aakramsearch-price-filter input,.aakramsearch-price-apply,
.aakramsearch-clear-filters,.aakramsearch-filter-toggle,.aakramsearch-per-page-select,
.aakramsearch-pagination a,.aakramsearch-pagination span,.aakramsearch-facet-search{
  border-radius:10px!important;
}
.aakramsearch-filter-sidebar{overflow:hidden auto!important}
.aakramsearch-quick-dialog{border-radius:var(--akram-search-panel-radius,16px)!important}

@media(max-width:1199px) and (min-width:992px){.aakramsearch-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:991px) and (min-width:768px){.aakramsearch-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:767px){
  .aakramsearch-ownbox{height:var(--akram-search-box-height,48px)!important;border-radius:var(--akram-search-box-radius,14px)!important}
  .aakramsearch-own-input{height:calc(var(--akram-search-box-height,48px) - 2px)!important;line-height:calc(var(--akram-search-box-height,48px) - 2px)!important}
  .aakramsearch-panel.aakramsearch-v130{border-radius:14px!important}
  .aakramsearch-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .aakramsearch-action{width:31px!important;height:31px!important;padding:6px!important}
}


/* v1.3.2 MOBILE SAFETY LAYER
   Authoritative rules placed last to prevent Electron/legacy module CSS from
   collapsing or stacking instant-search products on narrow screens. */
@media (max-width:767px){
  .aakramsearch-panel.aakramsearch-v130{
    box-sizing:border-box!important;
    overflow:hidden!important;
    max-width:calc(100vw - 12px)!important;
    min-width:0!important;
  }
  .aakramsearch-v130 .aakramsearch-head,
  .aakramsearch-v130 .aakramsearch-foot{
    flex:0 0 auto!important;
    min-width:0!important;
  }
  .aakramsearch-v130 .aakramsearch-body{
    display:block!important;
    flex:1 1 auto!important;
    min-height:0!important;
    min-width:0!important;
    width:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    padding:8px!important;
    -webkit-overflow-scrolling:touch;
  }
  .aakramsearch-v130 .aakramsearch-body.is-results{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:max-content!important;
    align-items:start!important;
    align-content:start!important;
    justify-items:stretch!important;
    gap:8px!important;
  }
  .aakramsearch-v130 .aakramsearch-item{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    transform:none!important;
    float:none!important;
    clear:none!important;
    overflow:hidden!important;
  }
  .aakramsearch-v130 .aakramsearch-card-main,
  .aakramsearch-v130 .aakramsearch-card-media,
  .aakramsearch-v130 .aakramsearch-image-link,
  .aakramsearch-v130 .aakramsearch-info-link,
  .aakramsearch-v130 .aakramsearch-info{
    position:relative!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    float:none!important;
    transform:none!important;
  }
  .aakramsearch-v130 .aakramsearch-card-media{
    flex:0 0 auto!important;
    overflow:hidden!important;
  }
  .aakramsearch-v130 .aakramsearch-image{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1/1!important;
    overflow:hidden!important;
    margin:0!important;
  }
  .aakramsearch-v130 .aakramsearch-image img,
  .aakramsearch-v130 .aakramsearch-primary-image,
  .aakramsearch-v130 .aakramsearch-secondary-image{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  .aakramsearch-v130 .aakramsearch-info{
    display:flex!important;
    flex-direction:column!important;
    flex:0 0 auto!important;
    padding:6px 7px 8px!important;
  }
  .aakramsearch-v130 .aakramsearch-name{
    display:-webkit-box!important;
    width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    white-space:normal!important;
    word-break:normal!important;
  }
  .aakramsearch-v130 .aakramsearch-reference,
  .aakramsearch-v130 .aakramsearch-price{
    position:static!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  .aakramsearch-v130 .aakramsearch-card-actions{
    z-index:12!important;
  }
  body[data-akram-action-position="bottom-center"] .aakramsearch-card-actions{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:8px!important;
    transform:translateX(-50%)!important;
    margin:0!important;
    display:flex!important;
    flex-direction:row!important;
  }
  body[data-akram-action-position="bottom-corners"] .aakramsearch-card-actions{
    position:absolute!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:8px!important;
    transform:none!important;
    margin:0!important;
    display:flex!important;
    justify-content:space-between!important;
  }
  body[data-akram-action-position="top-right"] .aakramsearch-card-actions{
    position:absolute!important;
    left:auto!important;
    right:7px!important;
    top:7px!important;
    bottom:auto!important;
    transform:none!important;
    margin:0!important;
  }
  .aakramsearch-v130 .aakramsearch-action{
    flex:0 0 auto!important;
    width:30px!important;
    height:30px!important;
  }
  .aakramsearch-v130 .aakramsearch-foot{
    padding:8px!important;
  }
  .aakramsearch-v130 .aakramsearch-all{
    width:100%!important;
    margin:0!important;
  }

  /* Full-results screen mobile grid safety */
  .aakramsearch-results-layout,
  .aakramsearch-results-main,
  .aakramsearch-results-grid{
    min-width:0!important;
    max-width:100%!important;
  }
  .aakramsearch-results-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:max-content!important;
    align-items:start!important;
    gap:10px!important;
  }
  .aakramsearch-result-card{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    float:none!important;
    transform:none!important;
    overflow:hidden!important;
  }
  .aakramsearch-result-media,
  .aakramsearch-result-main,
  .aakramsearch-result-image,
  .aakramsearch-result-info{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
  }
  .aakramsearch-result-image{
    position:relative!important;
    aspect-ratio:1/1!important;
    overflow:hidden!important;
  }
  .aakramsearch-result-image img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  .aakramsearch-result-info{
    display:flex!important;
    flex-direction:column!important;
    padding:7px 8px 9px!important;
  }
  .aakramsearch-result-actions{
    z-index:12!important;
  }
}

@media (max-width:380px){
  .aakramsearch-v130 .aakramsearch-body{padding:6px!important}
  .aakramsearch-v130 .aakramsearch-body.is-results{gap:6px!important}
  .aakramsearch-v130 .aakramsearch-info{padding:5px 6px 7px!important}
  .aakramsearch-v130 .aakramsearch-name{font-size:10px!important;line-height:13px!important}
  .aakramsearch-v130 .aakramsearch-reference{font-size:8px!important;line-height:11px!important}
  .aakramsearch-v130 .aakramsearch-price{font-size:11px!important;line-height:14px!important}
  .aakramsearch-v130 .aakramsearch-action{width:28px!important;height:28px!important;padding:5px!important}
  .aakramsearch-results-grid{gap:7px!important}
}


/* ============================================================
   Akram Search 1.3.3 FINAL ACTION + MOBILE STABILITY LAYER
   Quick View LEFT + Cart RIGHT, centered over bottom of image.
   These rules intentionally live last and override old options.
   ============================================================ */

/* Media is the positioning box for the two floating actions. */
.aakramsearch-v130 .aakramsearch-card-media,
.aakramsearch-result-media{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  border-radius:var(--akram-search-image-radius,15px) var(--akram-search-image-radius,15px) 0 0!important;
}

/* Always keep both actions on the IMAGE, centered at the bottom.
   DOM order is Quick View first, Cart second. */
.aakramsearch-v130 .aakramsearch-card-actions,
.aakramsearch-result-actions,
body[data-akram-action-position] .aakramsearch-card-actions,
body[data-akram-action-position] .aakramsearch-result-actions{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:10px!important;
  transform:translateX(-50%)!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:auto!important;
  height:auto!important;
  z-index:50!important;
  pointer-events:auto!important;
}

.aakramsearch-v130 .aakramsearch-card-actions .aakramsearch-quick,
.aakramsearch-result-actions .aakramsearch-result-quick{order:1!important}
.aakramsearch-v130 .aakramsearch-card-actions .aakramsearch-cart,
.aakramsearch-result-actions .aakramsearch-result-cart{order:2!important}

.aakramsearch-v130 .aakramsearch-card-actions .aakramsearch-action,
.aakramsearch-result-actions .aakramsearch-action{
  position:relative!important;
  inset:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  border-radius:999px!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  box-shadow:0 3px 12px rgba(0,0,0,.22)!important;
}

/* Ensure image always stays inside its own card and actions remain above it. */
.aakramsearch-v130 .aakramsearch-image,
.aakramsearch-result-image{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  overflow:hidden!important;
  margin:0!important;
}
.aakramsearch-v130 .aakramsearch-image img,
.aakramsearch-result-image img,
.aakramsearch-v130 .aakramsearch-primary-image,
.aakramsearch-v130 .aakramsearch-secondary-image,
.aakramsearch-result-card .aakramsearch-primary-image,
.aakramsearch-result-card .aakramsearch-secondary-image{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Give text enough room so reference + price never get clipped. */
.aakramsearch-v130 .aakramsearch-info{
  min-height:76px!important;
  height:auto!important;
  overflow:visible!important;
  padding:7px 8px 9px!important;
}
.aakramsearch-result-info{
  min-height:88px!important;
  height:auto!important;
  overflow:visible!important;
}
.aakramsearch-v130 .aakramsearch-price,
.aakramsearch-result-price{
  display:block!important;
  position:static!important;
  margin-top:3px!important;
  margin-bottom:0!important;
  overflow:visible!important;
}

/* ---------- MOBILE: hard 2-column layout, no overlap ---------- */
@media (max-width:767px){
  .aakramsearch-panel.aakramsearch-v130{
    left:6px!important;
    right:6px!important;
    width:auto!important;
    max-width:calc(100vw - 12px)!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  .aakramsearch-v130 .aakramsearch-body{
    width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    padding:7px!important;
  }

  .aakramsearch-v130 .aakramsearch-body.is-results{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:max-content!important;
    gap:7px!important;
    align-items:start!important;
    align-content:start!important;
    justify-items:stretch!important;
    width:100%!important;
    min-width:0!important;
  }

  .aakramsearch-v130 .aakramsearch-item{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    clear:none!important;
    transform:none!important;
    overflow:hidden!important;
    align-self:start!important;
  }

  .aakramsearch-v130 .aakramsearch-card-main,
  .aakramsearch-v130 .aakramsearch-card-media,
  .aakramsearch-v130 .aakramsearch-image-link,
  .aakramsearch-v130 .aakramsearch-info-link,
  .aakramsearch-v130 .aakramsearch-info{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    float:none!important;
    transform:none!important;
  }

  .aakramsearch-v130 .aakramsearch-image{
    aspect-ratio:1/1!important;
  }

  .aakramsearch-v130 .aakramsearch-info{
    display:flex!important;
    flex-direction:column!important;
    min-height:70px!important;
    padding:6px 7px 8px!important;
  }

  .aakramsearch-v130 .aakramsearch-name{
    display:-webkit-box!important;
    width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow:hidden!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }

  .aakramsearch-v130 .aakramsearch-reference,
  .aakramsearch-v130 .aakramsearch-price{
    position:static!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }

  .aakramsearch-v130 .aakramsearch-card-actions,
  body[data-akram-action-position] .aakramsearch-card-actions{
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:7px!important;
    transform:translateX(-50%)!important;
    gap:6px!important;
  }

  .aakramsearch-v130 .aakramsearch-card-actions .aakramsearch-action{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    padding:6px!important;
  }

  /* Full search-results screen */
  .aakramsearch-results-layout,
  .aakramsearch-results-main,
  .aakramsearch-results-grid{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  .aakramsearch-results-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:max-content!important;
    gap:8px!important;
    align-items:start!important;
  }

  .aakramsearch-result-card{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    transform:none!important;
    overflow:hidden!important;
  }

  .aakramsearch-result-media,
  .aakramsearch-result-image,
  .aakramsearch-result-info{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
  }

  .aakramsearch-result-image{
    aspect-ratio:1/1!important;
  }

  .aakramsearch-result-info{
    display:flex!important;
    flex-direction:column!important;
    min-height:76px!important;
    padding:6px 7px 8px!important;
  }

  .aakramsearch-result-actions,
  body[data-akram-action-position] .aakramsearch-result-actions{
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:7px!important;
    transform:translateX(-50%)!important;
    gap:6px!important;
  }

  .aakramsearch-result-actions .aakramsearch-action{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    padding:6px!important;
  }
}

@media (max-width:380px){
  .aakramsearch-v130 .aakramsearch-body{padding:5px!important}
  .aakramsearch-v130 .aakramsearch-body.is-results{gap:5px!important}
  .aakramsearch-v130 .aakramsearch-info{min-height:66px!important;padding:5px 6px 7px!important}
  .aakramsearch-v130 .aakramsearch-name{font-size:10px!important;line-height:13px!important}
  .aakramsearch-v130 .aakramsearch-reference{font-size:8px!important;line-height:11px!important}
  .aakramsearch-v130 .aakramsearch-price{font-size:11px!important;line-height:14px!important}
  .aakramsearch-v130 .aakramsearch-card-actions .aakramsearch-action,
  .aakramsearch-result-actions .aakramsearch-action{
    width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:5px!important
  }
}


/* ==========================================================
   Akram Search 1.3.4 — clean full-width VEDI TUTTI page
   Built-in Akram Search facets/sidebar are intentionally gone.
   ========================================================== */
.aakramsearch-results-page.aakramsearch-no-sidebar{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-layout{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-main{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  grid-template-columns:repeat(var(--akram-search-results-columns,4),minmax(0,1fr))!important;
}
/* No old filter UI can occupy space even if a theme/cache retained markup. */
.aakramsearch-results-page .aakramsearch-filter-sidebar,
.aakramsearch-results-page .aakramsearch-filter-toggle,
.aakramsearch-results-page .aakramsearch-filter-backdrop{
  display:none!important;
}
@media(max-width:1199px) and (min-width:992px){
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:991px) and (min-width:768px){
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* ==========================================================
   Akram Search 1.3.5 — clean premium full-results canvas
   One white rounded surface, four large desktop cards.
   ========================================================== */
body.aakramsearch-results-viewport-fit{
  overflow-x:hidden!important;
}

.aakramsearch-results-page.aakramsearch-no-sidebar{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-top:0!important;
  margin-bottom:24px!important;
  padding:20px!important;
  background:var(--akram-search-results-panel-bg,#fff)!important;
  border-radius:var(--akram-search-results-panel-radius,15px)!important;
  box-shadow:0 2px 14px rgba(0,0,0,.055)!important;
  overflow:hidden!important;
}

.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-topbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  width:100%!important;
  margin:0 0 18px!important;
  padding:0!important;
}

.aakramsearch-results-page .aakramsearch-results-summary{
  color:var(--akram-search-results-summary-color,#666)!important;
  font-size:var(--akram-search-results-summary-size,15px)!important;
  line-height:1.35!important;
  font-weight:500!important;
  margin:0!important;
}

.aakramsearch-results-page .aakramsearch-per-page{
  margin-left:auto!important;
}

.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-layout,
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:start!important;
}

/* Bigger four-column product cards. */
.aakramsearch-results-page .aakramsearch-result-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  align-self:start!important;
}

.aakramsearch-results-page .aakramsearch-result-image{
  width:100%!important;
  aspect-ratio:1/1!important;
  height:auto!important;
}

.aakramsearch-results-page .aakramsearch-result-info{
  min-height:96px!important;
  padding:10px 11px 12px!important;
}

.aakramsearch-results-page .aakramsearch-result-name{
  font-size:15px!important;
  line-height:19px!important;
}

.aakramsearch-results-page .aakramsearch-result-ref{
  margin-top:5px!important;
}

.aakramsearch-results-page .aakramsearch-result-price{
  margin-top:6px!important;
  font-size:17px!important;
}

/* Theme/Electron filter remnants can never reserve space here. */
.aakramsearch-results-page .aakramsearch-filter-sidebar,
.aakramsearch-results-page .aakramsearch-filter-toggle,
.aakramsearch-results-page .aakramsearch-filter-backdrop{
  display:none!important;
}

/* Full-results page owns the visual canvas, so theme fixed side widgets stay out. */
body.aakramsearch-results-viewport-fit .aakramsearch-floating-hidden{
  display:none!important;
}

@media(max-width:1199px) and (min-width:992px){
  .aakramsearch-results-page.aakramsearch-no-sidebar{padding:16px!important}
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:15px!important;
  }
}
@media(max-width:991px) and (min-width:768px){
  .aakramsearch-results-page.aakramsearch-no-sidebar{padding:14px!important}
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
@media(max-width:767px){
  .aakramsearch-results-page.aakramsearch-no-sidebar{
    padding:9px!important;
    border-radius:12px!important;
  }
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-topbar{
    margin-bottom:10px!important;
    gap:8px!important;
  }
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .aakramsearch-results-page .aakramsearch-result-info{
    min-height:76px!important;
    padding:7px 8px 9px!important;
  }
  .aakramsearch-results-page .aakramsearch-result-name{
    font-size:12px!important;
    line-height:16px!important;
  }
  .aakramsearch-results-page .aakramsearch-result-price{
    font-size:14px!important;
  }
}


/* Akram Search 1.3.6 — true viewport-width full results page. */
@media (min-width:992px){
  .aakramsearch-results-page.aakramsearch-no-sidebar{
    /* Actual width/position is applied by JS with !important after measuring viewport. */
    box-sizing:border-box!important;
  }
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    width:100%!important;
    gap:20px!important;
  }
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-result-card{
    width:100%!important;
    max-width:none!important;
  }
}


/* ==========================================================
   Akram Search 1.3.7 — equal-height full-results cards
   Every card in the same grid row stretches to the same height.
   Reference + price stay aligned at the bottom.
   ========================================================== */
.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
  align-items:stretch!important;
}

.aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-result-card{
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  height:100%!important;
  min-height:100%!important;
}

.aakramsearch-results-page .aakramsearch-result-main{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
}

.aakramsearch-results-page .aakramsearch-result-info{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  height:auto!important;
  min-height:112px!important;
}

.aakramsearch-results-page .aakramsearch-result-name{
  min-height:57px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.aakramsearch-results-page .aakramsearch-result-ref{
  margin-top:auto!important;
}

.aakramsearch-results-page .aakramsearch-result-price{
  margin-top:6px!important;
  margin-bottom:0!important;
}

@media(max-width:767px){
  .aakramsearch-results-page .aakramsearch-result-info{
    min-height:88px!important;
  }
  .aakramsearch-results-page .aakramsearch-result-name{
    min-height:48px!important;
    -webkit-line-clamp:3!important;
  }
}


/* AKRAM SEARCH GOLDMINE 2.0 */
body.aakramsearch-results-viewport-fit .aakramsearch-results-host{
  box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;
  background:transparent!important;background-color:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important;
}
@media(min-width:992px){
  .aakramsearch-results-page.aakramsearch-no-sidebar .aakramsearch-results-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:none!important;gap:20px!important;
  }
}
.aakramsearch-fallback-note{
  grid-column:1/-1!important;width:100%!important;box-sizing:border-box!important;padding:10px 13px!important;margin:0 0 10px!important;
  border:1px solid rgba(0,0,0,.08)!important;border-radius:12px!important;background:rgba(0,0,0,.025)!important;
  color:var(--akram-search-header-text,#666)!important;font-size:13px!important;line-height:1.4!important;
}
.aakramsearch-v130 .aakramsearch-body.is-skeleton{display:grid!important;grid-template-columns:repeat(var(--akram-search-instant-columns,5),minmax(0,1fr))!important;gap:14px!important}
.aakramsearch-skeleton-card{display:flex!important;flex-direction:column!important;min-width:0!important;padding:0 0 10px!important;background:#fff!important;border:1px solid #ececec!important;border-radius:var(--akram-search-card-radius,15px)!important;overflow:hidden!important}
.aakramsearch-skeleton-image,.aakramsearch-skeleton-line{display:block!important;background:linear-gradient(90deg,#f0f0f0 25%,#fafafa 38%,#f0f0f0 63%)!important;background-size:400% 100%!important;animation:akramSkeleton 1.15s ease-in-out infinite!important}
.aakramsearch-skeleton-image{width:100%!important;aspect-ratio:1/1!important}.aakramsearch-skeleton-line{height:10px!important;margin:8px 9px 0!important;border-radius:8px!important}.aakramsearch-skeleton-line.w85{width:calc(85% - 18px)!important}.aakramsearch-skeleton-line.w55{width:calc(55% - 18px)!important}.aakramsearch-skeleton-line.w35{width:calc(35% - 18px)!important}
@keyframes akramSkeleton{0%{background-position:100% 0}100%{background-position:0 0}}
@media(max-width:991px) and (min-width:768px){.aakramsearch-v130 .aakramsearch-body.is-skeleton{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:767px){.aakramsearch-v130 .aakramsearch-body.is-skeleton{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}}


/* Akram Search 2.0.1 — safe second-image hover.
   Never hide the primary image unless the alternate image loaded successfully. */
.aakramsearch-primary-image{opacity:1!important}
.aakramsearch-secondary-image{opacity:0!important;pointer-events:none!important}
.aakramsearch-item.aakramsearch-alt-ready:hover .aakramsearch-primary-image,
.aakramsearch-result-card.aakramsearch-alt-ready:hover .aakramsearch-primary-image{opacity:0!important}
.aakramsearch-item.aakramsearch-alt-ready:hover .aakramsearch-secondary-image,
.aakramsearch-result-card.aakramsearch-alt-ready:hover .aakramsearch-secondary-image{opacity:1!important}
