/* ==========================================================
   ثيم متجر حسين حسن البقشمي للمجوهرات
   ثيم رائد – كود التنسيق المخصص
   ========================================================== */


/* ==========================================================
   00 | المتغيرات العامة (الألوان – الخطوط – المسافات)
   ========================================================== */
:root {
  /* الألوان */
  --bq-gold:        #8C6A2B;   /* الذهبي الأساسي (لون الهوية) */
  --bq-gold-light:  #C9A55C;   /* ذهبي فاتح للتدرجات والحدود */
  --bq-gold-soft:   #F6EFE2;   /* خلفية ذهبية هادية */
  --bq-dark:        #1E1A14;   /* لون النصوص الغامق */
  --bq-white:       #FFFFFF;

  /* شريط الزخرفة (نفس شريط الورقة الرسمية) */
  --bq-band-h:          18px;     /* ارتفاع الشريط في الهيدر والفوتر على الكمبيوتر */
  --bq-band-h-sm:       14px;     /* ارتفاعه على الجوال */
  --bq-band-gold:       #C0963F;  /* ذهبي الخط العريض (لون الشريط نفسه مكتوب جوه رابط الصورة) */
  --bq-band-light:      #E6C98F;  /* الخط الذهبي الفاتح الرفيع اللي جنب الشريط والخط العريض */
  --bq-thick-line:      4px;      /* سُمك الخط الذهبي العريض */

  /* خلفية المتجر */
  --bq-bg:              #F5F5F3;  /* لون خلفية المتجر */
  --bq-pattern-opacity: .2;       /* شفافية الزخرفة: 0 مخفية – 1 كاملة */
  --bq-line-width:      28px;     /* ارتفاع شريط الزخرفة في الخلفية على الكمبيوتر (المسافة بين الشرايط = 5 أضعافه) */
  --bq-line-width-sm:   20px;     /* ارتفاعه على الجوال */
  --bq-lines-angle:     -30deg;   /* ميل الشرايط: سالب = طالعة لفوق ناحية اليمين، موجب = العكس، 0 = أفقي */

  /* الهيدر والفوتر */
  --bq-cream:           #F8F4EE;  /* خلفية الهيدر والفوتر */
  --bq-frame:           #C39454;  /* الذهبي لحدود القوائم المنسدلة وخانة البحث */
  --bq-frame-light:     #E3C292;  /* الخط الذهبي الفاتح جوه الفوتر */
  --bq-divider:         #E5D3BC;  /* الفواصل بين أعمدة الفوتر */
  --bq-accent:          #B8801C;  /* الذهبي للرابط النشط والوقوف بالماوس */
  --bq-text-dark:       #3A1F10;  /* نصوص القائمة والعناوين */
  --bq-text-body:       #5A3A26;  /* نصوص الفوتر والروابط */
  --bq-button:          #C89E61;  /* زر الاشتراك وعداد السلة */

  /* الحواف والظلال */
  --bq-radius:      12px;
  --bq-shadow:      0 6px 20px rgba(140, 106, 43, .12);

  /* الحركة */
  --bq-speed:       .3s ease;

  /* صورة شريط الزخرفة (مثلثات وخطوط مايلة)
     ذهبي #C0963F مكتوب بالشكل ده: %23C0963F – والكريمي #FFF6CC مكتوب: %23FFF6CC
     لو حبيت تغيّر لون، غيّر الستة حروف اللي بعد %23 بس */
  --bq-band-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23C0963F'/%3E%3Cg fill='%23FFF6CC'%3E%3Cpath d='M7.5 2.5h5L10 6z'/%3E%3Cpath d='M-2.5 11.5h5L0 8zM17.5 11.5h5L20 8z'/%3E%3Cpath d='M2 2.5h2.5l3 9H5z'/%3E%3Cpath d='M15.5 2.5H18l-3 9h-2.5z'/%3E%3C/g%3E%3C/svg%3E");
}


/* ==========================================================
   01 | خلفية المتجر: شرايط زخرفة ذهبية مايلة (نفس شريط الورقة الرسمية)
   ========================================================== */

/* 01-أ | لون الخلفية الأساسي
   اللون على الصفحة كلها، والجسم شفاف عشان الزخرفة تظهر فوق اللون */
html {
  background-color: var(--bq-bg) !important;
}
body {
  background-color: transparent !important;
}

/* 01-ب | طبقة الزخرفة: شرايط مايلة بعرض الشاشة (ثابتة ورا المحتوى)
   الطبقة أكبر من الشاشة ومايلة بزاوية --bq-lines-angle عشان الشرايط تملا الشاشة من الطرف للطرف
   الزخرفة هنا مفرّغة: الشريط ذهبي والمثلثات والخطوط فاضية بيبان منها لون الخلفية
   لون الشريط #C49A36 مكتوب جوه الرابط بالشكل ده: %23C49A36
   لو حبيت تغيّره، غيّر الستة حروف اللي بعد %23 بس */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 250vmax;
  height: 250vmax;
  z-index: -1;
  pointer-events: none;
  opacity: var(--bq-pattern-opacity);
  transform: translate(-50%, -50%) rotate(var(--bq-lines-angle));
  background-repeat: repeat;
  background-position: center center;
  background-size: calc(var(--bq-line-width) * 20 / 14) calc(var(--bq-line-width) * 6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 84'%3E%3Cpath fill='%23C49A36' fill-rule='evenodd' d='M0 0h20v14H0zM7.5 2.5h5L10 6zM-2.5 11.5h5L0 8zM17.5 11.5h5L20 8zM2 2.5h2.5l3 9H5zM15.5 2.5H18l-3 9h-2.5z'/%3E%3C/svg%3E");
}

/* 01-ج | إلغاء الخلفيات البيضا للحاويات الرئيسية عشان الزخرفة تبان */
.app-inner,
main,
#main-content,
.main-content {
  background-color: transparent !important;
}

/* 01-د | الجوال: شرايط أرفع */
@media (max-width: 767px) {
  body::before {
    --bq-line-width: var(--bq-line-width-sm);
  }
}


/* ==========================================================
   02 | الهيدر: خلفية كريمي + شريط الزخرفة فوق + خط ذهبي عريض تحت
   ========================================================== */

/* 02-أ | الخلفية ومسافة الشريط اللي فوق */
.store-header {
  position: relative;
  background-color: var(--bq-cream) !important;
  padding-top: calc(var(--bq-band-h) + 1px);
  padding-bottom: calc(var(--bq-thick-line) + 1px);
  box-shadow: 0 6px 18px rgba(140, 106, 43, .10);
}

/* شريط البحث العلوي والقائمة الرئيسية شفافين عشان تبان خلفية الهيدر */
.store-header .top-navbar,
.store-header #mainnav,
.store-header .main-nav-container,
.store-header .main-nav-container .inner {
  background: transparent !important;
  box-shadow: none !important;
}

/* 02-ب | شريط الزخرفة فوق الهيدر + الخط الفاتح الرفيع تحته */
.store-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bq-band-h);
  z-index: 0;
  pointer-events: none;
  background: var(--bq-band-img) repeat-x center / auto 100%;
  border-bottom: 1px solid var(--bq-band-light);
}

/* 02-ج | الخط الذهبي العريض تحت الهيدر (خط فاتح رفيع + خط ذهبي عريض) */
.store-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bq-thick-line) + 1px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bq-band-light) 0 1px,
    var(--bq-band-gold) 1px 100%
  );
}

/* المحتوى فوق الزخرفة */
.store-header > *,
.store-footer > * {
  position: relative;
  z-index: 1;
}

/* 02-د | روابط القائمة الرئيسية */
.store-header .main-menu > li > a {
  color: var(--bq-text-dark) !important;
  font-weight: 600;
  background-image: linear-gradient(var(--bq-accent), var(--bq-accent));
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0 2px;
  transition: color var(--bq-speed), background-size var(--bq-speed);
}
.store-header .main-menu > li > a:hover,
.store-header .main-menu > li:hover > a,
body.index .store-header .main-menu > li:first-child > a {
  color: var(--bq-accent) !important;
  background-size: 55% 2px;
}

/* القوائم المنسدلة */
.store-header .main-menu .sub-menu {
  background: var(--bq-cream) !important;
  border-top: 2px solid var(--bq-frame) !important;
}
.store-header .main-menu .sub-menu a {
  color: var(--bq-text-body) !important;
}
.store-header .main-menu .sub-menu a:hover {
  color: var(--bq-accent) !important;
}

/* 02-هـ | خانة البحث */
.store-header .s-search-input {
  background: rgba(255, 255, 255, .7) !important;
  border: 1px solid #DDD5D0 !important;
  border-radius: 999px !important;
  color: var(--bq-text-dark) !important;
}
.store-header .s-search-input:focus {
  border-color: var(--bq-frame) !important;
}

/* 02-و | أيقونات الحساب والسلة وعداد السلة */
.store-header .header-btn__icon,
.store-header salla-user-menu,
.store-header .sicon-menu {
  color: var(--bq-text-dark) !important;
}
.store-header .header-btn__icon {
  border-color: transparent !important;
}
.store-header .s-cart-summary-count {
  background: var(--bq-button) !important;
  color: #fff !important;
}
.store-header .s-cart-summary-total {
  color: var(--bq-text-dark) !important;
}

/* 02-ز | الهيدر وهو ثابت فوق وقت النزول في الصفحة: نفس الخط العريض تحته */
.main-nav-container.fixed-pinned .inner {
  background: var(--bq-cream) !important;
  border-bottom: var(--bq-thick-line) solid var(--bq-band-gold);
  box-shadow: inset 0 -1px 0 var(--bq-band-light) !important;
}


/* ==========================================================
   03 | الفوتر: خط ذهبي عريض فوق + شريط الزخرفة تحت (عكس الهيدر)
   ========================================================== */

/* 03-أ | الخلفية ومسافات الخط العريض والشريط */
.store-footer,
.footer-is-dark .store-footer,
.footer-is-light .store-footer {
  position: relative;
  background-color: var(--bq-cream) !important;
  color: var(--bq-text-body) !important;
  padding-top: calc(var(--bq-thick-line) + 1px);
  padding-bottom: calc(var(--bq-band-h) + 1px);
}
.store-footer .store-footer__inner,
.footer-is-dark .store-footer .store-footer__inner,
.footer-is-light .store-footer .store-footer__inner {
  background: transparent !important;
  border-bottom: 1px solid var(--bq-frame-light) !important;
}

/* 03-ب | الخط الذهبي العريض فوق الفوتر (خط ذهبي عريض + خط فاتح رفيع) */
.store-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--bq-thick-line) + 1px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bq-band-gold) 0 var(--bq-thick-line),
    var(--bq-band-light) var(--bq-thick-line) 100%
  );
}

/* 03-ج | شريط الزخرفة تحت الفوتر + الخط الفاتح الرفيع فوقه */
.store-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bq-band-h);
  z-index: 0;
  pointer-events: none;
  background: var(--bq-band-img) repeat-x center / auto 100%;
  border-top: 1px solid var(--bq-band-light);
}

/* 03-د | العناوين والنصوص والروابط */
.store-footer h3 {
  color: var(--bq-text-dark) !important;
  font-weight: 700;
}
.store-footer p,
.store-footer li,
.store-footer span {
  color: var(--bq-text-body);
}
.store-footer a {
  color: var(--bq-text-body) !important;
  text-decoration: none;
  transition: color var(--bq-speed);
}
.store-footer a:hover {
  color: var(--bq-accent) !important;
  opacity: 1 !important;
}

/* 03-هـ | الفواصل بين الأعمدة (كمبيوتر بس) */
@media (min-width: 1024px) {
  .store-footer__inner .container > * + * {
    border-right: 1px solid var(--bq-divider);
    padding-right: 24px;
  }
  [dir="ltr"] .store-footer__inner .container > * + * {
    border-right: 0;
    border-left: 1px solid var(--bq-divider);
    padding-right: 0;
    padding-left: 24px;
  }
}

/* 03-و | أيقونات التواصل الاجتماعي (دواير بإطار ذهبي) */
.store-footer .social-link {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid var(--bq-button) !important;
  color: #94662D !important;
  background: rgba(255, 255, 255, .4);
  font-size: 18px;
}
.store-footer .social-link:hover {
  background: var(--bq-button) !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* 03-ز | شريط الحقوق ووسائل الدفع */
.store-footer > .container {
  border-top: 1px solid var(--bq-frame-light);
}
.store-footer .copyright-text,
.store-footer .copyright-text p {
  color: var(--bq-text-body) !important;
}

/* 03-ح | الجوال: شريط الزخرفة أرفع في الهيدر والفوتر */
@media (max-width: 767px) {
  :root {
    --bq-band-h: var(--bq-band-h-sm);
  }
}
/* ==========================================================
   04 | بنرات الصفحة الرئيسية المربعة: الطبقة الغامقة تظهر بالماوس بس
   ========================================================== */

/* 04-أ | الوضع العادي: الصورة واضحة من غير طبقة غامقة */
.s-block--banners .banner-entry.has-overlay::after {
  opacity: 0;
  transition: opacity var(--bq-speed);
}

/* 04-ب | وقت الوقوف بالماوس: الطبقة الغامقة تظهر والكلام يبان فوقها
   (درجة الغمقان من الرقم .55 – زوّده للأغمق وقلّله للأفتح) */
.s-block--banners .banner-entry.has-overlay:hover::after {
  opacity: 1;
  background-color: rgba(0, 0, 0, .55) !important;
}

/* 04-ج | الجوال (مفيش ماوس): الكلام ظاهر على طول، فالطبقة الغامقة تفضل ظاهرة عشان يتقري */
@media (hover: none) {
  .s-block--banners .banner-entry.has-overlay::after {
    opacity: 1;
  }
}
/* ==========================================================
   05 | هوفر صور المنتجات: تقريب + لمعة ذهبية بتعدّي + إطار ذهبي
   ========================================================== */

/* 05-أ | تجهيز حاوية الصورة (عشان التقريب واللمعة يفضلوا جوه حدود الصورة) */
.s-product-card-entry .s-product-card-image {
  overflow: hidden;
}
.s-product-card-entry .s-product-card-image > a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
}

/* 05-ب | التقريب البطيء للصورة */
.s-product-card-entry .s-product-card-image img {
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease !important;
  will-change: transform;
}
.s-product-card-entry:hover .s-product-card-image img {
  transform: scale(var(--bq-zoom, 1.12));
  filter: saturate(1.08) contrast(1.03);
}

/* 05-ج | اللمعة الذهبية اللي بتعدّي على الصورة بالمايل */
.s-product-card-entry .s-product-card-image > a::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -75%;
  width: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 240, 200, 0) 30%,
    rgba(255, 236, 190, .55) 46%,
    rgba(196, 154, 54, .55) 50%,
    rgba(255, 236, 190, .55) 54%,
    rgba(255, 240, 200, 0) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  opacity: 0;
}
.s-product-card-entry:hover .s-product-card-image > a::after {
  animation: bq-gold-shine 1.1s ease-out forwards;
}
@keyframes bq-gold-shine {
  0%   { left: -75%;  opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 130%;  opacity: 1; }
}

/* 05-د | الإطار الذهبي الرفيع اللي بيظهر جوه الصورة */
.s-product-card-entry .s-product-card-image > a::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(196, 154, 54, .9);
  border-radius: calc(var(--bq-radius) - 4px);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity var(--bq-speed), transform .5s ease;
}
.s-product-card-entry:hover .s-product-card-image > a::before {
  opacity: 1;
  transform: scale(1);
}

/* 05-هـ | الكارت كله بيطلع لفوق شوية بظل ذهبي */
.s-product-card-entry {
  transition: transform .4s ease, box-shadow .4s ease;
}
.s-product-card-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(140, 106, 43, .22);
}

/* 05-و | زرار المفضلة يفضل فوق اللمعة والإطار */
.s-product-card-entry .s-product-card-image .s-product-card-wishlist-btn {
  z-index: 3;
}

/* 05-ز | لو المستخدم قافل الحركة من جهازه: من غير حركة */
@media (prefers-reduced-motion: reduce) {
  .s-product-card-entry,
  .s-product-card-entry .s-product-card-image img {
    transition: none !important;
  }
  .s-product-card-entry:hover .s-product-card-image > a::after {
    animation: none;
  }
}
/* ===== شريط أسعار الذهب — هوية حسين حسن البقشي ===== */

#gold-index-ticker .gold-index-ticker-container {
  height: 46px;
  font-family: inherit;
  font-size: 14px;
  color: #5C3D17;
  background: linear-gradient(90deg, #F6EAD2 0%, #FDF8EE 50%, #F6EAD2 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-top: 2px solid #B8862E;
  border-bottom: 2px solid #B8862E;
  border-radius: 0;
  /* الخط الذهبي الداخلي الرفيع زي إطار البانر */
  box-shadow:
    inset 0 3px 0 #FDF8EE, inset 0 4px 0 #D9B66A,
    inset 0 -3px 0 #FDF8EE, inset 0 -4px 0 #D9B66A;
}

/* تلاشي ناعم على الطرفين */
#gold-index-ticker .gold-index-ticker-container::before,
#gold-index-ticker .gold-index-ticker-container::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}
#gold-index-ticker .gold-index-ticker-container::before {
  right: 0;
  background: linear-gradient(to left, #F6EAD2, rgba(246, 234, 210, 0));
}
#gold-index-ticker .gold-index-ticker-container::after {
  left: 0;
  background: linear-gradient(to right, #F6EAD2, rgba(246, 234, 210, 0));
}

/* سرعة حركة أهدى وأفخم */
#gold-index-ticker .gi-ticker-content {
  animation-duration: 55s;
}

/* العناصر + فاصل المعين الذهبي */
#gold-index-ticker .gi-item,
#gold-index-ticker .gi-item:last-child {
  position: relative;
  gap: 8px;
  padding: 0 26px;
  border-left: none;
}
#gold-index-ticker .gi-item::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #B8862E;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 0 2px #FDF8EE, 0 0 0 3px #D9B66A;
}

/* اسم العيار */
#gold-index-ticker .gi-label {
  opacity: 1;
  color: #8A6A3B;
  font-size: 13px;
  font-weight: 500;
}

/* السعر (ورمز الريال بياخد نفس اللون تلقائياً) */
#gold-index-ticker .gi-price-gold {
  color: #7A4F12;
  font-size: 15px;
  font-weight: 800;
}

/* أسهم الاتجاه بألوان دافية متناسقة مع الهوية */
#gold-index-ticker .gi-trend-up      { color: #3E7C4F; }
#gold-index-ticker .gi-trend-down    { color: #B0473A; }
#gold-index-ticker .gi-trend-balance { color: #B8862E; opacity: 0.6; }

/* الجوال */
@media (max-width: 768px) {
  #gold-index-ticker .gold-index-ticker-container {
    height: 40px;
    font-size: 12.5px;
  }
  #gold-index-ticker .gi-item,
  #gold-index-ticker .gi-item:last-child {
    padding: 0 18px;
  }
  #gold-index-ticker .gi-label       { font-size: 11.5px; }
  #gold-index-ticker .gi-price-gold  { font-size: 13.5px; }
}
/* ==========================================================
   06 | مربعات السعر حسب طريقة الدفع (صفحة المنتج) – النسخة 4
   الكود ده شغال مع كود الجافاسكربت رقم 06
   امسح قسم 06 القديم كله والصق ده مكانه
   ========================================================== */

/* 06-أ | المقاسات (غيّر من هنا بس) */
:root {
  --bq-pay-title:   14px;   /* اسم طريقة الدفع */
  --bq-pay-price:   20px;   /* السعر (نفس المقاس في التلات مربعات) */
  --bq-pay-save:    12px;   /* سطر التوفير */
  --bq-pay-logo:    24px;   /* ارتفاع اللوجوهات */
  --bq-pay-stc:     15px;   /* ارتفاع لوجو إس تي سي باي لوحده (لأنه عريض) */
}
@media (max-width: 767px) {
  :root {
    --bq-pay-title:  13px;
    --bq-pay-price:  18px;
    --bq-pay-save:   11.5px;
    --bq-pay-logo:   20px;
    --bq-pay-stc:    13px;
  }
}

/* 06-ب | إخفاء مربع السعر الأصلي */
.bq-pay-hidden {
  display: none !important;
}

/* 06-ج | الحاوية: 3 مربعات جنب بعض بنفس الارتفاع
   (المسافة اللي فوق عشان شارة "الأوفر" اللي طالعة من فوق المربع) */
.bq-pay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 18px 0 10px;
}

/* 06-د | المربع: نفس الترتيب في التلاتة عشان الأسعار تيجي على خط واحد
   لوجو ← اسم ← فاصل ← سعر ← توفير */
.bq-pay__card {
  position: relative;
  display: grid;
  grid-template-rows: var(--bq-pay-logo) auto auto auto auto;
  justify-items: center;
  align-content: start;
  row-gap: 8px;
  padding: 18px 12px 16px;
  text-align: center;
  background: var(--bq-cream);
  border: 1px solid var(--bq-frame-light);
  border-radius: var(--bq-radius);
  transition: transform var(--bq-speed), box-shadow var(--bq-speed);
}
/* الإطار الداخلي الرفيع */
.bq-pay__card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(196, 154, 54, .35);
  border-radius: calc(var(--bq-radius) - 4px);
  pointer-events: none;
}
.bq-pay__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bq-shadow);
}

/* الرأس بيتفك عشان اللوجو والاسم ياخدوا صفوف المربع مباشرة */
.bq-pay__head {
  display: contents;
}

/* 06-هـ | اللوجوهات */
.bq-pay__logos {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--bq-pay-logo);
}
.bq-pay__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bq-pay-logo);
}
.bq-pay__logo:empty {
  display: none;
}
.bq-pay__logos img {
  display: block;
  height: var(--bq-pay-logo) !important;
  width: auto !important;
  max-width: calc(var(--bq-pay-logo) * 2.6);
  object-fit: contain;
}
/* لوجو إس تي سي باي أصغر لوحده */
.bq-pay__logo[data-bq-logo="stcpay"] img {
  height: var(--bq-pay-stc) !important;
  max-width: calc(var(--bq-pay-stc) * 4.5);
}
/* أيقونة البنك بخط ذهبي */
.bq-pay__logo--icon svg {
  width: var(--bq-pay-logo);
  height: var(--bq-pay-logo);
  color: var(--bq-gold);
}

/* 06-و | اسم طريقة الدفع */
.bq-pay__title {
  grid-row: 2;
  font-size: var(--bq-pay-title) !important;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bq-text-body);
}

/* 06-ز | الفاصل: خط ذهبي ومعيّن في النص */
.bq-pay__sep {
  position: relative;
  width: 60%;
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(90deg, transparent, var(--bq-band-light), transparent);
}
.bq-pay__sep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--bq-band-gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 2px var(--bq-cream), 0 0 0 3px var(--bq-band-light);
}

/* 06-ح | السعر (نفس المقاس في التلاتة) */
.bq-pay__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--bq-pay-price) !important;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--bq-text-dark);
}
.bq-pay__price .sicon-sar {
  font-size: .75em;
}

/* 06-ط | سطر التوفير */
.bq-pay__note {
  min-height: calc(var(--bq-pay-save) * 1.5);
  font-size: var(--bq-pay-save) !important;
  line-height: 1.5;
}
.bq-pay__save {
  display: block;
  font-size: inherit;
  font-weight: 700;
  color: #3E7C4F;
}
.bq-pay__save .sicon-sar {
  font-size: .9em;
}

/* 06-ي | مربع التحويل البنكي (الأوفر) */
.bq-pay__card--best {
  background: var(--bq-gold-soft);
  border: 2px solid var(--bq-band-gold);
  padding-bottom: 24px;
}
.bq-pay__card--best::before {
  bottom: 13px;
}
.bq-pay__card--best .bq-pay__sep::after {
  box-shadow: 0 0 0 2px var(--bq-gold-soft), 0 0 0 3px var(--bq-band-light);
}
.bq-pay__card--best .bq-pay__price {
  color: #7A4F12;
}
/* شريط الزخرفة تحت مربع البنك */
.bq-pay__card--best::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-radius: 0 0 calc(var(--bq-radius) - 2px) calc(var(--bq-radius) - 2px);
  background: var(--bq-band-img) repeat-x center / auto 100%;
  border-top: 1px solid var(--bq-band-light);
}
/* شارة "الأوفر": طالعة من فوق حافة المربع عشان متكبّرش المربع عن الباقي */
.bq-pay__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  color: #fff;
  background: var(--bq-band-gold);
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--bq-gold-soft);
}
.bq-pay__badge::before,
.bq-pay__badge::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #FFF6CC;
  transform: rotate(45deg);
}

/* 06-ك | الجوال: المربعات تحت بعض، اللوجو والاسم يمين والسعر شمال */
@media (max-width: 767px) {
  .bq-pay {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bq-pay__card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logos price"
      "title note";
    justify-items: start;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px 16px;
    text-align: start;
  }
  .bq-pay__card--best {
    padding-bottom: 22px;
  }
  .bq-pay__logos {
    grid-area: logos;
    grid-row: auto;
    justify-content: flex-start;
  }
  .bq-pay__title {
    grid-area: title;
    grid-row: auto;
  }
  .bq-pay__sep {
    display: none;
  }
  .bq-pay__price {
    grid-area: price;
    justify-self: end;
  }
  .bq-pay__note {
    grid-area: note;
    justify-self: end;
    text-align: end;
  }
}

/* 06-ل | لو المستخدم قافل الحركة من جهازه */
@media (prefers-reduced-motion: reduce) {
  .bq-pay__card {
    transition: none;
  }
  .bq-pay__card:hover {
    transform: none;
  }
}