:root{
  --go-bg:#0b0f14;
  --go-tab-text:#ffffff;
  --go-title:#ff6a2a;
  --go-text:#ffffff;
  --go-tab-size:15px;
  --go-text-size:15px;
  --go-title-size:22px;
  --go-orange:#FF6527;
  --pp-yellow:#FFC439;
  --pp-yellow-h:#F2BB30;
  --pp-blue:#003087;
  --stc-purple:#4F088A;
}

/* إخفاء بلوك "اشترى قبل لحظات / متبقى" + بار الجملة */
#custom-markettool,
.custom-markettool,
[data-social-proof],
.go-social-proof,
.recent-buyer,
.remaining-stock,
.go-bulk-bar{
  display:none !important;
}

/* =========================
   صندوق التبويبات (نفس الأصل)
========================= */
.go-tabs-wrapper{
  background:var(--go-bg) !important;
  padding:26px 14px !important;
  width:100vw !important;
  margin-left:calc(-50vw + 50%) !important;
  margin-right:calc(-50vw + 50%) !important;
  border-radius:0 !important;
}

.go-tabs-wrapper .go-tab-content{
  max-width:1100px;
  margin:0 auto;
  color:var(--go-text) !important;
  font-size:var(--go-text-size) !important;
  line-height:1.9;
}

.go-tabs-wrapper #go-desc{
  text-align:center !important;
}

.go-tabs-wrapper.dir-rtl #go-activation,
.go-tabs-wrapper.dir-rtl #go-faq{
  direction:rtl !important;
  text-align:right !important;
}
.go-tabs-wrapper.dir-ltr #go-activation,
.go-tabs-wrapper.dir-ltr #go-faq{
  direction:ltr !important;
  text-align:left !important;
}

.go-tabs{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  list-style:none !important;
  margin:0 auto 14px !important;
  padding:12px 14px !important;
  width:fit-content;
  border-radius:999px;
  background:rgba(120,65,45,0.22);
  border:1px solid rgba(120,65,45,0.35);
}

.go-tabs > li,
.go-tabs > li::marker,
.go-tabs > li::before,
.go-tabs > li::after,
.go-tabs > li + li::before{
  content:"" !important;
  display:none !important;
}
.go-tabs > li{
  list-style:none !important;
  display:inline-flex !important;
  align-items:center;
  color:var(--go-tab-text) !important;
  cursor:pointer;
  font-size:var(--go-tab-size) !important;
  font-weight:600;
  padding:10px 14px;
  border-radius:999px;
  white-space:nowrap;
}
.go-tabs > li.active{
  background:rgba(120,65,45,0.38);
}

.go-tab-content{ display:none; }
.go-tab-content.active{ display:block; }

.go-tabs-wrapper .go-tab-content h1,
.go-tabs-wrapper .go-tab-content h2,
.go-tabs-wrapper .go-tab-content h3{
  color:var(--go-title) !important;
  font-size:var(--go-title-size) !important;
  font-weight:800 !important;
  margin:14px 0 8px;
}
.go-tabs-wrapper .go-tab-content strong{
  color:var(--go-title) !important;
  font-size:var(--go-title-size) !important;
  font-weight:800 !important;
}

.go-tabs-wrapper .go-tab-content a{
  color:#7cc7ff !important;
  text-decoration:underline !important;
  word-break:break-word;
}

.go-tabs-wrapper #reviews,
.go-tabs-wrapper #reviews *{ color:#fff !important; }
.go-tabs-wrapper .sicon-star,
.go-tabs-wrapper .sicon-star-filled{ color:#FFD700 !important; }

/* =========================
   زر "إضافة للسلة"
========================= */
button.s-button-element[product-id]{
  background:var(--go-orange) !important;
  color:#fff !important;
  border:none !important;
  border-radius:10px !important;
  font-weight:800 !important;
  padding:14px 0 !important;
  width:100% !important;
  font-size:16px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:8px !important;
  box-shadow:0 6px 16px rgba(255,101,39,.25) !important;
  transition:background .15s ease, transform .15s ease !important;
}
button.s-button-element[product-id] i,
button.s-button-element[product-id] .sicon-shopping{
  display:inline-flex !important;
}
button.s-button-element[product-id]:hover{
  background:#e4571f !important;
  transform:translateY(-1px) !important;
}
button.s-button-element[product-id]:active{ transform:scale(0.99) !important; }

/* =========================
   أزرار الدفع (PayPal + STC Pay فقط)
========================= */
.go-pay-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.go-pay-btn{
  appearance:none;
  border:none;
  outline:none;
  border-radius:10px;
  height:52px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  font-weight:800;
  user-select:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  pointer-events:auto !important;
  position:relative;
  z-index:2;
  box-sizing:border-box;
  padding:0 14px;
  font-size:clamp(13px,3.5vw,15px);
}
.go-pay-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.go-pay-btn:active{ transform:scale(0.99); }

.go-pay-btn img{ height:24px; width:auto; display:block; }

/* PayPal — أصفر رسمي */
.go-pay-btn.paypal{
  background:var(--pp-yellow) !important;
  color:var(--pp-blue) !important;
  border:1px solid #d9a921 !important;
}
.go-pay-btn.paypal:hover{ background:var(--pp-yellow-h) !important; }
.go-pay-btn.paypal img{ height:26px; }

/* STC Pay — بنفسجي */
.go-pay-btn.stc{
  background:#fff !important;
  color:var(--stc-purple) !important;
  border:1px solid #e5d4f5 !important;
}
.go-pay-btn.stc:hover{
  background:var(--stc-purple) !important;
  color:#fff !important;
  border-color:var(--stc-purple) !important;
}

/* لون السعر */
.price,
.product-price,
.s-product-price,
.s-product-card-price,
.cart-item__price,
.order-item__price,
.total-price,
.summary-price{
  color:#FF6527 !important;
}

/* =========================
   تثبيت التنسيق + خيارات التفعيل
========================= */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.s-product-options-thumbnails-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 10px 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  align-items:center !important;
}

.s-product-options-thumbnails-wrapper > div {
  width: 100% !important;
  max-width: 420px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  position:relative !important;
  text-align:center !important;
}

.s-product-options-thumbnails-wrapper > div > label {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 200px !important;
  aspect-ratio: 16 / 9 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  overflow: hidden !important;
  cursor:pointer !important;
  transition:all .2s ease !important;
}

.s-product-options-thumbnails-wrapper > div > label img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.s-product-options-thumbnails-wrapper > div > p {
  font-size: clamp(13px, 3.5vw, 16px) !important;
  margin: 8px 0 0 !important;
  padding: 0 4px !important;
  font-weight:700 !important;
  text-align: center !important;
  word-break: break-word !important;
}

.s-product-options-thumbnails-wrapper .s-product-options-thumbnails-icon{
  position:absolute !important;
  top:8px !important; right:8px !important;
  width:24px !important; height:24px !important;
  background:#fff !important; border-radius:50% !important;
  box-shadow:0 2px 8px rgba(0,0,0,.14) !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  z-index:3 !important;
}

.s-product-options-thumbnails-wrapper input[type="radio"]:checked + label{
  border-color:#FF6527 !important;
  box-shadow:0 10px 25px rgba(0,0,0,0.15) !important;
  transform:translateY(-2px) !important;
}

/* تثبيت التبويبات */
.go-tabs-wrapper {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.go-tabs {
  max-width: 100% !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.go-tabs > li {
  font-size: clamp(12px, 3vw, 15px) !important;
  padding: 8px 12px !important;
}

.go-tabs-wrapper .go-tab-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.go-tabs-wrapper .go-tab-content img,
.go-tabs-wrapper .go-tab-content video,
.go-tabs-wrapper .go-tab-content iframe {
  max-width: 100% !important;
  height: auto !important;
}

.go-pay-wrap, .go-pay-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

button.s-button-element[product-id] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: clamp(14px, 4vw, 16px) !important;
}

/* منع زووم iOS */
input, textarea, select,
input.s-form-control,
textarea.s-form-control{
  font-size: 16px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* جوال */
@media (max-width: 768px) {
  .s-product-options-thumbnails-wrapper > div > label {
    min-height: 160px !important;
    aspect-ratio: 4 / 3 !important;
  }
  .go-tabs-wrapper { padding: 16px 8px !important; }
  .go-tabs { gap: 6px !important; padding: 8px !important; }
  .go-tabs > li { padding: 6px 10px !important; font-size: 13px !important; }
}

@media (max-width: 480px) {
  .s-product-options-thumbnails-wrapper > div > label { min-height: 130px !important; }
  .go-tabs { width: 100% !important; border-radius: 12px !important; }
}

/* =========================
   📱 بانر التطبيق (جوال فقط)
========================= */
#st-app-banner{
  position: fixed !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 80px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg,#0b0f14 0%,#1a1f26 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(255,101,39,.25);
  animation: stSlideUp .45s cubic-bezier(.2,.8,.2,1);
  box-sizing: border-box;
}
#st-app-banner.st-hidden{ display:none !important; }

@media (min-width: 992px){
  #st-app-banner{ display:none !important; }
}

#st-app-banner .st-close{
  position:absolute; top:-8px; inset-inline-start:-8px;
  width:26px; height:26px; border-radius:50%;
  border:0; background:#fff; color:#111;
  font-size:18px; line-height:1; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
  z-index:2;
  display:flex; align-items:center; justify-content:center;
}
#st-app-banner .st-icon{
  flex:0 0 48px; width:48px; height:48px;
  border-radius:12px; background:#fff; padding:4px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px rgba(255,101,39,.25);
}
#st-app-banner .st-icon img{ width:100%; height:100%; object-fit:contain; }
#st-app-banner .st-text{ flex:1; min-width:0; color:#fff; }
#st-app-banner .st-text h4{ margin:0; font-size:14px; font-weight:700; color:#fff; }
#st-app-banner .st-text p{
  margin:2px 0 0; font-size:12px; color:#cfcfcf;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#st-app-banner .st-btn{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:6px;
  background:linear-gradient(135deg,#FF6527,#ff8a4d);
  color:#fff !important; font-weight:800; font-size:13px;
  padding:9px 14px; border-radius:999px;
  text-decoration:none !important; white-space:nowrap;
  box-shadow:0 6px 16px rgba(255,101,39,.45);
  transition: transform .2s ease;
}
#st-app-banner .st-btn:hover{ transform: translateY(-1px); }
#st-app-banner .st-btn:active{ transform: scale(.97); }

@keyframes stSlideUp{
  from{ opacity:0; transform:translateY(30px); }
  to{ opacity:1; transform:translateY(0); }
}