/* =========================================================================
   RiSport — Salla Custom CSS (v5 — Background Fix)
   REPLACE EVERYTHING in تخصيص باستخدام CSS with this file.
   Animated background now attached to .app-inner (Salla's real container),
   glows boosted in opacity, color visibility improved.
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Readex+Pro:wght@400;500;600;700&display=swap');

/* ---------- Brand tokens ---------- */
:root {
  --rs-orange:      #E95100;
  --rs-orange-hot:  #FF6A1F;
  --rs-orange-deep: #B83D00;
  --rs-blue:        #00529D;
  --rs-blue-ink:    #061A33;
  --rs-mint:        #F0FCFC;
  --rs-cream:       #FAF6ED;
  --rs-paper:       #F5F1E8;
  --rs-line:        #E4DCCA;
  --rs-ink:         #0A1220;
  --rs-mute:        #6B6B66;
}

/* =========================================================================
   GLOBAL BASE — with animated background layers (FIXED)
   ========================================================================= */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--rs-paper) !important;
  background-image: none !important;
  color: var(--rs-ink) !important;
  font-family: 'Tajawal', 'Archivo', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Make the app container transparent so background layers show through */
.app-inner,
.app-inner > main,
#app,
main {
  background: transparent !important;
  position: relative;
}

/* Layer 1: Drifting atmospheric glows — attached to app-inner so they're always visible */
.app-inner::before {
  content: '' !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-color: var(--rs-paper) !important;
  background-image:
    radial-gradient(ellipse 700px 600px at 85% 8%, rgba(233, 81, 0, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 600px 700px at 10% 92%, rgba(0, 82, 157, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 400px 400px at 5% 45%, rgba(255, 106, 31, 0.16) 0%, transparent 50%) !important;
  background-size: 100% 100% !important;
  animation: rs-bg-drift 14s ease-in-out infinite alternate !important;
}

/* Layer 2: Breathing grid + centerline */
.app-inner::after {
  content: '' !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(90deg,
      transparent calc(50% - 0.5px),
      rgba(6, 26, 51, 0.1) calc(50% - 0.5px),
      rgba(6, 26, 51, 0.1) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    radial-gradient(circle, rgba(6, 26, 51, 0.1) 1.4px, transparent 1.4px) !important;
  background-size: 100% 100%, 28px 28px !important;
  background-position: center top, top left !important;
  background-repeat: no-repeat, repeat !important;
  animation: rs-bg-breathe 6s ease-in-out infinite !important;
}

/* All direct children of app-inner need to sit ABOVE the background layers */
.app-inner > * {
  position: relative;
  z-index: 2;
}

@keyframes rs-bg-drift {
  0% {
    background-position: 100% 0%, 0% 100%, 0% 50%;
  }
  50% {
    background-position: 75% 20%, 20% 80%, 10% 35%;
  }
  100% {
    background-position: 60% 8%, 25% 95%, 0% 60%;
  }
}

@keyframes rs-bg-breathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .app-inner::before,
  .app-inner::after {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  body { background-color: var(--rs-paper) !important; background-image: none !important; }
}

::selection { background: var(--rs-orange); color: var(--rs-cream); }

[dir="rtl"], [dir="rtl"] * { font-family: 'Tajawal', sans-serif; }
[dir="ltr"], [dir="ltr"] * { font-family: 'Archivo', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Archivo Black', 'Readex Pro', sans-serif !important;
  letter-spacing: -0.025em !important;
  color: var(--rs-blue-ink);
  line-height: 1.05 !important;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Readex Pro', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.15 !important;
}

/* =========================================================================
   TOP NAVBAR
   ========================================================================= */
.top-navbar {
  background: var(--rs-ink) !important;
  border: none !important;
  box-shadow: none !important;
}
.top-navbar, .top-navbar * {
  color: var(--rs-cream) !important;
  font-family: 'JetBrains Mono', 'Tajawal', monospace !important;
  font-size: 12px !important;
}

/* =========================================================================
   MAIN NAV
   ========================================================================= */
.main-nav-container {
  background: rgba(245, 241, 232, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--rs-line) !important;
  box-shadow: none !important;
  padding: 18px 0 !important;
}
.main-nav-container *, .main-nav-container a {
  color: var(--rs-blue-ink) !important;
  fill: var(--rs-blue-ink) !important;
  font-weight: 700 !important;
  transition: color 0.25s ease, fill 0.25s ease;
}
.main-nav-container a:hover, .main-nav-container *:hover {
  color: var(--rs-orange) !important;
  fill: var(--rs-orange) !important;
}

#trigger-slot > div { background-color: transparent !important; }

/* =========================================================================
   USER / ACCOUNT AVATAR
   ========================================================================= */
salla-user-menu,
salla-user-menu > a,
salla-user-menu a {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

salla-user-menu img,
salla-user-menu .avatar,
salla-user-menu [class*="avatar"] img {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--rs-line) !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}

salla-user-menu:hover img,
salla-user-menu a:hover img {
  border-color: var(--rs-orange) !important;
  transform: scale(1.05) !important;
}

/* =========================================================================
   CART ICON + BADGE
   ========================================================================= */
salla-cart-summary,
salla-cart-summary > a,
salla-cart-summary a,
#mainnav salla-cart-summary,
#mainnav salla-cart-summary > a {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

salla-cart-summary svg,
salla-cart-summary i,
salla-cart-summary [class*="icon"] {
  color: var(--rs-blue-ink) !important;
  fill: var(--rs-blue-ink) !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 24px !important;
}

.s-cart-summary-count,
salla-cart-summary [class*="count"],
salla-cart-summary .count {
  background-color: var(--rs-orange) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border: 2px solid var(--rs-paper) !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  font-family: 'Archivo Black', 'Tajawal', sans-serif !important;
  font-size: 10px !important;
  min-width: 18px !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 1 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  transform: none !important;
}

[dir="rtl"] .s-cart-summary-count,
[dir="rtl"] salla-cart-summary [class*="count"] {
  right: auto !important;
  left: -4px !important;
}

.s-cart-summary-count:hover {
  transform: scale(1.1) !important;
}

#mainnav > div > div > div > div.flex.items-center.justify-end > salla-cart-summary > a > p > b {
  display: none !important;
}

/* =========================================================================
   HERO SLIDER
   ========================================================================= */
.s-slider-block__title h2 {
  color: var(--rs-blue-ink) !important;
  font-family: 'Archivo Black', 'Readex Pro', sans-serif !important;
  font-size: clamp(28px, 4vw, 56px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  line-height: 0.95 !important;
}

[dir="rtl"] .s-slider-block__title h2 {
  font-family: 'Readex Pro', sans-serif !important;
  font-weight: 700 !important;
}

.s-slider-block__slide {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* =========================================================================
   SECTION TITLES
   ========================================================================= */
section h2, .section-title, .s-products-slider-block__title {
  color: var(--rs-blue-ink) !important;
  font-family: 'Archivo Black', 'Readex Pro', sans-serif !important;
  font-size: clamp(26px, 3vw, 42px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 30px !important;
  position: relative;
  display: inline-block !important;
  padding-bottom: 8px !important;
}

[dir="rtl"] section h2, [dir="rtl"] .section-title {
  font-family: 'Readex Pro', sans-serif !important;
  font-weight: 700 !important;
}

section h2::after, .section-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 40px !important;
  height: 3px !important;
  background: var(--rs-orange) !important;
  border-radius: 2px;
}

[dir="rtl"] section h2::after, [dir="rtl"] .section-title::after {
  left: auto !important;
  right: 0 !important;
}

/* =========================================================================
   PRODUCT CARDS
   ========================================================================= */
.s-product-card-content, .s-product-card, salla-product-card, .product-entry {
  background-color: var(--rs-cream) !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
  position: relative;
}

.s-product-card-content:hover, .s-product-card:hover,
salla-product-card:hover, .product-entry:hover {
  transform: translateY(-6px) !important;
  border-color: var(--rs-blue-ink) !important;
  box-shadow: 0 16px 40px rgba(10, 18, 32, 0.1) !important;
}

.s-product-card-content > div,
.s-product-card > div,
salla-product-card > div,
.product-entry > div {
  background: transparent !important;
}

.s-product-card-image, .product-entry__image {
  background: linear-gradient(135deg, var(--rs-mint), var(--rs-cream)) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.s-product-card-content-title, .product-entry__title, salla-product-card .title {
  color: var(--rs-blue-ink) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.s-product-card-content-sub-title, .product-entry__price, .s-product-card-price {
  color: var(--rs-blue-ink) !important;
  font-family: 'Archivo Black', 'Readex Pro', sans-serif !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
}

[dir="rtl"] .s-product-card-price, [dir="rtl"] salla-product-card .price {
  font-family: 'Readex Pro', sans-serif !important;
}

h2.product-entry__sub-title {
  color: var(--rs-cream) !important;
  background-color: var(--rs-orange) !important;
  font-family: 'JetBrains Mono', 'Tajawal', monospace !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  font-style: normal !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  box-shadow: 0 2px 8px rgba(233, 81, 0, 0.25) !important;
}

[dir="rtl"] h2.product-entry__sub-title {
  font-family: 'Tajawal', sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.s-product-options-wrapper.hydrated {
  background-color: var(--rs-cream) !important;
  border-radius: 12px !important;
  border: 1px solid var(--rs-line) !important;
}

/* =========================================================================
   FAVORITE / HEART BUTTONS
   ========================================================================= */
.s-product-card-favorite,
.product-entry__favorite,
salla-product-card button[class*="favorite"],
button[class*="favorite"],
button[aria-label*="المفضلة"],
button[class*="wishlist"] {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--rs-line) !important;
  color: var(--rs-blue-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(10, 18, 32, 0.06) !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 5 !important;
  transition: all 0.2s ease !important;
}

[dir="rtl"] .s-product-card-favorite,
[dir="rtl"] .product-entry__favorite,
[dir="rtl"] button[class*="favorite"],
[dir="rtl"] button[class*="wishlist"] {
  right: auto !important;
  left: 12px !important;
}

.s-product-card-favorite:hover,
.product-entry__favorite:hover,
button[class*="favorite"]:hover,
button[class*="wishlist"]:hover {
  background: var(--rs-orange) !important;
  border-color: var(--rs-orange) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

.s-product-card-favorite svg,
.product-entry__favorite svg,
button[class*="favorite"] svg,
button[class*="wishlist"] svg,
button[class*="favorite"] i {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
}

/* =========================================================================
   ADD TO CART BUTTON
   ========================================================================= */
salla-add-product-button {
  background: transparent !important;
  padding: 0 12px 12px 12px !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

salla-add-product-button button,
salla-add-product-button > button,
.s-product-card-content salla-add-product-button button,
.product-entry salla-add-product-button button,
.s-product-card salla-button {
  background: var(--rs-orange) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-family: 'Tajawal', 'Archivo', sans-serif !important;
  letter-spacing: 0 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
  box-shadow: 0 2px 8px rgba(233, 81, 0, 0.18) !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

salla-add-product-button button:hover,
salla-add-product-button > button:hover,
.s-product-card salla-button:hover {
  background: var(--rs-blue-ink) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(6, 26, 51, 0.22) !important;
}

salla-add-product-button button span,
salla-add-product-button > button span {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 13px !important;
}

salla-add-product-button svg,
salla-add-product-button button svg,
salla-add-product-button i {
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

/* =========================================================================
   BUTTONS — primary / outline (general)
   ========================================================================= */
.btn.btn-primary,
button.btn-primary,
[class*="s-button-btn"][class*="primary"] {
  background: var(--rs-orange) !important;
  color: var(--rs-cream) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-family: 'Tajawal', 'Archivo', sans-serif !important;
  padding: 14px 26px !important;
  font-size: 14px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(233, 81, 0, 0.25) !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover,
[class*="s-button-btn"][class*="primary"]:hover {
  background: var(--rs-blue-ink) !important;
  box-shadow: 0 8px 22px rgba(6, 26, 51, 0.35) !important;
  transform: translateY(-2px);
}

.btn.btn-outline, button.btn-outline, [class*="btn-secondary"] {
  background: transparent !important;
  color: var(--rs-blue-ink) !important;
  border: 1.5px solid var(--rs-blue-ink) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
}

.btn.btn-outline:hover, button.btn-outline:hover, [class*="btn-secondary"]:hover {
  background: var(--rs-blue-ink) !important;
  color: var(--rs-cream) !important;
}

/* =========================================================================
   CART PAGE — REMOVE (X) BUTTON
   ========================================================================= */
salla-cart-items button[class*="remove"],
salla-cart-item button[class*="remove"],
.cart-item button[class*="remove"],
button[class*="remove-from-cart"],
button[aria-label*="حذف"],
.s-cart-item-remove,
[class*="cart"] button[class*="close"],
[class*="cart"] button[class*="delete"] {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--rs-line) !important;
  color: var(--rs-blue-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

salla-cart-items button[class*="remove"]:hover,
salla-cart-item button[class*="remove"]:hover,
.s-cart-item-remove:hover,
[class*="cart"] button[class*="close"]:hover,
[class*="cart"] button[class*="delete"]:hover {
  background: var(--rs-orange) !important;
  border-color: var(--rs-orange) !important;
  color: #ffffff !important;
}

salla-cart-items button[class*="remove"] svg,
.s-cart-item-remove svg,
[class*="cart"] button[class*="close"] svg {
  width: 14px !important;
  height: 14px !important;
}

salla-cart-items button[class*="remove"]::after,
salla-cart-item button[class*="remove"]::after,
.s-cart-item-remove::after {
  display: none !important;
}

/* =========================================================================
   CART ITEM CARDS
   ========================================================================= */
salla-cart-items,
salla-cart-item,
.cart-item,
.s-cart-item {
  background: #ffffff !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(10, 18, 32, 0.03) !important;
}

salla-cart-item h3, .cart-item h3, .s-cart-item h3,
salla-cart-item .title, .cart-item .title {
  color: var(--rs-blue-ink) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

salla-cart-item [class*="total"],
salla-cart-item [class*="subtotal"],
.cart-item [class*="total"],
.s-cart-item [class*="total"] {
  color: var(--rs-orange) !important;
  font-weight: 800 !important;
}

/* =========================================================================
   QUANTITY SELECTOR
   ========================================================================= */
salla-quantity-input {
  border: 1px solid var(--rs-line) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

salla-quantity-input button {
  background: #ffffff !important;
  color: var(--rs-blue-ink) !important;
  border: none !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}

salla-quantity-input button:hover {
  background: var(--rs-paper) !important;
  color: var(--rs-orange) !important;
}

salla-quantity-input input {
  border: none !important;
  background: #ffffff !important;
  color: var(--rs-blue-ink) !important;
  font-weight: 700 !important;
  text-align: center !important;
  width: 44px !important;
}

/* =========================================================================
   ORDER SUMMARY CARD
   ========================================================================= */
.s-cart-summary,
salla-cart-summary,
.cart-summary,
.order-summary {
  background: #ffffff !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 2px 10px rgba(10, 18, 32, 0.04) !important;
}

.s-cart-summary h2, .s-cart-summary h3,
salla-cart-summary h2, salla-cart-summary h3,
.cart-summary h2, .cart-summary h3 {
  color: var(--rs-blue-ink) !important;
  font-size: 18px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--rs-line) !important;
  display: block !important;
}

.s-cart-summary h2::after, .s-cart-summary h3::after,
salla-cart-summary h2::after, salla-cart-summary h3::after {
  display: none !important;
}

/* =========================================================================
   CHECKOUT BUTTON
   ========================================================================= */
.s-cart-summary button,
salla-cart-summary button,
button[class*="checkout"],
a[class*="checkout"],
button[class*="proceed"],
.cart-summary .btn,
.cart-summary button,
[class*="checkout-button"] {
  background: var(--rs-orange) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-family: 'Tajawal', 'Archivo', sans-serif !important;
  padding: 16px 24px !important;
  font-size: 15px !important;
  box-shadow: 0 4px 12px rgba(233, 81, 0, 0.2) !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.s-cart-summary button:hover,
salla-cart-summary button:hover,
button[class*="checkout"]:hover,
.cart-summary button:hover,
[class*="checkout-button"]:hover {
  background: var(--rs-blue-ink) !important;
  box-shadow: 0 6px 18px rgba(6, 26, 51, 0.3) !important;
  transform: translateY(-2px) !important;
}

.s-cart-summary button::before,
.s-cart-summary button::after,
salla-cart-summary button::before,
salla-cart-summary button::after,
[class*="checkout-button"]::before,
[class*="checkout-button"]::after {
  display: none !important;
}

/* =========================================================================
   CHECKOUT / PAYMENT PAGE
   ========================================================================= */
.checkout-page, .checkout,
[class*="checkout-step"],
.payment-methods,
salla-payment-methods {
  background: var(--rs-paper) !important;
}

.payment-method,
salla-payment-methods > *,
[class*="payment-option"],
[class*="payment-method"] {
  background: #ffffff !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  margin-bottom: 10px !important;
  transition: all 0.2s ease !important;
}

.payment-method:hover,
[class*="payment-option"]:hover,
[class*="payment-method"]:hover {
  border-color: var(--rs-orange) !important;
  box-shadow: 0 4px 14px rgba(233, 81, 0, 0.08) !important;
}

.payment-method.selected, .payment-method.active,
[class*="payment-option"].selected, [class*="payment-option"].active,
[class*="payment-method"].selected, [class*="payment-method"].active {
  border-color: var(--rs-orange) !important;
  background: #FFF8F3 !important;
  box-shadow: 0 0 0 2px rgba(233, 81, 0, 0.15) !important;
}

.checkout input, .checkout select, .checkout textarea,
[class*="checkout"] input, [class*="checkout"] select, [class*="checkout"] textarea {
  background: #ffffff !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  color: var(--rs-blue-ink) !important;
}

.checkout input:focus, .checkout select:focus, .checkout textarea:focus,
[class*="checkout"] input:focus, [class*="checkout"] select:focus, [class*="checkout"] textarea:focus {
  border-color: var(--rs-orange) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(233, 81, 0, 0.1) !important;
}

/* =========================================================================
   BREADCRUMBS
   ========================================================================= */
.breadcrumb, [class*="breadcrumb"] {
  color: var(--rs-mute) !important;
  font-size: 13px !important;
  padding: 16px 0 !important;
}

.breadcrumb a, [class*="breadcrumb"] a {
  color: var(--rs-mute) !important;
}

.breadcrumb a:hover, [class*="breadcrumb"] a:hover {
  color: var(--rs-orange) !important;
}

/* =========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================= */
div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > form > section.sticky-product-bar.bg-white.p-5.rounded-md.rounded-b-none,
div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > form > section.flex.bg-white.p-5.sm\:pb-0.rounded-md.rounded-b-none {
  background-color: var(--rs-cream) !important;
  border-radius: 14px !important;
  border: 1px solid var(--rs-line) !important;
}

div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > h1 {
  color: var(--rs-blue-ink) !important;
  background: transparent !important;
  font-family: 'Archivo Black', 'Readex Pro', sans-serif !important;
  font-size: clamp(26px, 3.2vw, 40px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  padding: 0 0 12px 0 !important;
  line-height: 1.1 !important;
  border-radius: 0 !important;
  position: relative;
}

[dir="rtl"] div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > h1 {
  font-family: 'Readex Pro', sans-serif !important;
  font-weight: 700 !important;
}

div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > h1::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 50px !important;
  height: 3px !important;
  background: var(--rs-orange) !important;
  border-radius: 2px !important;
}

[dir="rtl"] div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > h1::after {
  left: auto !important;
  right: 0 !important;
}

div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > div.flex.whitespace-nowrap.gap-4.items-center > div.gap-4.flex > h2 {
  color: var(--rs-orange) !important;
  background: transparent !important;
  font-family: 'JetBrains Mono', 'Tajawal', monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

[dir="rtl"] div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > div.flex.whitespace-nowrap.gap-4.items-center > div.gap-4.flex > h2 {
  font-family: 'Tajawal', sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
}

div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > div.product__description {
  background-color: var(--rs-cream) !important;
  color: var(--rs-ink) !important;
  padding: 22px !important;
  border-radius: 14px !important;
  border: 1px solid var(--rs-line) !important;
  line-height: 1.75 !important;
}

div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 label,
div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 label b,
div.main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 salla-quantity-input > div {
  color: var(--rs-blue-ink) !important;
  font-weight: 700 !important;
}

/* =========================================================================
   COMMENTS
   ========================================================================= */
body > div.app-inner.flex.flex-col.min-h-full > salla-comments > div {
  background-color: var(--rs-cream) !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 18px !important;
  padding: 28px !important;
}

body > div.app-inner.flex.flex-col.min-h-full > salla-comments > div > div > salla-comment-form > form > div > div > textarea {
  background-color: #fff !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 12px !important;
  opacity: 1 !important;
  padding: 16px !important;
}

body > div.app-inner.flex.flex-col.min-h-full > salla-comments > div > div > salla-comment-form > form > div > div > textarea:focus {
  border-color: var(--rs-orange) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(233, 81, 0, 0.1) !important;
}

/* =========================================================================
   MOBILE MENU
   ========================================================================= */
#mobile-menu {
  background-color: var(--rs-paper) !important;
  color: var(--rs-blue-ink) !important;
}

#mobile-menu a, #mobile-menu * {
  color: var(--rs-blue-ink) !important;
  font-weight: 700 !important;
}

#mobile-menu a:hover { color: var(--rs-orange) !important; }

/* =========================================================================
   MOBILE NAV LAYOUT
   ========================================================================= */
@media (max-width: 768px) {
  #mainnav { position: relative !important; }

  #mainnav salla-cart-summary {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
  }

  #mainnav .navbar-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
    z-index: 5 !important;
  }

  #mainnav .navbar-brand img {
    transform: none !important;
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
  }

  #mainnav salla-user-menu { position: static !important; }

  #mainnav .sicon-menu {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: var(--rs-blue-ink) !important;
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer, .footer, .site-footer {
  background-color: var(--rs-ink) !important;
  color: var(--rs-cream) !important;
  padding: 70px 24px 35px !important;
  border-top: none !important;
}

footer *, .footer *, .site-footer * {
  color: rgba(250, 246, 237, 0.65) !important;
}

footer a:hover, .footer a:hover, .site-footer a:hover {
  color: var(--rs-orange) !important;
}

footer h3, footer h4, .footer h3, .footer h4 {
  color: var(--rs-orange-hot) !important;
  font-family: 'JetBrains Mono', 'Tajawal', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  margin-bottom: 18px !important;
  font-weight: 800 !important;
}

[dir="rtl"] footer h3, [dir="rtl"] footer h4 {
  font-family: 'Tajawal', sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 14px !important;
}

footer img[class*="logo"], .footer img[class*="logo"] {
  max-height: 48px !important;
  margin-bottom: 16px !important;
}

/* =========================================================================
   FORMS
   ========================================================================= */
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="search"], select, textarea {
  background: var(--rs-cream) !important;
  border: 1px solid var(--rs-line) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: var(--rs-blue-ink) !important;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--rs-orange) !important;
  box-shadow: 0 0 0 3px rgba(233, 81, 0, 0.12) !important;
}

/* =========================================================================
   LINKS / SCROLLBAR / HR
   ========================================================================= */
a { transition: color 0.2s ease !important; }
a:not(.btn):not(.s-cart-summary-count a):hover { color: var(--rs-orange) !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--rs-paper); }
::-webkit-scrollbar-thumb {
  background: var(--rs-line);
  border-radius: 10px;
  border: 2px solid var(--rs-paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--rs-orange); }

hr {
  border: none !important;
  height: 1px !important;
  background: var(--rs-line) !important;
  margin: 30px 0 !important;
}

/* =========================================================================
   CUSTOM LOADER — Volleyball bouncing above RiSport logo
   ========================================================================= */
.salla-loader, #salla-loader, [class*="salla-preloader"],
.preloader, #preloader, .loading-overlay {
  display: none !important;
}

#risport-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #F5F1E8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
  padding: 20px;
}

#risport-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rs-loader-stage {
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.rs-loader-stage::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 54px;
  height: 8px;
  background: rgba(10, 18, 32, 0.15);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: rs-shadow 0.9s ease-in-out infinite;
  filter: blur(3px);
}

@keyframes rs-shadow {
  0%, 100% { transform: translateX(-50%) scale(0.6); opacity: 0.2; }
  45%, 50% { transform: translateX(-50%) scale(1); opacity: 0.45; }
}

.rs-loader-ball {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #f6efdd 42%, #e2d5b5 100%);
  box-shadow:
    inset -9px -9px 22px rgba(0, 0, 0, 0.22),
    inset 6px 6px 18px rgba(255, 255, 255, 0.6);
  position: relative;
  animation: rs-bounce 0.9s ease-in-out infinite;
  transform-origin: center bottom;
}

.rs-loader-ball::before,
.rs-loader-ball::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.rs-loader-ball::before {
  background:
    linear-gradient(115deg, transparent 46%, #E95100 46%, #E95100 54%, transparent 54%),
    linear-gradient(55deg,  transparent 46%, #00529D 46%, #00529D 54%, transparent 54%);
}

.rs-loader-ball::after {
  background: linear-gradient(180deg, transparent 47%, #00529D 47%, #00529D 53%, transparent 53%);
  opacity: 0.6;
}

@keyframes rs-bounce {
  0%, 100% { transform: translateY(-46px) scaleY(1.06) scaleX(0.95); }
  45%      { transform: translateY(0) scaleY(0.78) scaleX(1.14); }
  50%      { transform: translateY(0) scaleY(0.86) scaleX(1.08); }
}

.rs-loader-logo-img {
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: rs-logo-pulse 2s ease-in-out infinite;
}

@keyframes rs-logo-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.03); }
}

.rs-loader-logo-text {
  font-family: 'Archivo Black', 'Readex Pro', sans-serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #00529D;
  display: none;
  align-items: center;
  gap: 2px;
  animation: rs-logo-pulse 2s ease-in-out infinite;
}

.rs-loader-logo-text .sport { color: #00529D; }
.rs-loader-logo-text .dot { color: #E95100; }