/* إضافات قالب «شركة» — أدراج القائمة والسلة وتناسق الصفحات الداخلية */
body.cmp{font-family:'Cairo',sans-serif;background:#f8f9fa;color:#111}
body.cmp.cmp-lock{overflow:hidden}
.cmp-page{min-height:50vh}
.cmp-back{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;transition:.2s;z-index:1990}
.cmp-back.is-on{opacity:1;visibility:visible}
.cmp-drawer{position:fixed;top:0;bottom:0;width:min(390px,92vw);background:#fff;color:#0f172a;z-index:2000;display:flex;flex-direction:column;transition:transform .25s ease;box-shadow:0 0 40px rgba(0,0,0,.25)}
.cmp-menu{right:0;transform:translateX(105%)}
.cmp-bag{left:0;transform:translateX(-105%)}
.cmp-drawer.is-on{transform:none}
.cmp-drawer-head{display:flex;align-items:center;gap:10px;padding:14px 16px;background:#0d0d0d;color:#fff;border-bottom:3px solid #d20a11}
.cmp-drawer-head strong{flex:1;font-weight:800}
.cmp-drawer-head .cmp-count{font-size:12px;color:#c9c9c9}
.cmp-drawer-head button{background:#1a1a1a;border:1px solid #2a2a2a;color:#fff;width:36px;height:36px;border-radius:10px;font-size:22px;line-height:1;cursor:pointer}
.cmp-m-search{display:flex;gap:6px;padding:12px 14px}
.cmp-m-search input{flex:1;border:1px solid #e6e8ec;background:#f4f5f7;border-radius:12px;padding:10px 12px;font-family:inherit}
.cmp-m-search input:focus{outline:none;border-color:#d00810;box-shadow:0 0 0 1px #d00810}
.cmp-m-search button{border:0;background:#d20a11;color:#fff;border-radius:12px;width:44px}
.cmp-m-links{display:grid;gap:8px;padding:6px 14px 18px;overflow:auto}
.cmp-m-links a{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e6e8ec;border-radius:14px;color:#111;text-decoration:none;font-weight:700;background:#fff}
.cmp-m-links a i{color:#d20a11;width:20px;text-align:center}
.cmp-m-links a:active{background:#f4f5f7}
.cmp-lines{flex:1;overflow:auto;padding:12px;display:grid;gap:10px;align-content:start}
.cmp-line{display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center;padding:8px;border:1px solid #e6e8ec;border-radius:12px;background:#fff;color:#0f172a !important;text-decoration:none}
.cmp-thumb{width:56px;height:56px;border-radius:10px;background:#f7f8fb;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cmp-thumb img{width:100%;height:100%;object-fit:contain}
.cmp-line-t b{display:block;font-size:13px;line-height:1.35;font-weight:800;color:#0f172a !important}
.cmp-line-t small{color:#64748b !important;font-weight:700}
.cmp-line strong{color:#e11d2e !important;font-size:13px;font-weight:900;white-space:nowrap}
.cmp-foot{padding:14px;border-top:1px solid #e6e8ec;display:grid;gap:8px;background:#fff}
.cmp-total{display:flex;justify-content:space-between;font-weight:800}
.cmp-total b{color:#b70000}
.cmp-btn{display:block;text-align:center;background:#d20a11;color:#fff;border-radius:12px;padding:12px;font-weight:800;text-decoration:none}
.cmp-btn:hover{background:#b0080e;color:#fff}
.cmp-ghost{display:block;text-align:center;border:1px solid #e6e8ec;border-radius:12px;padding:10px;color:#111;text-decoration:none;font-weight:700}
.cmp-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:30px;text-align:center}
.cmp-empty i{font-size:42px;color:#d20a11}
.cmp-empty .cmp-btn{width:100%}
/* شبكة المنتجات */
.home-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.home-products-grid .product-card{max-width:none;flex:none}
@media (max-width:576px){.home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
/* احتواء الصفحات الداخلية */
.cmp-page .wrap,.cmp-page .co,.cmp-page .vp{max-width:1180px;margin-inline:auto}
/* هيرو السلايدر — عرض كامل مثل /try + صورة داخل صندوق ثابت */
body.cmp .slideshow-full-wrapper,
body.cmp .hero-section-container{display:none!important}
body.cmp{
  --hh-shell-max:1600px;
  --hh-shell-pad:12px;
  overflow-x:clip;
}
body.cmp .hh-hero-wrap{
  position:relative;isolation:isolate;
  margin:0 calc(50% - 50vw);width:100vw;max-width:100vw;padding:0;
}
body.cmp #mainSlider.hh-hero{
  --hh-h:420px;
  --hh-img-w:560px;
  --hh-img-h:330px;
  width:100%;height:var(--hh-h)!important;min-height:var(--hh-h)!important;max-height:var(--hh-h)!important;
  border-radius:0;overflow:hidden;position:relative;
  box-shadow:none;background:var(--hh-hero-bg,#0b0a1b);
}
body.cmp #mainSlider.hh-hero .swiper-wrapper{height:100%!important}
body.cmp #mainSlider.hh-hero .swiper-slide,
body.cmp #mainSlider.hh-hero .hh-hero-slide{
  height:100%!important;box-sizing:border-box;
}
body.cmp #mainSlider.hh-hero.swiper-fade .swiper-slide{
  position:absolute!important;inset:0;width:100%;height:100%!important;
  pointer-events:none;opacity:0!important;
}
body.cmp #mainSlider.hh-hero.swiper-fade .swiper-slide-active,
body.cmp #mainSlider.hh-hero.swiper-fade .swiper-slide-duplicate-active{
  opacity:1!important;pointer-events:auto;z-index:2;
}
body.cmp #mainSlider.hh-hero .hh-hero-slide{
  background:
    radial-gradient(52% 64% at 24% 46%,rgba(124,104,255,.32),transparent 72%),
    var(--hh-hero-bg,#0b0a1b);
  overflow:hidden;
}
body.cmp #mainSlider.hh-hero .hh-hero-slide.has-photo::before{
  content:"";position:absolute;inset:0;background-image:var(--hh-hero-photo);background-size:cover;
  background-position:center;opacity:.12;pointer-events:none;z-index:0;
}
body.cmp #mainSlider.hh-hero .hh-hero-slide::after{
  content:""!important;position:absolute;inset:0;z-index:1;pointer-events:none;
  opacity:.42;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 72% 62% at 50% 45%,#000 18%,transparent 78%);
  mask-image:radial-gradient(ellipse 72% 62% at 50% 45%,#000 18%,transparent 78%);
}
body.cmp #mainSlider.hh-hero .hh-hero-in{
  position:relative;z-index:2;height:100%;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  align-items:center;gap:16px 28px;padding:28px 40px 36px;max-width:1480px;margin:0 auto;
  box-sizing:border-box;
}
body.cmp #mainSlider.hh-hero .hh-hero-copy{
  color:#fff;text-align:start;max-width:520px;justify-self:start;min-width:0;
}
body.cmp #mainSlider.hh-hero .hh-hero-title{
  margin:0 0 10px;font:900 clamp(1.35rem,2.5vw,2.2rem)/1.2 Cairo,sans-serif;
  color:#fff;opacity:1!important;transform:none!important;animation:none!important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
body.cmp #mainSlider.hh-hero .hh-hero-sub{
  margin:0 0 14px;font:600 clamp(13px,1.2vw,15.5px)/1.6 Cairo,sans-serif;
  color:#c9c4e8;opacity:1!important;transform:none!important;animation:none!important;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
body.cmp #mainSlider.hh-hero .hh-hero-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.cmp #mainSlider.hh-hero .hh-hero-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 16px;border-radius:12px;font:800 13.5px/1.3 Cairo,sans-serif;
  text-decoration:none;white-space:nowrap;height:auto;min-height:42px;
  opacity:1!important;transform:none!important;animation:none!important;
}
body.cmp #mainSlider.hh-hero .hh-hero-btn.primary{background:#fff;color:#2d1c95;border:0}
body.cmp #mainSlider.hh-hero .hh-hero-btn.primary:hover{filter:brightness(1.05)}
body.cmp #mainSlider.hh-hero .hh-hero-btn.ghost{
  background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.34);
}
body.cmp #mainSlider.hh-hero .hh-hero-btn.ghost:hover{background:rgba(255,255,255,.08)}
body.cmp #mainSlider.hh-hero .hh-hero-btn i{font-size:14px}
body.cmp #mainSlider.hh-hero .hh-hero-note{
  margin:8px 0 0;font:600 12px/1.4 Cairo,sans-serif;color:#b7b1d8;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.cmp #mainSlider.hh-hero .hh-hero-media,
body.cmp #mainSlider.hh-hero .hh-hero-stage{
  width:var(--hh-img-w);height:var(--hh-img-h);max-width:100%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto;padding:0;line-height:0;overflow:hidden;
}
body.cmp #mainSlider.hh-hero .hh-hero-media{position:relative;z-index:2;justify-self:center;flex:none}
body.cmp #mainSlider.hh-hero .hh-hero-media img,
body.cmp #mainSlider.hh-hero .hh-hero-device,
body.cmp #mainSlider.hh-hero .swiper-slide img{
  position:static!important;inset:auto!important;
  width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:center center!important;
  border-radius:0!important;display:block!important;margin:0;
  opacity:1!important;transform:none!important;animation:none!important;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.4));
}
/* إلغاء أي كادر هاتف قديم إن وُجد في الكاش */
body.cmp #mainSlider.hh-hero .hh-phone-shell{
  width:100%!important;height:100%!important;padding:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;
}
body.cmp #mainSlider.hh-hero .hh-phone-shell::before,
body.cmp #mainSlider.hh-hero .hh-phone-shell::after{content:none!important;display:none!important}
body.cmp #mainSlider.hh-hero .hh-hero-dots{
  position:absolute!important;left:0;right:0;bottom:8px!important;z-index:5;margin:0!important;
}
body.cmp #mainSlider.hh-hero .hh-hero-dots .swiper-pagination-bullet{
  width:7px;height:7px;background:#fff;opacity:.35;margin:0 3px!important;
}
body.cmp #mainSlider.hh-hero .hh-hero-dots .swiper-pagination-bullet-active{
  opacity:1;background:#fff;width:18px;border-radius:999px;
}
/* المحتوى تحت السلايدر يبقى داخل صدفة عادية */
body.cmp .hh-hero-wrap + .container{
  max-width:var(--hh-shell-max)!important;
  width:100%!important;
  margin-inline:auto!important;
  padding-inline:var(--hh-shell-pad)!important;
  padding-top:14px!important;
  margin-top:0!important;
}
body.cmp .hh-hero-wrap + .container > .featured-categories-strip{margin-top:0!important;padding-top:0!important}
body.cmp .hh-hero-wrap + .container .section-title{margin:4px 0 12px!important}
/* هاتف/تابلت: ارتفاع مرن، الصورة أولاً، محتوى غير مضغوط */
@media (max-width:939px){
  body.cmp .hh-hero-wrap{margin:0 calc(50% - 50vw);width:100vw;max-width:100vw;padding:0}
  body.cmp #mainSlider.hh-hero{
    --hh-img-w:min(360px,88vw);
    --hh-img-h:210px;
    height:auto!important;min-height:0!important;max-height:none!important;
    border-radius:0;
  }
  body.cmp #mainSlider.hh-hero .swiper-wrapper{height:auto!important}
  body.cmp #mainSlider.hh-hero .swiper-slide,
  body.cmp #mainSlider.hh-hero .hh-hero-slide{height:auto!important}
  body.cmp #mainSlider.hh-hero.swiper-fade .swiper-slide{
    position:absolute!important;inset:0 auto auto 0;width:100%;height:auto!important;
  }
  body.cmp #mainSlider.hh-hero.swiper-fade .swiper-slide-active,
  body.cmp #mainSlider.hh-hero.swiper-fade .swiper-slide-duplicate-active{
    position:relative!important;height:auto!important;
  }
  body.cmp #mainSlider.hh-hero .hh-hero-in{
    height:auto;grid-template-columns:1fr;align-content:start;justify-items:stretch;
    padding:18px 16px 30px;gap:14px;
  }
  /* الصورة في الأعلى إن وُجدت */
  body.cmp #mainSlider.hh-hero .hh-hero-media{order:1;margin:0 auto 2px}
  body.cmp #mainSlider.hh-hero .hh-hero-copy{order:2;max-width:none;width:100%}
  body.cmp #mainSlider.hh-hero .hh-hero-title{
    -webkit-line-clamp:3;font-size:1.35rem;margin-bottom:8px;
  }
  body.cmp #mainSlider.hh-hero .hh-hero-sub{
    -webkit-line-clamp:4;font-size:13.5px;margin-bottom:14px;line-height:1.65;
  }
  body.cmp #mainSlider.hh-hero .hh-hero-actions{width:100%;gap:10px}
  body.cmp #mainSlider.hh-hero .hh-hero-btn{
    flex:1;justify-content:center;padding:12px 14px;font-size:13.5px;min-height:44px;
    white-space:normal;text-align:center;
  }
  body.cmp #mainSlider.hh-hero .hh-hero-note{white-space:normal;margin-top:10px;line-height:1.45}
  body.cmp #mainSlider.hh-hero .hh-hero-dots{bottom:10px!important}
}
@media (max-width:520px){
  body.cmp{--hh-shell-pad:10px}
  body.cmp .hh-hero-wrap{margin:0 calc(50% - 50vw);width:100vw;max-width:100vw;padding:0}
  body.cmp .hh-hero-wrap + .container{padding-inline:var(--hh-shell-pad)!important}
  body.cmp #mainSlider.hh-hero{
    --hh-img-w:min(300px,86vw);
    --hh-img-h:190px;
    border-radius:0;
  }
  body.cmp #mainSlider.hh-hero .hh-hero-in{padding:14px 14px 28px;gap:12px}
  body.cmp #mainSlider.hh-hero .hh-hero-title{font-size:1.22rem}
  body.cmp #mainSlider.hh-hero .hh-hero-sub{font-size:13px}
  body.cmp #mainSlider.hh-hero .hh-hero-actions{flex-direction:column}
  body.cmp #mainSlider.hh-hero .hh-hero-btn{width:100%;flex:none}
  body.cmp #mainSlider.hh-hero .hh-hero-note{font-size:11.5px}
  body.cmp #mainSlider.hh-hero .hh-hero-dots{bottom:8px!important}
}

/* ===== هيدر HEIN v2 ===== */
body.cmp{
  --hh-red:var(--red,#d10a0a);--hh-red-dark:#a80707;--hh-red-soft:#fdeeee;
  --hh-ink:#0f1620;--hh-ink-2:#1a2430;--hh-bar:#e7e7e9;--hh-line:#e3e5e8;
  --hh-text:#161b22;--hh-muted:#6b7480;
}
body.cmp .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Solar / Iconify — حجم ثابت ومحاذاة واحدة */
body.cmp iconify-icon.co-ico{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:none;
  width:1.125em !important;
  height:1.125em !important;
  font-size:18px;
  line-height:1;
  color:inherit;
  vertical-align:middle;
  overflow:visible;
}
body.cmp iconify-icon.co-ico svg{
  width:100% !important;
  height:100% !important;
  display:block;
}
body.cmp .site-header svg,
body.cmp .cmp-drawer svg{
  width:1.125em;height:1.125em;flex:none;display:inline-block;vertical-align:middle;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
body.cmp .site-header{
  position:sticky;top:calc((var(--p1,0px) + var(--p2,38px)) * -1);z-index:1100;
  transition:box-shadow .2s;
}
body.cmp .site-header.stuck{box-shadow:0 6px 22px rgba(15,22,32,.22)}

/* 1) شريط العرض */
body.cmp .deal{
  height:var(--p1,42px);background:linear-gradient(90deg,#070b11,var(--hh-ink-2) 50%,#070b11);
  color:#fff;overflow:hidden;position:relative;border-bottom:2px solid var(--hh-red);transition:height .25s;
}
body.cmp .deal.gone{height:0;border-bottom-width:0}
body.cmp .deal-in{
  height:var(--p1,42px);display:flex;align-items:center;justify-content:center;gap:14px;
  padding:0 48px;font-weight:700;font-size:14px;white-space:nowrap;
}
body.cmp .deal-tag{display:flex;align-items:center;gap:6px;color:#ff6b6b;font-weight:800}
body.cmp .deal-tag iconify-icon.co-ico{font-size:15px}
body.cmp .deal-off{background:var(--hh-red);color:#fff;padding:1px 9px;border-radius:5px;font-weight:800}
body.cmp .deal-lbl{color:#b9c1cb;font-weight:600}
body.cmp .cd{display:flex;gap:6px;direction:rtl}
body.cmp .cd b{
  display:inline-flex;align-items:baseline;gap:3px;background:rgba(255,255,255,.1);
  border-radius:6px;padding:1px 8px;font-variant-numeric:tabular-nums;min-width:46px;justify-content:center;font-weight:800;
}
body.cmp .cd b i{font-style:normal;font-size:11px;font-weight:600;color:#b9c1cb}
body.cmp .deal-btn{
  background:#fff;color:var(--hh-ink);padding:3px 14px;border-radius:7px;font-weight:800;font-size:13px;
  text-decoration:none;transition:background .15s,color .15s;
}
body.cmp .deal-btn:hover{background:var(--hh-red);color:#fff}
body.cmp .deal-x{
  position:absolute;inset-block:0;left:6px;width:38px;display:grid;place-items:center;
  color:#b9c1cb;font-size:18px;border:0;background:none;border-radius:6px;cursor:pointer;
}
body.cmp .deal-x:hover{color:#fff;background:rgba(255,255,255,.1)}
body.cmp .deal.deal-compact .deal-tag .tt,
body.cmp .deal.deal-compact .deal-off{display:none}

/* 2) شريط الإعلانات — أفقي (يمين/يسار) أو عمودي (أعلى/أسفل) */
body.cmp .trust.hh-ticker,
body.cmp .hh-ticker{
  --tk-bg:#111111;--tk-fg:#ffffff;--tk-sec:40s;
  height:var(--p2,38px)!important;max-height:var(--p2,38px)!important;
  background:var(--tk-bg);color:var(--tk-fg);
  overflow:hidden!important;position:relative;font-weight:700;font-size:13.5px;
  line-height:var(--p2,38px);contain:paint;
}
/* أفقي — inline-block + مقطعان؛ لا Flex حتى لا يكسر RTL السطر الواحد */
body.cmp .hh-ticker-h .hh-ticker-viewport{
  display:block;width:100%;height:var(--p2,38px)!important;
  overflow:hidden!important;direction:ltr;unicode-bidi:isolate;
}
body.cmp .hh-ticker-h .hh-ticker-track{
  display:inline-block;white-space:nowrap!important;height:var(--p2,38px);
  line-height:var(--p2,38px);vertical-align:top;will-change:transform;
  animation:hhTickerRtl var(--tk-sec,40s) linear infinite;
}
body.cmp .hh-ticker-h.dir-ltr .hh-ticker-track{animation-name:hhTickerLtr}
body.cmp .hh-ticker-h:hover .hh-ticker-track{animation-play-state:paused}
@keyframes hhTickerRtl{
  from{transform:translate3d(-50%,0,0)}
  to{transform:translate3d(0,0,0)}
}
@keyframes hhTickerLtr{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}
body.cmp .hh-ticker-h .hh-ticker-unit{
  display:inline-block;white-space:nowrap!important;height:var(--p2,38px);
  line-height:var(--p2,38px);vertical-align:top;direction:rtl;unicode-bidi:isolate;
}
body.cmp .hh-ticker-h .hh-ticker-item{
  display:inline;padding:0 2px;font:700 13.5px/var(--p2,38px) Cairo,sans-serif;
  letter-spacing:.1px;white-space:nowrap!important;vertical-align:top;
  color:inherit;
}
body.cmp .hh-ticker-h .hh-ticker-sep{
  display:inline;padding:0 16px;opacity:.7;font-weight:800;user-select:none;
  white-space:nowrap!important;vertical-align:top;
}
/* عمودي — كما كان */
body.cmp .hh-ticker-vert .trust-track{transition:transform .5s cubic-bezier(.6,0,.2,1)}
body.cmp .hh-ticker-vert .trust-item{
  height:var(--p2,38px);display:flex;align-items:center;justify-content:center;
  gap:10px;padding:0 56px;white-space:nowrap;
}
body.cmp .hh-ticker-vert .trust-nav{
  position:absolute;top:50%;translate:0 -50%;width:30px;height:30px;display:grid;place-items:center;
  border-radius:50%;font-size:15px;opacity:.85;border:0;background:none;color:inherit;cursor:pointer;
}
body.cmp .hh-ticker-vert .trust-nav:hover{background:rgba(0,0,0,.18);opacity:1}
body.cmp .hh-ticker-vert .trust-nav.p{right:14px;rotate:-90deg}
body.cmp .hh-ticker-vert .trust-nav.n{left:14px;rotate:90deg}
@media (max-width:860px){
  body.cmp .hh-ticker-vert .trust-item{padding:0 44px;font-size:12.5px}
  body.cmp .hh-ticker-vert .trust-nav.p{right:6px}
  body.cmp .hh-ticker-vert .trust-nav.n{left:6px}
}
/* شريط الإعلانات محتوى إخباري — يبقى التمرير حتى مع reduce-motion في ويندوز */
@media (prefers-reduced-motion:reduce){
  body.cmp .hh-ticker-vert .trust-track{transition:none!important}
}

/* 3) الشريط الرئيسي */
body.cmp .hein-main{background:var(--hh-ink)}
body.cmp .hein-main .hein-wrap{
  display:flex;align-items:center;gap:22px;max-width:1440px;margin:0 auto;
  padding:14px 32px;transition:padding .2s;
}
body.cmp .site-header.stuck .hein-main .hein-wrap{padding-block:9px}
body.cmp .hein-logo{display:flex;align-items:center;gap:12px;flex:none;text-decoration:none;color:#fff}
body.cmp .hein-logo img{height:44px;display:block;transition:height .2s;object-fit:contain}
body.cmp .hein-logo .mark{
  font:800 38px/1 Arial Black,Arial,sans-serif;letter-spacing:1px;color:#fff;
  background:var(--hh-red);padding:2px 12px 6px;border-radius:6px;transition:font-size .2s;
}
body.cmp .site-header.stuck .hein-logo .mark{font-size:30px}
body.cmp .hein-logo small{color:#cfd5dc;font-weight:600;font-size:15px}
body.cmp .site-header.stuck .hein-logo small{display:none}

body.cmp .hein-search{
  flex:1;max-width:680px;margin-inline:auto;display:flex;align-items:center;
  background:#fff;border-radius:12px;border:2px solid transparent;padding:4px;height:50px;
  transition:border-color .15s,box-shadow .15s;position:relative;gap:0;overflow:hidden;
}
body.cmp .hein-search:focus-within{border-color:var(--hh-red);box-shadow:0 0 0 4px rgba(209,10,10,.18)}
body.cmp .hein-search input{
  flex:1;min-width:0;height:100%;border:0;padding:0 14px;font:600 14px Cairo,sans-serif;
  color:var(--hh-text);background:none;outline:0;border-radius:0;box-shadow:none;
}
body.cmp .hein-search input::placeholder{color:#8a919b}
body.cmp .hein-search kbd{
  font:700 12px Cairo,sans-serif;color:#8a919b;border:1px solid #d5d8dd;border-radius:5px;
  padding:0 8px;margin-inline-end:8px;pointer-events:none;height:22px;display:inline-flex;align-items:center;
}
body.cmp .hein-search:focus-within kbd{display:none}
body.cmp .hein-search .go-btn{
  height:100% !important;display:flex !important;align-items:center;gap:8px;padding:0 22px !important;
  background:var(--hh-red) !important;color:#fff !important;border-radius:8px !important;border:0 !important;
  font-weight:800;font-size:14.5px;margin:0 !important;width:auto !important;box-shadow:none !important;cursor:pointer;
}
body.cmp .hein-search .go-btn:hover{background:var(--hh-red-dark) !important}
body.cmp .hein-search .go-btn iconify-icon.co-ico{font-size:17px;color:#fff !important}

body.cmp .hein-actions{display:flex;align-items:center;gap:4px;flex:none}
body.cmp .hein-actions .act{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  color:#fff;font-weight:700;font-size:11.5px;
  padding:6px 10px;border-radius:10px;position:relative;line-height:1.15;min-width:54px;
  border:0;background:none;cursor:pointer;text-decoration:none;
}
body.cmp .hein-actions .act iconify-icon.co-ico{font-size:22px;color:#fff}
body.cmp .hein-actions .act:hover{background:rgba(255,255,255,.1);color:#fff}
body.cmp .hein-actions .badge{
  position:absolute;top:0;inset-inline-start:calc(50% + 6px);min-width:19px;height:19px;border-radius:10px;
  background:var(--hh-red);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;
  padding:0 5px;border:2px solid var(--hh-ink);
}
body.cmp .burger{display:none;color:#fff;font-size:28px;padding:6px;border:0;background:none;cursor:pointer}

/* 4) شريط التنقل رمادي */
body.cmp .hein-nav{background:var(--hh-bar);border-bottom:1px solid #d3d3d6}
body.cmp .hein-nav .hein-wrap{
  display:flex;align-items:center;gap:6px;max-width:1440px;margin:0 auto;
  padding:0 32px;min-height:58px;
}
body.cmp .hein-nav .cat{position:relative;flex:none;margin-inline-end:10px}
body.cmp .hein-nav .cat-btn{
  display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;
  background:var(--hh-red) !important;color:#fff !important;border-radius:9px;font-weight:800;font-size:15px;
  transition:background .15s;border:0 !important;cursor:pointer;font-family:Cairo,sans-serif;
  box-shadow:none !important;min-height:0 !important;
}
body.cmp .hein-nav .cat-btn iconify-icon.co-ico{color:#fff !important;font-size:17px}
body.cmp .hein-nav .cat-btn:hover,
body.cmp .hein-nav .cat.open .cat-btn{background:var(--hh-red-dark) !important;color:#fff !important}
body.cmp .hein-nav .cat-btn .chev{font-size:13px !important;transition:transform .2s}
body.cmp .hein-nav .cat.open .chev{transform:rotate(180deg)}
body.cmp .hein-nav .mega{
  position:absolute;top:calc(100% + 8px);inset-inline-start:0;min-width:240px;width:min(280px,78vw);
  background:#fff;border-radius:12px;box-shadow:0 18px 44px rgba(15,22,32,.25);
  display:none;z-index:60;overflow:hidden;
}
body.cmp .hein-nav .cat.open .mega{display:block;animation:hh-pop .16s ease-out}
@keyframes hh-pop{from{opacity:0;translate:0 -6px}}
body.cmp .hein-nav .mega-main{padding:6px;background:#fff;display:grid;gap:2px}
body.cmp .hein-nav .mega-link{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  width:100%;padding:9px 10px;border-radius:8px;
  font-weight:700;font-size:14px;color:var(--hh-text);text-decoration:none;text-align:start;
}
body.cmp .hein-nav .mega-link .mega-ico{
  width:28px;height:28px;border-radius:8px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff5f5;border:1px solid #fecaca;color:var(--hh-red);
}
body.cmp .hein-nav .mega-link .mega-ico iconify-icon.co-ico{
  font-size:16px;color:var(--hh-red) !important;width:1em !important;height:1em !important;
}
body.cmp .hein-nav .mega-link .mega-txt{
  flex:1;min-width:0;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.cmp .hein-nav .mega-link:hover{
  background:#f8fafc;color:var(--hh-red);
}
body.cmp .hein-nav .mega-link:hover .mega-ico{
  background:#fee2e2;border-color:#fda4af;
}

body.cmp .hein-nav .links{
  display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;flex:0 1 auto;min-width:0;
}
body.cmp .hein-nav .links a{
  display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:8px;
  font-weight:700;font-size:14px;position:relative;white-space:nowrap;
  color:#222a35 !important;text-decoration:none;background:transparent !important;
  border:0 !important;box-shadow:none !important;min-height:0 !important;height:auto !important;
}
body.cmp .hein-nav .links a iconify-icon.co-ico{font-size:17px;color:var(--hh-red) !important}
body.cmp .hein-nav .links a:hover{background:var(--hh-red-soft) !important;color:var(--hh-red) !important}
body.cmp .hein-nav .links a.active{color:var(--hh-red) !important}
body.cmp .hein-nav .links a.active::after{
  content:"";position:absolute;inset-inline:11px;bottom:2px;height:3px;border-radius:2px;background:var(--hh-red);
}

body.cmp .hein-nav .hot{
  display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;margin-inline-start:6px;
  border-radius:9px;background:linear-gradient(135deg,var(--hh-ink),#26344a);color:#fff !important;
  font-weight:800;font-size:13.5px;white-space:nowrap;text-decoration:none;
  box-shadow:0 4px 12px rgba(15,22,32,.25);transition:transform .15s,box-shadow .15s;
}
body.cmp .hein-nav .hot iconify-icon.co-ico{font-size:16px;color:#ff6b6b !important}
body.cmp .hein-nav .hot .tag{
  background:var(--hh-red);color:#fff;font-size:11px;font-weight:700;padding:1px 7px;border-radius:4px;
}
body.cmp .hein-nav .hot:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,22,32,.32);color:#fff !important}

body.cmp .hein-nav .help{
  display:inline-flex;align-items:center;gap:8px;margin-inline-start:auto;flex:none;
  padding:4px 8px;border-radius:8px;text-decoration:none;color:inherit;
  background:transparent !important;border:0 !important;box-shadow:none !important;
  min-height:0 !important;transform:none !important;
}
body.cmp .hein-nav .help:hover{background:var(--hh-red-soft) !important}
body.cmp .hein-nav .help iconify-icon.co-ico{font-size:24px;color:var(--hh-ink) !important}
body.cmp .hein-nav .help b{
  display:block;color:var(--hh-red) !important;font-size:18px;font-weight:800;line-height:1.1;
  direction:ltr;text-align:start;letter-spacing:.5px;font-family:Cairo,sans-serif;
}
body.cmp .hein-nav .help small{display:block;color:var(--hh-muted) !important;font-size:11.5px;font-weight:600}

body.cmp .cmp-m-sec{font-size:12px;font-weight:700;color:#6b7480;padding:10px 4px 2px;margin-top:4px}
body.cmp .cmp-m-links a{
  display:flex;align-items:center;gap:10px;
}
body.cmp .cmp-m-links a iconify-icon.co-ico{font-size:18px;color:var(--hh-red)}
body.cmp .cmp-empty iconify-icon.co-ico{font-size:40px;color:var(--hh-red);margin-bottom:6px}
body.cmp .burger iconify-icon.co-ico{font-size:26px;color:#fff}

@media (max-width:1280px){
  body.cmp .hein-nav .links a{padding:10px 9px;font-size:14px}
}
@media (max-width:1180px){
  body.cmp .hein-actions .act{min-width:52px;padding:6px 9px}
  body.cmp .deal-lbl{display:none}
}
@media (max-width:1060px){
  body.cmp .hein-nav .links a .t{display:none}
  body.cmp .hein-nav .links a{padding:10px}
  body.cmp .hein-nav .links a iconify-icon.co-ico{font-size:20px}
  body.cmp .hein-nav .help small{display:none}
  body.cmp .hein-nav .hot span:not(.tag){display:none}
}
@media (max-width:860px){
  body.cmp .site-header{--p1:40px;--p2:36px;top:0}
  body.cmp .hein-nav{display:none}
  body.cmp .hein-main .hein-wrap{
    display:grid !important;grid-template-columns:48px 1fr 48px;align-items:center;
    gap:8px;padding:10px 14px;flex-wrap:nowrap;
  }
  body.cmp .site-header.stuck .hein-main .hein-wrap{padding-block:8px}
  body.cmp .burger{display:grid;place-items:center;justify-self:center;order:unset}
  body.cmp .hein-logo{
    justify-self:center;margin:0 !important;order:unset;justify-content:center;
  }
  body.cmp .hein-logo small{display:none}
  body.cmp .hein-logo .mark{font-size:28px;padding:1px 10px 5px}
  body.cmp .hein-logo img{height:36px}
  body.cmp .hein-actions{justify-self:center;order:unset;gap:0}
  body.cmp .hein-actions .hide-m{display:none}
  body.cmp .hein-actions .act{min-width:0;padding:6px 8px}
  body.cmp .hein-actions .act .t{display:none}
  body.cmp .hein-search{display:none !important}
  body.cmp .deal-in{gap:8px;padding:0 40px;font-size:12.5px}
  body.cmp .deal-tag .tt,body.cmp .deal-off{display:none}
  body.cmp .cd b{min-width:0;padding:1px 6px}
  body.cmp .hh-ticker{font-size:12.5px}
  body.cmp .hh-ticker-h .hh-ticker-item{font-size:12.5px}
  body.cmp .hh-ticker-h .hh-ticker-sep{padding:0 12px}
}
@media (prefers-reduced-motion:reduce){
  body.cmp .site-header,body.cmp .hein-main .hein-wrap,body.cmp .deal{transition:none!important}
}

/* العلامات تحت التصنيفات مباشرة */
.brands-section--home{margin:18px 0 8px;padding:0}
.brands-section--home .section-title{margin-bottom:10px}
.brands-section--home .brand-card{
  background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;
  height:78px;display:flex;align-items:center;justify-content:center;
  padding:10px 12px;box-shadow:0 4px 14px rgba(15,23,42,.05);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.brands-section--home .brand-card:hover{transform:translateY(-2px);border-color:#cbd5e1;box-shadow:0 10px 22px rgba(15,23,42,.08)}
.brands-section--home .brand-logo{max-height:46px;max-width:100%;object-fit:contain;filter:none}

/* بطاقات منتجات موحّدة — شبكة + سحب أفقي */
body.cmp .home-products-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:14px;
}
body.cmp .home-products-grid .product-card,
body.cmp .hh-prod-rail .product-card{
  background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;padding:10px;
  box-shadow:none;display:flex;flex-direction:column;height:100%;min-height:100%;
  overflow:hidden;direction:rtl;text-align:start;
}
body.cmp .home-products-grid .product-card:hover,
body.cmp .hh-prod-rail .product-card:hover{border-color:#cbd5e1;transform:none;box-shadow:none}
body.cmp .home-products-grid .product-image-link,
body.cmp .hh-prod-rail .product-image-link{display:block;text-decoration:none;color:inherit;flex:none}
body.cmp .home-products-grid .image-container,
body.cmp .hh-prod-rail .image-container{
  position:relative;background:#f7f8fb;border:1px solid #eceff3;border-radius:12px;
  aspect-ratio:1;width:100%;height:auto;min-height:0;margin:0 0 10px;padding:10px;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
body.cmp .home-products-grid .main-product-image,
body.cmp .hh-prod-rail .main-product-image{
  width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;object-position:center;border-radius:8px;display:block;
}
body.cmp .home-products-grid .product-image-ph,
body.cmp .hh-prod-rail .product-image-ph{color:#94a3b8;font-size:28px;opacity:.85}
body.cmp .home-products-grid .badge-promo--float,
body.cmp .hh-prod-rail .badge-promo--float{
  position:absolute;top:8px;z-index:3;margin:0;
  display:inline-flex;align-items:center;gap:4px;
  font-size:11px;font-weight:800;line-height:1.2;
  padding:4px 8px;border-radius:999px;box-shadow:none;white-space:nowrap;
}
body.cmp .home-products-grid .badge-promo--sale,
body.cmp .hh-prod-rail .badge-promo--sale{
  inset-inline-end:8px;background:#e11d2e;color:#fff;
}
body.cmp .home-products-grid .badge-promo--new,
body.cmp .hh-prod-rail .badge-promo--new{
  inset-inline-start:8px;background:#1d4ed8;color:#fff;
}
body.cmp .home-products-grid .badge-promo--float:not(.badge-promo--sale):not(.badge-promo--new){
  inset-inline-end:8px;background:#f59e0b;color:#111;
}
body.cmp .home-products-grid .badge-stock--img,
body.cmp .hh-prod-rail .badge-stock--img{
  position:absolute;bottom:8px;inset-inline-start:8px;z-index:3;margin:0;
  font-size:11px;font-weight:700;padding:3px 7px;border-radius:6px;line-height:1.2;color:#fff;
  background:#159947;box-shadow:none;
}
body.cmp .home-products-grid .product-info,
body.cmp .hh-prod-rail .product-info{
  display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0;min-height:0;
}
body.cmp .home-products-grid .product-title,
body.cmp .hh-prod-rail .product-title{
  font-size:13px;font-weight:800;line-height:1.35;margin:0;color:#0f172a;
  min-height:calc(1.35em * 2);max-height:calc(1.35em * 2);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-clamp:2;overflow:hidden;text-overflow:ellipsis;
}
body.cmp .home-products-grid .product-title a,
body.cmp .hh-prod-rail .product-title a{color:inherit;text-decoration:none}
body.cmp .home-products-grid .price-container,
body.cmp .hh-prod-rail .price-container{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;
  gap:6px 8px;min-height:1.4em;margin:0;width:100%;max-width:100%;
  direction:rtl;overflow:visible;
}
body.cmp .home-products-grid .current-price,
body.cmp .hh-prod-rail .current-price{
  color:#d00810;font-size:16px;font-weight:800;line-height:1.2;margin:0;
  display:inline-flex;flex-direction:row;align-items:baseline;gap:3px;
  white-space:nowrap;direction:rtl;unicode-bidi:isolate;order:0;
}
body.cmp .home-products-grid .old-price,
body.cmp .hh-prod-rail .old-price{
  color:#94a3b8;font-size:12.5px;font-weight:600;line-height:1.2;margin:0;
  display:inline-flex;flex-direction:row;align-items:baseline;gap:3px;
  white-space:nowrap;direction:rtl;unicode-bidi:isolate;order:1;
  text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:#94a3b8;
}
body.cmp .home-products-grid .hh-amt,
body.cmp .hh-prod-rail .hh-amt{
  direction:ltr;unicode-bidi:isolate;font:inherit;color:inherit;
}
body.cmp .home-products-grid .hh-cur,
body.cmp .hh-prod-rail .hh-cur{font:inherit;font-weight:inherit;line-height:inherit}
body.cmp .home-products-grid .badge-wholesale,
body.cmp .hh-prod-rail .badge-wholesale{
  order:2;background:#0f172a;color:#fff;font-size:11px;font-weight:700;
  padding:2px 7px;border-radius:6px;line-height:1.2;
}
body.cmp .home-products-grid .card-add-form,
body.cmp .hh-prod-rail .card-add-form,
body.cmp .home-products-grid .product-info > .card-add-btn,
body.cmp .hh-prod-rail .product-info > .card-add-btn{
  margin-top:auto;padding-top:2px;width:100%;
}
body.cmp .home-products-grid .card-add-btn,
body.cmp .hh-prod-rail .card-add-btn{
  width:100%;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;height:38px;padding:0 10px;border:0;border-radius:10px;
  background:var(--red,#d00810);color:#fff;
  font-family:inherit;font-size:12.5px;font-weight:800;line-height:1;
  cursor:pointer;text-decoration:none;
}
body.cmp .home-products-grid .card-add-btn:hover,
body.cmp .hh-prod-rail .card-add-btn:hover{color:#fff;filter:none;background:#b91c1c}
body.cmp .home-products-grid .card-add-btn-muted,
body.cmp .hh-prod-rail .card-add-btn-muted{background:#eef1f5;color:#64748b}
body.cmp .home-products-grid .card-add-btn-muted:hover,
body.cmp .hh-prod-rail .card-add-btn-muted:hover{background:#e8ebf0;color:#475569}
body.cmp .home-products-grid .product-card.is-unavailable .main-product-image,
body.cmp .hh-prod-rail .product-card.is-unavailable .main-product-image{opacity:.8}

/* أقسام المنتجات — هوية HEIN (كحلي / أحمر / بطاقة صلبة) */
body.cmp .hh-prod-section{margin:.9rem 0 0}
body.cmp .featured-categories-strip + .hh-prod-section{margin-top:.75rem}
body.cmp .hh-prod-panel{
  background:#fff;border:1.5px solid #cbd5e1;border-radius:18px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);overflow:hidden;
}
body.cmp .hh-prod-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0;padding:12px 14px;
  background:linear-gradient(105deg,#0f172a 0%,#1e293b 100%);
  border-bottom:2px solid var(--hh-red,#d00810);
}
body.cmp .hh-prod-title-wrap{display:inline-flex;align-items:center;gap:10px;min-width:0}
body.cmp .hh-prod-ico{
  width:36px;height:36px;border-radius:10px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--hh-red,#e11d2e);color:#fff;
}
body.cmp .hh-prod-ico iconify-icon{color:#fff !important}
body.cmp .hh-prod-head h2{
  margin:0;font-size:1.12rem;font-weight:800;color:#fff;line-height:1.2;
  letter-spacing:.01em;
}
body.cmp .hh-prod-more{
  display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  color:#fff;font-size:12.5px;font-weight:700;text-decoration:none;
  background:#1e293b;border:1px solid #334155;border-radius:999px;
  min-height:34px;padding:0 12px 0 10px;
}
body.cmp .hh-prod-more:hover{background:var(--hh-red,#e11d2e);border-color:var(--hh-red,#e11d2e);color:#fff}
body.cmp .hh-prod-body{
  position:relative;display:grid;grid-template-columns:auto 1fr auto;
  align-items:stretch;gap:8px;padding:14px 12px 12px;
  background:#f8fafc;
}
body.cmp .hh-prod-nav{
  align-self:center;width:40px;height:40px;border-radius:12px;border:1.5px solid #cbd5e1;
  background:#0f172a;color:#fff;cursor:pointer;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(15,23,42,.16);z-index:2;
  transition:background .15s ease, border-color .15s ease, opacity .15s ease;
}
body.cmp .hh-prod-nav:hover{background:var(--hh-red,#e11d2e);border-color:var(--hh-red,#e11d2e)}
body.cmp .hh-prod-nav.swiper-button-disabled{opacity:0;visibility:hidden;pointer-events:none}
body.cmp .hh-prod-nav iconify-icon{color:#fff !important;pointer-events:none}
body.cmp .hh-prod-rail{
  overflow:hidden;padding:2px 2px 4px;margin:0;min-width:0;width:100%;
}
body.cmp .hh-prod-rail .swiper-wrapper{align-items:flex-start}
body.cmp .hh-prod-rail .swiper-slide{
  width:188px;height:auto;display:flex;box-sizing:border-box;align-self:flex-start;
}
/* بطاقة النموذج B — مشتركة للسكك وصفحة المتجر */
body.cmp .product-card--rail{
  width:100%;max-width:none;flex:none;height:auto;padding:0;
  border:1.5px solid #cbd5e1;border-radius:16px;background:#fff;
  box-shadow:0 4px 14px rgba(15,23,42,.06);
  text-align:start;overflow:hidden;transform:none;
  display:flex;flex-direction:column;
}
body.cmp .product-card--rail:hover{
  transform:none;border-color:#94a3b8;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}
body.cmp .product-card--rail .product-image-link{display:block}
body.cmp .product-card--rail .image-container{
  position:relative;margin:0;padding:0;border:0;border-radius:0;
  aspect-ratio:1 / .92;overflow:hidden;
  display:grid;place-items:center;
  background:radial-gradient(circle at 50% 40%,#fff 0,#eef2f7 78%);
  border-bottom:3px solid var(--hh-red,#e11d2e);
}
body.cmp .product-card--rail .main-product-image{
  width:76%;height:76%;max-width:76%;max-height:76%;
  object-fit:contain;border-radius:0;filter:none;
  mix-blend-mode:multiply;transform:none;
}
body.cmp .product-card--rail:hover .main-product-image{transform:none}
body.cmp .product-card--rail .product-image-ph{color:#94a3b8}
body.cmp .product-card--rail .badge-promo--float{
  top:9px;font-size:11.5px;font-weight:800;padding:2px 9px;border-radius:8px;gap:0;
  box-shadow:none;text-decoration:none;border:0;
}
body.cmp .product-card--rail .badge-promo--sale{
  inset-inline-start:9px;inset-inline-end:auto;background:var(--hh-red,#e11d2e);color:#fff;
}
body.cmp .product-card--rail .badge-promo--new{
  inset-inline-start:9px;inset-inline-end:auto;background:#0f172a;color:#fff;border:0;
}
body.cmp .product-card--rail .badge-promo--new span{text-decoration:none;border:0;line-height:1.2}
body.cmp .product-card--rail .badge-soon{
  position:absolute;bottom:8px;inset-inline-start:8px;z-index:3;
  background:rgba(15,23,42,.82);color:#fff;font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:8px;line-height:1.2;box-shadow:none;border:0;
}
body.cmp .product-card--rail .card-add-btn-muted.card-add-btn--icon{
  background:#eef2f7;color:#94a3b8;border:0;cursor:default;transform:none;
}
body.cmp .product-card--rail .card-add-btn-muted.card-add-btn--icon:hover{
  background:#eef2f7;color:#94a3b8;transform:none;
}
body.cmp .product-card--rail .card-add-btn-muted.card-add-btn--icon iconify-icon{color:#94a3b8 !important}
body.cmp .product-card--rail.is-unavailable .main-product-image,
body.cmp .product-card--rail.is-unavailable .product-image-ph{
  opacity:.55;filter:grayscale(.55);
}
body.cmp .product-card--rail .product-info{
  gap:8px;align-items:stretch;justify-content:flex-start;
  padding:10px 11px 11px;text-align:start;flex:1 1 auto;min-height:0;
  display:flex;flex-direction:column;
}
body.cmp .product-card--rail .product-title{
  font-size:13px;font-weight:800;color:#0f172a;line-height:1.35;
  width:100%;min-height:calc(1.35em * 2);max-height:calc(1.35em * 2);
  overflow:hidden;margin:0;padding:0;flex:0 0 auto;direction:ltr;text-align:right;
}
body.cmp .product-card--rail .product-title a{color:inherit;text-decoration:none}
body.cmp .product-card--rail .hh-card-row{
  display:flex;align-items:center;gap:8px;margin:0;margin-top:auto;width:100%;flex:0 0 auto;
}
body.cmp .product-card--rail .price-container{
  flex:1;min-width:0;height:40px;margin:0;padding:0 10px;
  display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;
  gap:6px;border-radius:11px;background:#0f172a;direction:rtl;overflow:hidden;
  text-align:center;width:auto;max-width:none;
}
body.cmp .product-card--rail .current-price,
body.cmp .product-card--rail .old-price{
  display:inline-flex;flex-direction:row;align-items:baseline;justify-content:center;
  gap:3px;margin:0;white-space:nowrap;direction:rtl;unicode-bidi:isolate;flex:none;
}
body.cmp .product-card--rail .current-price{
  color:#fff;font-size:15.5px;font-weight:800;line-height:1;
}
body.cmp .product-card--rail .old-price{
  color:#94a3b8;font-size:11px;font-weight:600;line-height:1;
  text-decoration:line-through;text-decoration-thickness:1.2px;text-decoration-color:#94a3b8;
}
body.cmp .product-card--rail .hh-amt{
  direction:ltr;unicode-bidi:isolate;font:inherit;color:inherit;
}
body.cmp .product-card--rail .hh-cur{
  font-size:.72em;font-weight:700;color:#94a3b8;line-height:1;
}
body.cmp .product-card--rail .current-price .hh-cur{color:#cbd5e1}
body.cmp .product-card--rail .price-container.has-old .current-price{font-size:14.5px}
body.cmp .product-card--rail .badge-wholesale{display:none}
body.cmp .product-card--rail .product-info .card-add-form,
body.cmp .product-card--rail .product-info .card-add-btn,
body.cmp .product-card--rail .hh-card-row > .card-add-btn{
  margin-top:0;margin-bottom:0;width:auto;flex:none;
}
body.cmp .product-card--rail .product-info .card-add-form{
  margin:0;padding:0;border:0;background:transparent;
}
body.cmp .product-card--rail .card-add-btn--icon{
  width:40px;height:40px;min-height:40px;min-width:40px;padding:0;
  border-radius:11px;display:grid;place-items:center;gap:0;font-size:0;
  background:var(--hh-red,#e11d2e);color:#fff;transform:none;
}
body.cmp .product-card--rail .card-add-btn--icon:hover{
  background:#b91c1c;transform:none;color:#fff;
}
body.cmp .product-card--rail .card-add-btn--icon iconify-icon{color:#fff !important}
body.cmp .hh-prod-dots{
  position:static !important;margin-top:10px;display:flex;justify-content:center;gap:6px;
}
body.cmp .hh-prod-dots .swiper-pagination-bullet{
  width:8px;height:8px;margin:0 !important;border-radius:999px;
  background:#94a3b8;opacity:1;transition:width .2s ease, background .2s ease;
}
body.cmp .hh-prod-dots .swiper-pagination-bullet-active{
  width:22px;background:var(--hh-red,#e11d2e);
}
.hh-prod-all{display:flex;justify-content:center;margin:1.5rem 0 .5rem}
.hh-prod-all-btn{
  display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 22px;
  border-radius:12px;background:#0f172a;color:#fff;font-weight:800;text-decoration:none;
  border:0;
}
.hh-prod-all-btn:hover{background:var(--hh-red,#e11d2e);color:#fff}
@media (max-width:900px){
  body.cmp .hh-prod-nav{display:none}
  body.cmp .hh-prod-body{grid-template-columns:1fr;padding:12px 10px 10px}
}
@media (max-width:576px){
  body.cmp .home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.cmp .home-products-grid .current-price{font-size:15px}
  body.cmp .home-products-grid .old-price{font-size:12px}
  body.cmp .home-products-grid .product-title{font-size:12.5px}
  body.cmp .home-products-grid .card-add-btn{min-height:36px;height:36px;font-size:12px;border-radius:9px}
  body.cmp .hh-prod-panel{border-radius:14px}
  body.cmp .hh-prod-head{padding:10px 12px}
  body.cmp .hh-prod-head h2{font-size:1rem}
  body.cmp .hh-prod-ico{width:32px;height:32px;border-radius:9px}
  body.cmp .hh-prod-rail .swiper-slide{width:156px}
  body.cmp .hh-prod-more{min-height:32px;padding:0 10px 0 8px;font-size:12px}
  body.cmp .product-card--rail .product-info{padding:9px;gap:7px}
  body.cmp .product-card--rail .product-title{font-size:12px}
  body.cmp .product-card--rail .price-container{height:38px;padding:0 9px}
  body.cmp .product-card--rail .current-price{font-size:14.5px}
  body.cmp .product-card--rail .price-container.has-old .current-price{font-size:13.5px}
  body.cmp .product-card--rail .card-add-btn--icon{
    width:36px;height:36px;min-height:36px;min-width:36px;
  }
}

/* صفحة المتجر — شريط علوي كحلي + شبكة Model B */
.hh-store{padding-top:12px}
.hh-store-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;
  padding:13px 14px;border-radius:16px;
  background:linear-gradient(105deg,#0f172a 0%,#1e293b 100%);
  border:1px solid #1e293b;border-bottom:2px solid var(--hh-red,#e11d2e);
  box-shadow:0 8px 20px rgba(15,23,42,.12);
}
.hh-store-head-copy{min-width:0}
.hh-store-head h1{margin:0;font-size:1.2rem;font-weight:800;color:#fff;line-height:1.25}
.hh-store-count{margin:3px 0 0;color:#94a3b8;font-size:12.5px;font-weight:600}
.hh-store-home{
  display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  min-height:36px;padding:0 12px;border-radius:10px;border:1px solid #334155;
  background:#1e293b;color:#fff;font-size:13px;font-weight:700;text-decoration:none;
}
.hh-store-home:hover{border-color:var(--hh-red,#e11d2e);background:var(--hh-red,#e11d2e);color:#fff}
.hh-store-home iconify-icon{color:#fff !important}
.hh-store-shell{
  display:grid;gap:14px;align-items:start;
  grid-template-columns:1fr;
}
.hh-store-side{min-width:0}
.hh-store-side-card{
  border-radius:18px;overflow:hidden;
  background:#fff;border:1.5px solid #cbd5e1;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.hh-store-side-head{
  display:flex;align-items:center;gap:10px;padding:13px 14px;
  background:linear-gradient(105deg,#0f172a 0%,#1e293b 100%);
  border-bottom:2px solid var(--hh-red,#e11d2e);
}
.hh-store-side-ico{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:var(--hh-red,#e11d2e);color:#fff;border:0;
}
.hh-store-side-ico iconify-icon{color:#fff !important}
.hh-store-side-head b{display:block;color:#fff;font-size:13.5px;font-weight:800;line-height:1.2}
.hh-store-side-head small{color:#94a3b8;font-size:11.5px;font-weight:600}
.hh-store-cats{
  display:flex;gap:8px;overflow-x:auto;padding:12px 12px 4px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.hh-store-cats::-webkit-scrollbar{width:0;height:0;display:none}
.hh-store-cat{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:36px;padding:0 12px;border-radius:11px;
  background:#f8fafc;border:1.5px solid #e2e8f0;color:#334155;
  font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap;
}
.hh-store-cat:hover{background:#fff;border-color:#94a3b8;color:#0f172a}
.hh-store-cat.on{
  background:var(--hh-red,#e11d2e);border-color:var(--hh-red,#e11d2e);color:#fff;
  box-shadow:0 4px 12px rgba(225,29,46,.22);
}
.hh-store-dot{display:none}
.hh-store-filters{
  display:grid;gap:10px;padding:12px;margin:8px 12px 14px;
  background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;
}
.hh-store-filters-h{
  color:#64748b;font-size:11.5px;font-weight:800;letter-spacing:.02em;
}
.hh-store-avail{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;cursor:pointer;
}
.hh-store-avail b{display:block;color:#0f172a;font-size:12.5px;font-weight:800}
.hh-store-avail small{display:block;color:#64748b;font-size:11px;font-weight:600;margin-top:1px}
.hh-sw{position:relative;display:inline-flex;align-items:center}
.hh-sw input{position:absolute;opacity:0;pointer-events:none}
.hh-sw i{
  width:42px;height:24px;border-radius:99px;background:#cbd5e1;position:relative;display:block;transition:.2s;
}
.hh-sw i:after{
  content:'';position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;
  background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(15,23,42,.2);
}
.hh-sw input:checked+i{background:var(--hh-red,#e11d2e)}
.hh-sw input:checked+i:after{inset-inline-start:21px}
.hh-store-field{display:grid;gap:5px;margin:0}
.hh-store-field>span{color:#64748b;font-size:11.5px;font-weight:700}
.hh-store-field select{
  width:100%;min-height:40px;border-radius:12px;border:1.5px solid #e2e8f0;
  background:#fff;color:#0f172a;padding:0 12px;font:inherit;font-weight:700;font-size:13px;
}
.hh-store-field select:focus{outline:none;border-color:var(--hh-red,#d00810);box-shadow:0 0 0 3px rgba(208,8,16,.1)}
.hh-store-reset{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;border-radius:11px;border:1.5px dashed #fecaca;
  color:var(--hh-red,#e11d2e);font-size:12.5px;font-weight:800;text-decoration:none;background:#fff5f5;
}
.hh-store-reset:hover{border-color:var(--hh-red,#e11d2e);color:#fff;background:var(--hh-red,#e11d2e)}
.hh-store-main{min-width:0}
.hh-store-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px;margin:0;
  align-items:stretch;
}
/* بطاقات /store فقط — الرئيسية تبقى كما هي */
.hh-store-grid .product-card--rail{
  width:100%;max-width:none;height:100%;
  border-radius:16px;border-color:#cbd5e1;
}
.hh-store-grid .product-card--rail .image-container{
  aspect-ratio:1 / .95;
  background:radial-gradient(circle at 50% 42%,#fff 0,#f1f5f9 78%);
}
.hh-store-grid .product-card--rail .main-product-image{
  width:90%;height:90%;max-width:90%;max-height:90%;
}
.hh-store-grid .product-card--rail .product-info{padding:10px;gap:8px}
.hh-store-grid .product-card--rail .product-title{
  font-size:12.5px;min-height:calc(1.35em * 2);max-height:calc(1.35em * 2);
}
.hh-store-grid .product-card--rail .price-container{height:38px;padding:0 9px;border-radius:10px}
.hh-store-grid .product-card--rail .current-price{font-size:14.5px}
.hh-store-grid .product-card--rail .card-add-btn--icon{
  width:38px;height:38px;min-width:38px;min-height:38px;border-radius:10px;
}
.hh-store-grid .product-card--rail .card-add-btn-muted.card-add-btn--icon{
  background:#0f172a;color:#fff;opacity:.95;
}
.hh-store-grid .product-card--rail .card-add-btn-muted.card-add-btn--icon:hover{
  background:#1e293b;color:#fff;
}
.hh-store-grid .product-card--rail .card-add-btn-muted.card-add-btn--icon iconify-icon{color:#fff !important}
.hh-store-grid .product-card--rail .badge-promo--float{
  top:8px;inset-inline-start:8px;inset-inline-end:auto;
  min-height:22px;padding:0 9px;border-radius:999px;
  font-size:10.5px;font-weight:800;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:none;border:0;text-decoration:none;
}
.hh-store-grid .product-card--rail .badge-promo--sale{
  background:var(--hh-red,#e11d2e);color:#fff;
}
.hh-store-grid .product-card--rail .badge-promo--new{
  background:#0f172a;color:#fff;border:0;
}
.hh-store-grid .product-card--rail .badge-promo--new span,
.hh-store-grid .product-card--rail .badge-promo--sale{
  text-decoration:none;border:0;box-shadow:none;
}
.hh-store-grid .product-card--rail .image-container:has(.badge-promo--sale) .badge-promo--new{
  inset-inline-start:auto;inset-inline-end:8px;
}
.hh-store-grid .product-card--rail .badge-soon{
  bottom:8px;inset-inline-start:8px;inset-inline-end:auto;
  min-height:22px;padding:0 9px;border-radius:999px;
  font-size:10.5px;font-weight:800;line-height:1;
  display:inline-flex;align-items:center;
  background:#0f172a;color:#fff;border:0;box-shadow:none;
}
.hh-store-empty{
  margin:0;padding:28px 16px;text-align:center;border-radius:14px;
  background:#fff;border:1.5px dashed #cbd5e1;color:#64748b;font-weight:700;
}
.hh-pager{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;
  margin:1.15rem 0 .25rem;
}
.hh-page{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  min-height:38px;min-width:38px;padding:0 12px;border-radius:10px;
  border:1.5px solid #e2e8f0;background:#fff;color:#334155;
  font-size:13px;font-weight:700;text-decoration:none;
}
.hh-page.num{min-width:38px;padding:0}
.hh-page.on{background:var(--hh-red,#e11d2e);border-color:var(--hh-red,#e11d2e);color:#fff}
.hh-page-gap{color:#94a3b8;font-weight:700;padding:0 2px}
.hh-page .flip{transform:scaleX(-1)}
@media (min-width:900px){
  .hh-store-shell{grid-template-columns:268px minmax(0,1fr);gap:18px}
  .hh-store-side{position:sticky;top:14px}
  .hh-store-cats{
    display:flex;flex-direction:column;overflow:visible;max-height:none;
    padding:12px 12px 6px;gap:6px;
  }
  .hh-store-cat{
    width:100%;white-space:normal;padding:10px 12px;min-height:42px;
    border-radius:12px;line-height:1.3;justify-content:flex-start;
  }
  .hh-store-grid{grid-template-columns:repeat(auto-fill,minmax(188px,1fr));gap:14px}
}
@media (max-width:899px){
  .hh-store-side-card{border-radius:16px}
  .hh-store-head{padding:11px 12px;margin-bottom:10px;border-radius:14px}
  .hh-store-head h1{font-size:1.05rem}
  .hh-store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hh-store-cats{padding:10px 10px 2px}
  .hh-store-filters{margin:6px 10px 12px;padding:10px}
  .hh-store-grid .product-card--rail .product-title{font-size:12px}
  .hh-store-grid .product-card--rail .price-container{height:36px}
  .hh-store-grid .product-card--rail .current-price{font-size:13.5px}
  .hh-store-grid .product-card--rail .card-add-btn--icon{
    width:36px;height:36px;min-width:36px;min-height:36px;
  }
}