
/* ===== HS JSSC Modal v2.1.0 ===== */
.hs-jssc-open{overflow:hidden}

.hs-jssc-modal{position:fixed;inset:0;z-index:99999;display:block}
.hs-jssc-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}

.hs-jssc-panel{
  position:relative;
  width:min(1040px,92vw);
  height:min(560px,86vh);
  margin:6vh auto;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.22);
  display:flex;
  flex-direction:column;
}

.hs-jssc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-bottom:1px solid #eee;
}
.hs-jssc-title{font-weight:800;color:#111}
.hs-jssc-close{border:0;background:transparent;font-size:22px;cursor:pointer;line-height:1}

.hs-jssc-tabs{
  display:flex;
  gap:10px;
  padding:10px 14px;
  overflow:auto;
  border-bottom:1px solid #eee;
}
.hs-jssc-tab{
  border:1px solid #eee;
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  font-size:12px;
}
.hs-jssc-tab.is-active{
  border-color:#ff5a1f;
  background:#ff5a1f;
  color:#fff;
}

.hs-jssc-searchbar{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
}
.hs-jssc-search{
  width:100%;
  height:42px;
  border:1px solid #eee;
  border-radius:999px;
  padding:0 14px;
  font-weight:700;
}
.hs-jssc-searchbtn{
  width:42px;height:42px;
  border-radius:999px;
  border:1px solid #eee;
  background:#fff;
  cursor:pointer;
}

.hs-jssc-grid{
  padding:14px;
  overflow:auto;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
@media(max-width:900px){.hs-jssc-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:520px){.hs-jssc-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

.hs-jssc-item{
  border:0;
  background:transparent;
  cursor:pointer;
  text-align:center;
  padding:0;
}
.hs-jssc-swatch{
  width:100%;
  aspect-ratio:1/1;
  border-radius:16px;
  border:1px solid #eee;
  background:#f4f4f4;
}
.hs-jssc-txt{
  margin-top:8px;
  font-weight:800;
  color:#444;
  font-size:11px;
  line-height:1.1;
}
.hs-jssc-txt strong{display:block;font-size:11px;color:#666}
.hs-jssc-txt small{display:block;font-size:10px;color:#777}

/* keep product UI styles minimal (popup only) */
.hs-jssc-ui{margin:12px 0}

/* swatch color is forced via --hsbg variable */






/* Swatch uses --hsbg to show color */
body .hs-jssc-modal .hs-jssc-panel .hs-jssc-grid button.hs-jssc-item span.hs-jssc-swatch{
  background: var(--hsbg, #f4f4f4) !important;
  background-color: var(--hsbg, #f4f4f4) !important;
  background-image: none !important;
}




.hs-jssc-more{
  border:0;
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.hs-jssc-more:disabled{opacity:.6; cursor:not-allowed;}




/* ===== Load More Button (Pagination) ===== */
.hs-jssc-morewrap{
  padding: 12px 14px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hs-jssc-more{
  border: 0;
  background: #F6592B;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
  line-height: 1;
  min-width: 160px;
  text-align: center;
}

.hs-jssc-more:hover{ transform: translateY(-1px); }
.hs-jssc-more:active{ transform: translateY(0px); opacity: .9; }

.hs-jssc-more:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* (اختياري) خلي الزر ويا الجريد ما يصير sticky scroll غريب */
.hs-jssc-panel{
  display:flex;
  flex-direction:column;
}
.hs-jssc-grid{
  flex: 1 1 auto;
  min-height: 0; /* مهم حتى scroll يصير smooth داخل الجريد */
}


/* ===== Load More Button - Force Styles ===== */
body .hs-jssc-modal .hs-jssc-panel .hs-jssc-morewrap{
  padding: 12px 14px !important;
  border-top: 1px solid #eee !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
}

body .hs-jssc-modal .hs-jssc-panel button.hs-jssc-more{
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;
  outline: none !important;

  background: #F6592B !important;
  color: #fff !important;

  padding: 12px 18px !important;
  border-radius: 999px !important;

  font-weight: 900 !important;
  font-size: 13px !important;
  line-height: 1 !important;

  min-width: 160px !important;
  text-align: center !important;
  cursor: pointer !important;

  box-shadow: 0 10px 22px rgba(0,0,0,.12) !important;
}

body .hs-jssc-modal .hs-jssc-panel button.hs-jssc-more:hover{
  transform: translateY(-1px) !important;
}

body .hs-jssc-modal .hs-jssc-panel button.hs-jssc-more:active{
  transform: translateY(0px) !important;
  opacity: .95 !important;
}

body .hs-jssc-modal .hs-jssc-panel button.hs-jssc-more:disabled{
  opacity: .6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* إذا الثيم يطبق border على كل الأزرار */
body .hs-jssc-modal .hs-jssc-panel button.hs-jssc-more::before,
body .hs-jssc-modal .hs-jssc-panel button.hs-jssc-more::after{
  content:none !important;
}

body .hs-jssc-modal .hs-jssc-grid{
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  min-height: 0;
}

body .hs-jssc-modal .hs-jssc-item{
  contain: content;
}
.hs-jssc-loader{
  padding: 12px 14px;
  text-align: center;
  font-weight: 800;
  color: #666;
  border-top: 1px solid #eee;
}


