:root {
  --otom-primary: #0a57e8;
  --otom-primary-dark: #083b9c;
  --otom-primary-light: #35b2ff;
  --otom-bg: #f4f9ff;
  --otom-bg-soft: #edf5ff;
  --otom-white: #ffffff;
  --otom-text: #10213d;
  --otom-text-soft: #5a6b88;
  --otom-border: #dbe9ff;
  --otom-shadow: 0 10px 30px rgba(10, 87, 232, 0.10);
  --otom-shadow-hover: 0 18px 40px rgba(10, 87, 232, 0.16);
  --otom-radius-xl: 26px;
  --otom-radius-lg: 20px;
  --otom-radius-md: 16px;
  --otom-radius-sm: 12px;
}

/* الخلفية العامة */
body,
.main-content,
.app-inner,
.page-wrapper,
.container {
  background:
    radial-gradient(circle at top left, rgba(53,178,255,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(10,87,232,0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color: var(--otom-text);
}

/* الهيدر */
.header,
.navbar,
.main-nav,
.store-header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219,233,255,0.95);
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

/* الشعار */
.navbar-brand img,
.logo img,
.store-logo img {
  max-height: 54px;
}

/* البنر */
.hero,
.main-slider,
.s-slider-block,
.s-block--hero-slider {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 87, 232, 0.10);
}

/* عناوين الأقسام */
.section-header h2,
.section--title h2,
.section-title,
.home-title,
salla-section h2 {
  color: var(--otom-primary-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  margin: 12px auto 18px;
  max-width: 92%;
  letter-spacing: 0;
}

/* تغليف فخم للعناوين */
.section-header h2,
.section--title h2,
.section-title,
.home-title,
salla-section h2 {
  width: fit-content;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(237,245,255,0.95) 100%);
  border: 1px solid var(--otom-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10,87,232,0.06);
}

/* نصوص الوصف */
.section-header p,
.section-description,
.section-subtitle {
  color: var(--otom-text-soft);
  text-align: center;
  font-size: 15px;
}

/* كروت المنتجات */
.s-product-card,
.product,
.product-card,
.product-item {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--otom-border);
  border-radius: var(--otom-radius-xl);
  box-shadow: var(--otom-shadow);
  overflow: hidden;
  transition: all 0.28s ease;
  padding-bottom: 12px;
  position: relative;
}

/* لمعة خفيفة أعلى الكرت */
.s-product-card::before,
.product::before,
.product-card::before,
.product-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* حركة مرور */
.s-product-card:hover,
.product:hover,
.product-card:hover,
.product-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--otom-shadow-hover);
  border-color: #c4daff;
}

/* صورة المنتج */
.s-product-card-image,
.product-image,
.product-card__image {
  background: linear-gradient(180deg, #f9fcff 0%, #edf5ff 100%);
  border-radius: 18px;
  margin: 10px;
  overflow: hidden;
  padding: 8px;
}

/* صورة المنتج نفسها */
.s-product-card-image img,
.product-image img,
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* عنوان المنتج */
.s-product-card-content-title a,
.s-product-card .name,
.product-title,
.product-name {
  color: var(--otom-primary-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}

/* وصف المنتج */
.s-product-card-content-subtitle,
.s-product-card-content-desc,
.product-description,
.product-card p {
  color: var(--otom-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* السعر */
.s-product-card-price,
.product-price,
.price-wrapper,
.price {
  color: #c62828;
  font-weight: 900;
  font-size: 28px;
}

/* السعر قبل الخصم */
.price-before,
.price_is,
del,
.s-product-card-sale-price {
  color: #7a8799 !important;
  font-size: 18px;
  font-weight: 700;
  opacity: 0.9;
}

/* شارات الخصم */
.sale-badge,
.discount-badge,
.badge-sale,
.badge--sale {
  background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
  color: #17315f;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  padding: 6px 12px;
  box-shadow: 0 6px 16px rgba(255,193,7,0.22);
}

/* الأزرار الأساسية */
.btn,
button,
.s-button-btn,
.btn--primary,
.button--primary,
a.btn-primary {
  background: linear-gradient(135deg, var(--otom-primary-light) 0%, var(--otom-primary) 45%, var(--otom-primary-dark) 100%);
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(10, 87, 232, 0.22);
  font-weight: 800;
  transition: all 0.25s ease;
}

/* Hover button */
.btn:hover,
button:hover,
.s-button-btn:hover,
.btn--primary:hover,
.button--primary:hover,
a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(10, 87, 232, 0.28);
  filter: brightness(1.03);
}

/* أزرار داخل المنتجات */
.s-product-card .btn,
.s-product-card .s-button-btn,
.product .btn {
  width: calc(100% - 24px);
  min-height: 50px;
  font-size: 18px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* أزرار ثانوية */
.btn--outline,
.btn-outline,
button.outline {
  background: #fff !important;
  color: var(--otom-primary-dark) !important;
  border: 2px solid #cbdfff !important;
  border-radius: 999px !important;
}

/* الحقول */
input,
select,
textarea,
.form-control {
  background: rgba(255,255,255,0.96);
  border: 1.5px solid #d8e6ff;
  border-radius: 16px;
  color: var(--otom-text);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: #6dbaff;
  box-shadow: 0 0 0 4px rgba(53,178,255,0.12);
  outline: none;
}

/* الفلاتر والتصنيفات */
.categories-nav,
.filter-bar,
.toolbar,
.sorting-bar {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--otom-border);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(10,87,232,0.05);
}

/* المودالات والسلة */
.modal-content,
.dropdown-menu,
.cart-content,
.s-cart-summary {
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--otom-border);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(10,87,232,0.10);
}

/* الفوتر */
footer,
.footer,
.store-footer {
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f2ff 100%);
  border-top: 1px solid #dce9ff;
}

footer a,
.footer a,
.store-footer a,
a {
  color: var(--otom-primary-dark);
}

a:hover {
  color: var(--otom-primary);
}

/* أيقونات */
.icon,
svg,
i {
  color: var(--otom-primary);
}

/* مسافات أقسام */
section,
.s-block,
.home-section {
  margin-bottom: 28px;
}

/* نعومة عامة */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #cfe5ff;
  color: #083b9c;
}

html {
  scroll-behavior: smooth;
}

/* تحسين الجوال */
@media (max-width: 768px) {
  .section-header h2,
  .section--title h2,
  .section-title,
  .home-title,
  salla-section h2 {
    font-size: 24px;
    line-height: 1.55;
    max-width: 90%;
    padding: 10px 16px;
  }

  .s-product-card-content-title a,
  .s-product-card .name,
  .product-title,
  .product-name {
    font-size: 20px;
  }

  .s-product-card-price,
  .product-price,
  .price-wrapper,
  .price {
    font-size: 24px;
  }

  .btn,
  button,
  .s-button-btn,
  .btn--primary,
  .button--primary,
  a.btn-primary {
    min-height: 46px;
    font-size: 17px;
  }

  .hero,
  .main-slider,
  .s-slider-block,
  .s-block--hero-slider {
    border-radius: 18px;
  }

  .s-product-card,
  .product,
  .product-card,
  .product-item {
    border-radius: 20px;
  }
}
.otom-enhanced-title {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.otom-title-line1 {
  font-size: 1em;
  font-weight: 900;
  color: #1d75ff;
  line-height: 1.35;
}

.otom-title-line2 {
  font-size: 1em;
  font-weight: 900;
  color: #083b9c;
  line-height: 1.35;
}

.otom-best-offer {
  border: 2px solid #ffd24d !important;
  box-shadow: 0 18px 40px rgba(255, 193, 7, 0.20), 0 14px 30px rgba(10, 87, 232, 0.14) !important;
}

.otom-best-offer::after {
  content: "الأكثر جذبًا";
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
  color: #17315f;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255,193,7,0.24);
  z-index: 3;
}