/* gs theme (generated) */
html:not(.dark){--header-bg:#87016b;--title-color:#fffdfd;}
html:not(.dark) header{background-color:#87016b !important}
html.gs-admin:not(.gs-dash) header{position:sticky !important;z-index:40}
html.gs-admin:not(.gs-dash) header:not([class*="top-"]){top:0}

/* ==========================================================================
   GS extras  1) انتقالات عرض المنتج  2) زر ونافذة المشاركة العصريان  3) أمان التباين (الخلفية/الخط معكوسان)
   ========================================================================== */
@keyframes gsFadeIn{from{opacity:0}to{opacity:1}}
@keyframes gsSheetUp{0%{opacity:0;transform:translateY(54px) scale(.965)}55%{opacity:1}100%{opacity:1;transform:none}}
@keyframes gsRise{0%{opacity:0;transform:translateY(16px)}100%{opacity:1;transform:none}}
@keyframes gsImgIn{0%{opacity:0;transform:scale(1.07)}100%{opacity:1;transform:none}}
@keyframes gsShareIn{0%{opacity:0;transform:translateY(44px) scale(.96)}100%{opacity:1;transform:none}}
@keyframes gsIconPop{0%{opacity:0;transform:translateY(14px) scale(.45)}70%{opacity:1;transform:translateY(-2px) scale(1.07)}100%{opacity:1;transform:none}}
@keyframes gsGlow{0%,100%{box-shadow:0 8px 22px rgba(40,10,110,.28),inset 0 1px 0 rgba(255,255,255,.55),0 0 0 0 rgba(255,255,255,.45)}50%{box-shadow:0 8px 22px rgba(40,10,110,.28),inset 0 1px 0 rgba(255,255,255,.55),0 0 0 9px rgba(255,255,255,0)}}

/* ---------- 1) عرض المنتج: خلفية تتلاشى + ورقة تصعد بنعومة + عناصر تظهر تباعاً ---------- */
html:not(#gs-x) .fixed.inset-0.z-50 > .absolute.inset-0[class*="bg-black"]{animation:gsFadeIn .38s ease backwards}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up{
  animation:gsSheetUp .6s cubic-bezier(.22,1,.36,1) backwards !important;
}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up > :nth-child(n+2){animation:gsRise .55s cubic-bezier(.22,1,.36,1) backwards}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up > :nth-child(2){animation-delay:.14s}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up > :nth-child(3){animation-delay:.22s}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up > :nth-child(4){animation-delay:.30s}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up > :nth-child(5){animation-delay:.38s}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up > :nth-child(n+6){animation-delay:.46s}
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card.animate-slide-up .aspect-square img{animation:gsImgIn .9s cubic-bezier(.22,1,.36,1) backwards .1s}
/* تبديل صور المنتج أنعم */
html:not(#gs-x) .fixed.inset-0.z-50 > .relative.bg-card .aspect-square img{transition-duration:.42s !important;transition-timing-function:cubic-bezier(.22,1,.36,1) !important}

/* الشريط العلوي للمنتج: بدون backdrop-filter (كان يحبس نافذة المشاركة داخل الشريط) */
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0{
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  padding:12px 14px !important;gap:10px;
}
/* زر الإغلاق: دائرة زجاجية */
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button:last-child{
  width:42px;height:42px;display:inline-flex !important;align-items:center;justify-content:center;
  padding:0 !important;border-radius:50% !important;
  background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.14)) !important;
  border:1px solid rgba(255,255,255,.45) !important;
  box-shadow:0 8px 22px rgba(40,10,110,.25),inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .3s cubic-bezier(.22,1,.36,1),background .25s;
}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button:last-child:hover{transform:rotate(90deg) scale(1.06)}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button:last-child:active{transform:scale(.9)}

/* ---------- 2) زر المشاركة: كبسولة زجاجية عصرية بأيقونة ونص ---------- */
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"]{
  display:inline-flex !important;align-items:center;gap:9px;height:42px;
  padding:0 18px 0 14px !important;border-radius:999px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.14)) !important;
  border:1px solid rgba(255,255,255,.45) !important;
  box-shadow:0 8px 22px rgba(40,10,110,.28),inset 0 1px 0 rgba(255,255,255,.55);
  color:#fff !important;font:700 14px/1 Cairo,Tahoma,Arial,sans-serif;letter-spacing:.2px;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s,background .25s;
  animation:gsGlow 2.6s ease-in-out 1.1s 2;
}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"]::after{content:"مشاركة"}
html[lang="en"]:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"]::after{content:"Share"}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"] svg{
  width:18px !important;height:18px !important;color:#fff !important;transition:transform .4s cubic-bezier(.22,1,.36,1)}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"]:hover{
  transform:translateY(-2px);background:linear-gradient(135deg,rgba(255,255,255,.46),rgba(255,255,255,.2)) !important;
  box-shadow:0 14px 28px rgba(40,10,110,.36),inset 0 1px 0 rgba(255,255,255,.7)}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"]:hover svg{transform:rotate(-14deg) scale(1.15)}
html:not(#gs-x) .fixed.inset-0 > .relative.bg-card .sticky.top-0 > button[aria-label="Share"]:active{transform:scale(.94)}

/* ---------- نافذة المشاركة (تفتح داخل الشريط العلوي) ---------- */
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\]{
  --gsx-bg:linear-gradient(180deg,#ffffff,#f3eefd);--gsx-ink:#2b2450;--gsx-soft:rgba(109,63,217,.09);--gsx-line:rgba(109,63,217,.18);
}
html.dark:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\]{
  --gsx-bg:linear-gradient(180deg,#2c2356,#1b1540);--gsx-ink:#f4f0ff;--gsx-soft:rgba(255,255,255,.09);--gsx-line:rgba(255,255,255,.2);
}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .absolute.inset-0{
  background:rgba(20,10,50,.58) !important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  animation:gsFadeIn .3s ease backwards !important}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card{
  background:var(--gsx-bg) !important;border:0 !important;border-radius:30px 30px 0 0 !important;
  padding:12px 20px 26px !important;box-shadow:0 -20px 60px rgba(30,10,90,.45) !important;
  animation:gsShareIn .55s cubic-bezier(.22,1,.36,1) backwards !important}
@media (min-width:640px){html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card{border-radius:30px !important;padding-top:22px !important}}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card::before{
  content:"";display:block;width:46px;height:5px;border-radius:9px;margin:0 auto 14px;background:var(--gsx-ink);opacity:.2}
@media (min-width:640px){html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card::before{display:none}}
/* الألوان: خط معكوس للخلفية دائماً (يتغلب على قاعدة الشريط العلوي التي كانت تفرض الأبيض) */
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card,
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card *{
  color:var(--gsx-ink) !important;-webkit-text-fill-color:var(--gsx-ink) !important}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card h3{font-size:17px;font-weight:800}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card button{
  background:var(--gsx-soft) !important;border:0 !important;box-shadow:none !important}
/* إغلاق (X) داخل النافذة */
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card > div:first-child > button{
  width:36px;height:36px;border-radius:50% !important;display:inline-flex;align-items:center;justify-content:center;padding:0 !important;
  transition:transform .3s cubic-bezier(.22,1,.36,1)}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card > div:first-child > button:hover{transform:rotate(90deg)}
/* شبكة التطبيقات */
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a{
  background:var(--gsx-soft);border-radius:22px !important;padding:14px 4px 12px !important;gap:9px !important;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s;animation:gsIconPop .55s cubic-bezier(.22,1,.36,1) backwards}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a:nth-child(1){animation-delay:.10s}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a:nth-child(2){animation-delay:.17s}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a:nth-child(3){animation-delay:.24s}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a:nth-child(4){animation-delay:.31s}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a:hover{transform:translateY(-5px);box-shadow:0 14px 26px -10px rgba(40,20,120,.4)}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a > div{
  width:56px !important;height:56px !important;box-shadow:0 10px 20px -8px rgba(0,0,0,.45),0 0 0 2px rgba(255,255,255,.28);transition:transform .3s cubic-bezier(.22,1,.36,1)}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a:hover > div{transform:scale(1.1) rotate(-4deg)}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a > div,
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a > div *{color:#fff !important;-webkit-text-fill-color:#fff !important}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card .grid > a > span{font-size:11px !important;font-weight:700}
/* صف نسخ الرابط */
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card > button.w-full{
  border-radius:16px !important;padding:13px 14px !important;border:1.5px dashed var(--gsx-line) !important;
  transition:transform .2s,background .2s}
html:not(#gs-x) .sticky.top-0 > .fixed.inset-0.z-\[80\] > .relative.bg-card > button.w-full:active{transform:scale(.98)}

@media (prefers-reduced-motion:reduce){
  html:not(#gs-x) .fixed.inset-0 *{animation-duration:.01ms !important;animation-delay:0s !important}
}

/* ---------- 3) أمان التباين العام: حقول الإدخال والنصوص في الوضعين ---------- */
html.gs-admin:not(.dark):not(#gs-x) main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html.gs-admin:not(.dark):not(#gs-x) main textarea,
html.gs-admin:not(.dark):not(#gs-x) main select{color:#2b2450 !important;-webkit-text-fill-color:#2b2450 !important}
html.gs-admin.dark:not(#gs-x) main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html.gs-admin.dark:not(#gs-x) main textarea,
html.gs-admin.dark:not(#gs-x) main select{color:#f4f0ff !important;-webkit-text-fill-color:#f4f0ff !important}
html.gs-admin:not(.dark):not(#gs-x) main ::placeholder{color:rgba(43,36,80,.5) !important;-webkit-text-fill-color:rgba(43,36,80,.5) !important}
html.gs-admin.dark:not(#gs-x) main ::placeholder{color:rgba(244,240,255,.55) !important;-webkit-text-fill-color:rgba(244,240,255,.55) !important}



/* ==========================================================================
   نظام النوافذ المنبثقة الموحد بتصميم جيرلي شوب (Girly Shop Modal System)
   ========================================================================== */
@keyframes gsModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gsModalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes gsModalZoomIn { 0% { opacity: 0; transform: scale(0.9) translateY(18px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes gsModalZoomOut { 0% { opacity: 1; transform: scale(1) translateY(0); } 100% { opacity: 0; transform: scale(0.92) translateY(12px); } }
@keyframes gsIconBounce { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@keyframes gsIconPulse { 0% { box-shadow: 0 0 0 0 var(--gs-pulse, rgba(124,58,237,.35)); } 100% { box-shadow: 0 0 0 18px rgba(0,0,0,0); } }
.gs-modal-overlay { position: fixed; inset: 0; z-index: 10000000; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: radial-gradient(900px 480px at 50% 0%, rgba(124,58,237,.30), transparent 62%), rgba(15, 23, 42, 0.58); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); font-family: Cairo, Tajawal, system-ui, -apple-system, sans-serif; direction: rtl; pointer-events: auto !important; animation: gsModalFadeIn 0.22s ease forwards; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gs-modal-overlay *, .gs-modal-overlay *::before, .gs-modal-overlay *::after { box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.gs-modal-overlay input, .gs-modal-overlay textarea, .gs-modal-overlay select { -webkit-user-select: text; user-select: text; }
.gs-modal-overlay ::selection { background: transparent; }
.gs-modal-overlay input::selection, .gs-modal-overlay textarea::selection { background: rgba(124,58,237,.25); }
.gs-modal-card { position: relative; background: #ffffff; border-radius: 28px; width: 100%; max-width: 420px; padding: 32px 24px 22px; box-sizing: border-box; text-align: center; box-shadow: 0 30px 80px -20px rgba(76, 29, 149, 0.45), 0 0 0 1px rgba(124, 58, 237, 0.10); animation: gsModalZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; overflow: hidden; }
.gs-modal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #7c3aed, #c026d3, #ec4899); }
.gs-modal-card:has(.gs-icon-danger)::before { background: linear-gradient(90deg, #fb7185, #e11d48, #be123c); }
.gs-modal-card:has(.gs-icon-success)::before { background: linear-gradient(90deg, #4ade80, #16a34a, #15803d); }
.gs-modal-card:has(.gs-icon-warning)::before { background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706); }
.dark .gs-modal-card, html.dark .gs-modal-card { background: #1b1740; color: #f8fafc; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 92, 246, 0.28); }
.gs-modal-close-x { position: absolute; top: 16px; left: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: #f1f5f9; color: #64748b; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; padding: 0; }
.gs-modal-close-x:hover { background: #e2e8f0; color: #0f172a; transform: rotate(90deg); }
.dark .gs-modal-close-x, html.dark .gs-modal-close-x { background: #2a2566; color: #cbd5e1; }
.gs-modal-icon-badge { width: 72px; height: 72px; border-radius: 24px; margin: 4px auto 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; animation: gsIconBounce 0.45s cubic-bezier(.34,1.56,.64,1) both, gsIconPulse 1.1s ease-out .15s 1; }
.gs-icon-danger { --gs-pulse: rgba(225,29,72,.30); background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); border: 2px solid #fecdd3; color: #e11d48; box-shadow: 0 10px 24px -4px rgba(225, 29, 72, 0.25); }
.gs-icon-success { --gs-pulse: rgba(22,163,74,.30); background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 2px solid #bbf7d0; color: #16a34a; box-shadow: 0 10px 24px -4px rgba(22, 163, 74, 0.25); }
.gs-icon-primary { --gs-pulse: rgba(124,58,237,.30); background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); border: 2px solid #ddd6fe; color: #7c3aed; box-shadow: 0 10px 24px -4px rgba(124, 58, 237, 0.25); }
.gs-icon-warning { --gs-pulse: rgba(217,119,6,.30); background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 2px solid #fde68a; color: #d97706; box-shadow: 0 10px 24px -4px rgba(217, 119, 6, 0.25); }
.gs-modal-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.4; }
.dark .gs-modal-title, html.dark .gs-modal-title { color: #ffffff; }
.gs-modal-desc { margin: 0 0 24px; font-size: 14px; font-weight: 500; color: #64748b; line-height: 1.7; white-space: pre-line; word-break: break-word; }
.dark .gs-modal-desc, html.dark .gs-modal-desc { color: #a5b4cf; }
.gs-modal-actions { display: flex; gap: 12px; align-items: center; justify-content: center; }
html body .gs-modal-overlay .gs-modal-btn { flex: 1; height: 46px; padding: 0 14px; border-radius: 14px !important; font-size: 14px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; border: none; outline: none; box-sizing: border-box; font-family: inherit; line-height: 1; white-space: nowrap; }
html body .gs-modal-overlay .gs-modal-btn:hover { transform: translateY(-2px); }
html body .gs-modal-overlay .gs-modal-btn:active { transform: scale(0.97); }
html body .gs-modal-overlay .gs-modal-btn:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #8b5cf6; }
html body .gs-modal-overlay .gs-btn-danger { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); color: #ffffff; box-shadow: 0 8px 20px rgba(225, 29, 72, 0.38); }
html body .gs-modal-overlay .gs-btn-danger:hover { box-shadow: 0 12px 26px rgba(225, 29, 72, 0.5); }
html body .gs-modal-overlay .gs-btn-primary { background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%); color: #ffffff; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.38); }
html body .gs-modal-overlay .gs-btn-primary:hover { box-shadow: 0 12px 26px rgba(124, 58, 237, 0.5); }
html body .gs-modal-overlay .gs-btn-cancel { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
html body .gs-modal-overlay .gs-btn-cancel:hover { background: #f1f5f9; color: #0f172a; }
.dark .gs-btn-cancel, html.dark .gs-btn-cancel { background: #2a2566 !important; color: #e2e8f0 !important; border-color: #4338ca !important; }

/* custom background css */
