/* =====================================================================
   3rule — Game Programming
   هوية المتجر على سلة (ثيم رائد / Twilight)
   الصق هذا الملف كاملاً في: تصميم المتجر ← الثيم ← تخصيص ← CSS مخصص
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap");

/* ---------- 1. ألوان الهوية ---------- */
:root {
  --3r-bg: #070512;
  --3r-bg-2: #0c0920;
  --3r-surface: #130f28;
  --3r-surface-2: #1a1535;
  --3r-border: rgba(168, 120, 255, 0.18);
  --3r-border-strong: rgba(168, 120, 255, 0.45);

  --3r-purple: #a855f7;
  --3r-violet: #8b5cf6;
  --3r-indigo: #6366f1;
  --3r-blue: #3b82f6;
  --3r-cyan: #38bdf8;
  --3r-code: #a3e635;

  --3r-text: #eeeaff;
  --3r-muted: #a7a2c9;
  --3r-dim: #6f6a94;

  --3r-grad: linear-gradient(120deg, #b15cff 0%, #7c5cff 45%, #3b82f6 100%);
  --3r-grad-soft: linear-gradient(120deg, rgba(168, 85, 247, 0.16), rgba(59, 130, 246, 0.16));
  --3r-glow: 0 0 0 1px rgba(168, 85, 247, 0.35), 0 8px 30px -6px rgba(139, 92, 246, 0.55);
  --3r-glow-blue: 0 0 24px -4px rgba(59, 130, 246, 0.6);
  --3r-radius: 16px;
  --3r-font: "Tajawal", system-ui, sans-serif;
  --3r-mono: "JetBrains Mono", ui-monospace, monospace;

  /* متغيرات سلة الأساسية */
  --color-primary: #8b5cf6;
  --color-primary-dark: #6d28d9;
  --color-primary-light: #c4a5ff;
  --color-primary-reverse: #ffffff;
  --font-main: var(--3r-font);

  /* ألوان مكوّنات سلة (السلة، الدفع، صفحة الشكر، النوافذ...) */
  --color-surface: #130f28;
  --color-border: rgba(168, 120, 255, 0.18);
  --color-border-light: rgba(168, 120, 255, 0.12);
  --color-text: #eeeaff;
  --color-text-primary: #eeeaff;
  --color-text-secondary: #a7a2c9;
  --color-grey-dark: #a7a2c9;
}

/* ---------- 2. الأساس والخلفية ---------- */
html, body {
  background-color: var(--3r-bg) !important;
  color: var(--3r-text) !important;
  font-family: var(--3r-font) !important;
}

body {
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 450px at 0% 30%, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px) !important;
  background-size: auto, auto, 32px 32px, 32px 32px !important;
  background-attachment: fixed !important;
}

body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, span, a, li, label {
  font-family: var(--3r-font) !important;
}

::selection { background: var(--3r-violet); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--3r-bg); }
::-webkit-scrollbar-thumb { background: var(--3r-grad); border-radius: 10px; border: 2px solid var(--3r-bg); }

a { transition: color .2s ease; }
a:hover { color: var(--color-primary-light); }

/* تحويل أسطح الثيم الفاتحة إلى سطوح الهوية الداكنة */
.bg-white, .bg-gray-200, .bg-light, [class*="bg-white"] {
  background-color: var(--3r-surface) !important;
}
.bg-gray-50, .bg-gray-100, .bg-body, main, .main-content, .store-content {
  background-color: transparent !important;
}

.text-gray-900, .text-gray-800, .text-gray-700, .text-dark, .text-black,
h1, h2, h3, h4, h5, h6 { color: var(--3r-text) !important; }
.text-gray-600, .text-gray-500, .text-gray-400, .text-muted { color: var(--3r-muted) !important; }

.border, .border-gray-100, .border-gray-200, .border-gray-300, hr,
.divide-y > * + *, .divide-gray-200 > * + * { border-color: var(--3r-border) !important; }

.text-primary, .text-primary-color { color: var(--3r-purple) !important; }
.bg-primary { background: var(--3r-grad) !important; }

/* ---------- 3. الهيدر ---------- */
.store-header, #mainnav, .main-nav-container, .top-navbar, header {
  background: rgba(7, 5, 18, 0.78) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--3r-border) !important;
  color: var(--3r-text) !important;
}
.main-nav-container .inner, .main-nav-container.fixed-pinned .inner { background: transparent !important; }

.top-navbar {
  background: var(--3r-grad) !important;
  border: 0 !important;
  font-size: 13px;
}
.top-navbar * { color: #fff !important; }

.navbar-brand img, .store-header .logo img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.6), 0 0 22px rgba(139, 92, 246, 0.55);
}

.main-menu > li > a, .main-menu a, .store-header a, .store-header button,
.store-header .header-btn, .store-header i, .store-header svg {
  color: var(--3r-text) !important;
}
.main-menu > li > a:hover, .main-menu > li.active > a { color: var(--3r-purple) !important; }
.main-menu > li > a { position: relative; font-weight: 700; }
.main-menu > li > a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 2px;
  background: var(--3r-grad); transform: scaleX(0); transition: transform .25s ease; border-radius: 2px;
}
.main-menu > li > a:hover::after { transform: scaleX(1); }

.main-menu .sub-menu, .main-menu ul ul, .dropdown-menu, .s-dropdown-menu {
  background: var(--3r-surface) !important;
  border: 1px solid var(--3r-border) !important;
  border-radius: var(--3r-radius) !important;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7) !important;
}

/* شارة عدد السلة */
.s-cart-summary-count, .cart-count, .header-btn__badge {
  background: var(--3r-grad) !important; color: #fff !important;
  box-shadow: var(--3r-glow-blue);
}

/* ---------- 4. الأزرار ---------- */
.btn--primary, .btn-primary, .s-button-primary, .s-button-btn.s-button-primary,
salla-button[fill="solid"] .s-button-element, .s-add-product-button .s-button-element,
button[type="submit"]:not(.s-button-text) {
  background: var(--3r-grad) !important;
  background-size: 160% 100% !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  box-shadow: var(--3r-glow) !important;
  transition: background-position .4s ease, transform .15s ease, box-shadow .25s ease !important;
}
.btn--primary:hover, .btn-primary:hover, .s-button-primary:hover,
.s-add-product-button .s-button-element:hover, button[type="submit"]:not(.s-button-text):hover {
  background-position: 100% 0 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .5), 0 12px 34px -6px rgba(99, 102, 241, .7) !important;
}

.btn--outline, .btn-outline, .s-button-outline, salla-button[fill="outline"] .s-button-element {
  background: transparent !important;
  color: var(--3r-text) !important;
  border: 1px solid var(--3r-border-strong) !important;
  border-radius: 12px !important;
}
.btn--outline:hover, .s-button-outline:hover {
  border-color: var(--3r-purple) !important;
  box-shadow: var(--3r-glow) !important;
}

/* ---------- 5. عناوين الأقسام بطابع الكود < /> ---------- */
.s-block__title h2, .s-block__title .title, .section-title, .s-slider-block__title h2 {
  font-weight: 900 !important;
  color: var(--3r-text) !important;
}
.s-block__title h2, .s-slider-block__title h2, .section-title {
  display: inline-flex !important; align-items: center; gap: 12px;
}
.s-block__title h2::after, .s-slider-block__title h2::after, .section-title::after {
  content: "</>";
  direction: ltr; unicode-bidi: isolate; display: inline-block;
  font-family: var(--3r-mono);
  font-size: .62em; font-weight: 700;
  line-height: 1.5;
  padding: 3px 8px; margin: 0;
  border-radius: 8px;
  border: 1px solid var(--3r-border-strong);
  background: var(--3r-grad-soft);
  color: var(--color-primary-light);
  text-shadow: 0 0 10px rgba(168, 85, 247, .7);
}
.s-block__title a, .s-slider-block__display-all { color: var(--3r-purple) !important; font-weight: 700; }

/* ---------- 6. بطاقات المنتجات ---------- */
.s-product-card-entry, .product-entry, custom-salla-product-card {
  background: linear-gradient(180deg, var(--3r-surface-2), var(--3r-surface)) !important;
  border: 1px solid var(--3r-border) !important;
  border-radius: var(--3r-radius) !important;
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.s-product-card-entry::before, custom-salla-product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--3r-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; pointer-events: none; z-index: 2;
}
.s-product-card-entry:hover, custom-salla-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -14px rgba(139, 92, 246, .65) !important;
  border-color: transparent !important;
}
.s-product-card-entry:hover::before, custom-salla-product-card:hover::before { opacity: 1; }

.s-product-card-image, .s-product-card-image-cover { background: var(--3r-bg-2) !important; }
.s-product-card-image img { transition: transform .5s ease; }
.s-product-card-entry:hover .s-product-card-image img { transform: scale(1.06); }

.s-product-card-content-title a, .s-product-card-content-title, .product-entry__title {
  color: var(--3r-text) !important; font-weight: 800 !important;
}
.s-product-card-content-subtitle { color: var(--3r-muted) !important; }

.s-product-card-price, .s-product-card-sale-price h4, .total-price, .price-wrapper .total-price {
  background: var(--3r-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  font-family: var(--3r-mono) !important;
}
.s-product-card-sale-price span, .before-price, del { color: var(--3r-dim) !important; -webkit-text-fill-color: var(--3r-dim); }

.s-product-card-promotion-title, .promotion-title, .s-product-card-out-badge, .badge {
  background: var(--3r-grad) !important; color: #fff !important;
  border-radius: 8px !important; font-weight: 700;
  font-family: var(--3r-mono) !important; font-size: 11px !important;
}

.s-product-card-wishlist-btn, .s-product-card-wishlist-btn .s-button-element {
  background: rgba(7, 5, 18, .7) !important; color: var(--3r-text) !important;
  border: 1px solid var(--3r-border) !important; backdrop-filter: blur(6px);
}

/* ---------- 7. السلايدر والبانرات ---------- */
.home-slider, .s-slider-container, .banner-entry, .s-block--banners img, .lazy__bg {
  border-radius: 20px !important;
}
.home-slider .swiper-slide, .banner-entry {
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--3r-border), 0 30px 60px -30px rgba(139, 92, 246, .6);
}
.swiper-pagination-bullet { background: var(--3r-dim) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--3r-grad) !important; width: 22px !important; border-radius: 6px !important; }
.s-slider-nav-arrow, .swiper-button-next, .swiper-button-prev {
  background: var(--3r-surface) !important; color: var(--3r-text) !important;
  border: 1px solid var(--3r-border) !important; border-radius: 12px !important;
}
.s-slider-nav-arrow:hover { box-shadow: var(--3r-glow) !important; }

/* تصنيفات / مميزات المتجر */
.s-block--features .feature-item, .s-block--categories .category-item, .s-block--fixed-banner,
.store-features__item, .s-block--square-links a {
  background: var(--3r-surface) !important;
  border: 1px solid var(--3r-border) !important;
  border-radius: var(--3r-radius) !important;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.s-block--features .feature-item:hover, .s-block--categories .category-item:hover,
.s-block--square-links a:hover {
  border-color: var(--3r-border-strong) !important; box-shadow: var(--3r-glow) !important;
}
.s-block--features i, .s-block--features svg, .feature-item i { color: var(--3r-purple) !important; }

/* ---------- 8. صفحة المنتج ---------- */
.product-single, .product-details, .main-content > .container > div:first-child {
  color: var(--3r-text);
}
.product-single h1, .product-details h1 { font-weight: 900 !important; }
.product__description, .product__description * , .article--main, .article--main * {
  color: var(--3r-muted) !important;
}
.product__description h2, .product__description h3 { color: var(--3r-text) !important; }
.product-single .swiper, .details-slider, .s-slider-thumbs .swiper-slide {
  background: var(--3r-bg-2) !important; border-radius: var(--3r-radius) !important;
  border: 1px solid var(--3r-border) !important;
}
.s-slider-thumbs .swiper-slide-thumb-active { border-color: var(--3r-purple) !important; box-shadow: var(--3r-glow); }
.sticky-product-bar, .product-form .sticky-bar {
  background: rgba(7, 5, 18, .9) !important; backdrop-filter: blur(12px);
  border-top: 1px solid var(--3r-border) !important;
}

/* ---------- 9. الحقول والنماذج ---------- */
input, select, textarea, .form-input, .s-form-control, .s-quantity-input-input,
.s-search-input, salla-search input {
  background: var(--3r-bg-2) !important;
  color: var(--3r-text) !important;
  border: 1px solid var(--3r-border) !important;
  border-radius: 12px !important;
}
input:focus, select:focus, textarea:focus, .form-input:focus {
  border-color: var(--3r-purple) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .25) !important;
  outline: none !important;
}
input::placeholder, textarea::placeholder { color: var(--3r-dim) !important; }
.s-quantity-input, .s-quantity-input-button {
  background: var(--3r-bg-2) !important; color: var(--3r-text) !important;
  border-color: var(--3r-border) !important;
}

/* ---------- 10. السلة والنوافذ المنبثقة ---------- */
.cart-item, .s-cart-item, .cart-summary, #cart-submit-wrap, .s-cart-summary-content,
.s-modal-body, .s-modal-container, .s-login-modal, .s-offer-modal-body,
.s-menu, .mm-ocd__content, .s-search-results {
  background: var(--3r-surface) !important;
  color: var(--3r-text) !important;
  border-color: var(--3r-border) !important;
  border-radius: var(--3r-radius);
}
.s-modal-overlay, .s-modal-overlay-bg { background: rgba(4, 2, 12, .75) !important; backdrop-filter: blur(4px); }
.s-modal-title, .s-modal-header { color: var(--3r-text) !important; }

/* ---------- 11. الفوتر ---------- */
.store-footer, footer {
  background: linear-gradient(180deg, transparent, #05030d 40%) !important;
  border-top: 1px solid var(--3r-border) !important;
  color: var(--3r-muted) !important;
  position: relative;
}
.store-footer::before {
  content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: var(--3r-grad); box-shadow: 0 0 18px 1px rgba(139, 92, 246, .8);
}
.store-footer__inner, .store-footer .copyright-wrapper, .store-footer > div {
  background: transparent !important;
}
.store-footer h3, .store-footer .footer-title { color: var(--3r-text) !important; font-weight: 800 !important; }
.store-footer a, .store-footer p, .store-footer span { color: var(--3r-muted) !important; }
.store-footer a:hover { color: var(--3r-purple) !important; }
.store-footer .copyright-text, .copyright-wrapper p {
  font-family: var(--3r-mono) !important; font-size: 12px; color: var(--3r-dim) !important;
}
.store-footer .s-social-link a, .s-social-list a {
  background: var(--3r-surface) !important; border: 1px solid var(--3r-border) !important;
  border-radius: 12px !important; color: var(--3r-text) !important;
}
.store-footer .s-social-link a:hover, .s-social-list a:hover { box-shadow: var(--3r-glow) !important; }

/* ---------- 12. لمسات عامة ---------- */
.breadcrumbs, .s-breadcrumb { color: var(--3r-dim) !important; font-family: var(--3r-mono) !important; font-size: 12px; }
.breadcrumbs a, .s-breadcrumb a { color: var(--3r-muted) !important; }

.s-rating-stars-selected, .s-rating-stars-btn-star.hovered svg { fill: #c084fc !important; color: #c084fc !important; }

.s-loading, .s-button-loader { border-color: var(--3r-purple) transparent var(--3r-blue) transparent !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- 13. حالة "لا توجد منتجات" والعناصر الفارغة ---------- */
[class*="placeholder"] [class*="icon"], [class*="no-content"] [class*="icon"],
[class*="empty"] [class*="icon"], .s-products-list-placeholder > span,
.s-placeholder-icon, .s-products-list-placeholder-icon {
  background: var(--3r-surface-2) !important;
  border: 1px solid var(--3r-border-strong) !important;
  box-shadow: 0 0 40px -8px rgba(139, 92, 246, .6) !important;
  color: var(--3r-purple) !important;
}
[class*="placeholder"] [class*="icon"] svg, [class*="placeholder"] [class*="icon"] i,
[class*="no-content"] svg, [class*="empty"] [class*="icon"] svg {
  color: var(--3r-purple) !important; fill: currentColor;
}
[class*="placeholder"] p, [class*="no-content"] p, [class*="empty"] p { color: var(--3r-muted) !important; }

/* أيقونات الهيدر بنفس طابع الهوية */
.store-header salla-user-menu button, .store-header [class*="rounded-full"]:not(.header-btn__icon) {
  border-color: var(--3r-border-strong) !important;
  background-color: var(--3r-surface) !important;
}

/* ---------- 14. إخفاء الشريط العلوي بالكامل ---------- */
.top-navbar { display: none !important; }

/* القائمة على الكمبيوتر بدون خلفية (كانت تطلع مربع رمادي لما القائمة فاضية) */
.store-header .mobile-menu, .store-header #mobile-menu {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}

/* ---------- 15. دائرة "لا توجد منتجات" (ثيم رائد) ---------- */
.no-content-placeholder { color: var(--3r-muted) !important; }
.no-content-placeholder .icon {
  background: var(--3r-surface-2) !important;
  color: var(--3r-purple) !important;
  border: 1px solid var(--3r-border-strong) !important;
  box-shadow: 0 0 40px -8px rgba(139, 92, 246, .6) !important;
}
.no-content-placeholder p { color: var(--3r-muted) !important; }

/* ---------- 16. زر السلة ---------- */
.store-header .s-cart-summary-wrapper, .store-header salla-cart-summary .header-btn {
  background: transparent !important; border: 0 !important;
}
.store-header .header-btn__icon {
  background: var(--3r-surface) !important;
  border: 1px solid var(--3r-border-strong) !important;
  color: var(--color-primary-light) !important;
  transition: box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.store-header .header-btn:hover .header-btn__icon,
.store-header salla-cart-summary:hover .header-btn__icon {
  border-color: var(--3r-purple) !important;
  color: #fff !important;
  box-shadow: var(--3r-glow) !important;
}
.store-header .s-cart-summary-total {
  color: var(--3r-muted) !important;
  font-family: var(--3r-mono) !important; font-weight: 700 !important;
  background: transparent !important;
}
.store-header .s-cart-summary-count {
  background: var(--3r-grad) !important; color: #fff !important;
  border: 2px solid var(--3r-bg) !important;
}

/* ---------- 17. صفحة الشكر بعد الطلب ---------- */
.s-order-payment-wrapper, .s-order-shipments-card, .s-order-shipments-wrapper > div,
.s-next-order-coupon-card, salla-order-branch > div {
  background: linear-gradient(180deg, var(--3r-surface-2), var(--3r-surface)) !important;
  border: 1px solid var(--3r-border) !important;
  border-radius: var(--3r-radius) !important;
  color: var(--3r-text) !important;
}
.s-order-rewards-card {
  background: var(--3r-grad-soft) !important;
  border: 1px solid var(--3r-border-strong) !important;
  border-radius: var(--3r-radius) !important;
}
.s-next-order-coupon-wrapper {
  background: var(--3r-grad-soft) !important;
  border: 1px solid var(--3r-border-strong) !important;
  border-radius: var(--3r-radius) !important;
}
.s-order-payment-wrapper *, .s-order-rewards-card *, .s-next-order-coupon-wrapper *,
.s-order-shipments-wrapper * { color: inherit; }
.s-order-payment-description, .s-order-rewards-copy, .s-next-order-coupon-desc,
.s-thank-you-header-subtitle, .s-thank-you-header-date { color: var(--3r-muted) !important; }
.s-order-payment-row:last-child, .s-order-payment-invoice { color: var(--3r-text) !important; font-weight: 800; }
.s-order-payment-logo img { background: #fff; border-radius: 6px; padding: 2px; }
.s-next-order-coupon-code {
  font-family: var(--3r-mono) !important; color: var(--color-primary-light) !important;
}
.s-thank-you-header-success { background: var(--3r-grad) !important; box-shadow: var(--3r-glow) !important; }

/* ---------- 18. شعار أكبر ---------- */
.store-header .navbar-brand img {
  width: 64px !important; height: 64px !important;
  max-height: none !important; max-width: none !important;
  object-fit: cover; border-radius: 50%;
}
@media (max-width: 1023px) {
  .store-header .navbar-brand img { width: 52px !important; height: 52px !important; }
}

/* ---------- 20. قائمة الجوال (mmenu) ---------- */
.mm-spn, .mm-spn.mm-spn--light, .mm-spn ul, .mm-spn.mm-spn--light ul {
  background: var(--3r-surface) !important;
  color: var(--3r-text) !important;
}
.mm-spn a, .mm-spn span, .mm-spn li { color: var(--3r-text) !important; font-weight: 700; }
.mm-spn a:hover, .mm-spn a:focus { color: var(--color-primary-light) !important; }
.mm-spn li::after { border-color: var(--3r-border) !important; opacity: 1 !important; }
.mm-spn li::before { border-color: var(--3r-muted) !important; }
.mm-spn.mm-spn--navbar::after, .mm-spn.mm-spn--navbar::before {
  color: var(--3r-text) !important; border-color: var(--3r-muted) !important; opacity: 1 !important;
}
.mm-ocd__content { border-inline-start: 1px solid var(--3r-border-strong) !important; }
.mm-ocd { background: rgba(4, 2, 12, .7) !important; backdrop-filter: blur(3px); }
.close-mobile-menu, .btn--close, .btn--close-sm {
  background: var(--3r-grad) !important; color: #fff !important;
  border: 0 !important; box-shadow: var(--3r-glow) !important;
}

/* ---------- 21. إخفاء بيانات التواصل والسوشال القديمة ---------- */
.store-footer div:has(> salla-contacts),
.store-footer salla-contacts,
.store-footer salla-social,
.store-footer .contact-social { display: none !important; }

/* ---------- 22. نافذة تسجيل الدخول ---------- */
.s-login-modal .s-modal-body {
  background: #fff !important; color: #1a1433 !important;
  border: 0 !important; border-radius: 20px !important;
  box-shadow: 0 0 0 2px #8b5cf6, 0 0 40px rgba(139, 92, 246, .55), 0 30px 80px -20px rgba(59, 130, 246, .5) !important;
}
.s-login-modal .s-modal-close {
  background: var(--3r-grad) !important; color: #fff !important;
  border: 0 !important; border-radius: 10px !important; box-shadow: var(--3r-glow) !important;
}
.s-login-modal .s-modal-close * { color: #fff !important; fill: #fff !important; }
/* ---------- 23. Discord icon in header ---------- */
.r3-discord {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  margin-inline-end: 12px;
  color: #fff !important;
  background: linear-gradient(135deg, #5865f2, #8b5cf6);
  box-shadow: 0 0 0 1px rgba(168, 120, 255, .45), 0 0 16px rgba(88, 101, 242, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.r3-discord:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 1px rgba(168, 120, 255, .7), 0 0 24px rgba(88, 101, 242, .85); }
@media (max-width: 1023px) { .r3-discord { width: 36px; height: 36px; margin-inline-end: 8px; } .r3-discord svg { width: 19px; height: 19px; } }
/* ---------- 24. Product order-form fields + product image background ---------- */
salla-product-options.s-product-options-wrapper {
  background: var(--3r-surface) !important; color: var(--3r-text) !important;
  border: 1px solid var(--3r-border-strong) !important; border-radius: 16px !important;
}
salla-product-options .s-product-options-option-label,
salla-product-options .s-product-options-option-label * { color: var(--3r-text) !important; }
salla-product-options .s-product-options-option-content small,
salla-product-options p, salla-product-options .text-sm { color: var(--3r-muted) !important; }
.details-slider .swiper-slide { background: var(--3r-surface-2, #1b1538) !important; }
/* ---------- 25. Neon bar header ---------- */
header.store-header {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  position: sticky !important; top: 0; z-index: 40;
}
#mainnav.main-nav-container {
  position: relative;
  background: rgba(10, 7, 26, .92) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0 !important; box-shadow: none !important;
}
#mainnav .inner { background: transparent !important; }
/* neon line under the bar */
#mainnav.main-nav-container::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #b15cff, #3b82f6, #b15cff, transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(177, 92, 255, .8);
}
/* < Game Programming /> tag next to the logo */
#mainnav a.navbar-brand { display: inline-flex; align-items: center; gap: 12px; }
#mainnav a.navbar-brand::after {
  content: "< Game Programming />";
  direction: ltr; unicode-bidi: isolate; white-space: nowrap;
  font-family: var(--3r-mono, "JetBrains Mono", monospace); font-size: 13px; font-weight: 700; line-height: 1.4;
  color: #a3e635; background: rgba(163, 230, 53, .07);
  border: 1px solid rgba(163, 230, 53, .3); border-radius: 8px; padding: 4px 10px;
}
/* menu links: gradient underline on the current page */
#mainnav li.root-level > a {
  position: relative; transition: color .2s ease;
  display: flex !important; align-items: center; height: auto !important;
  padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.5 !important;
}
#mainnav li.root-level > a:hover { color: var(--color-primary-light) !important; }
#mainnav li.root-level > a.r3-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px !important; height: 2px; border-radius: 2px;
  background: linear-gradient(120deg, #b15cff, #3b82f6);
  transform: none !important;
}
@media (min-width: 1024px) {
  #mainnav custom-main-menu { display: flex; align-items: center; }
  #mainnav nav.mobile-menu ul.main-menu { padding-top: 0 !important; height: auto !important; }
}
@media (max-width: 767px) {
  #mainnav a.navbar-brand::after { display: none; }
}

/* ---------- 26. Cart page ---------- */
salla-cart-summary-card.s-cart-summary-card { background:var(--3r-surface,#110c26) !important; color:#eeeaff !important; border:1px solid rgba(168,120,255,.28) !important; border-radius:18px !important; box-shadow:0 20px 50px -20px rgba(139,92,246,.45) !important; overflow:hidden; }
salla-cart-summary-card .s-cart-summary-card-bar, salla-cart-summary-card .s-cart-summary-card-sheet-header { background:transparent !important; }
salla-cart-summary-card .s-cart-summary-card-sheet-title { color:#fff !important; }
salla-cart-summary-card .s-cart-summary-card-sheet-header { border-bottom:1px solid rgba(168,120,255,.18) !important; }
salla-cart-summary-card span, salla-cart-summary-card b, salla-cart-summary-card i, salla-cart-summary-card svg { color:#b9b3dd !important; fill:currentColor; }
salla-cart-summary-card b, salla-cart-summary-card .s-cart-summary-card-bar-label-text, salla-cart-summary-card .s-cart-summary-card-bar-total { color:#fff !important; }
salla-cart-summary-card .s-cart-summary-card-bar-total { font-size:1.15em; }
salla-cart-summary-card .s-button-text { color:#fff !important; }
.s-quantity-input-container { border:1px solid rgba(168,120,255,.3) !important; border-radius:12px !important; background:rgba(7,5,18,.6) !important; overflow:hidden; }
.s-quantity-input .s-quantity-input-button { background:transparent !important; color:#c4a5ff !important; border:0 !important; }
.s-quantity-input .s-quantity-input-button:hover { color:#fff !important; background:rgba(139,92,246,.18) !important; }
.s-quantity-input .s-quantity-input-input, .s-quantity-input input { background:transparent !important; border:0 !important; border-inline:1px solid rgba(168,120,255,.2) !important; border-radius:0 !important; color:#fff !important; box-shadow:none !important; }
/* ---------- 27. Logged-in user avatar + dropdown ---------- */
header salla-user-menu .s-user-menu-trigger { background:transparent !important; padding:0 !important; border:0 !important; box-shadow:none !important; }
header salla-user-menu .s-user-menu-avatar-wrap { width:40px !important; height:40px !important; flex:0 0 40px; border-radius:50% !important; overflow:hidden; background:var(--3r-surface,#110c26) !important; box-shadow:0 0 0 2px rgba(168,120,255,.55), 0 0 14px rgba(139,92,246,.45); }
header salla-user-menu img.s-user-menu-trigger-avatar { width:100% !important; height:100% !important; max-width:none !important; object-fit:cover; border-radius:50% !important; background:transparent !important; border:0 !important; }
header salla-user-menu .s-user-menu-dropdown { background:var(--3r-surface,#110c26) !important; color:#eeeaff !important; border:1px solid rgba(168,120,255,.3) !important; border-radius:16px !important; box-shadow:0 20px 50px -15px rgba(139,92,246,.5) !important; }
header salla-user-menu .s-user-menu-dropdown-header { background:transparent !important; border-bottom:1px solid rgba(168,120,255,.18) !important; }
header salla-user-menu .s-user-menu-dropdown *:not(svg):not(path) { color:#eeeaff; }
header salla-user-menu .s-user-menu-dropdown-item-link, header salla-user-menu .s-user-menu-dropdown-item a { color:#d9d3ff !important; background:transparent !important; }
header salla-user-menu .s-user-menu-dropdown-item-link:hover, header salla-user-menu .s-user-menu-dropdown-item a:hover { background:rgba(139,92,246,.16) !important; color:#fff !important; }
header salla-user-menu .s-user-menu-dropdown-item-logout, header salla-user-menu .s-user-menu-dropdown-item-logout * { color:#f87171 !important; }
header salla-user-menu .s-user-menu-dropdown svg { fill:currentColor; }
/* ---------- 28. Product comments + add-to-cart toast ---------- */
.s-comments, .s-comments.s-comments-product, salla-comments, salla-comment-form, salla-reviews-summary { background:transparent !important; }
salla-comment-form textarea { border:1px solid rgba(168,120,255,.3) !important; border-radius:14px !important; }
salla-add-product-toast.s-add-product-toast { background:var(--3r-surface,#110c26) !important; color:#eeeaff !important; border:1px solid rgba(168,120,255,.35) !important; border-radius:14px !important; box-shadow:0 14px 40px -12px rgba(139,92,246,.6) !important; }
salla-add-product-toast.s-add-product-toast * { color:#eeeaff !important; }

/* ---------- 29. Price box + price motion ---------- */
form.product-form > section.flex.bg-white { background:var(--3r-surface,#130f28) !important; border:1px solid rgba(168,120,255,.28) !important; border-bottom:0 !important; border-radius:16px 16px 0 0 !important; }
form.product-form > section.flex.bg-white .center-between { padding-bottom:14px; border-bottom:1px dashed rgba(168,120,255,.22); }
@media (min-width:768px){
  form.product-form > section.sticky-product-bar { background:var(--3r-surface,#130f28) !important; border:1px solid rgba(168,120,255,.28) !important; border-top:0 !important; border-radius:0 0 16px 16px !important; box-shadow:0 24px 50px -28px rgba(139,92,246,.55) !important; }
}
form.product-form .form-label b { color:#9c95c9 !important; font-weight:600; }
:is(h2,h3,h4,p,span,b,div):has(> .sicon-sar):not(.line-through):not(.before-price) { color:#c4a5ff !important; }
:is(h2,h3,h4,p,span,b,div):has(> .sicon-sar):not(.line-through):not(.before-price) .sicon-sar { color:#a78bfa !important; }

/* ---------- 30. Hide "reorder" block + quantity pill ---------- */
.s-block--bundle-personalized-shoppers-who-bought { display:none !important; }
salla-quantity-input .s-quantity-input-container { display:inline-flex !important; align-items:center; gap:4px; padding:4px !important; background:rgba(139,92,246,.07) !important; border:1px solid rgba(168,120,255,.32) !important; border-radius:999px !important; box-shadow:inset 0 0 12px rgba(139,92,246,.08); }
salla-quantity-input.s-quantity-input .s-quantity-input-button { width:34px !important; height:34px !important; flex:0 0 34px; display:grid !important; place-items:center; border-radius:50% !important; background:rgba(139,92,246,.14) !important; color:#d8ccff !important; border:0 !important; transition:background .2s ease, transform .15s ease; }
salla-quantity-input.s-quantity-input .s-quantity-input-button:hover { background:linear-gradient(135deg,#a855f7,#6366f1) !important; color:#fff !important; }
salla-quantity-input.s-quantity-input .s-quantity-input-button:active { transform:scale(.92); }
salla-quantity-input.s-quantity-input .s-quantity-input-button svg { width:14px !important; height:14px !important; fill:currentColor; }
salla-quantity-input.s-quantity-input input.s-quantity-input-input { width:40px !important; min-width:0; background:transparent !important; border:0 !important; border-inline:0 !important; box-shadow:none !important; outline:0; color:#fff !important; font-weight:700; text-align:center; padding:0 !important; }

/* ---------- 31. Hide "no more items" message ---------- */
.s-infinite-scroll-last, .infinite-scroll-last { display:none !important; }

/* ---------- 32. Quantity buttons: soft focus ring ---------- */
salla-quantity-input.s-quantity-input .s-quantity-input-button:focus, salla-quantity-input.s-quantity-input .s-quantity-input-button:focus-visible, salla-quantity-input.s-quantity-input input.s-quantity-input-input:focus { outline:none !important; box-shadow:none !important; --tw-ring-shadow:0 0 #0000 !important; --tw-ring-offset-shadow:0 0 #0000 !important; }
salla-quantity-input.s-quantity-input .s-quantity-input-button:focus-visible { box-shadow:0 0 0 2px rgba(168,85,247,.55), 0 0 12px rgba(139,92,246,.6) !important; }
salla-quantity-input.s-quantity-input .s-quantity-input-container:focus-within { border-color:rgba(168,120,255,.6) !important; box-shadow:0 0 14px rgba(139,92,246,.25), inset 0 0 12px rgba(139,92,246,.08) !important; }

/* ---------- 33. Centered-logo header + side drawer + home categories ---------- */
#mainnav .r3-row { display:grid !important; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
#mainnav .r3-row > .r3-old { display:none !important; }
#mainnav .r3-row > .r3-start { justify-self:start; display:flex; align-items:center; gap:6px; }
#mainnav .r3-row > .r3-center { justify-self:center; display:flex; align-items:center; }
#mainnav .r3-row > .justify-end { justify-self:end; }
#mainnav .r3-center a.navbar-brand::after { display:none !important; }
#mainnav .r3-start button { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 12px; border-radius:12px; color:#eeeaff; background:transparent; border:0; cursor:pointer; font-weight:700; font-size:15px; transition:background .2s ease, color .2s ease; }
#mainnav .r3-start button svg { color:#b15cff; }
#mainnav .r3-start button:hover { background:rgba(139,92,246,.14); color:#fff; }
#mainnav .r3-start .r3-search-btn { width:40px; padding:0; justify-content:center; }
#mainnav .r3-start .r3-search-btn svg { color:#eeeaff; }
#mainnav custom-main-menu, #mainnav a.mburger { display:none !important; }
@media (max-width:767px){
  #mainnav .r3-start .r3-menu-btn span { display:none; }
  #mainnav .r3-start .r3-menu-btn { width:40px; padding:0; justify-content:center; }
  #mainnav .r3-start { gap:0; }
}

/* drawer */
.r3-overlay { position:fixed; inset:0; z-index:9998; background:rgba(4,3,12,.6); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); opacity:0; pointer-events:none; transition:opacity .25s ease; }
.r3-drawer { position:fixed; top:0; bottom:0; right:0; z-index:9999; width:min(380px,88vw); display:flex; flex-direction:column; background:#0c0920; color:#eeeaff; border-left:1px solid rgba(168,120,255,.25); box-shadow:-30px 0 80px -20px rgba(139,92,246,.45); transform:translateX(100%); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
[dir=ltr] .r3-drawer, .ltr .r3-drawer { right:auto; left:0; transform:translateX(-100%); }
.r3-drawer::before { content:""; position:absolute; left:0; top:64px; bottom:24px; width:4px; border-radius:4px; background:linear-gradient(180deg,#b15cff,#3b82f6); box-shadow:0 0 14px rgba(177,92,255,.7); }
html.r3-drawer-open .r3-overlay { opacity:1; pointer-events:auto; }
html.r3-drawer-open .r3-drawer { transform:none; }
html.r3-drawer-open, html.r3-drawer-open body { overflow:hidden; }
.r3-drawer-head { display:flex; align-items:center; justify-content:space-between; height:64px; padding:0 20px; border-bottom:1px solid rgba(168,120,255,.16); font-size:15px; color:#b9b3dd; }
.r3-drawer-x { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; color:#fff; background:transparent; border:0; cursor:pointer; }
.r3-drawer-x:hover { background:rgba(139,92,246,.16); }
.r3-drawer-store { display:flex; align-items:center; gap:12px; margin:16px 20px 8px 24px; padding:12px; border-radius:16px; background:rgba(139,92,246,.08); border:1px solid rgba(168,120,255,.2); color:#fff; }
.r3-drawer-store img { width:46px; height:46px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px rgba(168,85,247,.6), 0 0 16px rgba(139,92,246,.6); }
.r3-drawer-store span { display:flex; flex-direction:column; line-height:1.4; }
.r3-drawer-store b { font-size:16px; }
.r3-drawer-store small { font-size:12px; color:#a3e635; }
.r3-drawer-list { list-style:none; margin:0; padding:4px 20px 4px 24px; overflow-y:auto; flex:1; }
.r3-drawer-list li { border-bottom:1px solid rgba(168,120,255,.12); }
.r3-drawer-list a { display:block; padding:15px 4px; font-size:16px; font-weight:700; color:#eeeaff; transition:color .2s ease, padding .2s ease; }
.r3-drawer-list a:hover { color:#c4a5ff; padding-inline-start:10px; }
.r3-drawer-list a.r3-sub { padding:8px 18px; font-size:14px; font-weight:500; color:#b9b3dd; }
.r3-drawer-help { display:flex; align-items:center; justify-content:space-between; margin:8px 20px 20px 24px; padding:14px 16px; border-radius:14px; background:linear-gradient(135deg,rgba(88,101,242,.25),rgba(139,92,246,.2)); border:1px solid rgba(168,120,255,.3); color:#fff; font-weight:700; }
.r3-drawer-help span { display:inline-flex; align-items:center; gap:10px; }
.r3-drawer-help:hover { border-color:rgba(168,120,255,.6); box-shadow:0 0 18px rgba(139,92,246,.35); }

/* home categories */
.r3-home-cats { margin-top:28px; }
.r3-home-cats-head h2 { font-size:20px; font-weight:800; color:#fff; margin-bottom:14px; }
.r3-home-cats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.r3-cat { display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 12px; border-radius:18px; background:#110c26; border:1px solid rgba(168,120,255,.22); color:#eeeaff; text-align:center; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.r3-cat:hover { transform:translateY(-3px); border-color:rgba(168,120,255,.6); box-shadow:0 14px 30px -14px rgba(139,92,246,.7); }
.r3-cat-ic { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,rgba(177,92,255,.25),rgba(59,130,246,.25)); }
.r3-cat-ic img { width:100%; height:100%; object-fit:cover; }
.r3-cat-ic i { font-style:normal; font-family:var(--3r-mono,monospace); color:#c4a5ff; font-weight:700; }
.r3-cat b { font-size:15px; }

/* ---------- 34. Mobile header fit ---------- */
@media (max-width:767px){
  #mainnav .r3-row { grid-template-columns:1fr auto 1fr; gap:6px; }
  #mainnav .r3-row > .justify-end { gap:6px; }
  #mainnav .r3-row > .justify-end .r3-discord { display:none !important; }
  #mainnav .r3-row > .justify-end .s-cart-summary-content, #mainnav .r3-row > .justify-end .s-cart-summary-total { display:none !important; }
  #mainnav .r3-center a.navbar-brand img { max-height:48px; width:auto; }
}

/* ---------- 35. Bigger home category circles ---------- */
.r3-home-cats-grid { grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); }
.r3-cat { padding:22px 14px; gap:14px; }
.r3-cat-ic { width:104px; height:104px; box-shadow:0 0 0 2px rgba(168,120,255,.35), 0 10px 30px -10px rgba(139,92,246,.7); }
.r3-cat-ic svg { width:44px; height:44px; }
.r3-cat b { font-size:16px; }
@media (max-width:767px){
  .r3-home-cats-grid { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
  .r3-cat-ic { width:84px; height:84px; }
  .r3-cat-ic svg { width:36px; height:36px; }
}

/* ---------- 36. Mobile polish: 3 categories per row + full "add to cart" label ---------- */
@media (max-width:767px){
  .r3-home-cats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .r3-cat { padding:14px 6px; gap:10px; border-radius:16px; }
  .r3-cat-ic { width:68px; height:68px; }
  .r3-cat-ic svg { width:30px; height:30px; }
  .r3-cat b { font-size:13px; line-height:1.4; }
  .s-product-card-content-footer salla-add-product-button button { padding-inline:8px !important; font-size:13px !important; }
  .s-product-card-content-footer salla-add-product-button .s-button-text { gap:6px; }
}

/* ---------- 37. Mobile: add-to-cart under the product, full price box, clear cart delete ---------- */
@media (max-width:767px){
  form.product-form > section.sticky-product-bar { position:static !important; inset:auto !important; z-index:auto !important; width:auto !important; background:var(--3r-surface,#130f28) !important; border:1px solid rgba(168,120,255,.28) !important; border-top:0 !important; border-radius:0 0 16px 16px !important; box-shadow:0 24px 50px -28px rgba(139,92,246,.55) !important; padding-top:4px !important; }
  body:has(form.product-form > section.sticky-product-bar) { padding-bottom:0 !important; }
  .swiper salla-button.btn--wishlist { top:16px !important; bottom:auto !important; }
}
.cart-item > .absolute:has(salla-button.btn--delete) { top:14px !important; left:14px !important; }
.cart-item salla-button.btn--delete button { width:34px !important; height:34px !important; border-radius:10px !important; border:0 !important; color:#fff !important; background:linear-gradient(135deg,#ef4444,#e11d48) !important; box-shadow:0 0 0 3px rgba(239,68,68,.2), 0 8px 18px -6px rgba(239,68,68,.8) !important; transition:transform .15s ease, box-shadow .2s ease; }
.cart-item salla-button.btn--delete button:hover { transform:scale(1.08); box-shadow:0 0 0 4px rgba(239,68,68,.3), 0 10px 22px -6px rgba(239,68,68,.95) !important; }
.cart-item salla-button.btn--delete button * { color:#fff !important; }
.cart-item h1, .cart-item h2, .cart-item h3 { padding-inline-end:46px; }

/* ---------- 38. No motion: no transitions, hover movement or background blur ---------- */
*:not([class*="loader"]):not([class*="spin"]), *::before, *::after { transition:none !important; }
.s-product-card-entry:hover, .s-product-card-entry:hover .s-product-card-image img, .r3-cat:hover, .r3-discord:hover,
.cart-item salla-button.btn--delete button:hover, salla-quantity-input .s-quantity-input-button:active,
.btn--primary:hover, .s-button-primary:hover, .s-button-element:hover { transform:none !important; }
*, *::before, *::after { -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
.store-header, #mainnav, .main-nav-container, .top-navbar { background:rgba(7,5,18,.97) !important; }